tencentcloud-webar 1.0.23-9 → 1.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
var self = wx;function a0a(){var AK=['outputFrame','intensity','线性光','offlineBuffer','getAvatarList','TRIANGLES','MEDIA_STREAM','_affine','-webkit-line-break','_intensityTeeth','当前环境不支持','transition-duration','SDK_ERROR','LINEAR','startRecord','_dermabrasion','resourceManager','onLaunch','animation-name','application/x-www-form-urlencoded','requestConfig','callFunctionCompleteError','displayObjectUpdateTransform','surface','uColor','tempFilePath','isReadyPromise','uvs','blendMode_1','batch_bilinear','TIME','premultiplyBlendMode','yaw','pre','_drawCallPool','The\x20interface\x20is\x20not\x20accessible.\x20Please\x20check\x20the\x20License\x20version','sign','asyncPluginIndex','color-interpolation-filters','lip_inner_top','_find','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0areq\x20method:\x20','setUpdatePerformanceListener','forehead','convertTo2d','nose_bridge4','\x0a\x0aprecision\x20lowp\x20float;\x0auniform\x20sampler2D\x20uSampler;\x0avarying\x20lowp\x20vec2\x20vTextureCoord;\x0auniform\x20int\x20width;\x0auniform\x20int\x20height;\x0auniform\x20float\x20intensity;\x0a\x0avec4\x20gaussianBlur(vec2\x20uv,\x20float\x20size)\x20{\x0a\x20\x20\x20\x20const\x20float\x20Pi\x20=\x206.28318530718;\x20//\x20Pi*2\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20//\x20GAUSSIAN\x20BLUR\x20SETTINGS\x20{{{\x0a\x20\x20\x20\x20const\x20float\x20Directions\x20=\x2016.0;\x20//\x20BLUR\x20DIRECTIONS\x20(Default\x2016.0\x20-\x20More\x20is\x20better\x20but\x20slower)\x0a\x20\x20\x20\x20const\x20float\x20Quality\x20=\x204.0;\x20//\x20BLUR\x20QUALITY\x20(Default\x204.0\x20-\x20More\x20is\x20better\x20but\x20slower)\x0a\x20\x20\x20\x20float\x20Size\x20=\x20size;\x20//\x20BLUR\x20SIZE\x20(Radius)\x0a\x20\x20\x20\x20//\x20GAUSSIAN\x20BLUR\x20SETTINGS\x20}}}\x0a\x20\x20\x20\x0a\x20\x20\x20\x20vec2\x20Radius\x20=\x20Size/vec2(float(width),\x20float(height));\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20//\x20Pixel\x20colour\x0a\x20\x20\x20\x20vec4\x20Color\x20=\x20texture2D(uSampler,\x20uv);\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20//\x20Blur\x20calculations\x0a\x20\x20\x20\x20for(\x20float\x20d=0.0;\x20d<Pi;\x20d+=Pi/Directions)\x0a\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20for(float\x20i=1.0/Quality;\x20i<=1.0;\x20i+=1.0/Quality)\x0a\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Color\x20+=\x20texture2D(\x20uSampler,\x20uv+vec2(cos(d),sin(d))*Radius*i);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20//\x20Output\x20to\x20screen\x0a\x20\x20\x20\x20Color\x20/=\x20Quality\x20*\x20Directions;\x0a\x20\x20\x20\x20return\x20Color;\x0a}\x0avec4\x20usm(vec2\x20vTextureCoord,\x20float\x20factor)\x20{\x0a\x20\x20\x20\x20vec4\x20originColor\x20=\x20texture2D(uSampler,\x20vTextureCoord);\x0a\x20\x20\x20\x20//\x20if\x20(factor\x20==\x200.)\x20{\x0a\x20\x20\x20\x20//\x20\x20\x20\x20\x20return\x20originColor;\x0a\x20\x20\x20\x20//\x20}\x0a\x20\x20\x20\x20vec4\x20gaussianColor\x20=\x20gaussianBlur(vTextureCoord,\x203.0);\x0a\x20\x20\x20\x20return\x20gaussianColor\x20*\x20-factor\x20+\x20originColor\x20*\x20(1.0\x20+\x20factor);\x0a}\x0a\x0a\x0avoid\x20main(void)\x0a{\x20\x20\x20\x0a\x0a\x20\x20\x20gl_FragColor\x20=\x20usm(vTextureCoord,\x20intensity);\x0a}\x0a','path','_loadingMap','dcutoff\x20should\x20be\x20>0','removeFrom','setObjectRenderer','retCodeHandler','ar\x20sdk\x20fetch\x20auth\x20error','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','paint-order','timeout','device','reportPageLoaded','Error.message:\x20','pixelRatio','margin-top','_partialDermabrasion','_startTime','far','height','drawMode','Ticker','complete','offlineLog','3D\x20Effect','__init6','setAxisY','content','getDataConfig','packageSize','?id=00','renderTexture','preload','referer','getEntriesByName','extendBean','widows','delete\x20local\x20cache\x20fail','FREE','shiftKey','load','exsureAuthData','read','convertSubtreeTo2s','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20duration:\x20','publish','already\x20init','MIPMAP_MODES','isWhiteList','c30849f08b1b4841a759a7c7534a2f0c.bin','-webkit-text-stroke-color','inputNode','_flipY','grid-template-areas','paths','orig','texParameteri','baseline','detectFace','intensityTeeth','createCameraContext','setToMult','other','Shader','model','-webkit-mask-repeat','successHandler','shift','src','fps','clearFile','calculateTrimmedVertices','BeautifyOptions','failHandler','getFileFromCache','targetTouches','Exclusion','Normal','maskMatrix','getZipDataPath','pointermove','none\x20solid\x20rgb(0,\x200,\x200)','view','CONTEXT_UID','maskSprite','lip_top_right','inline','miter','_currentLegacyID','list-style-type','font-variant-ligatures','removeChild','removeFromCache','text-indent','auto\x20/\x20auto','tint','message','outputRenderer','disabled','getEffectList','uin','constructor','addCallback','protocol','useOriginAudio','_options','applyFilter','?payload=','decoder\x20decode\x20ended','linkProgram','invert','drawImage','_detected','none','bindForceLocation','api','webpackChunktencentcloud_webar','-webkit-text-emphasis-style','max','64,65,63,72,79,70,74','angleArray','renderSprite','connectCallback','set\x20effect\x20error','getOwnPropertyDescriptors','getMinutes','\x22:\x22','PROMISE_ERROR','responseText','right_eye_bottom','61,6c,6c,6f,77,46,75,6e,63,4c,69,73,74','name','background-color','contour_left10','-webkit-mask-box-image','POINT','pos','You\x20need\x20to\x20override\x20\x22speedLogPipeline\x22\x20method','Unrecognized\x20response\x20data','justify-content','setNetworkType','beforeWrite','getImageInfo','triangulation','sendSocketMessage','toLocal','BaseTexture','nose_bridge1','_audioType','uploadFileCompleteError','mediaContainer\x20destroy\x20error','toggleOccluder','aid','gotoAndStop','border-top-left-radius','pointercancel','trigger','Generator\x20is\x20already\x20executing.','setPrototypeOf','record\x20in\x20live\x20mode\x20is\x20not\x20support','flex-direction','isConnected','boundsQuad','stream\x20finished','WeChatAppId','vertexDirtyId','object','UNSEND','getImageSize','convertSubtreeTo3d','now','pop','onNewAegis','word-spacing','forceMaxTextures','lip','animationSpeed','-webkit-app-region','isErr','premultiplyAlpha','windowHeight','fill-rule','-webkit-text-stroke-width','readwrite','\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0areq\x20method:\x20','_cuid','android','correctBlendMode','withDataPaths','-webkit-mask-origin','funcCode','getErrorType','zy\x20fetchWithSubPackage','_packedGeometryPoolSize','recorder','chin_right','whiteListUrl','vertexDirty','nose_bridge2','_ts','auto\x200deg','showModal','Invalid\x20input','observe','/speed/webvitals','calculateSpriteMatrix','pushSprite','setBackground','_transformTrimmedID','funcName','_target','getBean','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0areq\x20type:\x20','flood-opacity','textures','aTrans','tilingSprite2d','extra','invalid\x20length/literal','date\x20not\x20in\x20range\x201980-2099','vertexBuff','exist','clientTop','ios','background-clip','parentElement','firstScreenTiming','appendChild','BATCHABLE_SIZE','0008','optionalCall','/ar','0005','update','reportTime:\x20first\x20param\x20must\x20be\x20a\x20string','trys','callbacks','grid-auto-rows','onupgradeneeded','object-position','unicode-bidi','localTransform','firstRender','before','border-left-color','getFileSystemManager','WEBSOCKET_ERROR','scaleMode','live-pusher\x20width\x20or\x20height\x20is\x20not\x20support.\x20please\x20use\x20Arsdk.getRealSize','image','initGl','enabledFor','freq','convertTo2s','/worker/tick.worker.js','lifeCycle','row','RenderTexture','webVitalsUrl','method','isVisible','grid-template-rows','createFilter','value','decode','\x0a\x20\x20\x20\x20\x20\x20precision\x20mediump\x20float;\x0a\x20\x20\x20\x20\x20\x20uniform\x20sampler2D\x20rgbaTexture;\x0a\x20\x20\x20\x20\x20\x20uniform\x20float\x20height;\x0a\x20\x20\x20\x20\x20\x20uniform\x20float\x20xUnit;\x0a\x20\x20\x20\x20\x20\x20varying\x20vec2\x20vTex;\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20void\x20main()\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20vec4\x20coeffsY\x20=\x20vec4(0.299,\x200.587,\x200.114,\x200.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20vec4\x20coeffsU\x20=\x20vec4(-0.14713,\x20-0.28886,\x200.436,\x200.5);\x0a\x20\x20\x20\x20\x20\x20\x20\x20vec4\x20coeffsV\x20=\x20vec4(0.615,\x20-0.515,\x20-0.100,\x200.5);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20float\x20V_DIVIDE_LINE\x20=\x205.0\x20/\x206.0;\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20float\x20U_DIVIDE_LINE\x20=\x201.0\x20/\x201.5;\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(vTex.y\x20<=\x20U_DIVIDE_LINE)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20pos0\x20=\x20vec2(vTex.x\x20-\x201.5\x20*\x20xUnit,\x20vTex.y\x20*\x201.5);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gl_FragColor.r\x20=\x20coeffsY.a\x20+\x20dot(coeffsY.rgb,\x20texture2D(rgbaTexture,\x20pos0).rgb);\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20pos1\x20=\x20vec2(vTex.x\x20-\x200.5\x20*\x20xUnit,\x20vTex.y\x20*\x201.5);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gl_FragColor.g\x20=\x20coeffsY.a\x20+\x20dot(coeffsY.rgb,\x20texture2D(rgbaTexture,\x20pos1).rgb);\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20pos2\x20=\x20vec2(vTex.x\x20+\x200.5\x20*\x20xUnit,\x20vTex.y\x20*\x201.5);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gl_FragColor.b\x20=\x20coeffsY.a\x20+\x20dot(coeffsY.rgb,\x20texture2D(rgbaTexture,\x20pos2).rgb);\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20pos3\x20=\x20vec2(vTex.x\x20+\x201.5\x20*\x20xUnit,\x20vTex.y\x20*\x201.5);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gl_FragColor.a\x20=\x20coeffsY.a\x20+\x20dot(coeffsY.rgb,\x20texture2D(rgbaTexture,\x20pos3).rgb);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x20else\x20if\x20(vTex.y\x20<=\x20V_DIVIDE_LINE)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20float\x20offsetY\x20=\x201.0\x20/\x203.0\x20/\x20height;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20texCoord;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(vTex.x\x20<=\x200.5)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20texCoord\x20=\x20vec2(vTex.x\x20*\x202.0,\x20(vTex.y\x20-\x20U_DIVIDE_LINE)\x20*\x202.0\x20*\x203.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20texCoord\x20=\x20vec2((vTex.x\x20-\x200.5)\x20*\x202.0,\x20((vTex.y\x20-\x20U_DIVIDE_LINE)\x20*\x202.0\x20+\x20offsetY)\x20*\x203.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec4\x20color0\x20=\x20texture2D(rgbaTexture,\x20texCoord);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec4\x20color1\x20=\x20texture2D(rgbaTexture,\x20texCoord\x20+\x20vec2(xUnit\x20*\x202.0,\x200.));\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec4\x20color2\x20=\x20texture2D(rgbaTexture,\x20texCoord\x20+\x20vec2(xUnit\x20*\x204.0,\x200.));\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec4\x20color3\x20=\x20texture2D(rgbaTexture,\x20texCoord\x20+\x20vec2(xUnit\x20*\x206.0,\x200.));\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20float\x20u0\x20=\x20coeffsU.a\x20+\x20dot(coeffsU.rgb,\x20color0.rgb);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20float\x20u1\x20=\x20coeffsU.a\x20+\x20dot(coeffsU.rgb,\x20color1.rgb);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20float\x20u2\x20=\x20coeffsU.a\x20+\x20dot(coeffsU.rgb,\x20color2.rgb);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20float\x20u3\x20=\x20coeffsU.a\x20+\x20dot(coeffsU.rgb,\x20color3.rgb);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gl_FragColor\x20=\x20vec4(u0,\x20u1,\x20u2,\x20u3);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20float\x20offsetY\x20=\x201.0\x20/\x203.0\x20/\x20height;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20texCoord;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(vTex.x\x20<=\x200.5)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20texCoord\x20=\x20vec2(vTex.x\x20*\x202.0,\x20(vTex.y\x20-\x20V_DIVIDE_LINE)\x20*\x202.0\x20*\x203.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20texCoord\x20=\x20vec2((vTex.x\x20-\x200.5)\x20*\x202.0,\x20((vTex.y\x20-\x20V_DIVIDE_LINE)\x20*\x202.0\x20+\x20offsetY)\x20*\x203.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec4\x20color0\x20=\x20texture2D(rgbaTexture,\x20texCoord);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec4\x20color1\x20=\x20texture2D(rgbaTexture,\x20texCoord\x20+\x20vec2(xUnit\x20*\x202.0,\x200.));\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec4\x20color2\x20=\x20texture2D(rgbaTexture,\x20texCoord\x20+\x20vec2(xUnit\x20*\x204.0,\x200.));\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec4\x20color3\x20=\x20texture2D(rgbaTexture,\x20texCoord\x20+\x20vec2(xUnit\x20*\x206.0,\x200.));\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20float\x20u0\x20=\x20coeffsV.a\x20+\x20dot(coeffsV.rgb,\x20color0.rgb);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20float\x20u1\x20=\x20coeffsV.a\x20+\x20dot(coeffsV.rgb,\x20color1.rgb);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20float\x20u2\x20=\x20coeffsV.a\x20+\x20dot(coeffsV.rgb,\x20color2.rgb);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20float\x20u3\x20=\x20coeffsV.a\x20+\x20dot(coeffsV.rgb,\x20color3.rgb);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gl_FragColor\x20=\x20vec4(u0,\x20u1,\x20u2,\x20u3);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20return;\x0a\x20\x20\x20\x20\x20\x20}','setBeta','_playing','totalFrames','IDENTITY','readPixels','_wasm','ease','strokeStyle','anchor','_textureTrimmedID','screenWidth','Sprite','lip_bottom_center_target','stream\x20finishing','single','RIGHT_FACE_OVAL3','uMapCoord','file','retcode','contour_left9','invalid\x20zip\x20data','_reshape','break-inside','_dataMap','_uvs','list-style-position','createMediaRecorder','filterWithAlpha','8192','indices','animation-fill-mode','removeBeauty','graphics','useMaxPadding','filePath','float\x20blendLinearDodge(float\x20base,\x20float\x20blend)\x20{\x0a\x09//\x20Note\x20:\x20Same\x20implementation\x20as\x20BlendAddf\x0a\x09return\x20min(base+blend,1.0);\x0a}\x0a\x0avec3\x20blendLinearDodge(vec3\x20base,\x20vec3\x20blend)\x20{\x0a\x09//\x20Note\x20:\x20Same\x20implementation\x20as\x20BlendAdd\x0a\x09return\x20min(base+blend,vec3(1.0));\x0a}\x0a\x0avec3\x20blendLinearDodge(vec3\x20base,\x20vec3\x20blend,\x20float\x20opacity)\x20{\x0a\x09return\x20(blendLinearDodge(base,\x20blend)\x20*\x20opacity\x20+\x20base\x20*\x20(1.0\x20-\x20opacity));\x0a}\x0a\x0a','transform','Message','shaderSource','setMinCutoff','RGBA','bind','ext2','resize','isFrontFace','precision\x20mediump\x20float;\x0a#define\x20dimension\x2064.0\x0auniform\x20sampler2D\x20uSampler;\x20//\x20底图\x0avarying\x20vec2\x20vTextureCoord;\x0a\x0auniform\x20sampler2D\x20lut;\x20//\x20lut\x20图\x0auniform\x20float\x20intensity;\x20//\x20强度\x0auniform\x20vec2\x20lutSize;\x20//\x20lut\x20尺寸\x0avoid\x20main()\x20{\x0a\x20\x20\x20\x20vec4\x20color\x20=\x20texture2D(uSampler,\x20vTextureCoord);\x0a\x20\x20\x20\x20float\x20row\x20=\x20floor(sqrt(dimension)\x20+\x200.5);\x0a\x20\x20\x20\x20float\x20blueColor\x20=\x20color.b\x20*\x20(dimension\x20-\x201.0);\x0a\x20\x20\x20\x20vec2\x20quad1;\x0a\x20\x20\x20\x20quad1.y\x20=\x20floor(floor(blueColor)\x20/\x20row);\x0a\x20\x20\x20\x20quad1.x\x20=\x20floor(blueColor)\x20-\x20(quad1.y\x20*\x20row);\x0a\x20\x20\x20\x20vec2\x20quad2;\x0a\x20\x20\x20\x20quad2.y\x20=\x20floor(ceil(blueColor)\x20/\x20row);\x0a\x20\x20\x20\x20quad2.x\x20=\x20ceil(blueColor)\x20-\x20(quad2.y\x20*\x20row);;\x0a\x20\x20\x20\x20vec2\x20texPos1;\x0a\x20\x20\x20\x20texPos1.x\x20=\x20(quad1.x\x20*\x20(1.0/row))\x20+\x200.5/lutSize.x\x20+\x20((1.0/row\x20-\x201.0/lutSize.x)\x20*\x20color.r);\x0a\x20\x20\x20\x20texPos1.y\x20=\x20(quad1.y\x20*\x20(1.0/row))\x20+\x200.5/lutSize.y\x20+\x20((1.0/row\x20-\x201.0/lutSize.y)\x20*\x20color.g);\x0a\x20\x20\x20\x20vec2\x20texPos2;\x0a\x20\x20\x20\x20texPos2.x\x20=\x20(quad2.x\x20*\x20(1.0/row))\x20+\x200.5/lutSize.x\x20+\x20((1.0/row\x20-\x201.0/lutSize.x)\x20*\x20color.r);\x0a\x20\x20\x20\x20texPos2.y\x20=\x20(quad2.y\x20*\x20(1.0/row))\x20+\x200.5/lutSize.y\x20+\x20((1.0/row\x20-\x201.0/lutSize.y)\x20*\x20color.g);\x0a\x20\x20\x20\x20vec4\x20newColor1\x20=\x20texture2D(lut,\x20texPos1);\x0a\x20\x20\x20\x20vec4\x20newColor2\x20=\x20texture2D(lut,\x20texPos2);\x0a\x20\x20\x20\x20vec4\x20newColor\x20=\x20mix(newColor1,\x20newColor2,\x20fract(blueColor));\x0a\x20\x20\x20\x20vec4\x20finalColor\x20=\x20mix(color,\x20vec4(newColor.rgb,\x20color.a),\x20intensity);\x0a\x20\x20\x20\x20gl_FragColor\x20=\x20finalColor;\x0a}\x0a','recordCanvasRendered','onInited','text-decoration-skip-ink','addBean','clone','generatePusherData','tempRect','publishSocketError','updateAnchor','getVideoInfo','extension','filterClamp','stage','button','apiName','getSystemInfo','show','cancelAnimationFrame','requesting','use','onWhitelist','capture','ops','defineProperties','floor','uniforms','__init3','Spritesheet','\x20\x0a\x20\x20Error.stack:\x20','_durations','every','offsetWidth','time','applyInverse','_projID','walk','setExclusiveFilter','\x20temp\x20zip\x20write\x20file\x20error','reportT','customTimePipeline','postMessage','className','color-rendering','replace','defineProperty','node','createObjectURL','order','getBoundingClientRect','_beautifies','compileShader','windowWidth','geometryClass','_setFilter','PIN_LIGHT','z-index','__initStatic','invalidate','-webkit-locale','addBeauty','invoke','UNSIGNED_SHORT','app3d','marker-end','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0areq\x20url:\x20','toStringTag','tileProj','wx\x20camera\x20init','offset-distance','ret','near','INPUT_ERROR','script','timeStamp','precision\x20highp\x20float;\x0aattribute\x20vec2\x20aVertexPosition;\x0aattribute\x20vec3\x20aTrans1;\x0aattribute\x20vec3\x20aTrans2;\x0aattribute\x20vec2\x20aSamplerSize;\x0aattribute\x20vec4\x20aFrame;\x0aattribute\x20vec4\x20aColor;\x0aattribute\x20float\x20aTextureId;\x0a\x0auniform\x20mat3\x20projectionMatrix;\x0auniform\x20mat3\x20translationMatrix;\x0a\x0avarying\x20vec2\x20vertexPosition;\x0avarying\x20vec3\x20vTrans1;\x0avarying\x20vec3\x20vTrans2;\x0avarying\x20vec2\x20vSamplerSize;\x0avarying\x20vec4\x20vFrame;\x0avarying\x20vec4\x20vColor;\x0avarying\x20float\x20vTextureId;\x0a\x0avoid\x20main(void){\x0agl_Position.xyw\x20=\x20projectionMatrix\x20*\x20translationMatrix\x20*\x20vec3(aVertexPosition,\x201.0);\x0agl_Position.z\x20=\x200.0;\x0a\x0avertexPosition\x20=\x20aVertexPosition;\x0avTrans1\x20=\x20aTrans1;\x0avTrans2\x20=\x20aTrans2;\x0avTextureId\x20=\x20aTextureId;\x0avColor\x20=\x20aColor;\x0avSamplerSize\x20=\x20aSamplerSize;\x0avFrame\x20=\x20aFrame;\x0a}\x0a','pixi-picture:\x20you\x20are\x20trying\x20to\x20use\x20Blend\x20Filter\x20on\x20main\x20framebuffer!\x20That\x20wont\x20work.','border-image-slice','The\x20current\x20WeChat\x20version\x20does\x20not\x20support\x20it.\x20Please\x20upgrade\x20and\x20try\x20again','instanceCount','offscreen','LIGHTEN','onUnhandledRejection','pageId','mat4','wechatAppId','inited','Texture','ondata','economy','custom','_intensityEye','macos','size','onResult','spritesheet','projectName','scriptEvaluateTiming','maskClamp','toArray','legacy','getNetworkType','_anchor','stroke-dashoffset','border-box','::::::::createFilter','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0aerrMsg:\x20','WARN','border-top-right-radius','_orthographic','_bounds','background-blend-mode','lang','option','a_de','apiDetail','reduce','tileTransform','-webkit-tap-highlight-color','meta','frame3','fromImages','66,69,6c,74,65,72','ready','altKey','stickers','createImage','from','lineStyle','reset','downloadFileCompleteError','clearFilters','delete','onLoop','_active','blit','fromCharCode','LINEAR_BURN','response','TextureSystem','lip_top_center_target','offsetTop','setDataReportUrl','removeTrack','resource','set','SetDataReportUrl','getFilterList','unpatch','apply','stroke-dasharray','speed','attribute\x20vec2\x20aVertexPosition;\x0aattribute\x20vec2\x20aTextureCoord;\x0a\x0auniform\x20mat3\x20projectionMatrix;\x0auniform\x20mat3\x20translationMatrix;\x0auniform\x20mat3\x20uTransform;\x0a\x0avarying\x20vec3\x20vTextureCoord;\x0a\x0avoid\x20main(void)\x0a{\x0agl_Position.xyw\x20=\x20projectionMatrix\x20*\x20translationMatrix\x20*\x20vec3(aVertexPosition,\x201.0);\x0a\x0avTextureCoord\x20=\x20uTransform\x20*\x20vec3(aTextureCoord,\x201.0);\x0a}\x0a','split','SIGNATURE_TIMEOUT','[aegis-mp-sdk]unsupport\x20getFileSystemManager\x20offline\x20log\x20not\x20work!','LOAD_PACKAGE','MAX_TEXTURES','AUTH_NEED_RELOAD_PAGE','autoFit','setAttribute','LINEAR_LIGHT','objectStoreName','start','add\x20child\x20fail','precision\x20lowp\x20float;varying\x20vec2\x20vTextureCoord;uniform\x20sampler2D\x20uSampler;void\x20main(void){\x20\x20vec4\x20color\x20=\x20texture2D(uSampler,\x20vTextureCoord);\x20\x20gl_FragColor\x20=\x20color.bgra;}','_hide','_input','The\x20authentication\x20parameter\x20\x22appId\x22\x20is\x20missing','then','Arsdk\x20is\x20not\x20ready','getConfigByKeys','POINTS_MAP','wx\x20cache\x20write\x20eroor','log::::input\x20node\x20addBeautyAsync','调起用户摄像头失败','onprogress','justify-self','refreshNetwork','Out\x20of\x20memory!','fill\x20stroke\x20markers','darkCircle','10dsrKCv','fps\x20must\x20be\x20set\x20to\x20low\x20or\x20high','copyTo2dOr3d','showHeight','Class\x20extends\x20value\x20','material','onReady','_cache','grid-auto-columns','childNodes','_buffer','unuse','-webkit-border-image','onload','applyTo','-webkit-text-security','SET_DATA','orphans','rgba(0,\x200,\x200,\x200.4)','fill','pusherContext','visible','iResolution','eventsList','toGlobal','comment','document','dataPaths','all','removeItem','sessionID','Failed\x20to\x20load\x20the\x20effects','Url','precision\x20highp\x20float;\x0aattribute\x20vec3\x20aVertexPosition;\x0aattribute\x20vec2\x20aTextureCoord;\x0aattribute\x20vec4\x20aColor;\x0aattribute\x20float\x20aTextureId;\x0a\x0auniform\x20mat3\x20projectionMatrix;\x0a\x0avarying\x20vec2\x20vTextureCoord;\x0avarying\x20vec4\x20vColor;\x0avarying\x20float\x20vTextureId;\x0a\x0avoid\x20main(void){\x0agl_Position.xyw\x20=\x20projectionMatrix\x20*\x20aVertexPosition;\x0agl_Position.z\x20=\x200.0;\x0a\x0avTextureCoord\x20=\x20aTextureCoord;\x0avTextureId\x20=\x20aTextureId;\x0avColor\x20=\x20aColor;\x0a}\x0a','platform','offset-path','playing','refreshContext','line-height','loadPackage','需要重新进入页面使授权生效','word-break','screenX','209828cudPWx','TextureCache','Authorized,\x20but\x20still\x20unable\x20to\x20access\x20camera\x20or\x20microphone\x20device','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0aerrMsg:\x20','matrix','setData','userAgent','removeAnchors','backface-visibility','evaluateScript','setDerivateCutoff','reportRequest','lastestEffectIds','put','sdkts','prepend','2mwdBpv','useProgram','aTextureCoord','resetStickers','projection','text/javascript','NEAREST','addQuad','getEffect','overrideMimeType','bubbles','setPagePV','dispatchEvent','language','crc','getOwnPropertyDescriptor','The\x20context\x20is\x20lost.\x20Please\x20reinitialize\x20the\x20SDK\x20again','Loader','LinearBurn','typedArrayToBuffer','authorize','_backdropActive','Substract','null','LEFT_FACE_OVAL','startTime','hostUrl','onChange','readJSON','clear','touchend','none\x200px\x20auto\x200deg','_updateId','toHack','AJAX_ERROR','hackReq','defUniforms','_filterMap','bean','Setting','shared','1.6.1','基础库加载失败','applySticker','onFrameChange','START_REACORD_FAIL','API\x20not\x20accessible,\x20Please\x20confirm\x20the\x20License\x20version','text-shadow','position3d','abs','setHandler','sprite','falingwen.png','contour_right10','appid','taskHack','firstPaintTiming','LEFT_FACE_OVAL3','activeTexture','getAttributeNS','0012','req\x20url:\x20','_shader','分辨率变化导致特效丢失,请重新设置','buttons','_surface','toggle','contour_chin','getSeconds','auto\x20auto','-webkit-mask-box-image-repeat','objectStoreNames','payload','lip_top_center','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20duration:\x20','loadedIdMap','staticProxy','border-right-style','beforeRequest','overflow-anchor','completeHandler','_isConnectedToTicker','get','type','writeFile','shaderGenerator','networkType','_transformID','ObjectRenderer','特效加载失败','SOFT_LIGHT','WHITE_LIST','music\x20separation\x20fail','vertex','256','clip-rule','checkSupport','Authorize\x20timeout,\x20retry\x20failed.','实色混合','canvas','net3g','createVideoDecoder','failRequestCount','clientWidth','scope.record','syncUniforms','encLoader','scope.camera','logs','ms\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20data:\x20','8.0.29','average','getPreMiddleware','intensities','font-variant','getAudioPath','text-size-adjust','CANVAS','0\x20fill','random','getPixels','createBuffer','cameraContext','offset-rotate','logical','ENVIRAONMENT_NOT_COMPATIBLE','clientY','overrideCallContainer','caption-side','50%\x2050%','outer_offset_ratio','IMAGE','enable','ColorBurn','set\x20filter\x20error','current','live','-webkit-rtl-ordering','%FUNC_CODE%','copyWithin','send','loadingIconOptions','methods','https://webar-static.tencent-cloud.com/custom-effect/1309122168/1658976205287/effect.bin','read-only','cloneNode','min','cancelBubble','nose_bridge3','flag','getAttribute','-webkit-text-decorations-in-effect','require\x20paramter:\x20id','CONSOLE_ERROR','lasttime','batchable','reportPv\x20is\x20deprecated,\x20please\x20use\x20reportEvent','triggerInit','-webkit-mask-position','lip_bottom_left_target','websocketHack','setToMultLegacy2','sdkAppId','1001','clip.js','left_eye_bottom','catch','done','TextureMatrix','_indexBuffer','\x22:\x22symbol\x22','infoType:\x20behaviorBacktracking\x0adataType:\x20tapEvent','margin-bottom','font-weight','This\x20browser\x20does\x20not\x20have\x20camera\x20permission,\x20please\x20go\x20to\x20Settings\x20-\x20Privacy\x20turn\x20Camera\x20on','manual','AEGIS_ID','uvMatrix','_cx','getAllEffectList','GET','_render','输入不合法,\x20远程链接只支持输入图片类型','submitCustomTime','toLowerCase','4096','twoBezier','fetchWithSubPackage','8.0.30','getSingletonWorker','contentType','getAllKeys','wx\x20set\x20language','setLevel','fragment','filterArea','vertical-right','initOfflineLog','SUBSTRACT','throw','filterLevel','ALPHA_MODES','MAX_SAFE_INTEGER','touchstart','round','SCALE_MODES','Geometry','push','background-origin','miniProgram','code','border-bottom-color','/content.json','STATIC_DRAW','4941552agwtWE','_frame','AbstractBatchRenderer','override','getStorage','route','recorder\x20options','STOP_REACORD_FAIL','_checkVoid','strokeColor','LIPS','VR人像','getTracks','data','webar-object-store','INFO_ALL','setWatermark','-webkit-font-smoothing','updateBeauty','withCredentials','hidden','reverseLocalOrder','performance','captureStream','-webkit-box-reflect','SDK\x20version\x20is\x20too\x20old,\x20some\x20features\x20are\x20not\x20available.\x20Please\x20update\x20the\x20SDK','failed\x20to\x20separate\x20audio\x20track','_textures','mincutoff\x20should\x20be\x20>0','onHide','_context','SDKVersion','frames','getIndeLoader','rgb(0,\x200,\x200)','setEffectInner','syncUniformGroup','setReshapeMarks','taskPromises','quad','timeMap','403\x20forbidden','surfaceID','count','exec','vertexSize','bindingDestinationFrame','-webkit-border-vertical-spacing','statePool','createSprite','set-effect','loadend','scaleAfterAffine','premultiplyTintToRgba','post','mode','metaKey','stop','enableVertexAttribArray','loaded','translate','miniprogram_npm/tencentcloud-webar','resultCb','zip\x20处理','transcodeLive','alphaMaskPool','Data','\x0avarying\x20vec3\x20vTextureCoord;\x0a\x0auniform\x20sampler2D\x20uSampler;\x0auniform\x20vec4\x20uColor;\x0a\x0avoid\x20main(void)\x0a{\x0avec4\x20sample\x20=\x20texture2D(uSampler,\x20vTextureCoord.xy\x20/\x20vTextureCoord.z);\x0agl_FragColor\x20=\x20sample\x20*\x20uColor;\x0a}\x0a','isHidden','options','clip-path','addOuterLandmarks','setBlendMode','keys','&count=1&version=','PinLight','__esModule','instance','LOADING','outside','tickworker','reportTime:\x20duration\x20must\x20between\x200\x20and\x2060000','wifi','无法解析的数据','devtools','setDataReportConfig','getCenterOfTwoPoints','updateEndTimestamp','hyphens','MaskSystem','grid-row-gap','PAGE_NOT_FOUND_ERROR','stop\x20record','-webkit-margin-before-collapse','live\x20mode\x20is\x20not\x20supported','COLOR_BURN','captureStackTrace','1255500SIgtIO','__version__','\x0avarying\x20vec2\x20vTextureCoord;\x0auniform\x20sampler2D\x20uSampler;\x0auniform\x20sampler2D\x20lut;\x0auniform\x20lowp\x20float\x20intensity;\x0auniform\x20lowp\x20float\x20parentIntensity;\x0a\x0avoid\x20main()\x20{\x0a\x20\x20\x20\x20vec4\x20color\x20=\x20texture2D(uSampler,\x20vTextureCoord.xy);\x0a\x0a\x20\x20\x20\x20highp\x20float\x20blueColor\x20=\x20color.b\x20*\x2063.0;\x0a\x20\x20\x0a\x20\x20\x20\x20//向下取值\x0a\x20\x20\x20\x20highp\x20vec2\x20quad1;\x0a\x20\x20\x20\x20quad1.y\x20=\x20floor(floor(blueColor)\x20/\x208.0);\x20\x0a\x20\x20\x20\x20quad1.x\x20=\x20floor(blueColor)\x20-\x20(quad1.y\x20*\x208.0);\x0a\x20\x20\x0a\x20\x20\x20\x20//向上取值\x0a\x20\x20\x20\x20highp\x20vec2\x20quad2;\x0a\x20\x20\x20\x20quad2.y\x20=\x20floor(ceil(blueColor)\x20/\x208.0);\x20\x0a\x20\x20\x20\x20quad2.x\x20=\x20ceil(blueColor)\x20-\x20(quad2.y\x20*\x208.0);\x0a\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20//根据小正方形格子和RG通道,获取纹理坐标,每个大格子的大小:1/8=0.125,每个小格子的大小:1/512\x0a\x20\x20\x20\x20highp\x20vec2\x20texPos1;\x0a\x20\x20\x20\x20texPos1.x\x20=\x20(quad1.x\x20*\x200.125)\x20+\x200.5/512.0\x20+\x20((0.125\x20-\x201.0/512.0)\x20*\x20color.r);\x0a\x20\x20\x20\x20texPos1.y\x20=\x20(quad1.y\x20*\x200.125)\x20+\x200.5/512.0\x20+\x20((0.125\x20-\x201.0/512.0)\x20*\x20color.g);\x0a\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20highp\x20vec2\x20texPos2;\x0a\x20\x20\x20\x20texPos2.x\x20=\x20(quad2.x\x20*\x200.125)\x20+\x200.5/512.0\x20+\x20((0.125\x20-\x201.0/512.0)\x20*\x20color.r);\x0a\x20\x20\x20\x20texPos2.y\x20=\x20(quad2.y\x20*\x200.125)\x20+\x200.5/512.0\x20+\x20((0.125\x20-\x201.0/512.0)\x20*\x20color.g);\x0a\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20lowp\x20vec4\x20newColor1\x20=\x20texture2D(lut,\x20texPos1);\x0a\x20\x20\x20\x20lowp\x20vec4\x20newColor2\x20=\x20texture2D(lut,\x20texPos2);\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20lowp\x20vec3\x20newColor\x20=\x20mix(newColor1.rgb,\x20newColor2.rgb,\x20fract(blueColor));\x0a\x0a\x20\x20\x20\x20vec3\x20textureColor\x20=\x20mix(color.rgb,\x20newColor,\x20intensity\x20*\x20parentIntensity\x20*\x201.0);\x0a\x0a\x20\x20\x20\x20gl_FragColor\x20=\x20vec4(textureColor,\x201.0);\x0a}\x0a','npmAlpha','当前浏览器特性支持不足,可能会出现卡顿情况,请使用新版\x20Chrome/Safari/微信体验','_loader','_beautify','mirror','unlinkSync','invalid\x20UTF-8\x20data',':::::::::画面尺寸','charCodeAt','-webkit-box-orient','hwTimestamp','onerror','stickerLoader','getPrototypeOf','getSlope','animation-duration','_container','_lastUniforms','worldAlpha','USER_DATA_PATH','event','degreeEnd','canUse','DEFAULT','DONE','onNetworkStatusChange','-webkit-box-pack','forehead_top_center','nose_right2','REQUEST_FILE_FAIL','atan','-webkit-mask-box-image-slice','getPlatFormType','renderer','letter-spacing','setAttributeNS','callback','已授权,仍无法访问摄像头或麦克风设备','requestQueue','font-family','cacheImage','onTouchMove','listener','pointArray','angles','_detector','ColorDodge','nose','_getCartesianPointsByKeys','getFilename','float\x20blendSubstract(float\x20base,\x20float\x20blend)\x20{\x0a\x09return\x20max(base+blend-1.0,0.0);\x0a}\x0a\x0avec3\x20blendSubstract(vec3\x20base,\x20vec3\x20blend)\x20{\x0a\x09return\x20max(base+blend-vec3(1.0),vec3(0.0));\x0a}\x0a\x0avec3\x20blendSubstract(vec3\x20base,\x20vec3\x20blend,\x20float\x20opacity)\x20{\x0a\x09return\x20(blendSubstract(base,\x20blend)\x20*\x20opacity\x20+\x20blend\x20*\x20(1.0\x20-\x20opacity));\x0a}\x0a\x0a','__proto__','environment','player\x20init\x20fps','auto\x20/\x20auto\x20/\x20auto\x20/\x20auto','uniformData','颜色加深','shader','border-bottom-style','text-decoration-color','bindTexture','float\x20blendScreen(float\x20base,\x20float\x20blend)\x20{\x0a\x09return\x201.0-((1.0-base)*(1.0-blend));\x0a}\x0a\x0avec3\x20blendScreen(vec3\x20base,\x20vec3\x20blend)\x20{\x0a\x09return\x20vec3(blendScreen(base.r,blend.r),blendScreen(base.g,blend.g),blendScreen(base.b,blend.b));\x0a}\x0a\x0avec3\x20blendScreen(vec3\x20base,\x20vec3\x20blend,\x20float\x20opacity)\x20{\x0a\x09return\x20(blendScreen(base,\x20blend)\x20*\x20opacity\x20+\x20base\x20*\x20(1.0\x20-\x20opacity));\x0a}\x0a\x0a','Failed\x20to\x20start\x20the\x20camera','reportApiSpeed','getConfig','callFunction','iterator','REQUEST_FAIL','nose_tip','column-rule-color','getLoader','exports','pageUrl','perspective','Renderer','加载资源','precision\x20highp\x20float;\x0avarying\x20vec2\x20vTextureCoord;\x0auniform\x20sampler2D\x20uSampler;\x0auniform\x20int\x20width;\x0auniform\x20int\x20height;\x0auniform\x20int\x20enable;\x0a\x0auniform\x20vec2\x20left_eye_center;\x0auniform\x20vec2\x20right_eye_center;\x0auniform\x20vec2\x20nose_tip;\x0auniform\x20vec2\x20contour_chin;\x0a\x0auniform\x20vec2\x20nose_bridge5;\x0auniform\x20vec2\x20contour_left4;\x0auniform\x20vec2\x20contour_left9;\x0auniform\x20vec2\x20contour_right4;\x0auniform\x20vec2\x20contour_right9;\x0auniform\x20vec2\x20contour_left10;\x0auniform\x20vec2\x20contour_right10;\x0a//\x20鼻子\x0auniform\x20vec2\x20nose_left1;\x0auniform\x20vec2\x20nose_left2;\x0auniform\x20vec2\x20nose_right1;\x0auniform\x20vec2\x20nose_right2;\x0auniform\x20vec2\x20nose_tip1;\x0auniform\x20vec2\x20nose_bottom;\x0a//\x20嘴唇\x0auniform\x20vec2\x20lip_top_left;\x0auniform\x20vec2\x20lip_top_left_target;\x0auniform\x20vec2\x20lip_top_right;\x0auniform\x20vec2\x20lip_top_right_target;\x0auniform\x20vec2\x20lip_bottom_left;\x0auniform\x20vec2\x20lip_bottom_left_target;\x0auniform\x20vec2\x20lip_bottom_right;\x0auniform\x20vec2\x20lip_bottom_right_target;\x0auniform\x20vec2\x20lip_top_center;\x0auniform\x20vec2\x20lip_top_center_target;\x0auniform\x20vec2\x20lip_bottom_center;\x0auniform\x20vec2\x20lip_bottom_center_target;\x0auniform\x20vec2\x20lip_inner_top;\x0auniform\x20vec2\x20lip_inner_bottom;\x0a//\x20额头\x0auniform\x20vec2\x20forehead_top_center;\x0auniform\x20vec2\x20eyebrow_center;\x0auniform\x20vec2\x20forehead_left;\x0auniform\x20vec2\x20left_eyebrow_center;\x0auniform\x20vec2\x20forehead_right;\x0auniform\x20vec2\x20right_eyebrow_center;\x0a//\x20眼睛\x0auniform\x20vec2\x20right_eye_top;\x0auniform\x20vec2\x20left_eye_top;\x0auniform\x20vec2\x20right_eye_bottom;\x0auniform\x20vec2\x20left_eye_bottom;\x0a//\x20瘦颧骨\x0auniform\x20vec2\x20contour_left3;\x0auniform\x20vec2\x20contour_right3;\x0auniform\x20vec2\x20nose_bridge6;\x0a\x0auniform\x20vec2\x20nose_bridge4;\x0auniform\x20vec2\x20nose_bridge3;\x0auniform\x20vec2\x20nose_bridge2;\x0auniform\x20vec2\x20nose_bridge1;\x0a\x0auniform\x20vec2\x20mouth_lower_lip_bottom;\x0a\x0auniform\x20vec2\x20chin_left;\x0auniform\x20vec2\x20chin_right;\x0a\x0auniform\x20float\x20cheekbone;\x0auniform\x20float\x20lift;\x20//\x20窄脸\x0auniform\x20float\x20shave;\x20//\x20下颌骨\x0auniform\x20float\x20eye;\x20//\x20大眼\x0auniform\x20float\x20chin;\x20//\x20下巴\x0auniform\x20float\x20nose;\x20//\x20鼻子\x0a//\x20uniform\x20float\x20noseBridge;\x0auniform\x20float\x20lip;\x20//\x20嘴唇\x0auniform\x20float\x20forehead;\x20//\x20额头\x0auniform\x20float\x20eyeBrightness;\x20//\x20亮眼\x0auniform\x20float\x20head;\x20//\x20小头\x0a\x0a//\x20曲线形变处理\x0avec2\x20curveWarp(vec2\x20textureCoord,\x20vec2\x20originPosition,\x20vec2\x20targetPosition,\x20float\x20radius)\x0a{\x0a\x20\x20\x20\x20vec2\x20offset\x20=\x20vec2(0.0);\x0a\x20\x20\x20\x20vec2\x20result\x20=\x20vec2(0.0);\x0a\x0a\x20\x20\x20\x20vec2\x20direction\x20=\x20targetPosition\x20-\x20originPosition;\x0a\x0a\x20\x20\x20\x20float\x20infect\x20=\x20distance(textureCoord,\x20originPosition)/radius;\x0a\x0a\x20\x20\x20\x20infect\x20=\x201.0\x20-\x20infect;\x0a\x20\x20\x20\x20infect\x20=\x20clamp(infect,\x200.0,\x201.0);\x0a\x20\x20\x20\x20offset\x20=\x20direction\x20*\x20infect;\x0a\x0a\x20\x20\x20\x20result\x20=\x20textureCoord\x20-\x20offset;\x0a\x0a\x20\x20\x20\x20return\x20result;\x0a}\x0a//\x20usm\x0avec4\x20gaussianBlur(vec2\x20uv,\x20float\x20size)\x20{\x0a\x20\x20\x20\x20const\x20float\x20Pi\x20=\x206.28318530718;\x20//\x20Pi*2\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20//\x20GAUSSIAN\x20BLUR\x20SETTINGS\x20{{{\x0a\x20\x20\x20\x20const\x20float\x20Directions\x20=\x2016.0;\x20//\x20BLUR\x20DIRECTIONS\x20(Default\x2016.0\x20-\x20More\x20is\x20better\x20but\x20slower)\x0a\x20\x20\x20\x20const\x20float\x20Quality\x20=\x204.0;\x20//\x20BLUR\x20QUALITY\x20(Default\x204.0\x20-\x20More\x20is\x20better\x20but\x20slower)\x0a\x20\x20\x20\x20float\x20Size\x20=\x20size;\x20//\x20BLUR\x20SIZE\x20(Radius)\x0a\x20\x20\x20\x20//\x20GAUSSIAN\x20BLUR\x20SETTINGS\x20}}}\x0a\x20\x20\x20\x0a\x20\x20\x20\x20vec2\x20Radius\x20=\x20Size/vec2(float(width),\x20float(height));\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20//\x20Pixel\x20colour\x0a\x20\x20\x20\x20vec4\x20Color\x20=\x20texture2D(uSampler,\x20uv);\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20//\x20Blur\x20calculations\x0a\x20\x20\x20\x20for(\x20float\x20d=0.0;\x20d<Pi;\x20d+=Pi/Directions)\x0a\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20for(float\x20i=1.0/Quality;\x20i<=1.0;\x20i+=1.0/Quality)\x0a\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Color\x20+=\x20texture2D(\x20uSampler,\x20uv+vec2(cos(d),sin(d))*Radius*i);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20//\x20Output\x20to\x20screen\x0a\x20\x20\x20\x20Color\x20/=\x20Quality\x20*\x20Directions;\x0a\x20\x20\x20\x20return\x20Color;\x0a}\x0avec4\x20usm(vec2\x20vTextureCoord,\x20float\x20factor)\x20{\x0a\x20\x20\x20\x20vec4\x20originColor\x20=\x20texture2D(uSampler,\x20vTextureCoord);\x0a\x20\x20\x20\x20//\x20if\x20(factor\x20==\x200.)\x20{\x0a\x20\x20\x20\x20//\x20\x20\x20\x20\x20return\x20originColor;\x0a\x20\x20\x20\x20//\x20}\x0a\x20\x20\x20\x20vec4\x20gaussianColor\x20=\x20gaussianBlur(vTextureCoord,\x203.0);\x0a\x20\x20\x20\x20return\x20gaussianColor\x20*\x20-factor\x20+\x20originColor\x20*\x20(1.0\x20+\x20factor);\x0a}\x0a\x0a\x0a//\x20大眼处理\x0avec2\x20enlargeEye(vec2\x20currentCoordinate,\x20vec2\x20circleCenter,\x20float\x20radius,\x20float\x20intensity)\x0a{\x0a\x20\x20\x20\x20//\x20todo:改成椭圆形的放大\x0a\x20\x20\x20\x20float\x20currentDistance\x20=\x20distance(currentCoordinate,\x20circleCenter);\x0a\x20\x20\x20\x20float\x20weight\x20=\x20currentDistance\x20/\x20radius;\x0a\x20\x20\x20\x20weight\x20=\x201.0\x20-\x20intensity\x20*\x20(1.0\x20-\x20weight\x20*\x20weight);\x0a\x20\x20\x20\x20weight\x20=\x20clamp(weight,\x200.0,\x201.0);\x0a\x20\x20\x20\x20currentCoordinate\x20=\x20circleCenter\x20+\x20(currentCoordinate\x20-\x20circleCenter)\x20*\x20weight;\x0a\x0a\x20\x20\x20\x20return\x20currentCoordinate;\x0a}\x0avec2\x20enlargeEyeEllipse(vec2\x20currentCoordinate,\x20vec2\x20eyeCenter,\x20float\x20majorRadius,\x20float\x20minorRadius,\x20float\x20intensity)\x20{\x0a\x20\x20\x20\x20float\x20currentDistance\x20=\x20distance(currentCoordinate,\x20eyeCenter);\x0a\x0a\x20\x20\x20\x20float\x20cosa\x20=\x20(currentCoordinate.x\x20-\x20eyeCenter.x)\x20/\x20currentDistance;\x0a\x20\x20\x20\x20float\x20sina\x20=\x20(currentCoordinate.y\x20-\x20eyeCenter.y)\x20/\x20currentDistance;\x0a\x20\x20\x20\x20float\x20m\x20=\x20pow(majorRadius\x20*\x20majorRadius\x20*cosa*cosa\x20+\x20\x20minorRadius\x20*\x20minorRadius\x20*\x20sina\x20*\x20sina,\x200.5);\x0a\x0a\x20\x20\x20\x20float\x20weight\x20=\x20currentDistance\x20/\x20m;\x0a\x20\x20\x20\x20weight\x20=\x201.0\x20-\x20intensity\x20*\x20(1.0\x20-\x20weight\x20*\x20weight);\x0a\x20\x20\x20\x20weight\x20=\x20clamp(weight,\x200.0,\x201.0);\x0a\x20\x20\x20\x20currentCoordinate\x20=\x20eyeCenter\x20+\x20(currentCoordinate\x20-\x20eyeCenter)\x20*\x20weight;\x0a\x0a\x20\x20\x20\x20return\x20currentCoordinate;\x0a}\x0a//\x20瘦脸\x0avec2\x20faceLift(vec2\x20currentCoordinate,\x20float\x20faceLength)\x0a{\x0a\x20\x20\x20\x20vec2\x20coordinate\x20=\x20currentCoordinate;\x0a\x20\x20\x20\x20vec2\x20currentPoint\x20=\x20vec2(0.0);\x0a\x20\x20\x20\x20vec2\x20destPoint\x20=\x20vec2(0.0);\x0a\x20\x20\x20\x20float\x20faceLiftScale\x20=\x20lift\x20*\x200.06;\x0a\x20\x20\x20\x20float\x20radius\x20=\x20faceLength\x20*\x200.5;\x0a\x0a\x20\x20\x20\x20currentPoint\x20=\x20contour_left4;\x0a\x20\x20\x20\x20destPoint\x20=\x20currentPoint\x20+\x20(nose_bridge5\x20-\x20currentPoint)\x20*\x20faceLiftScale;\x0a\x20\x20\x20\x20coordinate\x20=\x20curveWarp(coordinate,\x20currentPoint,\x20destPoint,\x20radius);\x0a\x0a\x20\x20\x20\x20currentPoint\x20=\x20contour_right4;\x0a\x20\x20\x20\x20destPoint\x20=\x20currentPoint\x20+\x20(nose_bridge5\x20-\x20currentPoint)\x20*\x20faceLiftScale;\x0a\x20\x20\x20\x20coordinate\x20=\x20curveWarp(coordinate,\x20currentPoint,\x20destPoint,\x20radius);\x0a\x0a\x20\x20\x20\x20radius\x20=\x20radius\x20*\x200.8;\x0a\x20\x20\x20\x20currentPoint\x20=\x20contour_left9;\x0a\x20\x20\x20\x20destPoint\x20=\x20currentPoint\x20+\x20(nose_tip\x20-\x20currentPoint)\x20*\x20(faceLiftScale\x20*\x200.6);\x0a\x20\x20\x20\x20coordinate\x20=\x20curveWarp(coordinate,\x20currentPoint,\x20destPoint,\x20radius);\x0a\x0a\x20\x20\x20\x20currentPoint\x20=\x20contour_right9;\x0a\x20\x20\x20\x20destPoint\x20=\x20currentPoint\x20+\x20(nose_tip\x20-\x20currentPoint)\x20*\x20(faceLiftScale\x20*\x200.6);\x0a\x20\x20\x20\x20coordinate\x20=\x20curveWarp(coordinate,\x20currentPoint,\x20destPoint,\x20radius);\x0a\x0a\x20\x20\x20\x20return\x20coordinate;\x0a}\x0a//\x20鼻子\x0avec2\x20noseShave(vec2\x20currentCoordinate,\x20float\x20faceLength)\x20{\x0a\x20\x20\x20\x20vec2\x20coordinate\x20=\x20currentCoordinate;\x0a\x20\x20\x20\x20vec2\x20currentPoint\x20=\x20vec2(0.0);\x0a\x20\x20\x20\x20vec2\x20destPoint\x20=\x20vec2(0.0);\x0a\x20\x20\x20\x20float\x20scale\x20=\x20nose\x20*\x200.2;\x0a\x20\x20\x20\x20float\x20radius\x20=\x20faceLength\x20*\x200.5;\x0a\x0a\x20\x20\x20\x20currentPoint\x20=\x20nose_left1;\x20//\x20102\x0a\x20\x20\x20\x20destPoint\x20=\x20currentPoint\x20+\x20(nose_tip1\x20-\x20currentPoint)\x20*\x20scale;\x20//\x20nose_tip1:1\x0a\x20\x20\x20\x20coordinate\x20=\x20curveWarp(coordinate,\x20currentPoint,\x20destPoint,\x20radius);\x0a\x0a\x20\x20\x20\x20currentPoint\x20=\x20nose_left2;\x20//\x2097\x0a\x20\x20\x20\x20destPoint\x20=\x20currentPoint\x20+\x20(nose_bottom\x20-\x20currentPoint)\x20*\x20scale;\x20//nose_bottom:\x202\x0a\x20\x20\x20\x20coordinate\x20=\x20curveWarp(coordinate,\x20currentPoint,\x20destPoint,\x20radius);\x0a\x0a\x0a\x20\x20\x20\x20currentPoint\x20=\x20nose_right1;\x20//\x20331\x0a\x20\x20\x20\x20destPoint\x20=\x20currentPoint\x20+\x20(nose_tip1\x20-\x20currentPoint)\x20*\x20scale;\x20//\x20nose_tip1:1\x0a\x20\x20\x20\x20coordinate\x20=\x20curveWarp(coordinate,\x20currentPoint,\x20destPoint,\x20radius);\x0a\x0a\x20\x20\x20\x20currentPoint\x20=\x20nose_right2;\x20//\x20326\x0a\x20\x20\x20\x20destPoint\x20=\x20currentPoint\x20+\x20(nose_bottom\x20-\x20currentPoint)\x20*\x20scale;\x20//nose_bottom:\x202\x0a\x20\x20\x20\x20coordinate\x20=\x20curveWarp(coordinate,\x20currentPoint,\x20destPoint,\x20radius);\x0a\x0a\x20\x20\x20\x20return\x20coordinate;\x0a}\x0a//\x20嘴唇\x0avec2\x20handleLip(vec2\x20currentCoordinate,\x20float\x20faceLength)\x20{\x0a\x20\x20\x20\x20vec2\x20coordinate\x20=\x20currentCoordinate;\x0a\x20\x20\x20\x20vec2\x20currentPoint\x20=\x20vec2(0.0);\x0a\x20\x20\x20\x20vec2\x20destPoint\x20=\x20vec2(0.0);\x0a\x20\x20\x20\x20float\x20scale\x20=\x20lip\x20*\x200.1;\x0a\x0a\x20\x20\x20\x20vec2\x20circleCenter\x20=\x20(lip_inner_top\x20+\x20lip_inner_bottom)\x20/\x202.0;\x0a\x20\x20\x20\x20//\x20当前点的距离\x0a\x20\x20\x20\x20float\x20currentDistance\x20=\x20distance(currentCoordinate,\x20circleCenter);\x0a\x0a\x20\x20\x20\x20//\x20float\x20radius\x20=\x20distance(lip_top_right,\x20lip_top_left)\x20*\x200.6;\x0a\x20\x20\x20\x20//\x20float\x20radius\x20=\x20distance(lip_top_right,\x20lip_top_left)\x20*\x200.6;\x0a\x20\x20\x20\x20float\x20radiusy\x20=\x20distance(lip_inner_top,\x20circleCenter)\x20*\x202.0;\x0a\x20\x20\x20\x20float\x20radiusx\x20=\x20distance(lip_top_right,\x20lip_top_left)\x20/\x202.0\x20*\x202.0;\x0a\x20\x20\x20\x20float\x20cosa\x20=\x20(currentCoordinate.x\x20-\x20circleCenter.x)\x20/\x20currentDistance;\x0a\x20\x20\x20\x20float\x20sina\x20=\x20(currentCoordinate.y\x20-\x20circleCenter.y)\x20/\x20currentDistance;\x0a\x20\x20\x20\x20float\x20m\x20=\x20pow(radiusx\x20*\x20radiusx*cosa*cosa\x20+\x20\x20radiusy\x20*\x20radiusy\x20*\x20sina\x20*\x20sina,\x200.5);\x0a\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20float\x20weight\x20=\x20currentDistance/m;\x0a\x0a\x20\x20\x20\x20weight\x20=\x201.0\x20-\x20abs(scale)\x20*\x20(1.0\x20-\x20weight);\x0a\x20\x20\x20\x20weight\x20=\x20clamp(weight,\x200.0,\x201.0);\x0a\x0a\x20\x20\x20\x20//\x20处理是放大还是缩小\x0a\x20\x20\x20\x20float\x20neg\x20=\x20step(0.0,lip)\x20*\x202.0\x20-1.0;\x0a\x20\x20\x20\x20weight\x20=\x20pow(weight,\x20neg);\x0a\x20\x20\x20\x20currentCoordinate\x20=\x20circleCenter\x20+\x20(currentCoordinate\x20-\x20circleCenter)\x20*\x20weight;\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20return\x20currentCoordinate;\x0a\x0a}\x0a//\x20发际线\x0avec2\x20handleForehead(vec2\x20currentCoordinate,\x20float\x20faceLength)\x20{\x0a\x20\x20\x20\x20\x20vec2\x20coordinate\x20=\x20currentCoordinate;\x0a\x20\x20\x20\x20vec2\x20currentPoint\x20=\x20vec2(0.0);\x0a\x20\x20\x20\x20vec2\x20destPoint\x20=\x20vec2(0.0);\x0a\x20\x20\x20\x20float\x20scale\x20=\x20forehead\x20*\x200.15;\x0a\x20\x20\x20\x20float\x20radius\x20=\x20faceLength\x20*\x200.7;\x0a\x0a\x20\x20\x20\x20currentPoint\x20=\x20forehead_top_center\x20+\x20forehead_top_center\x20-\x20eyebrow_center;\x20//\x2010\x0a\x20\x20\x20\x20destPoint\x20=\x20currentPoint\x20+\x20(eyebrow_center\x20-\x20currentPoint)\x20*\x20scale;\x20//\x20eyebrow_center:9\x0a\x20\x20\x20\x20destPoint.y\x20=\x20clamp(destPoint.y,\x200.0,\x20float(height));\x0a\x20\x20\x20\x20coordinate\x20=\x20curveWarp(coordinate,\x20currentPoint,\x20destPoint,\x20radius);\x0a\x0a\x20\x20\x20\x20currentPoint\x20=\x20forehead_left\x20+\x20forehead_left\x20-\x20left_eyebrow_center;\x20//\x2067\x0a\x20\x20\x20\x20destPoint\x20=\x20currentPoint\x20+\x20(left_eyebrow_center\x20-\x20currentPoint)\x20*\x20scale;\x20//\x20left_eyebrow_center:66\x0a\x20\x20\x20\x20destPoint.y\x20=\x20clamp(destPoint.y,\x200.0,\x20float(height));\x0a\x20\x20\x20\x20coordinate\x20=\x20curveWarp(coordinate,\x20currentPoint,\x20destPoint,\x20radius);\x0a\x0a\x20\x20\x20\x20currentPoint\x20=\x20forehead_right\x20+\x20forehead_right\x20-\x20right_eyebrow_center;\x20//\x20297\x0a\x20\x20\x20\x20destPoint\x20=\x20currentPoint\x20+\x20(right_eyebrow_center\x20-\x20currentPoint)\x20*\x20scale;\x20//\x20right_eyebrow_center:296\x0a\x20\x20\x20\x20destPoint.y\x20=\x20clamp(destPoint.y,\x200.0,\x20float(height));\x0a\x20\x20\x20\x20coordinate\x20=\x20curveWarp(coordinate,\x20currentPoint,\x20destPoint,\x20radius);\x0a\x0a\x0a\x0a\x20\x20\x20\x20return\x20coordinate;\x0a\x0a}\x0a//\x20削脸\x0avec2\x20faceShave(vec2\x20currentCoordinate,\x20float\x20faceLength)\x0a{\x0a\x20\x20\x20\x20vec2\x20coordinate\x20=\x20currentCoordinate;\x0a\x20\x20\x20\x20vec2\x20currentPoint\x20=\x20vec2(0.0);\x0a\x20\x20\x20\x20vec2\x20destPoint\x20=\x20vec2(0.0);\x0a\x20\x20\x20\x20float\x20faceShaveScale\x20=\x20shave\x20*\x200.09;\x0a\x20\x20\x20\x20float\x20radius\x20=\x20faceLength\x20*\x201.0;\x0a\x0a\x20\x20\x20\x20//\x20下巴中心\x0a\x20\x20\x20\x20vec2\x20chinCenter\x20=\x20(contour_chin\x20+\x20mouth_lower_lip_bottom)\x20*\x200.5;\x0a\x20\x20\x20\x20currentPoint\x20=\x20contour_left10;\x0a\x20\x20\x20\x20destPoint\x20=\x20currentPoint\x20+\x20(chinCenter\x20-\x20currentPoint)\x20*\x20faceShaveScale;\x0a\x20\x20\x20\x20coordinate\x20=\x20curveWarp(coordinate,\x20currentPoint,\x20destPoint,\x20radius);\x0a\x0a\x20\x20\x20\x20currentPoint\x20=\x20contour_right10;\x0a\x20\x20\x20\x20destPoint\x20=\x20currentPoint\x20+\x20(chinCenter\x20-\x20currentPoint)\x20*\x20faceShaveScale;\x0a\x20\x20\x20\x20coordinate\x20=\x20curveWarp(coordinate,\x20currentPoint,\x20destPoint,\x20radius);\x0a\x0a\x20\x20\x20\x20return\x20coordinate;\x0a}\x0a//\x20曲线形变处理\x0avec2\x20curveWarpVertical(vec2\x20textureCoord,\x20vec2\x20originPosition,\x20vec2\x20targetPosition,\x20float\x20xRadius,\x20float\x20yRadius)\x0a{\x0a\x20\x20\x20\x20vec2\x20offset\x20=\x20vec2(0.0);\x0a\x20\x20\x20\x20vec2\x20result\x20=\x20vec2(0.0);\x0a\x0a\x20\x20\x20\x20vec2\x20direction\x20=\x20targetPosition\x20-\x20originPosition;\x0a\x0a\x20\x20\x20\x20float\x20infect\x20=\x20(textureCoord.x\x20-\x20originPosition.x)\x20*\x20(textureCoord.x\x20-\x20originPosition.x)\x20/\x20(xRadius\x20*\x20xRadius)\x20+\x20\x0a\x20\x20\x20\x20(textureCoord.y\x20-\x20originPosition.y)\x20*\x20(textureCoord.y\x20-\x20originPosition.y)\x20/\x20(yRadius\x20*\x20yRadius);\x0a\x0a\x20\x20\x20\x20infect\x20=\x201.0\x20-\x20infect;\x0a\x20\x20\x20\x20infect\x20=\x20clamp(infect,\x200.0,\x201.0);\x0a\x20\x20\x20\x20offset\x20=\x20direction\x20*\x20infect;\x0a\x0a\x20\x20\x20\x20result\x20=\x20textureCoord\x20-\x20offset;\x0a\x0a\x20\x20\x20\x20return\x20result;\x0a}\x0a//\x20处理下巴\x0avec2\x20chinChange(vec2\x20currentCoordinate,\x20float\x20faceLength)\x0a{\x0a\x20\x20\x20\x20vec2\x20coordinate\x20=\x20currentCoordinate;\x0a\x20\x20\x20\x20vec2\x20currentPoint\x20=\x20vec2(0.0);\x0a\x20\x20\x20\x20vec2\x20destPoint\x20=\x20vec2(0.0);\x0a\x20\x20\x20\x20float\x20chinScale\x20=\x20-chin\x20*\x200.4;\x0a\x20\x20\x20\x20float\x20radius\x20=\x20faceLength\x20*\x200.3;\x0a\x20\x20\x20\x20vec2\x20chinCenter\x20=\x20contour_chin\x20+\x20(mouth_lower_lip_bottom\x20-\x20contour_chin)\x20*\x200.2;\x0a\x20\x20\x20\x20//\x20下巴尖\x0a\x20\x20\x20\x20currentPoint\x20=\x20contour_chin;\x0a\x20\x20\x20\x20destPoint\x20=\x20currentPoint\x20+\x20(chinCenter\x20-\x20currentPoint)\x20*\x20chinScale;\x0a\x20\x20\x20\x20coordinate\x20=\x20curveWarp(coordinate,\x20currentPoint,\x20destPoint,\x20radius);\x0a\x0a\x20\x20\x20\x20//\x20下巴尖左右各取一个点平滑下巴\x0a\x20\x20\x20\x20float\x20r\x20=\x200.3\x20-\x200.1\x20*\x20step(0.0,chin);\x0a\x20\x20\x20\x20currentPoint\x20=\x20chin_left;\x0a\x20\x20\x20\x20destPoint\x20=\x20currentPoint\x20+\x20(chinCenter\x20-\x20currentPoint)\x20*\x20chinScale\x20*\x20r;\x0a\x20\x20\x20\x20coordinate\x20=\x20curveWarp(coordinate,\x20currentPoint,\x20destPoint,\x20radius);\x0a\x0a\x20\x20\x20\x20\x20currentPoint\x20=\x20chin_right;\x0a\x20\x20\x20\x20destPoint\x20=\x20currentPoint\x20+\x20(chinCenter\x20-\x20currentPoint)\x20*\x20chinScale\x20*\x20r;\x0a\x20\x20\x20\x20coordinate\x20=\x20curveWarp(coordinate,\x20currentPoint,\x20destPoint,\x20radius);\x0a\x0a\x20\x20\x20\x20return\x20coordinate;\x0a}\x0a\x0avec2\x20scaleHead(vec2\x20currentCoordinate)\x20{\x0a\x20\x20\x20\x20vec2\x20coordinate\x20=\x20currentCoordinate;\x0a\x20\x20\x20\x20float\x20headRadius\x20=\x20distance(contour_chin,\x20nose_bridge5)\x20*\x201.8;\x0a\x20\x20\x20\x20float\x20isWithin\x20=\x201.0-step(headRadius,\x20distance(currentCoordinate,\x20nose_bridge5));\x0a\x20\x20\x20\x20//\x20if\x20(distance(currentCoordinate,\x20nose_bridge5)\x20<=\x20headRadius)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20float\x20weight\x20=\x20isWithin\x20*\x20(1.0\x20-\x20distance(currentCoordinate,\x20nose_bridge5)\x20/\x20headRadius);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20coordinate\x20=\x20nose_bridge5\x20+\x20(coordinate\x20-\x20nose_bridge5)\x20*\x20(1.0+weight\x20*\x200.12*head);\x0a\x20\x20\x20\x20//\x20}\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x0a\x20\x20\x20\x20return\x20coordinate;\x0a}\x0a//\x20颧骨\x0avec2\x20handleCheekbone(vec2\x20currentCoordinate,\x20float\x20faceLength)\x20{\x0a\x20\x20vec2\x20coordinate\x20=\x20currentCoordinate;\x0a\x20\x20vec2\x20currentPoint\x20=\x20vec2(0.0);\x0a\x20\x20vec2\x20destPoint\x20=\x20vec2(0.0);\x0a\x20\x20float\x20scale\x20=\x20cheekbone\x20*\x200.05;\x0a\x20\x20float\x20radius\x20=\x20faceLength\x20*\x200.45;\x0a\x0a\x20\x20currentPoint\x20=\x20(contour_left4\x20+\x20contour_left3)\x20*\x200.5;\x0a\x20\x20destPoint\x20=\x20currentPoint\x20+\x20(nose_bridge6\x20-\x20currentPoint)\x20*\x20scale;\x0a\x20\x20coordinate\x20=\x20curveWarp(coordinate,\x20currentPoint,\x20destPoint,\x20radius);\x0a\x0a\x20\x20currentPoint\x20=\x20(contour_right4\x20+\x20contour_right3)\x20*\x200.5;\x0a\x20\x20destPoint\x20=\x20currentPoint\x20+\x20(nose_bridge6\x20-\x20currentPoint)\x20*\x20scale;\x0a\x20\x20coordinate\x20=\x20curveWarp(coordinate,\x20currentPoint,\x20destPoint,\x20radius);\x0a\x0a\x20\x20return\x20coordinate;\x0a\x0a}\x0a\x0avec4\x20eyeBright(vec2\x20currentCoordinate)\x20{\x0a\x20\x20\x20\x20vec2\x20coordinate\x20=\x20\x20currentCoordinate\x20*\x20vec2(float(width),\x20float(height));\x0a\x0a\x20\x20\x20\x20float\x20iris_size_size\x20=\x20distance(left_eye_top,\x20left_eye_bottom);\x0a\x20\x20\x20\x20vec2\x20left_center\x20=\x20(left_eye_top\x20+\x20left_eye_bottom)/2.0;\x0a\x20\x20\x20\x20vec2\x20right_center\x20=\x20(right_eye_top\x20+\x20right_eye_bottom)/2.0;\x0a\x20\x20\x20\x20float\x20flag\x20=\x20(1.0-step(iris_size_size,\x20distance(coordinate,\x20left_center)))\x20+\x20(1.0-step(iris_size_size,\x20distance(coordinate,\x20right_center)));\x0a\x20\x20\x20\x20//\x20if\x20((distance(coordinate,\x20left_center)\x20<=\x20iris_size_size\x20||\x20distance(coordinate,\x20right_center)\x20<=\x20iris_size_size))\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20usm(currentCoordinate,\x20flag\x20*\x20clamp(eyeBrightness,0.0,1.0));\x0a\x20\x20\x20\x20//\x20\x20\x20\x20\x20return;\x0a\x20\x20\x20\x20//\x20}\x0a\x20\x20\x20\x20//\x20gl_FragColor\x20=\x20texture2D(uSampler,\x20currentCoordinate);\x0a}\x0a\x0avoid\x20main()\x0a{\x0a\x20\x20\x20\x20vec2\x20coordinate\x20=\x20vTextureCoord.xy;\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20//\x20禁用美型处理或者鼻子不在图像中,则直接绘制\x0a\x20\x20\x20\x20float\x20enableFlag\x20=\x20step(1.0,\x20float(enable))\x20*\x20(step(0.03,\x20nose_tip.x\x20/\x20float(width))\x20\x20+\x20step(0.03,\x20nose_tip.y\x20/\x20float(height)));\x0a\x20\x20\x20\x20enableFlag\x20=\x20clamp(enableFlag,\x200.0,\x201.0);\x0a\x20\x20\x20\x20//\x20if\x20(enable\x20==\x200\x20||\x20((nose_tip.x\x20/\x20float(width)\x20<=\x200.03)\x20||\x20(nose_tip.y\x20/\x20float(height))\x20<=\x200.03))\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20vec4\x20color\x20=\x20texture2D(uSampler,\x20coordinate);\x0a\x0a\x20\x20\x20\x20//\x20\x20\x20\x20\x20gl_FragColor\x20=\x20color;\x0a\x20\x20\x20\x20//\x20\x20\x20\x20\x20return;\x0a\x20\x20\x20\x20//\x20}\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x0a\x20\x20\x20\x20//\x20将坐标转成图像大小,这里是为了方便计算\x0a\x20\x20\x20\x20coordinate\x20=\x20vTextureCoord\x20*\x20vec2(float(width),\x20float(height));\x0a\x0a\x20\x20\x20\x20//\x20两个瞳孔的距离\x0a\x20\x20\x20\x20float\x20eyeDistance\x20=\x20distance(left_eye_center,\x20right_eye_center);\x20\x0a\x0a\x20\x20\x20\x20//\x20瘦脸\x0a\x20\x20\x20\x20coordinate\x20=\x20faceLift(coordinate,\x20eyeDistance);\x0a\x0a\x20\x20\x20\x20//\x20削脸\x0a\x20\x20\x20\x20coordinate\x20=\x20faceShave(coordinate,\x20eyeDistance);\x0a\x0a\x20\x20\x20\x20//\x20下巴\x0a\x20\x20\x20\x20coordinate\x20=\x20chinChange(coordinate,\x20eyeDistance);\x0a\x0a\x20\x20\x20\x20//\x20鼻子\x0a\x20\x20\x20\x20coordinate\x20=\x20noseShave(coordinate,eyeDistance);\x0a\x0a\x20\x20\x20\x20//\x20嘴唇厚度\x0a\x20\x20\x20\x20coordinate\x20=\x20handleLip(coordinate,eyeDistance);\x0a\x0a\x20\x20\x20\x20//\x20发际线\x0a\x20\x20\x20\x20coordinate\x20=\x20handleForehead(coordinate,eyeDistance);\x0a\x0a\x20\x20\x20\x20//\x20颧骨\x0a\x20\x20\x20\x20coordinate\x20=\x20handleCheekbone(coordinate,eyeDistance);\x0a\x0a\x20\x20\x20\x20//\x20小头\x0a\x20\x20\x20\x20coordinate\x20=\x20scaleHead(coordinate);\x0a\x0a\x20\x20\x20\x20//\x20大眼\x0a\x20\x20\x20\x20float\x20eyeEnlarge\x20=\x20eye\x20*\x200.16;\x20//\x20放大倍数\x0a\x20\x20\x20\x20eyeEnlarge\x20=\x20clamp(eyeEnlarge,\x200.0,\x201.0);\x0a\x20\x20\x20\x20//\x20if\x20(eyeEnlarge\x20>\x200.0)\x20{\x0a\x20\x20\x20\x20float\x20radius\x20=\x20eyeDistance\x20*\x200.33;\x20//\x20眼睛放大半径\x0a\x20\x20\x20\x20//\x20float\x20radius\x20=\x20eyeDistance\x20*\x200.33;\x20//\x20眼睛放大半径\x0a\x20\x20\x20\x20//\x20coordinate\x20=\x20enlargeEye(coordinate,\x20left_eye_center\x20+\x20(right_eye_center\x20-\x20left_eye_center)\x20*\x200.05,\x20radius,\x20eyeEnlarge);\x0a\x20\x20\x20\x20//\x20coordinate\x20=\x20enlargeEye(coordinate,\x20right_eye_center\x20+\x20(left_eye_center\x20-\x20right_eye_center)\x20*\x200.05,\x20radius,\x20eyeEnlarge);\x0a\x20\x20\x20\x20coordinate\x20=\x20enlargeEyeEllipse(coordinate,\x20left_eye_center\x20+\x20(right_eye_center\x20-\x20left_eye_center)\x20*\x200.05,\x20\x20eyeDistance\x20*\x200.45,\x20eyeDistance\x20*\x200.25,\x20eyeEnlarge);\x0a\x20\x20\x20\x20coordinate\x20=\x20enlargeEyeEllipse(coordinate,\x20right_eye_center\x20+\x20(left_eye_center\x20-\x20right_eye_center)\x20*\x200.05,\x20eyeDistance\x20*\x200.45,\x20eyeDistance\x20*\x200.25,\x20eyeEnlarge);\x0a\x20\x20\x20\x20//\x20}\x0a\x0a\x20\x20\x20\x20//\x20转变回原来的纹理坐标系\x0a\x20\x20\x20\x20coordinate\x20=\x20coordinate\x20/\x20vec2(float(width),\x20float(height));\x0a\x0a\x20\x20\x20\x20//\x20输出图像带上名目\x0a\x20\x20\x20\x20vec4\x20dealedColor\x20=\x20eyeBright(coordinate);\x0a\x0a\x20\x20\x20\x20//\x20输出图像\x0a\x20\x20\x20\x20//\x20gl_FragColor\x20=\x20texture2D(uSampler,\x20coordinate);\x0a\x20\x20\x20\x20gl_FragColor\x20=\x20mix(color,\x20dealedColor,\x20enableFlag);\x0a}','eyeBrightness','getRecorder','mirrorchange','viewport','\x22PingFang\x20SC\x22','framebuffer','This\x20browser\x20is\x20not\x20supported.\x20If\x20Chrome\x20is\x20used,\x20enable\x20hardware\x20acceleration\x20for\x20the\x20browser','BaseRenderTexture','startAudioRecorder','events','terminate','aSamplerSize','LEFT_FACE_OVAL2','/speed/custom','grid-column-end','unshift','flex-grow','hide','mask-type','float\x20blendOverlay(float\x20base,\x20float\x20blend)\x20{\x0a\x09return\x20base<0.5?(2.0*base*blend):(1.0-2.0*(1.0-base)*(1.0-blend));\x0a}\x0avec3\x20blendOverlay(vec3\x20base,\x20vec3\x20blend)\x20{\x0a\x09return\x20vec3(blendOverlay(base.r,blend.r),blendOverlay(base.g,blend.g),blendOverlay(base.b,blend.b));\x0a}\x0avec3\x20blendHardLight(vec3\x20base,\x20vec3\x20blend)\x20{\x0a\x09return\x20blendOverlay(blend,base);\x0a}\x0a\x0avec3\x20blendHardLight(vec3\x20base,\x20vec3\x20blend,\x20float\x20opacity)\x20{\x0a\x09return\x20(blendHardLight(base,\x20blend)\x20*\x20opacity\x20+\x20base\x20*\x20(1.0\x20-\x20opacity));\x0a}\x0a\x0a','packInterleavedGeometry','run','heiyanquan.png','QuadUv','INFO','blendMode','stop-opacity','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20tempFilePath:\x20','optionalAccess','production','uvsFloat32','BLEND','face\x20detect\x20stop\x20failed','processData','front','OVERLAY','input','VERSION','\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20data:\x20','readyState','globalUniforms','stringify','roundFrame','dermabrasion','toString','margin-right','ARRAY_BUFFER','decorate','invalid\x20gzip\x20data','authFunc','native','hackHandler','stopRecord','_renderToBatch','onCameraFrame','font-kerning','lutSkin','break','updateLocalTransform','batch2d','nasolabialFolds','border-image-repeat','ext1','\x0aattribute\x20vec2\x20aVertexPosition;\x0a\x0auniform\x20mat3\x20projectionMatrix;\x0a\x0avarying\x20vec2\x20vTextureCoord;\x0a\x0auniform\x20vec4\x20inputSize;\x0auniform\x20vec4\x20outputFrame;\x0auniform\x20vec2\x20flipY;\x0a\x0avec4\x20filterVertexPosition(\x20void\x20)\x0a{\x0a\x20\x20\x20\x20vec2\x20position\x20=\x20aVertexPosition\x20*\x20max(outputFrame.zw,\x20vec2(0.))\x20+\x20outputFrame.xy;\x0a\x0a\x20\x20\x20\x20return\x20vec4((projectionMatrix\x20*\x20vec3(position,\x201.0)).xy,\x200.0,\x201.0);\x0a}\x0a\x0avec2\x20filterTextureCoord(\x20void\x20)\x0a{\x0a\x20\x20\x20\x20return\x20aVertexPosition\x20*\x20(outputFrame.zw\x20*\x20inputSize.zw);\x0a}\x0a\x0avoid\x20main(void)\x0a{\x0a\x20\x20\x20\x20gl_Position\x20=\x20filterVertexPosition();\x0a\x20\x20\x20\x20vTextureCoord\x20=\x20filterTextureCoord();\x0a\x20\x20\x20\x20vTextureCoord.y\x20=\x20flipY.x\x20+\x20flipY.y\x20*\x20vTextureCoord.y;\x0a}\x0a\x0a','_packedGeometries','target','filename','backdropUniformName','currentResult','getFullYear','urlHandler','effect_sticker_3d','generateLog','1.1.1','\x22:\x22function\x20','__init4','mipmap','buildDrawCalls','cacheInverse','createLivePusherContext','No\x20errors\x20captured','onComplete','baseTexture','background-attachment','LogType\x20has\x20discard,\x20please\x20use\x20logType','_filter','_recursivePostUpdateTransform','32768','session','clip','buffered-rendering','clearColor','bufferData','root','canIUse','Signature\x20timeout,\x20retry\x20failed.','resolve','pageX','glMatrixMat4Multiply','aegisRequestStartTime','reportTime','eventUrl','_ready','auth','wx\x20fetch\x20error','mp3','butt','success','uri','float\x20blendColorBurn(float\x20base,\x20float\x20blend)\x20{\x0a\x09return\x20(blend==0.0)?blend:max((1.0-((1.0-base)/blend)),0.0);\x0a}\x0a\x0avec3\x20blendColorBurn(vec3\x20base,\x20vec3\x20blend)\x20{\x0a\x09return\x20vec3((base.r,blend.r),blendColorBurn(base.g,blend.g),blendColorBurn(base.b,blend.b));\x0a}\x0a\x0a\x0avec3\x20blendColorBurn(vec3\x20base,\x20vec3\x20blend,\x20float\x20opacity)\x20{\x0a\x09return\x20(blendColorBurn(base,\x20blend)\x20*\x20opacity\x20+\x20base\x20*\x20(1.0\x20-\x20opacity));\x0a}\x0a\x0a','camera\x20start\x20record\x20timeout','sqrt','video','pending','reportTime:\x20second\x20param\x20must\x20be\x20number','stepEnd','removeEffectBeauties','currentFrame','reportEvent\x20params\x20error','getUniformLocation','/ar/','没有麦克风权限,请到设置-隐私中开启相关权限','\x0avarying\x20vec3\x20vTextureCoord;\x0a\x0auniform\x20sampler2D\x20uSampler;\x0auniform\x20vec4\x20uColor;\x0auniform\x20mat3\x20uMapCoord;\x0auniform\x20vec4\x20uClampFrame;\x0auniform\x20vec2\x20uClampOffset;\x0a\x0avoid\x20main(void)\x0a{\x0avec2\x20coord\x20=\x20mod(vTextureCoord.xy\x20/\x20vTextureCoord.z\x20-\x20uClampOffset,\x20vec2(1.0,\x201.0))\x20+\x20uClampOffset;\x0acoord\x20=\x20(uMapCoord\x20*\x20vec3(coord,\x201.0)).xy;\x0acoord\x20=\x20clamp(coord,\x20uClampFrame.xy,\x20uClampFrame.zw);\x0a\x0avec4\x20sample\x20=\x20texture2D(uSampler,\x20coord);\x0agl_FragColor\x20=\x20sample\x20*\x20uColor;\x0a}\x0a','LinearDodge','Default','quaternion','OFF','timestamp','setItem','pageNavigationStartTime','findId','UNSIGNED_BYTE','addTicker','onAppRoute','\x20*\x20','parent','detected','float\x20blendLinearBurn(float\x20base,\x20float\x20blend)\x20{\x0a\x09//\x20Note\x20:\x20Same\x20implementation\x20as\x20BlendSubtractf\x0a\x09return\x20max(base+blend-1.0,0.0);\x0a}\x0a\x0afloat\x20blendLinearDodge(float\x20base,\x20float\x20blend)\x20{\x0a\x09//\x20Note\x20:\x20Same\x20implementation\x20as\x20BlendAddf\x0a\x09return\x20min(base+blend,1.0);\x0a}\x0a\x0a\x0afloat\x20blendLinearLight(float\x20base,\x20float\x20blend)\x20{\x0a\x09return\x20blend<0.5?blendLinearBurn(base,(2.0*blend)):blendLinearDodge(base,(2.0*(blend-0.5)));\x0a}\x0a\x0avec3\x20blendLinearLight(vec3\x20base,\x20vec3\x20blend)\x20{\x0a\x09return\x20vec3(blendLinearLight(base.r,blend.r),blendLinearLight(base.g,blend.g),blendLinearLight(base.b,blend.b));\x0a}\x0a\x0avec3\x20blendLinearLight(vec3\x20base,\x20vec3\x20blend,\x20float\x20opacity)\x20{\x0a\x09return\x20(blendLinearLight(base,\x20blend)\x20*\x20opacity\x20+\x20base\x20*\x20(1.0\x20-\x20opacity));\x0a}\x0a\x0a','scrollHeight','processLipEdge','decoder\x20start\x20success','AXIS_Y','onBeforeRequest','log','_keypoints','Need\x20to\x20enter\x20the\x20page\x20again\x20for\x20the\x20license\x20to\x20take\x20effect','alphaMode','Difference','navigation','Cannot\x20convert\x20undefined\x20or\x20null\x20to\x20object','horizontal-tb','instances','addToCache','0014','0034','Container','offsetLeft','nonzero','VERTEX_SHADER','publishErrorLog','modifyRequest','mergeTracks','installedPlugins','abort','_enable','$walk','_texture','stroke-miterlimit','-webkit-mask-box-image-width','eyebrow_center','arc','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20status:\x20','pvUrl','LINEAR_DODGE','AJAX_ERROR:\x20cloud.callContainer:fail\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20status:\x20','freq\x20should\x20be\x20>0','cors','nowrap','_quatDirtyId','mapCoord','stepStart','POST','return\x20this','_quatUpdateId','lineWidth','/speed/performance','off','aColor','Type','access','bufferchange','Graphics','_currentSurfaceID','kind','TEXTURE_2D','invalid\x20zlib\x20data','stopFaceDetect','loadImage','Darken','Object\x20is\x20not\x20iterable.','Invalid\x20\x22input\x22\x20value,\x20Only\x20the\x20image\x20type\x20can\x20be\x20entered\x20for\x20remote\x20links','zip','audioPath','transaction','pushBuffer','CUSTOM','Sticker','_focus','uploadFile','EVENT','border-image-outset','translationMatrix','SET_EFFECT_ERROR','plugins','others','design:paramtypes','7713244Fzsfsi','contour_left3','contains','min-height','authScope','focus','application/json','affinePreserveOrientation','no\x20face\x20detected','0002','error\x20happen\x20when\x20aegis\x20stringify:\x20\x0a\x20','onMessage','IMG','enableFaceDetect','float\x20blendLinearBurn(float\x20base,\x20float\x20blend)\x20{\x0a\x09//\x20Note\x20:\x20Same\x20implementation\x20as\x20BlendSubtractf\x0a\x09return\x20max(base+blend-1.0,0.0);\x0a}\x0a\x0a\x0avec3\x20blendLinearBurn(vec3\x20base,\x20vec3\x20blend)\x20{\x0a\x09//\x20Note\x20:\x20Same\x20implementation\x20as\x20BlendSubtract\x0a\x09return\x20max(base+blend-vec3(1.0),vec3(0.0));\x0a}\x0a\x0avec3\x20blendLinearBurn(vec3\x20base,\x20vec3\x20blend,\x20float\x20opacity)\x20{\x0a\x09return\x20(blendLinearBurn(base,\x20blend)\x20*\x20opacity\x20+\x20base\x20*\x20(1.0\x20-\x20opacity));\x0a}\x0a\x0a','mapBilinearSprite','zoom','57,65,62,54,69,6d,65,73,74,61,6d,70','onloadstart','__init','set\x20filter\x20no\x20meshVertex','_currentTime','license','limit','getTime','mask','activeState','limitSize','uniformGroup','aTextureId','RIGHT_FACE_OVAL','62,61,63,6b,67,72,6f,75,6e,64','__wbindgen_realloc','-webkit-border-horizontal-spacing','hackRequest','unknown\x20cpr\x20type\x20','initCameraIns','a_en','has','SET_FILTER_ERROR','mem','uvRespectAnchor','isGetSample','pointer-events','wx.cloud.callFunction.','offsetHeight','invalid\x20block\x20type','_dcIndex','onTouchEnd','touch','vertexTrimmedData','uClampFrame','addTrack','subarray','createCanvas','getFileSystemManager\x20file','live-pusher\x20height\x20cannot\x20be\x20greater\x20than\x20720px,currently\x20is\x20','rate','function','getImageData','_aIndex','Program','xUnit','_textureID','justify-items','finish','onReport','substring','attrs','worker','unlink','eye','chin','convertTo3d','face.png','Failed\x20to\x20execute\x20\x27send\x27\x20on\x20\x27XMLHttpRequest\x27:\x20The\x20object\x27s\x20state\x20must\x20be\x20OPENED.','handleSpriteSheet','copy','ctrlKey','videoRecorder','string','symbol','body','padding-bottom','progObj','shape-rendering','text-transform','-webkit-box-ordinal-group','addTaskConf','over\x20right','_initWasmWrapper','_renderFunc','timeEnd','appLaunch','buffers','world','EffectId','disable','window','__config','timer','radiusY','indexOf','readFile','无权访问此接口,请确认License版本信息','线性加深','setBeauty','缺少输入,\x20请设置input或camera参数','getLevel','return','wx\x20init\x20face\x20fail','_events','\x0auniform\x20sampler2D\x20uSampler;\x0avarying\x20vec2\x20vTextureCoord;\x0a\x0avoid\x20main()\x20{\x0a\x20\x20vec4\x20color\x20=\x20texture2D(uSampler,\x20vTextureCoord);\x0a\x20\x20gl_FragColor\x20=\x20vec4(color.rgb,color.r);\x0a}\x0a','TRACE','SPEED','trim','common_cache','affine','Auth','_intensityDarkCircle','back','whiten','_sx','pluginName','net5g','Preset','transition-timing-function','originRequest','outline-width','FilterSystem','whiteList','precision\x20mediump\x20float;\x0avarying\x20vec2\x20vUvs;\x0auniform\x20sampler2D\x20mask;\x0auniform\x20float\x20intensity;\x0a\x0avoid\x20main()\x20{\x0a\x20\x20vec4\x20color\x20=\x20texture2D(mask,\x20vUvs);\x0a\x20\x20color\x20=\x20vec4(color.rgb,\x20color.a)\x20*\x20intensity;\x0a\x20\x20gl_FragColor\x20=\x20color;\x0a}','getElementsByTagName','0px\x200px','renderable','getDepth','hackNetWork','style','-webkit-mask-size','aegisPlugin','downloadFile','\x0auniform\x20sampler2D\x20uSampler;\x0avarying\x20vec2\x20vTextureCoord;\x0a\x0avoid\x20main()\x20{\x0a\x20\x20vec2\x20p\x20=\x20vTextureCoord;\x0a\x20\x20p.x\x20=\x201.0\x20-\x20p.x;\x0a\x20\x20vec4\x20color\x20=\x20texture2D(uSampler,\x20p);\x0a\x20\x20gl_FragColor\x20=\x20color;\x0a}\x0a','getDistanceOfTwoPoints','Symbol.iterator\x20is\x20not\x20defined.','preload\x20finish:','wx.cloud.callContainer.','reportEvent','65,66,66,65,63,74,5f,6d,61,6b,65,75,70','system','REPEAT','precision\x20highp\x20float;\x0aattribute\x20vec2\x20aVertexPosition;\x0aattribute\x20vec2\x20aTextureCoord;\x0a\x0auniform\x20mat3\x20projectionMatrix;\x0auniform\x20mat3\x20translationMatrix;\x0auniform\x20mat3\x20uTextureMatrix;\x0a\x0avarying\x20vec2\x20vTextureCoord;\x0a\x0avoid\x20main(void)\x0a{\x0agl_Position.xyw\x20=\x20projectionMatrix\x20*\x20translationMatrix\x20*\x20vec3(aVertexPosition,\x201.0);\x0agl_Position.z\x20=\x200.0;\x0a\x0avTextureCoord\x20=\x20(uTextureMatrix\x20*\x20vec3(aTextureCoord,\x201.0)).xy;\x0a}\x0a','dominant-baseline','removeTicker','nose_bridge6','statusText','去设置','screenY','enumerable','text-decoration-style','select','setFilter','setToMultLegacy','webgl','-webkit-appearance','next','speedSample','This\x20browser\x20is\x20not\x20supported.\x20Please\x20use\x20the\x20latest\x20version\x20of\x20Chrome,\x20Safari,\x20or\x20WeChat','init','geometry','init\x20fps\x20error','lift','cloudSuccessCallback','run2','正片叠底','ALL','getInputNode','Require\x20\x22input\x22\x20or\x20\x22camera\x22\x20parameter','hideLoading','right_eye_top','onreadystatechange','_currentProjID','Mesh','Filter','intensityDarkCircle','border-bottom-left-radius','1.0.23-9','float\x20blendSoftLight(float\x20base,\x20float\x20blend)\x20{\x0a\x09return\x20(blend<0.5)?(2.0*base*blend+base*base*(1.0-2.0*blend)):(sqrt(base)*(2.0*blend-1.0)+2.0*base*(1.0-blend));\x0a}\x0a\x0avec3\x20blendSoftLight(vec3\x20base,\x20vec3\x20blend)\x20{\x0a\x09return\x20vec3(blendSoftLight(base.r,blend.r),blendSoftLight(base.g,blend.g),blendSoftLight(base.b,blend.b));\x0a}\x0a\x0a\x0avec3\x20blendSoftLight(vec3\x20base,\x20vec3\x20blend,\x20float\x20opacity)\x20{\x0a\x09return\x20(blendSoftLight(base,\x20blend)\x20*\x20opacity\x20+\x20base\x20*\x20(1.0\x20-\x20opacity));\x0a}\x0a\x0a','forEach','Timer\x20','texSubImage2D','getAngles','isPrimary','KEY_POINTS','pointerType','setResolution','arCacheStorage','faceDetect','getRealSize','equals','getFrameData','_currentLocalID','Code','Resolution\x20changes\x20cause\x20effects\x20to\x20be\x20lost,\x20Please\x20reset','readystatechange','ctx','1359221WpqmPJ','MULTIPLY','-webkit-text-orientation','pivot','dcutoff','CAMERA','consume','test','end','setRenderer','setRequestHeader','getUniforms','lastIndexOf','passive','json','pushWithCheck','EffectList','binary','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0areq\x20param:\x20','checkIsBeauti','no\x20stream\x20handler','COLOR_DODGE','onPageNotFound','unexpected\x20EOF','onError','entries','_uc','inputClamp','updateTexture','splice','user-select','remove','`,\x20error\x20is:\x20','pow','prepareBackdrop','16384','initialized','find','__wbindgen_free','lip_top_right_target','Preview','Failed\x20to\x20read\x20WX\x20file\x20cache\x20data','_sy','拉取远程bin','VITALS','collapse','unknown','getResponseHeader','beforeReportSpeed','ratio','_previousFrame','eyeWhiten','This\x20browser\x20offers\x20limited\x20support\x20for\x20the\x20SDK,\x20and\x20stutter\x20may\x20occur.\x20Please\x20use\x20the\x20latest\x20version\x20of\x20Chrome,\x20Safari,\x20or\x20WeChat','outline-color','showLoading','frame0','tagName','outputCanvas','version','shape-margin','_autoUpdate','common_cache_domain','checkPusherSize','getAttribLocation','fail','pointerdown','classList','sends','duration','warn','save2Offline','chin_left','_draw','render','distortion','program','changedTouches','uniformCode','61,76,61,74,61,72,5f,61,72','clientLeft','onMemoryWarning','getContext','cursor','getFilterInstance','showWidth','ms\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20data:\x20','euler','setToRotationTranslationScale','nose_tip1','takePhotoPromises','createVKSession','flipY','getVideoDecoder','isLoaded','addChild','AUTH_API_FAIL','join','no-drag','createObjectStore','$getConfig','radius','glMatrixMat4Invert','development','defineApiProperty','flush','sourceFrame','_worldID','copyFrom','stroke','recording','cos','pageY','sent','getMeshVertex','cacheNum','BRIDGE_ERROR','animation-delay','logCreated','assign','formatter','小程序读取缓存失败','Lighten','decoder\x20start\x20fail','visibilityState','precision\x20lowp\x20float;\x0auniform\x20sampler2D\x20uSampler;\x0avarying\x20lowp\x20vec2\x20vTextureCoord;\x0a\x0auniform\x20int\x20width;\x0auniform\x20int\x20height;\x0a\x0auniform\x20float\x20intensity;\x0a\x0avoid\x20main()\x20{\x0a\x20\x20\x20\x20vec3\x20centralColor;\x0a\x0a\x20\x20\x20\x20centralColor\x20=\x20texture2D(uSampler,\x20vTextureCoord).rgb;\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20//\x20if(intensity\x20<\x200.01)\x20{\x0a\x20\x20\x20\x20//\x20\x20\x20\x20\x20gl_FragColor\x20=\x20vec4(centralColor,\x201.0);\x0a\x20\x20\x20\x20//\x20\x20\x20\x20\x20return;\x0a\x20\x20\x20\x20//\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20float\x20x_a\x20=\x20float(width);\x0a\x20\x20\x20\x20\x20\x20\x20\x20float\x20y_a\x20=\x20float(height);\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20float\x20mul_x\x20=\x202.0\x20/\x20x_a;\x0a\x20\x20\x20\x20\x20\x20\x20\x20float\x20mul_y\x20=\x202.0\x20/\x20y_a;\x0a\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20blurCoordinates0\x20=\x20vTextureCoord\x20+\x20vec2(0.0\x20*\x20mul_x,\x20-10.0\x20*\x20mul_y);\x0a\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20blurCoordinates2\x20=\x20vTextureCoord\x20+\x20vec2(8.0\x20*\x20mul_x,\x20-5.0\x20*\x20mul_y);\x0a\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20blurCoordinates4\x20=\x20vTextureCoord\x20+\x20vec2(8.0\x20*\x20mul_x,\x205.0\x20*\x20mul_y);\x0a\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20blurCoordinates6\x20=\x20vTextureCoord\x20+\x20vec2(0.0\x20*\x20mul_x,\x2010.0\x20*\x20mul_y);\x0a\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20blurCoordinates8\x20=\x20vTextureCoord\x20+\x20vec2(-8.0\x20*\x20mul_x,\x205.0\x20*\x20mul_y);\x0a\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20blurCoordinates10\x20=\x20vTextureCoord\x20+\x20vec2(-8.0\x20*\x20mul_x,\x20-5.0\x20*\x20mul_y);\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20mul_x\x20=\x201.8\x20/\x20x_a;\x0a\x20\x20\x20\x20\x20\x20\x20\x20mul_y\x20=\x201.8\x20/\x20y_a;\x0a\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20blurCoordinates1\x20=\x20vTextureCoord\x20+\x20vec2(5.0\x20*\x20mul_x,\x20-8.0\x20*\x20mul_y);\x0a\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20blurCoordinates3\x20=\x20vTextureCoord\x20+\x20vec2(10.0\x20*\x20mul_x,\x200.0\x20*\x20mul_y);\x0a\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20blurCoordinates5\x20=\x20vTextureCoord\x20+\x20vec2(5.0\x20*\x20mul_x,\x208.0\x20*\x20mul_y);\x0a\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20blurCoordinates7\x20=\x20vTextureCoord\x20+\x20vec2(-5.0\x20*\x20mul_x,\x208.0\x20*\x20mul_y);\x0a\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20blurCoordinates9\x20=\x20vTextureCoord\x20+\x20vec2(-10.0\x20*\x20mul_x,\x200.0\x20*\x20mul_y);\x0a\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20blurCoordinates11\x20=\x20vTextureCoord\x20+\x20vec2(-5.0\x20*\x20mul_x,\x20-8.0\x20*\x20mul_y);\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20mul_x\x20=\x201.6\x20/\x20x_a;\x0a\x20\x20\x20\x20\x20\x20\x20\x20mul_y\x20=\x201.6\x20/\x20y_a;\x0a\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20blurCoordinates12\x20=\x20vTextureCoord\x20+\x20vec2(0.0\x20*\x20mul_x,-6.0\x20*\x20mul_y);\x0a\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20blurCoordinates14\x20=\x20vTextureCoord\x20+\x20vec2(-6.0\x20*\x20mul_x,0.0\x20*\x20mul_y);\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20vec2\x20blurCoordinates16\x20=\x20vTextureCoord\x20+\x20vec2(0.0\x20*\x20mul_x,6.0\x20*\x20mul_y);\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20vec2\x20blurCoordinates18\x20=\x20vTextureCoord\x20+\x20vec2(6.0\x20*\x20mul_x,0.0\x20*\x20mul_y);\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20mul_x\x20=\x201.4\x20/\x20x_a;\x0a\x20\x20\x20\x20\x20\x20\x20\x20mul_y\x20=\x201.4\x20/\x20y_a;\x0a\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20blurCoordinates13\x20=\x20vTextureCoord\x20+\x20vec2(-4.0\x20*\x20mul_x,-4.0\x20*\x20mul_y);\x0a\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20blurCoordinates15\x20=\x20vTextureCoord\x20+\x20vec2(-4.0\x20*\x20mul_x,4.0\x20*\x20mul_y);\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20vec2\x20blurCoordinates17\x20=\x20vTextureCoord\x20+\x20vec2(4.0\x20*\x20mul_x,4.0\x20*\x20mul_y);\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20vec2\x20blurCoordinates19\x20=\x20vTextureCoord\x20+\x20vec2(4.0\x20*\x20mul_x,-4.0\x20*\x20mul_y);\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20float\x20central;\x0a\x20\x20\x20\x20\x20\x20\x20\x20float\x20gaussianWeightTotal;\x0a\x20\x20\x20\x20\x20\x20\x20\x20float\x20sum;\x0a\x20\x20\x20\x20\x20\x20\x20\x20float\x20sampler;\x0a\x20\x20\x20\x20\x20\x20\x20\x20float\x20distanceFromCentralColor;\x0a\x20\x20\x20\x20\x20\x20\x20\x20float\x20gaussianWeight;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20float\x20distanceNormalizationFactor\x20=\x203.6;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20central\x20=\x20texture2D(uSampler,\x20vTextureCoord).g;\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeightTotal\x20=\x200.2;\x0a\x20\x20\x20\x20\x20\x20\x20\x20sum\x20=\x20central\x20*\x200.2;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20sampler\x20=\x20texture2D(uSampler,\x20blurCoordinates0).g;\x0a\x20\x20\x20\x20\x20\x20\x20\x20distanceFromCentralColor\x20=\x20min(abs(central\x20-\x20sampler)\x20*\x20distanceNormalizationFactor,\x201.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeight\x20=\x200.09\x20*\x20(1.0\x20-\x20distanceFromCentralColor);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeightTotal\x20+=\x20gaussianWeight;\x0a\x20\x20\x20\x20\x20\x20\x20\x20sum\x20+=\x20sampler\x20*\x20gaussianWeight;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20sampler\x20=\x20texture2D(uSampler,\x20blurCoordinates1).g;\x0a\x20\x20\x20\x20\x20\x20\x20\x20distanceFromCentralColor\x20=\x20min(abs(central\x20-\x20sampler)\x20*\x20distanceNormalizationFactor,\x201.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeight\x20=\x200.09\x20*\x20(1.0\x20-\x20distanceFromCentralColor);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeightTotal\x20+=\x20gaussianWeight;\x0a\x20\x20\x20\x20\x20\x20\x20\x20sum\x20+=\x20sampler\x20*\x20gaussianWeight;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20sampler\x20=\x20texture2D(uSampler,\x20blurCoordinates2).g;\x0a\x20\x20\x20\x20\x20\x20\x20\x20distanceFromCentralColor\x20=\x20min(abs(central\x20-\x20sampler)\x20*\x20distanceNormalizationFactor,\x201.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeight\x20=\x200.09\x20*\x20(1.0\x20-\x20distanceFromCentralColor);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeightTotal\x20+=\x20gaussianWeight;\x0a\x20\x20\x20\x20\x20\x20\x20\x20sum\x20+=\x20sampler\x20*\x20gaussianWeight;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20sampler\x20=\x20texture2D(uSampler,\x20blurCoordinates3).g;\x0a\x20\x20\x20\x20\x20\x20\x20\x20distanceFromCentralColor\x20=\x20min(abs(central\x20-\x20sampler)\x20*\x20distanceNormalizationFactor,\x201.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeight\x20=\x200.09\x20*\x20(1.0\x20-\x20distanceFromCentralColor);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeightTotal\x20+=\x20gaussianWeight;\x0a\x20\x20\x20\x20\x20\x20\x20\x20sum\x20+=\x20sampler\x20*\x20gaussianWeight;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20sampler\x20=\x20texture2D(uSampler,\x20blurCoordinates4).g;\x0a\x20\x20\x20\x20\x20\x20\x20\x20distanceFromCentralColor\x20=\x20min(abs(central\x20-\x20sampler)\x20*\x20distanceNormalizationFactor,\x201.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeight\x20=\x200.09\x20*\x20(1.0\x20-\x20distanceFromCentralColor);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeightTotal\x20+=\x20gaussianWeight;\x0a\x20\x20\x20\x20\x20\x20\x20\x20sum\x20+=\x20sampler\x20*\x20gaussianWeight;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20sampler\x20=\x20texture2D(uSampler,\x20blurCoordinates5).g;\x0a\x20\x20\x20\x20\x20\x20\x20\x20distanceFromCentralColor\x20=\x20min(abs(central\x20-\x20sampler)\x20*\x20distanceNormalizationFactor,\x201.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeight\x20=\x200.09\x20*\x20(1.0\x20-\x20distanceFromCentralColor);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeightTotal\x20+=\x20gaussianWeight;\x0a\x20\x20\x20\x20\x20\x20\x20\x20sum\x20+=\x20sampler\x20*\x20gaussianWeight;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20sampler\x20=\x20texture2D(uSampler,\x20blurCoordinates6).g;\x0a\x20\x20\x20\x20\x20\x20\x20\x20distanceFromCentralColor\x20=\x20min(abs(central\x20-\x20sampler)\x20*\x20distanceNormalizationFactor,\x201.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeight\x20=\x200.09\x20*\x20(1.0\x20-\x20distanceFromCentralColor);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeightTotal\x20+=\x20gaussianWeight;\x0a\x20\x20\x20\x20\x20\x20\x20\x20sum\x20+=\x20sampler\x20*\x20gaussianWeight;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20sampler\x20=\x20texture2D(uSampler,\x20blurCoordinates7).g;\x0a\x20\x20\x20\x20\x20\x20\x20\x20distanceFromCentralColor\x20=\x20min(abs(central\x20-\x20sampler)\x20*\x20distanceNormalizationFactor,\x201.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeight\x20=\x200.09\x20*\x20(1.0\x20-\x20distanceFromCentralColor);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeightTotal\x20+=\x20gaussianWeight;\x0a\x20\x20\x20\x20\x20\x20\x20\x20sum\x20+=\x20sampler\x20*\x20gaussianWeight;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20sampler\x20=\x20texture2D(uSampler,\x20blurCoordinates8).g;\x0a\x20\x20\x20\x20\x20\x20\x20\x20distanceFromCentralColor\x20=\x20min(abs(central\x20-\x20sampler)\x20*\x20distanceNormalizationFactor,\x201.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeight\x20=\x200.09\x20*\x20(1.0\x20-\x20distanceFromCentralColor);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeightTotal\x20+=\x20gaussianWeight;\x0a\x20\x20\x20\x20\x20\x20\x20\x20sum\x20+=\x20sampler\x20*\x20gaussianWeight;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20sampler\x20=\x20texture2D(uSampler,\x20blurCoordinates9).g;\x0a\x20\x20\x20\x20\x20\x20\x20\x20distanceFromCentralColor\x20=\x20min(abs(central\x20-\x20sampler)\x20*\x20distanceNormalizationFactor,\x201.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeight\x20=\x200.09\x20*\x20(1.0\x20-\x20distanceFromCentralColor);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeightTotal\x20+=\x20gaussianWeight;\x0a\x20\x20\x20\x20\x20\x20\x20\x20sum\x20+=\x20sampler\x20*\x20gaussianWeight;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20sampler\x20=\x20texture2D(uSampler,\x20blurCoordinates10).g;\x0a\x20\x20\x20\x20\x20\x20\x20\x20distanceFromCentralColor\x20=\x20min(abs(central\x20-\x20sampler)\x20*\x20distanceNormalizationFactor,\x201.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeight\x20=\x200.09\x20*\x20(1.0\x20-\x20distanceFromCentralColor);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeightTotal\x20+=\x20gaussianWeight;\x0a\x20\x20\x20\x20\x20\x20\x20\x20sum\x20+=\x20sampler\x20*\x20gaussianWeight;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20sampler\x20=\x20texture2D(uSampler,\x20blurCoordinates11).g;\x0a\x20\x20\x20\x20\x20\x20\x20\x20distanceFromCentralColor\x20=\x20min(abs(central\x20-\x20sampler)\x20*\x20distanceNormalizationFactor,\x201.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeight\x20=\x200.09\x20*\x20(1.0\x20-\x20distanceFromCentralColor);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeightTotal\x20+=\x20gaussianWeight;\x0a\x20\x20\x20\x20\x20\x20\x20\x20sum\x20+=\x20sampler\x20*\x20gaussianWeight;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20sampler\x20=\x20texture2D(uSampler,\x20blurCoordinates12).g;\x0a\x20\x20\x20\x20\x20\x20\x20\x20distanceFromCentralColor\x20=\x20min(abs(central\x20-\x20sampler)\x20*\x20distanceNormalizationFactor,\x201.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeight\x20=\x200.1\x20*\x20(1.0\x20-\x20distanceFromCentralColor);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeightTotal\x20+=\x20gaussianWeight;\x0a\x20\x20\x20\x20\x20\x20\x20\x20sum\x20+=\x20sampler\x20*\x20gaussianWeight;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20sampler\x20=\x20texture2D(uSampler,\x20blurCoordinates13).g;\x0a\x20\x20\x20\x20\x20\x20\x20\x20distanceFromCentralColor\x20=\x20min(abs(central\x20-\x20sampler)\x20*\x20distanceNormalizationFactor,\x201.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeight\x20=\x200.1\x20*\x20(1.0\x20-\x20distanceFromCentralColor);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeightTotal\x20+=\x20gaussianWeight;\x0a\x20\x20\x20\x20\x20\x20\x20\x20sum\x20+=\x20sampler\x20*\x20gaussianWeight;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20sampler\x20=\x20texture2D(uSampler,\x20blurCoordinates14).g;\x0a\x20\x20\x20\x20\x20\x20\x20\x20distanceFromCentralColor\x20=\x20min(abs(central\x20-\x20sampler)\x20*\x20distanceNormalizationFactor,\x201.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeight\x20=\x200.1\x20*\x20(1.0\x20-\x20distanceFromCentralColor);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeightTotal\x20+=\x20gaussianWeight;\x0a\x20\x20\x20\x20\x20\x20\x20\x20sum\x20+=\x20sampler\x20*\x20gaussianWeight;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20sampler\x20=\x20texture2D(uSampler,\x20blurCoordinates15).g;\x0a\x20\x20\x20\x20\x20\x20\x20\x20distanceFromCentralColor\x20=\x20min(abs(central\x20-\x20sampler)\x20*\x20distanceNormalizationFactor,\x201.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeight\x20=\x200.1\x20*\x20(1.0\x20-\x20distanceFromCentralColor);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeightTotal\x20+=\x20gaussianWeight;\x0a\x20\x20\x20\x20\x20\x20\x20\x20sum\x20+=\x20sampler\x20*\x20gaussianWeight;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20sampler\x20=\x20texture2D(uSampler,\x20blurCoordinates16).g;\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20distanceFromCentralColor\x20=\x20min(abs(central\x20-\x20sampler)\x20*\x20distanceNormalizationFactor,\x201.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20gaussianWeight\x20=\x200.1\x20*\x20(1.0\x20-\x20distanceFromCentralColor);\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20gaussianWeightTotal\x20+=\x20gaussianWeight;\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20sum\x20+=\x20sampler\x20*\x20gaussianWeight;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20sampler\x20=\x20texture2D(uSampler,\x20blurCoordinates17).g;\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20distanceFromCentralColor\x20=\x20min(abs(central\x20-\x20sampler)\x20*\x20distanceNormalizationFactor,\x201.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20gaussianWeight\x20=\x200.1\x20*\x20(1.0\x20-\x20distanceFromCentralColor);\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20gaussianWeightTotal\x20+=\x20gaussianWeight;\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20sum\x20+=\x20sampler\x20*\x20gaussianWeight;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20sampler\x20=\x20texture2D(uSampler,\x20blurCoordinates18).g;\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20distanceFromCentralColor\x20=\x20min(abs(central\x20-\x20sampler)\x20*\x20distanceNormalizationFactor,\x201.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20gaussianWeight\x20=\x200.1\x20*\x20(1.0\x20-\x20distanceFromCentralColor);\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20gaussianWeightTotal\x20+=\x20gaussianWeight;\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20sum\x20+=\x20sampler\x20*\x20gaussianWeight;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20sampler\x20=\x20texture2D(uSampler,\x20blurCoordinates19).g;\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20distanceFromCentralColor\x20=\x20min(abs(central\x20-\x20sampler)\x20*\x20distanceNormalizationFactor,\x201.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20gaussianWeight\x20=\x200.1\x20*\x20(1.0\x20-\x20distanceFromCentralColor);\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20gaussianWeightTotal\x20+=\x20gaussianWeight;\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20sum\x20+=\x20sampler\x20*\x20gaussianWeight;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20sum\x20=\x20sum/gaussianWeightTotal;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20sampler\x20=\x20centralColor.g\x20-\x20sum\x20+\x200.5;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20高反差保留\x0a\x20\x20\x20\x20\x20\x20\x20\x20for(int\x20i\x20=\x200;\x20i\x20<\x205;\x20++i)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20sampler\x20=\x20mix(sampler\x20*\x20sampler\x20*\x202.0,\x201.0\x20-\x20((1.0\x20-\x20sampler)*(1.0\x20-\x20sampler)\x20*\x202.0),\x20step(0.5,sampler));\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20sampler\x20=\x20sampler\x20<=\x200.5\x20?\x20sampler\x20*\x20sampler\x20*\x202.0\x20:\x201.0\x20-\x20((1.0\x20-\x20sampler)*(1.0\x20-\x20sampler)\x20*\x202.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20if(sampler\x20<=\x200.5)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20\x20\x20\x20\x20sampler\x20=\x20sampler\x20*\x20sampler\x20*\x202.0;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20\x20\x20\x20\x20sampler\x20=\x201.0\x20-\x20((1.0\x20-\x20sampler)*(1.0\x20-\x20sampler)\x20*\x202.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20float\x20aa\x20=\x201.0\x20+\x20pow(sum,\x200.3)\x20*\x200.09;\x0a\x20\x20\x20\x20\x20\x20\x20\x20vec3\x20smoothColor\x20=\x20centralColor\x20*\x20aa\x20-\x20vec3(sampler)\x20*\x20(aa\x20-\x201.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20smoothColor\x20=\x20clamp(smoothColor,\x20vec3(0.0),\x20vec3(1.0));\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20smoothColor\x20=\x20mix(centralColor,\x20smoothColor,\x20pow(centralColor.g,\x200.33));\x0a\x20\x20\x20\x20\x20\x20\x20\x20smoothColor\x20=\x20mix(centralColor,\x20smoothColor,\x20pow(centralColor.g,\x200.39));\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20smoothColor\x20=\x20mix(centralColor,\x20smoothColor,\x20intensity\x20*\x201.5);\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20gl_FragColor\x20=\x20vec4(pow(smoothColor,\x20vec3(0.96)),\x201.0);\x0a\x20\x20\x20\x20\x0a\x20}','landmarks','isOverride','beta_','calculateVertices','documentElement','undefined','FilterState','auto','eventPipeline','concat','startAuth','is_in_white_list','width','audioRecorder','createDefaultHandler','Failed\x20to\x20start\x20recording','onCustomRendererEvent','addAttribute','BEFORE_PROJ','_intensity','vec3\x20blendNormal(vec3\x20base,\x20vec3\x20blend)\x20{\x0a\x09return\x20blend;\x0a}\x0afloat\x20blendNormal(float\x20base,\x20float\x20blend)\x20{\x0a\x09return\x20blend;\x0a}\x0a\x0avec3\x20blendNormal(vec3\x20base,\x20vec3\x20blend,\x20float\x20opacity)\x20{\x0a\x09return\x20(blendNormal(base,\x20blend)\x20*\x20opacity\x20+\x20base\x20*\x20(1.0\x20-\x20opacity));\x0a}\x0a\x0a\x0a','sessionId','setMesh','stack','worldTransform','align-self','lip_bottom_right','sin','copyTo3d','uninstall','WORKER','ortographic','ceil','http','getPerformance','readJSONFile','scaleAndTranslate','culledByFrustrum','loop','img','-webkit-mask-box-image-outset','clearStickers','countInstance','touches','mirrorChange','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0areq\x20method:\x20','length','config','head','fetch','column-rule-style','onmessage','speedUrl','buffer','createObserver','tab-size','/speed/miniProgramData','SCREEN','extra\x20field\x20too\x20long','padding','getAutoSize','_initLoader','currentTarget','nmd','input\x20init\x20res','flag_1','getSystemInfoSync','appId','MEDIA_ERROR','crossOrigin','all\x200s\x20ease\x200s','insertBefore','inputPixel','0px','status','AJAX_ERROR:\x20downloadFile\x20','copyTo','draw','当前SDK版本过低,部分特效无法正确显示,请升级SDK版本','cancel','reason','_configCenter','logType','.prototype.','windows','currentLocation','setAlpha','pad','insertLog','-webkit-box-decoration-break','effect_makeup','confirm','pressure','text-underline-position','callContainer','rgb(255,\x20255,\x20255)','Custom','source-over','-webkit-box-align','_keymap','_lang','left_eyebrow_center','containsPoint','font-style','&level[0]=2&from=','nose_left2','horizontal','线性减淡','0px\x20none\x20rgb(0,\x200,\x200)','_takePhoto','loadstart','https','removeEventListener','fetchFromFileCache','file://','onShow','forehead_right','DIFFERENCE','\x22:\x20','text-anchor','metadata','ontimeout','ctx2d','skin_lookup.png','effect_sticker_2d','AXIS_X','1005','defaultFilterStack','LogType','text-decoration-line','createWorker','customTimeUrl','open','cheekbone','publishNetWorkError','getGroupFromCache','sort','background-image','getLaunchOptionsSync','setFileCache','background','Module','px\x20','process','\x20is\x20not\x20a\x20constructor\x20or\x20null','degreeStart','Label','intensityNasolabialFolds','floatArray','_mat4inv','resource-load','_renderer','webar-db','netType','local','map','patch','_intensityNasolabialFolds','clientX','hackWsConnect','log::::input\x20node\x20addBeautyAsync\x20finish','__version__\x20has\x20discard,\x20please\x20use\x20version','customPV','bindingSourceFrame','cancelable','Buffer','_whiten','录制器停止失败','请先开启摄像头及麦克风权限','grid-column-start','background-position','stroke-opacity','once','scrollTop','PROJ','float\x20blendLighten(float\x20base,\x20float\x20blend)\x20{\x0a\x09return\x20max(blend,base);\x0a}\x0afloat\x20blendDarken(float\x20base,\x20float\x20blend)\x20{\x0a\x09return\x20min(blend,base);\x0a}\x0afloat\x20blendPinLight(float\x20base,\x20float\x20blend)\x20{\x0a\x09return\x20(blend<0.5)?blendDarken(base,(2.0*blend)):blendLighten(base,(2.0*(blend-0.5)));\x0a}\x0a\x0avec3\x20blendPinLight(vec3\x20base,\x20vec3\x20blend)\x20{\x0a\x09return\x20vec3(blendPinLight(base.r,blend.r),blendPinLight(base.g,blend.g),blendPinLight(base.b,blend.b));\x0a}\x0a\x0avec3\x20blendPinLight(vec3\x20base,\x20vec3\x20blend,\x20float\x20opacity)\x20{\x0a\x09return\x20(blendPinLight(base,\x20blend)\x20*\x20opacity\x20+\x20base\x20*\x20(1.0\x20-\x20opacity));\x0a}\x0a\x0a','grid-row-end','addConfig','You\x20need\x20to\x20override\x20\x22ready\x22\x20method','teethWhiten','initDataMap','readZipEntry','lip_top_left','afterRequest','filterFrame','mapSprite','exsurehad','destinationFrame','mincutoff','_setConfig','ERROR','column-rule-width','offline','musicTrack','stroke-width','创建录制器失败','transform-style','1309164bFzGdc','1.36.3','_inited','setFrequency','firstPaint','pushSize','-webkit-box-flex-group','created','filters','ms\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20filePath:\x20','0007','_height','openSetting','flag_2','getOptions','visibility','Screen','uploadLogs','onfile','registerPlugin','right','initFaceDetect','call','prototype','offlineLogLimit','0011','arrayBuffer','had','byteOffset','border-right-color','shape-outside','-webkit-line-clamp','-webkit-mask-box-image-source','net4g','recorder\x20start\x20success','API_RESPONSE','autoUpdate','checkReady','bindBuffer','float\x20blendColorDodge(float\x20base,\x20float\x20blend)\x20{\x0a\x09return\x20(blend==1.0)?blend:min(base/(1.0-blend),1.0);\x0a}\x0a\x0a\x0afloat\x20blendColorBurn(float\x20base,\x20float\x20blend)\x20{\x0a\x09return\x20(blend==0.0)?blend:max((1.0-((1.0-base)/blend)),0.0);\x0a}\x0a\x0a\x0a\x0a\x0afloat\x20blendVividLight(float\x20base,\x20float\x20blend)\x20{\x0a\x09return\x20(blend<0.5)?blendColorBurn(base,(2.0*blend)):blendColorDodge(base,(2.0*(blend-0.5)));\x0a}\x0a\x0avec3\x20blendVividLight(vec3\x20base,\x20vec3\x20blend)\x20{\x0a\x09return\x20vec3(blendVividLight(base.r,blend.r),blendVividLight(base.g,blend.g),blendVividLight(base.b,blend.b));\x0a}\x0a\x0avec3\x20blendVividLight(vec3\x20base,\x20vec3\x20blend,\x20float\x20opacity)\x20{\x0a\x09return\x20(blendVividLight(base,\x20blend)\x20*\x20opacity\x20+\x20base\x20*\x20(1.0\x20-\x20opacity));\x0a}\x0a\x0a','pause','CUSTOM_PV','checkAndClearOldFileCache','result','&from=','vertexData2d','onUnload','getOwnPropertyNames','border-right-width','text-align','normalLogPipeline','one','setSystemInfo','pixels','set\x20ar\x20options','isStart','error','publishSpeedLog','_far','disable\x20beautify','__initStatic2','color-interpolation','row\x20nowrap','startsWith','\x0aopenType:\x20','decoder\x20buffer\x20change','cameraMatrix','speak','aVertex','400','_updateID','fillUniforms','border-collapse','realHeight','reportPv','event\x20dispatch','precision\x20lowp\x20float;\x0auniform\x20sampler2D\x20uSampler;\x0auniform\x20sampler2D\x20faceMask;\x0avarying\x20lowp\x20vec2\x20vTextureCoord;\x0a\x0auniform\x20int\x20width;\x0auniform\x20int\x20height;\x0a\x0a//\x20uniform\x20float\x20intensity;\x0a\x0afloat\x20normpdf(in\x20float\x20x,\x20in\x20float\x20sigma)\x0a{\x0a\x09return\x200.39894*exp(-0.5*x*x/(sigma*sigma))/sigma;\x0a}\x0a\x0afloat\x20normpdf3(in\x20vec3\x20v,\x20in\x20float\x20sigma)\x0a{\x0a\x09return\x200.39894*exp(-0.5*dot(v,v)/(sigma*sigma))/sigma;\x0a}\x0a\x0a\x0a//\x20双边滤波\x0avec3\x20bilateral(in\x20vec2\x20coordinate)\x20{\x0a\x20\x20\x20\x20const\x20float\x20SIGMA\x20=\x2016.;\x0a\x20\x20\x20\x20const\x20float\x20BSIGMA\x20=\x209.;\x0a\x20\x20\x20\x20//\x20const\x20int\x20MSIZE\x20=\x205;\x0a\x20\x20\x20\x20const\x20int\x20mSize\x20=\x2016;\x0a\x0a\x20\x20\x20\x20//\x20float\x20c\x20=\x20getMaskColor(coordinate).a;\x0a\x0a\x20\x20\x20\x20vec3\x20color\x20=\x20texture2D(uSampler,\x20coordinate).rgb;\x0a\x20\x20\x20\x20const\x20int\x20kSize\x20=\x20(mSize-1)/2;\x0a\x20\x20\x20\x20float\x20kernel[mSize];\x0a\x20\x20\x20\x20vec3\x20final_alpha\x20=vec3(0.);\x0a\x20\x20\x20\x20float\x20Z\x20=\x200.;\x0a\x09for\x20(int\x20j\x20=\x200;\x20j\x20<=\x20kSize;\x20++j)\x0a\x09{\x0a\x09\x09kernel[kSize+j]\x20=\x20kernel[kSize-j]\x20=\x20normpdf(float(j),\x20SIGMA);\x0a\x09}\x0a\x0a\x20\x20\x20\x20vec3\x20cc;\x0a\x09float\x20factor;\x0a\x09float\x20bZ\x20=\x201.0/normpdf(0.0,\x20BSIGMA);\x0a\x0a\x09//read\x20out\x20the\x20texels\x0a\x09for\x20(int\x20i=-kSize;\x20i\x20<=\x20kSize;\x20++i)\x0a\x09{\x0a\x09\x09for\x20(int\x20j=-kSize;\x20j\x20<=\x20kSize;\x20++j)\x0a\x09\x09{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec3\x20ccc\x20=\x20texture2D(uSampler,\x20coordinate\x20+\x20vec2(\x20float(i)\x20/\x20float(width),\x20float(j)\x20/\x20float(height)\x20)).rgb;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20cc\x20=\x20ccc;\x0a\x09\x09\x09factor\x20=\x20normpdf3(cc-color,\x20BSIGMA)*bZ*kernel[kSize+j]*kernel[kSize+i];\x0a\x09\x09\x09Z\x20+=\x20factor;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20final_alpha\x20+=\x20factor\x20*\x20ccc;\x0a\x09\x09}\x0a\x09}\x0a\x20\x20\x20\x20return\x20final_alpha\x20/\x20Z;\x0a}\x0a\x0avoid\x20main()\x20{\x0a\x20\x20\x20\x20float\x20mask\x20=\x20texture2D(faceMask,\x20vTextureCoord).r;\x0a\x0a\x20\x20\x20\x20float\x20i\x20=\x20mask;\x0a\x20\x20\x20\x20vec3\x20original\x20=\x20texture2D(uSampler,\x20vTextureCoord).rgb;\x0a\x0a\x20\x20\x20\x20if\x20(i\x20==\x200.)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20gl_FragColor\x20=\x20vec4(original,\x201.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20return;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20vec3\x20color\x20=\x20bilateral(vTextureCoord).rgb;\x0a\x20\x20\x20\x20vec4\x20c\x20=\x20texture2D(faceMask,\x20vTextureCoord);\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20vec3\x20res\x20=\x20color\x20*\x20i\x20+\x20original\x20*\x20(1.\x20-\x20i);\x0a\x20\x20\x20\x20gl_FragColor\x20=\x20vec4(res.rgb,\x201.0);\x0a\x20\x20\x20\x20return;\x0a\x20\x20\x20\x0a\x20}','live-pusher\x20width\x20cannot\x20be\x20greater\x20than\x20720px,currently\x20is\x20','createElement','_calculateBounds','setStorage','The\x20camera\x20or\x20microphone\x20is\x20disconnected.\x20Please\x20refresh','prefixHandler','vector-effect','hasOwnProperty','65,66,66,65,63,74,5f,73,74,69,63,6b,65,72,5f,33,64','touchmove','DEBUG','addLogs','normal\x20normal\x20400\x20normal\x2016px\x20/\x20normal\x20\x22PingFang\x20SC\x22','OtherEffectList','_initMainLoop','NONE','scrollWidth','scale3d','findIndex','_iIndex','_initing','isolation','host','getSetting','flat','enableHttp2','__init2','setPlanes','copyTo2d','onsuccess','FLOAT','level','mat3','blend','-webkit-text-fill-color','-webkit-highlight','0009','detectId','_parentID','时间:','mouth_lower_lip_bottom','/offlineLog','triggerOnNewAegis','identifier','attached','-webkit-text-emphasis-color','publishNormalLog','request:fail','ms\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20status:\x20','texture','play','-webkit-user-drag','report','_tintRGB','convertSubtreeTo2d','faceMesh','frame','destroy','_batchLocation','frame2','partialDermabrasion','texBuff','output','AXIS_XR','float\x20blendLighten(float\x20base,\x20float\x20blend)\x20{\x0a\x09return\x20max(blend,base);\x0a}\x0a\x0avec3\x20blendLighten(vec3\x20base,\x20vec3\x20blend)\x20{\x0a\x09return\x20vec3(blendLighten(base.r,blend.r),blendLighten(base.g,blend.g),blendLighten(base.b,blend.b));\x0a}\x0a\x0avec3\x20blendLighten(vec3\x20base,\x20vec3\x20blend,\x20float\x20opacity)\x20{\x0a\x09return\x20(blendLighten(base,\x20blend)\x20*\x20opacity\x20+\x20base\x20*\x20(1.0\x20-\x20opacity));\x0a}\x0a\x0a','intensityEye','right_eye_center','.zip','SCRIPT_ERROR','color','wait\x20time','https://webar-static.tencent-cloud.com/ar-sdk/resources','signature','updateTransform','roll','audioRecorderStarted','float\x20blendDarken(float\x20base,\x20float\x20blend)\x20{\x0a\x09return\x20min(blend,base);\x0a}\x0a\x0avec3\x20blendDarken(vec3\x20base,\x20vec3\x20blend)\x20{\x0a\x09return\x20vec3(blendDarken(base.r,blend.r),blendDarken(base.g,blend.g),blendDarken(base.b,blend.b));\x0a}\x0a\x0avec3\x20blendDarken(vec3\x20base,\x20vec3\x20blend,\x20float\x20opacity)\x20{\x0a\x09return\x20(blendDarken(base,\x20blend)\x20*\x20opacity\x20+\x20base\x20*\x20(1.0\x20-\x20opacity));\x0a}\x0a\x0a','0013','hasLastRawValue','takePhoto','AJAX_ERROR:\x20','createRecorder','transition-delay','/collect/events','pushSpriteMask','createOffscreenCanvas','-webkit-mask-clip','tag','getPusherContent','identity','empty-cells','invalid\x20id','缺少鉴权参数licenseKey','5.0\x20(','state','trace','AUTHORIZE_TIMEOUT','net6g','useContextAlpha','ext3','pagePerformance','_updateFilter','nose_left1','innerHTML','call\x20set\x20renderer','bottom','caret-color','opts','utf8','grid-column-gap','top','connectSocket','pivot3d','overflow-wrap','texImage2D','children','OPENED','_enabled','static','texArray','/0.wasm','RIGHT_FACE_OVAL2','flood-color','force','marker-mid','solid','%cThe\x20above\x20error\x20occurred\x20in\x20the\x20process\x20of\x20initializing\x20Aegis,\x20which\x20will\x20affect\x20your\x20normal\x20use\x20of\x20Aegis.\x0aIt\x20is\x20recommended\x20that\x20you\x20contact\x20us\x20for\x20feedback\x20and\x20thank\x20you\x20for\x20your\x20support.','Require\x20\x22input\x22\x20or\x20\x22camera\x22\x20paramate','addTextTrack','evaI','shave','position','fromFrames','simpleShader','\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0areq\x20param:\x20','aUvs','queue','context','text-overflow','contour_right3','_dirtyId','number','debug','byteLength','luminance','input_type','2048','VIDEO','LinearLight','trimmedCulledByFrustrum','HARD_LIGHT','0003','_renderDefault','packageName','lip_bottom_center','vkstarted','url','attribute\x20vec2\x20aVertex;attribute\x20vec2\x20aUV;varying\x20vec2\x20vTex;void\x20main(void)\x20{\x20\x20gl_Position\x20=\x20vec4(aVertex,\x200.0,\x201.0);\x20\x20vTex\x20=\x20aUV;}','createPipeline\x20need\x20at\x20least\x20one\x20function\x20param','decoder\x20error','msg','will-change','screenHeight','CSS_ERROR','valid','proj','location','repeat','AUTH_FAIL','_initCommonResLoader','normal','reject','getLogs','100%','61,75,74,68','10166139FTZyYi','mtime','max-width','errMsg','setOptions','multisample','originApi','white-space','reverse','BatchShaderGenerator','Image','transSticker','env','switchMode','xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx','lastRawValue','word-wrap','vec3\x20blendDifference(vec3\x20base,\x20vec3\x20blend)\x20{\x0a\x09return\x20abs(base-blend);\x0a}\x0a\x0avec3\x20blendDifference(vec3\x20base,\x20vec3\x20blend,\x20float\x20opacity)\x20{\x0a\x09return\x20(blendDifference(base,\x20blend)\x20*\x20opacity\x20+\x20base\x20*\x20(1.0\x20-\x20opacity));\x0a}\x0a\x0a','live-pusher\x20width\x20or\x20height\x20cannot\x20is\x20not\x20support.\x20please\x20use\x20Arsdk.getRealSize','createSelectorQuery','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0areq\x20url:\x20','requestAnimationFrame','construct','recordRender','clearContext','sdk\x20version','includes','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0areq\x20method:\x20POST\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0areq\x20param:\x20','key','65,66,66,65,63,74,5f,73,74,69,63,6b,65,72,5f,32,64','sendSDKError','uClampOffset','realWidth','addBeautyAsync','scrollLeft','setConfig','defaultFragmentShader','toUpperCase','utils','touchcancel','none\x20/\x20none\x20/\x20none\x20/\x20row\x20/\x20auto\x20/\x20auto','bytes=','create','_activeProjection','net2g','returnFilterTexture','#input-canvas','enabled','mediaContainer','fromBuffer','text-align-last','cameraMode','-webkit-mask-image','[object\x20Object]','statusCode','right_eyebrow_center','boolean','OFFLINE','disc','68,74,74,70,73,3a,2f,2f,77,65,62,61,72,2e,71,63,6c,6f,75,64,2e,63,6f,6d,2f,73,64,6b','Failed\x20to\x20create\x20the\x20recorder','resolution','loadScript','border-left-style','setFromMatrix','\x0aattribute\x20vec2\x20aVertexPosition;\x0aattribute\x20vec2\x20aTextureCoord;\x0a\x0auniform\x20mat3\x20projectionMatrix;\x0auniform\x20mat3\x20otherMatrix;\x0a\x0avarying\x20vec3\x20vMaskCoord;\x0avarying\x20vec2\x20vTextureCoord;\x0a\x0avoid\x20main(void)\x0a{\x0agl_Position\x20=\x20vec4((projectionMatrix\x20*\x20vec3(aVertexPosition,\x201.0)).xy,\x200.0,\x201.0);\x0a\x0avTextureCoord\x20=\x20aTextureCoord;\x0avMaskCoord\x20=\x20otherMatrix\x20*\x20vec3(\x20aTextureCoord,\x201.0);\x0a}\x0a','The\x20rendering\x20took\x20too\x20long.\x20Try\x20reducing\x20the\x20resolution\x20or\x20refreshing\x20the\x20page','offlineUrl','currentTime','cpr','__config.json','_localID','filter','beautify','\x20call\x20failed','outline-offset','session-','cannot\x20override\x20`','tick','存储空间不足,前往设置-通用-存储空间,清除缓存','61,76,61,74,61,72,5f,76,72','alphaMaskIndex','_width','_config','writable','createTexture','scale','parentNode','66wITuQG','vertexAttribPointer','music','cloud','setUniforms','emit','The\x20authentication\x20parameter\x20\x22licenseKey\x22\x20is\x20missing','pointerId','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0areq\x20param:\x20','infoType:\x20behaviorBacktracking\x0adataType:\x20pageLoadAndRoute\x0apageLoadedPath:\x20','onTouchStart','isArray','lighting-color','preventDefault','contour_right9','clearLogs','speedLogPipeline','preloadVcubeFile','forehead_left','sendPipeline','Canvas','zy\x20sdk\x20startAudioRecorder','_angleMap','OUTER_REFERENCE','HEADERS_RECEIVED','/collect','partialLutSkin','label','https://aegis.qq.com','uniform1f','vertexData','table-layout','ms\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20data:\x20','getOptimalFilterTexture','border-image-width','nose_bottom','setBeautify','invalid\x20zlib\x20data:\x20preset\x20dictionaries\x20not\x20supported','stopPropagation','ended','0019','未捕获异常','onTouchCancel','animation-iteration-count','-webkit-box-direction','filterIntensity','pitch','clearCache','display','useDefaults','\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20retcode:\x20','angle','font-variant-caps','detail','gotoAndPlay','0006','detectSize','usm','timeOrigin','color:\x20red','drawBatches','\x20\x0a\x20','padding-top','performanceUrl','defaultVertexShader','没有摄像头权限,请到设置-隐私中开启相关权限','RET_ERROR','maximum\x20size','no\x20callback','column-gap','line-break','\x20does\x20not\x20exist','responseType','fastSeek','Overlay','clientHeight','default','__init5','blur','setEffect','$e$','slice','flex-basis','meshVertex','min-width','break-after','stop-color','0010','info','add','batch','appendFile','getAccountInfoSync','some','_cameraMode','REPORT','_usm','videoRecorder\x20destroy\x20error','encode','getEntries','aVertexPosition','CLAMP','8.0.28','text-decoration','request','authSetting','LOG','%FUNC_NAME%','ttt','pageRouteTiming','global','filename\x20too\x20long','512','alpha','face\x20detect\x20stopped','\x0avarying\x20vec3\x20vMaskCoord;\x0avarying\x20vec2\x20vTextureCoord;\x0a\x0auniform\x20sampler2D\x20uSampler;\x0auniform\x20sampler2D\x20mask;\x0auniform\x20float\x20alpha;\x0auniform\x20vec4\x20maskClamp;\x0a\x0avoid\x20main(void)\x0a{\x0avec2\x20uv\x20=\x20vMaskCoord.xy\x20/\x20vMaskCoord.z;\x0a\x0afloat\x20clip\x20=\x20step(3.5,\x0a\x20\x20\x20\x20step(maskClamp.x,\x20uv.x)\x20+\x0a\x20\x20\x20\x20step(maskClamp.y,\x20uv.y)\x20+\x0a\x20\x20\x20\x20step(uv.x,\x20maskClamp.z)\x20+\x0a\x20\x20\x20\x20step(uv.y,\x20maskClamp.w));\x0a\x0avec4\x20original\x20=\x20texture2D(uSampler,\x20vTextureCoord);\x0avec4\x20masky\x20=\x20texture2D(mask,\x20uv);\x0a\x0aoriginal\x20*=\x20(masky.r\x20*\x20masky.a\x20*\x20alpha\x20*\x20clip);\x0a\x0agl_FragColor\x20=\x20original;\x0a}\x0a','_sign','precision\x20mediump\x20float;\x0avarying\x20vec2\x20vUvs;\x0auniform\x20sampler2D\x20falingwen;\x0auniform\x20sampler2D\x20heiyanquan;\x0auniform\x20float\x20intensityNasolabialFolds;\x0auniform\x20float\x20intensityDarkCircle;\x0a\x0avoid\x20main()\x20{\x0a\x20\x20vec4\x20color\x20=\x20texture2D(falingwen,\x20vUvs)\x20*\x20intensityNasolabialFolds\x20+\x20texture2D(heiyanquan,\x20vUvs)\x20*\x20intensityDarkCircle;\x0a\x20\x0a\x20\x20gl_FragColor\x20=\x20vec4(color.a,\x200.,0.,1.);\x0a}','checkFileCacheBlackList','parse','checkLimit','maxLength','lipsTriangulation','outline-style','scope','fileSystem','PERFORMANCE','font-variant-numeric','radiusX','_near','triggerResult','border-left-width','border-top-style','vec3\x20blendExclusion(vec3\x20base,\x20vec3\x20blend)\x20{\x0a\x09return\x20base+blend-2.0*base*blend;\x0a}\x0a\x0avec3\x20blendExclusion(vec3\x20base,\x20vec3\x20blend,\x20float\x20opacity)\x20{\x0a\x09return\x20(blendExclusion(base,\x20blend)\x20*\x20opacity\x20+\x20base\x20*\x20(1.0\x20-\x20opacity));\x0a}\x0a\x0a','border-bottom-right-radius','mixed','shape-image-threshold','onErrors','VIVID_LIGHT','_top','1.7.0','applyPartial','audio','objectStore','beforeReport','setAxisX','font-size','lifetimes','transformAABB','hijackFetch','openType','png','precision\x20mediump\x20float;\x0a\x20\x20\x20\x20attribute\x20vec2\x20aVertexPosition;\x0a\x20\x20\x20\x20attribute\x20vec2\x20aUvs;\x0a\x20\x20\x20\x20uniform\x20mat3\x20translationMatrix;\x0a\x20\x20\x20\x20uniform\x20mat3\x20projectionMatrix;\x0a\x20\x20\x20\x20varying\x20vec2\x20vUvs;\x0a\x0a\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\x20gl_Position\x20=\x20vec4((projectionMatrix\x20*\x20translationMatrix\x20*\x20vec3(aVertexPosition,\x201.0)).xy,\x200.0,\x201.0);\x0a\x20\x20\x20\x20}','mapQuad','DARKEN','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20retcode:\x20','Makeup','AJAX_ERROR:\x20cloud.callFunction:fail\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20status:\x200\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20duration:\x20','Please\x20enable\x20the\x20camera\x20and\x20microphone\x20permissions','读取本地bin','addEventListener','download','left'];a0a=function(){return AK;};return a0a();}function a0b(a,b){var c=a0a();return a0b=function(d,e){d=d-0x170;var f=c[d];return f;},a0b(a,b);}var a0AG=a0b;(function(b,d){var cP=a0b,f=b();while(!![]){try{var g=parseInt(cP(0x572))/0x1*(parseInt(cP(0x246))/0x2)+parseInt(cP(0x808))/0x3*(parseInt(cP(0x236))/0x4)+-parseInt(cP(0x37d))/0x5+parseInt(cP(0x6b4))/0x6+-parseInt(cP(0x4a5))/0x7+parseInt(cP(0x31c))/0x8+-parseInt(cP(0x7b0))/0x9*(parseInt(cP(0x20b))/0xa);if(g===d)break;else f['push'](f['shift']());}catch(h){f['push'](f['shift']());}}}(a0a,0xd3928));var t,e={0xd9b:function(b){var cQ=a0b;b[cQ(0x3c7)]=(function(){var d0=cQ,a0=function(bg,bh){var cR=a0b;return(a0=Object[cR(0x977)]||{'__proto__':[]}instanceof Array&&function(bi,bj){var cS=cR;bi[cS(0x3b3)]=bj;}||function(bi,bj){var cT=cR;for(var bk in bj)Object[cT(0x6cb)][cT(0x708)][cT(0x6ca)](bj,bk)&&(bi[bk]=bj[bk]);})(bg,bh);};function a1(bg,bh){var cU=a0b;function bi(){this['constructor']=bg;}a0(bg,bh),bg[cU(0x6cb)]=null===bh?Object[cU(0x7da)](bh):(bi['prototype']=bh['prototype'],new bi());}var a2=function(){var cV=a0b;return(a2=Object[cV(0x5e8)]||function(bg){var cW=cV;for(var bh,bi=0x1,bj=arguments[cW(0x61d)];bi<bj;bi++)for(var bk in bh=arguments[bi])Object[cW(0x6cb)]['hasOwnProperty'][cW(0x6ca)](bh,bk)&&(bg[bk]=bh[bk]);return bg;})[cV(0x1ea)](this,arguments);};function a3(bg,bh){var cX=a0b,bi,bj,bk,bl={'label':0x0,'sent':function(){if(0x1&bk[0x0])throw bk[0x1];return bk[0x1];},'trys':[],'ops':[]},bm={'next':bn(0x0),'throw':bn(0x1),'return':bn(0x2)};return cX(0x4df)==typeof Symbol&&(bm[Symbol[cX(0x3c2)]]=function(){return this;}),bm;function bn(bo){return function(bp){var cY=a0b,bq=[bo,bp];if(bi)throw new TypeError('Generator\x20is\x20already\x20executing.');for(;bl;)try{if(bi=0x1,bj&&(bk=0x2&bq[0x0]?bj[cY(0x512)]:bq[0x0]?bj[cY(0x30d)]||((bk=bj[cY(0x512)])&&bk['call'](bj),0x0):bj[cY(0x549)])&&!(bk=bk[cY(0x6ca)](bj,bq[0x1]))['done'])return bk;switch(bj=0x0,(bq=bk?[0x2&bq[0x0],bk[cY(0x9e0)]]:bq)[0x0]){case 0x0:case 0x1:bk=bq;break;case 0x4:return bl[cY(0x823)]++,{'value':bq[0x1],'done':!0x1};case 0x5:bl[cY(0x823)]++,bj=bq[0x1],bq=[0x0];continue;case 0x7:bq=bl['ops'][cY(0x984)](),bl[cY(0x9c4)][cY(0x984)]();continue;default:if(!((bk=0x0<(bk=bl['trys'])[cY(0x61d)]&&bk[bk[cY(0x61d)]-0x1])||0x6!==bq[0x0]&&0x2!==bq[0x0])){bl=0x0;continue;}if(0x3===bq[0x0]&&(!bk||bq[0x1]>bk[0x0]&&bq[0x1]<bk[0x3]))bl['label']=bq[0x1];else{if(0x6===bq[0x0]&&bl[cY(0x823)]<bk[0x1])bl[cY(0x823)]=bk[0x1],bk=bq;else{if(!(bk&&bl[cY(0x823)]<bk[0x2])){bk[0x2]&&bl['ops'][cY(0x984)](),bl[cY(0x9c4)][cY(0x984)]();continue;}bl[cY(0x823)]=bk[0x2],bl[cY(0xa27)]['push'](bq);}}}bq=bh[cY(0x6ca)](bg,bl);}catch(br){bq=[0x6,br],bj=0x0;}finally{bi=bk=0x0;}if(0x5&bq[0x0])throw bq[0x1];return{'value':bq[0x0]?bq[0x1]:void 0x0,'done':!0x0};};}}function a4(){var cZ=a0b;for(var bg=0x0,bh=0x0,bi=arguments[cZ(0x61d)];bh<bi;bh++)bg+=arguments[bh][cZ(0x61d)];var bj=Array(bg),bk=0x0;for(bh=0x0;bh<bi;bh++)for(var bl=arguments[bh],bm=0x0,bn=bl[cZ(0x61d)];bm<bn;bm++,bk++)bj[bk]=bl[bm];return bj;}Object[d0(0x5e8)]||Object['defineProperty'](Object,d0(0x5e8),{'enumerable':!0x1,'configurable':!0x0,'writable':!0x0,'value':function(bg){var d1=d0;if(null==bg)throw new TypeError('Cannot\x20convert\x20first\x20argument\x20to\x20object');for(var bh=Object(bg),bi=0x1;bi<arguments[d1(0x61d)];bi++)if(null!=(bj=arguments[bi]))for(var bj=Object(bj),bk=Object[d1(0x365)](Object(bj)),bl=0x0,bm=bk[d1(0x61d)];bl<bm;bl++){var bn=bk[bl],bo=Object[d1(0x255)](bj,bn);null!=bo&&bo[d1(0x542)]&&(bh[bn]=bj[bn]);}return bh;}});var a5=['ext1',d0(0xa0d),'ext3',d0(0x720),d0(0x760),d0(0x758),'seq','code'],a6=(a8[d0(0x6cb)][d0(0x50b)]=function(bg,bh){for(var bi=0x0;bi<bg['length'];bi++)if(bg[bi]['callback']===bh)return bi;return-0x1;},a8[d0(0x6cb)]['on']=function(bg,bh,bi){var d2=d0,bj;if(void 0x0===bi&&(bi=0x0),this)return(bj=this[d2(0x222)][bg])||(this[d2(0x222)][bg]=[],bj=this[d2(0x222)][bg]),-0x1===this[d2(0x50b)](bj,bh)&&bj[d2(0x315)]({'name':bg,'type':bi||0x0,'callback':bh}),this;},a8[d0(0x6cb)][d0(0x6e7)]=function(bg,bh){this['on'](bg,bh,0x1);},a8[d0(0x6cb)][d0(0x591)]=function(bg,bh){var d3=d0;if(this){var bi=this[d3(0x222)][bg];if(bi){if(bh)return bi[d3(0x61d)]&&(bh=this['indexOf'](bi,bh),bi[d3(0x58f)](bh,0x1)),this;try{delete this[d3(0x222)][bg];}catch(bj){}}return null;}},a8[d0(0x6cb)][d0(0x263)]=function(){var d4=d0;this[d4(0x222)]={};},a8),a7=function(bg){var d5=d0;if(!bg||0x0===bg[d5(0x61d)])return'{}';bg=Array[d5(0x813)](bg)?bg:[bg];var bh=Object['keys'](bg[0x0]),bi={},bj=(bh[d5(0x560)](function(bk){bi[bk]=bg['map'](function(bl){return bl[bk];});}),bi['count']=bg['length'],bi);if('string'==typeof bj)return bj;try{return JSON[d5(0x3f6)](bj,aj())||d5(0x5f4);}catch(bk){return d5(0x4af)+bk['message']+d5(0x845)+bk['stack'];}};function a8(){var bg=this;this['emit']=function(bh,bi){var d6=a0b;if(bg){var bj;if(null!=(bk=bg[d6(0x222)][bh])&&bk[d6(0x61d)])for(var bk=bk[d6(0x859)](),bl=0x0;bl<bk[d6(0x61d)];bl++){bj=bk[bl];try{var bm=bj['callback'][d6(0x1ea)](bg,[bi]);if(0x1===bj[d6(0x299)]&&bg[d6(0x591)](bh,bj[d6(0x3a4)]),!0x1===bm)break;}catch(bn){throw bn;}}return bg;}},this['eventsList']={};}function a9(bg,bh){var d7=d0;return d7(0x4f5)==typeof bg?bg[d7(0x1ee)]('?')[bh?0x1:0x0]||'':bg;}function aa(bg){var d8=d0;return d8(0x4f5)==typeof bg&&bg[d8(0x6f3)]('//')?d8(0x5f4)!=typeof location&&'https:'===location[d8(0x940)]:/^https/[d8(0x579)](bg);}function ab(bg,bh,bi){var d9=d0,bj,bk;try{if(d9(0x4df)==typeof(null==bh?void 0x0:bh[d9(0x8df)]))return{'code':void 0x0===(bl=(bk=bh[d9(0x8df)](bg,null==bi?void 0x0:bi['url'],null==bi?void 0x0:bi[d9(0x571)])||{})[d9(0x318)])?'unknown':bl,'isErr':bk[d9(0x98b)]};d9(0x4f5)==typeof bg&&(bg=JSON[d9(0x87f)](bg)),d9(0x4df)==typeof(null==(bj=null==bh?void 0x0:bh[d9(0x19b)])?void 0x0:bj['join'])&&(ai=[][d9(0x5f8)](bh[d9(0x19b)][d9(0x68a)](function(bn){return bn['toLowerCase']();})));var bl,bm=Object['getOwnPropertyNames'](bg)['filter'](function(bn){var da=d9;return-0x1!==ai[da(0x50b)](bn['toLowerCase']());});return bm[d9(0x61d)]?{'code':''+(bl=bg[bm[0x0]]),'isErr':0x0!==bl&&'0'!==bl}:{'code':d9(0x5a0),'isErr':!0x1};}catch(bn){return{'code':d9(0x5a0),'isErr':!0x1};}}function ac(bg,bh){var db=d0;void 0x0===bh&&(bh=0x3);var bi,bj,bk,bl='';return Array[db(0x813)](bg)?(bl+='[',bi=bg[db(0x61d)],bg[db(0x560)](function(bm,bn){var dc=db,bo,bp;bl=(bl+='object'==typeof bm&&0x1<bh?ac(bm,bh-0x1):(bp='',bp+=dc(0x5f4)==(bo=typeof bm)||dc(0x4f6)==bo||dc(0x4df)==bo?dc(0x25d):dc(0x4f5)==bo||'object'==bo?'\x22'+bm+'\x22':bm))+(bn===bi-0x1?'':',');}),bl+=']'):bg instanceof Object?(bl='{',bj=Object[db(0x365)](bg),bk=bj[db(0x61d)],bj[db(0x560)](function(bm,bn){var dd=db,bo,bp,bq;dd(0x97f)==typeof bg[bm]&&0x1<bh?bl+='\x22'+bm+'\x22:'+ac(bg[bm],bh-0x1):bl+=(bq='',dd(0x4f5)==(bp=typeof(bo=bg[bm]))||dd(0x97f)==bp?bq+='\x22'+bm+dd(0x957)+bo+'\x22':dd(0x4df)==typeof bo?bq+='\x22'+bm+dd(0x417)+bo['name']+'\x22':dd(0x4f6)==typeof bo?bq+='\x22'+bm+dd(0x2f0):dd(0x78e)!=typeof bo&&dd(0x7e8)!=bp||(bq+='\x22'+bm+dd(0x665)+bo),bq),bl+=bn===bk-0x1||bn<bk-0x1&&void 0x0===bg[bj[bn+0x1]]?'':',';}),bl+='}'):bl+=bg,bl;}var ad,ae,af,ag,ah,ai=['ret',d0(0x9f5),d0(0x318),'errcode'],aj=function(){var bg=new WeakSet();return function(bh,bi){var de=a0b;if(bi instanceof Error)return de(0x8e6)+bi[de(0x939)]+de(0x172)+bi[de(0x606)];if(de(0x97f)==typeof bi&&null!==bi){if(bg[de(0x4cb)](bi))return'[Circular\x20'+(bh||de(0x42a))+']';bg[de(0x861)](bi);}return bi;};},ak=function(bg){var df=d0;if(df(0x4f5)==typeof bg)return bg;try{return bg instanceof Error?(JSON[df(0x3f6)](bg,aj(),0x4)||'undefined')[df(0x181)](/"/gim,''):JSON[df(0x3f6)](bg,aj(),0x4)||df(0x5f4);}catch(bh){return df(0x4af)+bh['message']+df(0x845)+bh[df(0x606)];}};function al(bg,bh){var dg=d0,bi,bj=[],bk=bg[dg(0x61e)];return bg[dg(0x9d8)]['on']('destroy',function(){var dh=dg;bj[dh(0x61d)]=0x0;}),function(bl,bm){var di=dg;Array[di(0x813)](bl)?bj=bj[di(0x5f8)](bl):bj['push'](bl),bh&&bj['length']>=bh||bg['sendNow']&&0x0<bj[di(0x61d)]?(bj=aE(bj),bm(bj[di(0x58f)](0x0,bj[di(0x61d)])),bi&&clearTimeout(bi)):(bi&&clearTimeout(bi),bi=setTimeout(function(){var dj=di;bi=null,0x0<(bj=aE(bj))[dj(0x61d)]&&bm(bj['splice'](0x0,bj[dj(0x61d)]));},bk['delay']));};}function am(bg,bh){var dk=d0;return Array['isArray'](bg)?bh(bg[dk(0x68a)](function(bi){var dl=dk;return bj=a2(a2({},bi),{'msg':dl(0x4f5)==typeof bi['msg']?bi[dl(0x7a1)]:[][dl(0x5f8)](bi[dl(0x7a1)])[dl(0x68a)](ak)[dl(0x5d2)]('\x20')}),a5[dl(0x560)](function(bk){bj[bk]||delete bj[bk];}),bj;var bj;})):bh([a2(a2({},bg),{'msg':dk(0x4f5)==typeof bg[dk(0x7a1)]?bg[dk(0x7a1)]:ak(bg['msg'])})]);}function an(bg,bh){return function(bi,bj){var dm=a0b,bk,bl,bm,bn=Array['isArray'](bi),bo=bn?bi:[bi],bp=(bg['lifeCycle'][dm(0x80d)](dm(0x294),bi),bg[dm(0x61e)]['beforeRequest']);(bo=dm(0x4df)==typeof bp?bo[dm(0x68a)](function(bq){var dn=dm;try{var br=bp({'logs':bq,'logType':bh});return(null==br?void 0x0:br[dn(0x641)])===bh&&null!=br&&br[dn(0x2b2)]?br[dn(0x2b2)]:!0x1!==br&&bq;}catch(bs){return bq;}})['filter'](function(bq){return!0x1!==bq;}):bo)['length']&&(bk=bo,bi=a5,!Array[dm(0x813)](bk)||bk[dm(0x61d)]<=0x1||(bl=[],bm=[],!(bm=dm(0x4f5)==typeof bi?[bi]:bi)||bm[dm(0x61d)]<=0x0||(bm[dm(0x560)](function(bq){var dp=dm;bk[dp(0x560)](function(br){null!=br&&br[bq]&&bl['push'](bq);});}),0x0<bl[dm(0x61d)]&&(bk=bk['map'](function(bq){var dq=dm,br={};return bl[dq(0x560)](function(bs){br[bs]='';}),a2(a2({},br),bq);})))),bo=bk,bj(bn?bo:bo[0x0]));};}function ao(bg){return function(bh,bi){var dr=a0b;bg['lifeCycle']['emit'](dr(0x46d),bh);var bj=bg[dr(0x61e)][dr(0x46d)];if('function'==typeof bj)try{var bk=bj(bh);dr(0x97f)==typeof bk&&dr(0x79d)in bk&&(bh=bk);}catch(bl){console[dr(0x6ec)](bl);}bi(bh);};}function ap(bg){return function(bh,bi){var ds=a0b;bg[ds(0x9d8)]['emit'](ds(0x6a6),bh);var bj=bg[ds(0x61e)]['afterRequest'];ds(0x4df)==typeof bj&&!0x1===bj(bh)||bi(bh);};}function aq(bg){var dt=d0;if(bg&&bg[dt(0x1c9)]&&bg['length'])return 0x1===bg[dt(0x61d)]?function(bh,bi){bg[0x0](bh,bi||aI);}:bg[dt(0x1c9)](function(bh,bi){return function(bj,bk){return void 0x0===bk&&(bk=aI),bh(bj,function(bl){return null==bi?void 0x0:bi(bl,bk);});};});throw new TypeError(dt(0x79f));}function ar(bg,bh){var du=d0;Object[du(0x6e3)](bg)[du(0x560)](function(bi){var dv=du;dv(0x4df)==typeof bg[bi]&&dv(0x93e)!==bi&&(bh?bh[bi]=dv(0x81b)===bi?function(){return function(){};}:function(){}:bg[bi]=function(){});});}function as(bg){var dw=d0;try{var bh,bi,bj,bk='';return bk=bg[dw(0x3c8)]||(bi=(bh=getCurrentPages())[bh[dw(0x61d)]-0x1]||{},bl=bi['options'],bj=Object[dw(0x365)](bl)[dw(0x61d)]?'?'+Object[dw(0x365)](bl)['map'](function(bm){return bm+'='+bl[bm];})[dw(0x5d2)]('&'):'',bi[dw(0x321)]?bi[dw(0x321)]+bj:''),bk=dw(0x4df)==typeof bg[dw(0x413)]?bg[dw(0x413)]():bk;}catch(bm){return'';}var bl;}function au(bg,bh){var dx=d0;if(dx(0x4f5)==typeof bg&&dx(0x4f5)==typeof bh){if(bg===bh)return 0x1;for(var bi=bg[dx(0x1ee)]('.'),bj=bh['split']('.'),bk=Math[dx(0x94f)](bi[dx(0x61d)],bj[dx(0x61d)]),bl=0x0;bl<bk;bl++){var bm=~~bi[bl],bn=~~bj[bl];if(bm<bn)return;if(bn<bm)return 0x1;}}}function av(bg){var dy=d0;return au(aM=aM||aL[dy(0x631)]()['SDKVersion'],dy(0x416))&&aL[dy(0x42b)]?aL[dy(0x42b)](bg):!!aL[bg];}function aw(bg){var dz=d0;for(var bh,bi={'unknown':/unknown|none/i,'wifi':/wifi/i,'net2g':/2g/i,'net3g':/3g/i,'net4g':/4g/i,'net5g':/5g/i,'net6g':/6g/i},bj=af[dz(0x5a0)],bk=0x0;bk<Object[dz(0x365)](bi)[dz(0x61d)];bk++){var bl=Object[dz(0x365)](bi)[bk];if(null!=(bh=bi[bl])&&bh[dz(0x579)](bg)){bj=af[bl];break;}}return bj;}function ax(bg){var dA=d0,bh=bg[dA(0xa1f)],bi=aU[bh];bi?bi['hackCloudReq'][dA(0x93f)](bg):(bi=aT['cloud'][bh],aU[bh]={'hackCloudReq':new aV(bg),'originApi':bi}),aU[bh];}function ay(bg){var dB=d0,bh=bg[dB(0xa1f)],bi=aX[bh];bi?bi[dB(0x269)]['addCallback'](bg):(bi=wx[bh],aX[bh]={'hackReq':new aY(bg),'originApi':bi}),aX[bh];}(aJ=ad=ad||{})[d0(0x32b)]='-1',aJ[d0(0x6d7)]='1',aJ[d0(0x3e5)]='2',aJ[d0(0x6ad)]='4',aJ['PROMISE_ERROR']='8',aJ[d0(0x268)]='16',aJ[d0(0x745)]='32',aJ['IMAGE_ERROR']='64',aJ[d0(0x7a4)]='128',aJ[d0(0x2df)]=d0(0x2a4),aJ[d0(0x633)]=d0(0x878),aJ[d0(0x84a)]='1024',aJ[d0(0x867)]=d0(0x793),aJ['PV']=d0(0x2ff),aJ[d0(0x49e)]=d0(0x9ff),aJ[d0(0x377)]=d0(0x595),aJ[d0(0x9cf)]=d0(0x424),aJ[d0(0x5e5)]='65536',(aJ=ae=ae||{})[aJ[d0(0x993)]=0x1]=d0(0x993),aJ[aJ[d0(0x9b8)]=0x2]=d0(0x9b8),aJ[aJ[d0(0x643)]=0x3]=d0(0x643),aJ[aJ[d0(0x1b1)]=0x4]=d0(0x1b1),aJ[aJ['linux']=0x5]='linux',aJ[aJ[d0(0x370)]=0x6]=d0(0x370),aJ[aJ[d0(0x917)]=0x64]=d0(0x917),(aJ=af=af||{})[aJ[d0(0x5a0)]=0x64]=d0(0x5a0),aJ[aJ[d0(0x36e)]=0x1]='wifi',aJ[aJ[d0(0x7dc)]=0x2]=d0(0x7dc),aJ[aJ['net3g']=0x3]=d0(0x2aa),aJ[aJ[d0(0x6d5)]=0x4]=d0(0x6d5),aJ[aJ['net5g']=0x5]=d0(0x521),aJ[aJ[d0(0x762)]=0x6]='net6g',(aJ=ag=ag||{})['LOG']=d0(0x45c),aJ[d0(0x517)]=d0(0x1ec),aJ[d0(0x886)]=d0(0x332),aJ[d0(0x7e9)]=d0(0x6af),aJ[d0(0x2a1)]=d0(0x527),aJ[d0(0x59e)]='vitals',aJ['PV']='pv',aJ[d0(0x6dd)]=d0(0x691),aJ['EVENT']=d0(0x394),aJ['CUSTOM']=d0(0x1af),aJ[d0(0x8b7)]='sdkError',aJ[d0(0x21b)]=d0(0x23b),aJ[d0(0x1f1)]=d0(0x232),(aJ=ah=ah||{})[d0(0x3ea)]=d0(0x3ea),aJ[d0(0x5d8)]=d0(0x5d8),aJ['gray']='gray',aJ[d0(0x8cc)]=d0(0x8cc),aJ['daily']='daily',aJ[d0(0x689)]='local',aJ[d0(0x579)]='test',aJ['others']=d0(0x4a3);var az,aA,aB,aC,aD,aE=function(bg){var dC=d0;return bg[dC(0x7f8)](function(bh,bi){var dD=dC;return dD(0x777)!==bh[dD(0x299)]||!bg[dD(0x597)](function(bj,bk){var dE=dD;return bh[dE(0x79d)]===bj[dE(0x79d)]&&0xc8===bh[dE(0x639)]&&bi<bk;});});},aF=function(bg){var dF=d0;bg[dF(0x720)]===ad[dF(0x32b)]&&(bg[dF(0x720)]=ad[dF(0x3e5)]);},aG=function(bg){var dG=d0;return(Array[dG(0x813)](bg)?bg:[bg])['map'](function(bh){var dH=dG;return Object[dH(0x6e3)](bh)[dH(0x1c9)](function(bi,bj){var dI=dH;return dI(0x571)!==bj&&(bi[bj]=bh[bj]),bi;},{'level':ad[dH(0x3e5)],'msg':''});});},aH=function(bg){return function(bh){var dJ=a0b;return bg[dJ(0x81b)]([function(bi,bj){var dK=dJ;return bj({'url':bg[dK(0x61e)][dK(0x79d)]||'','data':a7(aG(bi)),'method':'post','contentType':dK(0x4ab),'type':ag[dK(0x872)],'log':bi,'requestConfig':{'timeout':0x1388},'success':function(){var dL=dK,bk=bg['config'][dL(0x4e7)];dL(0x4df)==typeof bk&&bi[dL(0x560)](function(bl){bk(bl);}),dL(0x4df)==typeof bj&&bj([]);},'fail':function(bk){'403\x20forbidden'===bk&&bg['destroy']();}});}],ag[dJ(0x872)])(bh);};},aI=function(){},aJ=(Object[d0(0x182)](bf[d0(0x6cb)],d0(0x37e),{'get':function(){var dM=d0;return console['warn'](dM(0x690)),'1.36.3';},'enumerable':!0x1,'configurable':!0x0}),Object[d0(0x182)](bf['prototype'],d0(0x66f),{'get':function(){var dN=d0;return console[dN(0x5b7)](dN(0x421)),ad;},'enumerable':!0x1,'configurable':!0x0}),bf[d0(0x6cb)][d0(0x54c)]=function(bg){var dO=d0;this[dO(0x7d3)](bg);for(var bh=0x0;bh<bf[dO(0x46f)][dO(0x61d)];bh++)try{bf[dO(0x46f)][bh]['patch'](this);}catch(bi){this[dO(0x7ce)](bi);}this[dO(0x9d8)][dO(0x80d)](dO(0xa12));},bf[d0(0x6cb)]['setConfig']=function(bg){var dP=d0;Object['assign'](this[dP(0x61e)],bg);var bh=(bg=this['config'])['id'],bi=bg[dP(0x93d)],bj=bg['version'],bk=bg['ext1'],bl=bg[dP(0xa0d)],bm=bg[dP(0x764)],bn=bg[dP(0x971)],bo=void 0x0===(bp=bg[dP(0x7bc)])?dP(0x3ea):bp,bp=bg['pageUrl'];return bg=this['bean']['id']!==bh||this['bean'][dP(0x93d)]!==bi||this[dP(0x26c)]['aid']!==bn,this[dP(0x26c)]['id']=bh||'',this['bean'][dP(0x93d)]=bi||'',this['bean'][dP(0x5ac)]=bj||dP(0x6b5),this[dP(0x26c)][dP(0x971)]=bn||'',this[dP(0x26c)][dP(0x7bc)]=(function(){var dQ=dP;switch(bo){case ah[dQ(0x3ea)]:case ah['development']:case ah['gray']:case ah[dQ(0x8cc)]:case ah['daily']:case ah[dQ(0x689)]:case ah[dQ(0x579)]:case ah[dQ(0x4a3)]:return 0x1;default:return;}}())?bo:ah['others'],bp&&this['extendBean']('from',encodeURIComponent(bp)),bk&&this['extendBean'](dP(0x40b),encodeURIComponent(bk)),bl&&this[dP(0x8fc)](dP(0xa0d),encodeURIComponent(bl)),bm&&this[dP(0x8fc)](dP(0x764),encodeURIComponent(bm)),bg&&this[dP(0x9d8)][dP(0x80d)]('onConfigChange',this[dP(0x61e)]),this[dP(0x61e)];},bf['use']=function(bg){var dR=d0;-0x1===bf[dR(0x46f)][dR(0x50b)](bg)&&bg[dR(0x530)]&&bf[dR(0x46f)][dR(0x315)](bg);},bf[d0(0x216)]=function(bg){var dS=d0;-0x1!==(bg=bf[dS(0x46f)][dS(0x50b)](bg))&&bf['installedPlugins'][dS(0x58f)](bg,0x1);},bf[d0(0x6cb)][d0(0x860)]=function(){var dT=d0;for(var bg=[],bh=0x0;bh<arguments[dT(0x61d)];bh++)bg[bh]=arguments[bh];var bi={'level':ad[dT(0x3e5)],'msg':bg};0x1===bg[dT(0x61d)]&&bg[0x0][dT(0x7a1)]&&Object[dT(0x5e8)](bi,a2({},bg[0x0]),{'level':ad[dT(0x3e5)]}),this[dT(0x6e6)](bi);},bf[d0(0x6cb)]['infoAll']=function(){var dU=d0;for(var bg=[],bh=0x0;bh<arguments['length'];bh++)bg[bh]=arguments[bh];var bi={'level':ad[dU(0x32b)],'msg':bg};0x1===bg[dU(0x61d)]&&bg[0x0][dU(0x7a1)]&&Object[dU(0x5e8)](bi,a2({},bg[0x0]),{'level':ad[dU(0x32b)]}),this[dU(0x6e6)](bi);},bf['prototype'][d0(0x735)]=function(){var dV=d0;for(var bg=[],bh=0x0;bh<arguments['length'];bh++)bg[bh]=arguments[bh];var bi={'level':ad['REPORT'],'msg':bg};0x1===bg[dV(0x61d)]&&bg[0x0][dV(0x7a1)]&&Object['assign'](bi,a2({},bg[0x0])),this[dV(0x6e6)](bi);},bf[d0(0x6cb)][d0(0x6ec)]=function(){var dW=d0;for(var bg=[],bh=0x0;bh<arguments['length'];bh++)bg[bh]=arguments[bh];var bi={'level':ad[dW(0x6ad)],'msg':bg};0x1===bg[dW(0x61d)]&&bg[0x0][dW(0x7a1)]&&Object[dW(0x5e8)](bi,a2({},bg[0x0]),{'level':ad['ERROR']}),this['normalLogPipeline'](bi);},bf['prototype']['speedLogPipeline']=function(bg){var dX=d0;throw new Error(dX(0x962));},bf[d0(0x6cb)][d0(0x6fe)]=function(bg){var dY=d0,bh,bi=this;bg&&(console[dY(0x5b7)](dY(0x2e2)),bh=''+Object[dY(0x6e3)](this[dY(0x26c)])[dY(0x7f8)](function(bj){return'id'!==bj;})[dY(0x68a)](function(bj){var dZ=dY;return bj+'='+bi[dZ(0x26c)][bj];})[dY(0x5d2)]('&'),this['sendPipeline']([function(bj,bk){var e0=dY;bk({'url':bi[e0(0x61e)][e0(0x79d)]+'/'+bg+'?'+bh,'addBean':!0x1,'type':ag[e0(0x6dd)],'fail':function(bl){var e1=e0;'403\x20forbidden'===bl&&bi[e1(0x73a)]();}});}],ag['CUSTOM_PV'])(null));},bf[d0(0x6cb)][d0(0x537)]=function(bg){var e2=d0;bg&&((bg=e2(0x4f5)==typeof bg?{'name':bg,'ext1':this[e2(0x61e)][e2(0x40b)]||'','ext2':this[e2(0x61e)][e2(0xa0d)]||'','ext3':this[e2(0x61e)][e2(0x764)]||''}:bg)[e2(0x95c)]?this[e2(0x5f7)](bg):console[e2(0x5b7)](e2(0x443)));},bf[d0(0x6cb)][d0(0x431)]=function(bg,bh){var e3=d0;if(e3(0x97f)==typeof bg)return this[e3(0x17c)](bg);'string'==typeof bg?e3(0x78e)==typeof bh?bh<0x0||0xea60<bh?console[e3(0x5b7)](e3(0x36d)):this[e3(0x2fd)](bg,bh):console[e3(0x5b7)](e3(0x43f)):console[e3(0x5b7)](e3(0x9c3));},bf[d0(0x6cb)][d0(0x17c)]=function(bg){var e4=d0,bh=bg[e4(0x95c)],bi=bg[e4(0x5b6)],bj=void 0x0===(bj=bg[e4(0x40b)])?'':bj,bk=void 0x0===(bk=bg['ext2'])?'':bk,bl=void 0x0===(bl=bg[e4(0x764)])?'':bl;if(bg=bg['from'],'string'==typeof bh&&e4(0x78e)==typeof bi&&'string'==typeof bj&&'string'==typeof bk&&e4(0x4f5)==typeof bl){if(!(bi<0x0||0xea60<bi))return this[e4(0x2fd)](bh,bi,bj,bk,bl,void 0x0===bg?'':bg);console['warn'](e4(0x36d));}else console[e4(0x5b7)]('reportTime:\x20params\x20error');},bf[d0(0x6cb)][d0(0x176)]=function(bg){var e5=d0;e5(0x4f5)==typeof bg?this[e5(0x344)][bg]?console[e5(0x5b7)]('Timer\x20'+bg+'\x20already\x20exists'):this[e5(0x344)][bg]=Date['now']():console[e5(0x5b7)]('time:\x20first\x20param\x20must\x20be\x20a\x20string');},bf['prototype']['timeEnd']=function(bg){var e6=d0;'string'==typeof bg?this[e6(0x344)][bg]?(this[e6(0x2fd)](bg,Date[e6(0x983)]()-this['timeMap'][bg]),delete this['timeMap'][bg]):console['warn'](e6(0x561)+bg+e6(0x84f)):console[e6(0x5b7)]('timeEnd:\x20first\x20param\x20must\x20be\x20a\x20string');},bf[d0(0x6cb)]['submitCustomTime']=function(bg,bh,bi,bj,bk,bl){var e7=d0;this[e7(0x17d)]({'name':bg,'duration':bh,'ext1':bi||this[e7(0x61e)][e7(0x40b)],'ext2':bj||this[e7(0x61e)][e7(0xa0d)],'ext3':bk||this['config'][e7(0x764)],'from':bl||void 0x0});},bf['prototype'][d0(0x8fc)]=function(bg,bh){this['bean'][bg]=bh;},bf[d0(0x6cb)][d0(0x81b)]=function(bg,bh){var bi,bj=this;return aq(a4([function(bk,bl){var e8=a0b;if(e8(0x78e)!=typeof bi['config'][e8(0x2bd)]&&(console[e8(0x5b7)]('random\x20must\x20in\x20[0,\x201],\x20default\x20is\x201.'),bi[e8(0x61e)][e8(0x2bd)]=0x1),!bi[e8(0x360)]||!bi[e8(0x4cf)]){if(bi[e8(0x4cf)])bi[e8(0x360)]||bl(bk);else{if(bi['isGetSample']=!0x0,Math[e8(0x2bd)]()<bi['config'][e8(0x2bd)])return bi['isHidden']=!0x1,bl(bk);bi[e8(0x360)]=!0x0;}}},an(bi=this,bh)],bg,[ao(this),function(bk,bl){var e9=a0b;bj[e9(0x870)](bk,function(){var ea=e9;for(var bm,bn=[],bo=0x0;bo<arguments[ea(0x61d)];bo++)bn[bo]=arguments[bo];bj['failRequestCount']=0x0,bl({'isErr':!0x1,'result':bn,'logType':null==bk?void 0x0:bk['type'],'logs':null==bk?void 0x0:bk[ea(0x45c)]}),null!=(bm=null==bk?void 0x0:bk['success'])&&bm[ea(0x6ca)][ea(0x1ea)](bm,a4([bk],bn));},function(){var eb=e9;for(var bm,bn=[],bo=0x0;bo<arguments[eb(0x61d)];bo++)bn[bo]=arguments[bo];0xa<=++bj['failRequestCount']&&bj[eb(0x73a)](),bl({'isErr':!0x0,'result':bn,'logType':null==bk?void 0x0:bk['type'],'logs':null==bk?void 0x0:bk['log']}),null!=(bm=null==bk?void 0x0:bk[eb(0x5b2)])&&bm[eb(0x6ca)][eb(0x1ea)](bm,a4([bk],bn));});},ap(this)]));},bf[d0(0x6cb)][d0(0x2d2)]=function(bg,bh,bi){var bj=this;return aq([ao(this),function(bk,bl){var ec=a0b;bj[ec(0x870)](bk,function(){var ed=ec;for(var bm=[],bn=0x0;bn<arguments[ed(0x61d)];bn++)bm[bn]=arguments[bn];bl({'isErr':!0x1,'result':bm,'logType':bk[ed(0x299)],'logs':bk[ed(0x45c)]}),null!=bh&&bh[ed(0x1ea)](void 0x0,bm);},function(){var ee=ec;for(var bm=[],bn=0x0;bn<arguments[ee(0x61d)];bn++)bm[bn]=arguments[bn];bl({'isErr':!0x0,'result':bm,'logType':bk[ee(0x299)],'logs':bk[ee(0x45c)]}),null!=bi&&bi[ee(0x1ea)](void 0x0,bm);});},ap(this)])(bg);},bf[d0(0x6cb)][d0(0x1d0)]=function(bg,bh,bi){var ef=d0;throw new Error(ef(0x6a1));},bf[d0(0x6cb)]['request']=function(bg,bh,bi){throw new Error('You\x20need\x20to\x20override\x20\x22request\x22\x20method');},bf[d0(0x6cb)]['sendSDKError']=function(bg){var eg=d0,bh=this;this[eg(0x81b)]([function(bi,bj){var eh=eg;bj({'url':bh[eh(0x61e)]['url']+'?id=1085&msg[0]='+encodeURIComponent(ak(bi))+eh(0x657)+bh['config']['id']+eh(0x366)+bh[eh(0x61e)]['id']+'(1.36.3)','addBean':!0x1,'method':eh(0x298),'type':ag[eh(0x8b7)],'log':bi});}],ag[eg(0x8b7)])(bg);},bf[d0(0x6cb)]['destroy']=function(bg){var ei=d0;void 0x0===bg&&(bg=!0x1);var bh,bi,bj=bf[ei(0x464)][ei(0x50b)](this);-0x1!==bj&&bf[ei(0x464)][ei(0x58f)](bj,0x1);for(var bk=bf[ei(0x46f)][ei(0x61d)]-0x1;0x0<=bk;bk--)try{bf[ei(0x46f)][bk][ei(0x1e9)](this);}catch(bm){this[ei(0x7ce)](bm);}if(this[ei(0x9d8)][ei(0x80d)](ei(0x73a)),this['lifeCycle'][ei(0x263)](),bg)bh=this,bi=Object[ei(0x955)](bh),Object[ei(0x365)](bi)[ei(0x560)](function(bn){var ej=ei;bi[bn][ej(0x804)]&&(bh[bn]=null);}),Object[ei(0x977)](this,null);else{for(var bl=this;bl[ei(0x93e)]!==Object&&ar(bl,this),bl=Object['getPrototypeOf'](bl););0x0===bf['instances'][ei(0x61d)]&&(ar(bj=Object[ei(0x38d)](this)['constructor']),ar(bf));}},bf[d0(0x5ac)]=d0(0x6b5),bf[d0(0x464)]=[],bf['logType']=ad,bf[d0(0x3b4)]=ah,bf[d0(0x46f)]=[],bf),aK=(be[d0(0x6cb)][d0(0x68b)]=function(bg){var ek=d0;this[ek(0x396)](bg)&&this[ek(0x9b6)](bg)&&(this[ek(0x464)][ek(0x315)](bg),this[ek(0x2e3)](bg),this['triggerOnNewAegis'](bg));},be[d0(0x6cb)]['unpatch']=function(bg){var el=d0;-0x1!==(bg=this[el(0x464)]['indexOf'](bg))&&(this[el(0x464)][el(0x58f)](bg,0x1),0x0===this['instances'][el(0x61d)]&&this['uninstall']());},be['prototype'][d0(0x619)]=function(){var em=d0;return this[em(0x464)][em(0x61d)];},be[d0(0x6cb)][d0(0x60c)]=function(){var en=d0,bg;null!=(bg=null==(bg=this['option'])?void 0x0:bg[en(0x73a)])&&bg[en(0x1ea)](this);},be[d0(0x6cb)][d0(0x179)]=function(bg){var eo=d0,bh=this;this[eo(0x464)][eo(0x560)](function(bi){var ep=eo,bj=bh[ep(0x396)](bi);bj&&bg(bi,bj);});},be[d0(0x6cb)][d0(0x396)]=function(bg){var eq=d0;return!(!(bg=this[eq(0x3c0)](bg))||eq(0x97f)!=typeof bg)||!!bg;},be[d0(0x6cb)][d0(0x3c0)]=function(bg){var er=d0;return null==(bg=bg['config'])?void 0x0:bg[this[er(0x95c)]];},be[d0(0x6cb)][d0(0x9b6)]=function(bg){return-0x1===this['instances']['indexOf'](bg);},be['prototype'][d0(0x2e3)]=function(bg){var es=d0,bh;this[es(0x1ab)]||(this[es(0x1ab)]=!0x0,null!=(bh=null==(bh=this['option'])?void 0x0:bh[es(0x54c)])&&bh['call'](this['option'],this[es(0x3c0)](bg)));},be['prototype'][d0(0x72b)]=function(bg){var et=d0,bh;null!=(bh=null==(bh=this[et(0x1c6)])?void 0x0:bh[et(0x985)])&&bh[et(0x6ca)](this[et(0x1c6)],bg,this[et(0x3c0)](bg));},be),aL=wx||qq,aM='',aN=new aK({'name':d0(0x8f0),'onNewAegis':function(bg){var eu=d0;if(aL[eu(0x9ce)])try{var bh=bg[eu(0x61e)],bi=bh['id'],bj=void 0x0===bi?'':bi,bk=bh['uin'],bl=void 0x0===bk?0x0:bk,bm=bh[eu(0x7f3)],bn=void 0x0===bm?'':bm,bo=bh[eu(0x6cc)],bp=new aO({'limit':bo});bg['lifeCycle']['on'](eu(0x966),function(bq){var ev=eu;bp[ev(0x5b8)](bq=void 0x0===bq?[]:bq,bg[ev(0x61e)]);}),bp[eu(0x1d0)](function(bq){var ew=eu,br=(bg[ew(0x26c)]||{})[ew(0x971)],bs=void 0x0===br?'':br;!bq&&bj&&(bl||bs)&&bg[ew(0x2d2)]({'url':bn+'/offlineAuto','type':ag['OFFLINE'],'log':ag[ew(0x7e9)]},function(bu){var ex=ew,bv=(null==bu?void 0x0:bu[ex(0x329)])['secretKey'];bv&&!bq&&bp[ex(0x7ad)]({'id':bj,'uin':bl},function(bw,bx){var ey=ex;bw?console['error'](bw):bg[ey(0x2d2)]({'url':bn+ey(0x72a),'data':{'logs':bx,'secretKey':bv,'id':bj,'uin':bl,'aid':bs},'method':ey(0x352),'type':ag[ey(0x7e9)],'log':bx},function(){var ez=ey;bp[ez(0x817)]();});});});});}catch(bq){console['error'](bq);}else console[eu(0x5b7)](eu(0x1f0));}}),aO=(bd['prototype'][d0(0x7ad)]=function(bg,bh){var eA=d0,bi=this[eA(0x885)],bj=this[eA(0xa05)];bi[eA(0x50c)]({'filePath':bj,'encoding':'utf8','fail':function(bk){var eB=eA;console[eB(0x6ec)](bk);},'success':function(bk){var eC=eA;bk=(void 0x0===(bk=bk[eC(0x329)])?'':bk)['toString']()['split']('\x0a')[eC(0x7f8)](function(bl){return bl;})[eC(0x68a)](function(bl){var eD=eC;return JSON[eD(0x87f)](bl);}),bh(null,bk);}});},bd[d0(0x6cb)][d0(0x880)]=function(bg,bh){var eE=d0;void 0x0===bh&&(bh=function(){});var bi=this[eE(0x885)],bj=this[eE(0xa05)],bk=this['limitSize'];bi['readFile']({'filePath':bj,'encoding':eE(0x76d),'success':function(bl){var eF=eE;if((bl=(bl=void 0x0===(bl=bl[eF(0x329)])?'':bl)[eF(0x3f9)]()+bg)['length']>bk){for(var bm=bl[eF(0x1ee)]('\x0a'),bn='',bo=bm[eF(0x61d)]-0x1;0x0<=bo&&!(bm[bo]&&(bn=bm[bo]+'\x0a'+bn)['length']>bk);bo--);bi[eF(0x29a)]({'filePath':bj,'data':bn,'success':bh});}else bi[eF(0x863)]({'data':bg,'filePath':bj,'encoding':eF(0x76d),'success':bh,'fail':function(bp){console['error'](bp);}});}});},bd),aP=new aK({'name':d0(0x8e4),'onNewAegis':function(bg){return bh=this,bk=function(){return a3(this,function(bl){var eG=a0b;return this[eG(0x6e8)](bg),this['refreshNetwork'](bg),this['setNetworkChange'](bg),[0x2];});},new(bj=(bj=bi=void 0x0)||Promise)(function(bl,bm){var eK=a0b;function bn(bq){var eH=a0b;try{bp(bk[eH(0x549)](bq));}catch(br){bm(br);}}function bo(bq){var eI=a0b;try{bp(bk[eI(0x30d)](bq));}catch(br){bm(br);}}function bp(bq){var eJ=a0b,br;bq[eJ(0x2ed)]?bl(bq[eJ(0x9e0)]):((br=bq['value'])instanceof bj?br:new bj(function(bs){bs(br);}))[eJ(0x1fe)](bn,bo);}bp((bk=bk[eK(0x1ea)](bh,bi||[]))[eK(0x549)]());});var bh,bi,bj,bk;},'setSystemInfo':function(bg){var eL=d0,bh=this;try{av(eL(0xa20))&&aL['getSystemInfo']({'success':function(bi){var eM=eL,bj=bi[eM(0x22d)],bk=bi['model'],bl=bi[eM(0x98d)],bm=bi[eM(0x189)],bn=void 0x0===(bn=bi[eM(0x9ed)])?0x0:bn;bi=void 0x0===(bi=bi[eM(0x7a3)])?0x0:bi,bg[eM(0x8fc)](eM(0x22d),bh[eM(0x3a0)](bj)),bg['extendBean'](eM(0x919),bk),bg['extendBean']('vp',Math[eM(0x312)](bm)+eM(0x453)+Math[eM(0x312)](bl)),bg[eM(0x8fc)]('sr',Math[eM(0x312)](bn)+eM(0x453)+Math[eM(0x312)](bi));}});}catch(bi){}},'getPlatFormType':function(bg){var eN=d0;for(var bh,bi={'android':/android/i,'ios':/ios/i,'windows':/windows/i,'macos':/mac/i,'devtools':/devtools/i},bj=ae[eN(0x917)],bk=0x0;bk<Object[eN(0x365)](bi)[eN(0x61d)];bk++){var bl=Object[eN(0x365)](bi)[bk];if(null!=(bh=bi[bl])&&bh['test'](bg)){bj=ae[bl];break;}}return bj;},'setNetworkChange':function(bg){var eO=d0;av(eO(0x399))&&aL['onNetworkStatusChange'](function(bh){var eP=eO;bh=aw(bh[eP(0x29c)]),bg[eP(0x8fc)](eP(0x688),bh);});},'setNetworkType':function(bg){var eQ=d0;av(eQ(0x1ba))&&aL['getNetworkType']({'success':function(bh){var eR=eQ;bh=aw(bh[eR(0x29c)]),bg[eR(0x8fc)](eR(0x688),bh);}});},'refreshNetwork':function(bg){var eS=d0,bh=this;this[eS(0x509)]&&clearTimeout(this[eS(0x509)]),this[eS(0x965)](bg),this[eS(0x509)]=setTimeout(function(){var eT=eS;bh[eT(0x207)](bg);},0x2710);}}),aQ=aL[d0(0x870)],aR=(a1(bc,aD=aJ),Object['defineProperty'](bc['prototype'],d0(0x9ac),{'get':function(){var eU=d0,bg=this;return this[eU(0x26c)]?Object['getOwnPropertyNames'](this['bean'])[eU(0x68a)](function(bh){var eV=eU;return bh+'='+bg[eV(0x26c)][bh];})[eU(0x5d2)]('&')+'&from='+encodeURIComponent(as(this['config'])):'from='+encodeURIComponent(as(this['config']));},'enumerable':!0x1,'configurable':!0x0}),bc[d0(0x6cb)][d0(0x30b)]=function(){var eW=d0;bc[eW(0xa24)](aN);},bc['prototype'][d0(0x6c5)]=function(bg,bh){var eX=d0;this['lifeCycle']['emit'](eX(0x6c5),bg=void 0x0===bg?{}:bg,bh=void 0x0===bh?{}:bh);},bc[d0(0x6cb)]['reportPv']=function(bg){var eY=d0,bh,bi=this;bg&&(bh=Object[eY(0x6e3)](this['bean'])[eY(0x7f8)](function(bj){return'id'!==bj;})[eY(0x68a)](function(bj){var eZ=eY;return bj+'='+bi[eZ(0x26c)][bj];})[eY(0x5d2)]('&')+eY(0x6e0)+encodeURIComponent(as(this[eY(0x61e)])),this[eY(0x2d2)]({'url':this[eY(0x61e)]['url']+'/'+bg+'?'+bh,'addBean':!0x1,'type':ag['CUSTOM_PV'],'log':ag['CUSTOM_PV']},function(){},function(){}));},bc[d0(0x229)]=d0(0x7fc)+Date[d0(0x983)](),bc[d0(0x8d0)]=0x0,aJ=bc,new aK({'name':'aid','onNewAegis':function(bg){this['initAid'](function(bh){var f0=a0b;bg['bean']['aid']=bh,bg[f0(0x61e)]['aid']=bh;});},'initAid':function(bg){var f1=d0;aL[f1(0x320)]({'key':f1(0x2f6),'success':function(bh){var f2=f1;bg(bh[f2(0x329)]);},'fail':function(){var f3=f1,bh=f3(0x7be)[f3(0x181)](/[xy]/g,function(bi){var f4=f3,bj=0x10*Math[f4(0x2bd)]()|0x0;return('x'===bi?bj:0x3&bj|0x8)['toString'](0x10);});aL[f3(0x704)]({'key':f3(0x2f6),'data':bh,'success':function(){bg(bh);}});}});}})),aS=(bb[d0(0x6cb)]['addCallback']=function(bg){var f5=d0;bg&&this[f5(0x9c5)][f5(0x315)](bg);},bb[d0(0x6cb)][d0(0x706)]=function(bg){return a2(a2({},bg),{'aegisRequestStartTime':+new Date()});},bb[d0(0x6cb)][d0(0x91b)]=function(bg,bh){var f6=d0,bi;this[f6(0x9c5)]['forEach'](function(bj){var bk;try{null!=(bk=bj['success'])&&bk['call'](bj,bg,bh);}catch(bl){}}),null!=(bi=bh['success'])&&bi[f6(0x6ca)](bh,bg,bh);},bb[d0(0x6cb)][d0(0x922)]=function(bg,bh){var f7=d0,bi;this[f7(0x9c5)][f7(0x560)](function(bj){var f8=f7,bk;try{null!=(bk=bj[f8(0x5b2)])&&bk[f8(0x6ca)](bj,bg,bh);}catch(bl){}}),null!=(bi=bh[f7(0x5b2)])&&bi['call'](bh,bg,bh);},bb['prototype'][d0(0x296)]=function(bg,bh){var f9=d0,bi;this['callbacks'][f9(0x560)](function(bj){var fa=f9,bk;try{null!=(bk=bj[fa(0x8ef)])&&bk[fa(0x6ca)](bj,bg,bh);}catch(bl){}}),null!=(bi=bh['complete'])&&bi['call'](bh,bg,bh);},bb[d0(0x6cb)][d0(0x31f)]=function(){var fb=d0;try{this[fb(0x5d9)]();}catch(bg){console[fb(0x5b7)](fb(0x7fd)+this[fb(0xa1f)]+fb(0x592)+bg);}finally{this[fb(0x5f0)]=!0x0;}},bb),aT=wx||qq,aU={},aV=(a1(ba,aC=aS),ba['prototype'][d0(0x5d9)]=function(){var fc=d0,bg=this;aT[fc(0x80b)]&&aT['cloud'][this[fc(0xa1f)]]&&Object[fc(0x182)](aT[fc(0x80b)],this[fc(0xa1f)],{'get':function(){var fd=fc;return bg['hackHandler'][fd(0xa0c)](bg);}});},ba[d0(0x6cb)]['hackHandler']=function(bg){var fe=d0,bh=this,bi=this[fe(0x706)](bg);return new Promise(function(bj,bk){var ff=fe,bl=null==(bl=aU[bh[ff(0xa1f)]])?void 0x0:bl[ff(0x7b6)];null!=bl&&bl(a2(a2({},bi),{'success':function(bm){bh['successHandler'](bm,bi),bj(bm);},'fail':function(bm){var fg=ff;bh[fg(0x922)](bm,bi),bk(bm);},'complete':function(bm){var fh=ff;bh[fh(0x296)](bm,bi);}}));});},ba),aW=wx||qq,aX={},aY=(a1(b9,aB=aS),b9[d0(0x6cb)]['defineApiProperty']=function(){var fi=d0,bg=this;Object[fi(0x182)](aW,this['apiName'],{'get':function(){var fj=fi;return bg[fj(0x400)][fj(0xa0c)](bg);}});},b9[d0(0x6cb)][d0(0x400)]=function(bg){var fk=d0,bh=this,bi=this[fk(0x706)](bg);return null==(bg=null==(bg=aX[this[fk(0xa1f)]])?void 0x0:bg[fk(0x7b6)])?void 0x0:bg(a2(a2({},bi),{'success':function(bj){var fl=fk;bh[fl(0x91b)](bj,bi);},'fail':function(bj){var fm=fk;bh[fm(0x922)](bj,bi);},'complete':function(bj){var fn=fk;bh[fn(0x296)](bj,bi);}}));},b9),aZ=new aK({'name':d0(0x3bf),'override':!0x1,'onNewAegis':function(bg){var fo=d0;this[fo(0x31f)]||(this[fo(0x31f)]=!0x0,this[fo(0x4c7)](bg[fo(0x61e)]),this['overrideCallFunction'](bg['config']),this[fo(0x2c5)](bg[fo(0x61e)]));},'hackRequest':function(bg){var fp=d0,bh=this;ay({'apiName':fp(0x870),'success':function(bi,bj){var fq=fp,bk,bl,bm,bn;bg[fq(0x260)]&&-0x1<bj[fq(0x79d)][fq(0x50b)](bg[fq(0x260)])||(bk={'method':bj[fq(0x9dc)]||fq(0x298),'url':a9(bj[fq(0x79d)]),'duration':Date['now']()-bj[fq(0x430)],'status':bi[fq(0x7e6)]||0x0,'nextHopProtocol':'','isHttps':aa(bj['url']),'type':'fetch'},bl=null==(bl=bg[fq(0x94c)])?void 0x0:bl[fq(0x1c8)],bm=(bn=ab(bi[fq(0x329)],bg['api'],{'url':bj[fq(0x79d)],'ctx':bi})||{})[fq(0x318)],bn=bn[fq(0x98b)],bj='req\x20url:\x20'+bk[fq(0x79d)]+fq(0x991)+bk[fq(0x9dc)]+fq(0x787)+(bl?ak(bj[fq(0x329)]):'')+'\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20duration:\x20'+bk['duration']+fq(0x731)+(bi[fq(0x7e6)]||0x0)+fq(0x83a)+bm+fq(0x3f3)+(bl?ac(bi[fq(0x329)]):''),bh['publishNormalLog']({'msg':bj,'level':ad[fq(0x6d7)],'ctx':bi}),bk['ret']=bm,bk[fq(0x98b)]=+bn,bh[fq(0x6ed)](bk),bn&&bh['publishNormalLog']({'msg':bj,'level':ad[fq(0x84a)],'ctx':bi}));},'fail':function(bi,bj){var fr=fp;bg[fr(0x260)]&&-0x1<bj[fr(0x79d)]['indexOf'](bg['hostUrl'])||(bj={'method':bj[fr(0x9dc)]||fr(0x298),'url':a9(bj['url']),'duration':Date[fr(0x983)]()-bj['aegisRequestStartTime'],'status':0x0,'nextHopProtocol':'','isHttps':aa(bj[fr(0x79d)]),'type':fr(0x620)},bh[fr(0x6ed)](bj));}});},'overrideCallFunction':function(bg){var fs=d0,bh=this;ax({'apiName':fs(0x3c1),'success':function(bi,bj){var ft=fs;bh[ft(0x550)](bg,bj,bi,ft(0x3c1));},'fail':function(bi,bj){var fu=fs;bj={'method':fu(0x6ca),'url':fu(0x4d1)+bj[fu(0x95c)],'duration':Date[fu(0x983)]()-bj[fu(0x430)],'status':0x0,'nextHopProtocol':'','type':'fetch','errMsg':bi['errMsg'],'isHttps':!0x0},bh[fu(0x6ed)](bj);}});},'overrideCallContainer':function(bg){var bh=this;ax({'apiName':'callContainer','success':function(bi,bj){var fv=a0b;bh[fv(0x550)](bg,bj,bi,fv(0x64d));},'fail':function(bi,bj){var fw=a0b;bj={'method':fw(0x6ca),'url':fw(0x536)+bj['path'],'duration':Date['now']()-bj[fw(0x430)],'status':0x0,'nextHopProtocol':'','type':'fetch','errMsg':bi[fw(0x7b3)],'isHttps':!0x0},bh[fw(0x6ed)](bj);}});},'cloudSuccessCallback':function(bg,bh,bi,bj){var fx=d0,bk=fx(0x3c1)===bj?bh[fx(0x95c)]:bh['path'],bl=fx(0x3c1)===bj?bi[fx(0x6df)]:bi[fx(0x329)],bm=(bk={'method':fx(0x6ca),'url':'wx.cloud.'+bj+'.'+bk,'duration':Date['now']()-bh[fx(0x430)],'status':0xc8,'nextHopProtocol':'','type':'fetch','isHttps':!0x0},['apiName','aegisRequestStartTime',fx(0x61e),fx(0x438),fx(0x5b2),fx(0x8ef)]),bn=Object['keys'](bh)[fx(0x1c9)](function(bq,br){var fy=fx;return bm[fy(0x7ca)](br)||(bq[br]=bh[br]),bq;},{}),bo=(bj=fx(0x3c1)===bj?(null==(bj=bi[fx(0x329)])?void 0x0:bj[fx(0x318)])||0x0:bi['statusCode'],(bp=ab(bl,bg[fx(0x94c)],{'url':bk['url'],'ctx':bi})||{})[fx(0x318)]),bp=void 0x0!==(bp=bp[fx(0x98b)])&&bp;bk['ret']=bo,bk[fx(0x98b)]=+bp,bg=null==(bo=bg['api'])?void 0x0:bo[fx(0x1c8)],bo=fx(0x283)+bk[fx(0x79d)]+fx(0x9ad)+bk[fx(0x299)]+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0areq\x20params:\x20'+(bg?ac(bn):'')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20status:\x20'+bj+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20retcode:\x20'+bk['ret']+fx(0x905)+bk[fx(0x5b6)]+fx(0x5c7)+(bg?ac(bl):'')+fx(0x8e1),this[fx(0x72f)]({'msg':bo,'level':ad['API_RESPONSE'],'ctx':bi}),this['publishSpeedLog'](bk),bp&&this[fx(0x72f)]({'msg':bo,'level':ad[fx(0x84a)],'ctx':bi});},'publishSpeedLog':function(bg){var fz=d0;this[fz(0x472)](function(bh){var fA=fz;bh[fA(0x818)](bg);});},'publishNormalLog':function(bg){var fB=d0;this[fB(0x472)](function(bh){bh['normalLogPipeline'](bg);});}}),b0=wx||qq,b1=b0[d0(0x770)],b2=(b8[d0(0x6cb)][d0(0x6a0)]=function(bg){var fC=d0,bh=bg['send'];bg=bg['onError'],bh&&this[fC(0x5b5)][fC(0x315)](bh),bg&&this[fC(0x891)][fC(0x315)](bg);},b8['prototype'][d0(0x267)]=function(bg){var fD=d0,bh=this,bi=(this[fD(0x891)][fD(0x560)](function(bj){var fE=fD;bg[fE(0x58a)](bj);}),bg['send']);return Object[fD(0x182)](bg,fD(0x2d2),{'get':function(){return function(bj){return new Promise(function(bk){bi['call'](bg,a2(a2({},bj),{'fail':function(bl){bh['sends']['forEach'](function(bm){var bn;null!=(bn=bm['fail'])&&bn['call'](bm,bl,bj);}),bk(bl);}}));});};}}),bg;},b8),b3=(a1(b7,aA=aS),b7[d0(0x6cb)][d0(0x4fd)]=function(bg){var fF=d0;this[fF(0x27d)][fF(0x6a0)](bg);},b7['prototype'][d0(0x5d9)]=function(){var fG=d0,bg=this;Object[fG(0x182)](b0,fG(0x770),{'get':function(){var fH=fG;return bg[fH(0x400)][fH(0xa0c)](bg);}});},b7[d0(0x6cb)][d0(0x400)]=function(bg){var fI=d0,bh=this,bi=this[fI(0x706)](bg);return bg=b1(a2(a2({},bi),{'success':function(bj){bh['successHandler'](bj,bi);},'fail':function(bj){var fJ=fI;bh[fJ(0x922)](bj,bi);},'complete':function(bj){var fK=fI;bh[fK(0x296)](bj,bi);}})),this[fI(0x27d)][fI(0x267)](bg),bg;},b7),b4=(aS=new aK({'name':d0(0x58a),'onNewAegis':function(bg){var fL=d0,bh=aL[fL(0x631)]()[fL(0x33b)];this['listenError'](),this[fL(0x52d)](bg),this['hackCloud'](bg),bg[fL(0x61e)][fL(0x2e6)]&&au(bh,fL(0x894))&&this[fL(0x68e)]();},'listenError':function(){var fM=d0,bg=this;'function'==typeof aL[fM(0x58a)]&&aL[fM(0x58a)](function(bh){var fN=fM;bh&&bg[fN(0x46c)]({'msg':bh,'level':ad[fN(0x6ad)]});}),av(fM(0x1a7))&&aL[fM(0x1a7)](function(bh){var fO=fM;!(bh=bh[fO(0x63f)])||-0x1<JSON[fO(0x3f6)](bh)[fO(0x50b)](fO(0x730))||bg[fO(0x46c)]({'msg':bh,'level':ad[fO(0x958)]});}),av(fM(0x588))&&aL[fM(0x588)](function(bh){var fP=fM;bh&&bg[fP(0x46c)]({'msg':bh,'level':ad[fP(0x377)]});});},'publishErrorLog':function(bg){this['$walk'](function(bh){var fQ=a0b;bh[fQ(0x6e6)](bg);});},'hackNetWork':function(bg){var fR=d0;for(var bh=this,bi=bg['config'],bj=0x0,bk=[{'apiName':'request','complete':function(bm,bn){return bh['requestCompleteError'](bm,bn,bi);}},{'apiName':fR(0x49d),'complete':function(bm,bn){var fS=fR;return bh[fS(0x96e)](bm,bn,bi);}},{'apiName':fR(0x531),'complete':function(bm,bn){var fT=fR;return bh[fT(0x1d7)](bm,bn,bi);}}];bj<bk['length'];bj++){var bl;ay({'apiName':(bl=bk[bj])[fR(0xa1f)],'complete':bl=bl[fR(0x8ef)]});}},'requestCompleteError':function(bg,bh,bi){var fU=d0,bj,bk=bg[fU(0x7b3)],bl=bg['statusCode'];bi['hostUrl']&&-0x1<(null==(bj=bh[fU(0x79d)])?void 0x0:bj[fU(0x50b)](bi[fU(0x260)]))||(bj=this[fU(0x998)]({'errMsg':bk,'statusCode':bl}))&&this[fU(0x675)]({'apiName':fU(0x870),'opts':bh,'res':bg,'config':bi,'type':bj});},'downloadFileCompleteError':function(bg,bh,bi){var fV=d0,bj=bg[fV(0x7b3)],bk=bg[fV(0x7e6)],bl=bg[fV(0xa05)],bm=(bg=bg[fV(0x8c4)],this[fV(0x998)]({'errMsg':bj,'statusCode':bk}));bm&&(bi=null==(bi=bi[fV(0x94c)])?void 0x0:bi[fV(0x1c8)],this[fV(0x46c)]({'msg':fV(0x63a)+bm+fV(0x478)+(bk||0x0)+fV(0x290)+(Date[fV(0x983)]()-bh[fV(0x430)])+fV(0x6bd)+bl+fV(0x3e8)+bg+fV(0x7c4)+bh[fV(0x79d)]+fV(0x61c)+(bh[fV(0x9dc)]||fV(0x298))+fV(0x584)+(bi?ak(bh[fV(0x329)]):'')+fV(0x1bf)+bj['slice'](0x0,0x3e8),'level':ad[fV(0x268)]}));},'uploadFileCompleteError':function(bg,bh,bi){var fW=d0,bj=bg[fW(0x7b3)],bk=bg['statusCode'];(bj=this[fW(0x998)]({'errMsg':bj,'statusCode':bk}))&&this[fW(0x675)]({'apiName':fW(0x49d),'opts':bh,'res':bg,'config':bi,'type':bj});},'hackCloud':function(bg){var fX=d0;for(var bh=this,bi=bg['config'],bj=0x0,bk=[{'apiName':fX(0x3c1),'complete':function(bm,bn){var fY=fX;return bh[fY(0x8c0)](bm,bn,bi);}},{'apiName':fX(0x64d),'complete':function(bm,bn){return bh['callContainerCompleteError'](bm,bn,bi);}}];bj<bk[fX(0x61d)];bj++){var bl;ax({'apiName':(bl=bk[bj])['apiName'],'complete':bl=bl['complete']});}},'callFunctionCompleteError':function(bg,bh,bi){var fZ=d0;(-0x1<bg[fZ(0x7b3)][fZ(0x50b)](fZ(0x5b2))||-0x1<bg[fZ(0x7b3)][fZ(0x50b)](fZ(0x8e3)))&&(bi=null==(bi=bi[fZ(0x94c)])?void 0x0:bi[fZ(0x1c8)],this[fZ(0x46c)]({'msg':fZ(0x8a5)+(Date[fZ(0x983)]()-bh[fZ(0x430)])+fZ(0x2b3)+(bi?ak(bg):'')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0areq\x20url:\x20cloud.callFunction.'+bh['name']+fZ(0x7cb)+(bi?ak(bh[fZ(0x329)]):'')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0aerrMsg:\x20'+bg[fZ(0x7b3)][fZ(0x859)](0x0,0x3e8),'level':ad[fZ(0x268)]}));},'callContainerCompleteError':function(bg,bh,bi){var g0=d0,bj=bg[g0(0x7b3)],bk=bg['statusCode'];(0x190<=bk||-0x1<bj[g0(0x50b)](g0(0x5b2))||-0x1<bj[g0(0x50b)](g0(0x8e3)))&&(bi=null==(bi=bi['api'])?void 0x0:bi[g0(0x1c8)],this[g0(0x46c)]({'msg':g0(0x47b)+(bk||0x0)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20duration:\x20'+(Date[g0(0x983)]()-bh['aegisRequestStartTime'])+'ms\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20data:\x20'+(bi?ak(bg):'')+g0(0x196)+bh['path']+g0(0x8d4)+(bh[g0(0x9dc)]||'POST')+g0(0x810)+(bi?ak(bh['data']):'')+g0(0x239)+bj[g0(0x859)](0x0,0x3e8),'level':ad[g0(0x268)]}));},'publishNetWorkError':function(bg){var g1=d0,bh=bg[g1(0xa1f)],bi=bg[g1(0x76c)],bj=bg['res'],bk=bg[g1(0x61e)],bl=(bg=bg[g1(0x299)],bj['errMsg']),bm=bj[g1(0x7e6)],bn=bj[g1(0x329)],bo=null==(bo=bk[g1(0x94c)])?void 0x0:bo['apiDetail'],bp='wx.cloud.callFunction.'+bi['url'];bk=ab(bn,bk['api'],{'url':bp,'ctx':bj})['code'],this[g1(0x46c)]({'msg':g1(0x751)+bh+'\x20'+bg+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20status:\x20'+(bm||0x0)+g1(0x8a3)+bk+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20duration:\x20'+(Date[g1(0x983)]()-bi[g1(0x430)])+g1(0x828)+(bo?ak(bn):'')+g1(0x7c4)+bi['url']+g1(0x61c)+(bi[g1(0x9dc)]||g1(0x298))+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0areq\x20param:\x20'+(bo?ak(bi['data']):'')+g1(0x1bf)+bl[g1(0x859)](0x0,0x3e8),'level':ad[g1(0x268)]});},'getErrorType':function(bg){var g2=d0,bh=bg[g2(0x7b3)],bi=(bg=bg[g2(0x7e6)],'');return-0x1<bh[g2(0x50b)](g2(0x8e3))||-0x1<bh['indexOf']('超时')?bi=g2(0x8e3):0x190<=bg?bi=g2(0x6ec):(-0x1<bh[g2(0x50b)](g2(0x5b2))||!bg||bg<0x0)&&(bi='failed'),bi;},'hackWsConnect':function(){var g3=d0,bg,bh,bi=this;ay({'apiName':g3(0x969),'fail':function(bj){var g4=g3;bi[g4(0xa18)](bj);}}),bg=(bh={'connectCallback':{'fail':function(bj){var g5=g3;bi[g5(0xa18)](bj);}},'taskOpt':{'onError':function(bj){var g6=g3;bi[g6(0xa18)](bj);},'send':{'fail':function(bj){var g7=g3;bi[g7(0xa18)](bj);}}}})[g3(0x953)],bh=bh['taskOpt'],az?az['addCallback'](bg):az=new b3(bg),bh&&az[g3(0x4fd)](bh);},'publishSocketError':function(bg){var g8=d0;bg&&this[g8(0x46c)]({'msg':bg[g8(0x7b3)],'level':ad[g8(0x9cf)]});}}),new aK({'name':'reportAssetSpeed','isStart':!0x1,'onNewAegis':function(bg){var g9=d0;this[g9(0x6eb)]||(this['isStart']=!0x0,this[g9(0x1f8)](bg));},'start':function(){var ga=d0,bg=this;aL['getPerformance']&&aL[ga(0x611)]()[ga(0x625)](function(bh){var gb=ga;null!=(bh=bh['getEntries']())&&bh[gb(0x560)](function(bi){var gc=gb;'number'!=typeof bi['duration']||bi[gc(0x5b6)]<=0x0||bg['publishAssetLog'](bi);});})[ga(0x9a4)]({'entryTypes':['resource']});},'generateLog':function(bg){var gd=d0;return{'url':''+a9(bg[gd(0x439)]),'method':'get','duration':Math[gd(0x312)](0x64*bg[gd(0x5b6)])/0x64,'status':0xc8,'type':gd(0x777),'isHttps':!0x0,'urlQuery':'','nextHopProtocol':'','domainLookup':0x0,'connectTime':0x0};},'publishAssetLog':function(bg){var ge=d0,bh=this;this[ge(0x472)](function(bi){var gf=ge;bi[gf(0x818)](bh[gf(0x415)](bg));});}})),b5=[d0(0x8bc),d0(0x339),d0(0x58a),'onLoad',d0(0x211),d0(0x662),d0(0x6e2)],b6=new aK({'name':d0(0x765),'pageNavigationStartTime':{},'onNewAegis':function(bg){var gg=d0;try{av(gg(0x611))&&this['reportPerformance'](bg),this[gg(0x251)](bg),this['reportSetDataTiming'](bg);}catch(bh){}},'reportPerformance':function(bg){var gh=d0,bh=this,bi=null==(bi=aL[gh(0x611)]())?void 0x0:bi['createObserver'](function(bj){var gi=gh,bk={},bl=null==(bl=bj[gi(0x8fb)](gi(0x502)))?void 0x0:bl[0x0],bm=null==(bm=bj[gi(0x8fb)](gi(0x9cb)))?void 0x0:bm[0x0],bn=null==(bn=bj['getEntriesByName'](gi(0x23f)))?void 0x0:bn[0x0],bo=null==(bo=bj[gi(0x8fb)](gi(0x321)))?void 0x0:bo[0x0],bp=null==(bp=null==(bp=bj[gi(0x8fb)](gi(0x6b8)))?void 0x0:bp[0x0])?void 0x0:bp[gi(0x25f)],bq=null==(bq=(null==(bq=bj[gi(0x8fb)](gi(0x6b8)))?void 0x0:bq[0x0])||(null==(bq=bj['getEntriesByName'](gi(0x321)))?void 0x0:bq[0x0])||(null==(bq=bj['getEntriesByName'](gi(0x502)))?void 0x0:bq[0x0]))?void 0x0:bq[gi(0x1a8)],br=null==(bj=(null==(br=bj[gi(0x8fb)](gi(0x321)))?void 0x0:br[0x0])||(null==(br=bj[gi(0x8fb)]('appLaunch'))?void 0x0:br[0x0]))?void 0x0:bj[gi(0x25f)];bq&&(bh['pageNavigationStartTime'][bq]=null,br&&(bh[gi(0x44e)][bq]=br)),bl&&(bk['appLaunch']=bl['duration']),bm&&(bk[gi(0x9bb)]=bm[gi(0x5b6)]),bn&&(bk[gi(0x1b6)]=bn['duration']),bo&&(bk[gi(0x875)]=bo[gi(0x5b6)]),bp&&br?bk[gi(0x27e)]=Math[gi(0x94f)](bp-br,0x0):bp&&bh[gi(0x44e)][bq]&&(bk[gi(0x27e)]=Math[gi(0x94f)](bp-bh[gi(0x44e)][bq],0x0)),bh[gi(0x906)](bk,bg);});null!=bi&&bi[gh(0x9a4)]({'entryTypes':[gh(0x461),gh(0x5bb),gh(0x19e)]});},'publish':function(bg,bh){var gj=d0,bi,bj,bk,bl=[],bm=bh[gj(0x61e)],bn=-0x1===(null==(bi=bh['config'][gj(0x847)])?void 0x0:bi['indexOf']('?'))?'?':'&';for(bj in bg)bl[gj(0x315)](bj+'='+bg[bj]);'function'==typeof bm[gj(0x413)]?(bk=bm[gj(0x413)]()||window[gj(0x7a7)]['href'],this[gj(0x472)](function(bo){var gk=gj;bo[gk(0x2d2)]({'url':bh[gk(0x61e)][gk(0x847)]+bn+bl[gk(0x5d2)]('&')+gk(0x6e0)+encodeURIComponent(bk),'beanFilter':[gk(0x1d4)],'type':ag[gk(0x886)],'log':bg});})):this[gj(0x472)](function(bo){var gl=gj;bo[gl(0x2d2)]({'url':bh[gl(0x61e)]['performanceUrl']+bn+bl[gl(0x5d2)]('&'),'type':ag['PERFORMANCE'],'log':bg});});},'setPagePV':function(bg){var gm=d0,bh=this;aL[gm(0x452)]&&aL['onAppRoute'](function(bi){var gn=gm;'appLaunch'!==bi[gn(0x89e)]&&(bh[gn(0x472)](function(bj){var go=gn;bj[go(0x2d2)]({'url':''+bj[go(0x61e)][go(0x479)],'type':ag['PV']});}),bh[gn(0x8e5)](bi));});},'reportPageLoaded':function(bg){var gp=d0;bg=gp(0x811)+bg['path']+gp(0x6f4)+bg['openType'],this[gp(0x72f)]({'msg':bg,'level':ad[gp(0x3e5)]});},'publishNormalLog':function(bg){var gq=d0;this[gq(0x472)](function(bh){var gr=gq;bh[gr(0x6e6)](bg);});},'reportSetDataTiming':function(bg){var gs=d0,bh,bi,bj,bk,bl,bm,bn,bo,bp,bq,br=this;!0x0!==(bq=(bq=bg[gs(0x61e)])[gs(0x371)]||(null==(bq=bq[gs(0x765)])?void 0x0:bq[gs(0x371)])||{})[gs(0x93b)]&&(bh=bq['timeThreshold'],bi=!0x1!==bq[gs(0x995)],bj=bh&&0x0<+bh?+bh:0x1e,bk=aq([al(bg,0xa),function(bs){var gu=gs;bs=bs['map'](function(bu){var gt=a0b;return{'type':ag[gt(0x21b)],'component':bu[gt(0x1d4)],'duration':bu[gt(0x5b6)],'fields':bu[gt(0x226)]&&bu[gt(0x226)][gt(0x61d)]?bu[gt(0x226)][gt(0x677)]()[gt(0x5d2)](';'):void 0x0,'size':bu[gt(0x1b2)]};}),bg['send']({'url':bg['config']['setDataReportUrl']+gu(0x944)+encodeURIComponent(JSON[gu(0x3f6)]({'miniProgramData':bs})),'type':ag['SET_DATA'],'log':bs});}]),bl=Page,bm=Component,bn=function(bs,bu){var bv=0x0;return null!=bs&&bs['data']?(bu['forEach'](function(bw){var gv=a0b;for(var bx=bs['data'][bw[0x0]],by=0x1,bz=bw[gv(0x61d)];by<bz;by++)bx[bw[by]]&&(bx=bx[bw[by]]);var bA='';try{bA=JSON[gv(0x3f6)](bx);}catch(bB){bA='';}bv+=0x2*(void 0x0===bA?'':bA)[gv(0x181)](/[\u4e00-\u9fa5]/g,'aa')[gv(0x61d)];}),bv=Math['min'](bv,0xa00000)):bv;},bo=function(bs,bu){var gw=gs,bv=bu['updateStartTimestamp'],bw=bu[gw(0x373)];bu=void 0x0===(bu=bu[gw(0x226)])?[]:bu,bw-=bv,isNaN(bw)||bw<bj||(bv={'from':bs['is'],'duration':bw},bi&&0x0<bu[gw(0x61d)]&&Object[gw(0x5e8)](bv,{'dataPaths':bu[gw(0x859)](0x0,0x1e),'size':bn(bs,bu)}),bk(bv));},bp=function(bs){var gx=gs,bu=gx(0x2f1)+Object[gx(0x365)](bs[0x0])[gx(0x1c9)](function(bv,bw){var gy=gx,bx='';try{bx=bw+':\x20'+JSON[gy(0x3f6)](bs[0x0][bw]);}catch(by){bx='';}return bv+'\x0a'+bx;},'');br[gx(0x72f)]({'msg':bu,'level':ad[gx(0x3e5)]});},Page=function(bs){var gz=gs,bu=bs[gz(0x211)];return bs[gz(0x211)]=function(){var gA=gz,bv=this;return gA(0x4df)==typeof this[gA(0x8d5)]&&this[gA(0x8d5)]({'withDataPaths':bi},function(bw){bo(bv,bw);}),null==bu?void 0x0:bu[gA(0x6ca)](this);},Object['keys'](bs)[gz(0x560)](function(bv){var gB=gz,bw;gB(0x4df)!=typeof bs[bv]||b5[gB(0x7ca)](bv)||(bw=bs[bv],bs[bv]=function(){var gC=gB;for(var bx=[],by=0x0;by<arguments[gC(0x61d)];by++)bx[by]=arguments[by];return null!=bx&&bx[0x0]&&'tap'===bx[0x0][gC(0x299)]&&bp(bx),null==bw?void 0x0:bw[gC(0x1ea)](this,bx);});}),bl(bs);},Component=function(bs){var gD=gs;bs[gD(0x89b)]&&bs[gD(0x89b)][gD(0x72d)]?(bu=bs['lifetimes'][gD(0x72d)],bs['lifetimes'][gD(0x72d)]=function(){var gE=gD,bx=this;return gE(0x4df)==typeof this[gE(0x8d5)]&&this[gE(0x8d5)]({'withDataPaths':bi},function(by){bo(bx,by);}),null==bu?void 0x0:bu[gE(0x6ca)](this);}):(bv=bs[gD(0x72d)],bs['attached']=function(){var gF=gD,bx=this;return gF(0x4df)==typeof this['setUpdatePerformanceListener']&&this[gF(0x8d5)]({'withDataPaths':bi},function(by){bo(bx,by);}),null==bv?void 0x0:bv[gF(0x6ca)](this);});var bu,bv,bw=bs[gD(0x2d4)];return bw&&gD(0x7e5)===Object[gD(0x6cb)][gD(0x3f9)][gD(0x6ca)](bw)&&Object[gD(0x365)](bw)['forEach'](function(bx){var gG=gD,by;gG(0x4df)==typeof bw[bx]&&(by=bw[bx],bw[bx]=function(){var gH=gG;for(var bz=[],bA=0x0;bA<arguments[gH(0x61d)];bA++)bz[bA]=arguments[bA];return null!=bz&&bz[0x0]&&'tap'===bz[0x0]['type']&&bp(bz),null==by?void 0x0:by[gH(0x1ea)](this,bz);});}),bm(bs);});}});function b7(bg){var gI=d0;return(bg=aA[gI(0x6ca)](this,bg)||this)[gI(0x27d)]=new b2(),bg;}function b8(){var gJ=d0;this[gJ(0x891)]=[],this[gJ(0x5b5)]=[];}function b9(){return null!==aB&&aB['apply'](this,arguments)||this;}function ba(){var gK=d0;return null!==aC&&aC[gK(0x1ea)](this,arguments)||this;}function bb(bg){var gL=d0;this[gL(0x9c5)]=[],this[gL(0x5f0)]=!0x1;var bh=bg['apiName'];this['apiName']=bh,this[gL(0x5f0)]||this[gL(0x31f)](),this[gL(0x9c5)][gL(0x315)](bg);}function bc(bg){var gM=d0,bh,bi,bj,bk=aD[gM(0x6ca)](this,bg)||this;bk[gM(0x524)]=aQ,bk[gM(0x818)]=aq([(bi=bk[gM(0x61e)],bj={},function(bl,bm){var gN=gM,bn,bo;bi[gN(0x54a)]?(bo=gN(0x97f)==typeof bi[gN(0x7a8)]?bi[gN(0x7a8)]:{'repeat':bi[gN(0x7a8)]},bn=+bo[gN(0x1ec)]||+bo[gN(0x7a8)]||0x5,Array[gN(0x813)](bl)?(bo=bl[gN(0x7f8)](function(bp){var gO=gN,bq=!bj[bp['url']]||bj[bp[gO(0x79d)]]<bn;return bj[bp[gO(0x79d)]]=0x1+~~bj[bp[gO(0x79d)]],bq;}))[gN(0x61d)]&&bm(bo):(!bj[bl['url']]||bj[bl[gN(0x79d)]]<bn)&&(bj[bl[gN(0x79d)]]=0x1+~~bj[bl[gN(0x79d)]],bm(bl))):bm(bl);}),al(bk),function(bl,bm){var gP=gM;av(gP(0x1ba))?aL[gP(0x1ba)]({'success':function(bn){var gQ=gP;bn=aw(bn['networkType']),bh[gQ(0x8fc)]('netType',bn),bm(bl);}}):bm(bl);},function(bl,bm){var gR=gM;bk['lifeCycle'][gR(0x80d)](gR(0x5a2),bl);var bn=bk[gR(0x61e)]['beforeReportSpeed'];if((bl=gR(0x4df)==typeof bn?bl['filter'](function(bo){return!0x1!==bn(bo);}):bl)[gR(0x61d)])return bm(bl);},an(bh=bk,ag[gM(0x517)]),function(bl){var gS=gM,bm,bn,bo,bp;bk[gS(0x2d2)]({'url':''+bk['config']['speedUrl'],'method':gS(0x352),'data':(bm=bk[gS(0x26c)],bo={'fetch':[],'static':[],'bridge':[]},bp={},Array[gS(0x813)](bl)?bl[gS(0x560)](function(bq){var gT=gS,br;null!=(br=bo[bq[gT(0x299)]])&&br['push'](bq);}):null!=(bn=bo[bl[gS(0x299)]])&&bn[gS(0x315)](bl),bp[gS(0x28e)]=JSON[gS(0x3f6)](a2({'duration':bo},bm)),bp)});}]),bk['requestQueue']=[],bk[gM(0xa23)]=!0x1,bk[gM(0x870)]=function(bl,bm,bn){var gU=gM;if(bl[gU(0x79d)]&&bk[gU(0x26c)]['id']){var bo,bp,bq,br,bs;if(/^\w{8}-\w{4}-\w{4}-\w{4}-\w{12}$/[gU(0x579)](String(bk['bean'][gU(0x971)]))&&!(bk[gU(0xa23)]||av(gU(0x1ba))&&void 0x0===bk[gU(0x26c)]['netType']))return bk[gU(0xa23)]=!0x0,bo=bl[gU(0x79d)],bk[gU(0x61e)][gU(0x99d)]===bo&&(bp=bm,bm=function(bx){var gV=gU;null!=bp&&bp(JSON[gV(0x3f6)](bx[gV(0x329)]));}),!0x1!==bl[gU(0xa14)]&&(bo=bo+(-0x1===bo[gU(0x50b)]('?')?'?':'&')+bk[gU(0x9ac)]),bu=bl[gU(0x9dc)]||gU(0x298),bq=function(){var gW=gU;bk[gW(0xa23)]=!0x1;var bx=bk[gW(0x3a6)][gW(0x91c)]();bx&&bk['request'](bx[gW(0x361)],bx[gW(0x438)],bx[gW(0x5b2)]);},br=bl,(br=(bs=bk['config'][gU(0x45b)])?bs(bl,bk):br)&&br[gU(0x79d)]?(bs=bk[gU(0x61e)][gU(0x71a)]||!0x1,gU(0x298)===bu?(bu=bo,bv=br[gU(0x329)],bo=gU(0x4f5)!=typeof bu?'':gU(0x97f)==typeof bv&&bv?(bw=Object[gU(0x6e3)](bv)['map'](function(bx){var gX=gU,by=bv[bx];return bx+'='+(gX(0x4f5)==typeof by?encodeURIComponent(by):encodeURIComponent(JSON[gX(0x3f6)](by)));})['join']('&')[gU(0x181)](/eval/gi,'evaI'),bu+(-0x1===bu['indexOf']('?')?'?':'&')+bw):bu,bk[gU(0x524)](a2({'url':bo,'enableHttp2':bs,'success':bm,'fail':bn,'complete':bq},bl[gU(0x8bf)]))):('string'==typeof br[gU(0x329)]&&(br[gU(0x329)]=br[gU(0x329)][gU(0x181)](/eval/gi,gU(0x782))),bk[gU(0x524)](a2({'url':bo,'enableHttp2':bs,'header':br[gU(0x304)]?{'content-type':br[gU(0x304)]}:void 0x0,'method':gU(0x482),'data':br[gU(0x329)],'success':bm,'fail':bn,'complete':bq},bl['requestConfig']))),!0x0):(bw='',br&&br[gU(0x79d)]||(bw='Sending\x20request\x20blocked.\x20Please\x20handle\x20the\x20parameters\x20reasonably,\x20options.url\x20is\x20necessary',console[gU(0x45c)](bw)),null!=bn&&bn(bw),bq(),!0x1);bk[gU(0x3a6)]['push']({'options':bl,'success':bm,'fail':bn});}var bu,bv,bw;};try{bg[gM(0x8f0)]&&bk[gM(0x30b)](),bk[gM(0x54c)](bg),bk[gM(0x8fc)](gM(0x604),bc[gM(0x229)]),bk[gM(0x8fc)](gM(0x8fa),(av(gM(0x679))?aL[gM(0x679)]():{'scene':''})['scene']||'');}catch(bl){console['warn'](bl),console[gM(0x45c)](gM(0x77f),gM(0x843)),bk[gM(0x7ce)](bl);}return bk;}function bd(bg){var gY=d0,bh,bi,bj=this,bk=void 0x0===(bk=(bg=void 0x0===bg?{}:bg)['path'])?'/.aegis.offline.log':bk;bg=void 0x0===(bg=bg[gY(0x4bc)])?0x4e20:bg,this['offlineBuffer']=[],this['insertLog']=(bh=null,bi=[],function(bl){var gZ=gY;bi=bi[gZ(0x5f8)](bl),bh=bh||setTimeout(function(){var h0=gZ;bh=null;var bm,bn=bj[h0(0x885)],bo=bj[h0(0xa05)],bp=bi[h0(0x68a)](function(bq){var h1=h0;return JSON[h1(0x3f6)](bq);})['join']('\x0a')+'\x0a';bp&&(bm=function(bq){var h2=h0;bq?bj[h2(0x880)](bp,function(){bi=[];}):bn[h2(0x29a)]({'data':bp,'filePath':bo,'encoding':h2(0x76d),'fail':function(br){console['error'](br);},'success':function(){bi=[];}});},bn[h0(0x48a)]({'path':bo,'success':function(){bm(!0x0);},'fail':function(){bm();}}));},0x7d0);}),this[gY(0x1d0)]=function(bl){var h3=gY;bj[h3(0x885)]?setTimeout(function(){bl(null);},0x0):(bl(new Error(h3(0x4dc))),bj[h3(0x8f0)]=!0x1);},this[gY(0x817)]=function(){var h4=gY,bl=bj[h4(0x885)],bm=bj[h4(0xa05)];bl['writeFile']({'filePath':bm,'data':'','fail':function(){var h5=h4;bl[h5(0x385)](bm);}});},this[gY(0x5b8)]=function(bl,bm){var h6=gY;bl=(bl=Array['isArray'](bl)?bl:[bl])[h6(0x68a)](function(bn){var h7=h6;return h7(0x4f5)==typeof bn&&(bn={'msg':bn}),(function(){var h8=h7;for(var bo=[],bp=0x0;bp<arguments[h8(0x61d)];bp++)bo[bp]=arguments[bp];if(0x0===bo[h8(0x61d)])throw new TypeError(h8(0x462));for(var bq=Object(bo[0x0]),br=0x1;br<bo[h8(0x61d)];br++){var bs=bo[br];if(null!==bs){for(var bu in bs)Object[h8(0x6cb)]['hasOwnProperty'][h8(0x6ca)](bs,bu)&&(bq[bu]=bs[bu]);}}return bq;}({'id':bm['id'],'uin':bm[h7(0x93d)],'time':+Date['now'](),'version':bm['version'],'from':as(bm)},bn));}),bj[h6(0x885)]?bj[h6(0x647)](bl):(bj[h6(0x885)]||bj['offlineBuffer']['length']||bj['ready'](function(bn){var h9=h6;bn?console['error'](bn):bj[h9(0x8ae)][h9(0x61d)]&&(bj['addLogs'](bj[h9(0x8ae)]),bj[h9(0x8ae)]=[]);}),bj[h6(0x8ae)]=bj[h6(0x8ae)][h6(0x5f8)](bl));},this[gY(0x70c)]=function(bl){var ha=gY;bj[ha(0x885)]&&bj[ha(0x647)](bl);},this[gY(0xa05)]=aL[gY(0x7bc)][gY(0x393)]+bk,this['fileSystem']=aL[gY(0x9ce)](),this[gY(0x4c0)]=bg;}function be(bg){var hb=d0;this[hb(0x530)]=!0x0,this['name']='',this[hb(0x464)]=[],this[hb(0x1ab)]=!0x1,bg[hb(0x472)]=this[hb(0x179)][hb(0xa0c)](this),bg[hb(0x5d5)]=this[hb(0x3c0)][hb(0xa0c)](this),this[hb(0x1c6)]=bg,this[hb(0x95c)]=bg['name'];}function bf(bg){var hc=d0,bh,bi,bj,bk,bl,bm,bn,bo,bp,bq,br,bs,bu,bv,bw,bx=this;this[hc(0x4cf)]=!0x1,this['isHidden']=!0x1,this[hc(0x61e)]={'version':0x0,'delay':0x3e8,'onError':!0x0,'repeat':0x5,'random':0x1,'aid':!0x0,'device':!0x0,'pagePerformance':!0x0,'webVitals':!0x0,'speedSample':!0x0,'onClose':!0x0,'hostUrl':hc(0x824),'websocketHack':!0x1,'env':'production','url':'','offlineUrl':'','whiteListUrl':'','pvUrl':'','speedUrl':'','customTimeUrl':'','performanceUrl':'','webVitalsUrl':'','eventUrl':'','setDataReportUrl':'','reportImmediately':!0x0},this[hc(0x909)]=!0x1,this[hc(0x9d8)]=new a6(),this[hc(0x26c)]={},this['normalLogPipeline']=aq([al(this,0x5),am,function(by,bz){var hd=hc,bA=bh[hd(0x61e)];bz(by=by[hd(0x68a)](function(bB){var he=hd,bC,bD=bA[he(0x881)]||0x32000;try{if(!bB[he(0x7a1)]||bB[he(0x7a1)]['length']<=bD)return bB;bB['msg']=null==(bC=bB[he(0x7a1)])?void 0x0:bC[he(0x4e8)](0x0,bD);}catch(bE){bB[he(0x7a1)]=ak(bB[he(0x7a1)])['substring'](0x0,bA['maxLength']);}return bB;}));},(bv=(bh=this)[hc(0x61e)],bw={},function(by,bz){var hf=hc,bA=hf(0x78e)==typeof bv[hf(0x7a8)]?bv['repeat']:0x5;if(0x0===bA)return bz(by);bz(by[hf(0x7f8)](function(bB){var hg=hf;return bB[hg(0x720)]!==ad[hg(0x6ad)]&&bB[hg(0x720)]!==ad[hg(0x958)]&&bB[hg(0x720)]!==ad[hg(0x268)]&&bB['level']!==ad[hg(0x745)]&&bB[hg(0x720)]!==ad['IMAGE_ERROR']&&bB[hg(0x720)]!==ad[hg(0x7a4)]&&bB['level']!==ad[hg(0x633)]||(bw[bB[hg(0x7a1)]]=bw[bB[hg(0x7a1)]]||0x0,bw[bB[hg(0x7a1)]]+=0x1,!(bw[bB[hg(0x7a1)]]>bA));}));}),(bs=this[hc(0x9d8)][hc(0x80d)],bu=this[hc(0x61e)],function(by,bz){var hh=hc,bA,bB=bu[hh(0x5e7)];return hh(0x4df)==typeof bB?(bA=by[hh(0x7f8)](function(bC){return!0x1!==bB(bC);}),bs(hh(0x966),bA),bz(bA)):(bs(hh(0x966),by),bz(by));}),(br=this,setTimeout(function(){var hi=hc,by=br[hi(0x61e)][hi(0x479)],bz=void 0x0===by?'':by;bz&&br[hi(0x81b)]([function(bA,bB){bB({'url':bz,'type':ag['PV'],'fail':function(bC){var hj=a0b;'403\x20forbidden'===bC&&br[hj(0x73a)]();}});}],ag['PV'])(null);},0x64),function(by,bz){bz(by);}),(bp=bo=bn=!0x1,bq=[],(bl=this)[hc(0x9d8)]['on']('onConfigChange',function(){var ho=hc;bm&&clearTimeout(bm),bm=setTimeout(function(){var hk=a0b,by,bz;!bp&&bl[hk(0x61e)]&&(bp=!0x0,by=bl[hk(0x61e)][hk(0x99d)],(bz=void 0x0===by?'':by)&&bl[hk(0x81b)]([function(bA,bB){var hl=hk;bB({'url':bz,'type':ag[hl(0x2a1)],'success':function(bC){var hm=hl;bo=!0x0;try{var bD=bC[hm(0x329)]||JSON['parse'](bC),bE=bD[hm(0x9f5)],bF=bD[hm(0x6df)],bG=void 0x0===bF?{}:bF;if(0x0===bE){if(bn=bG[hm(0x5fa)],bl[hm(0x909)]=bn,bG['shutdown'])return void bl[hm(0x73a)]();0x0<=bG[hm(0x4de)]&&bG[hm(0x4de)]<=0x1&&(bl[hm(0x61e)]['random']=bG[hm(0x4de)],bl[hm(0x4cf)]=!0x1);}bl['isWhiteList']&&bq[hm(0x61d)]?aH(bl)(bq[hm(0x58f)](0x0),function(){}):!bl['isWhiteList']&&bq[hm(0x61d)]&&(bq['length']=0x0);var bH=bl[hm(0x61e)][hm(0xa25)];hm(0x4df)==typeof bH&&bH(bn);}catch(bI){}},'fail':function(bC){var hn=hl;hn(0x345)===bC&&bl[hn(0x73a)](),bo=!0x0;}});}],ag[hk(0x2a1)])(null),bp=!0x1);},bl['config'][ho(0x93d)]?0x32:0x1f4);}),bl[hc(0x9d8)]['on'](hc(0x73a),function(){var hp=hc;bq[hp(0x61d)]=0x0;}),function(by,bz){var hq=hc,bA;bn||null!=(bA=null==(bA=bl[hq(0x61e)])?void 0x0:bA[hq(0x94c)])&&bA[hq(0x241)]?bz(by['concat'](bq[hq(0x58f)](0x0))[hq(0x68a)](function(bB){return aF(bB),bB;})):(bA=by[hq(0x7f8)](function(bB){var hr=hq;return bB[hr(0x720)]!==ad[hr(0x3e5)]&&bB['level']!==ad[hr(0x6d7)]?(aF(bB),!0x0):(bo||(bq[hr(0x315)](bB),0xc8<=bq['length']&&(bq['length']=0xc8)),!0x1);}))[hq(0x61d)]&&bz(bA);}),function(by,bz){var hs=hc;try{var bA=JSON[hs(0x87f)](JSON[hs(0x3f6)](by)),bB=(bx[hs(0x9d8)]['emit'](hs(0x898),bA),bx['config'][hs(0x898)]);(by=hs(0x4df)==typeof bB?by[hs(0x7f8)](function(bC){return!0x1!==bB(bC);}):by)[hs(0x61d)]&&bz(by);}catch(bC){}},aH(this)]),this['eventPipeline']=aq([al(this,0xa),(bk=this,function(by){var ht=hc;bk[ht(0x81b)]([function(bz,bA){var hu=ht,bB=bz[hu(0x68a)](function(bC){var hv=hu;return{'name':bC[hv(0x95c)],'ext1':bC[hv(0x40b)]||bk[hv(0x61e)]['ext1']||'','ext2':bC['ext2']||bk[hv(0x61e)][hv(0xa0d)]||'','ext3':bC[hv(0x764)]||bk['config'][hv(0x764)]||''};});bA({'url':bk[hu(0x61e)]['eventUrl']+hu(0x944)+encodeURIComponent(JSON[hu(0x3f6)](bB)),'type':ag[hu(0x49e)],'log':bz,'fail':function(bC){var hw=hu;hw(0x345)===bC&&bk[hw(0x73a)]();}});}],ag[ht(0x49e)])(by);})]),this['timeMap']={},this[hc(0x2ac)]=0x0,this['customTimePipeline']=aq([al(this,0xa),(bj=this,function(by){var hx=hc;return bj[hx(0x81b)]([function(bz,bA){var hy=hx;bA({'url':bj[hy(0x61e)]['customTimeUrl']+hy(0x944)+encodeURIComponent(JSON[hy(0x3f6)]({'custom':bz})),'type':ag[hy(0x49a)],'log':bz,'fail':function(bB){var hz=hy;'403\x20forbidden'===bB&&bj[hz(0x73a)]();}});}],ag['CUSTOM'])(by);})]),this[hc(0x61e)]=(bi=this[hc(0x61e)],void 0x0===(bg=bg[hc(0x260)])&&(bg=hc(0x824)),bi['url']=bi[hc(0x79d)]||bg+hc(0x821),bi[hc(0x7f3)]=bi[hc(0x7f3)]||bg+'/offline',bi[hc(0x99d)]=bi[hc(0x99d)]||bg+'/collect/whitelist',bi[hc(0x479)]=bi[hc(0x479)]||bg+'/collect/pv',bi['eventUrl']=bi[hc(0x432)]||bg+hc(0x754),bi[hc(0x623)]=bi[hc(0x623)]||bg+'/speed',bi['customTimeUrl']=bi[hc(0x672)]||bg+hc(0x3da),bi[hc(0x847)]=bi[hc(0x847)]||bg+hc(0x486),bi[hc(0x9db)]=bi['webVitalsUrl']||bg+hc(0x9a5),bi['setDataReportUrl']=bi[hc(0x1e7)]||bg+hc(0x627),bi),bf[hc(0x464)][hc(0x315)](this);}return aK=new aK({'name':'reportLoadPackageSpeed','isLoaded':!0x1,'onNewAegis':function(bg){var hA=d0;this[hA(0x5cf)]||(this[hA(0x5cf)]=!0x0,this[hA(0x1f8)](bg));},'start':function(){var hB=d0,bg=this;aL[hB(0x611)]&&aL[hB(0x611)]()[hB(0x625)](function(bh){var hC=hB;null!=(bh=bh[hC(0x86b)]())&&bh[hC(0x560)](function(bi){var hD=hC;hD(0x78e)!=typeof bi['duration']||bi['duration']<=0x0||bg['publishPackageLog'](bi);});})[hB(0x9a4)]({'entryTypes':[hB(0x232)]});},'generateLog':function(bg){var hE=d0;return[{'type':ag[hE(0x1f1)],'packageName':bg[hE(0x79a)],'size':Math[hE(0x312)](0x64*bg[hE(0x8f6)])/0x64,'duration':Math[hE(0x312)](0x64*bg['duration'])/0x64}];},'publishPackageLog':function(bg){var hF=d0,bh=this;this[hF(0x472)](function(bi){var hG=hF,bj=bh[hG(0x415)](bg);bi[hG(0x2d2)]({'url':bi['config'][hG(0x1e3)]+hG(0x944)+encodeURIComponent(JSON[hG(0x3f6)]({'miniProgramData':bj})),'type':ag[hG(0x1f1)],'log':bj});});}}),aJ[d0(0xa24)](aS),aJ[d0(0xa24)](aZ),aJ[d0(0xa24)](aR),aJ[d0(0xa24)](b4),aJ[d0(0xa24)](b6),aJ[d0(0xa24)](aK),aJ['use'](aP),aJ;}());},0x1933:(b,d,f)=>{var hH=a0b;f['d'](d,{'Z':()=>g});const g={'0001':'Unsupported\x20environment','0002':hH(0x8a6),'0003':hH(0x26d),'0004':hH(0x9a3),'0005':hH(0x780),'0006':'Invalid\x20image\x20input','0007':hH(0x274),'0008':hH(0x7ec),'0009':hH(0x5fe),'0010':'Failed\x20to\x20stop\x20the\x20recorder','0011':hH(0x59b),'0012':'Out\x20of\x20storage\x20space,\x20go\x20to\x20Settings\x20-\x20General-Storage\x20Space\x20and\x20clear\x20the\x20cache','0013':hH(0x45e),'0014':hH(0x335),'0015':'Require\x20a\x20valid\x20value\x20(0-1)\x20for\x20\x22intensity\x22\x20(the\x20default\x20value\x20is\x201)','0016':hH(0x495),'0018':hH(0x5a6),'0019':hH(0x54b),'0020':hH(0x3d3),'0021':hH(0x80e),'0022':hH(0x1fd),'0023':hH(0x555),'0024':hH(0x8ce),'0025':'Failed\x20to\x20load\x20the\x20basic\x20libraries','0026':hH(0x256),'0027':hH(0x7f2),'0028':hH(0x41d),'0029':hH(0x2f4),'0030':hH(0x3be),'0031':hH(0x705),'0032':hH(0x56f),'0033':hH(0x22a),'0034':hH(0x963),'0035':hH(0x238),'0036':'This\x20browser\x20does\x20not\x20have\x20microphone\x20permission,\x20please\x20go\x20to\x20Settings\x20-\x20Privacy\x20turn\x20Microphone\x20on',0x3e9:hH(0x8a4),0x3ea:'Sticker',0x3eb:hH(0x55b),0x3ec:hH(0x8f1),0x3ed:'VR',0x3ee:'AR'};},0x1d36:(b,d,f)=>{var hI=a0b;f['d'](d,{'Z':()=>g});const g={'0001':hI(0x8b5),'0002':hI(0x697),'0003':hI(0x540),'0004':'输入不合法','0005':hI(0x510),'0006':'输入图片不合法','0007':hI(0x50d),'0008':hI(0x6b2),'0009':'录制启动失败','0010':hI(0x696),'0011':hI(0x5ea),'0012':hI(0x7ff),'0013':hI(0x233),'0014':hI(0x63d),'0015':'intensity\x20的值超出范围(0-1),默认为\x201','0016':hI(0x2fc),'0018':hI(0x381),'0019':'当前浏览器不支持,请使用新版\x20Chrome/Safari/微信体验','0020':'当前浏览器不支持,若Chrome请开启浏览器硬件加速','0021':hI(0x75d),'0022':'缺少鉴权参数appId','0023':'输入不合法,\x20请传input或camera参数','0024':hI(0x50d),'0025':hI(0x270),'0026':'上下文丢失,请重新初始化','0027':'渲染耗时大,请尝试减小分辨率或刷新页面','0028':hI(0x831),'0029':hI(0x849),'0030':hI(0x204),'0031':'摄像头或麦克风中断,请手动刷新页面','0032':hI(0x285),'0033':hI(0x29f),'0034':hI(0x36f),'0035':hI(0x3a5),'0036':hI(0x446),0x3e9:'美妆',0x3ea:'贴纸',0x3eb:'滤镜',0x3ec:'3D特效',0x3ed:hI(0x327),0x3ee:'头像'};},0x64f:(a0,a1,a2)=>{var hJ=a0b;a2['d'](a1,{'Z':()=>bf});var a3={};a2['r'](a3),a2['d'](a3,{'Canvas':()=>av,'Element':()=>aq,'HTMLElement':()=>ar,'HTMLMediaElement':()=>as,'HTMLVideoElement':()=>au,'Image':()=>aD,'MouseEvent':()=>aQ,'PointerEvent':()=>aI,'Symbol':()=>aT,'TouchEvent':()=>aG,'WebGLRenderingContext':()=>aE,'XMLHttpRequest':()=>b2,'alert':()=>b4,'blur':()=>b6,'clearInterval':()=>ba,'clearTimeout':()=>b8,'devicePixelRatio':()=>ac,'focus':()=>b5,'getComputedStyle':()=>b3,'innerHeight':()=>ae,'innerWidth':()=>ad,'location':()=>aU,'navigator':()=>aC,'performance':()=>a9,'screen':()=>af,'scrollX':()=>ag,'scrollY':()=>ah,'setInterval':()=>b9,'setTimeout':()=>b7});const a4={0x0:hJ(0x5e6),0x1:'animation-direction',0x2:hJ(0x38f),0x3:hJ(0xa01),0x4:hJ(0x833),0x5:hJ(0x8bd),0x6:'animation-play-state',0x7:'animation-timing-function',0x8:hJ(0x420),0x9:hJ(0x1c4),0xa:hJ(0x9b9),0xb:hJ(0x95d),0xc:hJ(0x678),0xd:hJ(0x316),0xe:hJ(0x699),0xf:'background-repeat',0x10:'background-size',0x11:hJ(0x319),0x12:hJ(0x55d),0x13:hJ(0x88e),0x14:hJ(0x3ba),0x15:'border-bottom-width',0x16:hJ(0x6fc),0x17:hJ(0x49f),0x18:hJ(0x40a),0x19:hJ(0x1a2),0x1a:'border-image-source',0x1b:hJ(0x82a),0x1c:hJ(0x9cd),0x1d:hJ(0x7ef),0x1e:hJ(0x88b),0x1f:hJ(0x6d1),0x20:hJ(0x293),0x21:hJ(0x6e4),0x22:'border-top-color',0x23:hJ(0x973),0x24:hJ(0x1c1),0x25:hJ(0x88c),0x26:'border-top-width',0x27:hJ(0x76a),0x28:'box-shadow',0x29:'box-sizing',0x2a:hJ(0x85d),0x2b:'break-before',0x2c:hJ(0x9f9),0x2d:hJ(0x2c6),0x2e:hJ(0x263),0x2f:hJ(0x426),0x30:hJ(0x746),0x31:hJ(0x8f4),0x32:hJ(0x5c4),0x33:'direction',0x34:hJ(0x838),0x35:hJ(0x75b),0x36:'float',0x37:hJ(0x3a7),0x38:hJ(0x404),0x39:hJ(0x89a),0x3a:'font-stretch',0x3b:hJ(0x656),0x3c:hJ(0x2b8),0x3d:hJ(0x933),0x3e:hJ(0x83c),0x3f:hJ(0x887),0x40:'font-variant-east-asian',0x41:hJ(0x2f3),0x42:hJ(0x8ec),0x43:'image-rendering',0x44:hJ(0x716),0x45:hJ(0x4e5),0x46:hJ(0x206),0x47:hJ(0x8aa),0x48:hJ(0x3a2),0x49:hJ(0x231),0x4a:'list-style-image',0x4b:hJ(0x9fc),0x4c:hJ(0x932),0x4d:hJ(0x2f2),0x4e:'margin-left',0x4f:hJ(0x3fa),0x50:hJ(0x8e8),0x51:'max-height',0x52:hJ(0x7b2),0x53:hJ(0x4a8),0x54:hJ(0x85c),0x55:'mix-blend-mode',0x56:'object-fit',0x57:hJ(0x9c8),0x58:hJ(0x19a),0x59:hJ(0x22e),0x5a:hJ(0x2c1),0x5b:'opacity',0x5c:hJ(0x21c),0x5d:hJ(0x5a7),0x5e:hJ(0x7fb),0x5f:hJ(0x883),0x60:hJ(0x525),0x61:hJ(0x295),0x62:hJ(0x772),0x63:'overflow-x',0x64:'overflow-y',0x65:hJ(0x4f8),0x66:'padding-left',0x67:'padding-right',0x68:hJ(0x846),0x69:hJ(0x4d0),0x6a:hJ(0x784),0x6b:'resize',0x6c:hJ(0x6c8),0x6d:'scroll-behavior',0x6e:hJ(0x6f7),0x6f:hJ(0x827),0x70:hJ(0x626),0x71:hJ(0x6e5),0x72:hJ(0x7e2),0x73:hJ(0x86f),0x74:hJ(0x670),0x75:hJ(0x543),0x76:hJ(0x3bb),0x77:hJ(0xa13),0x78:hJ(0x64c),0x79:hJ(0x936),0x7a:'text-rendering',0x7b:hJ(0x275),0x7c:hJ(0x2ba),0x7d:hJ(0x78b),0x7e:hJ(0x4fb),0x7f:hJ(0x76f),0x80:'touch-action',0x81:hJ(0x753),0x82:hJ(0x8b6),0x83:'transition-property',0x84:hJ(0x523),0x85:hJ(0x9c9),0x86:'vertical-align',0x87:hJ(0x6c3),0x88:hJ(0x7b7),0x89:hJ(0x8fd),0x8a:hJ(0x5fb),0x8b:hJ(0x7a2),0x8c:hJ(0x234),0x8d:hJ(0x986),0x8e:hJ(0x7c0),0x8f:hJ(0x18d),0x90:hJ(0x4b5),0x91:hJ(0x548),0x92:hJ(0x23e),0x93:hJ(0x4c6),0x94:hJ(0x217),0x95:hJ(0x34b),0x96:hJ(0x651),0x97:hJ(0x648),0x98:hJ(0x834),0x99:'-webkit-box-flex',0x9a:hJ(0x6ba),0x9b:'-webkit-box-lines',0x9c:hJ(0x4fc),0x9d:hJ(0x389),0x9e:hJ(0x39a),0x9f:hJ(0x334),0xa0:'column-count',0xa1:hJ(0x84d),0xa2:hJ(0x3c5),0xa3:hJ(0x621),0xa4:hJ(0x6ae),0xa5:'column-span',0xa6:'column-width',0xa7:'align-content',0xa8:'align-items',0xa9:hJ(0x608),0xaa:hJ(0x85a),0xab:hJ(0x3dd),0xac:'flex-shrink',0xad:hJ(0x979),0xae:'flex-wrap',0xaf:hJ(0x964),0xb0:hJ(0x32d),0xb1:hJ(0x213),0xb2:'grid-auto-flow',0xb3:hJ(0x9c6),0xb4:hJ(0x3db),0xb5:hJ(0x698),0xb6:hJ(0x90e),0xb7:'grid-template-columns',0xb8:hJ(0x9de),0xb9:hJ(0x69f),0xba:'grid-row-start',0xbb:hJ(0x76e),0xbc:hJ(0x376),0xbd:hJ(0x724),0xbe:hJ(0x374),0xbf:'-webkit-hyphenate-character',0xc0:hJ(0x8b3),0xc1:hJ(0x6d3),0xc2:hJ(0x190),0xc3:hJ(0x379),0xc4:'-webkit-margin-after-collapse',0xc5:hJ(0x95f),0xc6:hJ(0x617),0xc7:hJ(0x28c),0xc8:hJ(0x39f),0xc9:hJ(0x6d4),0xca:hJ(0x475),0xcb:hJ(0x757),0xcc:'-webkit-mask-composite',0xcd:hJ(0x7e4),0xce:hJ(0x996),0xcf:hJ(0x2e4),0xd0:hJ(0x91a),0xd1:hJ(0x52f),0xd2:hJ(0x185),0xd3:hJ(0x3c9),0xd4:'perspective-origin',0xd5:'-webkit-print-color-adjust',0xd6:hJ(0x2cf),0xd7:hJ(0x6d2),0xd8:hJ(0x890),0xd9:hJ(0x5ad),0xda:hJ(0x1cb),0xdb:'-webkit-text-combine',0xdc:hJ(0x2dd),0xdd:hJ(0x72e),0xde:'-webkit-text-emphasis-position',0xdf:hJ(0x94e),0xe0:hJ(0x723),0xe1:hJ(0x574),0xe2:hJ(0x21a),0xe3:hJ(0x90b),0xe4:hJ(0x98f),0xe5:'transform',0xe6:'transform-origin',0xe7:hJ(0x6b3),0xe8:hJ(0x734),0xe9:'-webkit-user-modify',0xea:hJ(0x590),0xeb:'-webkit-writing-mode',0xec:hJ(0x98a),0xed:hJ(0x427),0xee:hJ(0x362),0xef:hJ(0x2a5),0xf0:'mask',0xf1:hJ(0x7f8),0xf2:hJ(0x77b),0xf3:hJ(0x9ae),0xf4:hJ(0x814),0xf5:hJ(0x85e),0xf6:hJ(0x3e7),0xf7:hJ(0x6f1),0xf8:hJ(0x8d1),0xf9:hJ(0x180),0xfa:hJ(0x21e),0xfb:'fill-opacity',0xfc:hJ(0x98e),0xfd:hJ(0x195),0xfe:hJ(0x77d),0xff:'marker-start',0x100:hJ(0x3df),0x101:hJ(0x4fa),0x102:hJ(0x5de),0x103:hJ(0x1eb),0x104:hJ(0x1bc),0x105:'stroke-linecap',0x106:'stroke-linejoin',0x107:hJ(0x474),0x108:hJ(0x69a),0x109:hJ(0x6b1),0x10a:'alignment-baseline',0x10b:'baseline-shift',0x10c:hJ(0x53c),0x10d:hJ(0x666),0x10e:'writing-mode',0x10f:hJ(0x707),0x110:hJ(0x8e2),0x111:'d',0x112:'cx',0x113:'cy',0x114:'x',0x115:'y',0x116:'r',0x117:'rx',0x118:'ry',0x119:hJ(0x76b),0x11a:hJ(0x84e),'display':hJ(0x92f),'dominantBaseline':hJ(0x5f6),'emptyCells':hJ(0xa21),'fill':hJ(0x33e),'fillOpacity':'1','fillRule':hJ(0x46a),'filter':hJ(0x94a),'flex':'0\x201\x20auto','flexBasis':'auto','flexDirection':hJ(0x9d9),'flexFlow':hJ(0x6f2),'flexGrow':'0','flexShrink':'1','flexWrap':hJ(0x47e),'float':'none','floodColor':hJ(0x33e),'floodOpacity':'1','font':hJ(0x70d),'fontDisplay':'','fontFamily':hJ(0x3d1),'fontFeatureSettings':hJ(0x7ab),'fontKerning':hJ(0x5f6),'fontSize':'16px','fontStretch':hJ(0x7ae),'fontStyle':hJ(0x7ab),'fontVariant':'normal','fontVariantCaps':hJ(0x7ab),'fontVariantEastAsian':hJ(0x7ab),'fontVariantLigatures':'normal','fontVariantNumeric':'normal','fontVariationSettings':hJ(0x7ab),'fontWeight':hJ(0x6f9),'grid':hJ(0x7d8),'gridArea':hJ(0x3b6),'gridAutoColumns':hJ(0x5f6),'gridAutoFlow':'row','gridAutoRows':hJ(0x5f6),'gridColumn':'auto\x20/\x20auto','gridColumnEnd':hJ(0x5f6),'gridColumnGap':hJ(0x638),'gridColumnStart':hJ(0x5f6),'gridGap':hJ(0x52a),'gridRow':hJ(0x937),'gridRowEnd':hJ(0x5f6),'gridRowGap':hJ(0x638),'gridRowStart':hJ(0x5f6),'gridTemplate':'none\x20/\x20none\x20/\x20none','gridTemplateAreas':hJ(0x94a),'gridTemplateColumns':hJ(0x94a),'gridTemplateRows':hJ(0x94a),'height':hJ(0x638),'hyphens':hJ(0x2f5),'imageRendering':hJ(0x5f6),'inlineSize':hJ(0x638),'isolation':hJ(0x5f6),'justifyContent':hJ(0x7ab),'justifyItems':hJ(0x7ab),'justifySelf':hJ(0x5f6),'left':hJ(0x5f6),'letterSpacing':hJ(0x7ab),'lightingColor':hJ(0x64e),'lineBreak':hJ(0x5f6),'lineHeight':hJ(0x7ab),'listStyle':'disc\x20outside\x20none','listStyleImage':'none','listStylePosition':hJ(0x36b),'listStyleType':hJ(0x7ea),'margin':'0px','marginBottom':hJ(0x638),'marginLeft':hJ(0x638),'marginRight':hJ(0x638),'marginTop':hJ(0x638),'marker':'','markerEnd':hJ(0x94a),'markerMid':hJ(0x94a),'markerStart':'none','mask':hJ(0x94a),'maskType':hJ(0x791),'maxBlockSize':hJ(0x94a),'maxHeight':hJ(0x94a),'maxInlineSize':hJ(0x94a),'maxWidth':hJ(0x94a),'maxZoom':'','minBlockSize':hJ(0x638),'minHeight':'0px','minInlineSize':hJ(0x638),'minWidth':hJ(0x638),'minZoom':'','mixBlendMode':hJ(0x7ab),'objectFit':hJ(0x21e),'objectPosition':hJ(0x2c7),'offset':hJ(0x265),'offsetDistance':hJ(0x638),'offsetPath':hJ(0x94a),'offsetRotate':hJ(0x9a1),'opacity':'1','order':'0','orientation':'','orphans':'2','outline':'rgb(0,\x200,\x200)\x20none\x200px','outlineColor':hJ(0x33e),'outlineOffset':'0px','outlineStyle':hJ(0x94a),'outlineWidth':'0px','overflow':hJ(0x220),'overflowAnchor':hJ(0x5f6),'overflowWrap':hJ(0x7ab),'overflowX':hJ(0x220),'overflowY':hJ(0x220),'overscrollBehavior':'auto\x20auto','overscrollBehaviorX':hJ(0x5f6),'overscrollBehaviorY':hJ(0x5f6),'padding':hJ(0x638),'paddingBottom':'0px','paddingLeft':hJ(0x638),'paddingRight':hJ(0x638),'paddingTop':hJ(0x638),'page':'','pageBreakAfter':hJ(0x5f6),'pageBreakBefore':hJ(0x5f6),'pageBreakInside':'auto','paintOrder':hJ(0x209),'perspective':hJ(0x94a),'perspectiveOrigin':'0px\x200px','placeContent':'normal\x20normal','placeItems':'normal\x20normal','placeSelf':hJ(0x28b),'pointerEvents':hJ(0x5f6),'position':hJ(0x777),'quotes':'','r':hJ(0x638),'resize':'none','right':hJ(0x5f6),'rx':'auto','ry':hJ(0x5f6),'scrollBehavior':'auto','shapeImageThreshold':'0','shapeMargin':hJ(0x638),'shapeOutside':hJ(0x94a),'shapeRendering':'auto','size':'','speak':hJ(0x7ab),'src':'','stopColor':hJ(0x33e),'stopOpacity':'1','stroke':hJ(0x94a),'strokeDasharray':hJ(0x94a),'strokeDashoffset':hJ(0x638),'strokeLinecap':hJ(0x437),'strokeLinejoin':hJ(0x930),'strokeMiterlimit':'4','strokeOpacity':'1','strokeWidth':'1px','tabSize':'8','tableLayout':hJ(0x5f6),'textAlign':hJ(0x1f8),'textAlignLast':'auto','textAnchor':'start','textCombineUpright':hJ(0x94a),'textDecoration':hJ(0x92a),'textDecorationColor':hJ(0x33e),'textDecorationLine':hJ(0x94a),'textDecorationSkipInk':'auto','textDecorationStyle':hJ(0x77e),'textIndent':hJ(0x638),'textOrientation':hJ(0x88f),'textOverflow':hJ(0x426),'textRendering':hJ(0x5f6),'textShadow':'none','textSizeAdjust':hJ(0x5f6),'textTransform':'none','textUnderlinePosition':hJ(0x5f6),'top':'auto','touchAction':hJ(0x5f6),'transform':'none','transformBox':'view-box','transformOrigin':hJ(0x52a),'transformStyle':hJ(0x719),'transition':hJ(0x635),'transitionDelay':'0s','transitionDuration':'0s','transitionProperty':hJ(0x227),'transitionTimingFunction':hJ(0x9e9),'unicodeBidi':hJ(0x7ab),'unicodeRange':'','userSelect':'auto','userZoom':'','vectorEffect':hJ(0x94a),'verticalAlign':hJ(0x912),'visibility':hJ(0x220),'webkitAppRegion':hJ(0x5d3),'webkitAppearance':hJ(0x94a),'webkitBorderAfter':hJ(0x65b),'webkitBorderAfterColor':hJ(0x33e),'webkitBorderAfterStyle':'none','webkitBorderAfterWidth':hJ(0x638),'webkitBorderBefore':hJ(0x65b),'webkitBorderBeforeColor':'rgb(0,\x200,\x200)','webkitBorderBeforeStyle':'none','webkitBorderBeforeWidth':hJ(0x638),'webkitBorderEnd':'0px\x20none\x20rgb(0,\x200,\x200)','webkitBorderEndColor':hJ(0x33e),'webkitBorderEndStyle':hJ(0x94a),'webkitBorderEndWidth':hJ(0x638),'webkitBorderHorizontalSpacing':hJ(0x638),'webkitBorderImage':'none','webkitBorderStart':hJ(0x65b),'webkitBorderStartColor':hJ(0x33e),'webkitBorderStartStyle':'none','webkitBorderStartWidth':hJ(0x638),'webkitBorderVerticalSpacing':'0px','webkitBoxAlign':'stretch','webkitBoxDecorationBreak':hJ(0x859),'webkitBoxDirection':hJ(0x7ab),'webkitBoxFlex':'0','webkitBoxFlexGroup':'1','webkitBoxLines':hJ(0x9f1),'webkitBoxOrdinalGroup':'1','webkitBoxOrient':hJ(0x659),'webkitBoxPack':hJ(0x1f8),'webkitBoxReflect':hJ(0x94a),'webkitColumnBreakAfter':'auto','webkitColumnBreakBefore':hJ(0x5f6),'webkitColumnBreakInside':hJ(0x5f6),'webkitFontSizeDelta':'','webkitFontSmoothing':hJ(0x5f6),'webkitHighlight':hJ(0x94a),'webkitHyphenateCharacter':'auto','webkitLineBreak':hJ(0x5f6),'webkitLineClamp':hJ(0x94a),'webkitLocale':hJ(0x5f6),'webkitLogicalHeight':'0px','webkitLogicalWidth':hJ(0x638),'webkitMarginAfter':hJ(0x638),'webkitMarginAfterCollapse':'collapse','webkitMarginBefore':hJ(0x638),'webkitMarginBeforeCollapse':'collapse','webkitMarginBottomCollapse':hJ(0x59f),'webkitMarginCollapse':'','webkitMarginEnd':hJ(0x638),'webkitMarginStart':hJ(0x638),'webkitMarginTopCollapse':hJ(0x59f),'webkitMask':'','webkitMaskBoxImage':'none','webkitMaskBoxImageOutset':'0px','webkitMaskBoxImageRepeat':'stretch','webkitMaskBoxImageSlice':hJ(0x2bc),'webkitMaskBoxImageSource':'none','webkitMaskBoxImageWidth':'auto','webkitMaskClip':hJ(0x1bd),'webkitMaskComposite':hJ(0x650),'webkitMaskImage':hJ(0x94a),'webkitMaskOrigin':hJ(0x1bd),'webkitMaskPosition':'0%\x200%','webkitMaskPositionX':'0%','webkitMaskPositionY':'0%','webkitMaskRepeat':hJ(0x7a8),'webkitMaskRepeatX':'','webkitMaskRepeatY':'','webkitMaskSize':hJ(0x5f6),'webkitMaxLogicalHeight':hJ(0x94a),'webkitMaxLogicalWidth':'none','webkitMinLogicalHeight':hJ(0x638),'webkitMinLogicalWidth':hJ(0x638),'webkitPaddingAfter':hJ(0x638),'webkitPaddingBefore':hJ(0x638),'webkitPaddingEnd':hJ(0x638),'webkitPaddingStart':hJ(0x638),'webkitPerspectiveOriginX':'','webkitPerspectiveOriginY':'','webkitPrintColorAdjust':hJ(0x1ae),'webkitRtlOrdering':hJ(0x2c2),'webkitRubyPosition':hJ(0x9cc),'webkitTapHighlightColor':hJ(0x21d),'webkitTextCombine':hJ(0x94a),'webkitTextDecorationsInEffect':hJ(0x94a),'webkitTextEmphasis':'','webkitTextEmphasisColor':hJ(0x33e),'webkitTextEmphasisPosition':hJ(0x4fe),'webkitTextEmphasisStyle':hJ(0x94a),'webkitTextFillColor':hJ(0x33e),'webkitTextOrientation':hJ(0x30a),'webkitTextSecurity':hJ(0x94a),'webkitTextStroke':'','webkitTextStrokeColor':hJ(0x33e),'webkitTextStrokeWidth':hJ(0x638),'webkitTransformOriginX':'','webkitTransformOriginY':'','webkitTransformOriginZ':'','webkitUserDrag':hJ(0x5f6),'webkitUserModify':hJ(0x2d6),'webkitWritingMode':'horizontal-tb','whiteSpace':hJ(0x7ab),'widows':'2','width':hJ(0x638),'willChange':'auto','wordBreak':hJ(0x7ab),'wordSpacing':hJ(0x638),'wordWrap':hJ(0x7ab),'writingMode':hJ(0x463),'x':hJ(0x638),'y':'0px','zIndex':hJ(0x5f6),'zoom':'1'},a5=function(bg){var hK=hJ;const bh=bg[hK(0x5fb)],bi=bg[hK(0x8ec)];return Object[hK(0x5e8)](a4,{'display':hK(0x92f),'position':hK(0x777),'inlineSize':bh+'px','perspectiveOrigin':bh/0x2+hK(0x67d)+bi/0x2+'px','transformOrigin':bh/0x2+hK(0x67d)+bi/0x2+'px','webkitLogicalWidth':bh+'px','webkitLogicalHeight':bi+'px','width':bh+'px','height':bi+'px'});},a6=function(bg){var hL=hJ;const bh=bg['getBoundingClientRect']();return Object['assign'](a4,{'display':hL(0x92f),'position':hL(0x777),'inlineSize':bh[hL(0x5fb)]+'px','perspectiveOrigin':bh[hL(0x5fb)]/0x2+hL(0x67d)+bh[hL(0x8ec)]/0x2+'px','transformOrigin':bh[hL(0x5fb)]/0x2+hL(0x67d)+bh[hL(0x8ec)]/0x2+'px','webkitLogicalWidth':bh[hL(0x5fb)]+'px','webkitLogicalHeight':bh[hL(0x8ec)]+'px','width':bh[hL(0x5fb)]+'px','height':bh[hL(0x8ec)]+'px'});};function a7(){}let a8;if(wx[hJ(0x611)]){const {platform:bg}=wx[hJ(0x631)](),bh=wx[hJ(0x611)](),bi=bh[hJ(0x983)](),bj=Object[hJ(0x5e8)]({},bh,{'now':function(){var hM=hJ;return(bh[hM(0x983)]()-bi)/0x3e8;}});a8=hJ(0x370)===bg?bh:bj;}else a8={'timeOrigin':Date[hJ(0x983)](),'now':function(){var hN=hJ;return Date[hN(0x983)]()-this[hN(0x842)];}};const a9=a8,{screenWidth:aa,screenHeight:ab,devicePixelRatio:ac}=wx['getSystemInfoSync'](),ad=aa,ae=ab,af={'width':aa,'height':ab,'availWidth':ad,'availHeight':ae,'availLeft':0x0,'availTop':0x0},ag=0x0,ah=0x0;function ai(bk,bl){var hO=hJ;if(!(hO(0x807)in bk)){let bm;bm=0x0===bl?function(){return null;}:0x1===bl?function(){var hP=hO;return(a2['g'][hP(0x225)]||wx[hP(0x507)]['document'])[hP(0x5f3)];}:function(){var hQ=hO;if(!a2['g']||!a2['g']['document']||!wx[hQ(0x507)]['document'])return;return(a2['g'][hQ(0x225)]||wx['window'][hQ(0x225)])[hQ(0x4f7)];},Object[hO(0x182)](bk,'parentNode',{'enumerable':!0x0,'get':bm});}if(!(hO(0x9ba)in bk)){let bn;bn=0x0===bl?function(){return null;}:0x1===bl?function(){var hR=hO;return document[hR(0x5f3)];}:function(){var hS=hO;return(a2['g'][hS(0x225)]||wx[hS(0x507)][hS(0x225)])[hS(0x4f7)];},Object[hO(0x182)](bk,hO(0x9ba),{'enumerable':!0x0,'get':bn});}}function aj(bk){var hT=hJ;bk[hT(0x52e)]=bk[hT(0x52e)]||{},Object[hT(0x5e8)](bk[hT(0x52e)],{'top':hT(0x638),'left':'0px','width':ad+'px','height':ae+'px','margin':hT(0x638),'padding':'0px'});}function ak(bk,bl){var hU=hJ;hU(0x5c1)in bk||(bk[hU(0x5c1)]=bk['_left']||0x0,bk[hU(0x9b7)]=bk[hU(0x893)]||0x0),'clientWidth'in bk||(bk[hU(0x2ad)]=bk[hU(0x802)]||ad,bk[hU(0x853)]=bk[hU(0x6bf)]||ae),hU(0x186)in bk||(bk[hU(0x186)]=function(){var hV=hU;const bm={'x':0x0,'y':0x0,'top':0x0,'left':0x0,'width':bk['_width']||this[hV(0x2ad)],'height':bk[hV(0x6bf)]||this['clientHeight']};return bm['right']=bm[hV(0x5fb)],bm[hV(0x76a)]=bm[hV(0x8ec)],bm;});}function al(bk){var hW=hJ;hW(0x469)in bk||(bk[hW(0x469)]=0x0,bk[hW(0x1e2)]=0x0),hW(0x175)in bk||(bk[hW(0x175)]=ad,bk[hW(0x4d2)]=ae);}function am(bk){var hX=hJ;const bl=function(){};bk[hX(0x5b4)]=[],bk['classList']['add']=bl,bk[hX(0x5b4)]['remove']=bl,bk[hX(0x5b4)][hX(0x4a7)]=bl,bk[hX(0x5b4)][hX(0x288)]=bl;}const an=new WeakMap();class ao{constructor(){an['set'](this,{});}['addEventListener'](bk,bl,bm={}){var hY=hJ;let bn=an[hY(0x298)](this);bn||(bn={},an[hY(0x1e6)](this,bn)),bn[bk]||(bn[bk]=[]),bn[bk][hY(0x315)](bl),bm[hY(0xa26)],bm['once'],bm[hY(0x57f)];}[hJ(0x65f)](bk,bl,bm={}){var hZ=hJ;const bn=an[hZ(0x298)](this);if(bn){const bo=bn[bk];if(bo&&bo[hZ(0x61d)]>0x0){for(let bp=bo['length'];bp--;bp>0x0)if(bo[bp]===bl){bo[hZ(0x58f)](bp,0x1);break;}}}}[hJ(0x252)](bk={}){var i0=hJ;const bl=an[i0(0x298)](this)[bk['type']];if(bl){for(let bm=0x0;bm<bl[i0(0x61d)];bm++)bl[bm](bk);}}}class ap extends ao{constructor(){var i1=hJ;super(),this[i1(0x214)]=[];}[hJ(0x9bc)](bk){var i2=hJ;this[i2(0x214)][i2(0x315)](bk);}[hJ(0x2d7)](){var i3=hJ;const bk=Object[i3(0x7da)](this);return Object[i3(0x5e8)](bk,this),bk;}[hJ(0x934)](bk){var i4=hJ;const bl=this[i4(0x214)][i4(0x713)](bm=>bm===bk);return bl>-0x1?this[i4(0x214)][i4(0x58f)](bl,0x1):null;}}class aq extends ap{constructor(){var i5=hJ;super(),this[i5(0x17f)]='',this['children']=[];}[hJ(0x1f5)](bk,bl){this[bk]=bl;}[hJ(0x2dc)](bk){return this[bk];}[hJ(0x3a3)](bk,bl){this[bk]=bl;}[hJ(0x281)](bk){return this[bk];}}class ar extends aq{constructor(bk='',bl){var i6=hJ,bm;super(),this[i6(0x17f)]='',this['children']=[],this[i6(0x4aa)]=a7,this[i6(0x856)]=a7,this[i6(0x636)]=a7,this['appendChild']=a7,this[i6(0x934)]=a7,this['remove']=a7,this[i6(0x768)]='',this['tagName']=bk[i6(0x7d5)](),ai(this,bl),aj(this),am(this),ak(this),al(this),i6(0x7d2)in(bm=this)||(bm[i6(0x7d2)]=0x0,bm[i6(0x69c)]=0x0),i6(0x711)in bm||(bm[i6(0x711)]=ad,bm[i6(0x457)]=ae);}}class as extends ar{constructor(bk){super(bk);}[hJ(0x781)](){}[hJ(0x333)](){}[hJ(0x851)](){}['load'](){}[hJ(0x6dc)](){}[hJ(0x733)](){}}class au extends as{constructor(){var i7=hJ;super(i7(0x43d));}}function av(bk){var i8=hJ;let bl=bk;bk||(bl=wx[i8(0x756)]({'type':i8(0x547)})),i8(0x5aa)in bl||(bl['tagName']='CANVAS'),bl['type']=i8(0x2a9),ai(bl),aj(bl),am(bl),ak(bl),al(bl),bl[i8(0x4aa)]=function(){},bl[i8(0x856)]=function(){};let bm={};return bl[i8(0x8a8)]=function(bn,bo,bp={}){var i9=i8;void 0x0===bm[bn]&&(bm[bn]=[]),-0x1===bm[bn][i9(0x50b)](bo)&&bm[bn]['push'](bo);},bl['removeEventListener']=function(bn,bo){var ia=i8;const bp=bm[bn];if(void 0x0!==bp){const bq=bp[ia(0x50b)](bo);-0x1!==bq&&bp[ia(0x58f)](bq,0x1);}},bl[i8(0x252)]=function(bn={}){var ib=i8;const bo=bm[bn[ib(0x299)]];if(void 0x0!==bo){bn[ib(0x40e)]=this;const bp=bo[ib(0x859)](0x0);for(let bq=0x0,br=bp[ib(0x61d)];bq<br;bq++)bp[bq][ib(0x6ca)](this,bn);}},bl;}const aw=wx[hJ(0x631)](),ax=aw[hJ(0x539)],ay=aw[hJ(0x22d)],az=aw[hJ(0x253)],aA=-0x1!==ax[hJ(0x2fe)]()[hJ(0x50b)]('android')?'Android;\x20CPU\x20Android\x206.0':'iPhone;\x20CPU\x20iPhone\x20OS\x2010_3_1\x20like\x20Mac\x20OS\x20X',aB={'platform':ay,'language':az,'appVersion':hJ(0x75e)+aA+')\x20AppleWebKit/601.1.46\x20(KHTML,\x20like\x20Gecko)\x20Version/9.0\x20Mobile/13B143\x20Safari/601.1','userAgent':'Mozilla/5.0\x20('+aA+')\x20AppleWebKit/603.1.30\x20(KHTML,\x20like\x20Gecko)\x20Mobile/14E8301\x20MicroMessenger/6.6.0\x20MiniGame\x20NetType/WIFI\x20Language/'+az,'onLine':!0x0,'geolocation':{'getCurrentPosition':a7,'watchPosition':a7,'clearWatch':a7}};wx[hJ(0x399)]&&wx[hJ(0x399)](function(bk){var ic=hJ;aB['onLine']=bk[ic(0x97a)];});const aC=aB;function aD(){var id=hJ;try{let bk;return aD[id(0x33a)],(wx&&wx[id(0x4db)]&&(bk=wx['createCanvas']()[id(0x1d3)]()),'tagName'in bk||(bk[id(0x5aa)]=id(0x4b1)),ai(bk),am(bk),bk[id(0x3b3)]['__proto__']=wx[id(0x4db)]()[id(0x1d3)][id(0x6cb)],bk);}catch(bl){}}class aE{constructor(){}}class aF{constructor(bk){var ie=hJ;this[ie(0x2d9)]=!0x1,this[ie(0x693)]=!0x1,this[ie(0x40e)]=null,this[ie(0x62d)]=null,this['preventDefault']=a7,this[ie(0x82e)]=a7,this[ie(0x299)]=bk,this[ie(0x19f)]=Date[ie(0x983)]();}}class aG extends aF{constructor(bk){var ig=hJ;super(bk),this[ig(0x61a)]=[],this[ig(0x924)]=[],this[ig(0x5be)]=[],this[ig(0x40e)]=window[ig(0x2a9)],this[ig(0x62d)]=window['canvas'];}}function aH(bk){return bl=>{var ih=a0b;const bm=new aG(bk);bm[ih(0x5be)]=bl[ih(0x5be)],bm['touches']=bl[ih(0x61a)],bm[ih(0x924)]=Array['prototype'][ih(0x859)][ih(0x6ca)](bl[ih(0x61a)]),bm[ih(0x19f)]=bl[ih(0x19f)],document[ih(0x252)](bm);};}wx[hJ(0x812)]&&wx[hJ(0x812)](aH('touchstart')),wx[hJ(0x3a9)]&&wx[hJ(0x3a9)](aH(hJ(0x70a))),wx[hJ(0x4d5)]&&wx[hJ(0x4d5)](aH(hJ(0x264))),wx['onTouchCancel']&&wx[hJ(0x832)](aH(hJ(0x7d7)));class aI extends aF{constructor(bk){super(bk);}}const aJ=[hJ(0x250),hJ(0x693),hJ(0x92b),hJ(0x83d),hJ(0x235),hJ(0x541),hJ(0x68d),hJ(0x2c4),hJ(0x4f3),hJ(0x1d1),'shiftKey',hJ(0x354),hJ(0xa1e),'relatedTarget','pointerId','width',hJ(0x8ec),hJ(0x64b),'tiltX','tiltY',hJ(0x566),hJ(0x38a),hJ(0x564),hJ(0x42e),hJ(0x5e1),'timeStamp'],aK=[!0x1,!0x1,null,null,0x0,0x0,0x0,0x0,!0x1,!0x1,!0x1,!0x1,0x0,null,0x0,0x0,0x0,0x0,0x0,0x0,0x0,'',0x0,!0x1,0x0,0x0,0x0];function aL(bk,bl,bm){var ii=hJ;const bn=new aI(bk);for(let bo=0x0;bo<aJ[ii(0x61d)];bo++){const bp=aJ[bo];bn[bp]=bl[bp]||aK[bo];}return bn[ii(0x299)]=bk,bn[ii(0x40e)]=window[ii(0x2a9)],bn['currentTarget']=window['canvas'],bn['buttons']=function(bq){var ij=ii;let br=0x0;return ij(0x311)!==bq&&ij(0x70a)!==bq&&'pointerdown'!==bq&&ij(0x929)!==bq||(br=0x1),br;}(bk),bn['which']=bn[ii(0x286)],bn[ii(0x80f)]=(bl[ii(0x72c)]||0x0)+0x2,bn[ii(0x250)]=!0x0,bn[ii(0x693)]=!0x0,bn['button']=0x0,bn[ii(0x5fb)]=0x2*(bl[ii(0x888)]||0.5),bn[ii(0x8ec)]=0x2*(bl[ii(0x50a)]||0.5),bn[ii(0x64b)]=bl[ii(0x77c)]||0.5,bn[ii(0x564)]=function(bq){var ik=ii;return aM===bq[ik(0x72c)];}(bl),bn[ii(0x566)]=ii(0x4d6),bn[ii(0x1d1)]=bm[ii(0x1d1)],bn['ctrlKey']=bm['ctrlKey'],bn[ii(0x354)]=bm[ii(0x354)],bn[ii(0x900)]=bm['shiftKey'],bm[ii(0x815)]&&(bn[ii(0x815)]=function(){bm['preventDefault']();}),bn;}let aM=null;function aN(bk){var il=hJ;null===aM&&(aM=bk[il(0x72c)]);}function aO(bk){var im=hJ;aM===bk[im(0x72c)]&&(aM=null);}function aP(bk){return bl=>{var io=a0b;console[io(0x45c)]('rawEvent',bl);const bm=bl[io(0x5be)];for(let bn=0x0;bn<bm['length'];bn++){const bo=bm[bn];0x0===bn&&io(0x5b3)===bk?aN(bo):'pointerup'!==bk&&io(0x974)!==bk||aO(bo);const bp=aL(bk,bo,bl);console[io(0x45c)](io(0x6ff),bp),document[io(0x252)](bp);}};}wx[hJ(0x812)]&&wx[hJ(0x812)](aP(hJ(0x5b3))),wx[hJ(0x3a9)]&&wx[hJ(0x3a9)](aP('pointermove')),wx[hJ(0x4d5)]&&wx[hJ(0x4d5)](aP('pointerup')),wx[hJ(0x832)]&&wx[hJ(0x832)](aP(hJ(0x974)));class aQ extends aF{constructor(bk){super(bk);}}let aR=0x0;const aS=function(bk){var ip=hJ;return'__'+bk+'_'+Math[ip(0xa29)](0x3b9aca00*Math[ip(0x2bd)]())+'_'+ ++aR+'__';};aS['iterator']=aS('Symbol.iterator');const aT=aS,aU={'href':hJ(0x2ea),'reload'(){},'replace'(bk){this['href']=bk;}},aV=new WeakMap(),aW=new WeakMap(),aX=new WeakMap(),aY=new WeakMap(),aZ=new WeakMap();function b0(bk,...bl){var iq=hJ;iq(0x4df)==typeof this['on'+bk]&&this['on'+bk][iq(0x1ea)](this,bl);}function b1(bk){var ir=hJ;this['readyState']=bk,b0['call'](this,ir(0x570)),this[ir(0x252)]('readystatechange');}class b2{static [hJ(0x980)]=0x0;static [hJ(0x775)]=0x1;static [hJ(0x820)]=0x2;static [hJ(0x36a)]=0x3;static [hJ(0x398)]=0x4;['onabort']=null;[hJ(0x38b)]=null;[hJ(0x218)]=null;[hJ(0x4b7)]=null;[hJ(0x205)]=null;[hJ(0x668)]=null;['onloadend']=null;[hJ(0x558)]=null;[hJ(0x3f4)]=0x0;['response']=null;[hJ(0x959)]=null;[hJ(0x850)]='';['responseXML']=null;['status']=0x0;[hJ(0x53f)]='';['upload']={};[hJ(0x32f)]=!0x1;[hJ(0x3d6)]={};constructor(){var is=hJ;aX[is(0x1e6)](this,{'content-type':is(0x8be)}),aY[is(0x1e6)](this,{});}[hJ(0x470)](){var it=hJ;const bk=aZ[it(0x298)](this);bk&&bk['abort']();}['getAllResponseHeaders'](){var iu=hJ;const bk=aY[iu(0x298)](this);return Object[iu(0x365)](bk)[iu(0x68a)](bl=>bl+':\x20'+bk[bl])[iu(0x5d2)]('\x0a');}[hJ(0x5a1)](bk){var iv=hJ;return aY[iv(0x298)](this)[bk];}[hJ(0x673)](bk,bl){var iw=hJ;aW[iw(0x1e6)](this,bk),aV['set'](this,bl),b1['call'](this,b2[iw(0x775)]);}[hJ(0x24f)](){}[hJ(0x2d2)](bk=''){var ix=hJ;if(this[ix(0x3f4)]!==b2['OPENED'])throw new Error(ix(0x4f0));if(-0x1===aV[ix(0x298)](this)['indexOf'](ix(0x610))){let bl=a2['g'][ix(0x8bb)][ix(0x38c)][ix(0x612)](aV[ix(0x298)](this)),bm=0xc8,bn={};if('string'!=typeof bl&&!(bl instanceof ArrayBuffer))try{bl=JSON[ix(0x3f6)](bl);}catch(bo){}if(this['status']=bm,aY[ix(0x1e6)](this,bn),b0[ix(0x6ca)](this,ix(0x65d)),this['dispatchEvent'](ix(0x65d)),b1['call'](this,b2[ix(0x820)]),b1['call'](this,b2[ix(0x36a)]),this['response']=bl,bl instanceof ArrayBuffer){this[ix(0x959)]='';const bp=new Uint8Array(bl),bq=bp[ix(0x790)];for(let br=0x0;br<bq;br++)this[ix(0x959)]+=String[ix(0x1dd)](bp[br]);}else this[ix(0x959)]=bl;b1[ix(0x6ca)](this,b2[ix(0x398)]),b0[ix(0x6ca)](this,'load'),this[ix(0x252)]('load'),b0[ix(0x6ca)](this,'loadend'),this[ix(0x252)](ix(0x34f));}else wx[ix(0x870)]({'data':bk,'url':aV[ix(0x298)](this),'method':aW['get'](this),'header':aX[ix(0x298)](this),'responseType':this[ix(0x850)],'success':({data:bs,statusCode:bu,header:bv})=>{var iy=ix;if('string'!=typeof bs&&!(bs instanceof ArrayBuffer))try{bs=JSON['stringify'](bs);}catch(bw){}if(this[iy(0x639)]=bu,aY[iy(0x1e6)](this,bv),b0[iy(0x6ca)](this,iy(0x65d)),this[iy(0x252)](iy(0x65d)),b1[iy(0x6ca)](this,b2[iy(0x820)]),b1[iy(0x6ca)](this,b2[iy(0x36a)]),this[iy(0x1df)]=bs,bs instanceof ArrayBuffer){this[iy(0x959)]='';const bx=new Uint8Array(bs),by=bx[iy(0x790)];for(let bz=0x0;bz<by;bz++)this[iy(0x959)]+=String[iy(0x1dd)](bx[bz]);}else this[iy(0x959)]=bs;b1[iy(0x6ca)](this,b2[iy(0x398)]),b0['call'](this,'load'),this[iy(0x252)](iy(0x901)),b0[iy(0x6ca)](this,iy(0x34f)),this['dispatchEvent']('loadend');},'fail':({errMsg:bs})=>{var iz=ix;-0x1!==bs[iz(0x50b)]('abort')?(b0[iz(0x6ca)](this,'abort'),this[iz(0x252)](iz(0x470))):(b0[iz(0x6ca)](this,iz(0x6ec),bs),this[iz(0x252)](iz(0x6ec),bs)),b0[iz(0x6ca)](this,iz(0x34f)),this[iz(0x252)]('loadend');}});}[hJ(0x57c)](bk,bl){var iA=hJ;const bm=aX[iA(0x298)](this);bm[bk]=bl,aX[iA(0x1e6)](this,bm);}['addEventListener'](bk,bl){var iB=hJ;this[iB(0x3d6)][bk]||(this[iB(0x3d6)][bk]=[]),this[iB(0x3d6)][bk]['push'](bl);}[hJ(0x65f)](bk,bl){var iC=hJ;const bm=this['events'][bk];if(bm&&bm[iC(0x61d)]>0x0){for(let bn=bm[iC(0x61d)];bn--;bn>0x0)if(bm[bn]===bl){bm[iC(0x58f)](bn,0x1);break;}}}[hJ(0x252)](bk,bl={}){var iD=hJ;const bm=this[iD(0x3d6)][bk];if(bm){for(let bn=0x0;bn<bm[iD(0x61d)];bn++)bm[bn](bl);}}}function b3(bk){var iE=hJ;const bl=bk[iE(0x5aa)];return iE(0x2bb)===bl?a6(bk):iE(0x4b1)===bl?a5(bk):a4;}function b4(bk){console['log'](bk);}function b5(){}function b6(){}const b7=setTimeout,b8=clearTimeout,b9=setInterval,ba=clearInterval,bb={},bc={'readyState':hJ(0x8ef),'visibilityState':'visible','hidden':!0x1,'fullscreen':!0x0,'location':aU,'scripts':[],'style':{},'ontouchstart':null,'ontouchmove':null,'ontouchend':null,'onvisibilitychange':null,'parentNode':null,'parentElement':null,'createElement':bk=>hJ(0x2a9)===(bk=bk[hJ(0x2fe)]())?new av():hJ(0x616)===bk?new aD():new ar(bk),'createElementNS'(bk,bl){var iF=hJ;return this[iF(0x702)](bl);},'createTextNode':bk=>bk,'getElementById':bk=>bk===a3['canvas']['id']?a3[hJ(0x2a9)]:null,'getElementsByTagName':bk=>'head'===(bk=bk['toLowerCase']())?[bc['head']]:hJ(0x4f7)===bk?[bc[hJ(0x4f7)]]:hJ(0x2a9)===bk?[a3[hJ(0x2a9)]]:[],'getElementsByTagNameNS'(bk,bl){var iG=hJ;return this[iG(0x529)](bl);},'getElementsByName':bk=>'head'===bk?[bc[hJ(0x61f)]]:hJ(0x4f7)===bk?[bc[hJ(0x4f7)]]:'canvas'===bk?[a3[hJ(0x2a9)]]:[],'querySelector':bk=>hJ(0x61f)===bk?bc['head']:hJ(0x4f7)===bk?bc['body']:hJ(0x2a9)===bk||bk==='#'+a3[hJ(0x2a9)]['id']?a3[hJ(0x2a9)]:null,'querySelectorAll':bk=>hJ(0x61f)===bk?[bc[hJ(0x61f)]]:hJ(0x4f7)===bk?[bc['body']]:hJ(0x2a9)===bk?[a3[hJ(0x2a9)]]:[],'addEventListener'(bk,bl){var iH=hJ;bb[bk]||(bb[bk]=[]),bb[bk][iH(0x315)](bl);},'removeEventListener'(bk,bl){var iI=hJ;const bm=bb[bk];if(bm&&bm[iI(0x61d)]>0x0){for(let bn=bm[iI(0x61d)];bn--;bn>0x0)if(bm[bn]===bl){bm[iI(0x58f)](bn,0x1);break;}}},'dispatchEvent'(bk){var iJ=hJ;const bl=bk[iJ(0x299)],bm=bb[bl];if(bm){for(let bn=0x0;bn<bm[iJ(0x61d)];bn++)bm[bn](bk);}bk['target']&&iJ(0x4df)==typeof bk[iJ(0x40e)]['on'+bl]&&bk[iJ(0x40e)]['on'+bl](bk);}};function bd(bk){return function(){var iK=a0b;bc[iK(0x5ed)]=bk?iK(0x220):iK(0x330);const bl=!bk;if(bc['hidden']===bl)return;bc['hidden']=bl;const bm=new aF('visibilitychange');bm[iK(0x40e)]=bc,bm[iK(0x19f)]=Date[iK(0x983)](),bc['dispatchEvent'](bm);};}bc['documentElement']=new class extends ar{constructor(){super('html',0x0);}}(),bc[hJ(0x61f)]=new ar(hJ(0x61f)),bc['body']=new class extends ar{constructor(){super('body',0x0);}}(),wx[hJ(0x339)]&&wx[hJ(0x339)](bd(!0x1)),wx[hJ(0x662)]&&wx['onShow'](bd(!0x0));const be=bc,bf=function(bk){var iL=hJ;a3['document']=be,a3[iL(0x8a8)]=(bl,bm)=>{var iM=iL;a3[iM(0x225)]['addEventListener'](bl,bm);},a3[iL(0x65f)]=(bl,bm)=>{var iN=iL;a3[iN(0x225)]['removeEventListener'](bl,bm);},a3['dispatchEvent']=function(bl={}){},bk[iL(0x876)]={},bk[iL(0x876)]['wx']={};for(const bl in a3)bk[bl]=a3[bl];bk[iL(0x507)]=a3,bk[iL(0x225)]=a3['document'],bk['global'][iL(0x507)]=a3,bk[iL(0x7ba)]['_context']=bk,bk['HTMLImageElement']=bk[iL(0x876)]['wx']['createImage'];};},0xb0e:(j,q,z)=>{z['d'](q,{'AE':()=>a1,'Bb':()=>K,'CV':()=>F,'Cg':()=>a0,'Ed':()=>M,'Ej':()=>Y,'FC':()=>H,'Fx':()=>a2,'G4':()=>U,'HN':()=>Z,'MX':()=>W,'Nj':()=>L,'Op':()=>a4,'X2':()=>N,'aV':()=>a3,'aW':()=>a6,'aj':()=>Q,'bb':()=>O,'dE':()=>I,'dO':()=>D,'he':()=>J,'m1':()=>V,'mw':()=>A,'oC':()=>X,'rp':()=>G,'sP':()=>B,'zk':()=>a5});const A={'au':'/r','ti':'/m','ef':'/t','ae':'/c'},B=[0x3d,0x3e,0x4c,0x3f,0x3a,0x3b,0x4b,0x3c],D=[0x2a,0x47,0x46,0x45,0x44,0x29,0x28,0x27,0x26],F=[0x34,0x39,0x49,0x38,0x37,0x36,0x48,0x35],G=[0x21,0x40,0x41,0x42,0x43,0x22,0x23,0x24,0x25],H=[0x0,0x1,0x2,0x3,0x4,0x5,0x6,0x7,0x8,0x9,0xa,0xb,0xc,0xd,0xe,0xf,0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f,0x20,0x79,0x7a,0x76,0x74,0x73,0x72,0x6e,0x6f,0x70,0x71,0x75,0x78,0x77],I=[0x54,0x55,0x56,0x57,0x58,0x59,0x5a,0x5b,0x5c,0x5d,0x5e,0x5f,0x60,0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x6a,0x6b,0x6c,0x6d],J=[0x1da,0x1db,0x1dc,0x1dd],K=[0x1d5,0x1d6,0x1d7,0x1d8],L=[0x0,0x1,0x2,0x3,0x4,0x5,0x6,0x7,0x8,0x9,0xa,0xb,0xc,0xd,0xe,0xf],M=[0x14c,0x11c,0xfb,0x185,0x164,0x1c6,0x143,0x169,0x120,0x18d,0x16d,0x17b,0x17a],N=[0x34,0x39,0x49,0x38,0x37,0x36,0x48,0x35],O=[0x3d,0x3e,0x4c,0x3f,0x3a,0x3b,0x4b,0x3c],Q=[0x50,0x52,0x2f,0x30,0x31,0x32,0x33,0x51,0x53],U=[0x2b,0x2c,0x2d,0x2e],V=[[{'y':0x78,'x':0x0},{'y':0x70,'x':0x70},0x6e,{'y':0x73,'x':0x73},{'y':0x7a,'x':0x20}],[{'y':0x6e,'x':0x7a},{'y':0x79,'x':0x79},{'y':0x1c,'x':0x20},{'y':0x18,'x':0x19},{'y':0x10,'x':0x15}],[{'y':0x13,'x':0x15},0x10,{'y':0xd,'x':0xb}],[{'y':0x6e,'x':0x78},{'y':0x77,'x':0x77},{'y':0x4,'x':0x0},{'y':0x8,'x':0x7},{'y':0x10,'x':0xb}]],W=[0x60,0x6a,0x61,0x62,0x63,0x6c,0x64],X=[0x60,0x6b,0x67,0x66,0x65,0x6d,0x64],Y=[0x34,0x35,0x48,0x36,0x37],Z=[0x34,0x39,0x49,0x38,0x37],a0={'contour_left1':0x0,'contour_left2':0x0,'contour_left3':0x0,'contour_left4':0x2,'contour_left5':0x0,'contour_left6':0x0,'contour_left7':0x0,'contour_left8':0x0,'contour_left9':0x9,'contour_left10':0x9,'contour_left11':0x0,'contour_left12':0x0,'contour_right1':0x0,'contour_right2':0x0,'contour_right3':0x0,'contour_right4':0x1e,'contour_right5':0x0,'contour_right6':0x0,'contour_right7':0x0,'contour_right8':0x0,'contour_right9':0x17,'contour_right10':0x17,'contour_right11':0x0,'contour_right12':0x0,'contour_left_limit_point':0x0,'contour_right_limit_point':0x0,'contour_chin':0x10,'mouth_lower_lip_bottom':0x2b,'left_eye_left_corner':0x34,'left_eye_right_corner':0x37,'left_eye_top':0x48,'left_eye_bottom':0x49,'left_eye_center':0x4a,'right_eye_left_corner':0x3a,'right_eye_right_corner':0x3d,'right_eye_top':0x4b,'right_eye_bottom':0x4c,'right_eye_center':0x4d,'nose_bridge1':0x0,'nose_bridge2':0x0,'nose_bridge3':0x0,'nose_bridge4':0x2b,'nose_bridge5':0x2c,'nose_bridge6':0x2d,'nose_bridge7':0x2e,'nose_tip':0x2f,'nose_left1':0x52,'nose_left2':0x30,'nose_right1':0x53,'nose_right2':0x32,'nose_tip1':0x2e,'nose_bottom':0x31,'lip_top_left':0x54,'lip_top_left_target':0x39,'lip_top_right':0x5a,'lip_top_right_target':0x18,'lip_top_center':0x57,'lip_top_center_target':0x31,'lip_bottom_left':0x5e,'lip_bottom_left_target':0xd,'lip_bottom_right':0x5c,'lip_bottom_right_target':0x12,'lip_bottom_center':0x5d,'lip_bottom_center_target':0x10,'lip_inner_top':0x62,'lip_inner_bottom':0x66,'forehead_top_center':0xa,'eyebrow_center':0x2b,'forehead_left':0x71,'left_eyebrow_center':0x23,'forehead_right':0x74,'right_eyebrow_center':0x28,'chin_left':0xd,'chin_right':0x13},a1=[0x0,0x1,0x2,0x3,0x4,0x5,0x6,0x7,0x8,0x9,0xa,0xb,0xc,0xd,0xe,0xf,0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f,0x40,0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4a,0x4b,0x4c,0x4d,0x4e,0x4f,0x50,0x51,0x52,0x53,0x54,0x55,0x56,0x57,0x58,0x59,0x5a,0x5b,0x5c,0x5d,0x5e,0x5f,0x60,0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6a,0x6b,0x6c,0x6d,0x6e,0x6f,0x70,0x71,0x72,0x73,0x74,0x75,0x76,0x77,0x78,0x79,0x7a],a2=[0x2b,0x2c,0x4f,0x2b,0x4e,0x2c,0x2c,0x3a,0x4f,0x50,0x2d,0x2c,0x2c,0x51,0x3a,0x3a,0x3b,0x4f,0x4f,0x44,0x2b,0x51,0x3f,0x3a,0x3a,0x3f,0x3b,0x4e,0x37,0x2c,0x3b,0x44,0x4f,0x43,0x36,0x4e,0x4e,0x36,0x37,0x2d,0x51,0x2c,0x43,0x4e,0x2b,0x3f,0x69,0x3b,0x3b,0x45,0x44,0x4d,0x69,0x3f,0x4c,0x4d,0x3f,0x25,0x43,0x2b,0x3c,0x4b,0x69,0x69,0x4b,0x3b,0x51,0x4c,0x3f,0x36,0x38,0x37,0x37,0x50,0x2c,0x45,0x26,0x44,0x44,0x26,0x2b,0x38,0x50,0x37,0x2d,0x2e,0x51,0x50,0x2e,0x2d,0x46,0x45,0x4b,0x4b,0x45,0x3b,0x26,0x25,0x2b,0x48,0x68,0x36,0x36,0x68,0x38,0x38,0x49,0x50,0x48,0x36,0x42,0x68,0x4a,0x38,0x42,0x36,0x43,0x68,0x35,0x4a,0x4c,0x3e,0x4d,0x4d,0x3c,0x69,0x1c,0x3e,0x4c,0x3e,0x3c,0x4d,0x39,0x49,0x4a,0x4a,0x49,0x38,0x33,0x53,0x51,0x51,0x53,0x4c,0x25,0x42,0x43,0x46,0x27,0x45,0x45,0x27,0x26,0x6f,0x24,0x25,0x49,0x52,0x50,0x50,0x30,0x2e,0x32,0x33,0x51,0x32,0x51,0x2e,0x31,0x32,0x2e,0x3c,0x46,0x4b,0x47,0x46,0x3c,0x6e,0x25,0x26,0x25,0x24,0x42,0x35,0x68,0x48,0x35,0x39,0x4a,0x2f,0x30,0x50,0x1e,0x3d,0x3e,0x3e,0x3d,0x3c,0x30,0x31,0x2e,0x52,0x2f,0x50,0x35,0x48,0x41,0x49,0x4,0x52,0x41,0x48,0x42,0x24,0x41,0x42,0x35,0x34,0x39,0x46,0x28,0x27,0x70,0x23,0x24,0x29,0x28,0x46,0x40,0x34,0x35,0x54,0x2f,0x52,0x3d,0x47,0x3c,0x24,0x23,0x41,0x41,0x40,0x35,0x6e,0x26,0x72,0x56,0x31,0x30,0x57,0x58,0x31,0x31,0x58,0x32,0x32,0x59,0x33,0x55,0x30,0x2f,0x55,0x56,0x30,0x55,0x54,0x60,0x56,0x57,0x31,0x47,0x29,0x46,0x6c,0x59,0x63,0x58,0x59,0x32,0x33,0x5a,0x53,0x1d,0x1e,0x3e,0x22,0x40,0x41,0x56,0x62,0x57,0x63,0x59,0x58,0x6a,0x55,0x60,0x20,0x2a,0x3d,0x3d,0x2a,0x47,0x47,0x2a,0x29,0x63,0x62,0x65,0x59,0x5a,0x33,0x63,0x58,0x62,0x63,0x6d,0x6c,0x6c,0x64,0x59,0x62,0x58,0x57,0x63,0x65,0x6d,0x23,0x22,0x41,0x40,0x21,0x34,0x6d,0x64,0x6c,0x64,0x5a,0x59,0x66,0x62,0x67,0x61,0x62,0x56,0x62,0x66,0x65,0x55,0x61,0x56,0x6b,0x67,0x61,0x61,0x67,0x62,0x55,0x2f,0x54,0x55,0x6a,0x61,0x60,0x6b,0x6a,0x6a,0x6b,0x61,0x72,0x27,0x73,0x72,0x26,0x27,0x23,0x71,0x22,0x73,0x28,0x74,0x73,0x27,0x28,0x54,0x52,0x7,0x4,0x49,0x39,0x22,0x21,0x40,0x34,0x2,0x39,0x74,0x28,0x29,0x6d,0x5b,0x64,0x64,0x5b,0x5a,0x65,0x5b,0x6d,0x5c,0x5b,0x65,0x5c,0x65,0x66,0x6e,0x6f,0x25,0x78,0x77,0x21,0x1d,0x3e,0x1c,0x1c,0x4c,0x53,0x1e,0x1f,0x3d,0x1b,0x53,0x1a,0x1b,0x1c,0x53,0x6b,0x5f,0x67,0x67,0x5e,0x66,0x60,0x5f,0x6b,0x54,0x5f,0x60,0x6f,0x70,0x24,0x1f,0x20,0x3d,0x2a,0x7a,0x29,0x20,0x79,0x2a,0x5d,0x5c,0x66,0x76,0x74,0x29,0x73,0x7f,0x72,0x1a,0x53,0x19,0x5f,0x5e,0x67,0x5e,0x5d,0x66,0x79,0x7a,0x2a,0x81,0x7a,0x79,0x1,0x2,0x34,0x2,0x3,0x39,0x54,0xb,0x5f,0x0,0x1,0x34,0x3,0x4,0x39,0x19,0x53,0x5a,0x19,0x5a,0x18,0x75,0x71,0x7b,0x70,0x71,0x23,0x21,0x0,0x34,0x77,0x0,0x21,0x78,0x21,0x22,0x4,0x5,0x52,0x7a,0x76,0x29,0x75,0x78,0x22,0x77,0x89,0x0,0x18,0x5a,0x17,0x5,0x6,0x52,0x5f,0xc,0x5e,0x71,0x75,0x22,0x17,0x5a,0x16,0x6,0x7,0x52,0x16,0x5a,0x15,0x5a,0x5b,0x15,0x7,0x8,0x54,0x15,0x5b,0x14,0x8,0x9,0x54,0x5e,0xf,0x5d,0x9,0xa,0x54,0x14,0x5b,0x13,0x5b,0x5c,0x13,0xa,0xb,0x54,0x13,0x5c,0x12,0xb,0xc,0x5f,0x12,0x5c,0x11,0xc,0xd,0x5e,0x11,0x5c,0x5d,0xd,0xe,0x5e,0x10,0x11,0x5d,0xe,0xf,0x5e,0xf,0x10,0x5d,0x1f,0x81,0x20,0x20,0x81,0x79,0x7a,0x80,0x76,0x82,0x81,0x1f,0x82,0x1f,0x1e,0x82,0x1e,0x1d,0x82,0x1d,0x1c,0x82,0x1c,0x1b,0x82,0x1b,0x83,0x1b,0x1a,0x83,0x1a,0x19,0x83,0x83,0x18,0x84,0x83,0x19,0x18,0x18,0x17,0x84,0x17,0x16,0x84,0x88,0x89,0x78,0x78,0x89,0x77,0x0,0x89,0x1,0x1,0x8a,0x2,0x2,0x8a,0x3,0x3,0x8a,0x4,0x4,0x8a,0x5,0x5,0x8b,0x6,0x6,0x8b,0x7,0x7,0x8b,0x8,0x8,0x8c,0x9,0x84,0x15,0x85,0x84,0x16,0x15,0x15,0x14,0x85,0x89,0x8a,0x1,0x9,0x8c,0xa,0xa,0x8c,0xb,0xb,0x87,0xc,0x8a,0x8b,0x5,0xc,0x87,0xd,0xd,0x87,0xe,0x81,0x80,0x7a,0x76,0x7f,0x74,0x74,0x7f,0x73,0x72,0x7e,0x6e,0x85,0x14,0x13,0x85,0x13,0x12,0x85,0x12,0x11,0x7b,0x88,0x75,0x75,0x88,0x78,0x7b,0x71,0x70,0x7b,0x70,0x6f,0x86,0x11,0x10,0x86,0x85,0x11,0x86,0x10,0xf,0x87,0xf,0xe,0x8b,0x8c,0x8,0x8c,0x87,0xb,0x80,0x7f,0x76,0x7c,0x7b,0x6f,0x87,0x86,0xf,0x7c,0x6f,0x6e,0x7f,0x7e,0x72,0x7e,0x7d,0x6e,0x7d,0x7c,0x6e],a3=[0.488189826866528,0.46679085,0.488189826866528,0.50658295,0.516143625,0.471960025,0.488189826866528,0.46679085,0.4599979375,0.4717894375,0.488189826866528,0.50658295,0.488189826866528,0.50658295,0.5447991249999999,0.48110985,0.516143625,0.471960025,0.4410622,0.565803525,0.488189826866528,0.5462991,0.488189826866528,0.50658295,0.488189826866528,0.50658295,0.5369319124999999,0.5654357875,0.5447991249999999,0.48110985,0.5447991249999999,0.48110985,0.5602547125,0.46035325,0.516143625,0.471960025,0.516143625,0.471960025,0.542807575,0.42128374999999996,0.488189826866528,0.46679085,0.5369319124999999,0.5654357875,0.568110275,0.48251628750000003,0.5447991249999999,0.48110985,0.5447991249999999,0.48110985,0.568110275,0.48251628750000003,0.5602547125,0.46035325,0.4599979375,0.4717894375,0.42883299999999996,0.48068869999999997,0.488189826866528,0.50658295,0.5602547125,0.46035325,0.542807575,0.42128374999999996,0.516143625,0.471960025,0.434630275,0.421406325,0.4135695,0.4596802125,0.4599979375,0.4717894375,0.4599979375,0.4717894375,0.4135695,0.4596802125,0.42883299999999996,0.48068869999999997,0.488189826866528,0.5462991,0.5369319124999999,0.5654357875,0.488189826866528,0.50658295,0.434630275,0.421406325,0.4599979375,0.4717894375,0.488189826866528,0.46679085,0.568110275,0.48251628750000003,0.5865549125,0.4657776625,0.5602547125,0.46035325,0.5602547125,0.46035325,0.57607715,0.4146392875,0.542807575,0.42128374999999996,0.588454125,0.46861568750000004,0.5865549125,0.4657776625,0.568110275,0.48251628750000003,0.5915551,0.4831601,0.588454125,0.46861568750000004,0.568110275,0.48251628750000003,0.4365127125,0.40153225,0.434630275,0.421406325,0.488189826866528,0.46679085,0.6097423125,0.4507424125,0.5838801625,0.449976875,0.5865549125,0.4657776625,0.5865549125,0.4657776625,0.5838801625,0.449976875,0.5602547125,0.46035325,0.5369319124999999,0.5654357875,0.5915551,0.4831601,0.568110275,0.48251628750000003,0.4135695,0.4596802125,0.40557155,0.48211937499999996,0.42883299999999996,0.48068869999999997,0.42883299999999996,0.48068869999999997,0.4410622,0.565803525,0.488189826866528,0.50658295,0.57607715,0.4146392875,0.5406618125,0.40061935,0.542807575,0.42128374999999996,0.542807575,0.42128374999999996,0.5406618125,0.40061935,0.488189826866528,0.46679085,0.40557155,0.48211937499999996,0.4410622,0.565803525,0.42883299999999996,0.48068869999999997,0.488189826866528,0.5462991,0.488189826866528,0.58580675,0.5369319124999999,0.5654357875,0.4410622,0.565803525,0.488189826866528,0.58580675,0.488189826866528,0.5462991,0.60990175,0.4109925,0.57607715,0.4146392875,0.5838801625,0.449976875,0.5838801625,0.449976875,0.57607715,0.4146392875,0.5602547125,0.46035325,0.5406618125,0.40061935,0.4365127125,0.40153225,0.488189826866528,0.46679085,0.38991549999999997,0.4494414125,0.3875146875,0.465458025,0.4135695,0.4596802125,0.4135695,0.4596802125,0.3875146875,0.465458025,0.40557155,0.48211937499999996,0.40557155,0.48211937499999996,0.38226482500000003,0.4827557,0.4410622,0.565803525,0.38991549999999997,0.4494414125,0.4135695,0.4596802125,0.4020055,0.415060875,0.3875146875,0.465458025,0.385898325,0.46785316250000003,0.40557155,0.48211937499999996,0.4020055,0.415060875,0.4135695,0.4596802125,0.434630275,0.421406325,0.3875146875,0.465458025,0.3640840875,0.45055124999999996,0.385898325,0.46785316250000003,0.5915551,0.4831601,0.6139756,0.476639975,0.588454125,0.46861568750000004,0.588454125,0.46861568750000004,0.6097423125,0.4507424125,0.5865549125,0.4657776625,0.6986649375,0.5627347125,0.6139756,0.476639975,0.5915551,0.4831601,0.6139756,0.476639975,0.6097423125,0.4507424125,0.588454125,0.46861568750000004,0.3599488125,0.47632687500000004,0.38226482500000003,0.4827557,0.385898325,0.46785316250000003,0.385898325,0.46785316250000003,0.38226482500000003,0.4827557,0.40557155,0.48211937499999996,0.537402425,0.6126665875,0.5512806,0.592975125,0.5369319124999999,0.5654357875,0.5369319124999999,0.5654357875,0.5512806,0.592975125,0.5915551,0.4831601,0.4365127125,0.40153225,0.4020055,0.415060875,0.434630275,0.421406325,0.60990175,0.4109925,0.5750593125000001,0.39081712500000004,0.57607715,0.4146392875,0.57607715,0.4146392875,0.5750593125000001,0.39081712500000004,0.5406618125,0.40061935,0.4196925125,0.2953909749999999,0.4028723125,0.3915063125,0.4365127125,0.40153225,0.38226482500000003,0.4827557,0.427124375,0.59353005,0.4410622,0.565803525,0.4410622,0.565803525,0.46482735,0.617807575,0.488189826866528,0.58580675,0.5135869249999999,0.617646025,0.537402425,0.6126665875,0.5369319124999999,0.5654357875,0.5135869249999999,0.617646025,0.5369319124999999,0.5654357875,0.488189826866528,0.58580675,0.488189826866528,0.622551,0.5135869249999999,0.617646025,0.488189826866528,0.58580675,0.6097423125,0.4507424125,0.60990175,0.4109925,0.5838801625,0.449976875,0.64358425,0.412451125,0.60990175,0.4109925,0.6097423125,0.4507424125,0.488189826866528,0.2883909749999999,0.4365127125,0.40153225,0.5406618125,0.40061935,0.4365127125,0.40153225,0.4028723125,0.3915063125,0.4020055,0.415060875,0.3640840875,0.45055124999999996,0.3875146875,0.465458025,0.38991549999999997,0.4494414125,0.3640840875,0.45055124999999996,0.3599488125,0.47632687500000004,0.385898325,0.46785316250000003,0.44135155,0.61300865,0.46482735,0.617807575,0.4410622,0.565803525,0.7079557,0.5055197499999999,0.6325640875,0.46274605,0.6139756,0.476639975,0.6139756,0.476639975,0.6325640875,0.46274605,0.6097423125,0.4507424125,0.46482735,0.617807575,0.488189826866528,0.622551,0.488189826866528,0.58580675,0.427124375,0.59353005,0.44135155,0.61300865,0.4410622,0.565803525,0.3640840875,0.45055124999999996,0.38991549999999997,0.4494414125,0.368784175,0.41131387500000005,0.38226482500000003,0.4827557,0.282695775,0.5610828375,0.427124375,0.59353005,0.368784175,0.41131387500000005,0.38991549999999997,0.4494414125,0.4020055,0.415060875,0.4028723125,0.3915063125,0.368784175,0.41131387500000005,0.4020055,0.415060875,0.3640840875,0.45055124999999996,0.3412266875,0.462774925,0.3599488125,0.47632687500000004,0.60990175,0.4109925,0.6109665,0.3861959125,0.5750593125000001,0.39081712500000004,0.38542595,0.3023909749999999,0.3679795875,0.3866262,0.4028723125,0.3915063125,0.6464699500000001,0.39127456250000003,0.6109665,0.3861959125,0.60990175,0.4109925,0.33567349999999996,0.4124759625,0.3412266875,0.462774925,0.3640840875,0.45055124999999996,0.40563065000000004,0.66605925,0.44135155,0.61300865,0.427124375,0.59353005,0.6325640875,0.46274605,0.64358425,0.412451125,0.6097423125,0.4507424125,0.4028723125,0.3915063125,0.3679795875,0.3866262,0.368784175,0.41131387500000005,0.368784175,0.41131387500000005,0.33567349999999996,0.4124759625,0.3640840875,0.45055124999999996,0.488189826866528,0.2883909749999999,0.5406618125,0.40061935,0.5578605625,0.2953909749999999,0.467591,0.6554576874999999,0.488189826866528,0.622551,0.46482735,0.617807575,0.488189826866528,0.660130075,0.505873625,0.6556971749999999,0.488189826866528,0.622551,0.488189826866528,0.622551,0.505873625,0.6556971749999999,0.5135869249999999,0.617646025,0.5135869249999999,0.617646025,0.537864,0.66081345,0.537402425,0.6126665875,0.436492575,0.659831,0.46482735,0.617807575,0.44135155,0.61300865,0.436492575,0.659831,0.467591,0.6554576874999999,0.46482735,0.617807575,0.436492575,0.659831,0.40563065000000004,0.66605925,0.4149069625,0.6694827499999999,0.467591,0.6554576874999999,0.488189826866528,0.660130075,0.488189826866528,0.622551,0.64358425,0.412451125,0.6464699500000001,0.39127456250000003,0.60990175,0.4109925,0.54207058125,0.6724125624999999,0.537864,0.66081345,0.523628625,0.6757999375,0.505873625,0.6556971749999999,0.537864,0.66081345,0.5135869249999999,0.617646025,0.537402425,0.6126665875,0.5699740624999999,0.665637625,0.5512806,0.592975125,0.7040264999999999,0.5342099,0.7079557,0.5055197499999999,0.6139756,0.476639975,0.33314059999999995,0.3906893125,0.33567349999999996,0.4124759625,0.368784175,0.41131387500000005,0.467591,0.6554576874999999,0.488189826866528,0.679725375,0.488189826866528,0.660130075,0.523628625,0.6757999375,0.537864,0.66081345,0.505873625,0.6556971749999999,0.43286249374999997,0.6727749375,0.436492575,0.659831,0.4149069625,0.6694827499999999,0.7120584999999999,0.4479282,0.67428775,0.41762,0.6325640875,0.46274605,0.6325640875,0.46274605,0.67428775,0.41762,0.64358425,0.412451125,0.64358425,0.412451125,0.67428775,0.41762,0.6464699500000001,0.39127456250000003,0x0,0x0,0x0,0x0,0x0,0x0,0.537864,0.66081345,0.5699740624999999,0.665637625,0.537402425,0.6126665875,0.523628625,0.6757999375,0.505873625,0.6556971749999999,0.488189826866528,0.679725375,0x0,0x0,0x0,0x0,0x0,0x0,0.54207058125,0.6724125624999999,0.5605125375,0.6690251875,0.537864,0.66081345,0.488189826866528,0.679725375,0.505873625,0.6556971749999999,0.488189826866528,0.660130075,0x0,0x0,0x0,0x0,0x0,0x0,0.3679795875,0.3866262,0.33314059999999995,0.3906893125,0.368784175,0.41131387500000005,0.33567349999999996,0.4124759625,0.305216575,0.4170092,0.3412266875,0.462774925,0x0,0x0,0x0,0x0,0x0,0x0,0.5605125375,0.6690251875,0.5699740624999999,0.665637625,0.537864,0.66081345,0x0,0x0,0x0,0x0,0x0,0x0,0.450818025,0.676067125,0.488189826866528,0.679725375,0.467591,0.6554576874999999,0x0,0x0,0x0,0x0,0x0,0x0,0.436492575,0.659831,0.450818025,0.676067125,0.467591,0.6554576874999999,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0.436492575,0.659831,0.44135155,0.61300865,0.40563065000000004,0.66605925,0.436492575,0.659831,0.43286249374999997,0.6727749375,0.450818025,0.676067125,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0.5578605625,0.2953909749999999,0.5750593125000001,0.39081712500000004,0.59301290625,0.3023909749999999,0.5578605625,0.2953909749999999,0.5406618125,0.40061935,0.5750593125000001,0.39081712500000004,0.3679795875,0.3866262,0.35056009374999997,0.3093909749999999,0.33314059999999995,0.3906893125,0.59301290625,0.3023909749999999,0.6109665,0.3861959125,0.6287182250000001,0.3093909749999999,0.59301290625,0.3023909749999999,0.5750593125000001,0.39081712500000004,0.6109665,0.3861959125,0.40563065000000004,0.66605925,0.427124375,0.59353005,0.3030863625,0.64445225,0.282695775,0.5610828375,0.38226482500000003,0.4827557,0.3599488125,0.47632687500000004,0.33314059999999995,0.3906893125,0.305216575,0.4170092,0.33567349999999996,0.4124759625,0.3412266875,0.462774925,0.2733915,0.50383525,0.3599488125,0.47632687500000004,0.6287182250000001,0.3093909749999999,0.6109665,0.3861959125,0.6464699500000001,0.39127456250000003,0.54208226875,0.67264515625,0.5469159375,0.6879962500000001,0.5605125375,0.6690251875,0.5605125375,0.6690251875,0.5469159375,0.6879962500000001,0.5699740624999999,0.665637625,0.523652,0.676265125,0.5469159375,0.6879962500000001,0.54208226875,0.67264515625,0.5189354375,0.7045858749999999,0.5469159375,0.6879962500000001,0.523652,0.676265125,0.5189354375,0.7045858749999999,0.523652,0.676265125,0.488189826866528,0.6814735375,0.488189826866528,0.2883909749999999,0.4196925125,0.2953909749999999,0.4365127125,0.40153225,0.28182385833333334,0.3866262,0.27597567916666665,0.4170092,0.305216575,0.4170092,0.7040264999999999,0.5342099,0.6139756,0.476639975,0.6986649375,0.5627347125,0.6986649375,0.5627347125,0.5915551,0.4831601,0.5512806,0.592975125,0.7079557,0.5055197499999999,0.71060725,0.476442525,0.6325640875,0.46274605,0.692903125,0.5908523999999999,0.5512806,0.592975125,0.6857991250000001,0.618673825,0.692903125,0.5908523999999999,0.6986649375,0.5627347125,0.5512806,0.592975125,0.43282999375,0.673484,0.42734125,0.6891803,0.450753025,0.67748525,0.450753025,0.67748525,0.4548121625,0.7055647999999999,0.488189826866528,0.6814735375,0.4149069625,0.6694827499999999,0.42734125,0.6891803,0.43282999375,0.673484,0.40563065000000004,0.66605925,0.42734125,0.6891803,0.4149069625,0.6694827499999999,0.4196925125,0.2953909749999999,0.38542595,0.3023909749999999,0.4028723125,0.3915063125,0.71060725,0.476442525,0.7120584999999999,0.4479282,0.6325640875,0.46274605,0.67428775,0.41762,0.6994682499999999,0.3861959125,0.6464699500000001,0.39127456250000003,0.7120584999999999,0.4479282,0.705763375,0.41762,0.67428775,0.41762,0.488189826866528,0.7103383750000001,0.5189354375,0.7045858749999999,0.488189826866528,0.6814735375,0.67428775,0.33039097499999986,0.6287182250000001,0.3093909749999999,0.6464699500000001,0.39127456250000003,0.59301290625,0.3023909749999999,0.7120584999999999,0.13003558749999994,0.5578605625,0.2953909749999999,0.6857991250000001,0.618673825,0.5512806,0.592975125,0.6774095,0.6461884999999999,0.42734125,0.6891803,0.4548121625,0.7055647999999999,0.450753025,0.67748525,0.4548121625,0.7055647999999999,0.488189826866528,0.7103383750000001,0.488189826866528,0.6814735375,0.705763375,0.41762,0.6994682499999999,0.3861959125,0.67428775,0.41762,0.8383426749999999,0.41762,0.6994682499999999,0.3861959125,0.705763375,0.41762,0.2711788125,0.475080675,0.2733915,0.50383525,0.3412266875,0.462774925,0.2733915,0.50383525,0.27736215000000003,0.53252975,0.3599488125,0.47632687500000004,0.40563065000000004,0.66605925,0.364313,0.738966,0.42734125,0.6891803,0.2701275,0.446433525,0.2711788125,0.475080675,0.3412266875,0.462774925,0.27736215000000003,0.53252975,0.282695775,0.5610828375,0.3599488125,0.47632687500000004,0.6774095,0.6461884999999999,0.5512806,0.592975125,0.5699740624999999,0.665637625,0.6774095,0.6461884999999999,0.5699740624999999,0.665637625,0.66662155,0.6725830875,0.305216575,0.33039097499999986,0.35056009374999997,0.3093909749999999,0.2701275,0.1304658749999999,0.38542595,0.3023909749999999,0.35056009374999997,0.3093909749999999,0.3679795875,0.3866262,0.305216575,0.4170092,0.2701275,0.446433525,0.3412266875,0.462774925,0.27597567916666665,0.4170092,0.2701275,0.446433525,0.305216575,0.4170092,0.28182385833333334,0.3866262,0.305216575,0.4170092,0.33314059999999995,0.3906893125,0.282695775,0.5610828375,0.28838671250000003,0.58901565,0.427124375,0.59353005,0.6994682499999999,0.3861959125,0.67428775,0.33039097499999986,0.6464699500000001,0.39127456250000003,0.305216575,0.33039097499999986,0.28182385833333334,0.3866262,0.33314059999999995,0.3906893125,0.27597567916666665,0.4170092,0.1433963791666667,0.4170092,0.2701275,0.446433525,0.66662155,0.6725830875,0.5699740624999999,0.665637625,0.652230375,0.6970854125,0.28838671250000003,0.58901565,0.29503317500000004,0.6170379625,0.427124375,0.59353005,0.42734125,0.6891803,0.38528327500000004,0.7581624625000001,0.4548121625,0.7055647999999999,0.35056009374999997,0.3093909749999999,0.305216575,0.33039097499999986,0.33314059999999995,0.3906893125,0.652230375,0.6970854125,0.5699740624999999,0.665637625,0.6349819999999999,0.719920125,0.29503317500000004,0.6170379625,0.3030863625,0.64445225,0.427124375,0.59353005,0.6349819999999999,0.719920125,0.5699740624999999,0.665637625,0.615452575,0.7405493125,0.5699740624999999,0.665637625,0.5469159375,0.6879962500000001,0.615452575,0.7405493125,0.3030863625,0.64445225,0.3134811625,0.6709578,0.40563065000000004,0.66605925,0.615452575,0.7405493125,0.5469159375,0.6879962500000001,0.5944185000000001,0.7597992000000001,0.3134811625,0.6709578,0.327658,0.6954898125,0.40563065000000004,0.66605925,0.4548121625,0.7055647999999999,0.46111278749999995,0.797688125,0.488189826866528,0.7103383750000001,0.327658,0.6954898125,0.3447950375,0.7185136249999999,0.40563065000000004,0.66605925,0.5944185000000001,0.7597992000000001,0.5469159375,0.6879962500000001,0.57167145,0.777034625,0.5469159375,0.6879962500000001,0.5189354375,0.7045858749999999,0.57167145,0.777034625,0.3447950375,0.7185136249999999,0.364313,0.738966,0.40563065000000004,0.66605925,0.57167145,0.777034625,0.5189354375,0.7045858749999999,0.54608605,0.79034725,0.364313,0.738966,0.38528327500000004,0.7581624625000001,0.42734125,0.6891803,0.54608605,0.79034725,0.5189354375,0.7045858749999999,0.5180748375,0.798073,0.38528327500000004,0.7581624625000001,0.4080183375,0.7756525375,0.4548121625,0.7055647999999999,0.5180748375,0.798073,0.5189354375,0.7045858749999999,0.488189826866528,0.7103383750000001,0.4080183375,0.7756525375,0.43323218750000003,0.78937325,0.4548121625,0.7055647999999999,0.488189826866528,0.800711625,0.5180748375,0.798073,0.488189826866528,0.7103383750000001,0.43323218750000003,0.78937325,0.46111278749999995,0.797688125,0.4548121625,0.7055647999999999,0.46111278749999995,0.797688125,0.488189826866528,0.800711625,0.488189826866528,0.7103383750000001,0.71060725,0.476442525,0.8383426749999999,0.41762,0.7120584999999999,0.4479282,0.7120584999999999,0.4479282,0.8383426749999999,0.41762,0.705763375,0.41762,0.6994682499999999,0.3861959125,0.8320475499999999,0.2883909749999999,0.67428775,0.33039097499999986,0.8446377999999999,0.5627347125,0.8383426749999999,0.41762,0.71060725,0.476442525,0.8446377999999999,0.5627347125,0.71060725,0.476442525,0.7079557,0.5055197499999999,0.8446377999999999,0.5627347125,0.7079557,0.5055197499999999,0.7040264999999999,0.5342099,0.8446377999999999,0.5627347125,0.7040264999999999,0.5342099,0.6986649375,0.5627347125,0.8446377999999999,0.5627347125,0.6986649375,0.5627347125,0.692903125,0.5908523999999999,0.8446377999999999,0.5627347125,0.692903125,0.5908523999999999,0.8099888,0.6725830875,0.692903125,0.5908523999999999,0.6857991250000001,0.618673825,0.8099888,0.6725830875,0.6857991250000001,0.618673825,0.6774095,0.6461884999999999,0.8099888,0.6725830875,0.8099888,0.6725830875,0.66662155,0.6725830875,0.7480318749999999,0.800711625,0.8099888,0.6725830875,0.6774095,0.6461884999999999,0.66662155,0.6725830875,0.66662155,0.6725830875,0.652230375,0.6970854125,0.7480318749999999,0.800711625,0.652230375,0.6970854125,0.6349819999999999,0.719920125,0.7480318749999999,0.800711625,0.1492445583333334,0.2883909749999999,0.1433963791666667,0.4170092,0.28182385833333334,0.3866262,0.28182385833333334,0.3866262,0.1433963791666667,0.4170092,0.27597567916666665,0.4170092,0.2701275,0.446433525,0.1433963791666667,0.4170092,0.2711788125,0.475080675,0.2711788125,0.475080675,0.13754820000000006,0.5610828375,0.2733915,0.50383525,0.2733915,0.50383525,0.13754820000000006,0.5610828375,0.27736215000000003,0.53252975,0.27736215000000003,0.53252975,0.13754820000000006,0.5610828375,0.282695775,0.5610828375,0.282695775,0.5610828375,0.13754820000000006,0.5610828375,0.28838671250000003,0.58901565,0.28838671250000003,0.58901565,0.17050706250000003,0.6709578,0.29503317500000004,0.6170379625,0.29503317500000004,0.6170379625,0.17050706250000003,0.6709578,0.3030863625,0.64445225,0.3030863625,0.64445225,0.17050706250000003,0.6709578,0.3134811625,0.6709578,0.3134811625,0.6709578,0.23173370000000004,0.800711625,0.327658,0.6954898125,0.7480318749999999,0.800711625,0.615452575,0.7405493125,0.615452575,0.879498755,0.7480318749999999,0.800711625,0.6349819999999999,0.719920125,0.615452575,0.7405493125,0.615452575,0.7405493125,0.5944185000000001,0.7597992000000001,0.615452575,0.879498755,0.1433963791666667,0.4170092,0.13754820000000006,0.5610828375,0.2711788125,0.475080675,0.327658,0.6954898125,0.23173370000000004,0.800711625,0.3447950375,0.7185136249999999,0.3447950375,0.7185136249999999,0.23173370000000004,0.800711625,0.364313,0.738966,0.364313,0.738966,0.364313,0.8781166675000001,0.38528327500000004,0.7581624625000001,0.13754820000000006,0.5610828375,0.17050706250000003,0.6709578,0.28838671250000003,0.58901565,0.38528327500000004,0.7581624625000001,0.364313,0.8781166675000001,0.4080183375,0.7756525375,0.4080183375,0.7756525375,0.364313,0.8781166675000001,0.43323218750000003,0.78937325,0.8383426749999999,0.41762,0.8320475499999999,0.2883909749999999,0.6994682499999999,0.3861959125,0.67428775,0.33039097499999986,0.7120584999999999,0.13003558749999994,0.6287182250000001,0.3093909749999999,0.6287182250000001,0.3093909749999999,0.7120584999999999,0.13003558749999994,0.59301290625,0.3023909749999999,0.5578605625,0.2953909749999999,0.59301290625,0.04623064999999982,0.488189826866528,0.2883909749999999,0.615452575,0.879498755,0.5944185000000001,0.7597992000000001,0.57167145,0.777034625,0.615452575,0.879498755,0.57167145,0.777034625,0.54608605,0.79034725,0.615452575,0.879498755,0.54608605,0.79034725,0.5180748375,0.798073,0.2701275,0.1304658749999999,0.1492445583333334,0.2883909749999999,0.305216575,0.33039097499999986,0.305216575,0.33039097499999986,0.1492445583333334,0.2883909749999999,0.28182385833333334,0.3866262,0.2701275,0.1304658749999999,0.35056009374999997,0.3093909749999999,0.38542595,0.3023909749999999,0.2701275,0.1304658749999999,0.38542595,0.3023909749999999,0.4196925125,0.2953909749999999,0.4895560875,0.9031757550000001,0.5180748375,0.798073,0.488189826866528,0.800711625,0.4895560875,0.9031757550000001,0.615452575,0.879498755,0.5180748375,0.798073,0.4895560875,0.9031757550000001,0.488189826866528,0.800711625,0.46111278749999995,0.797688125,0.364313,0.8781166675000001,0.46111278749999995,0.797688125,0.43323218750000003,0.78937325,0.17050706250000003,0.6709578,0.23173370000000004,0.800711625,0.3134811625,0.6709578,0.23173370000000004,0.800711625,0.364313,0.8781166675000001,0.364313,0.738966,0.8320475499999999,0.2883909749999999,0.7120584999999999,0.13003558749999994,0.67428775,0.33039097499999986,0.38542595,0.04623064999999982,0.2701275,0.1304658749999999,0.4196925125,0.2953909749999999,0.364313,0.8781166675000001,0.4895560875,0.9031757550000001,0.46111278749999995,0.797688125,0.38542595,0.04623064999999982,0.4196925125,0.2953909749999999,0.488189826866528,0.2883909749999999,0.7120584999999999,0.13003558749999994,0.59301290625,0.04623064999999982,0.5578605625,0.2953909749999999,0.59301290625,0.04623064999999982,0.488446575,0.032230649999999805,0.488189826866528,0.2883909749999999,0.488446575,0.032230649999999805,0.38542595,0.04623064999999982,0.488189826866528,0.2883909749999999],a4=[-0.08,-0.05,-0.03,0x0,0x0,0.01,0.015,0.01,0.01,-0.01,-0.03,-0.05,-0.06],a5=[0x12,0xe,0x13,0xe,0xd,0x13,0xe,0x2,0xd,0xe,0x3,0x2,0x14,0x15,0xd,0xd,0x15,0x13,0x1,0x14,0xd,0xb,0xa,0x13,0x13,0xa,0x12,0x2,0x1,0xd,0x15,0xb,0x13,0xc,0xb,0x15,0x3,0x4,0x2,0xe,0x4,0x3,0xf,0x4,0xe,0xa,0x9,0x12,0x11,0xf,0xe,0x11,0xe,0x12,0x8,0x11,0x12,0x1,0xc,0x14,0x14,0xc,0x15,0x9,0x8,0x12,0x1,0x0,0xc,0xc,0x0,0xb,0x17,0xf,0x11,0x16,0x5,0xf,0xf,0x5,0x4,0x7,0x17,0x11,0x17,0x16,0xf,0x8,0x7,0x11,0x17,0x10,0x16,0x7,0x10,0x17,0x16,0x10,0x5,0x7,0x6,0x10,0x10,0x6,0x5],a6=[0.4994956625,0.614281425,0.49966255,0.60233525,0.46424221250000003,0.6089815000000001,0.49966255,0.60233525,0.465096475,0.5992760874999999,0.46424221250000003,0.6089815000000001,0.49966255,0.60233525,0.4818877,0.5826464124999999,0.465096475,0.5992760874999999,0.49966255,0.60233525,0.49910775,0.5864197875,0.4818877,0.5826464124999999,0.4479978375,0.5976933312499999,0.44757070625,0.6025460375,0.465096475,0.5992760874999999,0.465096475,0.5992760874999999,0.44757070625,0.6025460375,0.46424221250000003,0.6089815000000001,0.451843375,0.5873581250000001,0.4479978375,0.5976933312499999,0.465096475,0.5992760874999999,0.44207625,0.6199760875,0.46743702499999995,0.6409725000000001,0.46424221250000003,0.6089815000000001,0.46424221250000003,0.6089815000000001,0.46743702499999995,0.6409725000000001,0.4994956625,0.614281425,0.4818877,0.5826464124999999,0.451843375,0.5873581250000001,0.465096475,0.5992760874999999,0.44757070625,0.6025460375,0.44207625,0.6199760875,0.46424221250000003,0.6089815000000001,0.4308992,0.596110575,0.44207625,0.6199760875,0.44757070625,0.6025460375,0.49910775,0.5864197875,0.5163774999999999,0.5825469625,0.4818877,0.5826464124999999,0.49966255,0.60233525,0.5163774999999999,0.5825469625,0.49910775,0.5864197875,0.5342254625,0.5992902,0.5163774999999999,0.5825469625,0.49966255,0.60233525,0.46743702499999995,0.6409725000000001,0.4997823375,0.64841675,0.4994956625,0.614281425,0.535219575,0.609022,0.5342254625,0.5992902,0.49966255,0.60233525,0.535219575,0.609022,0.49966255,0.60233525,0.4994956625,0.614281425,0.53258415,0.64137075,0.535219575,0.609022,0.4994956625,0.614281425,0.451843375,0.5873581250000001,0.4308992,0.596110575,0.4479978375,0.5976933312499999,0.4479978375,0.5976933312499999,0.4308992,0.596110575,0.44757070625,0.6025460375,0.4997823375,0.64841675,0.53258415,0.64137075,0.4994956625,0.614281425,0.451843375,0.5873581250000001,0.422608125,0.5931778375,0.4308992,0.596110575,0.4308992,0.596110575,0.422608125,0.5931778375,0.44207625,0.6199760875,0.5518993,0.60231035625,0.5342254625,0.5992902,0.535219575,0.609022,0.55140224375,0.59744445625,0.546885375,0.5874255749999999,0.5342254625,0.5992902,0.5342254625,0.5992902,0.546885375,0.5874255749999999,0.5163774999999999,0.5825469625,0.5581709625,0.620002975,0.5518993,0.60231035625,0.535219575,0.609022,0.5518993,0.60231035625,0.55140224375,0.59744445625,0.5342254625,0.5992902,0.53258415,0.64137075,0.5581709625,0.620002975,0.535219575,0.609022,0.5518993,0.60231035625,0.568579025,0.5955987125,0.55140224375,0.59744445625,0.5581709625,0.620002975,0.568579025,0.5955987125,0.5518993,0.60231035625,0.55140224375,0.59744445625,0.568579025,0.5955987125,0.546885375,0.5874255749999999,0.5581709625,0.620002975,0.576995375,0.5925833125,0.568579025,0.5955987125,0.568579025,0.5955987125,0.576995375,0.5925833125,0.546885375,0.5874255749999999];},0x2700:(b,d,f)=>{f['d'](d,{'nH':()=>p,'pe':()=>q,'sN':()=>m});var g=f(0x1f15),h=f(0x1407),j=f(0x1adf);let k=new h['Y']();async function m(v){return new Promise((w,x)=>{var iO=a0b;let y=wx[iO(0x9ce)]();y[iO(0x48a)]({'path':v,'success':()=>{w(!0x0);},'fail':z=>{y['mkdir']({'dirPath':v,'success':()=>{w(!0x0);},'fail':A=>{w(!0x1);}});}});});}async function p(v){return new Promise((w,x)=>{var iP=a0b;wx[iP(0x9ce)]()['access']({'path':v,'success':()=>{w(!0x0);},'fail':y=>{w(!0x1);}});});}async function q(v,w){return new Promise(async(x,y)=>{var iQ=a0b;const z=wx[iQ(0x7bc)][iQ(0x393)]+'/ar',A=z+'/'+v+iQ(0x744);await m(z),await p(A)?x():async function(B,C){return new Promise(async(D,E)=>{var iR=a0b;let F=wx[iR(0x9ce)]();console[iR(0x45c)](iR(0x3cb),B,C);const G=B+'.bin',H=wx[iR(0x7bc)]['USER_DATA_PATH']+iR(0x445)+G;await p(H)?(console[iR(0x45c)](iR(0x8a7)),F[iR(0x50c)]({'filePath':H,'success':I=>{var iS=iR;D(I[iS(0x329)]);},'fail':I=>{var iT=iR;E({'code':j['U']['READ_FILE_CACHE_FAIL'],'message':g['Z']['t'](iT(0x6cd))}),console[iT(0x45c)]('read\x20file\x20cache\x20error',I);}})):(console[iR(0x45c)](iR(0x59d)),wx['request']({'url':C,'responseType':iR(0x6ce),'success':I=>{var iU=iR;const {data:J}=I;F[iU(0x29a)]({'filePath':H,'data':J,'encoding':'binary','success':K=>{D(J);},'fail':K=>{var iV=iU;let L={'code':j['U'][iV(0x39d)],'message':K[iV(0x7b3)]};K[iV(0x7b3)]['indexOf'](iV(0x84b))>-0x1&&(L[iV(0x939)]=g['Z']['t']('0012')),E(L),console[iV(0x45c)](iV(0x202),K);}});}}));});}(v,w)[iQ(0x1fe)](B=>{var iW=iQ;let C=wx[iW(0x9ce)](),D=new Uint8Array(B),E=D[iW(0x61d)],F=D['slice'](0x0,0x400),G=D[iW(0x859)](0x400,E);k['init']()[iW(0x1fe)](()=>{var iX=iW;let H=k['run'](F,'');k['finish']('');const I=new Uint8Array(E);I[iX(0x1e6)](H),I[iX(0x1e6)](G,H['length']);let J=z+'/'+v+iX(0x744);C[iX(0x29a)]({'filePath':J,'data':I[iX(0x624)],'encoding':iX(0x583),'success':K=>{x(J);},'fail':K=>{var iY=iX;console[iY(0x45c)](iY(0x17b),K);let L={'code':j['U'][iY(0x39d)],'message':K[iY(0x7b3)]};K[iY(0x7b3)]['indexOf'](iY(0x84b))>-0x1&&(L[iY(0x939)]=g['Z']['t'](iY(0x282))),y(L);}});});})[iQ(0x2ec)](B=>{var iZ=iQ;y({'msg':iZ(0x5b2),'zip':v,'error':B});});});}},0x170d:function(b,d,f){var g,h;!function(j){var j0=a0b,k,m={};m[j0(0x3f2)]=j0(0x26f);var q={},v=function(B,C){return function(){var j1=a0b;return C[j1(0x1ea)](B,arguments);};},w=function(){var j2=j0,B,C,D=arguments,E=D[0x0];for(C=0x1;C<D['length'];C++)for(B in D[C])!(B in E)&&D[C][j2(0x708)](B)&&(E[B]=D[C][B]);return E;},x=function(B,C){return{'value':B,'name':C};};m[j0(0x516)]=x(0x1,j0(0x516)),m[j0(0x70b)]=x(0x2,j0(0x70b)),m[j0(0x3e5)]=x(0x3,j0(0x3e5)),m[j0(0x8c9)]=x(0x4,j0(0x8c9)),m[j0(0x1c0)]=x(0x5,j0(0x1c0)),m[j0(0x6ad)]=x(0x8,j0(0x6ad)),m[j0(0x44b)]=x(0x63,j0(0x44b));var y=function(B){var j3=j0;this[j3(0x78a)]=B,this[j3(0x307)](B[j3(0x30e)]),this['log']=this[j3(0x860)];};y[j0(0x6cb)]={'setLevel':function(B){var j4=j0;B&&'value'in B&&(this[j4(0x78a)][j4(0x30e)]=B);},'getLevel':function(){var j5=j0;return this[j5(0x78a)][j5(0x30e)];},'enabledFor':function(B){var j6=j0,C=this['context'][j6(0x30e)];return B['value']>=C[j6(0x9e0)];},'trace':function(){var j7=j0;this[j7(0x192)](m[j7(0x516)],arguments);},'debug':function(){var j8=j0;this[j8(0x192)](m[j8(0x70b)],arguments);},'info':function(){this['invoke'](m['INFO'],arguments);},'warn':function(){var j9=j0;this[j9(0x192)](m['WARN'],arguments);},'error':function(){var ja=j0;this[ja(0x192)](m['ERROR'],arguments);},'time':function(B){var jb=j0;jb(0x4f5)==typeof B&&B[jb(0x61d)]>0x0&&this[jb(0x192)](m[jb(0x8c9)],[B,jb(0x1f8)]);},'timeEnd':function(B){var jc=j0;jc(0x4f5)==typeof B&&B[jc(0x61d)]>0x0&&this['invoke'](m[jc(0x8c9)],[B,jc(0x57a)]);},'invoke':function(B,C){var jd=j0;k&&this[jd(0x9d4)](B)&&k(C,w({'level':B},this[jd(0x78a)]));}};var z,A=new y({'filterLevel':m[j0(0x44b)]});(z=m)['enabledFor']=v(A,A[j0(0x9d4)]),z[j0(0x760)]=v(A,A[j0(0x760)]),z[j0(0x78f)]=v(A,A[j0(0x78f)]),z['time']=v(A,A[j0(0x176)]),z[j0(0x501)]=v(A,A[j0(0x501)]),z['info']=v(A,A[j0(0x860)]),z['warn']=v(A,A[j0(0x5b7)]),z[j0(0x6ec)]=v(A,A[j0(0x6ec)]),z['log']=z[j0(0x860)],m[j0(0x278)]=function(B){k=B;},m['setLevel']=function(B){var je=j0;for(var C in(A[je(0x307)](B),q))q[je(0x708)](C)&&q[C][je(0x307)](B);},m['getLevel']=function(){var jf=j0;return A[jf(0x511)]();},m[j0(0x298)]=function(B){var jg=j0;return q[B]||(q[B]=new y(w({'name':B},A[jg(0x78a)])));},m['createDefaultHandler']=function(B){var jh=j0;(B=B||{})['formatter']=B[jh(0x5e9)]||function(E,F){var ji=jh;F[ji(0x95c)]&&E[ji(0x3dc)]('['+F[ji(0x95c)]+']');};var C={},D=function(E,F){var jj=jh;Function[jj(0x6cb)]['apply']['call'](E,console,F);};return'undefined'==typeof console?function(){}:function(E,F){var jk=jh;E=Array['prototype'][jk(0x859)]['call'](E);var G,H=console[jk(0x45c)];F[jk(0x720)]===m[jk(0x8c9)]?(G=(F['name']?'['+F['name']+']\x20':'')+E[0x0],jk(0x1f8)===E[0x1]?console[jk(0x176)]?console[jk(0x176)](G):C[G]=new Date()['getTime']():console[jk(0x501)]?console['timeEnd'](G):D(H,[G+':\x20'+(new Date()[jk(0x4bd)]()-C[G])+'ms'])):(F[jk(0x720)]===m[jk(0x1c0)]&&console[jk(0x5b7)]?H=console[jk(0x5b7)]:F['level']===m[jk(0x6ad)]&&console[jk(0x6ec)]?H=console[jk(0x6ec)]:F[jk(0x720)]===m[jk(0x3e5)]&&console['info']?H=console[jk(0x860)]:F[jk(0x720)]===m[jk(0x70b)]&&console[jk(0x78f)]?H=console[jk(0x78f)]:F[jk(0x720)]===m[jk(0x516)]&&console['trace']&&(H=console[jk(0x760)]),B[jk(0x5e9)](E,F),D(H,E));};},m[j0(0x839)]=function(B){var jl=j0;m[jl(0x307)](B&&B['defaultLevel']||m[jl(0x70b)]),m[jl(0x278)](m[jl(0x5fd)](B));},m['setDefaults']=m['useDefaults'],void 0x0===(h='function'==typeof(g=m)?g[j0(0x6ca)](d,f,d,b):g)||(b['exports']=h);}();},0xc35:(a0,a1,a2)=>{var jo=a0b;a2['d'](a1,{'LE':()=>aS});var a3=a2(0x2353),a4=a2(0x1deb),a5=a2(0x89a),a6=a2(0x765),a7=a2(0x207),a8=a2(0x810),a9=a2(0x1fcd),aa=a2(0x18c4),ab=a2(0x7a9),ac=a2(0xaea);a2(0x12a7);class ad extends a3['Geometry']{constructor(bc=!0x1){var jm=a0b;super(),this['_buffer']=new a3[(jm(0x694))](null,bc,!0x1),this['_indexBuffer']=new a3[(jm(0x694))](null,bc,!0x0),this[jm(0x600)](jm(0x86c),this[jm(0x215)],0x3,!0x1,a4['vK'][jm(0x71f)])[jm(0x600)](jm(0x248),this[jm(0x215)],0x2,!0x1,a4['vK']['FLOAT'])['addAttribute']('aColor',this[jm(0x215)],0x4,!0x0,a4['vK'][jm(0x450)])[jm(0x600)](jm(0x4c2),this[jm(0x215)],0x1,!0x0,a4['vK'][jm(0x71f)])['addIndex'](this[jm(0x2ef)]);}}class ae{constructor(bc,bd=!0x0){var jn=a0b;ae[jn(0x6cb)][jn(0x4b8)][jn(0x6ca)](this),this[jn(0x1b9)]=bc,bd&&(this[jn(0x7df)]=!0x0),this[jn(0x1b9)][jn(0x7a6)]=this;}[jo(0x4b8)](){var jp=jo;this[jp(0x776)]=!0x1;}get[jo(0x7df)](){var jq=jo;return this[jq(0x776)];}set[jo(0x7df)](bc){this['_enabled']=bc;}['clear'](){}}var af,ag;function ah(bc){var jr=jo;const bd=this[jr(0x7a6)],be=this,bf=bc[jr(0x5dc)],bg=be[jr(0x9ca)],bh=bd[jr(0x350)]&&bd['affine']>=0x2;be[jr(0x7f7)]!==be[jr(0x56d)]&&(bh?(bg['a']=be[jr(0x2f8)],bg['b']=be[jr(0x51f)],bg['c']=be['_cy'],bg['d']=be['_sy'],bg['tx']=be[jr(0x784)]['_x'],bg['ty']=be['position']['_y']):(bg['a']=be[jr(0x2f8)]*be[jr(0x806)]['_x'],bg['b']=be['_sx']*be[jr(0x806)]['_x'],bg['c']=be['_cy']*be[jr(0x806)]['_y'],bg['d']=be[jr(0x59c)]*be[jr(0x806)]['_y'],bg['tx']=be[jr(0x784)]['_x']-(be[jr(0x575)]['_x']*bg['a']+be[jr(0x575)]['_y']*bg['c']),bg['ty']=be[jr(0x784)]['_y']-(be[jr(0x575)]['_x']*bg['b']+be[jr(0x575)]['_y']*bg['d'])),be[jr(0x56d)]=be['_localID'],bd[jr(0x559)]=-0x1);const bi=bd[jr(0x178)];if(bd[jr(0x559)]!==bi&&(bd[jr(0x559)]=bi,bd[jr(0x407)](bg),be[jr(0x727)]=-0x1),be['_parentID']!==bf){const bj=bc[jr(0x7a6)];bj&&!bj[jr(0x8b2)]?bd[jr(0x504)][jr(0x916)](bj[jr(0x504)],bd['local']):bd[jr(0x504)][jr(0x546)](bc[jr(0x607)],bd[jr(0x689)]);const bk=be[jr(0x607)];bd[jr(0x504)][jr(0x63b)](bk,bd[jr(0x8b2)],bd[jr(0x4ac)]),bh&&(bk['a']*=be['scale']['_x'],bk['b']*=be['scale']['_x'],bk['c']*=be[jr(0x806)]['_y'],bk['d']*=be[jr(0x806)]['_y'],bk['tx']-=be['pivot']['_x']*bk['a']+be['pivot']['_y']*bk['c'],bk['ty']-=be[jr(0x575)]['_x']*bk['b']+be[jr(0x575)]['_y']*bk['d']),be[jr(0x727)]=bf,be[jr(0x5dc)]++;}}!function(bc){var js=jo;bc[bc[js(0x710)]=0x0]='NONE',bc[bc['BEFORE_PROJ']=0x4]=js(0x601),bc[bc[js(0x69d)]=0x5]=js(0x69d),bc[bc[js(0x553)]=0x9]='ALL';}(af||(af={})),function(bc){var jt=jo;bc[bc[jt(0x710)]=0x0]=jt(0x710),bc[bc[jt(0x8ff)]=0x1]=jt(0x8ff),bc[bc['AXIS_X']=0x2]=jt(0x66c),bc[bc[jt(0x45a)]=0x3]=jt(0x45a),bc[bc['POINT']=0x4]=jt(0x960),bc[bc[jt(0x740)]=0x5]=jt(0x740);}(ag||(ag={}));class ai extends ae{constructor(...bc){var ju=jo;super(...bc),ai[ju(0x6cb)][ju(0x4b8)][ju(0x6ca)](this),ai[ju(0x6cb)]['__init2'][ju(0x6ca)](this),ai['prototype'][ju(0x170)][ju(0x6ca)](this),ai[ju(0x6cb)]['__init4'][ju(0x6ca)](this),ai[ju(0x6cb)]['__init5']['call'](this);}[jo(0x407)](bc){}[jo(0x4b8)](){var jv=jo;this[jv(0x178)]=0x0;}[jo(0x71b)](){var jw=jo;this[jw(0x559)]=-0x1;}['__init3'](){var jx=jo;this[jx(0x8b2)]=ag[jx(0x710)];}[jo(0x418)](){var jy=jo;this[jy(0x4ac)]=!0x1;}[jo(0x855)](){var jz=jo;this[jz(0x350)]=!0x0;}set[jo(0x51a)](bc){var jA=jo;this[jA(0x8b2)]!==bc&&(this['_affine']=bc,this[jA(0x559)]=-0x1,this[jA(0x1b9)]['_currentLocalID']=-0x1);}get[jo(0x51a)](){return this['_affine'];}set[jo(0x7df)](bc){var jB=jo;bc!==this[jB(0x776)]&&(this[jB(0x776)]=bc,bc?(this['legacy'][jB(0x74a)]=ah,this[jB(0x1b9)][jB(0x727)]=-0x1):(this[jB(0x1b9)][jB(0x74a)]=a6['wx'][jB(0x6cb)][jB(0x74a)],this[jB(0x1b9)][jB(0x727)]=-0x1));}[jo(0x263)](){var jC=jo;this[jC(0x559)]=-0x1,this[jC(0x178)]=0x0;}}class aj extends a3[jo(0x31e)]{constructor(...bc){var jD=jo;super(...bc),aj[jD(0x6cb)][jD(0x4b8)][jD(0x6ca)](this),aj['prototype']['__init2'][jD(0x6ca)](this);}[jo(0x4b8)](){this['forceMaxTextures']=0x0;}[jo(0x57d)](bc){var jE=jo;return this[jE(0x26a)];}['syncUniforms'](bc){var jF=jo;if(!bc)return;const bd=this[jF(0x284)];for(const be in bc)bd[jF(0xa2a)][be]=bc[be];}[jo(0x71b)](){var jG=jo;this[jG(0x26a)]={};}[jo(0x41a)](bc,bd,be){var jH=jo;const bf=this,{_bufferedElements:bg,_attributeBuffer:bh,_indexBuffer:bi,vertexSize:bj}=this,bk=a3['AbstractBatchRenderer'][jH(0x8cd)];let bl=this[jH(0x4d4)],bm=this[jH(0x4e1)],bn=this['_iIndex'],bo=bk[bl];bo[jH(0x1f8)]=this[jH(0x714)],bo[jH(0x778)]=bc;for(let bp=bd;bp<be;++bp){const bq=bg[bp],br=bq[jH(0x473)][jH(0x41f)],bs=a5[jH(0x8ca)][br[jH(0x45f)]?0x1:0x0][bq[jH(0x3e6)]],bt=this[jH(0x57d)](bq);bg[bp]=null,bd<bp&&(bo[jH(0x722)]!==bs||bo['uniforms']!==bt)&&(bo[jH(0x1b2)]=bn-bo[jH(0x1f8)],bd=bp,bo=bk[++bl],bo['texArray']=bc,bo[jH(0x1f8)]=bn),this[jH(0x3e1)](bq,bh,bi,bm,bn),bm+=bq[jH(0x826)]['length']/0x2*bj,bn+=bq[jH(0xa00)][jH(0x61d)],bo['blend']=bs,bo[jH(0xa2a)]=bt;}bd<be&&(bo[jH(0x1b2)]=bn-bo[jH(0x1f8)],++bl),bf[jH(0x4d4)]=bl,bf[jH(0x4e1)]=bm,bf[jH(0x714)]=bn;}[jo(0x844)](){var jI=jo;const bc=this[jI(0x4d4)],{gl:bd,state:be,shader:bf}=this['renderer'],bg=a3[jI(0x31e)][jI(0x8cd)];let bh=null,bi=null;for(let bj=0x0;bj<bc;bj++){const {texArray:bk,type:bl,size:bm,start:bn,blend:bo,uniforms:bp}=bg[bj];bi!==bk&&(bi=bk,this['bindAndClearTexArray'](bk)),bh!==bp&&(bh=bp,this[jI(0x2af)](bp),bf[jI(0x340)](this[jI(0x284)][jI(0x4c1)])),this['state'][jI(0x3e6)]=bo,be[jI(0x1e6)](this[jI(0x75f)]),bd['drawElements'](bl,bm,bd[jI(0x193)],0x2*bn);}}['contextChange'](){var jJ=jo;if(!this[jJ(0x987)])return super['contextChange'](),void this[jJ(0x2af)](this[jJ(0x26a)]);const bc=this;bc[jJ(0x1f2)]=this[jJ(0x987)],this[jJ(0x284)]=bc[jJ(0x29b)]['generateShader'](this[jJ(0x1f2)]),this[jJ(0x2af)](this[jJ(0x26a)]);for(let bd=0x0;bd<bc[jJ(0x99a)];bd++)bc[jJ(0x40d)][bd]=new this[(jJ(0x18a))]();this['initFlushBuffers']();}}a3[jo(0x3ca)][jo(0x6c7)](jo(0x408),class{static[jo(0x7da)](bc){var jK=jo;const {vertex:bd,fragment:be,vertexSize:bf,geometryClass:bg}=Object[jK(0x5e8)]({'vertex':jK(0x22c),'fragment':'\x0avarying\x20vec2\x20vTextureCoord;\x0avarying\x20vec4\x20vColor;\x0avarying\x20float\x20vTextureId;\x0auniform\x20sampler2D\x20uSamplers[%count%];\x0a\x0avoid\x20main(void){\x0avec4\x20color;\x0a%forloop%\x0agl_FragColor\x20=\x20color\x20*\x20vColor;\x0a}','geometryClass':ad,'vertexSize':0x7},bc);return class extends a3[jK(0x31e)]{constructor(bh){var jL=jK;super(bh),this[jL(0x29b)]=new a3[(jL(0x7b9))](bd,be),this['geometryClass']=bg,this[jL(0x349)]=bf;}[jK(0x3e1)](bh,bi,bj,bk,bl){var jM=jK;const {uint32View:bm,float32View:bn}=bi,bo=bk/this[jM(0x349)],bp=bh[jM(0x8c6)],bq=bh['indices'],br=bh[jM(0x826)],bs=bh['vertexData2d'],bt=bh[jM(0x473)][jM(0x41f)][jM(0x73b)],bu=Math[jM(0x2d8)](bh[jM(0x392)],0x1),bv=bu<0x1&&bh[jM(0x473)]['baseTexture']['alphaMode']?(0x0,a5['premultiplyTint'])(bh[jM(0x736)],bu):bh[jM(0x736)]+(0xff*bu<<0x18);if(bs){let bw=0x0;for(let bx=0x0;bx<bs[jM(0x61d)];bx+=0x3,bw+=0x2)bn[bk++]=bs[bx],bn[bk++]=bs[bx+0x1],bn[bk++]=bs[bx+0x2],bn[bk++]=bp[bw],bn[bk++]=bp[bw+0x1],bm[bk++]=bv,bn[bk++]=bt;}else{for(let by=0x0;by<br[jM(0x61d)];by+=0x2)bn[bk++]=br[by],bn[bk++]=br[by+0x1],bn[bk++]=0x1,bn[bk++]=bp[by],bn[bk++]=bp[by+0x1],bm[bk++]=bv,bn[bk++]=bt;}for(let bz=0x0;bz<bq['length'];bz++)bj[bl++]=bo+bq[bz];}};}}[jo(0x7da)]({}));const ak=[0x1,0x0,0x0,0x0,0x1,0x0,0x0,0x0,0x1];class al{static[jo(0x18e)](){var jN=jo;this[jN(0x9e6)]=new al();}static[jo(0x6f0)](){this['TEMP_MATRIX']=new al();}[jo(0x4b8)](){var jO=jo;this[jO(0x683)]=null;}constructor(bc){var jP=jo;al[jP(0x6cb)]['__init']['call'](this),this['mat3']=new Float64Array(bc||ak);}get['a'](){var jQ=jo;return this[jQ(0x721)][0x0]/this[jQ(0x721)][0x8];}set['a'](bc){var jR=jo;this[jR(0x721)][0x0]=bc*this[jR(0x721)][0x8];}get['b'](){var jS=jo;return this[jS(0x721)][0x1]/this[jS(0x721)][0x8];}set['b'](bc){var jT=jo;this[jT(0x721)][0x1]=bc*this[jT(0x721)][0x8];}get['c'](){var jU=jo;return this[jU(0x721)][0x3]/this[jU(0x721)][0x8];}set['c'](bc){var jV=jo;this[jV(0x721)][0x3]=bc*this[jV(0x721)][0x8];}get['d'](){var jW=jo;return this[jW(0x721)][0x4]/this[jW(0x721)][0x8];}set['d'](bc){var jX=jo;this[jX(0x721)][0x4]=bc*this['mat3'][0x8];}get['tx'](){var jY=jo;return this['mat3'][0x6]/this[jY(0x721)][0x8];}set['tx'](bc){var jZ=jo;this[jZ(0x721)][0x6]=bc*this[jZ(0x721)][0x8];}get['ty'](){var k0=jo;return this[k0(0x721)][0x7]/this['mat3'][0x8];}set['ty'](bc){var k1=jo;this[k1(0x721)][0x7]=bc*this[k1(0x721)][0x8];}[jo(0x1e6)](bc,bd,be,bf,bg,bh){var k2=jo;const bi=this[k2(0x721)];return bi[0x0]=bc,bi[0x1]=bd,bi[0x2]=0x0,bi[0x3]=be,bi[0x4]=bf,bi[0x5]=0x0,bi[0x6]=bg,bi[0x7]=bh,bi[0x8]=0x1,this;}['toArray'](bc,bd){var k3=jo;this['floatArray']||(this[k3(0x683)]=new Float32Array(0x9));const be=bd||this[k3(0x683)],bf=this[k3(0x721)];return bc?(be[0x0]=bf[0x0],be[0x1]=bf[0x1],be[0x2]=bf[0x2],be[0x3]=bf[0x3],be[0x4]=bf[0x4],be[0x5]=bf[0x5],be[0x6]=bf[0x6],be[0x7]=bf[0x7],be[0x8]=bf[0x8]):(be[0x0]=bf[0x0],be[0x1]=bf[0x3],be[0x2]=bf[0x6],be[0x3]=bf[0x1],be[0x4]=bf[0x4],be[0x5]=bf[0x7],be[0x6]=bf[0x2],be[0x7]=bf[0x5],be[0x8]=bf[0x8]),be;}[jo(0x1ea)](bc,bd){var k4=jo;bd=bd||new a6['E9']();const be=this[k4(0x721)],bf=bc['x'],bg=bc['y'],bh=0x1/(be[0x2]*bf+be[0x5]*bg+be[0x8]);return bd['x']=bh*(be[0x0]*bf+be[0x3]*bg+be[0x6]),bd['y']=bh*(be[0x1]*bf+be[0x4]*bg+be[0x7]),bd;}[jo(0x358)](bc,bd){var k5=jo;const be=this[k5(0x721)];return be[0x0]+=bc*be[0x2],be[0x1]+=bd*be[0x2],be[0x3]+=bc*be[0x5],be[0x4]+=bd*be[0x5],be[0x6]+=bc*be[0x8],be[0x7]+=bd*be[0x8],this;}[jo(0x806)](bc,bd){var k6=jo;const be=this[k6(0x721)];return be[0x0]*=bc,be[0x1]*=bd,be[0x3]*=bc,be[0x4]*=bd,be[0x6]*=bc,be[0x7]*=bd,this;}[jo(0x613)](bc,bd,be,bf){var k7=jo;const bg=this[k7(0x721)];bg[0x0]=bc*bg[0x0]+be*bg[0x2],bg[0x1]=bd*bg[0x1]+bf*bg[0x2],bg[0x3]=bc*bg[0x3]+be*bg[0x5],bg[0x4]=bd*bg[0x4]+bf*bg[0x5],bg[0x6]=bc*bg[0x6]+be*bg[0x8],bg[0x7]=bd*bg[0x7]+bf*bg[0x8];}[jo(0x177)](bc,bd){var k8=jo;bd=bd||new a6['E9']();const be=this[k8(0x721)],bf=bc['x'],bg=bc['y'],bh=be[0x0],bi=be[0x3],bj=be[0x6],bk=be[0x1],bl=be[0x4],bm=be[0x7],bn=be[0x2],bo=be[0x5],bp=be[0x8],bq=(bp*bl-bm*bo)*bf+(-bp*bi+bj*bo)*bg+(bm*bi-bj*bl),br=(-bp*bk+bm*bn)*bf+(bp*bh-bj*bn)*bg+(-bm*bh+bj*bk),bs=(bo*bk-bl*bn)*bf+(-bo*bh+bi*bn)*bg+(bl*bh-bi*bk);return bd['x']=bq/bs,bd['y']=br/bs,bd;}[jo(0x947)](){var k9=jo;const bc=this[k9(0x721)],bd=bc[0x0],be=bc[0x1],bf=bc[0x2],bg=bc[0x3],bh=bc[0x4],bi=bc[0x5],bj=bc[0x6],bk=bc[0x7],bl=bc[0x8],bm=bl*bh-bi*bk,bn=-bl*bg+bi*bj,bo=bk*bg-bh*bj;let bp=bd*bm+be*bn+bf*bo;return bp?(bp=0x1/bp,bc[0x0]=bm*bp,bc[0x1]=(-bl*be+bf*bk)*bp,bc[0x2]=(bi*be-bf*bh)*bp,bc[0x3]=bn*bp,bc[0x4]=(bl*bd-bf*bj)*bp,bc[0x5]=(-bi*bd+bf*bg)*bp,bc[0x6]=bo*bp,bc[0x7]=(-bk*bd+be*bj)*bp,bc[0x8]=(bh*bd-be*bg)*bp,this):this;}[jo(0x75a)](){const bc=this['mat3'];return bc[0x0]=0x1,bc[0x1]=0x0,bc[0x2]=0x0,bc[0x3]=0x0,bc[0x4]=0x1,bc[0x5]=0x0,bc[0x6]=0x0,bc[0x7]=0x0,bc[0x8]=0x1,this;}[jo(0xa15)](){var ka=jo;return new al(this[ka(0x721)]);}[jo(0x20d)](bc){var kb=jo;const bd=this['mat3'],be=bc[kb(0x721)];return be[0x0]=bd[0x0],be[0x1]=bd[0x1],be[0x2]=bd[0x2],be[0x3]=bd[0x3],be[0x4]=bd[0x4],be[0x5]=bd[0x5],be[0x6]=bd[0x6],be[0x7]=bd[0x7],be[0x8]=bd[0x8],bc;}[jo(0x63b)](bc,bd,be){var kc=jo;const bf=this['mat3'],bg=0x1/bf[0x8],bh=bf[0x6]*bg,bi=bf[0x7]*bg;if(bc['a']=(bf[0x0]-bf[0x2]*bh)*bg,bc['b']=(bf[0x1]-bf[0x2]*bi)*bg,bc['c']=(bf[0x3]-bf[0x5]*bh)*bg,bc['d']=(bf[0x4]-bf[0x5]*bi)*bg,bc['tx']=bh,bc['ty']=bi,bd>=0x2){let bj=bc['a']*bc['d']-bc['b']*bc['c'];be||(bj=Math['abs'](bj)),bd===ag[kc(0x960)]?(bj=bj>0x0?0x1:-0x1,bc['a']=bj,bc['b']=0x0,bc['c']=0x0,bc['d']=bj):bd===ag[kc(0x66c)]?(bj/=Math['sqrt'](bc['b']*bc['b']+bc['d']*bc['d']),bc['c']=0x0,bc['d']=bj):bd===ag[kc(0x45a)]?(bj/=Math[kc(0x43c)](bc['a']*bc['a']+bc['c']*bc['c']),bc['a']=bj,bc['c']=0x0):bd===ag[kc(0x740)]&&(bc['a']=bc['d']*bj,bc['c']=-bc['b']*bj);}return bc;}[jo(0x5dd)](bc){const bd=this['mat3'];return bd[0x0]=bc['a'],bd[0x1]=bc['b'],bd[0x2]=0x0,bd[0x3]=bc['c'],bd[0x4]=bc['d'],bd[0x5]=0x0,bd[0x6]=bc['tx'],bd[0x7]=bc['ty'],bd[0x8]=0x1,this;}[jo(0x546)](bc,bd){var kd=jo;const be=this[kd(0x721)],bf=bd[kd(0x721)],bg=bc['a'],bh=bc['b'],bi=bc['c'],bj=bc['d'],bk=bc['tx'],bl=bc['ty'],bm=bf[0x0],bn=bf[0x1],bo=bf[0x2],bp=bf[0x3],bq=bf[0x4],br=bf[0x5],bs=bf[0x6],bt=bf[0x7],bu=bf[0x8];return be[0x0]=bm*bg+bn*bi+bo*bk,be[0x1]=bm*bh+bn*bj+bo*bl,be[0x2]=bo,be[0x3]=bp*bg+bq*bi+br*bk,be[0x4]=bp*bh+bq*bj+br*bl,be[0x5]=br,be[0x6]=bs*bg+bt*bi+bu*bk,be[0x7]=bs*bh+bt*bj+bu*bl,be[0x8]=bu,this;}[jo(0x2e7)](bc,bd){var ke=jo;const be=this[ke(0x721)],bf=bc[ke(0x721)],bg=bf[0x0],bh=bf[0x1],bi=bf[0x2],bj=bf[0x3],bk=bf[0x4],bl=bf[0x5],bm=bf[0x6],bn=bf[0x7],bo=bf[0x8],bp=bd['a'],bq=bd['b'],br=bd['c'],bs=bd['d'],bt=bd['tx'],bu=bd['ty'];return be[0x0]=bp*bg+bq*bj,be[0x1]=bp*bh+bq*bk,be[0x2]=bp*bi+bq*bl,be[0x3]=br*bg+bs*bj,be[0x4]=br*bh+bs*bk,be[0x5]=br*bi+bs*bl,be[0x6]=bt*bg+bu*bj+bm,be[0x7]=bt*bh+bu*bk+bn,be[0x8]=bt*bi+bu*bl+bo,this;}[jo(0x916)](bc,bd){var kf=jo;const be=this['mat3'],bf=bc['mat3'],bg=bd[kf(0x721)],bh=bf[0x0],bi=bf[0x1],bj=bf[0x2],bk=bf[0x3],bl=bf[0x4],bm=bf[0x5],bn=bf[0x6],bo=bf[0x7],bp=bf[0x8],bq=bg[0x0],br=bg[0x1],bs=bg[0x2],bt=bg[0x3],bu=bg[0x4],bv=bg[0x5],bw=bg[0x6],bx=bg[0x7],by=bg[0x8];return be[0x0]=bq*bh+br*bk+bs*bn,be[0x1]=bq*bi+br*bl+bs*bo,be[0x2]=bq*bj+br*bm+bs*bp,be[0x3]=bt*bh+bu*bk+bv*bn,be[0x4]=bt*bi+bu*bl+bv*bo,be[0x5]=bt*bj+bu*bm+bv*bp,be[0x6]=bw*bh+bx*bk+by*bn,be[0x7]=bw*bi+bx*bl+by*bo,be[0x8]=bw*bj+bx*bm+by*bp,this;}[jo(0x245)](bc){var kg=jo;return bc[kg(0x721)]?this['setToMult'](bc,this):this[kg(0x546)](bc,this);}}al[jo(0x18e)](),al[jo(0x6f0)]();const am=jo(0x1ed),an=new al();class ao extends a3[jo(0x29e)]{constructor(bc){var kh=jo;super(bc),ao[kh(0x6cb)][kh(0x4b8)]['call'](this);const bd={'globals':this[kh(0x3a1)]['globalUniforms']};this['shader']=a3[kh(0x918)]['from'](am,kh(0x447),bd),this[kh(0x786)]=a3['Shader'][kh(0x1d4)](am,kh(0x35f),bd);}[jo(0x4b8)](){var ki=jo;this[ki(0x343)]=new a3[(ki(0x3e4))]();}[jo(0x5bb)](bc){var kj=jo;const bd=this[kj(0x3a1)],be=this[kj(0x343)];let bf=be['vertices'];bf[0x0]=bf[0x6]=bc[kj(0x802)]*-bc[kj(0x9eb)]['x'],bf[0x1]=bf[0x3]=bc[kj(0x6bf)]*-bc[kj(0x9eb)]['y'],bf[0x2]=bf[0x4]=bc[kj(0x802)]*(0x1-bc[kj(0x9eb)]['x']),bf[0x5]=bf[0x7]=bc[kj(0x6bf)]*(0x1-bc['anchor']['y']),bc[kj(0x4ce)]&&(bf=be[kj(0x8c6)],bf[0x0]=bf[0x6]=-bc[kj(0x9eb)]['x'],bf[0x1]=bf[0x3]=-bc[kj(0x9eb)]['y'],bf[0x2]=bf[0x4]=0x1-bc['anchor']['x'],bf[0x5]=bf[0x7]=0x1-bc[kj(0x9eb)]['y']),be[kj(0x18f)]();const bg=bc[kj(0x473)],bh=bg['baseTexture'],bi=bc[kj(0x198)]['world'],bj=bc[kj(0x2f7)];let bk=bh['isPowerOfTwo']&&bg['frame'][kj(0x5fb)]===bh[kj(0x5fb)]&&bg[kj(0x739)][kj(0x8ec)]===bh['height'];bk&&(bh['_glTextures'][bd[kj(0x92c)]]?bk=bh['wrapMode']!==a4['Nt'][kj(0x86d)]:bh['wrapMode']===a4['Nt']['CLAMP']&&(bh['wrapMode']=a4['Nt'][kj(0x53a)]));const bl=bk?this[kj(0x786)]:this['shader'];an[kj(0x75a)](),an['scale'](bg[kj(0x5fb)],bg[kj(0x8ec)]),an[kj(0x245)](bi),an[kj(0x806)](0x1/bc[kj(0x802)],0x1/bc[kj(0x6bf)]),an['invert'](),bk?an[kj(0x245)](bj['mapCoord']):(bl[kj(0xa2a)][kj(0x9f3)]=bj[kj(0x480)]['toArray'](!0x0),bl['uniforms'][kj(0x4d8)]=bj[kj(0x4d8)],bl['uniforms'][kj(0x7cf)]=bj[kj(0x7cf)]),bl[kj(0xa2a)]['uTransform']=an[kj(0x1b8)](!0x0),bl['uniforms'][kj(0x8c3)]=(0x0,a5[kj(0x351)])(bc[kj(0x938)],bc[kj(0x392)],bl[kj(0xa2a)][kj(0x8c3)],bh['premultiplyAlpha']),bl['uniforms'][kj(0x4a0)]=bc['worldTransform'][kj(0x1b8)](!0x0),bl['uniforms']['uSampler']=bg,bd['shader'][kj(0xa0c)](bl,!0x1),bd['geometry'][kj(0xa0c)](be,void 0x0),bd[kj(0x75f)][kj(0x364)]((0x0,a5[kj(0x994)])(bc[kj(0x3e6)],bh[kj(0x98c)])),bd[kj(0x54d)][kj(0x63c)](a4['lg'][kj(0x8b0)],0x6,0x0);}}const ap=new a6['E9'](),aq=[new a6['E9'](),new a6['E9'](),new a6['E9'](),new a6['E9']()],ar=new a6['Ae'](),as=new al();class au extends ai{constructor(bc,bd){var kk=jo;super(bc,bd),au[kk(0x6cb)][kk(0x4b8)][kk(0x6ca)](this),au['prototype'][kk(0x71b)][kk(0x6ca)](this),au['prototype']['__init3'][kk(0x6ca)](this),this[kk(0x689)]=new al(),this[kk(0x504)]=new al();}['__init'](){var kl=jo;this[kl(0x23a)]=new al();}[jo(0x71b)](){this['pivot']=new a6['AB'](this['onChange'],this,0x0,0x0);}[jo(0x170)](){var km=jo;this[km(0x331)]=!0x1;}['onChange'](){var kn=jo;const bc=this[kn(0x575)],bd=this['matrix'][kn(0x721)];bd[0x6]=-(bc['_x']*bd[0x0]+bc['_y']*bd[0x3]),bd[0x7]=-(bc['_x']*bd[0x1]+bc['_y']*bd[0x4]),this[kn(0x178)]++;}[jo(0x899)](bc,bd=0x1){var ko=jo;const be=bc['x'],bf=bc['y'],bg=Math[ko(0x43c)](be*be+bf*bf),bh=this[ko(0x23a)]['mat3'];bh[0x0]=be/bg,bh[0x1]=bf/bg,bh[0x2]=bd/bg,this[ko(0x261)]();}[jo(0x8f3)](bc,bd=0x1){var kp=jo;const be=bc['x'],bf=bc['y'],bg=Math['sqrt'](be*be+bf*bf),bh=this[kp(0x23a)][kp(0x721)];bh[0x3]=be/bg,bh[0x4]=bf/bg,bh[0x5]=bd/bg,this['onChange']();}[jo(0x6a8)](bc,bd){var kq=jo;const be=bc['texture'];ar['x']=-bc[kq(0x9eb)]['x']*be[kq(0x910)][kq(0x5fb)],ar['y']=-bc[kq(0x9eb)]['y']*be[kq(0x910)][kq(0x8ec)],ar['width']=be[kq(0x910)][kq(0x5fb)],ar[kq(0x8ec)]=be[kq(0x910)][kq(0x8ec)],this['mapQuad'](ar,bd);}[jo(0x8a1)](bc,bd){var kr=jo;aq[0x0][kr(0x1e6)](bc['x'],bc['y']),aq[0x1][kr(0x1e6)](bc['x']+bc[kr(0x5fb)],bc['y']),aq[0x2]['set'](bc['x']+bc[kr(0x5fb)],bc['y']+bc[kr(0x8ec)]),aq[0x3][kr(0x1e6)](bc['x'],bc['y']+bc['height']);let be=0x1,bf=0x2,bg=0x3;if(0x0===function(bp,bq,br,bs,bt){var ks=kr;const bu=bq['x']-bp['x'],bv=br['x']-bs['x'],bw=br['x']-bp['x'],bx=bq['y']-bp['y'],by=br['y']-bs['y'],bz=br['y']-bp['y'],bA=bu*by-bx*bv;if(Math[ks(0x277)](bA)<1e-7)return bt['x']=bu,bt['y']=bx,0x0;const bB=(bw*by-bz*bv)/bA,bC=(bu*bz-bx*bw)/bA;return bC<0.000001||bC-0x1>-0.000001?-0x1:(bt['x']=bp['x']+bB*(bq['x']-bp['x']),bt['y']=bp['y']+bB*(bq['y']-bp['y']),0x1);}(bd[0x0],bd[0x2],bd[0x1],bd[0x3],ap))return;be=0x1,bf=0x3,bg=0x2;const bh=Math[kr(0x43c)]((bd[0x0]['x']-ap['x'])*(bd[0x0]['x']-ap['x'])+(bd[0x0]['y']-ap['y'])*(bd[0x0]['y']-ap['y'])),bi=Math[kr(0x43c)]((bd[be]['x']-ap['x'])*(bd[be]['x']-ap['x'])+(bd[be]['y']-ap['y'])*(bd[be]['y']-ap['y'])),bj=Math[kr(0x43c)]((bd[bf]['x']-ap['x'])*(bd[bf]['x']-ap['x'])+(bd[bf]['y']-ap['y'])*(bd[bf]['y']-ap['y'])),bk=Math[kr(0x43c)]((bd[bg]['x']-ap['x'])*(bd[bg]['x']-ap['x'])+(bd[bg]['y']-ap['y'])*(bd[bg]['y']-ap['y'])),bl=(bh+bk)/bk,bm=(bi+bj)/bj,bn=(bi+bj)/bi;let bo=this[kr(0x23a)][kr(0x721)];bo[0x0]=aq[0x0]['x']*bl,bo[0x1]=aq[0x0]['y']*bl,bo[0x2]=bl,bo[0x3]=aq[be]['x']*bm,bo[0x4]=aq[be]['y']*bm,bo[0x5]=bm,bo[0x6]=aq[bf]['x']*bn,bo[0x7]=aq[bf]['y']*bn,bo[0x8]=bn,this[kr(0x23a)][kr(0x947)](),bo=as[kr(0x721)],bo[0x0]=bd[0x0]['x'],bo[0x1]=bd[0x0]['y'],bo[0x2]=0x1,bo[0x3]=bd[be]['x'],bo[0x4]=bd[be]['y'],bo[0x5]=0x1,bo[0x6]=bd[bf]['x'],bo[0x7]=bd[bf]['y'],bo[0x8]=0x1,this[kr(0x23a)]['setToMult'](as,this['matrix']),this['_projID']++;}[jo(0x407)](bc){var kt=jo;0x0!==this[kt(0x178)]?this[kt(0x331)]?this[kt(0x689)]['setToMultLegacy2'](this['matrix'],bc):this[kt(0x689)][kt(0x546)](bc,this[kt(0x23a)]):this['local'][kt(0x5dd)](bc);}[jo(0x263)](){var ku=jo;super[ku(0x263)](),this[ku(0x23a)][ku(0x75a)](),this[ku(0x575)]['set'](0x0,0x0);}}function av(){var kv=jo;return this[kv(0x7a6)]['affine']?this['transform'][kv(0x607)]:this['proj']['world'];}class aw extends a7['W2']{constructor(){var kw=jo;super(),this[kw(0x7a6)]=new au(this['transform']);}[jo(0x96a)](bc,bd,be,bf,bg=af[jo(0x553)]){var kx=jo;return bd&&(bc=bd[kx(0x223)](bc,be,bf)),bf||this[kx(0x423)](),bg>=af[kx(0x69d)]?(bf||this[kx(0x8c1)](),this[kx(0x7a6)][kx(0x51a)]?this[kx(0xa07)][kx(0x607)][kx(0x177)](bc,be):this[kx(0x7a6)]['world'][kx(0x177)](bc,be)):(this['parent']?be=this['parent'][kx(0x607)][kx(0x177)](bc,be):(be['x']=bc['x'],be['y']=bc['y']),bg===af['NONE']?be:this['transform'][kx(0x9ca)][kx(0x177)](be,be));}get['worldTransform'](){var ky=jo;return this[ky(0x7a6)][ky(0x51a)]?this[ky(0xa07)]['worldTransform']:this[ky(0x7a6)][ky(0x504)];}}const ax=aw['prototype'][jo(0x96a)];class ay extends a9['Kj']{static[jo(0x18e)](){var kz=jo;this[kz(0x848)]=kz(0x53b);}static['__initStatic2'](){var kA=jo;this[kA(0x7d4)]='\x0avarying\x20vec2\x20vTextureCoord;\x0auniform\x20vec4\x20uColor;\x0a\x0auniform\x20sampler2D\x20uSampler;\x0a\x0avoid\x20main(void)\x0a{\x0agl_FragColor\x20=\x20texture2D(uSampler,\x20vTextureCoord)\x20*\x20uColor;\x0a}';}constructor(bc,bd,be,bf){var kB=jo;super(bc,bd,be,bf),ay['prototype'][kB(0x4b8)][kB(0x6ca)](this),this[kB(0x7a6)]=new au(this[kB(0xa07)]);}[jo(0x4b8)](){var kC=jo;this[kC(0x6e1)]=null;}['calculateVertices'](){var kD=jo;if(this[kD(0x7a6)][kD(0x8b2)])return this[kD(0x6e1)]=null,void super[kD(0x5f2)]();const bc=this[kD(0x54d)],bd=bc[kD(0x503)][0x0][kD(0x329)],be=this;if(bc['vertexDirtyId']===be['vertexDirty']&&be[kD(0x29d)]===be[kD(0xa07)]['_worldID'])return;be[kD(0x29d)]=be['transform']['_worldID'],be[kD(0x826)]['length']!==bd['length']&&(be[kD(0x826)]=new Float32Array(bd[kD(0x61d)])),this[kD(0x6e1)]&&this[kD(0x6e1)][kD(0x61d)]===0x3*bd['length']/0x2||(this[kD(0x6e1)]=new Float32Array(0x3*bd[kD(0x61d)]));const bf=this[kD(0x7a6)][kD(0x504)][kD(0x721)],bg=this['vertexData2d'],bh=be[kD(0x826)];for(let bi=0x0;bi<bh[kD(0x61d)]/0x2;bi++){const bj=bd[0x2*bi],bk=bd[0x2*bi+0x1],bl=bf[0x0]*bj+bf[0x3]*bk+bf[0x6],bm=bf[0x1]*bj+bf[0x4]*bk+bf[0x7],bn=bf[0x2]*bj+bf[0x5]*bk+bf[0x8];bg[0x3*bi]=bl,bg[0x3*bi+0x1]=bm,bg[0x3*bi+0x2]=bn,bh[0x2*bi]=bl/bn,bh[0x2*bi+0x1]=bm/bn;}be[kD(0x99e)]=bc[kD(0x97e)];}[jo(0x799)](bc){var kE=jo;const bd=this['shader'];bd[kE(0x879)]=this[kE(0x392)],bd[kE(0x9c2)]&&bd['update'](),bc[kE(0x862)][kE(0x5da)](),function(be){var kF=kE;let bf,bg=be[0x0],bh=0x1;for(;bh<be[kF(0x61d)];){const bi=be[bh],bj=be[bh+0x1];if(bh+=0x2,(kF(0x3e9)===bi||kF(0x9bf)===bi)&&null==bg)return;'access'===bi||kF(0x3e9)===bi?(bf=bg,bg=bj(bg)):kF(0x6ca)!==bi&&kF(0x9bf)!==bi||(bg=bj((...bk)=>bg['call'](bf,...bk)),bf=void 0x0);}return bg;}([bd,kE(0x48a),be=>be[kE(0x5bd)],kE(0x48a),be=>be[kE(0x3b7)],kE(0x3e9),be=>be[kE(0x4a0)]])&&(bd['uniforms']['translationMatrix']=this[kE(0x607)]['toArray'](!0x0)),bc['shader'][kE(0xa0c)](bd,!0x1),bc['state'][kE(0x1e6)](this[kE(0x75f)]),bc['geometry']['bind'](this[kE(0x54d)],bd),bc['geometry']['draw'](this[kE(0x8ed)],this['size'],this['start'],this[kE(0x54d)][kE(0x1a4)]);}[jo(0x96a)](bc,bd,be,bf,bg=af['ALL']){var kG=jo;return ax[kG(0x6ca)](this,bc,bd,be,bf,bg);}get['worldTransform'](){var kH=jo;return this[kH(0x7a6)][kH(0x51a)]?this[kH(0xa07)][kH(0x607)]:this['proj'][kH(0x504)];}}ay[jo(0x18e)](),ay[jo(0x6f0)]();class az extends ab['j']{constructor(bc){var kI=jo;super(bc),az['prototype'][kI(0x4b8)]['call'](this),this[kI(0x7a6)]=new au(this[kI(0xa07)]),this[kI(0x520)]=kI(0x408);}[jo(0x4b8)](){this['vertexData2d']=null;}['_calculateBounds'](){var kJ=jo;this[kJ(0x920)](),this[kJ(0x1c3)]['addQuad'](this['vertexTrimmedData']);}[jo(0x5f2)](){var kK=jo;const bc=this[kK(0x473)];if(this[kK(0x7a6)][kK(0x8b2)])return this[kK(0x6e1)]=null,void super[kK(0x5f2)]();this[kK(0x6e1)]||(this[kK(0x6e1)]=new Float32Array(0xc));const bd=this['transform'][kK(0x5dc)],be=bc[kK(0x6fa)];if(this[kK(0x29d)]===bd&&this[kK(0x4e4)]===be)return;this[kK(0x4e4)]!==be&&(this[kK(0x8c6)]=bc[kK(0x9fb)][kK(0x3eb)]),this[kK(0x29d)]=bd,this[kK(0x4e4)]=be;const bf=this[kK(0x7a6)][kK(0x504)]['mat3'],bg=this[kK(0x6e1)],bh=this[kK(0x826)],bi=bc[kK(0x518)],bj=bc['orig'],bk=this[kK(0x1bb)];let bl,bm,bn,bo;bi?(bm=bi['x']-bk['_x']*bj[kK(0x5fb)],bl=bm+bi[kK(0x5fb)],bo=bi['y']-bk['_y']*bj[kK(0x8ec)],bn=bo+bi[kK(0x8ec)]):(bm=-bk['_x']*bj[kK(0x5fb)],bl=bm+bj['width'],bo=-bk['_y']*bj[kK(0x8ec)],bn=bo+bj[kK(0x8ec)]),bg[0x0]=bf[0x0]*bm+bf[0x3]*bo+bf[0x6],bg[0x1]=bf[0x1]*bm+bf[0x4]*bo+bf[0x7],bg[0x2]=bf[0x2]*bm+bf[0x5]*bo+bf[0x8],bg[0x3]=bf[0x0]*bl+bf[0x3]*bo+bf[0x6],bg[0x4]=bf[0x1]*bl+bf[0x4]*bo+bf[0x7],bg[0x5]=bf[0x2]*bl+bf[0x5]*bo+bf[0x8],bg[0x6]=bf[0x0]*bl+bf[0x3]*bn+bf[0x6],bg[0x7]=bf[0x1]*bl+bf[0x4]*bn+bf[0x7],bg[0x8]=bf[0x2]*bl+bf[0x5]*bn+bf[0x8],bg[0x9]=bf[0x0]*bm+bf[0x3]*bn+bf[0x6],bg[0xa]=bf[0x1]*bm+bf[0x4]*bn+bf[0x7],bg[0xb]=bf[0x2]*bm+bf[0x5]*bn+bf[0x8],bh[0x0]=bg[0x0]/bg[0x2],bh[0x1]=bg[0x1]/bg[0x2],bh[0x2]=bg[0x3]/bg[0x5],bh[0x3]=bg[0x4]/bg[0x5],bh[0x4]=bg[0x6]/bg[0x8],bh[0x5]=bg[0x7]/bg[0x8],bh[0x6]=bg[0x9]/bg[0xb],bh[0x7]=bg[0xa]/bg[0xb];}[jo(0x920)](){var kL=jo;if(this[kL(0x7a6)][kL(0x8b2)])return void super['calculateTrimmedVertices']();const bc=this[kL(0xa07)]['_worldID'],bd=this[kL(0x473)][kL(0x6fa)],be=this;if(be[kL(0x4d7)]){if(be[kL(0x9a9)]===bc&&this[kL(0x9ec)]===bd)return;}else be[kL(0x4d7)]=new Float32Array(0x8);be[kL(0x9a9)]=bc,this[kL(0x9ec)]=bd;const bf=this['_texture'],bg=be['vertexTrimmedData'],bh=bf['orig'],bi=this['tileProj']?this[kL(0x802)]:bh[kL(0x5fb)],bj=this[kL(0x198)]?this['_height']:bh[kL(0x8ec)],bk=this[kL(0x1bb)],bl=this[kL(0x7a6)][kL(0x504)][kL(0x721)],bm=-bk['_x']*bi,bn=bm+bi,bo=-bk['_y']*bj,bp=bo+bj;let bq=0x1/(bl[0x2]*bm+bl[0x5]*bo+bl[0x8]);bg[0x0]=bq*(bl[0x0]*bm+bl[0x3]*bo+bl[0x6]),bg[0x1]=bq*(bl[0x1]*bm+bl[0x4]*bo+bl[0x7]),bq=0x1/(bl[0x2]*bn+bl[0x5]*bo+bl[0x8]),bg[0x2]=bq*(bl[0x0]*bn+bl[0x3]*bo+bl[0x6]),bg[0x3]=bq*(bl[0x1]*bn+bl[0x4]*bo+bl[0x7]),bq=0x1/(bl[0x2]*bn+bl[0x5]*bp+bl[0x8]),bg[0x4]=bq*(bl[0x0]*bn+bl[0x3]*bp+bl[0x6]),bg[0x5]=bq*(bl[0x1]*bn+bl[0x4]*bp+bl[0x7]),bq=0x1/(bl[0x2]*bm+bl[0x5]*bp+bl[0x8]),bg[0x6]=bq*(bl[0x0]*bm+bl[0x3]*bp+bl[0x6]),bg[0x7]=bq*(bl[0x1]*bm+bl[0x4]*bp+bl[0x7]);}[jo(0x96a)](bc,bd,be,bf,bg=af[jo(0x553)]){var kM=jo;return ax[kM(0x6ca)](this,bc,bd,be,bf,bg);}get[jo(0x607)](){var kN=jo;return this[kN(0x7a6)][kN(0x51a)]?this[kN(0xa07)][kN(0x607)]:this[kN(0x7a6)]['world'];}}const aA=new a6['wx']();class aB extends a8['o']{constructor(bc,bd,be){var kO=jo;super(bc,bd,be),this[kO(0x198)]=new au(this[kO(0x1ca)]),this[kO(0x198)][kO(0x331)]=!0x0,this[kO(0x7a6)]=new au(this[kO(0xa07)]),this[kO(0x520)]=kO(0x9b1),this[kO(0x4ce)]=!0x0;}get[jo(0x607)](){var kP=jo;return this[kP(0x7a6)][kP(0x51a)]?this['transform']['worldTransform']:this['proj'][kP(0x504)];}[jo(0x96a)](bc,bd,be,bf,bg=af['ALL']){var kQ=jo;return ax[kQ(0x6ca)](this,bc,bd,be,bf,bg);}[jo(0x2fb)](bc){var kR=jo;const bd=this[kR(0x473)];bd&&bd[kR(0x7a5)]&&(this[kR(0x1ca)][kR(0x74a)](aA),this[kR(0x2f7)][kR(0x9c2)](),bc[kR(0x862)][kR(0x8de)](bc[kR(0x4a2)][this[kR(0x520)]]),bc[kR(0x4a2)][this[kR(0x520)]][kR(0x5bb)](this));}}function aC(){var kS=jo;this[kS(0x7a6)]||(this[kS(0x7a6)]=new au(this[kS(0xa07)]),this[kS(0x96a)]=aw[kS(0x6cb)][kS(0x96a)],Object[kS(0x182)](this,kS(0x607),{'get':av,'enumerable':!0x0,'configurable':!0x0}));}a7['W2'][jo(0x6cb)][jo(0x8d7)]=aC,ab['j'][jo(0x6cb)][jo(0x8d7)]=function(){var kT=jo;this[kT(0x7a6)]||(this[kT(0x5f2)]=az[kT(0x6cb)][kT(0x5f2)],this[kT(0x920)]=az[kT(0x6cb)][kT(0x920)],this[kT(0x703)]=az['prototype'][kT(0x703)],this['pluginName']=kT(0x408),aC[kT(0x6ca)](this));},a7['W2'][jo(0x6cb)]['convertSubtreeTo2d']=function(){var kU=jo;this[kU(0x8d7)]();for(let bc=0x0;bc<this[kU(0x774)]['length'];bc++)this[kU(0x774)][bc][kU(0x737)]();},aa['AL'][jo(0x6cb)][jo(0x8d7)]=aa['IE']['prototype'][jo(0x8d7)]=function(){var kV=jo;this['proj']||(this[kV(0x5f2)]=ay[kV(0x6cb)][kV(0x5f2)],this[kV(0x799)]=ay['prototype'][kV(0x799)],'batch2d'!==this['material']['pluginName']&&(this[kV(0x210)]=new a9['rY'](this[kV(0x210)][kV(0x732)],{'program':a3[kV(0x4e2)][kV(0x1d4)](ay[kV(0x848)],ay['defaultFragmentShader']),'pluginName':kV(0x408)})),aC[kV(0x6ca)](this));},a8['o'][jo(0x6cb)][jo(0x8d7)]=function(){var kW=jo;this[kW(0x7a6)]||(this[kW(0x198)]=new au(this[kW(0x1ca)]),this[kW(0x198)][kW(0x331)]=!0x0,this[kW(0x4ce)]=!0x0,this[kW(0x920)]=az[kW(0x6cb)]['calculateTrimmedVertices'],this['_calculateBounds']=az[kW(0x6cb)][kW(0x703)],this[kW(0x2fb)]=aB[kW(0x6cb)][kW(0x2fb)],this['pluginName']=kW(0x9b1),aC[kW(0x6ca)](this));};class aD extends ac['xv']{constructor(bc,bd,be){var kX=jo;super(bc,bd,be),aD[kX(0x6cb)][kX(0x4b8)]['call'](this),this[kX(0x7a6)]=new au(this['transform']),this[kX(0x520)]=kX(0x408);}[jo(0x4b8)](){var kY=jo;this[kY(0x6e1)]=null;}get[jo(0x607)](){var kZ=jo;return this[kZ(0x7a6)]['affine']?this[kZ(0xa07)][kZ(0x607)]:this['proj'][kZ(0x504)];}}aD[jo(0x6cb)]['calculateVertices']=az[jo(0x6cb)][jo(0x5f2)],aD['prototype']['calculateTrimmedVertices']=az[jo(0x6cb)][jo(0x920)],aD['prototype'][jo(0x703)]=az[jo(0x6cb)][jo(0x703)];const aE=new al();class aF extends a3[jo(0x55b)]{constructor(bc){var l0=jo;super(l0(0x7f1),l0(0x87b)),aF['prototype']['__init'][l0(0x6ca)](this),bc[l0(0x52b)]=!0x1,this[l0(0x92d)]=bc;}[jo(0x4b8)](){this['maskMatrix']=new al();}['apply'](bc,bd,be,bf){var l1=jo;const bg=this[l1(0x92d)],bh=this['maskSprite'][l1(0x732)];bh['valid']&&(bh['uvMatrix']||(bh[l1(0x2f7)]=new a3[(l1(0x2ee))](bh,0x0)),bh[l1(0x2f7)]['update'](),this[l1(0xa2a)][l1(0x380)]=bh[l1(0x41f)][l1(0x45f)]?0x0:0x1,this[l1(0xa2a)][l1(0x4be)]=bg[l1(0x732)],this['uniforms']['otherMatrix']=aF[l1(0x9a6)](bd,this[l1(0x927)],bg)[l1(0x245)](bh[l1(0x2f7)][l1(0x480)]),this[l1(0xa2a)]['alpha']=bg[l1(0x392)],this[l1(0xa2a)][l1(0x1b7)]=bh[l1(0x2f7)][l1(0x4d8)],bc['applyFilter'](this,bd,be,bf));}static[jo(0x9a6)](bc,bd,be){var l2=jo;const bf=be[l2(0x7a6)],bg=bc[l2(0x6a7)],bh=bf&&!bf[l2(0x8b2)]?bf[l2(0x504)]['copyTo2dOr3d'](aE):aE['copyFrom'](be[l2(0xa07)][l2(0x607)]),bi=be[l2(0x732)]['orig'];return bd[l2(0x1e6)](bc[l2(0x5fb)],0x0,0x0,bc[l2(0x8ec)],bg['x'],bg['y']),bh[l2(0x947)](),bd[l2(0x916)](bh,bd),bd[l2(0x613)](0x1/bi['width'],0x1/bi[l2(0x8ec)],be['anchor']['x'],be[l2(0x9eb)]['y']),bd;}}a3[jo(0x375)][jo(0x6cb)][jo(0x755)]=function(bc){var l3=jo;const {maskObject:bd}=bc,be=bc[l3(0x9ab)];let bf=this[l3(0x35d)][this['alphaMaskIndex']];bf||(bf=this[l3(0x35d)][this[l3(0x801)]]=[new aF(bd)]),bf[0x0][l3(0x7ed)]=this[l3(0x3a1)][l3(0x7ed)],bf[0x0][l3(0x92d)]=bd;const bg=be[l3(0x309)];be[l3(0x309)]=bd['getBounds'](!0x0),this[l3(0x3a1)][l3(0x7f8)][l3(0x315)](be,bf),be[l3(0x309)]=bg,this[l3(0x801)]++;},a3[jo(0x3ca)]['registerPlugin']('tilingSprite2d',ao);class aG extends a6['E9']{constructor(bc,bd,be){super(bc,bd),this['z']=be;}[jo(0x1e6)](bc,bd,be){return this['x']=bc||0x0,this['y']=void 0x0===bd?this['x']:bd||0x0,this['z']=void 0x0===bd?this['x']:be||0x0,this;}[jo(0x5dd)](bc){return this['set'](bc['x'],bc['y'],bc['z']||0x0),this;}[jo(0x63b)](bc){var l4=jo;return bc[l4(0x1e6)](this['x'],this['y'],this['z']),bc;}}class aH extends a6['AB']{constructor(...bc){var l5=jo;super(...bc),aH[l5(0x6cb)][l5(0x4b8)][l5(0x6ca)](this);}[jo(0x4b8)](){this['_z']=0x0;}get['z'](){return this['_z'];}set['z'](bc){var l6=jo;this['_z']!==bc&&(this['_z']=bc,this['cb']['call'](this[l6(0x884)]));}['set'](bc,bd,be){var l7=jo;const bf=bc||0x0,bg=void 0x0===bd?bf:bd||0x0,bh=void 0x0===bd?bf:be||0x0;return this['_x']===bf&&this['_y']===bg&&this['_z']===bh||(this['_x']=bf,this['_y']=bg,this['_z']=bh,this['cb']['call'](this[l7(0x884)])),this;}['copyFrom'](bc){return this['set'](bc['x'],bc['y'],bc['z']||0x0),this;}[jo(0x63b)](bc){return bc['set'](this['_x'],this['_y'],this['_z']),bc;}}class aI{constructor(bc,bd,be){var l8=jo;aI[l8(0x6cb)][l8(0x4b8)][l8(0x6ca)](this),aI[l8(0x6cb)]['__init2'][l8(0x6ca)](this),aI[l8(0x6cb)]['__init3'][l8(0x6ca)](this),this['_x']=bc||0x0,this['_y']=bd||0x0,this['_z']=be||0x0,this[l8(0x44a)]=new Float64Array(0x4),this[l8(0x44a)][0x3]=0x1,this['update']();}[jo(0x4b8)](){this['_quatUpdateId']=-0x1;}[jo(0x71b)](){this['_quatDirtyId']=0x0;}[jo(0x170)](){var l9=jo;this[l9(0x87c)]=0x1;}get['x'](){return this['_x'];}set['x'](bc){var la=jo;this['_x']!==bc&&(this['_x']=bc,this[la(0x47f)]++);}get['y'](){return this['_y'];}set['y'](bc){var lb=jo;this['_y']!==bc&&(this['_y']=bc,this[lb(0x47f)]++);}get['z'](){return this['_z'];}set['z'](bc){var lc=jo;this['_z']!==bc&&(this['_z']=bc,this[lc(0x47f)]++);}get[jo(0x836)](){return this['_x'];}set[jo(0x836)](bc){var ld=jo;this['_x']!==bc&&(this['_x']=bc,this[ld(0x47f)]++);}get['yaw'](){return this['_y'];}set[jo(0x8cb)](bc){this['_y']!==bc&&(this['_y']=bc,this['_quatDirtyId']++);}get[jo(0x74b)](){return this['_z'];}set[jo(0x74b)](bc){var le=jo;this['_z']!==bc&&(this['_z']=bc,this[le(0x47f)]++);}['set'](bc,bd,be){var lf=jo;const bf=bc||0x0,bg=bd||0x0,bh=be||0x0;this['_x']===bf&&this['_y']===bg&&this['_z']===bh||(this['_x']=bf,this['_y']=bg,this['_z']=bh,this[lf(0x47f)]++);}[jo(0x5dd)](bc){var lg=jo;const bd=bc['x'],be=bc['y'],bf=bc['z'];return this['_x']===bd&&this['_y']===be&&this['_z']===bf||(this['_x']=bd,this['_y']=be,this['_z']=bf,this[lg(0x47f)]++),this;}['copyTo'](bc){var lh=jo;return bc[lh(0x1e6)](this['_x'],this['_y'],this['_z']),bc;}[jo(0x56b)](bc){return this['_x']===bc['x']&&this['_y']===bc['y']&&this['_z']===bc['z'];}[jo(0xa15)](){return new aI(this['_x'],this['_y'],this['_z']);}[jo(0x9c2)](){var li=jo;if(this[li(0x484)]===this[li(0x47f)])return!0x1;this[li(0x484)]=this[li(0x47f)];const bc=Math[li(0x5e0)](this['_x']/0x2),bd=Math[li(0x5e0)](this['_y']/0x2),be=Math['cos'](this['_z']/0x2),bf=this[li(0x87c)],bg=bf*Math['sin'](this['_x']/0x2),bh=bf*Math['sin'](this['_y']/0x2),bi=bf*Math['sin'](this['_z']/0x2),bj=this[li(0x44a)];return bj[0x0]=bg*bd*be+bc*bh*bi,bj[0x1]=bc*bh*be-bg*bd*bi,bj[0x2]=bc*bd*bi+bg*bh*be,bj[0x3]=bc*bd*be-bg*bh*bi,!0x0;}}class aJ{constructor(bc,bd,be,bf,bg){var lj=jo;this['cb']=bc,this['scope']=bd,aJ['prototype'][lj(0x4b8)][lj(0x6ca)](this),aJ[lj(0x6cb)]['__init2'][lj(0x6ca)](this),aJ[lj(0x6cb)]['__init3'][lj(0x6ca)](this),this['_x']=be||0x0,this['_y']=bf||0x0,this['_z']=bg||0x0,this[lj(0x44a)]=new Float64Array(0x4),this[lj(0x44a)][0x3]=0x1,this[lj(0x9c2)]();}['__init'](){var lk=jo;this[lk(0x484)]=-0x1;}['__init2'](){var ll=jo;this[ll(0x47f)]=0x0;}[jo(0x170)](){var lm=jo;this[lm(0x87c)]=0x1;}get['x'](){return this['_x'];}set['x'](bc){this['_x']!==bc&&(this['_x']=bc,this['_quatDirtyId']++,this['cb']['call'](this['scope']));}get['y'](){return this['_y'];}set['y'](bc){var ln=jo;this['_y']!==bc&&(this['_y']=bc,this[ln(0x47f)]++,this['cb'][ln(0x6ca)](this['scope']));}get['z'](){return this['_z'];}set['z'](bc){var lo=jo;this['_z']!==bc&&(this['_z']=bc,this[lo(0x47f)]++,this['cb'][lo(0x6ca)](this[lo(0x884)]));}get[jo(0x836)](){return this['_x'];}set[jo(0x836)](bc){var lp=jo;this['_x']!==bc&&(this['_x']=bc,this['_quatDirtyId']++,this['cb'][lp(0x6ca)](this[lp(0x884)]));}get[jo(0x8cb)](){return this['_y'];}set['yaw'](bc){var lq=jo;this['_y']!==bc&&(this['_y']=bc,this[lq(0x47f)]++,this['cb'][lq(0x6ca)](this[lq(0x884)]));}get[jo(0x74b)](){return this['_z'];}set[jo(0x74b)](bc){var lr=jo;this['_z']!==bc&&(this['_z']=bc,this['_quatDirtyId']++,this['cb'][lr(0x6ca)](this[lr(0x884)]));}[jo(0x1e6)](bc,bd,be){var ls=jo;const bf=bc||0x0,bg=bd||0x0,bh=be||0x0;return this['_x']===bf&&this['_y']===bg&&this['_z']===bh||(this['_x']=bf,this['_y']=bg,this['_z']=bh,this['_quatDirtyId']++,this['cb'][ls(0x6ca)](this[ls(0x884)])),this;}[jo(0x5dd)](bc){var lt=jo;const bd=bc['x'],be=bc['y'],bf=bc['z'];return this['_x']===bd&&this['_y']===be&&this['_z']===bf||(this['_x']=bd,this['_y']=be,this['_z']=bf,this['_quatDirtyId']++,this['cb']['call'](this[lt(0x884)])),this;}['copyTo'](bc){var lu=jo;return bc[lu(0x1e6)](this['_x'],this['_y'],this['_z']),bc;}[jo(0x56b)](bc){return this['_x']===bc['x']&&this['_y']===bc['y']&&this['_z']===bc['z'];}[jo(0xa15)](){return new aI(this['_x'],this['_y'],this['_z']);}['update'](){var lv=jo;if(this[lv(0x484)]===this[lv(0x47f)])return!0x1;this['_quatUpdateId']=this[lv(0x47f)];const bc=Math[lv(0x5e0)](this['_x']/0x2),bd=Math['cos'](this['_y']/0x2),be=Math[lv(0x5e0)](this['_z']/0x2),bf=this[lv(0x87c)],bg=bf*Math[lv(0x60a)](this['_x']/0x2),bh=bf*Math[lv(0x60a)](this['_y']/0x2),bi=bf*Math['sin'](this['_z']/0x2),bj=this[lv(0x44a)];return bj[0x0]=bg*bd*be+bc*bh*bi,bj[0x1]=bc*bh*be-bg*bd*bi,bj[0x2]=bc*bd*bi+bg*bh*be,bj[0x3]=bc*bd*be-bg*bh*bi,!0x0;}}const aK=[0x1,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x0,0x0,0x1];class aL{static[jo(0x18e)](){var lw=jo;this[lw(0x9e6)]=new aL();}static['__initStatic2'](){this['TEMP_MATRIX']=new aL();}[jo(0x4b8)](){this['floatArray']=null;}[jo(0x71b)](){var lx=jo;this[lx(0x78d)]=0x0;}[jo(0x170)](){var ly=jo;this[ly(0x266)]=-0x1;}[jo(0x418)](){this['_mat4inv']=null;}['__init5'](){var lz=jo;this[lz(0x41b)]=!0x1;}constructor(bc){var lA=jo;aL[lA(0x6cb)][lA(0x4b8)]['call'](this),aL['prototype'][lA(0x71b)]['call'](this),aL[lA(0x6cb)][lA(0x170)]['call'](this),aL[lA(0x6cb)][lA(0x418)][lA(0x6ca)](this),aL[lA(0x6cb)][lA(0x855)][lA(0x6ca)](this),this[lA(0x1a9)]=new Float64Array(bc||aK);}get['a'](){var lB=jo;return this[lB(0x1a9)][0x0]/this[lB(0x1a9)][0xf];}set['a'](bc){this['mat4'][0x0]=bc*this['mat4'][0xf];}get['b'](){var lC=jo;return this['mat4'][0x1]/this[lC(0x1a9)][0xf];}set['b'](bc){var lD=jo;this[lD(0x1a9)][0x1]=bc*this[lD(0x1a9)][0xf];}get['c'](){var lE=jo;return this[lE(0x1a9)][0x4]/this[lE(0x1a9)][0xf];}set['c'](bc){var lF=jo;this['mat4'][0x4]=bc*this[lF(0x1a9)][0xf];}get['d'](){var lG=jo;return this[lG(0x1a9)][0x5]/this['mat4'][0xf];}set['d'](bc){var lH=jo;this[lH(0x1a9)][0x5]=bc*this[lH(0x1a9)][0xf];}get['tx'](){var lI=jo;return this['mat4'][0xc]/this[lI(0x1a9)][0xf];}set['tx'](bc){var lJ=jo;this[lJ(0x1a9)][0xc]=bc*this[lJ(0x1a9)][0xf];}get['ty'](){var lK=jo;return this[lK(0x1a9)][0xd]/this['mat4'][0xf];}set['ty'](bc){var lL=jo;this[lL(0x1a9)][0xd]=bc*this[lL(0x1a9)][0xf];}[jo(0x1e6)](bc,bd,be,bf,bg,bh){var lM=jo;const bi=this[lM(0x1a9)];return bi[0x0]=bc,bi[0x1]=bd,bi[0x2]=0x0,bi[0x3]=0x0,bi[0x4]=be,bi[0x5]=bf,bi[0x6]=0x0,bi[0x7]=0x0,bi[0x8]=0x0,bi[0x9]=0x0,bi[0xa]=0x1,bi[0xb]=0x0,bi[0xc]=bg,bi[0xd]=bh,bi[0xe]=0x0,bi[0xf]=0x1,this;}['toArray'](bc,bd){var lN=jo;this['floatArray']||(this[lN(0x683)]=new Float32Array(0x9));const be=bd||this[lN(0x683)],bf=this[lN(0x1a9)];return bc?(be[0x0]=bf[0x0],be[0x1]=bf[0x1],be[0x2]=bf[0x3],be[0x3]=bf[0x4],be[0x4]=bf[0x5],be[0x5]=bf[0x7],be[0x6]=bf[0xc],be[0x7]=bf[0xd],be[0x8]=bf[0xf]):(be[0x0]=bf[0x0],be[0x1]=bf[0x4],be[0x2]=bf[0xc],be[0x3]=bf[0x2],be[0x4]=bf[0x6],be[0x5]=bf[0xd],be[0x6]=bf[0x3],be[0x7]=bf[0x7],be[0x8]=bf[0xf]),be;}['setToTranslation'](bc,bd,be){var lO=jo;const bf=this[lO(0x1a9)];bf[0x0]=0x1,bf[0x1]=0x0,bf[0x2]=0x0,bf[0x3]=0x0,bf[0x4]=0x0,bf[0x5]=0x1,bf[0x6]=0x0,bf[0x7]=0x0,bf[0x8]=0x0,bf[0x9]=0x0,bf[0xa]=0x1,bf[0xb]=0x0,bf[0xc]=bc,bf[0xd]=bd,bf[0xe]=be,bf[0xf]=0x1;}['setToRotationTranslationScale'](bc,bd,be,bf,bg,bh,bi){const bj=this['mat4'],bk=bc[0x0],bl=bc[0x1],bm=bc[0x2],bn=bc[0x3],bo=bk+bk,bp=bl+bl,bq=bm+bm,br=bk*bo,bs=bk*bp,bt=bk*bq,bu=bl*bp,bv=bl*bq,bw=bm*bq,bx=bn*bo,by=bn*bp,bz=bn*bq;return bj[0x0]=(0x1-(bu+bw))*bg,bj[0x1]=(bs+bz)*bg,bj[0x2]=(bt-by)*bg,bj[0x3]=0x0,bj[0x4]=(bs-bz)*bh,bj[0x5]=(0x1-(br+bw))*bh,bj[0x6]=(bv+bx)*bh,bj[0x7]=0x0,bj[0x8]=(bt+by)*bi,bj[0x9]=(bv-bx)*bi,bj[0xa]=(0x1-(br+bu))*bi,bj[0xb]=0x0,bj[0xc]=bd,bj[0xd]=be,bj[0xe]=bf,bj[0xf]=0x1,bj;}[jo(0x1ea)](bc,bd){var lP=jo;bd=bd||new aG();const be=this[lP(0x1a9)],bf=bc['x'],bg=bc['y'],bh=bc['z']||0x0,bi=0x1/(be[0x3]*bf+be[0x7]*bg+be[0xb]*bh+be[0xf]);return bd['x']=bi*(be[0x0]*bf+be[0x4]*bg+be[0x8]*bh+be[0xc]),bd['y']=bi*(be[0x1]*bf+be[0x5]*bg+be[0x9]*bh+be[0xd]),bd['z']=bi*(be[0x2]*bf+be[0x6]*bg+be[0xa]*bh+be[0xe]),bd;}[jo(0x358)](bc,bd,be){var lQ=jo;const bf=this[lQ(0x1a9)];return bf[0xc]=bf[0x0]*bc+bf[0x4]*bd+bf[0x8]*be+bf[0xc],bf[0xd]=bf[0x1]*bc+bf[0x5]*bd+bf[0x9]*be+bf[0xd],bf[0xe]=bf[0x2]*bc+bf[0x6]*bd+bf[0xa]*be+bf[0xe],bf[0xf]=bf[0x3]*bc+bf[0x7]*bd+bf[0xb]*be+bf[0xf],this;}[jo(0x806)](bc,bd,be){const bf=this['mat4'];return bf[0x0]*=bc,bf[0x1]*=bc,bf[0x2]*=bc,bf[0x3]*=bc,bf[0x4]*=bd,bf[0x5]*=bd,bf[0x6]*=bd,bf[0x7]*=bd,void 0x0!==be&&(bf[0x8]*=be,bf[0x9]*=be,bf[0xa]*=be,bf[0xb]*=be),this;}[jo(0x613)](bc,bd,be,bf,bg,bh){var lR=jo;const bi=this[lR(0x1a9)];bi[0x0]=bc*bi[0x0]+bf*bi[0x3],bi[0x1]=bd*bi[0x1]+bg*bi[0x3],bi[0x2]=be*bi[0x2]+bh*bi[0x3],bi[0x4]=bc*bi[0x4]+bf*bi[0x7],bi[0x5]=bd*bi[0x5]+bg*bi[0x7],bi[0x6]=be*bi[0x6]+bh*bi[0x7],bi[0x8]=bc*bi[0x8]+bf*bi[0xb],bi[0x9]=bd*bi[0x9]+bg*bi[0xb],bi[0xa]=be*bi[0xa]+bh*bi[0xb],bi[0xc]=bc*bi[0xc]+bf*bi[0xf],bi[0xd]=bd*bi[0xd]+bg*bi[0xf],bi[0xe]=be*bi[0xe]+bh*bi[0xf];}[jo(0x177)](bc,bd){var lS=jo;bd=bd||new aG(),this[lS(0x684)]||(this['_mat4inv']=new Float64Array(0x10));const be=this[lS(0x684)],bf=this['mat4'],bg=bc['x'],bh=bc['y'];let bi=bc['z']||0x0;this[lS(0x41b)]&&this[lS(0x266)]===this[lS(0x78d)]||(this['_updateId']=this[lS(0x78d)],aL[lS(0x5d7)](be,bf));const bj=0x1/(be[0x3]*bg+be[0x7]*bh+be[0xb]*bi+be[0xf]),bk=bj*(be[0x0]*bg+be[0x4]*bh+be[0x8]*bi+be[0xc]),bl=bj*(be[0x1]*bg+be[0x5]*bh+be[0x9]*bi+be[0xd]),bm=bj*(be[0x2]*bg+be[0x6]*bh+be[0xa]*bi+be[0xe]);bi+=0x1;const bn=0x1/(be[0x3]*bg+be[0x7]*bh+be[0xb]*bi+be[0xf]),bo=bn*(be[0x0]*bg+be[0x4]*bh+be[0x8]*bi+be[0xc]),bp=bn*(be[0x1]*bg+be[0x5]*bh+be[0x9]*bi+be[0xd]),bq=bn*(be[0x2]*bg+be[0x6]*bh+be[0xa]*bi+be[0xe]);Math[lS(0x277)](bm-bq)<1e-10&&bd[lS(0x1e6)](NaN,NaN,0x0);const br=(0x0-bm)/(bq-bm);return bd[lS(0x1e6)]((bo-bk)*br+bk,(bp-bl)*br+bl,0x0),bd;}[jo(0x947)](){var lT=jo;return aL[lT(0x5d7)](this[lT(0x1a9)],this[lT(0x1a9)]),this;}['invertCopyTo'](bc){var lU=jo;this['_mat4inv']||(this[lU(0x684)]=new Float64Array(0x10));const bd=this[lU(0x684)],be=this[lU(0x1a9)];this[lU(0x41b)]&&this[lU(0x266)]===this[lU(0x78d)]||(this[lU(0x266)]=this[lU(0x78d)],aL[lU(0x5d7)](bd,be)),bc['mat4']['set'](bd);}['identity'](){const bc=this['mat4'];return bc[0x0]=0x1,bc[0x1]=0x0,bc[0x2]=0x0,bc[0x3]=0x0,bc[0x4]=0x0,bc[0x5]=0x1,bc[0x6]=0x0,bc[0x7]=0x0,bc[0x8]=0x0,bc[0x9]=0x0,bc[0xa]=0x1,bc[0xb]=0x0,bc[0xc]=0x0,bc[0xd]=0x0,bc[0xe]=0x0,bc[0xf]=0x1,this;}[jo(0xa15)](){var lV=jo;return new aL(this[lV(0x1a9)]);}[jo(0x60b)](bc){var lW=jo;const bd=this['mat4'],be=bc[lW(0x1a9)];return be[0x0]=bd[0x0],be[0x1]=bd[0x1],be[0x2]=bd[0x2],be[0x3]=bd[0x3],be[0x4]=bd[0x4],be[0x5]=bd[0x5],be[0x6]=bd[0x6],be[0x7]=bd[0x7],be[0x8]=bd[0x8],bc;}[jo(0x71d)](bc){var lX=jo;const bd=this[lX(0x1a9)],be=bc[lX(0x721)];return be[0x0]=bd[0x0],be[0x1]=bd[0x1],be[0x2]=bd[0x3],be[0x3]=bd[0x4],be[0x4]=bd[0x5],be[0x5]=bd[0x7],be[0x6]=bd[0xc],be[0x7]=bd[0xd],be[0x8]=bd[0xf],bc;}[jo(0x20d)](bc){var lY=jo;return bc instanceof al?this['copyTo2d'](bc):this[lY(0x60b)](bc);}[jo(0x63b)](bc,bd,be){var lZ=jo;const bf=this[lZ(0x1a9)],bg=0x1/bf[0xf],bh=bf[0xc]*bg,bi=bf[0xd]*bg;if(bc['a']=(bf[0x0]-bf[0x3]*bh)*bg,bc['b']=(bf[0x1]-bf[0x3]*bi)*bg,bc['c']=(bf[0x4]-bf[0x7]*bh)*bg,bc['d']=(bf[0x5]-bf[0x7]*bi)*bg,bc['tx']=bh,bc['ty']=bi,bd>=0x2){let bj=bc['a']*bc['d']-bc['b']*bc['c'];be||(bj=Math[lZ(0x277)](bj)),bd===ag[lZ(0x960)]?(bj=bj>0x0?0x1:-0x1,bc['a']=bj,bc['b']=0x0,bc['c']=0x0,bc['d']=bj):bd===ag[lZ(0x66c)]?(bj/=Math[lZ(0x43c)](bc['b']*bc['b']+bc['d']*bc['d']),bc['c']=0x0,bc['d']=bj):bd===ag[lZ(0x45a)]&&(bj/=Math['sqrt'](bc['a']*bc['a']+bc['c']*bc['c']),bc['a']=bj,bc['c']=0x0);}return bc;}['copyFrom'](bc){var m0=jo;const bd=this['mat4'];return bd[0x0]=bc['a'],bd[0x1]=bc['b'],bd[0x2]=0x0,bd[0x3]=0x0,bd[0x4]=bc['c'],bd[0x5]=bc['d'],bd[0x6]=0x0,bd[0x7]=0x0,bd[0x8]=0x0,bd[0x9]=0x0,bd[0xa]=0x1,bd[0xb]=0x0,bd[0xc]=bc['tx'],bd[0xd]=bc['ty'],bd[0xe]=0x0,bd[0xf]=0x1,this[m0(0x78d)]++,this;}[jo(0x546)](bc,bd){var m1=jo;const be=this[m1(0x1a9)],bf=bd[m1(0x1a9)],bg=bc['a'],bh=bc['b'],bi=bc['c'],bj=bc['d'],bk=bc['tx'],bl=bc['ty'];let bm=bf[0x0],bn=bf[0x1],bo=bf[0x2],bp=bf[0x3];return be[0x0]=bm*bg+bn*bi+bp*bk,be[0x1]=bm*bh+bn*bj+bp*bl,be[0x2]=bo,be[0x3]=bp,bm=bf[0x4],bn=bf[0x5],bo=bf[0x6],bp=bf[0x7],be[0x4]=bm*bg+bn*bi+bp*bk,be[0x5]=bm*bh+bn*bj+bp*bl,be[0x6]=bo,be[0x7]=bp,bm=bf[0x8],bn=bf[0x9],bo=bf[0xa],bp=bf[0xb],be[0x8]=bm*bg+bn*bi+bp*bk,be[0x9]=bm*bh+bn*bj+bp*bl,be[0xa]=bo,be[0xb]=bp,bm=bf[0xc],bn=bf[0xd],bo=bf[0xe],bp=bf[0xf],be[0xc]=bm*bg+bn*bi+bp*bk,be[0xd]=bm*bh+bn*bj+bp*bl,be[0xe]=bo,be[0xf]=bp,this['_dirtyId']++,this;}[jo(0x2e7)](bc,bd){var m2=jo;const be=this[m2(0x1a9)],bf=bc[m2(0x1a9)],bg=bf[0x0],bh=bf[0x1],bi=bf[0x2],bj=bf[0x3],bk=bf[0x4],bl=bf[0x5],bm=bf[0x6],bn=bf[0x7],bo=bd['a'],bp=bd['b'],bq=bd['c'],br=bd['d'],bs=bd['tx'],bt=bd['ty'];return be[0x0]=bo*bg+bp*bk,be[0x1]=bo*bh+bp*bl,be[0x2]=bo*bi+bp*bm,be[0x3]=bo*bj+bp*bn,be[0x4]=bq*bg+br*bk,be[0x5]=bq*bh+br*bl,be[0x6]=bq*bi+br*bm,be[0x7]=bq*bj+br*bn,be[0x8]=bf[0x8],be[0x9]=bf[0x9],be[0xa]=bf[0xa],be[0xb]=bf[0xb],be[0xc]=bs*bg+bt*bk+bf[0xc],be[0xd]=bs*bh+bt*bl+bf[0xd],be[0xe]=bs*bi+bt*bm+bf[0xe],be[0xf]=bs*bj+bt*bn+bf[0xf],this[m2(0x78d)]++,this;}[jo(0x916)](bc,bd){var m3=jo;return aL[m3(0x42f)](this[m3(0x1a9)],bc[m3(0x1a9)],bd['mat4']),this['_dirtyId']++,this;}[jo(0x245)](bc){var m4=jo;bc['mat4']?this[m4(0x916)](bc,this):this['setToMultLegacy'](bc,this);}static[jo(0x5d7)](bc,bd){const be=bd[0x0],bf=bd[0x1],bg=bd[0x2],bh=bd[0x3],bi=bd[0x4],bj=bd[0x5],bk=bd[0x6],bl=bd[0x7],bm=bd[0x8],bn=bd[0x9],bo=bd[0xa],bp=bd[0xb],bq=bd[0xc],br=bd[0xd],bs=bd[0xe],bt=bd[0xf],bu=be*bj-bf*bi,bv=be*bk-bg*bi,bw=be*bl-bh*bi,bx=bf*bk-bg*bj,by=bf*bl-bh*bj,bz=bg*bl-bh*bk,bA=bm*br-bn*bq,bB=bm*bs-bo*bq,bC=bm*bt-bp*bq,bD=bn*bs-bo*br,bE=bn*bt-bp*br,bF=bo*bt-bp*bs;let bG=bu*bF-bv*bE+bw*bD+bx*bC-by*bB+bz*bA;return bG?(bG=0x1/bG,bc[0x0]=(bj*bF-bk*bE+bl*bD)*bG,bc[0x1]=(bg*bE-bf*bF-bh*bD)*bG,bc[0x2]=(br*bz-bs*by+bt*bx)*bG,bc[0x3]=(bo*by-bn*bz-bp*bx)*bG,bc[0x4]=(bk*bC-bi*bF-bl*bB)*bG,bc[0x5]=(be*bF-bg*bC+bh*bB)*bG,bc[0x6]=(bs*bw-bq*bz-bt*bv)*bG,bc[0x7]=(bm*bz-bo*bw+bp*bv)*bG,bc[0x8]=(bi*bE-bj*bC+bl*bA)*bG,bc[0x9]=(bf*bC-be*bE-bh*bA)*bG,bc[0xa]=(bq*by-br*bw+bt*bu)*bG,bc[0xb]=(bn*bw-bm*by-bp*bu)*bG,bc[0xc]=(bj*bB-bi*bD-bk*bA)*bG,bc[0xd]=(be*bD-bf*bB+bg*bA)*bG,bc[0xe]=(br*bv-bq*bx-bs*bu)*bG,bc[0xf]=(bm*bx-bn*bv+bo*bu)*bG,bc):null;}static['glMatrixMat4Multiply'](bc,bd,be){const bf=bd[0x0],bg=bd[0x1],bh=bd[0x2],bi=bd[0x3],bj=bd[0x4],bk=bd[0x5],bl=bd[0x6],bm=bd[0x7],bn=bd[0x8],bo=bd[0x9],bp=bd[0xa],bq=bd[0xb],br=bd[0xc],bs=bd[0xd],bt=bd[0xe],bu=bd[0xf];let bv=be[0x0],bw=be[0x1],bx=be[0x2],by=be[0x3];return bc[0x0]=bv*bf+bw*bj+bx*bn+by*br,bc[0x1]=bv*bg+bw*bk+bx*bo+by*bs,bc[0x2]=bv*bh+bw*bl+bx*bp+by*bt,bc[0x3]=bv*bi+bw*bm+bx*bq+by*bu,bv=be[0x4],bw=be[0x5],bx=be[0x6],by=be[0x7],bc[0x4]=bv*bf+bw*bj+bx*bn+by*br,bc[0x5]=bv*bg+bw*bk+bx*bo+by*bs,bc[0x6]=bv*bh+bw*bl+bx*bp+by*bt,bc[0x7]=bv*bi+bw*bm+bx*bq+by*bu,bv=be[0x8],bw=be[0x9],bx=be[0xa],by=be[0xb],bc[0x8]=bv*bf+bw*bj+bx*bn+by*br,bc[0x9]=bv*bg+bw*bk+bx*bo+by*bs,bc[0xa]=bv*bh+bw*bl+bx*bp+by*bt,bc[0xb]=bv*bi+bw*bm+bx*bq+by*bu,bv=be[0xc],bw=be[0xd],bx=be[0xe],by=be[0xf],bc[0xc]=bv*bf+bw*bj+bx*bn+by*br,bc[0xd]=bv*bg+bw*bk+bx*bo+by*bs,bc[0xe]=bv*bh+bw*bl+bx*bp+by*bt,bc[0xf]=bv*bi+bw*bm+bx*bq+by*bu,bc;}}aL[jo(0x18e)](),aL[jo(0x6f0)]();const aM=new aL();class aN extends ai{constructor(bc,bd){var m5=jo;super(bc,bd),aN[m5(0x6cb)][m5(0x4b8)][m5(0x6ca)](this),aN['prototype'][m5(0x71b)][m5(0x6ca)](this),aN[m5(0x6cb)][m5(0x170)][m5(0x6ca)](this),aN[m5(0x6cb)][m5(0x418)][m5(0x6ca)](this),aN['prototype'][m5(0x855)][m5(0x6ca)](this),aN['prototype'][m5(0x8f2)][m5(0x6ca)](this),this[m5(0x689)]=new aL(),this[m5(0x504)]=new aL(),this[m5(0x689)][m5(0x41b)]=!0x0,this[m5(0x504)][m5(0x41b)]=!0x0,this[m5(0x784)]['_z']=0x0,this[m5(0x806)]['_z']=0x1,this[m5(0x575)]['_z']=0x0;}[jo(0x4b8)](){var m6=jo;this[m6(0x6f6)]=null;}[jo(0x71b)](){var m7=jo;this[m7(0x866)]=!0x1;}get[jo(0x7e3)](){return this['_cameraMode'];}set[jo(0x7e3)](bc){var m8=jo;this[m8(0x866)]!==bc&&(this[m8(0x866)]=bc,this[m8(0x5c8)][m8(0x87c)]=this[m8(0x866)]?-0x1:0x1,this[m8(0x5c8)]['_quatDirtyId']++,bc&&(this['cameraMatrix']=new aL()));}['__init3'](){var m9=jo;this[m9(0x784)]=new aH(this[m9(0x261)],this,0x0,0x0);}['__init4'](){var ma=jo;this[ma(0x806)]=new aH(this[ma(0x261)],this,0x1,0x1);}['__init5'](){var mb=jo;this[mb(0x5c8)]=new aJ(this[mb(0x261)],this,0x0,0x0,0x0);}[jo(0x8f2)](){var mc=jo;this[mc(0x575)]=new aH(this[mc(0x261)],this,0x0,0x0);}['onChange'](){var md=jo;this[md(0x178)]++;}['clear'](){var me=jo;this[me(0x6f6)]&&this[me(0x6f6)]['identity'](),this[me(0x784)][me(0x1e6)](0x0,0x0,0x0),this[me(0x806)][me(0x1e6)](0x1,0x1,0x1),this['euler']['set'](0x0,0x0,0x0),this['pivot'][me(0x1e6)](0x0,0x0,0x0),super['clear']();}[jo(0x407)](bc){var mf=jo;if(0x0===this[mf(0x178)])return void this[mf(0x689)]['copyFrom'](bc);const bd=this[mf(0x689)],be=this['euler'],bf=this[mf(0x784)],bg=this[mf(0x806)],bh=this[mf(0x575)];if(be[mf(0x9c2)](),!this[mf(0x7e3)])return bd[mf(0x5c9)](be['quaternion'],bf['_x'],bf['_y'],bf['_z'],bg['_x'],bg['_y'],bg['_z']),bd[mf(0x358)](-bh['_x'],-bh['_y'],-bh['_z']),void bd[mf(0x546)](bc,bd);bd[mf(0x546)](bc,this[mf(0x6f6)]),bd[mf(0x358)](bh['_x'],bh['_y'],bh['_z']),bd['scale'](0x1/bg['_x'],0x1/bg['_y'],0x1/bg['_z']),aM[mf(0x5c9)](be[mf(0x44a)],0x0,0x0,0x0,0x1,0x1,0x1),bd[mf(0x916)](bd,aM),bd[mf(0x358)](-bf['_x'],-bf['_y'],-bf['_z']),this['local'][mf(0x78d)]++;}}class aO extends a7['W2']{constructor(){var mg=jo;super(),this[mg(0x7a6)]=new aN(this[mg(0xa07)]);}[jo(0xa0f)](bc=!0x1){var mh=jo;bc&&(this['_recursivePostUpdateTransform'](),this[mh(0x8c1)]());const bd=this['proj'][mh(0x504)][mh(0x1a9)],be=bd[0x0]*bd[0xf]-bd[0x3]*bd[0xc],bf=bd[0x1]*bd[0xf]-bd[0x3]*bd[0xd],bg=bd[0x4]*bd[0xf]-bd[0x7]*bd[0xc];return be*(bd[0x5]*bd[0xf]-bd[0x7]*bd[0xd])-bg*bf>0x0;}[jo(0x52c)](bc=!0x1){var mi=jo;bc&&(this[mi(0x423)](),this['displayObjectUpdateTransform']());const bd=this[mi(0x7a6)][mi(0x504)][mi(0x1a9)];return bd[0xe]/bd[0xf];}[jo(0x96a)](bc,bd,be,bf,bg=af['ALL']){var mj=jo;return bd&&(bc=bd['toGlobal'](bc,be,bf)),bf||this[mj(0x423)](),bg===af[mj(0x553)]?(bf||this[mj(0x8c1)](),this['proj']['affine']?this['transform']['worldTransform'][mj(0x177)](bc,be):this[mj(0x7a6)][mj(0x504)][mj(0x177)](bc,be)):(this[mj(0x454)]?be=this['parent'][mj(0x607)][mj(0x177)](bc,be):(be['x']=bc['x'],be['y']=bc['y'],be['z']=bc['z']),bg===af[mj(0x710)]||(be=this[mj(0xa07)]['localTransform']['applyInverse'](be,be),bg===af[mj(0x69d)]&&this[mj(0x7a6)][mj(0x7e3)]&&(be=this['proj'][mj(0x6f6)][mj(0x177)](be,be))),be);}get[jo(0x607)](){var mk=jo;return this[mk(0x7a6)]['affine']?this[mk(0xa07)][mk(0x607)]:this['proj']['world'];}get[jo(0x276)](){var ml=jo;return this[ml(0x7a6)][ml(0x784)];}set[jo(0x276)](bc){var mm=jo;this[mm(0x7a6)]['position'][mm(0x5dd)](bc);}get[jo(0x712)](){var mn=jo;return this[mn(0x7a6)][mn(0x806)];}set[jo(0x712)](bc){var mo=jo;this[mo(0x7a6)][mo(0x806)][mo(0x5dd)](bc);}get[jo(0x5c8)](){var mp=jo;return this[mp(0x7a6)]['euler'];}set['euler'](bc){var mq=jo;this[mq(0x7a6)]['euler'][mq(0x5dd)](bc);}get['pivot3d'](){var mr=jo;return this['proj'][mr(0x575)];}set[jo(0x771)](bc){var ms=jo;this[ms(0x7a6)][ms(0x575)]['copyFrom'](bc);}}const aP=aO[jo(0x6cb)][jo(0x96a)],aQ=aO[jo(0x6cb)][jo(0x52c)],aR=aO[jo(0x6cb)][jo(0xa0f)];class aS extends aO{constructor(){var mt=jo;super(),aS[mt(0x6cb)][mt(0x4b8)][mt(0x6ca)](this),aS[mt(0x6cb)]['__init2'][mt(0x6ca)](this),aS[mt(0x6cb)][mt(0x170)]['call'](this),aS[mt(0x6cb)][mt(0x418)][mt(0x6ca)](this),this['proj']['cameraMode']=!0x0,this[mt(0x71c)](0x190,0xa,0x2710,!0x1);}['__init'](){var mu=jo;this[mu(0x6ee)]=0x0;}[jo(0x71b)](){this['_near']=0x0;}[jo(0x170)](){var mv=jo;this[mv(0x49c)]=0x0;}[jo(0x418)](){this['_orthographic']=!0x1;}get[jo(0x8eb)](){var mw=jo;return this[mw(0x6ee)];}get[jo(0x19c)](){var mx=jo;return this[mx(0x889)];}get[jo(0x4aa)](){return this['_focus'];}get[jo(0x60e)](){return this['_orthographic'];}[jo(0x71c)](bc,bd=0xa,be=0x2710,bf=!0x1){var my=jo;this[my(0x49c)]=bc,this[my(0x889)]=bd,this[my(0x6ee)]=be,this[my(0x1c2)]=bf;const bg=this[my(0x7a6)],bh=bg[my(0x6f6)][my(0x1a9)];bg[my(0x178)]++,bh[0xa]=0x1/(be-bd),bh[0xe]=(bc-bd)/(be-bd),this[my(0x1c2)]?bh[0xb]=0x0:bh[0xb]=0x1/bc;}}class aT extends a9['Kj']{constructor(bc,bd,be,bf){var mz=jo;super(bc,bd,be,bf),aT[mz(0x6cb)][mz(0x4b8)][mz(0x6ca)](this),this[mz(0x7a6)]=new aN(this[mz(0xa07)]);}[jo(0x4b8)](){var mA=jo;this[mA(0x6e1)]=null;}[jo(0x5f2)](){var mB=jo;if(this[mB(0x7a6)][mB(0x8b2)])return this[mB(0x6e1)]=null,void super[mB(0x5f2)]();const bc=this[mB(0x54d)],bd=bc[mB(0x503)][0x0][mB(0x329)],be=this;if(bc[mB(0x97e)]===be[mB(0x99e)]&&be[mB(0x29d)]===be[mB(0xa07)][mB(0x5dc)])return;be['_transformID']=be['transform']['_worldID'],be['vertexData']['length']!==bd[mB(0x61d)]&&(be[mB(0x826)]=new Float32Array(bd[mB(0x61d)])),this['vertexData2d']&&this[mB(0x6e1)][mB(0x61d)]===0x3*bd[mB(0x61d)]/0x2||(this[mB(0x6e1)]=new Float32Array(0x3*bd[mB(0x61d)]));const bf=this[mB(0x7a6)][mB(0x504)][mB(0x1a9)],bg=this[mB(0x6e1)],bh=be[mB(0x826)];for(let bi=0x0;bi<bh[mB(0x61d)]/0x2;bi++){const bj=bd[0x2*bi],bk=bd[0x2*bi+0x1],bl=bf[0x0]*bj+bf[0x4]*bk+bf[0xc],bm=bf[0x1]*bj+bf[0x5]*bk+bf[0xd],bn=bf[0x3]*bj+bf[0x7]*bk+bf[0xf];bg[0x3*bi]=bl,bg[0x3*bi+0x1]=bm,bg[0x3*bi+0x2]=bn,bh[0x2*bi]=bl/bn,bh[0x2*bi+0x1]=bm/bn;}be['vertexDirty']=bc[mB(0x97e)];}get[jo(0x607)](){var mC=jo;return this['proj']['affine']?this[mC(0xa07)][mC(0x607)]:this[mC(0x7a6)][mC(0x504)];}['toLocal'](bc,bd,be,bf,bg=af[jo(0x553)]){var mD=jo;return aP[mD(0x6ca)](this,bc,bd,be,bf,bg);}[jo(0xa0f)](bc){return aR['call'](this,bc);}['getDepth'](bc){var mE=jo;return aQ[mE(0x6ca)](this,bc);}get[jo(0x276)](){var mF=jo;return this[mF(0x7a6)]['position'];}set[jo(0x276)](bc){var mG=jo;this['proj'][mG(0x784)]['copyFrom'](bc);}get['scale3d'](){var mH=jo;return this[mH(0x7a6)][mH(0x806)];}set[jo(0x712)](bc){var mI=jo;this[mI(0x7a6)][mI(0x806)][mI(0x5dd)](bc);}get[jo(0x5c8)](){var mJ=jo;return this['proj'][mJ(0x5c8)];}set[jo(0x5c8)](bc){var mK=jo;this[mK(0x7a6)][mK(0x5c8)]['copyFrom'](bc);}get[jo(0x771)](){var mL=jo;return this[mL(0x7a6)]['pivot'];}set[jo(0x771)](bc){var mM=jo;this[mM(0x7a6)][mM(0x575)][mM(0x5dd)](bc);}}aT['prototype']['_renderDefault']=ay[jo(0x6cb)][jo(0x799)];class aU extends ab['j']{constructor(bc){var mN=jo;super(bc),aU[mN(0x6cb)][mN(0x4b8)][mN(0x6ca)](this),aU['prototype'][mN(0x71b)][mN(0x6ca)](this),aU[mN(0x6cb)][mN(0x170)][mN(0x6ca)](this),this['proj']=new aN(this[mN(0xa07)]),this['pluginName']=mN(0x408);}['__init'](){var mO=jo;this[mO(0x6e1)]=null;}['__init2'](){var mP=jo;this[mP(0x614)]=!0x1;}[jo(0x170)](){this['trimmedCulledByFrustrum']=!0x1;}[jo(0x5f2)](){var mQ=jo;const bc=this[mQ(0x473)];if(this[mQ(0x7a6)][mQ(0x8b2)])return this[mQ(0x6e1)]=null,void super[mQ(0x5f2)]();this[mQ(0x6e1)]||(this[mQ(0x6e1)]=new Float32Array(0xc));const bd=this[mQ(0xa07)][mQ(0x5dc)],be=bc[mQ(0x6fa)];if(this['_transformID']===bd&&this[mQ(0x4e4)]===be)return;this[mQ(0x4e4)]!==be&&(this['uvs']=bc[mQ(0x9fb)]['uvsFloat32']),this['_transformID']=bd,this['_textureID']=be;const bf=this['proj'][mQ(0x504)][mQ(0x1a9)],bg=this[mQ(0x6e1)],bh=this[mQ(0x826)],bi=bc[mQ(0x518)],bj=bc[mQ(0x910)],bk=this[mQ(0x1bb)];let bl,bm,bn,bo;bi?(bm=bi['x']-bk['_x']*bj[mQ(0x5fb)],bl=bm+bi[mQ(0x5fb)],bo=bi['y']-bk['_y']*bj['height'],bn=bo+bi[mQ(0x8ec)]):(bm=-bk['_x']*bj[mQ(0x5fb)],bl=bm+bj[mQ(0x5fb)],bo=-bk['_y']*bj[mQ(0x8ec)],bn=bo+bj[mQ(0x8ec)]);let bp,bq=!0x1;bg[0x0]=bf[0x0]*bm+bf[0x4]*bo+bf[0xc],bg[0x1]=bf[0x1]*bm+bf[0x5]*bo+bf[0xd],bp=bf[0x2]*bm+bf[0x6]*bo+bf[0xe],bg[0x2]=bf[0x3]*bm+bf[0x7]*bo+bf[0xf],bq=bq||bp<0x0,bg[0x3]=bf[0x0]*bl+bf[0x4]*bo+bf[0xc],bg[0x4]=bf[0x1]*bl+bf[0x5]*bo+bf[0xd],bp=bf[0x2]*bl+bf[0x6]*bo+bf[0xe],bg[0x5]=bf[0x3]*bl+bf[0x7]*bo+bf[0xf],bq=bq||bp<0x0,bg[0x6]=bf[0x0]*bl+bf[0x4]*bn+bf[0xc],bg[0x7]=bf[0x1]*bl+bf[0x5]*bn+bf[0xd],bp=bf[0x2]*bl+bf[0x6]*bn+bf[0xe],bg[0x8]=bf[0x3]*bl+bf[0x7]*bn+bf[0xf],bq=bq||bp<0x0,bg[0x9]=bf[0x0]*bm+bf[0x4]*bn+bf[0xc],bg[0xa]=bf[0x1]*bm+bf[0x5]*bn+bf[0xd],bp=bf[0x2]*bm+bf[0x6]*bn+bf[0xe],bg[0xb]=bf[0x3]*bm+bf[0x7]*bn+bf[0xf],bq=bq||bp<0x0,this['culledByFrustrum']=bq,bh[0x0]=bg[0x0]/bg[0x2],bh[0x1]=bg[0x1]/bg[0x2],bh[0x2]=bg[0x3]/bg[0x5],bh[0x3]=bg[0x4]/bg[0x5],bh[0x4]=bg[0x6]/bg[0x8],bh[0x5]=bg[0x7]/bg[0x8],bh[0x6]=bg[0x9]/bg[0xb],bh[0x7]=bg[0xa]/bg[0xb];}['calculateTrimmedVertices'](){var mR=jo;if(this['proj']['_affine'])return void super['calculateTrimmedVertices']();const bc=this[mR(0xa07)][mR(0x5dc)],bd=this['_texture']['_updateID'],be=this;if(be[mR(0x4d7)]){if(be[mR(0x9a9)]===bc&&this[mR(0x9ec)]===bd)return;}else be[mR(0x4d7)]=new Float32Array(0x8);be[mR(0x9a9)]=bc,this[mR(0x9ec)]=bd;const bf=this[mR(0x473)],bg=be['vertexTrimmedData'],bh=bf[mR(0x910)],bi=this[mR(0x1bb)],bj=this['proj'][mR(0x504)][mR(0x1a9)],bk=-bi['_x']*bh[mR(0x5fb)],bl=bk+bh[mR(0x5fb)],bm=-bi['_y']*bh['height'],bn=bm+bh['height'];let bo,bp=!0x1,bq=0x1/(bj[0x3]*bk+bj[0x7]*bm+bj[0xf]);bg[0x0]=bq*(bj[0x0]*bk+bj[0x4]*bm+bj[0xc]),bg[0x1]=bq*(bj[0x1]*bk+bj[0x5]*bm+bj[0xd]),bo=bj[0x2]*bk+bj[0x6]*bm+bj[0xe],bp=bp||bo<0x0,bq=0x1/(bj[0x3]*bl+bj[0x7]*bm+bj[0xf]),bg[0x2]=bq*(bj[0x0]*bl+bj[0x4]*bm+bj[0xc]),bg[0x3]=bq*(bj[0x1]*bl+bj[0x5]*bm+bj[0xd]),bo=bj[0x2]*bl+bj[0x6]*bm+bj[0xe],bp=bp||bo<0x0,bq=0x1/(bj[0x3]*bl+bj[0x7]*bn+bj[0xf]),bg[0x4]=bq*(bj[0x0]*bl+bj[0x4]*bn+bj[0xc]),bg[0x5]=bq*(bj[0x1]*bl+bj[0x5]*bn+bj[0xd]),bo=bj[0x2]*bl+bj[0x6]*bn+bj[0xe],bp=bp||bo<0x0,bq=0x1/(bj[0x3]*bk+bj[0x7]*bn+bj[0xf]),bg[0x6]=bq*(bj[0x0]*bk+bj[0x4]*bn+bj[0xc]),bg[0x7]=bq*(bj[0x1]*bk+bj[0x5]*bn+bj[0xd]),bo=bj[0x2]*bk+bj[0x6]*bn+bj[0xe],bp=bp||bo<0x0,this[mR(0x614)]=bp;}[jo(0x703)](){var mS=jo;if(this['calculateVertices'](),this[mS(0x614)])return;const bc=this[mS(0x473)]['trim'],bd=this[mS(0x473)][mS(0x910)];!bc||bc[mS(0x5fb)]===bd[mS(0x5fb)]&&bc[mS(0x8ec)]===bd[mS(0x8ec)]?this[mS(0x1c3)]['addQuad'](this[mS(0x826)]):(this[mS(0x920)](),this[mS(0x796)]||this[mS(0x1c3)][mS(0x24d)](this['vertexTrimmedData']));}[jo(0x2fb)](bc){var mT=jo;this[mT(0x5f2)](),this['culledByFrustrum']||(bc[mT(0x862)][mT(0x8de)](bc[mT(0x4a2)][this[mT(0x520)]]),bc['plugins'][this[mT(0x520)]][mT(0x5bb)](this));}[jo(0x655)](bc){var mU=jo;return!this[mU(0x614)]&&super[mU(0x655)](bc);}get['worldTransform'](){var mV=jo;return this[mV(0x7a6)]['affine']?this[mV(0xa07)][mV(0x607)]:this[mV(0x7a6)][mV(0x504)];}['toLocal'](bc,bd,be,bf,bg=af[jo(0x553)]){var mW=jo;return aP[mW(0x6ca)](this,bc,bd,be,bf,bg);}[jo(0xa0f)](bc){return aR['call'](this,bc);}[jo(0x52c)](bc){var mX=jo;return aQ[mX(0x6ca)](this,bc);}get[jo(0x276)](){var mY=jo;return this[mY(0x7a6)][mY(0x784)];}set['position3d'](bc){var mZ=jo;this[mZ(0x7a6)][mZ(0x784)]['copyFrom'](bc);}get[jo(0x712)](){var n0=jo;return this[n0(0x7a6)][n0(0x806)];}set[jo(0x712)](bc){var n1=jo;this[n1(0x7a6)]['scale'][n1(0x5dd)](bc);}get[jo(0x5c8)](){var n2=jo;return this['proj'][n2(0x5c8)];}set[jo(0x5c8)](bc){this['proj']['euler']['copyFrom'](bc);}get['pivot3d'](){var n3=jo;return this[n3(0x7a6)][n3(0x575)];}set[jo(0x771)](bc){var n4=jo;this['proj'][n4(0x575)][n4(0x5dd)](bc);}}const aV={'worldTransform':{'get':function(){var n5=jo;return this[n5(0x7a6)][n5(0x51a)]?this[n5(0xa07)][n5(0x607)]:this['proj']['world'];},'enumerable':!0x0,'configurable':!0x0},'position3d':{'get'(){var n6=jo;return this[n6(0x7a6)][n6(0x784)];},'set'(bc){var n7=jo;this['proj'][n7(0x784)][n7(0x4f2)](bc);}},'scale3d':{'get'(){var n8=jo;return this[n8(0x7a6)][n8(0x806)];},'set'(bc){var n9=jo;this[n9(0x7a6)][n9(0x806)][n9(0x4f2)](bc);}},'pivot3d':{'get'(){var na=jo;return this[na(0x7a6)]['pivot'];},'set'(bc){var nb=jo;this[nb(0x7a6)][nb(0x575)][nb(0x4f2)](bc);}},'euler':{'get'(){var nc=jo;return this[nc(0x7a6)][nc(0x5c8)];},'set'(bc){var nd=jo;this['proj'][nd(0x5c8)][nd(0x4f2)](bc);}}};function aW(){var ne=jo;this['proj']||(this[ne(0x7a6)]=new aN(this[ne(0xa07)]),this[ne(0x96a)]=aO[ne(0x6cb)][ne(0x96a)],this[ne(0xa0f)]=aO['prototype'][ne(0xa0f)],this[ne(0x52c)]=aO[ne(0x6cb)][ne(0x52c)],Object[ne(0xa28)](this,aV));}a7['W2']['prototype'][jo(0x4ee)]=aW,ab['j'][jo(0x6cb)][jo(0x4ee)]=function(){var nf=jo;this[nf(0x7a6)]||(this[nf(0x5f2)]=aU['prototype'][nf(0x5f2)],this['calculateTrimmedVertices']=aU[nf(0x6cb)][nf(0x920)],this['_calculateBounds']=aU[nf(0x6cb)][nf(0x703)],this[nf(0x655)]=aU['prototype'][nf(0x655)],this[nf(0x520)]=nf(0x408),aW[nf(0x6ca)](this));},a7['W2'][jo(0x6cb)]['convertSubtreeTo3d']=function(){var ng=jo;this['convertTo3d']();for(let bc=0x0;bc<this['children'][ng(0x61d)];bc++)this['children'][bc][ng(0x982)]();},aa['AL'][jo(0x6cb)][jo(0x4ee)]=aa['IE']['prototype'][jo(0x4ee)]=function(){var nh=jo;this['proj']||(this[nh(0x5f2)]=aT[nh(0x6cb)][nh(0x5f2)],this[nh(0x799)]=aT[nh(0x6cb)][nh(0x799)],nh(0x408)!==this['material'][nh(0x520)]&&(this['material']=new a9['rY'](this[nh(0x210)][nh(0x732)],{'program':a3[nh(0x4e2)][nh(0x1d4)](ay[nh(0x848)],ay[nh(0x7d4)]),'pluginName':nh(0x408)})),aW[nh(0x6ca)](this));};class aX extends ac['xv']{constructor(bc,bd,be){var ni=jo;super(bc,bd,be),aX[ni(0x6cb)]['__init'][ni(0x6ca)](this),this[ni(0x7a6)]=new aN(this[ni(0xa07)]),this[ni(0x520)]=ni(0x408);}['__init'](){this['vertexData2d']=null;}get[jo(0x607)](){var nj=jo;return this[nj(0x7a6)][nj(0x51a)]?this[nj(0xa07)][nj(0x607)]:this['proj'][nj(0x504)];}['toLocal'](bc,bd,be,bf,bg=af[jo(0x553)]){return aP['call'](this,bc,bd,be,bf,bg);}[jo(0xa0f)](bc){var nk=jo;return aR[nk(0x6ca)](this,bc);}[jo(0x52c)](bc){var nl=jo;return aQ[nl(0x6ca)](this,bc);}get[jo(0x276)](){var nm=jo;return this[nm(0x7a6)]['position'];}set['position3d'](bc){var nn=jo;this[nn(0x7a6)][nn(0x784)][nn(0x5dd)](bc);}get[jo(0x712)](){var no=jo;return this['proj'][no(0x806)];}set[jo(0x712)](bc){var np=jo;this[np(0x7a6)][np(0x806)][np(0x5dd)](bc);}get[jo(0x5c8)](){var nq=jo;return this[nq(0x7a6)][nq(0x5c8)];}set['euler'](bc){var nr=jo;this[nr(0x7a6)]['euler'][nr(0x5dd)](bc);}get['pivot3d'](){return this['proj']['pivot'];}set[jo(0x771)](bc){var ns=jo;this[ns(0x7a6)]['pivot'][ns(0x5dd)](bc);}}var aY;aX['prototype'][jo(0x5f2)]=aU[jo(0x6cb)][jo(0x5f2)],aX[jo(0x6cb)][jo(0x920)]=aU['prototype'][jo(0x920)],aX[jo(0x6cb)]['_calculateBounds']=aU[jo(0x6cb)][jo(0x703)],aX[jo(0x6cb)]['containsPoint']=aU[jo(0x6cb)][jo(0x655)],aX[jo(0x6cb)][jo(0x2fb)]=aU['prototype'][jo(0x2fb)];class aZ extends a3[jo(0x314)]{constructor(bc=!0x1){var nt=jo;super(),this[nt(0x215)]=new a3['Buffer'](null,bc,!0x1),this[nt(0x2ef)]=new a3[(nt(0x694))](null,bc,!0x0),this[nt(0x600)](nt(0x86c),this[nt(0x215)],0x2,!0x1,a4['vK'][nt(0x71f)])[nt(0x600)]('aTrans1',this[nt(0x215)],0x3,!0x1,a4['vK'][nt(0x71f)])[nt(0x600)]('aTrans2',this['_buffer'],0x3,!0x1,a4['vK'][nt(0x71f)])[nt(0x600)](nt(0x3d8),this[nt(0x215)],0x2,!0x1,a4['vK']['FLOAT'])['addAttribute']('aFrame',this['_buffer'],0x4,!0x1,a4['vK']['FLOAT'])[nt(0x600)](nt(0x488),this[nt(0x215)],0x4,!0x0,a4['vK'][nt(0x450)])[nt(0x600)]('aTextureId',this[nt(0x215)],0x1,!0x0,a4['vK']['FLOAT'])['addIndex'](this[nt(0x2ef)]);}}const b0=[new a6['E9'](),new a6['E9'](),new a6['E9'](),new a6['E9']()],b1=[0x0,0x0,0x0,0x0];class b2{constructor(){var nu=jo;b2['prototype'][nu(0x4b8)][nu(0x6ca)](this),b2['prototype'][nu(0x71b)]['call'](this),b2[nu(0x6cb)][nu(0x170)][nu(0x6ca)](this),b2[nu(0x6cb)]['__init4'][nu(0x6ca)](this);}[jo(0x4b8)](){var nv=jo;this[nv(0x346)]='default';}['__init2'](){var nw=jo;this[nw(0x6fa)]=0x0;}[jo(0x170)](){this['vertexSrc']='';}[jo(0x418)](){this['fragmentSrc']='';}[jo(0x6fb)](bc){}[jo(0x263)](){}[jo(0x97b)](bc,bd,be){var nx=jo;let bf=bd[0x0],bg=bd[0x1],bh=bd[0x0],bi=bd[0x1];for(let bj=0x2;bj<0x8;bj+=0x2)bf>bd[bj]&&(bf=bd[bj]),bh<bd[bj]&&(bh=bd[bj]),bg>bd[bj+0x1]&&(bg=bd[bj+0x1]),bi<bd[bj+0x1]&&(bi=bd[bj+0x1]);if(b0[0x0][nx(0x1e6)](bf,bg),this[nx(0x1ea)](b0[0x0],b0[0x0]),b0[0x1][nx(0x1e6)](bh,bg),this[nx(0x1ea)](b0[0x1],b0[0x1]),b0[0x2][nx(0x1e6)](bh,bi),this[nx(0x1ea)](b0[0x2],b0[0x2]),b0[0x3][nx(0x1e6)](bf,bi),this[nx(0x1ea)](b0[0x3],b0[0x3]),be)be[nx(0x1ea)](b0[0x0],b0[0x0]),be[nx(0x1ea)](b0[0x1],b0[0x1]),be[nx(0x1ea)](b0[0x2],b0[0x2]),be['apply'](b0[0x3],b0[0x3]),bd[0x0]=b0[0x0]['x'],bd[0x1]=b0[0x0]['y'],bd[0x2]=b0[0x1]['x'],bd[0x3]=b0[0x1]['y'],bd[0x4]=b0[0x2]['x'],bd[0x5]=b0[0x2]['y'],bd[0x6]=b0[0x3]['x'],bd[0x7]=b0[0x3]['y'];else{for(let bk=0x1;bk<=0x3;bk++)if(b0[bk]['y']<b0[0x0]['y']||b0[bk]['y']===b0[0x0]['y']&&b0[bk]['x']<b0[0x0]['x']){const bl=b0[0x0];b0[0x0]=b0[bk],b0[bk]=bl;}for(let bm=0x1;bm<=0x3;bm++)b1[bm]=Math['atan2'](b0[bm]['y']-b0[0x0]['y'],b0[bm]['x']-b0[0x0]['x']);for(let bn=0x1;bn<=0x3;bn++)for(let bo=bn+0x1;bo<=0x3;bo++)if(b1[bn]>b1[bo]){const bp=b0[bn];b0[bn]=b0[bo],b0[bo]=bp;const bq=b1[bn];b1[bn]=b1[bo],b1[bo]=bq;}if(bd[0x0]=b0[0x0]['x'],bd[0x1]=b0[0x0]['y'],bd[0x2]=b0[0x1]['x'],bd[0x3]=b0[0x1]['y'],bd[0x4]=b0[0x2]['x'],bd[0x5]=b0[0x2]['y'],bd[0x6]=b0[0x3]['x'],bd[0x7]=b0[0x3]['y'],(b0[0x3]['x']-b0[0x2]['x'])*(b0[0x1]['y']-b0[0x2]['y'])-(b0[0x1]['x']-b0[0x2]['x'])*(b0[0x3]['y']-b0[0x2]['y'])<0x0)return bd[0x4]=b0[0x3]['x'],void(bd[0x5]=b0[0x3]['y']);}}}const b3=new a6['y3'](),b4=new a6['Ae'](),b5=new a6['E9']();class b6 extends b2{constructor(...bc){var ny=jo;super(...bc),b6[ny(0x6cb)][ny(0x4b8)]['call'](this);}['__init'](){var nz=jo;this[nz(0x5bc)]=new a6['E9']();}[jo(0x263)](){var nA=jo;this[nA(0x5bc)][nA(0x1e6)](0x0,0x0);}['apply'](bc,bd){var nB=jo;bd=bd||new a6['E9']();const be=this[nB(0x5bc)],bf=bc['x']*bc['y'];return bd['x']=bc['x']+be['x']*bf,bd['y']=bc['y']+be['y']*bf,bd;}[jo(0x177)](bc,bd){var nC=jo;bd=bd||new a6['E9']();const be=bc['x'],bf=bc['y'],bg=this[nC(0x5bc)]['x'],bh=this[nC(0x5bc)]['y'];if(0x0===bg)bd['x']=be,bd['y']=bf/(0x1+bh*be);else{if(0x0===bh)bd['y']=bf,bd['x']=be/(0x1+bg*bf);else{const bi=0.5*(bf*bg-be*bh+0x1)/bh,bj=bi*bi+be/bh;if(bj<=0.00001)return bd[nC(0x1e6)](NaN,NaN),bd;bd['x']=bh>0x0?-bi+Math[nC(0x43c)](bj):-bi-Math[nC(0x43c)](bj),bd['y']=(be/bd['x']-0x1)/bg;}}return bd;}[jo(0x6a8)](bc,bd,be){var nD=jo;const bf=bc[nD(0x732)];return b4['x']=-bc[nD(0x9eb)]['x']*bf[nD(0x910)][nD(0x5fb)],b4['y']=-bc[nD(0x9eb)]['y']*bf[nD(0x910)][nD(0x8ec)],b4['width']=bf[nD(0x910)][nD(0x5fb)],b4['height']=bf['orig']['height'],this[nD(0x8a1)](b4,bd,be||bc[nD(0xa07)]);}[jo(0x8a1)](bc,bd,be){var nE=jo;const bf=-bc['x']/bc['width'],bg=-bc['y']/bc[nE(0x8ec)],bh=(0x1-bc['x'])/bc[nE(0x5fb)],bi=(0x1-bc['y'])/bc[nE(0x8ec)],bj=bd[0x0]['x']*(0x1-bf)+bd[0x1]['x']*bf,bk=bd[0x0]['y']*(0x1-bf)+bd[0x1]['y']*bf,bl=bd[0x0]['x']*(0x1-bh)+bd[0x1]['x']*bh,bm=bd[0x0]['y']*(0x1-bh)+bd[0x1]['y']*bh,bn=bd[0x3]['x']*(0x1-bf)+bd[0x2]['x']*bf,bo=bd[0x3]['y']*(0x1-bf)+bd[0x2]['y']*bf,bp=bd[0x3]['x']*(0x1-bh)+bd[0x2]['x']*bh,bq=bd[0x3]['y']*(0x1-bh)+bd[0x2]['y']*bh,br=bj*(0x1-bg)+bn*bg,bs=bk*(0x1-bg)+bo*bg,bt=bl*(0x1-bg)+bp*bg,bu=bm*(0x1-bg)+bq*bg,bv=bj*(0x1-bi)+bn*bi,bw=bk*(0x1-bi)+bo*bi,bx=bl*(0x1-bi)+bp*bi,by=bm*(0x1-bi)+bq*bi,bz=b3;return bz['tx']=br,bz['ty']=bs,bz['a']=bt-br,bz['b']=bu-bs,bz['c']=bv-br,bz['d']=bw-bs,b5[nE(0x1e6)](bx,by),bz[nE(0x177)](b5,b5),this[nE(0x5bc)][nE(0x1e6)](b5['x']-0x1,b5['y']-0x1),be[nE(0x7f0)](bz),this;}[jo(0x6fb)](bc){var nF=jo;bc[nF(0x5bc)]=bc[nF(0x5bc)]||new Float32Array([0x0,0x0,0x0,0x0]);const bd=Math['abs'](this[nF(0x5bc)]['x']),be=Math[nF(0x277)](this['distortion']['y']);bc[nF(0x5bc)][0x0]=0x2710*bd<=be?0x0:this['distortion']['x'],bc[nF(0x5bc)][0x1]=0x2710*be<=bd?0x0:this['distortion']['y'],bc[nF(0x5bc)][0x2]=0x1/bc[nF(0x5bc)][0x0],bc[nF(0x5bc)][0x3]=0x1/bc[nF(0x5bc)][0x1];}}const b7=a6['wx'][jo(0x6cb)][jo(0x74a)];function b8(bc){var nG=jo;const bd=this['proj'],be=bc['proj'],bf=this;return be?be[nG(0x287)]?(bd[nG(0x7db)]=be,this[nG(0x407)](),this[nG(0x9ca)][nG(0x63b)](this[nG(0x607)]),void(bf[nG(0x727)]<0x0&&++bf[nG(0x5dc)])):(b7[nG(0x6ca)](this,bc),void(bd[nG(0x7db)]=be['_activeProjection'])):(b7[nG(0x6ca)](this,bc),void(bd[nG(0x7db)]=null));}class b9 extends ae{constructor(...bc){var nH=jo;super(...bc),b9[nH(0x6cb)][nH(0x4b8)][nH(0x6ca)](this),b9[nH(0x6cb)][nH(0x71b)][nH(0x6ca)](this),b9[nH(0x6cb)][nH(0x170)][nH(0x6ca)](this),b9['prototype'][nH(0x418)]['call'](this),b9[nH(0x6cb)][nH(0x855)]['call'](this);}['__init'](){this['_surface']=null;}['__init2'](){var nI=jo;this[nI(0x7db)]=null;}set[jo(0x7df)](bc){var nJ=jo;bc!==this[nJ(0x776)]&&(this['_enabled']=bc,bc?(this['legacy']['updateTransform']=b8,this[nJ(0x1b9)][nJ(0x727)]=-0x1):(this[nJ(0x1b9)][nJ(0x74a)]=a6['wx']['prototype']['updateTransform'],this[nJ(0x1b9)][nJ(0x727)]=-0x1));}get[jo(0x8c2)](){var nK=jo;return this[nK(0x287)];}set[jo(0x8c2)](bc){var nL=jo;this['_surface']!==bc&&(this[nL(0x287)]=bc||null,this['legacy'][nL(0x727)]=-0x1);}[jo(0x895)](bc,bd){var nM=jo;return null!==this['_activeProjection']?(bd=this[nM(0x1b9)][nM(0x607)]['apply'](bc,bd),this['_activeProjection'][nM(0x8c2)][nM(0x1ea)](bd,bd)):null!==this[nM(0x287)]?this[nM(0x8c2)][nM(0x1ea)](bc,bd):this[nM(0x1b9)]['worldTransform'][nM(0x1ea)](bc,bd);}[jo(0x1ea)](bc,bd){var nN=jo;return null!==this[nN(0x7db)]?(bd=this['legacy'][nN(0x607)][nN(0x1ea)](bc,bd),this[nN(0x7db)][nN(0x8c2)]['apply'](bd,bd),this[nN(0x7db)]['legacy'][nN(0x607)][nN(0x1ea)](bd,bd)):null!==this['_surface']?(bd=this[nN(0x8c2)][nN(0x1ea)](bc,bd),this[nN(0x1b9)][nN(0x607)][nN(0x1ea)](bd,bd)):this[nN(0x1b9)]['worldTransform']['apply'](bc,bd);}[jo(0x177)](bc,bd){var nO=jo;return null!==this[nO(0x7db)]?(bd=this['_activeProjection'][nO(0x1b9)][nO(0x607)][nO(0x177)](bc,bd),this[nO(0x7db)][nO(0x287)]['applyInverse'](bd,bd),this[nO(0x1b9)][nO(0x607)][nO(0x177)](bd,bd)):null!==this[nO(0x287)]?(bd=this[nO(0x1b9)][nO(0x607)][nO(0x177)](bc,bd),this[nO(0x287)][nO(0x177)](bd,bd)):this['legacy'][nO(0x607)][nO(0x177)](bc,bd);}[jo(0x4b4)](bc,bd){var nP=jo;this['_surface']instanceof b6||(this[nP(0x8c2)]=new b6()),this[nP(0x8c2)]['mapSprite'](bc,bd,this[nP(0x1b9)]);}[jo(0x170)](){var nQ=jo;this[nQ(0x48d)]=-0x1;}['__init4'](){this['_currentLegacyID']=-0x1;}[jo(0x855)](){var nR=jo;this[nR(0x391)]=null;}[jo(0x263)](){var nS=jo;this[nS(0x8c2)]&&this[nS(0x8c2)]['clear']();}get[jo(0xa2a)](){var nT=jo;return this[nT(0x931)]===this['legacy']['_worldID']&&this[nT(0x48d)]===this[nT(0x8c2)][nT(0x6fa)]||(this[nT(0x391)]=this['_lastUniforms']||{},this['_lastUniforms'][nT(0x4a0)]=this[nT(0x1b9)]['worldTransform'],this[nT(0x287)][nT(0x6fb)](this[nT(0x391)])),this[nT(0x391)];}}class ba extends ab['j']{constructor(bc){var nU=jo;super(bc),ba[nU(0x6cb)][nU(0x4b8)][nU(0x6ca)](this),this[nU(0x7a6)]=new b9(this['transform']),this[nU(0x520)]=nU(0x8c8);}[jo(0x4b8)](){var nV=jo;this[nV(0x9b0)]=new a6['y3']();}[jo(0x703)](){var nW=jo;this[nW(0x920)](),this[nW(0x1c3)]['addQuad'](this[nW(0x4d7)]);}[jo(0x5f2)](){var nX=jo;const bc=this[nX(0xa07)][nX(0x5dc)],bd=this[nX(0x473)]['_updateID'];if(this[nX(0x29d)]===bc&&this[nX(0x4e4)]===bd)return;this[nX(0x29d)]=bc,this[nX(0x4e4)]=bd;const be=this[nX(0x473)],bf=this['vertexData'],bg=be[nX(0x518)],bh=be['orig'],bi=this[nX(0x1bb)];let bj,bk,bl,bm;if(bg?(bk=bg['x']-bi['_x']*bh[nX(0x5fb)],bj=bk+bg['width'],bm=bg['y']-bi['_y']*bh[nX(0x8ec)],bl=bm+bg[nX(0x8ec)]):(bk=-bi['_x']*bh['width'],bj=bk+bh[nX(0x5fb)],bm=-bi['_y']*bh[nX(0x8ec)],bl=bm+bh[nX(0x8ec)]),this['proj']['_surface'])bf[0x0]=bk,bf[0x1]=bm,bf[0x2]=bj,bf[0x3]=bm,bf[0x4]=bj,bf[0x5]=bl,bf[0x6]=bk,bf[0x7]=bl,this[nX(0x7a6)][nX(0x287)]['boundsQuad'](bf,bf);else{const bo=this[nX(0xa07)][nX(0x607)],bp=bo['a'],bq=bo['b'],br=bo['c'],bs=bo['d'],bt=bo['tx'],bu=bo['ty'];bf[0x0]=bp*bk+br*bm+bt,bf[0x1]=bs*bm+bq*bk+bu,bf[0x2]=bp*bj+br*bm+bt,bf[0x3]=bs*bm+bq*bj+bu,bf[0x4]=bp*bj+br*bl+bt,bf[0x5]=bs*bl+bq*bj+bu,bf[0x6]=bp*bk+br*bl+bt,bf[0x7]=bs*bl+bq*bk+bu,this['proj'][nX(0x7db)]&&this['proj']['_activeProjection'][nX(0x8c2)]['boundsQuad'](bf,bf);}be[nX(0x2f7)]||(be[nX(0x2f7)]=new a3[(nX(0x2ee))](be)),be[nX(0x2f7)][nX(0x9c2)]();const bn=this[nX(0x9b0)];bn[nX(0x1e6)](bh['width'],0x0,0x0,bh[nX(0x8ec)],bk,bm),null===this[nX(0x7a6)]['_surface']&&bn[nX(0x245)](this[nX(0xa07)]['worldTransform']),bn[nX(0x947)](),bn[nX(0x245)](be[nX(0x2f7)][nX(0x480)]);}[jo(0x920)](){var nY=jo;const bc=this[nY(0xa07)][nY(0x5dc)],bd=this[nY(0x473)][nY(0x6fa)],be=this;if(be[nY(0x4d7)]){if(be[nY(0x9a9)]===bc&&this[nY(0x9ec)]===bd)return;}else be['vertexTrimmedData']=new Float32Array(0x8);be['_transformTrimmedID']=bc,this[nY(0x9ec)]=bd;const bf=this[nY(0x473)],bg=be[nY(0x4d7)],bh=bf['orig'],bi=this[nY(0x1bb)],bj=-bi['_x']*bh[nY(0x5fb)],bk=bj+bh[nY(0x5fb)],bl=-bi['_y']*bh[nY(0x8ec)],bm=bl+bh[nY(0x8ec)];if(this[nY(0x7a6)][nY(0x287)])bg[0x0]=bj,bg[0x1]=bl,bg[0x2]=bk,bg[0x3]=bl,bg[0x4]=bk,bg[0x5]=bm,bg[0x6]=bj,bg[0x7]=bm,this[nY(0x7a6)][nY(0x287)][nY(0x97b)](bg,bg,this[nY(0xa07)][nY(0x607)]);else{const bn=this[nY(0xa07)][nY(0x607)],bo=bn['a'],bp=bn['b'],bq=bn['c'],br=bn['d'],bs=bn['tx'],bt=bn['ty'];bg[0x0]=bo*bj+bq*bl+bs,bg[0x1]=br*bl+bp*bj+bt,bg[0x2]=bo*bk+bq*bl+bs,bg[0x3]=br*bl+bp*bk+bt,bg[0x4]=bo*bk+bq*bm+bs,bg[0x5]=br*bm+bp*bk+bt,bg[0x6]=bo*bj+bq*bm+bs,bg[0x7]=br*bm+bp*bj+bt,this[nY(0x7a6)]['_activeProjection']&&this[nY(0x7a6)][nY(0x7db)]['surface']['boundsQuad'](bg,bg,this['proj'][nY(0x7db)]['legacy'][nY(0x607)]);}}get[jo(0x607)](){return this['proj'];}}ab['j'][jo(0x6cb)][jo(0x9d6)]=function(){var nZ=jo;this[nZ(0x7a6)]||(this['pluginName']='sprite_bilinear',this[nZ(0x9b0)]=new a6['y3'](),this[nZ(0x5f2)]=ba[nZ(0x6cb)][nZ(0x5f2)],this[nZ(0x920)]=ba[nZ(0x6cb)][nZ(0x920)],this[nZ(0x703)]=ba[nZ(0x6cb)][nZ(0x703)],a7['W2'][nZ(0x6cb)][nZ(0x9d6)][nZ(0x6ca)](this));},a7['W2']['prototype']['convertTo2s']=function(){var o0=jo;this[o0(0x7a6)]||(this['proj']=new b9(this['transform']),Object[o0(0x182)](this,o0(0x607),{'get'(){var o1=o0;return this[o1(0x7a6)];},'enumerable':!0x0,'configurable':!0x0}));},a7['W2'][jo(0x6cb)]['convertSubtreeTo2s']=function(){var o2=jo;this['convertTo2s']();for(let bc=0x0;bc<this[o2(0x774)][o2(0x61d)];bc++)this[o2(0x774)][bc][o2(0x904)]();};class bb extends ac['xv']{constructor(bc,bd,be){var o3=jo;super(bc,bd,be),bb[o3(0x6cb)][o3(0x4b8)][o3(0x6ca)](this),this[o3(0x7a6)]=new b9(this['transform']),this['pluginName']=o3(0x8c8);}[jo(0x4b8)](){var o4=jo;this[o4(0x9b0)]=new a6['y3']();}get[jo(0x607)](){var o5=jo;return this[o5(0x7a6)];}}bb[jo(0x6cb)][jo(0x5f2)]=ba[jo(0x6cb)]['calculateVertices'],bb['prototype'][jo(0x920)]=ba[jo(0x6cb)]['calculateTrimmedVertices'],bb['prototype'][jo(0x703)]=ba[jo(0x6cb)][jo(0x703)],a3[jo(0x3ca)][jo(0x6c7)](jo(0x8c8),class{static['create'](bc){var o6=jo;const {vertex:bd,fragment:be,vertexSize:bf,geometryClass:bg}=Object['assign']({'vertex':o6(0x1a0),'fragment':'precision\x20highp\x20float;\x0avarying\x20vec2\x20vertexPosition;\x0avarying\x20vec3\x20vTrans1;\x0avarying\x20vec3\x20vTrans2;\x0avarying\x20vec2\x20vSamplerSize;\x0avarying\x20vec4\x20vFrame;\x0avarying\x20vec4\x20vColor;\x0avarying\x20float\x20vTextureId;\x0a\x0auniform\x20sampler2D\x20uSamplers[%count%];\x0auniform\x20vec4\x20distortion;\x0a\x0avoid\x20main(void){\x0avec2\x20surface;\x0avec2\x20surface2;\x0a\x0afloat\x20vx\x20=\x20vertexPosition.x;\x0afloat\x20vy\x20=\x20vertexPosition.y;\x0afloat\x20dx\x20=\x20distortion.x;\x0afloat\x20dy\x20=\x20distortion.y;\x0afloat\x20revx\x20=\x20distortion.z;\x0afloat\x20revy\x20=\x20distortion.w;\x0a\x0aif\x20(distortion.x\x20==\x200.0)\x20{\x0asurface.x\x20=\x20vx;\x0asurface.y\x20=\x20vy\x20/\x20(1.0\x20+\x20dy\x20*\x20vx);\x0asurface2\x20=\x20surface;\x0a}\x20else\x0aif\x20(distortion.y\x20==\x200.0)\x20{\x0asurface.y\x20=\x20vy;\x0asurface.x\x20=\x20vx\x20/\x20(1.0\x20+\x20dx\x20*\x20vy);\x0asurface2\x20=\x20surface;\x0a}\x20else\x20{\x0afloat\x20c\x20=\x20vy\x20*\x20dx\x20-\x20vx\x20*\x20dy;\x0afloat\x20b\x20=\x20(c\x20+\x201.0)\x20*\x200.5;\x0afloat\x20b2\x20=\x20(-c\x20+\x201.0)\x20*\x200.5;\x0afloat\x20d\x20=\x20b\x20*\x20b\x20+\x20vx\x20*\x20dy;\x0aif\x20(d\x20<\x20-0.00001)\x20{\x0a\x20\x20\x20\x20discard;\x0a}\x0ad\x20=\x20sqrt(max(d,\x200.0));\x0asurface.x\x20=\x20(-\x20b\x20+\x20d)\x20*\x20revy;\x0asurface2.x\x20=\x20(-\x20b\x20-\x20d)\x20*\x20revy;\x0asurface.y\x20=\x20(-\x20b2\x20+\x20d)\x20*\x20revx;\x0asurface2.y\x20=\x20(-\x20b2\x20-\x20d)\x20*\x20revx;\x0a}\x0a\x0avec2\x20uv;\x0auv.x\x20=\x20vTrans1.x\x20*\x20surface.x\x20+\x20vTrans1.y\x20*\x20surface.y\x20+\x20vTrans1.z;\x0auv.y\x20=\x20vTrans2.x\x20*\x20surface.x\x20+\x20vTrans2.y\x20*\x20surface.y\x20+\x20vTrans2.z;\x0a\x0avec2\x20pixels\x20=\x20uv\x20*\x20vSamplerSize;\x0a\x0aif\x20(pixels.x\x20<\x20vFrame.x\x20||\x20pixels.x\x20>\x20vFrame.z\x20||\x0apixels.y\x20<\x20vFrame.y\x20||\x20pixels.y\x20>\x20vFrame.w)\x20{\x0auv.x\x20=\x20vTrans1.x\x20*\x20surface2.x\x20+\x20vTrans1.y\x20*\x20surface2.y\x20+\x20vTrans1.z;\x0auv.y\x20=\x20vTrans2.x\x20*\x20surface2.x\x20+\x20vTrans2.y\x20*\x20surface2.y\x20+\x20vTrans2.z;\x0apixels\x20=\x20uv\x20*\x20vSamplerSize;\x0a\x0aif\x20(pixels.x\x20<\x20vFrame.x\x20||\x20pixels.x\x20>\x20vFrame.z\x20||\x0a\x20\x20\x20pixels.y\x20<\x20vFrame.y\x20||\x20pixels.y\x20>\x20vFrame.w)\x20{\x0a\x20\x20\x20discard;\x0a}\x0a}\x0a\x0avec4\x20edge;\x0aedge.xy\x20=\x20clamp(pixels\x20-\x20vFrame.xy\x20+\x200.5,\x20vec2(0.0,\x200.0),\x20vec2(1.0,\x201.0));\x0aedge.zw\x20=\x20clamp(vFrame.zw\x20-\x20pixels\x20+\x200.5,\x20vec2(0.0,\x200.0),\x20vec2(1.0,\x201.0));\x0a\x0afloat\x20alpha\x20=\x201.0;\x20//edge.x\x20*\x20edge.y\x20*\x20edge.z\x20*\x20edge.w;\x0avec4\x20rColor\x20=\x20vColor\x20*\x20alpha;\x0a\x0afloat\x20textureId\x20=\x20floor(vTextureId+0.5);\x0avec2\x20vTextureCoord\x20=\x20uv;\x0avec4\x20color;\x0a%forloop%\x0agl_FragColor\x20=\x20color\x20*\x20rColor;\x0a}','geometryClass':aZ,'vertexSize':0x10},bc);return aY=class extends aj{constructor(bh){var o7=o6;super(bh),aY[o7(0x6cb)][o7(0x4b8)][o7(0x6ca)](this),aY[o7(0x6cb)][o7(0x71b)]['call'](this),aY[o7(0x6cb)][o7(0x170)][o7(0x6ca)](this),this['shaderGenerator']=new a3[(o7(0x7b9))](bd,be),this[o7(0x18a)]=bg,this[o7(0x349)]=bf;}['__init'](){var o8=o6;this[o8(0x26a)]={'translationMatrix':new a6['y3'](),'distortion':new Float32Array([0x0,0x0,0x1/0x0,0x1/0x0])};}['__init2'](){var o9=o6;this[o9(0x1b2)]=0x3e8;}[o6(0x170)](){this['forceMaxTextures']=0x1;}[o6(0x57d)](bh){var oa=o6;const {proj:bi}=bh;return null!==bi['surface']?bi['uniforms']:null!==bi['_activeProjection']?bi['_activeProjection'][oa(0xa2a)]:this[oa(0x26a)];}['packInterleavedGeometry'](bh,bi,bj,bk,bl){var ob=o6;const {uint32View:bm,float32View:bn}=bi,bo=bk/this['vertexSize'],bp=bh[ob(0xa00)],bq=bh['vertexData'],br=bh[ob(0x473)][ob(0x31d)],bs=bh[ob(0x9b0)],{_batchLocation:bt,realWidth:bu,realHeight:bv,resolution:bw}=bh['_texture']['baseTexture'],bx=Math['min'](bh[ob(0x392)],0x1),by=bx<0x1&&bh['_texture'][ob(0x41f)][ob(0x45f)]?(0x0,a5['premultiplyTint'])(bh[ob(0x736)],bx):bh['_tintRGB']+(0xff*bx<<0x18);for(let bz=0x0;bz<bq[ob(0x61d)];bz+=0x2)bn[bk]=bq[bz],bn[bk+0x1]=bq[bz+0x1],bn[bk+0x2]=bs['a'],bn[bk+0x3]=bs['c'],bn[bk+0x4]=bs['tx'],bn[bk+0x5]=bs['b'],bn[bk+0x6]=bs['d'],bn[bk+0x7]=bs['ty'],bn[bk+0x8]=bu,bn[bk+0x9]=bv,bn[bk+0xa]=br['x']*bw,bn[bk+0xb]=br['y']*bw,bn[bk+0xc]=(br['x']+br[ob(0x5fb)])*bw,bn[bk+0xd]=(br['y']+br[ob(0x8ec)])*bw,bm[bk+0xe]=by,bn[bk+0xf]=bt,bk+=0x10;for(let bA=0x0;bA<bp['length'];bA++)bj[bl++]=bo+bp[bA];}},aY;}}['create']({}));},0x1ea3:(a0,a1,a2)=>{var oc=a0b;a2['d'](a1,{'ry':()=>b2,'Cz':()=>a3[oc(0x921)],'T$':()=>b9['a'],'Mj':()=>b8,'UZ':()=>b5,'bk':()=>b6});var a3={};a2['r'](a3),a2['d'](a3,{'Mj':()=>b8,'UZ':()=>b5,'bk':()=>b6});var a4=a2(0x1ade),a5=a2(0x543),a6=a2(0x24f3);class a7{constructor(){var od=oc;this[od(0x640)]=new a6['M']();}async[oc(0x54c)](){return new Promise((ba,bb)=>{var oe=a0b;this['initDataMap'](),wx[oe(0x6c9)]({'success'(){ba();},'fail'(bc){var of=oe;console['log']('wx\x20init\x20face\x20fail',bc);const {errMsg:bd}=bc;if(bd[of(0x50b)](of(0x907))>-0x1)return ba();bb({'errMsg':of(0x513)});}});});}[oc(0x2d2)](ba){var og=oc;const {data:bb,width:bc,height:bd}=ba;new Date(),wx[og(0x569)]({'width':bc,'height':bd,'frameBuffer':bb,'enablePoint':!0x0,'enableAngle':!0x0,'success':be=>{var oh=og;const {x:bf,y:bg}=be,bh=be[oh(0x3ab)],bi=be[oh(0x951)];let bj={'yaw':-bi[oh(0x8cb)]*Math['PI']/0x2,'pitch':bi[oh(0x836)],'roll':bi[oh(0x74b)]};const bk=(bf-bc/0x2)/bc;bj['yaw']+=1.4*bk;const bl=(bg-bd/0x2)/(bd/0x2);bj[oh(0x836)]-=bl,this['angles']=bj,bh[oh(0x315)](this[oh(0x372)](bh[0x60],bh[0x61])),bh['push'](this[oh(0x372)](bh[0x60],bh[0x67])),bh['push'](this[oh(0x372)](bh[0x64],bh[0x63])),bh[oh(0x315)](this[oh(0x372)](bh[0x64],bh[0x65]));const bm=this[oh(0x372)](bh[0x4e],bh[0x4f]),bn=1.5*(0x0,a5['Sp'])(bh[0x2c],bh[0x31]),bo=this['getSlope'](bm,bh[0x31]),bp=Math[oh(0x39e)](bo),bq={'x':bm['x']-bn*Math['cos'](bp)*(bp/Math[oh(0x277)](bp)),'y':bm['y']-bn*Math[oh(0x60a)](Math[oh(0x277)](bp))};bh['push'](bq);const br=bh[0x0],bs=br['y']-br['x']*bo,bt=bq['y']- -0x1/bo*bq['x'],bu=(bt-bs)/(bo- -0x1/bo),bv={'x':bu,'y':bu*bo+bs},bw=this[oh(0x300)](0.14,bq,bv,br),bx=this['twoBezier'](0.28,bq,bv,br),by=this[oh(0x300)](0.42,bq,bv,br),bz=this['twoBezier'](0.56,bq,bv,br),bA=this[oh(0x300)](0.7,bq,bv,br),bB=this['twoBezier'](0.85,bq,bv,br),bC=bh[0x20],bD=bC['y']-bC['x']*bo,bE={'x':(bt-bD)/(bo- -0x1/bo),'y':(bt-bD)/(bo- -0x1/bo)*bo+bD},bF=this[oh(0x300)](0.14,bq,bE,bC),bG=this['twoBezier'](0.28,bq,bE,bC),bH=this['twoBezier'](0.42,bq,bE,bC),bI=this[oh(0x300)](0.56,bq,bE,bC),bJ=this[oh(0x300)](0.7,bq,bE,bC),bK=this[oh(0x300)](0.85,bq,bE,bC);bh[oh(0x315)](bw,bx,by,bF,bG,bH,bz,bI,bB,bA,bK,bJ);const {meshVertex:bL,lipVertex:bM}=this[oh(0x5e3)](bh);this[oh(0x88a)]({'landmarks':bh,'angles':bj,'image':ba,'meshVertex':bL,'lipVertex':bM});},'fail':be=>{var oi=og;this[oi(0x88a)]({'landmarks':[],'angles':[],'image':ba,'meshVertex':[],'lipVertex':[]});}});}[oc(0x1b3)](ba){var oj=oc;this[oj(0x35a)]=ba;}[oc(0x88a)](ba){var ok=oc;this['vkstarted']||(this['vkstarted']=!0x0),this[ok(0x726)]=null,this[ok(0x35a)]&&this['resultCb'](ba);}[oc(0x300)](ba,bb,bc,bd){const {x:be,y:bf}=bb,{x:bg,y:bh}=bc,{x:bi,y:bj}=bd;return{'x':(0x1-ba)*(0x1-ba)*be+0x2*ba*(0x1-ba)*bg+ba*ba*bi,'y':(0x1-ba)*(0x1-ba)*bf+0x2*ba*(0x1-ba)*bh+ba*ba*bj};}[oc(0x73a)](){var ol=oc;console[ol(0x45c)](ol(0x491)),wx[ol(0x491)]({'success'(){var om=ol;console[om(0x45c)](om(0x87a));},'fail'(){var on=ol;console[on(0x45c)](on(0x3ed));}});}[oc(0x372)](ba,bb){return{'x':(ba['x']+bb['x'])/0x2,'y':(ba['y']+bb['y'])/0x2};}[oc(0x533)](ba,bb){var oo=oc;return Math[oo(0x593)]((ba['x']-bb['x'])*(ba['x']-bb['x'])+(ba['y']-bb['y'])*(ba['y']-bb['y']),0.5);}[oc(0x38e)](ba,bb){var op=oc;return bb['x']===ba['x']?Number[op(0x310)]:(bb['y']-ba['y'])/(bb['x']-ba['x']);}[oc(0x5e3)](ba){var oq=oc;const {triangulation:bb,lipsTriangulation:bc,KEY_POINTS:bd,LIPS:be,MOUTH_UPPER:bf}=this[oq(0x9fa)],bg=[],bh=[];if(ba){const bj=[],bk=[],bl=this[oq(0x458)](ba);ba['forEach']((bn,bo)=>{var or=oq;if(bd[or(0x50b)](bo)>=0x0){const bp=bn;bj[or(0x315)]([bl[bo]['x'],bl[bo]['y']]),be[or(0x50b)](bo)>=0x0&&bk[or(0x315)]([bp['x'],bp['y']]);}}),this[oq(0x363)](ba)[oq(0x560)]((bn,bo)=>{var os=oq;bj[os(0x315)]([bn['x'],bn['y']]);});const bm=bb;for(var bi=0x0;bi<bm['length'];bi+=0x3){const bn=bm[bi],bo=bm[bi+0x1],bp=bm[bi+0x2];bg['push'](bj[bn][0x0]),bg[oq(0x315)](bj[bn][0x1]),bg[oq(0x315)](bj[bo][0x0]),bg[oq(0x315)](bj[bo][0x1]),bg[oq(0x315)](bj[bp][0x0]),bg[oq(0x315)](bj[bp][0x1]);}for(bi=0x0;bi<bc[oq(0x61d)];bi+=0x3){const bq=bc[bi],br=bc[bi+0x1],bs=bc[bi+0x2];bh[oq(0x315)](bk[bq][0x0]),bh[oq(0x315)](bk[bq][0x1]),bh[oq(0x315)](bk[br][0x0]),bh[oq(0x315)](bk[br][0x1]),bh['push'](bk[bs][0x0]),bh[oq(0x315)](bk[bs][0x1]);}}return{'meshVertex':bg,'lipVertex':bh};}[oc(0x458)](ba){var ot=oc;const bb=JSON[ot(0x87f)](JSON[ot(0x3f6)](ba)),{MOUTH_UPPER:bc,MOUTH_LOWER:bd}=this[ot(0x9fa)];return bc[ot(0x560)]((be,bf)=>{const bg=bb[be],bh=bb[bd[bf]],bi={'x':(bg['x']+bh['x'])/0x2,'y':(bg['y']+bh['y'])/0x2};bg['y']=bi['y'],bg['x']=bi['x'],bh['y']=bi['y'],bh['x']=bi['x'];}),bb;}['getAngles'](){var ou=oc;return this[ou(0x3ac)];}[oc(0x363)](ba){var ov=oc;const {OUTER_REFERENCE:bb}=this['_dataMap'],bc=(0x0,a5['Sp'])(ba[0x20],ba[0x0]),bd=(0x0,a5['Sp'])(ba[0x10],ba[0x6e]),be=[],bf=this['getAngles'](ba),bg=Math[ov(0x5e0)](bf[ov(0x74b)]),bh=Math[ov(0x60a)](bf[ov(0x74b)]),{yaw:bi,pitch:bj}=bf;return bb[ov(0x560)]((bk,bl)=>{var ow=ov;bk[ow(0x560)](bm=>{var ox=ow;let bn,bo;ox(0x97f)==typeof bm?(bn=ba[bm['x']],bo=ba[bm['y']]):(bn=ba[bm],bo=ba[bm]);const bp=this[ox(0x38e)](ba[0x10],ba[0x6e]),bq=-0x1/bp,br=bn['y']-bn['x']*bp,bs=(br-(bo['y']-bo['x']*bq))/(bq-bp),bt=bs,bu=bs*bp+br,bv=[0.5,0.2];let bw,bx,by;0x0===bl?(by=bv[0x0]*bd,bw=bt+by*bh,bx=bu-by*Math[ox(0x277)](bg)):0x1===bl?(by=0.3*bc,bi>0x0&&(by*=Math['cos'](0x2*bi)),bw=bt+by*Math['abs'](bg),bx=bu+by*bh):0x2===bl?(by=bv[0x1]*bd,bw=bt-by*bh,bx=bu+by*Math[ox(0x277)](bg)):(by=0.3*bc,bi<0x0&&(by*=Math['cos'](0x2*bi)),bw=bt-by*Math[ox(0x277)](bg),bx=bu-by*bh),be['push']({'x':bw,'y':bx,'z':0x0});});}),be;}['initDataMap'](){var oy=oc;const ba=this[oy(0x640)][oy(0x200)](['triangulation',oy(0x81f),'POINTS_MAP','KEY_POINTS',oy(0x25e),oy(0x4c3),oy(0x2c8),'MOUTH_UPPER','MOUTH_LOWER',oy(0x882),oy(0x326)]);this['_dataMap']=ba;}}class a8{['setAlpha'](ba){(ba<=0x0||ba>0x1)&&console['log']('alpha\x20should\x20be\x20in\x20(0.0.,\x201.0]'),this['a']=ba;}constructor(ba,bb=0x0){var oz=oc;this['y']=this['s']=bb,this['setAlpha'](ba),this[oz(0x596)]=!0x1;}[oc(0x7f8)](ba){var oA=oc,bb;return this['initialized']?bb=this['a']*ba+(0x1-this['a'])*this['s']:(bb=ba,this[oA(0x596)]=!0x0),this['y']=ba,this['s']=bb,bb;}['filterWithAlpha'](ba,bb){var oB=oc;return this[oB(0x645)](bb),this['filter'](ba);}['hasLastRawValue'](){return this['initialized'];}[oc(0x7bf)](){return this['y'];}[oc(0x1d6)](){this['initialized']=!0x1;}}const a9=class{[oc(0x879)](ba){var oC=oc,bb=0x1/this[oC(0x9d5)];return 0x1/(0x1+0x1/(0x2*Math['PI']*ba)/bb);}[oc(0x6b7)](ba){var oD=oc;ba<=0x0&&console[oD(0x45c)](oD(0x47c)),this['freq']=ba;}['setMinCutoff'](ba){var oE=oc;ba<=0x0&&console[oE(0x45c)](oE(0x338)),this[oE(0x6ab)]=ba;}['setBeta'](ba){var oF=oc;this[oF(0x5f1)]=ba;}[oc(0x240)](ba){var oG=oc;ba<=0x0&&console[oG(0x45c)](oG(0x8dc)),this[oG(0x576)]=ba;}constructor(ba,bb=0x1,bc=0x0,bd=0x1){var oH=oc;this['setFrequency'](ba),this[oH(0xa0a)](bb),this[oH(0x9e3)](bc),this[oH(0x240)](bd),this['x']=new a8(this[oH(0x879)](bb)),this['dx']=new a8(this[oH(0x879)](bd)),this[oH(0x2e0)]=void 0x0;}[oc(0x1d6)](){var oI=oc;this['x'][oI(0x1d6)](),this['dx'][oI(0x1d6)](),this[oI(0x2e0)]=void 0x0;}[oc(0x7f8)](ba,bb){var oJ=oc;null!=this[oJ(0x2e0)]&&null!=bb&&bb!==this[oJ(0x2e0)]&&(this[oJ(0x9d5)]=0x1/(bb-this[oJ(0x2e0)])),this['lasttime']=bb;var bc=this['x'][oJ(0x74f)]()?(ba-this['x'][oJ(0x7bf)]())*this[oJ(0x9d5)]:0x0,bd=this['dx'][oJ(0x9fe)](bc,this[oJ(0x879)](this['dcutoff'])),be=this['mincutoff']+this[oJ(0x5f1)]*Math[oJ(0x277)](bd);return this['x'][oJ(0x9fe)](ba,this[oJ(0x879)](be));}};class aa{['frame0'];[oc(0x5e4)]=0x2;['frame1'];[oc(0x73c)];[oc(0x1cd)];constructor(){}[oc(0x7f8)](ba){var oK=oc;if(null===this[oK(0x5a9)]||void 0x0===this[oK(0x5a9)]){for(let bb=0x0;bb<this[oK(0x5e4)];bb++)return this[oK(0x739)+bb]=ba,ba;}for(let bc=this[oK(0x5e4)]-0x1;bc>0x0;bc--)this[oK(0x739)+bc]=this[oK(0x739)+(bc-0x1)];return this[oK(0x5a9)]=ba,this['average']();}[oc(0x2b5)](){var oL=oc;let ba=0x0;for(let bb=0x0;bb<this[oL(0x5e4)];bb++)ba+=this['frame'+bb]||0x0;return ba/this[oL(0x5e4)];}}class ab{['session'];[oc(0x411)];['vkstarted'];[oc(0x26b)]={};['_angleMap']={};[oc(0x342)]=[];constructor(ba){var oM=oc;this['_configCenter']=new a6['M'](),this[oM(0x942)]=ba;for(let bb=0x0;bb<0x6a;bb++)this[oM(0x26b)][bb+'_x']=new a9(0x3c,0.05,0x50,0x1),this['_filterMap'][bb+'_y']=new a9(0x3c,0.05,0x50,0x1),this['_filterMap'][bb+'_z']=new a9(0x3c,0.05,0x50,0x1);this[oM(0x81e)]['pitch']=new aa(),this[oM(0x81e)][oM(0x8cb)]=new aa(),this[oM(0x81e)][oM(0x74b)]=new aa();}async['init'](){var oN=oc;this['initDataMap']();const ba=wx[oN(0x5cc)]({'track':{'face':{'mode':0x2}},'version':'v1'});this[oN(0x425)]=ba,this[oN(0x425)]['on']('updateAnchors',bb=>{var oO=oN;this[oO(0x411)]=bb[0x0];const bc=this[oO(0x3ee)]();bc['image']=this[oO(0x739)],this[oO(0x88a)](bc);}),this[oN(0x425)]['on'](oN(0x23d),bb=>{var oP=oN;const bc={'landmarks':[],'angles':{},'meshVertex':[],'lipVertex':[]};bc[oP(0x9d2)]=this['frame'],this[oP(0x88a)](bc);}),this['session'][oN(0x1f8)]();}[oc(0x88a)](ba){var oQ=oc;this[oQ(0x79c)]||(this[oQ(0x79c)]=!0x0),this[oQ(0x726)]=null,this['taskPromises'][oQ(0x91c)]()?.(ba);}['processData'](){var oR=oc;const ba=0.01*new Date()['getTime'](),bb=this[oR(0x411)],bc=bb[oR(0x83b)];bc[oR(0x836)]=this['_angleMap']['pitch']['filter'](bc[oR(0x836)],ba),bc[oR(0x8cb)]=this[oR(0x81e)]['yaw']['filter'](bc[oR(0x8cb)],ba),bc[oR(0x74b)]=this['_angleMap'][oR(0x74b)][oR(0x7f8)](bc[oR(0x74b)],ba),bc[oR(0x8cb)]=1.1*(bc[oR(0x8cb)]-0.1),bc[oR(0x836)]=0.93*(bc[oR(0x836)]+0.18),this[oR(0x3ac)]=bc;const bd=bb['points'],{width:be,height:bf}=this[oR(0x840)],bg=be/bf,bh=this['_options'][oR(0x5fb)]/this['_options'][oR(0x8ec)];bd[oR(0x560)]((bJ,bK)=>{var oS=oR;bh<bg?bJ['x']=0.5+(bJ['x']-0.5)*(this['_options']['height']/bf):bh>bg&&(bJ['y']=0.5+(bJ['y']-0.5)/(this[oS(0x942)][oS(0x5fb)]/be)),this[oS(0x26b)][bK+'_x']&&(bJ['x']=this['_filterMap'][bK+'_x'][oS(0x7f8)](bJ['x'],ba),bJ['y']=this[oS(0x26b)][bK+'_y'][oS(0x7f8)](bJ['y'],ba),bJ['z']=this[oS(0x26b)][bK+'_z'][oS(0x7f8)](bJ['z'],ba)),bJ['x']*=this['_options'][oS(0x5fb)],bJ['y']*=this['_options'][oS(0x8ec)];}),bd[oR(0x315)](this[oR(0x372)](bd[0x60],bd[0x61])),bd[oR(0x315)](this[oR(0x372)](bd[0x60],bd[0x67])),bd[oR(0x315)](this['getCenterOfTwoPoints'](bd[0x64],bd[0x63])),bd[oR(0x315)](this['getCenterOfTwoPoints'](bd[0x64],bd[0x65]));const bi=this[oR(0x372)](bd[0x4e],bd[0x4f]),bj=1.5*(0x0,a5['Sp'])(bd[0x2c],bd[0x31]),bk=this[oR(0x38e)](bi,bd[0x31]),bl=Math[oR(0x39e)](bk),bm={'x':bi['x']-bj*Math['cos'](bl)*(bl/Math['abs'](bl)),'y':bi['y']-bj*Math[oR(0x60a)](Math['abs'](bl))};bd['push'](bm);const bn=bd[0x0],bo=bn['y']-bn['x']*bk,bp=bm['y']- -0x1/bk*bm['x'],bq=(bp-bo)/(bk- -0x1/bk),br={'x':bq,'y':bq*bk+bo},bs=this[oR(0x300)](0.14,bm,br,bn),bt=this[oR(0x300)](0.28,bm,br,bn),bu=this[oR(0x300)](0.42,bm,br,bn),bv=this[oR(0x300)](0.56,bm,br,bn),bw=this['twoBezier'](0.7,bm,br,bn),bx=this['twoBezier'](0.85,bm,br,bn),by=bd[0x20],bz=by['y']-by['x']*bk,bA={'x':(bp-bz)/(bk- -0x1/bk),'y':(bp-bz)/(bk- -0x1/bk)*bk+bz},bB=this[oR(0x300)](0.14,bm,bA,by),bC=this['twoBezier'](0.28,bm,bA,by),bD=this[oR(0x300)](0.42,bm,bA,by),bE=this['twoBezier'](0.56,bm,bA,by),bF=this[oR(0x300)](0.7,bm,bA,by),bG=this['twoBezier'](0.85,bm,bA,by);bd['push'](bs,bt,bu,bB,bC,bD,bv,bE,bx,bw,bG,bF);const {meshVertex:bH,lipVertex:bI}=this[oR(0x5e3)](bd);return{'landmarks':bd,'angles':this[oR(0x3ac)],'meshVertex':bH,'lipVertex':bI};}[oc(0x2d2)](ba){return new Promise(bb=>{var oT=a0b;if(this[oT(0x79c)]&&this['detectId'])return;const {data:bc,width:bd,height:be}=ba;this[oT(0x726)]=+new Date(),this['currentResult']=null,this[oT(0x739)]=ba,this[oT(0x342)][oT(0x315)](bb),this[oT(0x840)]={'width':bd,'height':be},this['session'][oT(0x913)]({'frameBuffer':bc,'width':bd,'height':be,'scoreThreshold':0.5,'sourceType':0x0,'modelMode':0x1});});}['twoBezier'](ba,bb,bc,bd){const {x:be,y:bf}=bb,{x:bg,y:bh}=bc,{x:bi,y:bj}=bd;return{'x':(0x1-ba)*(0x1-ba)*be+0x2*ba*(0x1-ba)*bg+ba*ba*bi,'y':(0x1-ba)*(0x1-ba)*bf+0x2*ba*(0x1-ba)*bh+ba*ba*bj};}[oc(0x73a)](){var oU=oc;this[oU(0x425)]&&(this['session']=null),this[oU(0x342)]=[];}[oc(0x372)](ba,bb){return{'x':(ba['x']+bb['x'])/0x2,'y':(ba['y']+bb['y'])/0x2};}['getDistanceOfTwoPoints'](ba,bb){var oV=oc;return Math[oV(0x593)]((ba['x']-bb['x'])*(ba['x']-bb['x'])+(ba['y']-bb['y'])*(ba['y']-bb['y']),0.5);}['getSlope'](ba,bb){return bb['x']===ba['x']?Number['MAX_SAFE_INTEGER']:(bb['y']-ba['y'])/(bb['x']-ba['x']);}[oc(0x5e3)](ba){var oW=oc;const {triangulation:bb,lipsTriangulation:bc,KEY_POINTS:bd,LIPS:be,MOUTH_UPPER:bf}=this[oW(0x9fa)],bg=[],bh=[];if(ba){const bj=[],bk=[],bl=this[oW(0x458)](ba);ba['forEach']((bn,bo)=>{var oX=oW;if(bd[oX(0x50b)](bo)>=0x0){const bp=bn;bj[oX(0x315)]([bl[bo]['x'],bl[bo]['y']]),be[oX(0x50b)](bo)>=0x0&&bk[oX(0x315)]([bp['x'],bp['y']]);}}),this[oW(0x363)](ba)[oW(0x560)]((bn,bo)=>{var oY=oW;bj[oY(0x315)]([bn['x'],bn['y']]);});const bm=bb;for(var bi=0x0;bi<bm['length'];bi+=0x3){const bn=bm[bi],bo=bm[bi+0x1],bp=bm[bi+0x2];bg['push'](bj[bn][0x0]),bg['push'](bj[bn][0x1]),bg[oW(0x315)](bj[bo][0x0]),bg[oW(0x315)](bj[bo][0x1]),bg[oW(0x315)](bj[bp][0x0]),bg['push'](bj[bp][0x1]);}for(bi=0x0;bi<bc['length'];bi+=0x3){const bq=bc[bi],br=bc[bi+0x1],bs=bc[bi+0x2];bh['push'](bk[bq][0x0]),bh['push'](bk[bq][0x1]),bh[oW(0x315)](bk[br][0x0]),bh[oW(0x315)](bk[br][0x1]),bh['push'](bk[bs][0x0]),bh[oW(0x315)](bk[bs][0x1]);}}return{'meshVertex':bg,'lipVertex':bh};}['processLipEdge'](ba){var oZ=oc;const bb=JSON[oZ(0x87f)](JSON[oZ(0x3f6)](ba)),{MOUTH_UPPER:bc,MOUTH_LOWER:bd}=this[oZ(0x9fa)];return bc['forEach']((be,bf)=>{const bg=bb[be],bh=bb[bd[bf]],bi={'x':(bg['x']+bh['x'])/0x2,'y':(bg['y']+bh['y'])/0x2};bg['y']=bi['y'],bg['x']=bi['x'],bh['y']=bi['y'],bh['x']=bi['x'];}),bb;}[oc(0x563)](){var p0=oc;return this[p0(0x3ac)];}[oc(0x363)](ba){var p1=oc;const {OUTER_REFERENCE:bb}=this[p1(0x9fa)],bc=(0x0,a5['Sp'])(ba[0x20],ba[0x0]),bd=(0x0,a5['Sp'])(ba[0x10],ba[0x6e]),be=[],bf=this[p1(0x563)](ba),bg=Math[p1(0x5e0)](bf[p1(0x74b)]),bh=Math[p1(0x60a)](bf[p1(0x74b)]),{yaw:bi,pitch:bj}=bf;return bb[p1(0x560)]((bk,bl)=>{bk['forEach'](bm=>{var p2=a0b;let bn,bo;p2(0x97f)==typeof bm?(bn=ba[bm['x']],bo=ba[bm['y']]):(bn=ba[bm],bo=ba[bm]);const bp=this[p2(0x38e)](ba[0x10],ba[0x6e]),bq=-0x1/bp,br=bn['y']-bn['x']*bp,bs=(br-(bo['y']-bo['x']*bq))/(bq-bp),bt=bs,bu=bs*bp+br,bv=[0.5,0.2];let bw,bx,by;0x0===bl?(by=bv[0x0]*bd,bw=bt+by*bh,bx=bu-by*Math[p2(0x277)](bg)):0x1===bl?(by=0.3*bc,bi>0x0&&(by*=Math[p2(0x5e0)](0x2*bi)),bw=bt+by*Math[p2(0x277)](bg),bx=bu+by*bh):0x2===bl?(by=bv[0x1]*bd,bw=bt-by*bh,bx=bu+by*Math[p2(0x277)](bg)):(by=0.3*bc,bi<0x0&&(by*=Math['cos'](0x2*bi)),bw=bt-by*Math[p2(0x277)](bg),bx=bu-by*bh),be[p2(0x315)]({'x':bw,'y':bx,'z':0x0});});}),be;}[oc(0x6a3)](){var p3=oc;const ba=this['_configCenter'][p3(0x200)]([p3(0x968),'OUTER_REFERENCE',p3(0x201),p3(0x565),'LEFT_FACE_OVAL',p3(0x4c3),p3(0x2c8),'MOUTH_UPPER','MOUTH_LOWER',p3(0x882),p3(0x326)]);this['_dataMap']=ba;}}var ac=a2(0x4b6),ad=a2(0x1f15),ae=a2(0x1adf);let af,ag,ah,ai,aj,ak;if(null==ag){af=wx[oc(0x631)]();let {system:ba,version:bb}=af;ai=bb;}if(null==ag){af=wx[oc(0x631)]();let {system:bc}=af;aj=af[oc(0x33b)],ag=bc['toLowerCase']()[oc(0x50b)]('android')>-0x1,ah=!ag,ak=parseFloat(aj)>=2.25;}const al=parseFloat(aj)>=2.29;function am(){var p4=oc;return af[p4(0x9ed)]>af[p4(0x7a3)];}class an extends a4['Q']{[oc(0x279)];[oc(0x361)];[oc(0x499)];[oc(0xa1d)];[oc(0x758)]=!0x0;['realWidth']=0x0;[oc(0x6fd)]=0x0;constructor(bd){var p5=oc;super(),this[p5(0x361)]=bd;const be=this[p5(0x759)]();this[p5(0x56a)](),this[p5(0x34d)]();const bf=be[p5(0x756)]({'type':p5(0x547),'width':this[p5(0x7d0)],'height':this[p5(0x6fd)]});this['gl']=bf[p5(0x5c3)](p5(0x547)),ah?(this[p5(0x9df)](),this[p5(0x3a1)]=new ac[(p5(0x3ca))]({'width':this[p5(0x7d0)],'height':this[p5(0x6fd)],'resolution':0x1,'view':new wx['window'][(p5(0x81c))](bf)})):this[p5(0x9d3)]();}[oc(0x56a)](){var p6=oc;const {width:bd,height:be}=this[p6(0x361)];ah?(this['realWidth']=bd,this[p6(0x6fd)]=be):(this['realWidth']=bd/0x4,this[p6(0x6fd)]=1.5*be);}[oc(0x34d)](){var p7=oc;const bd=am(),{width:be,height:bf}=this[p7(0x361)],bg=this[p7(0x759)]();console['log'](p7(0x387),bf,be);const bh=bg['createOffscreenCanvas']({'type':'2d','width':be,'height':bf});if(this[p7(0x669)]=bh[p7(0x5c3)]('2d'),bd){const bk=bf/be;this[p7(0x669)][p7(0x358)](bh[p7(0x5fb)]/0x2,bh[p7(0x8ec)]/0x2),ah?this[p7(0x669)]['rotate'](-Math['PI']/0x2):this[p7(0x669)]['rotate'](Math['PI']/0x2),this[p7(0x669)]['translate'](-bh[p7(0x8ec)]/0x2,-bh['width']/0x2),!ah&&this[p7(0x669)][p7(0x806)](bk,0x1/bk);}const bi=ac['Texture'][p7(0x1d4)](new wx[(p7(0x507))][(p7(0x81c))](bh)),bj=new ac['Sprite'](bi);bj[p7(0x9eb)]['set'](0.5,0.5),bj[p7(0x784)][p7(0x1e6)](be/0x2,bf/0x2),(bd?bj[p7(0x806)][p7(0x1e6)](ah?0x1:-0x1,0x1):bj[p7(0x806)][p7(0x1e6)](ah?-0x1:1.3333333333333333,-0x1),this['sprite']=bj,this[p7(0x499)]=ah?new Uint8Array(be*bf*0x4):new Uint8Array(be*bf*1.5));}[oc(0x9df)](){var p8=oc;let bd=new ac['Filter'](null,p8(0x1fa));this[p8(0xa1d)]=new ac[(p8(0x468))]();const be=ac['Texture'][p8(0x1d4)](new wx[(p8(0x507))][(p8(0x81c))](this[p8(0x361)][p8(0x73f)]));console[p8(0x45c)](p8(0x1be),this[p8(0x7d0)],this[p8(0x6fd)]),this['pushSprite']=new ac[(p8(0x9ee))](be),this[p8(0x9a7)][p8(0x9eb)][p8(0x1e6)](0.5,0.5),this[p8(0x9a7)][p8(0x784)][p8(0x1e6)](this['realWidth']/0x2,this[p8(0x6fd)]/0x2),this[p8(0x9a7)][p8(0x5fb)]=this[p8(0x7d0)],this[p8(0x9a7)][p8(0x8ec)]=this[p8(0x6fd)],this[p8(0x9a7)][p8(0x806)]['set'](0x1,-0x1),this[p8(0x9a7)]['filters']=[bd],this['stage']['addChild'](this['pushSprite']);}[oc(0x9d3)](){var p9=oc;const bd=this['gl'],be=bd['createShader'](bd[p9(0x46b)]),bf=bd['createShader'](bd['FRAGMENT_SHADER']);bd[p9(0xa09)](be,p9(0x79e)),bd[p9(0xa09)](bf,p9(0x9e2)),bd[p9(0x188)](be),bd['compileShader'](bf);const bg=bd['createProgram']();bd['attachShader'](bg,be),bd['attachShader'](bg,bf),bd[p9(0x946)](bg),bd[p9(0x247)](bg),bd[p9(0x4f9)]=bg,bd[p9(0x3d0)](0x0,0x0,this[p9(0x7d0)],this[p9(0x6fd)]);const bh=bd[p9(0x2bf)]();bd['bindBuffer'](bd[p9(0x3fb)],bh),bd[p9(0x429)](bd[p9(0x3fb)],new Float32Array([-0x1,0x1,-0x1,-0x1,0x1,-0x1,0x1,0x1]),bd['STATIC_DRAW']),bd[p9(0x9b5)]=bh;const bi=bd[p9(0x2bf)]();bd[p9(0x6da)](bd[p9(0x3fb)],bi),bd[p9(0x429)](bd[p9(0x3fb)],new Float32Array([0x0,0x1,0x0,0x0,0x1,0x0,0x1,0x1]),bd[p9(0x31b)]),bd[p9(0x73e)]=bi;const bj=bd['getAttribLocation'](bg,p9(0x6f8)),bk=bd[p9(0x5b1)](bg,'aUV'),bl=bd['getUniformLocation'](bg,'height'),bm=bd[p9(0x444)](bg,p9(0x4e3));bd[p9(0x825)](bl,this[p9(0x361)]['height']),bd['uniform1f'](bm,0x1/this[p9(0x361)][p9(0x5fb)]);const bn=bd[p9(0x805)]();bd[p9(0x3bc)](bd[p9(0x48f)],bn),bd[p9(0x773)](bd[p9(0x48f)],0x0,bd[p9(0xa0b)],bd[p9(0xa0b)],bd['UNSIGNED_BYTE'],this[p9(0x361)][p9(0x73f)]),bd[p9(0x911)](bd[p9(0x48f)],bd['TEXTURE_MIN_FILTER'],bd[p9(0x24c)]),bd[p9(0x911)](bd['TEXTURE_2D'],bd['TEXTURE_MAG_FILTER'],bd[p9(0x24c)]),bd['tex']=bn,bd[p9(0x356)](bj),bd['bindBuffer'](bd['ARRAY_BUFFER'],bh),bd[p9(0x809)](bj,0x2,bd[p9(0x71f)],!0x1,0x0,0x0),bd['enableVertexAttribArray'](bk),bd[p9(0x6da)](bd[p9(0x3fb)],bi),bd['bindTexture'](bd[p9(0x48f)],bn),bd[p9(0x809)](bk,0x2,bd['FLOAT'],!0x1,0x0,0x0);}[oc(0x759)](){var pa=oc;return this['options']?.[pa(0x2ce)]?.[pa(0x21f)]||(this[pa(0x361)][pa(0x2ce)][pa(0x21f)]=wx[pa(0x41c)]()),this[pa(0x361)]['live']['pusherContext'];}async['init'](){var pb=oc;await this[pb(0x25a)](),this['start']();}async[oc(0x25a)](){var pc=oc;let bd,be;bd=await this[pc(0x4a9)]('scope.record');const bf=()=>{setTimeout(async bg=>{var pd=a0b;be=await this[pd(0x4a9)](pd(0x2b1)),''===be?bf():bd&&be||await this[pd(0x6c0)]();},0x1f4);};bf();}async[oc(0x6c0)](){return new Promise((bd,be)=>{var pe=a0b;wx[pe(0x9a2)]({'content':ad['Z']['t'](pe(0x4ae)),'confirmText':ad['Z']['t'](pe(0x798)),'showCancel':!0x1,'success':bf=>{var pf=pe;bf[pf(0x64a)]?wx['openSetting']({'success':bg=>{var pg=pf;console[pg(0x45c)]('wx\x20auth\x20setting',bg),bg[pg(0x871)][pg(0x2ae)]&&bg['authSetting'][pg(0x2b1)]&&a4['N'][pg(0x975)](pg(0x6ec),{'code':ae['U'][pg(0x1f3)],'message':ad['Z']['t'](pg(0x74e))}),this[pg(0x25a)]()['then'](()=>{bd();});},'fail':()=>{bd();}}):bf[pf(0x63e)]&&bd();}});});}async['authScope'](bd){return new Promise(async be=>{var ph=a0b;const bf=await this['getSetting']();return'scope.camera'===bd&&void 0x0===bf[bd]?be(''):bf[bd]?be(!0x0):void wx[ph(0x25a)]({'scope':bd,'success'(){be(!0x0);},'fail'(){be(!0x1);}});});}async[oc(0x718)](){return new Promise((bd,be)=>{var pi=a0b;wx[pi(0x718)]({'success':bf=>{var pj=pi;bd(bf[pj(0x871)]);},'fail':()=>{be();}});});}[oc(0xa16)](){var pk=oc;ah?(this['pushSprite'][pk(0x732)][pk(0x9c2)](),this['renderer'][pk(0x5bb)](this[pk(0xa1d)])):(this['gl'][pk(0x562)](this['gl'][pk(0x48f)],0x0,0x0,0x0,this['gl'][pk(0xa0b)],this['gl'][pk(0x450)],this[pk(0x361)][pk(0x73f)]),this['gl']['drawArrays'](this['gl']['TRIANGLE_FAN'],0x0,0x4)),this['gl'][pk(0x9e7)](0x0,0x0,this['realWidth'],this[pk(0x6fd)],this['gl']['RGBA'],this['gl']['UNSIGNED_BYTE'],this['pushBuffer']),this[pk(0x1d0)]=!0x0;}[oc(0x1f8)](){var pl=oc;const bd=this[pl(0x759)]();bd[pl(0x5ff)](pl(0x739),()=>{var pm=pl;if(this[pm(0x669)][pm(0x948)](bd,0x0,0x0),this['sprite'][pm(0x732)][pm(0x9c2)](),this['ready'])return this[pm(0x499)]['buffer'];});}['stop'](){var pn=oc;this[pn(0x759)]()[pn(0x5ff)](pn(0x739),null);}['destroy'](){var po=oc;this[po(0x279)]=null,this['stop'](),this['generatePusherData']=null;}}class ao extends a4['Q']{['sprite'];['listener'];[oc(0x361)];['cameraContext'];constructor(bd){var pp=oc;const be={...bd,'width':bd['width']/0x1,'height':bd['height']/0x1};super(),this[pp(0x361)]=be;}async['init'](){var pq=oc;console[pq(0x45c)](pq(0x199)),await this[pq(0x25a)](),await this[pq(0x4c9)]();}async['authorize'](){var pr=oc;let bd,be;bd=await this[pr(0x4a9)]('scope.record');const bf=()=>{setTimeout(async bg=>{var ps=a0b;be=await this['authScope'](ps(0x2b1)),''===be?bf():bd&&be||await this['openSetting']();},0x1f4);};bf();}async[oc(0x6c0)](){return new Promise((bd,be)=>{var pt=a0b;wx['showModal']({'content':ad['Z']['t'](pt(0x4ae)),'confirmText':ad['Z']['t'](pt(0x798)),'showCancel':!0x1,'success':bf=>{var pu=pt;bf[pu(0x64a)]?wx[pu(0x6c0)]({'success':bg=>{var pv=pu;console['log']('wx\x20auth\x20setting',bg),bg[pv(0x871)][pv(0x2ae)]&&bg['authSetting'][pv(0x2b1)]&&a4['N'][pv(0x975)](pv(0x6ec),{'code':ae['U'][pv(0x1f3)],'message':ad['Z']['t'](pv(0x74e))}),this[pv(0x25a)]()[pv(0x1fe)](()=>{bd();});},'fail':()=>{bd();}}):bf[pu(0x63e)]&&bd();}});});}async[oc(0x4a9)](bd){return new Promise(async be=>{var pw=a0b;const bf=await this['getSetting']();return pw(0x2b1)===bd&&void 0x0===bf[bd]?be(''):bf[bd]?be(!0x0):void wx[pw(0x25a)]({'scope':bd,'success'(){be(!0x0);},'fail'(){be(!0x1);}});});}async[oc(0x718)](){return new Promise((bd,be)=>{wx['getSetting']({'success':bf=>{var px=a0b;bd(bf[px(0x871)]);},'fail':()=>{be();}});});}async['initCameraIns'](){var py=oc;const bd=wx[py(0x915)]();this['cameraContext']=bd;const be=bd[py(0x403)](bf=>{var pz=py;this[pz(0x739)]=bf;});this[py(0x3aa)]=be,this[py(0x1f8)]();}[oc(0x9e7)](){return this['frame'];}async[oc(0x8b9)](bd){return new Promise((be,bf)=>{var pA=a0b;this['cameraContext'][pA(0x8b9)]({'timeoutCallback':bg=>{var pB=pA;console[pB(0x45c)](pB(0x43b),bg),this['trigger'](pB(0x8e3),bg),be(bg);},'success':bg=>{bd&&bd(),be(bg);},'fail':bg=>{var pC=pA;a4['N'][pC(0x975)]('error',{'code':ae['U'][pC(0x273)],'message':ad['Z']['t'](pC(0x725)),'error':bg});}});});}async[oc(0x401)](){return new Promise((bd,be)=>{this['cameraContext']['stopRecord']({'success':bf=>{bd(bf);},'fail':bf=>{var pD=a0b;a4['N'][pD(0x975)](pD(0x6ec),{'code':ae['U'][pD(0x323)],'message':ad['Z']['t'](pD(0x85f)),'error':bf});}});});}[oc(0x1f8)](){var pE=oc;this[pE(0x3aa)][pE(0x1f8)]();}[oc(0x355)](){var pF=oc;this[pF(0x3aa)][pF(0x355)]();}[oc(0x73a)](){var pG=oc;this[pG(0x3aa)]&&(this[pG(0x3aa)][pG(0x355)](),this[pG(0x3aa)]=null),this[pG(0x279)]&&(this[pG(0x279)]=null),this[pG(0x2c0)]&&(this[pG(0x2c0)]=null);}}class ap{[oc(0x279)];[oc(0x361)];constructor(bd){var pH=oc;this[pH(0x361)]=bd;}['destroy'](){var pI=oc;this['sprite'][pI(0x73a)](!0x0);}async[oc(0x54c)](){var pJ=oc;if(!this[pJ(0x279)])return new Promise((bd,be)=>{var pK=pJ;const bf=this[pK(0x361)],{width:bg,height:bh,input:bi}=bf,bj=(new ac[(pK(0x257))](),wx[pK(0x756)]({'type':'2d','width':0x1,'height':0x1}));let bk=bj['createImage']();bk[pK(0x218)]=()=>{var pL=pK;bj[pL(0x5fb)]=bk[pL(0x5fb)],bj[pL(0x8ec)]=bk[pL(0x8ec)];const bl=bj[pL(0x5c3)]('2d');bl[pL(0x948)](bk,0x0,0x0);const {data:bm}=bl[pL(0x4e0)](0x0,0x0,bk[pL(0x5fb)],bk[pL(0x8ec)]),bn=ac['Texture'][pL(0x7e1)](new Uint8Array(bm),bk[pL(0x5fb)],bk['height']);this[pL(0x279)]=new ac[(pL(0x9ee))](bn),this['sprite'][pL(0x806)][pL(0x1e6)](0x1,-0x1),this[pL(0x279)][pL(0x5fb)]=bg,this[pL(0x279)]['height']=bh,this['sprite'][pL(0x9eb)][pL(0x1e6)](0.5,0.5),this[pL(0x279)]['x']=bg/0x2,this['sprite']['y']=bh/0x2,bd();},bk[pK(0x91d)]=bi;});}}const aq=wx[oc(0x507)];class ar{[oc(0x2a9)]=null;[oc(0x9ab)]=null;[oc(0x1fc)]=null;constructor(bd){var pM=oc;const be={...bd,'width':bd[pM(0x5fb)]/0x1,'height':bd['height']/0x1};if(this[pM(0x942)]=be,!be[pM(0x2f5)]){const {width:bf,height:bg}=be;let bh;bh=wx[pM(0x4db)](),bh[pM(0x5fb)]=bf,bh[pM(0x8ec)]=bg,this[pM(0x6e9)]=new Uint8Array(bf*bg*0x4),this[pM(0x2a9)]=new aq[(pM(0x81c))](bh),this[pM(0x9ab)]=new ac[(pM(0x468))](),this[pM(0x3a1)]=new ac[(pM(0x3ca))]({'view':this['canvas'],'width':be['width'],'height':be[pM(0x8ec)]}),this['gl']=this[pM(0x3a1)]['gl'],this[pM(0x500)]=()=>{var pN=pM;this[pN(0x5bb)]();},ac[pM(0x8ee)][pM(0x26e)][pM(0x861)](this['_renderFunc']);}}[oc(0x5bb)](){var pO=oc;const bd=this[pO(0x3f1)];if(bd&&bd[pO(0x7fe)]){if(!bd['tick']())return!0x1;}return this[pO(0x3a1)][pO(0x5bb)](this['_target']),!0x0;}set[oc(0x3f1)](bd){var pP=oc;if(this['_input']=bd,this[pP(0x9ab)]&&bd[pP(0x279)]){this['_target'][pP(0x774)][pP(0x560)](be=>{var pQ=pP;this['_target'][pQ(0x934)](be);});try{bd[pP(0x279)][pP(0x806)]['x']=bd[pP(0x279)]['scale']['x']/0x1,bd[pP(0x279)][pP(0x806)]['y']=bd['sprite'][pP(0x806)]['y']/0x1,this[pP(0x9ab)][pP(0x5d0)](bd[pP(0x279)]);}catch(be){console[pP(0x45c)](pP(0x1f9),be);}}}get[oc(0x3f1)](){var pR=oc;return this[pR(0x1fc)];}async['load'](bd){}[oc(0x73a)](){var pS=oc;this[pS(0x500)]&&ac[pS(0x8ee)][pS(0x26e)]['remove'](this['_renderFunc']),this[pS(0x3a1)]&&this[pS(0x3a1)][pS(0x73a)](!0x0),this['_target']&&this[pS(0x9ab)]['destroy'](!0x0),this['canvas']&&(this['canvas']=null);}[oc(0x54c)](bd){}[oc(0x9e7)](){var pT=oc;if(this[pT(0x3f1)][pT(0x9e7)])return this[pT(0x3f1)][pT(0x9e7)]();const {width:bd,height:be}=this[pT(0x942)];return this['gl']['readPixels'](0x0,0x0,bd,be,this['gl']['RGBA'],this['gl'][pT(0x450)],this['pixels']),{'data':this[pT(0x6e9)][pT(0x624)],'width':bd,'height':be};}['typedArrayToBuffer'](bd){var pU=oc;return bd[pU(0x624)][pU(0x859)](bd[pU(0x6d0)],bd[pU(0x790)]+bd['byteOffset']);}async['getCanvasNode'](){return new Promise(bd=>{var pV=a0b;wx[pV(0x7c3)]()[pV(0x544)](pV(0x7de))[pV(0x183)]()[pV(0x348)](be=>{const bf=be[0x0]['node'];bd(bf);});});}}var as=a2(0x1419),au=a2(0x191);class av{['count']=0x0;['mediaContainer'];[oc(0x4f4)];[oc(0x5fc)];[oc(0x497)];[oc(0x74c)]=!0x1;['recording']=!0x1;['options'];constructor(bd){var pW=oc;this[pW(0x361)]=bd;const {canvas:be,fps:bf,audio:bg={}}=bd;this['createRecorder'](be);const {onStart:bh,onStop:bi}=bg;this[pW(0x5fc)]=wx['getRecorderManager'](),this[pW(0x5fc)]['onStop'](bj=>{var pX=pW;this[pX(0x497)]=bj['tempFilePath'],this[pX(0x74c)]=!0x1,bi&&bi(bj);}),this['audioRecorder']['onStart'](()=>{var pY=pW;this[pY(0x74c)]=!0x0,bh&&bh();}),this['mediaContainer']=wx['createMediaContainer']();}[oc(0x752)](bd){var pZ=oc;try{let be={'duration':0x258,'fps':pZ(0x1a5)===au['iN']||ag?0x1e:0x3c,'gop':0xc,'timeUpdateInterval':pZ(0x1a5)===au['iN']||ag?0x1e:0x3c,'cumulativeStamp':!0x1,'videoBitsPerSecond':0xbb8};console[pZ(0x45c)](pZ(0x322),be),this[pZ(0x4f4)]&&this[pZ(0x4f4)][pZ(0x73a)]()[pZ(0x2ec)](bg=>{});const bf=wx[pZ(0x9fd)](bd,be);this['videoRecorder']=bf,bf['on'](pZ(0x1f8),()=>{var q0=pZ;console[q0(0x45c)](q0(0x6d6));});}catch(bg){a4['N'][pZ(0x975)](pZ(0x6ec),{'code':ae['U'][pZ(0x273)],'message':ad['Z']['t'](pZ(0x9be)),'error':bg});}}async[oc(0x1f8)](){var q1=oc;this['videoRecorder']&&(await this['videoRecorder'][q1(0x1f8)]()[q1(0x2ec)](bd=>{var q2=q1;a4['N'][q2(0x975)](q2(0x6ec),{'code':ae['U'][q2(0x273)],'message':ad['Z']['t'](q2(0x725))}),console[q2(0x6ec)]('recorder\x20start\x20error',bd);}),await this[q1(0x3d5)](),this['recordStartTime']=+new Date(),this[q1(0x5df)]=!0x0);}async['stop'](bd){var q3=oc;if(!this[q3(0x4f4)])return;let be,bf;this[q3(0x5df)]=!0x1,this[q3(0x5fc)][q3(0x355)]();try{be=(await this['videoRecorder'][q3(0x355)]())[q3(0x8c4)];}catch(bg){bd['destroy']||a4['N']['trigger'](q3(0x6ec),{'code':ae['U'][q3(0x323)],'message':ad['Z']['t'](q3(0x85f)),'error':bg});}if(console[q3(0x45c)](q3(0x378),be),be)try{const {videoTrack:bh}=await this['getTracks'](be);let bi=[bh];if(bd['musicPath']){const {audioTrack:bj}=await this[q3(0x328)](bd['musicPath'])[q3(0x2ec)](bk=>{var q4=q3;console[q4(0x45c)](q4(0x2a2),bk);});console[q3(0x45c)](q3(0x6b0),bj),bj[q3(0x96d)]='music',bi[q3(0x315)](bj);}if(bd[q3(0x941)]){const bk=await this[q3(0x2b9)](),{audioTrack:bl}=await this[q3(0x328)](bk)[q3(0x2ec)](bm=>{});bi[q3(0x315)](bl);}bf=await this[q3(0x46e)](...bi)[q3(0x2ec)](bm=>{});}catch(bm){bf={'tempFilePath':be};}try{this[q3(0x4f4)][q3(0x73a)]();}catch(bn){console[q3(0x45c)](q3(0x869),bn);}try{this[q3(0x7e0)][q3(0x73a)]();}catch(bo){console[q3(0x45c)](q3(0x96f),bo);}return this[q3(0x4f4)]=null,bf;}async[oc(0x3d5)](){var q5=oc;const {audio:bd}=this[q5(0x361)];return console['log'](q5(0x81d),bd),new Promise(be=>{var q6=q5;let bf,bg=()=>{this['audioRecorderStarted']?(be(this['audioRecorderStarted']),bf&&clearTimeout(bf)):bf=setTimeout(bg,0xa);};this[q6(0x5fc)]['start']({'duration':0x927c0,'format':q6(0x436),...bd}),bg();});}[oc(0x3ce)](){return this['videoRecorder'];}async[oc(0x615)](){var q7=oc;this[q7(0x5df)]&&this[q7(0x4f4)]&&this[q7(0x74c)]&&await this['videoRecorder']['requestFrame']();}async[oc(0x328)](bd){return new Promise((be,bf)=>{var q8=a0b;this[q8(0x7e0)]['extractDataSource']({'source':bd,'success':async({tracks:bg})=>{var q9=q8;let bh,bi;for(let bj=0x0;bj<bg[q9(0x61d)];bj++)q9(0x896)===bg[bj][q9(0x48e)]?bi=bg[bj]:q9(0x43d)===bg[bj][q9(0x48e)]&&(bh=bg[bj]);be({'audioTrack':bi,'videoTrack':bh});},'fail'(bg){var qa=q8;console[qa(0x45c)](qa(0x336),bg),bf(bg);}});});}async[oc(0x46e)](bd,...be){return new Promise((bf,bg)=>{var qb=a0b;this[qb(0x7e0)][qb(0x4d9)](bd),bd[qb(0x859)](0.06,bd[qb(0x5b6)]),be[qb(0x560)](bh=>{var qc=qb;this[qc(0x7e0)][qc(0x4d9)](bh),qc(0x80a)!==bh[qc(0x96d)]&&bh[qc(0x859)](bh[qc(0x5b6)]-bd[qc(0x5b6)]+0.06,0x2*bh[qc(0x5b6)]);}),this['mediaContainer']['export']({'success':bh=>{var qd=qb;this[qd(0x7e0)][qd(0x1e4)](bd),be[qd(0x560)](bi=>{var qe=qd;this['mediaContainer'][qe(0x1e4)](bi);}),bf(bh);},'fail':bh=>{var qf=qb;console[qf(0x45c)]('mediaContainer\x20export\x20fail',bh),bg(bh);}});});}async[oc(0x2b9)](){return new Promise(bd=>{let be,bf=()=>{var qg=a0b;this[qg(0x497)]?(bd(this[qg(0x497)]),be&&clearTimeout(be),this[qg(0x497)]=null):be=setTimeout(bf,0x14);};bf();});}}class aw extends a4['Q']{[oc(0x279)];['options'];['video'];constructor(bd){var qh=oc;super(),this[qh(0x361)]=bd;}[oc(0x73a)](){var qi=oc;try{this['video']&&this[qi(0x43d)][qi(0x73a)]();}catch(bd){}}async[oc(0x54c)](){var qj=oc;if(!this['sprite'])return this[qj(0x5ce)](),await this['start']()[qj(0x2ec)](bd=>{var qk=qj;throw new Error(qk(0x5ec));}),new Promise(async(bd,be)=>{let bf=async()=>{var ql=a0b;const bg=await this['tick']();if(console[ql(0x45c)](ql(0x62f),bg),bg)return this[ql(0x6b6)]=!0x0,bd();setTimeout(()=>{bf();},0x64);};await bf();});}[oc(0x903)](){var qm=oc;return this[qm(0x43d)][qm(0x56c)]();}[oc(0x7fe)](){var qn=oc;const bd=this[qn(0x43d)][qn(0x56c)]();if(!bd)return!0x1;const {width:be,height:bf,data:bg}=bd;if(this[qn(0x279)])this[qn(0x279)][qn(0x732)][qn(0x41f)][qn(0x1e5)]['data']=new Uint8Array(bg),this[qn(0x279)][qn(0x732)][qn(0x9c2)]();else{const bh=ac['Texture'][qn(0x7e1)](new Uint8Array(bg),be,bf),bi=new ac['Sprite'](bh),bj=Math[qn(0x94f)](this[qn(0x361)][qn(0x5fb)]/be,this[qn(0x361)][qn(0x8ec)]/bf);this[qn(0x279)]=bi,bi[qn(0x9eb)]['set'](0.5,0.5),bi['x']=this[qn(0x361)]['width']/0x2,bi['y']=this[qn(0x361)]['height']/0x2;const bk=wx[qn(0x631)]();let {system:bl}=bk;-0x1===bl[qn(0x2fe)]()[qn(0x50b)](qn(0x993))?bi[qn(0x806)][qn(0x1e6)](bj,bj):bi[qn(0x806)][qn(0x1e6)](bj,-bj);}return!0x0;}[oc(0x5ce)](){var qo=oc;const bd=wx[qo(0x2ab)]();return this[qo(0x43d)]=bd,bd;}async[oc(0x1f8)](){return new Promise((bd,be)=>{var qp=a0b;const {input:bf,width:bg,height:bh}=this['options'];this['video']['on'](qp(0x1f8),()=>{var qq=qp;console[qq(0x45c)](qq(0x459),bf),bd();}),this['video']['on'](qp(0x48b),()=>{var qr=qp;console[qr(0x45c)](qr(0x6f5));}),this[qp(0x43d)]['on'](qp(0x6ec),bi=>{var qs=qp;console[qs(0x45c)](qs(0x7a0),bi),be({'errMsg':'decoder\x20error'});}),this['video']['on']('ended',()=>{var qt=qp;console[qt(0x45c)](qt(0x945)),this['trigger'](qt(0x82f));}),this[qp(0x43d)]['start']({'source':bf,'mode':0x1,'abortAudio':!0x0});});}async['getFps'](bd){return new Promise((be,bf)=>{var qu=a0b;let bg=wx['createVideoDecoder']();bg['on'](qu(0x6ec),bh=>{var qv=qu;console[qv(0x45c)](qv(0x54e),bh),be(0x1e);}),bg['on'](qu(0x1f8),bh=>{var qw=qu;console['log'](qw(0x3b5),bh[qw(0x91e)]),bg&&bg[qw(0x355)]()[qw(0x2ec)](bi=>{}),be(bh[qw(0x91e)]);}),bg['on'](qu(0x355),()=>{var qx=qu;bg&&bg['remove']()[qx(0x2ec)](()=>{}),bg=null;}),bg[qu(0x1f8)]({'source':bd,'mode':0x1,'abortAudio':!0x0});});}[oc(0x355)](){var qy=oc;this[qy(0x43d)][qy(0x355)]();}['destroy'](){var qz=oc;this[qz(0x43d)][qz(0x591)]();}}var ax=a2(0xc30),ay=a2(0x18a5),az=a2(0x1407),aA=a2(0xde1),aB=a2(0x218a),aC=a2(0x17dd),aD=function(){var qA=oc;return aD=Object[qA(0x5e8)]||function(bd){var qB=qA;for(var be,bf=0x1,bg=arguments[qB(0x61d)];bf<bg;bf++)for(var bh in be=arguments[bf])Object['prototype'][qB(0x708)][qB(0x6ca)](be,bh)&&(bd[bh]=be[bh]);return bd;},aD[qA(0x1ea)](this,arguments);},aE=function(bd,be,bf,bg){var qC=oc,bh,bi=arguments[qC(0x61d)],bj=bi<0x3?be:null===bg?bg=Object[qC(0x255)](be,bf):bg;if(qC(0x97f)==typeof Reflect&&qC(0x4df)==typeof Reflect[qC(0x3fc)])bj=Reflect['decorate'](bd,be,bf,bg);else{for(var bk=bd[qC(0x61d)]-0x1;bk>=0x0;bk--)(bh=bd[bk])&&(bj=(bi<0x3?bh(bj):bi>0x3?bh(be,bf,bj):bh(be,bf))||bj);}return bi>0x3&&bj&&Object[qC(0x182)](be,bf,bj),bj;},aF=function(bd,be){var qD=oc;if(qD(0x97f)==typeof Reflect&&qD(0x4df)==typeof Reflect[qD(0x667)])return Reflect[qD(0x667)](bd,be);},aG=function(bd,be,bf,bg){return new(bf||(bf=Promise))(function(bh,bi){function bj(bm){var qE=a0b;try{bl(bg[qE(0x549)](bm));}catch(bn){bi(bn);}}function bk(bm){var qF=a0b;try{bl(bg[qF(0x30d)](bm));}catch(bn){bi(bn);}}function bl(bm){var qG=a0b,bn;bm[qG(0x2ed)]?bh(bm[qG(0x9e0)]):(bn=bm[qG(0x9e0)],bn instanceof bf?bn:new bf(function(bo){bo(bn);}))[qG(0x1fe)](bj,bk);}bl((bg=bg['apply'](bd,be||[]))['next']());});},aH=function(bd,be){var qH=oc,bf,bg,bh,bi,bj={'label':0x0,'sent':function(){if(0x1&bh[0x0])throw bh[0x1];return bh[0x1];},'trys':[],'ops':[]};return bi={'next':bk(0x0),'throw':bk(0x1),'return':bk(0x2)},qH(0x4df)==typeof Symbol&&(bi[Symbol['iterator']]=function(){return this;}),bi;function bk(bl){return function(bm){return function(bn){var qI=a0b;if(bf)throw new TypeError(qI(0x976));for(;bj;)try{if(bf=0x1,bg&&(bh=0x2&bn[0x0]?bg[qI(0x512)]:bn[0x0]?bg['throw']||((bh=bg[qI(0x512)])&&bh[qI(0x6ca)](bg),0x0):bg['next'])&&!(bh=bh[qI(0x6ca)](bg,bn[0x1]))['done'])return bh;switch(bg=0x0,bh&&(bn=[0x2&bn[0x0],bh[qI(0x9e0)]]),bn[0x0]){case 0x0:case 0x1:bh=bn;break;case 0x4:return bj[qI(0x823)]++,{'value':bn[0x1],'done':!0x1};case 0x5:bj[qI(0x823)]++,bg=bn[0x1],bn=[0x0];continue;case 0x7:bn=bj[qI(0xa27)][qI(0x984)](),bj[qI(0x9c4)][qI(0x984)]();continue;default:if(!(bh=bj[qI(0x9c4)],(bh=bh[qI(0x61d)]>0x0&&bh[bh[qI(0x61d)]-0x1])||0x6!==bn[0x0]&&0x2!==bn[0x0])){bj=0x0;continue;}if(0x3===bn[0x0]&&(!bh||bn[0x1]>bh[0x0]&&bn[0x1]<bh[0x3])){bj[qI(0x823)]=bn[0x1];break;}if(0x6===bn[0x0]&&bj[qI(0x823)]<bh[0x1]){bj['label']=bh[0x1],bh=bn;break;}if(bh&&bj[qI(0x823)]<bh[0x2]){bj[qI(0x823)]=bh[0x2],bj[qI(0xa27)][qI(0x315)](bn);break;}bh[0x2]&&bj[qI(0xa27)][qI(0x984)](),bj[qI(0x9c4)][qI(0x984)]();continue;}bn=be[qI(0x6ca)](bd,bj);}catch(bo){bn=[0x6,bo],bg=0x0;}finally{bf=bh=0x0;}if(0x5&bn[0x0])throw bn[0x1];return{'value':bn[0x0]?bn[0x1]:void 0x0,'done':!0x0};}([bl,bm]);};}},aI=(0x0,aC['jl'])(oc(0x51b)),aJ=(0x0,au['rR'])(oc(0x7eb)),aK=(function(){var qK=oc;function bd(be,bf,bg,bh,bi){var qJ=a0b;void 0x0===bh&&(bh=''),void 0x0===bi&&(bi=''),this['cd']=new a6['M'](),this[qJ(0x4bb)]=be,this[qJ(0x27c)]=bf+'',this[qJ(0x3fe)]=bg,this[qJ(0x1aa)]=bh,this['c']=new az['Y']();}return Object[qK(0x182)](bd[qK(0x6cb)],qK(0x5ac),{'get':function(){var qL=qK,be,bf=qL(0x55e)[qL(0x1ee)]('.');return be=0x0==bf[0x0]&&bf[0x1]<0x3?'v0':0x0==bf[0x0]&&0x3==bf[0x1]&&bf[0x2]<0x4?'v1':'v2',aI[qL(0x860)](qL(0x7c9),be),be;},'enumerable':!0x1,'configurable':!0x0}),Object[qK(0x182)](bd[qK(0x6cb)],qK(0x253),{'set':function(be){var qM=qK;console[qM(0x45c)](qM(0x306),be),ad['Z'][qM(0x1c5)]=be;},'enumerable':!0x1,'configurable':!0x0}),bd[qK(0x6cb)][qK(0x902)]=function(){return aG(this,void 0x0,void 0x0,function(){return aH(this,function(be){var qN=a0b;switch(be[qN(0x823)]){case 0x0:return[0x4,this[qN(0x3fe)]()];case 0x1:return[0x2,be['sent']()];}});});},bd['prototype']['exsurehad']=function(){return aG(this,void 0x0,void 0x0,function(){var be,bf,bg;return aH(this,function(bh){var qO=a0b;switch(bh['label']){case 0x0:return[0x4,this['c'][qO(0x54c)]()];case 0x1:return bh[qO(0x5e2)](),[0x4,this['_ts']()];case 0x2:return be=bh[qO(0x5e2)](),[0x4,this[qO(0x902)]()];case 0x3:return bf=bh[qO(0x5e2)](),bg=this['c'][qO(0x551)](be+'',this[qO(0x1aa)],this[qO(0x27c)]),[0x2,aD(aD({},bf),{'key':bg,'sdkts':be})];}});});},bd[qK(0x6cb)][qK(0x9a0)]=function(){return aG(this,void 0x0,void 0x0,function(){var be,bf,bg=this;return aH(this,function(bh){var qP=a0b;switch(bh[qP(0x823)]){case 0x0:return[0x4,this[qP(0x58c)]()];case 0x1:return be=bh[qP(0x5e2)](),bf=''[qP(0x5f8)](aJ)[qP(0x5f8)](be['ti']),[0x2,new Promise(function(bi,bj){var qQ=qP;wx[qQ(0x870)]({'url':bf,'method':qQ(0x482),'header':{},'success':function(bk){var qR=qQ,bl=bk[qR(0x329)],bm=bg['c'][qR(0x1c7)](bl),bn=JSON[qR(0x87f)](bm);bi(bn[(0x0,au['rR'])(au['gz'])]);},'fail':function(bk){var qS=qQ;console[qS(0x45c)](qS(0x435),bk),bi(bk);}});})];}});});},bd[qK(0x6cb)]['_f']=function(be,bf){return aG(this,void 0x0,void 0x0,function(){var bg,bh,bi,bj,bk,bl,bm,bn,bo,bp,bq,br,bs,bt=this;return aH(this,function(bu){var qT=a0b;switch(bu['label']){case 0x0:return bg='Preset'===bf['Type']&&JSON[qT(0x3f6)](bf),this['had']?[0x3,0x2]:(bh=this,[0x4,this[qT(0x6a9)]()]);case 0x1:bh['had']=bu['sent'](),bu[qT(0x823)]=0x2;case 0x2:return bi=function(){return aG(bt,void 0x0,void 0x0,function(){var bv,bw,bx=this;return aH(this,function(by){var qU=a0b;switch(by[qU(0x823)]){case 0x0:return bf['Version']=this[qU(0x5ac)],bv=this['c'][qU(0x4ca)](JSON[qU(0x3f6)](Object['assign']({'LicenseKey':this[qU(0x4bb)],'AccountArea':'en'===ad['Z'][qU(0x1c5)]?0x1:0x0},bf))),bw={'p':bv},[0x4,new Promise(function(bz,bA){var qV=qU;wx[qV(0x870)]({'url':be,'method':'POST','header':{'content-type':qV(0x4ab),'appid':bx[qV(0x27c)],'timestamp':bx[qV(0x6cf)][qV(0x44c)],'signature':bx[qV(0x6cf)][qV(0x749)],'authorize':bx[qV(0x6cf)][qV(0x7cc)],'wechatappid':bx[qV(0x1aa)],'sdktimestamp':bx[qV(0x6cf)][qV(0x244)]+'','Language':'en'===ad['Z'][qV(0x1c5)]?'en-US':'zh-CN'},'data':bw,'success':function(bB){var qW=qV,bC=bB[qW(0x329)],bD=bx['c']['a_de'](bC);bz(JSON[qW(0x87f)](bD));},'fail':function(bB){var qX=qV;console[qX(0x45c)]('wx\x20fetch\x20error',bB),bz(bB);}});})];case 0x1:return[0x2,by['sent']()];}});});},bg?[0x3,0x3]:(bk=!0x1,[0x3,0x6]);case 0x3:return'pending'!==aA['Z'][qT(0x298)](bg)?[0x3,0x5]:(bl=0x0,[0x4,new Promise(function(bv,bw){var bx=function(){bl++,bj=setTimeout(function(){var qY=a0b;qY(0x43e)!==aA['Z'][qY(0x298)](bg)?(clearTimeout(bj),bv(void 0x0),bk=!0x0):bl<0xa?bx():(clearTimeout(bj),bv(void 0x0),bk=!0x1);},0x12c);};bx();})]);case 0x4:return bu[qT(0x5e2)](),[0x3,0x6];case 0x5:aA['Z'][qT(0x4cb)](bg)?(bk=!0x0,bm=aA['Z']['get'](bg),bn=bm[(0x0,au['rR'])(au['Eh'])],((bo=+new Date())-0x3e8*bn>0x927c0||0x3e8*bn>bo+0x927c0)&&(bk=!0x1)):(aA['Z']['set'](bg,qT(0x43e)),bk=!0x1),bu[qT(0x823)]=0x6;case 0x6:return bk?(bq=aA['Z'][qT(0x298)](bg),[0x3,0x9]):[0x3,0x7];case 0x7:return[0x4,bi()];case 0x8:bq=bu[qT(0x5e2)](),bu[qT(0x823)]=0x9;case 0x9:return 0x65!=(bp=bq)[qT(0x56e)]?[0x3,0xc]:(br=this,[0x4,this[qT(0x6a9)]()]);case 0xa:return br[qT(0x6cf)]=bu['sent'](),[0x4,bi()];case 0xb:return bp=bu[qT(0x5e2)](),[0x3,0x10];case 0xc:return 0x6a!=bp[qT(0x56e)]?[0x3,0xf]:(bs=this,[0x4,this['exsurehad']()]);case 0xd:return bs['had']=bu[qT(0x5e2)](),[0x4,bi()];case 0xe:return bp=bu[qT(0x5e2)](),[0x3,0x10];case 0xf:0x0!==bp[qT(0x56e)]&&(bg&&aA['Z'][qT(0x591)](bg),0x65==bp['Code']?a4['N'][qT(0x975)](qT(0x6ec),{'code':ae['U'][qT(0x1ef)],'message':qT(0x42c)}):0x6a==bp[qT(0x56e)]?a4['N'][qT(0x975)](qT(0x6ec),{'code':ae['U'][qT(0x761)],'message':qT(0x2a7)}):a4['N'][qT(0x975)](qT(0x6ec),{'code':ae['U'][qT(0x3c3)],'message':bp['Message']})),bu[qT(0x823)]=0x10;case 0x10:return 0x0===bp[qT(0x56e)]?(bp[qT(0x97d)]!==this[qT(0x1aa)]&&(a4['N']['trigger'](qT(0x6ec),{'code':ae['U'][qT(0x7a9)],'message':ad['Z']['t'](qT(0x467))}),bp={'Code':-0x1,'Data':{}}),bg&&aA['Z']['set'](bg,bp)):aA['Z'][qT(0x591)](bg),[0x2,bp];}});});},bd['prototype'][qK(0x58c)]=function(){return aG(this,void 0x0,void 0x0,function(){return aH(this,function(be){var qZ=a0b;switch(be['label']){case 0x0:return[0x4,this['cd'][qZ(0x901)]()];case 0x1:return be[qZ(0x5e2)](),[0x2,this['cd'][qZ(0x8f5)](0x1e)];}});});},bd['prototype'][qK(0x992)]=function(){var r0=qK;return!(r0(0x97f)!=typeof navigator||r0(0x4f5)!=typeof navigator[r0(0x23c)]||!/electron/i[r0(0x579)](navigator[r0(0x23c)])||location[r0(0x717)]&&(r0(0x4f5)!=typeof location[r0(0x717)]||!location[r0(0x717)][r0(0x6f3)](r0(0x661))));},bd[qK(0x6cb)]['go']=function(){return aG(this,void 0x0,void 0x0,function(){var be,bf,bg,bh,bi,bj;return aH(this,function(bk){var r1=a0b;switch(bk[r1(0x823)]){case 0x0:return bk[r1(0x9c4)][r1(0x315)]([0x0,0x3,,0x4]),[0x4,this[r1(0x58c)]()];case 0x1:return be=bk[r1(0x5e2)](),[0x4,this['_f'](''[r1(0x5f8)](aJ)['concat'](be['au']),{})];case 0x2:return bf=bk[r1(0x5e2)](),bg=(bf[r1(0x35e)]||{})[(0x0,au['rR'])(au['hJ'])]||[],bh=[],bi=Object[r1(0x58b)](au['ty']),bg[r1(0x560)](function(bl){var r2=r1,bm=(0x0,au['$G'])(bl),bn=bi[r2(0x597)](function(bo){return bo[0x1]===bm;});bh[r2(0x315)](bn[0x0]);}),aA['Z'][r1(0x1e6)]((0x0,au['rR'])(au['Ty']),bh),[0x2,bf];case 0x3:return bj=bk[r1(0x5e2)](),console['log'](r1(0x8e0),bj),[0x2,new Error('fetch\x20auth\x20failed')];case 0x4:return[0x2];}});});},bd[qK(0x6cb)]['getAllEffectList']=function(be){return void 0x0===be&&(be={}),aG(this,void 0x0,void 0x0,function(){var bf,bg,bh,bi;return aH(this,function(bj){var r3=a0b;switch(bj[r3(0x823)]){case 0x0:return r3(0x522)===be['Type']&&(void 0x0!==be[r3(0x681)]&&''!==be['Label']||(be[r3(0x681)]=[ad['Z']['t'](r3(0x2e9)),ad['Z']['t']('1002')])),[0x4,this[r3(0x58c)]()];case 0x1:return bf=bj[r3(0x5e2)](),[0x4,this['_f'](''[r3(0x5f8)](aJ)[r3(0x5f8)](bf['ae']),aD({'Type':'Custom','PageNumber':0x0,'PageSize':0x3e8},be))];case 0x2:return(bg=bj[r3(0x5e2)]())&&0x0==bg[r3(0x56e)]?(bh=bg[r3(0x35e)][r3(0x582)],bi=[],(bi='Preset'===be[r3(0x489)]?bh[r3(0x7f8)](function(bk){var r4=r3;return!(bk[r4(0x681)][r4(0x50b)](ad['Z']['t']('1004'))>-0x1&&!aL(r4(0x414))||bk[r4(0x681)][r4(0x50b)](ad['Z']['t'](r4(0x66d)))>-0x1&&!aL('avatar_vr')||bk[r4(0x681)][r4(0x50b)](ad['Z']['t']('1006'))>-0x1&&!aL('avatar_ar'));}):bh)['forEach'](function(bk){aA['Z']['set'](bk['EffectId'],bk);}),[0x2,bi]):[0x2,bg];}});});},bd['prototype'][qK(0x24e)]=function(be){return aG(this,void 0x0,void 0x0,function(){var bf,bg;return aH(this,function(bh){var r5=a0b;switch(bh['label']){case 0x0:return aA['Z'][r5(0x4cb)](be[r5(0x505)])?[0x2,aA['Z'][r5(0x298)](be['EffectId'])]:[0x4,this[r5(0x58c)]()];case 0x1:return bf=bh[r5(0x5e2)](),[0x4,this['_f'](''[r5(0x5f8)](aJ)['concat'](bf['ef']),be)];case 0x2:return(bg=bh[r5(0x5e2)]())&&0x0==bg[r5(0x56e)]&&bg[r5(0x35e)]&&bg[r5(0x35e)][r5(0x22b)]?(aA['Z'][r5(0x1e6)](be['EffectId'],bg['Data']),[0x2,bg['Data']]):bg[r5(0x35e)]&&!bg[r5(0x35e)][r5(0x22b)]?[0x2,{'message':r5(0x75c)}]:[0x2,bg];}});});},bd[qK(0x6cb)][qK(0x93c)]=function(be){return void 0x0===be&&(be={}),aG(this,void 0x0,void 0x0,function(){var bf;return aH(this,function(bg){var r6=a0b;switch(bg[r6(0x823)]){case 0x0:return[0x4,this[r6(0x2f9)](be)];case 0x1:return(bf=bg['sent']())&&bf[r6(0x70e)]&&bf[r6(0x70e)]['length']&&a4['N'][r6(0x975)](r6(0x6ec),{'code':ae['U']['SDK_VERSION_LOW_ERROR'],'message':ad['Z']['t'](r6(0x466))}),bf&&bf['EffectList']?r6(0x522)===be[r6(0x489)]?[0x2,bf[r6(0x582)]]:[0x2,bf[r6(0x582)][r6(0x7f8)](function(bh){var r7=r6;return r7(0x64f)===bh['Type'];})]:[0x2,bf];}});});},bd[qK(0x6cb)][qK(0x1e8)]=function(){return aG(this,void 0x0,void 0x0,function(){var be;return aH(this,function(bf){var r8=a0b;switch(bf[r8(0x823)]){case 0x0:return[0x4,this[r8(0x2f9)]({'Type':'Preset','Label':ad['Z']['t']('1003')})];case 0x1:return(be=bf[r8(0x5e2)]())&&be['EffectList']?[0x2,be[r8(0x582)]]:[0x2,be];}});});},bd['prototype'][qK(0x8af)]=function(be){return aG(this,void 0x0,void 0x0,function(){var bf,bg;return aH(this,function(bh){var r9=a0b;switch(bh[r9(0x823)]){case 0x0:return bf=ad['Z']['t']('1006'),'VR'===be&&(bf=ad['Z']['t'](r9(0x66d))),[0x4,this[r9(0x2f9)]({'Type':'Preset','Label':bf})];case 0x1:return(bg=bh[r9(0x5e2)]())&&bg[r9(0x582)]?[0x2,bg[r9(0x582)]]:[0x2,bg];}});});},bd=aE([aB['e'],aF('design:paramtypes',[String,String,Function,String,String])],bd);}()),aL=function(bd){var ra=oc,be=aA['Z'][ra(0x298)]((0x0,au['rR'])(au['Ty'])),bf=Object['entries'](au['ty'])[ra(0x597)](function(bg){return bg[0x1]===(0x0,au['$G'])(bd);});return!(!be||!be[ra(0x597)](function(bg){return bg===bf[0x0];}));},aM=a2(0xbe4),aN=a2(0xd9b),aO=a2['n'](aN),aP=!0x1;function aQ(bd,be){!aP&&bd&&(aP=!0x0,setTimeout(function(){new(aO())({'id':'1309122168'==bd?'j4LDpiL2PlRmZ9ljaJ':'Gl3L4fE8vE5bqOVbV0','uin':bd,'ext1':bd,'ext2':be,'reportApiSpeed':!0x0,'spa':!0x1});},0x3e8));}var aR=a2(0x12c9),aS=a2(0x2700);const {screenWidth:aT,screenHeight:aU}=af,aV=wx[oc(0x7bc)][oc(0x393)]+oc(0x9c0);class aW extends a4['Q']{[oc(0x67b)]=null;[oc(0x1d2)]=[];['filter']=null;[oc(0x93b)]=!0x1;constructor(bd){var rb=oc;const {auth:be,live:bf}=bd;super();const {licenseKey:bg,appId:bh,authFunc:bi}=be,bj=wx['getAccountInfoSync']();this[rb(0x434)]=new aK(bg,bh,bi,bj[rb(0x317)][rb(0x632)]),aQ(bh),this[rb(0x6d9)]=this['auth']['go']()[rb(0x1fe)](bk=>0x0===bk[rb(0x56e)]&&(this[rb(0x975)]('created'),this[rb(0x975)](rb(0x1d0)),!0x0))[rb(0x2ec)](()=>!0x1),this[rb(0x61e)]=bf;}async[oc(0x618)](){var rc=oc;this[rc(0x759)]()['clearStickers']();}async[oc(0x249)](){var rd=oc;const bd=this['getPusherContent']();let be,bf;return this[rd(0x618)](),this[rd(0x67b)]&&(be=new Promise((bg,bh)=>{var re=rd;bd[re(0x271)]({'type':re(0x51d),'stickers':[{'id':this['background']['id'],'title':this['background']['id'],'len':0x1,'active':-0x1,'path':this[re(0x67b)][re(0x8da)],'segtype':0x0}],'success':bi=>{bg(bi);},'fail':bh});})),this[rd(0x1d2)][rd(0x61d)]&&(bf=new Promise((bg,bh)=>{var rf=rd;bd[rf(0x271)]({'type':rf(0x3ef),'stickers':this[rf(0x1d2)][rf(0x68a)](bi=>({'id':bi['id'],'title':bi['id'],'len':0x1,'active':-0x1,'pos':bi[rf(0x961)],'path':bi[rf(0x8da)],'segtype':0x0})),'success':bi=>{bg(bi);},'fail':bh});})),Promise[rd(0x227)]([be,bf]);}async[oc(0x7bb)](bd=[]){var rg=oc;const be=bd[rg(0x68a)](async bf=>{var rh=rg;const [bg,bh]=this[rh(0x3b1)](bf[rh(0x79d)]);return bf['id']=bg,bf[rh(0x8da)]=await this[rh(0x928)](bf[rh(0x79d)],bg,bh),bf;});return Promise[rg(0x227)](be);}async[oc(0x24e)](bd){var ri=oc;if(ri(0x78f)===bd)return{'Url':'https://webar-static.tencent-cloud.com/custom-effect/1309122168/1658976205287/effect.bin'};return await this[ri(0x434)][ri(0x24e)]({'EffectId':bd});}[oc(0x759)](){var rj=oc;return this['config'][rj(0x21f)]||(this[rj(0x61e)][rj(0x21f)]=wx[rj(0x41c)]()),this['config'][rj(0x21f)];}['getFilename'](bd=''){var rk=oc;const be=bd[rk(0x1ee)]('/'),bf=be[be['length']-0x1]||'test.png',bg=parseInt(new Date()['valueOf']()/0x3e8);let [bh=rk(0x579),bi=rk(0x89f)]=bf[rk(0x1ee)]('.');return bh=bh[rk(0x181)](/[^a-zA-Z0-9]/g,'')+bg,[bh,bi];}async[oc(0x981)](bd){return new Promise((be,bf)=>{var rl=a0b;wx[rl(0x967)]({'src':bd,'success':bg=>{var rm=rl;be({'width':bg[rm(0x5fb)],'height':bg[rm(0x8ec)]});},'fail':bf});});}async[oc(0x819)](bd,be){await(0x0,aS['sN'])(aV);const bf=aV+'/'+bd,bg=await(0x0,aS['nH'])(bf),bh=wx['getFileSystemManager']();if(!bg){const bi=await(0x0,aS['pe'])(bd,be);await new Promise((bj,bk)=>{bh['unzip']({'zipFilePath':bi,'targetPath':bf,'success':bj,'fail':bk,'complete':()=>{var rn=a0b;bh[rn(0x4eb)]({'filePath':bi});}});});}return new Promise((bj,bk)=>{var ro=a0b;bh[ro(0x50c)]({'filePath':bf+ro(0x31a),'encoding':ro(0x76d),'success':({data:bl})=>{const bm=JSON['parse'](bl);bj([bf,bm]);},'fail':bk});});}async[oc(0x8a9)](bd){return new Promise((be,bf)=>{var rp=a0b;wx[rp(0x870)]({'url':bd,'responseType':'arrayBuffer','success':bg=>{const {data:bh}=bg;be(bh);},'fail':bg=>{bf(bg);}});});}async[oc(0x928)](bd,be,bf){var rq=oc;await(0x0,aS['sN'])(aV);const bg=aV+'/'+be+rq(0x744);if(await(0x0,aS['nH'])(bg))return bg;const bh=await this[rq(0x8a9)](bd),bi=new Uint8Array(bh),bj=(0x0,aR['Xo'])({[be+'_0.'+bf]:bi});return await new Promise((bk,bl)=>{var rr=rq;wx[rr(0x9ce)]()[rr(0x29a)]({'filePath':bg,'data':bj[rr(0x624)],'encoding':rr(0x583),'success':()=>{bk();},'fail':bm=>{bl(bm);}});}),bg;}async[oc(0x9a8)](bd){var rs=oc;const {type:be,src:bf=''}=bd;if('image'!==be)return new Error(rs(0x37a));if(!bf)return this[rs(0x67b)]=null,this[rs(0x249)]();if(!await this[rs(0x6d9)])throw this[rs(0x975)](rs(0x6ec),{'code':ae['U']['AUTH_FAIL'],'message':'Arsdk\x20is\x20not\x20ready'}),new Error(rs(0x1ff));return[this[rs(0x67b)]]=await this['transSticker']([{'url':bf}]),this[rs(0x249)]();}async[oc(0x91f)](bd){var rt=oc;let be=wx[rt(0x9ce)]();return new Promise((bf,bg)=>{var ru=rt;be[ru(0x4eb)]({'filePath':bd,'success':bf,'fail':bg});});}async[oc(0x18b)](bd,be=0x1){var rv=oc;this['filter']=[bd,be];const bf=this[rv(0x759)]();return new Promise((bg,bh)=>{var rw=rv;bf[rw(0x943)]({'path':bd,'md5':'','alpha':be,'success':bg,'fail':bh});});}async[oc(0x32c)](bd=[]){var rx=oc;if(!bd?.[rx(0x61d)])return;if(!await this[rx(0x6d9)])throw this['trigger']('error',{'code':ae['U']['AUTH_FAIL'],'message':rx(0x1ff)}),new Error(rx(0x1ff));if(!nodeId)throw new Error(rx(0x2de));return this['stickers']=await this['transSticker'](bd),this[rx(0x249)]();}async[oc(0x545)](bd,be=0x1){var ry=oc;if(!await this['checkReady'])throw this[ry(0x975)](ry(0x6ec),{'code':ae['U']['AUTH_FAIL'],'message':ry(0x1ff)}),new Error(ry(0x1ff));const {Url:bf}=await this[ry(0x24e)](bd),[bg,bh]=await this[ry(0x819)](bd,bf),bi=bg+'/'+bh[ry(0x7f8)][0x0][ry(0x91d)];return await(0x0,aS['nH'])(bi),this[ry(0x18b)](bi,be);}[oc(0x506)](){var rz=oc;if(this['disabled'])return;this[rz(0x93b)]=!0x0;const bd=this[rz(0x759)]();bd[rz(0x618)](),bd[rz(0x1d8)]();}async['enable'](){var rA=oc;if(this[rA(0x93b)])return this[rA(0x93b)]=!0x1,this[rA(0x7f8)]&&await this['_setFilter'](...this[rA(0x7f8)]),this[rA(0x249)]();}}const aX=0x0,aY=0x2,aZ=0x3,b0=0x4,b1={'whiten':0x0,'dermabrasion':0x0,'lift':0x0,'shave':0x0,'eye':0x0,'chin':0x0};class b2 extends a4['Q']{[oc(0x1fc)];[oc(0x3ad)];[oc(0x433)]=!0x1;[oc(0x686)];['_options'];[oc(0x500)];[oc(0x952)];[oc(0x5ab)];[oc(0x93a)];[oc(0x242)]=[];[oc(0x291)]=new Map();['tickworker'];[oc(0x792)];[oc(0x347)]=0x0;[oc(0x630)]=!0x1;[oc(0x6c1)]=!0x1;['disabled']=!0x1;['el']=new ay['e']({});[oc(0x5cb)]=[];get[oc(0x4b2)](){var rB=oc;return!this[rB(0x93b)]&&(this['flag_1']||this['flag_2']);}[oc(0x506)](){var rC=oc;this[rC(0x93b)]||(this[rC(0x93b)]=!0x0,this[rC(0x686)]&&this[rC(0x686)]['disable']());}[oc(0x2ca)](){var rD=oc;this[rD(0x93b)]&&(this[rD(0x93b)]=!0x1,this['_renderer']&&this['_renderer'][rD(0x2ca)]());}constructor(bd){var rE=oc;ac[rE(0x230)](),super();const {auth:be,input:bf,live:bg,camera:bh,beautify:bi,loading:bj,output:bk,plugin3d:bl,language:bm}=bd;if(ad['Z'][rE(0x1c5)]=bm||'zh',bf){if(rE(0x4f5)!=typeof bf)return void a4['N'][rE(0x975)](rE(0x6ec),{'message':ad['Z']['t']('0004'),'code':ae['U'][rE(0x19d)]});this['input_type']=aZ;}else{if(bh)this[rE(0x792)]=aX;else{if(!bg||!bg[rE(0x21f)])return void a4['N'][rE(0x975)](rE(0x6ec),{'message':ad['Z']['t'](rE(0x9c1)),'code':ae['U'][rE(0x19d)]});if(this[rE(0x792)]=b0,rE(0x3ff)===bg[rE(0x353)])return new aW(bd);if(!al)throw new Error(rE(0x1a3));}}this[rE(0x8c5)]=this[rE(0x5f9)](be);const bn={'input':bf,'live':bg,'mirror':this['input_type']===aX&&bh[rE(0x384)],'beautify':bi,'plugin3d':bl,'output':new wx[(rE(0x507))][(rE(0x81c))](bk)};bj&&bj[rE(0x2ca)]&&(bn['enableLoadingIcon']=bj['enable'],bn[rE(0x2d3)]={'size':bj[rE(0x1b2)],'lineWidth':bj['lineWidth'],'strokeColor':bj[rE(0x325)]}),this[rE(0x942)]=bn,this[rE(0x62b)](bf||bh||bg)[rE(0x1fe)](({width:bo,height:bp})=>{var rF=rE;this[rF(0x942)]['width']=bo,this['_options'][rF(0x8ec)]=bp,'offscreen'===au['iN']&&this[rF(0x792)]!==b0&&(this[rF(0x5ab)]=new wx[(rF(0x507))][(rF(0x81c))](wx[rF(0x756)]({'type':'webgl','width':this[rF(0x942)][rF(0x5fb)],'height':this[rF(0x942)]['height']})),this[rF(0x93a)]=new ac[(rF(0x3ca))]({'view':this[rF(0x5ab)],'width':this[rF(0x942)]['width'],'height':this[rF(0x942)][rF(0x8ec)],'preserveDrawingBuffer':!0x0,'antialias':!0x1})),this[rF(0x54c)](),aQ(be[rF(0x632)],be[rF(0x2e8)]);}),wx[rE(0x5c2)](()=>{var rG=rE;console['log'](rG(0x208)),this['el'][rG(0x837)](),(0x0,aM['UI'])();});}async[oc(0x62b)](bd){var rH=oc;if(this[rH(0x792)]===b0){let be=bd?.[rH(0x6b9)];return be?.[rH(0x6fd)]&&be?.['realWidth']||(be=b2[rH(0x56a)](0x2d0)),{'width':be?.[rH(0x7d0)],'height':be?.[rH(0x6fd)]};}return this[rH(0x792)]===aX?{'width':bd['width'],'height':bd['height']}:rH(0x4f5)==typeof bd?new Promise((bf,bg)=>{var rI=rH;const bh=wx[rI(0x4db)]('2d')[rI(0x1d3)]();bh[rI(0x218)]=()=>{var rJ=rI;bf({'width':bh[rJ(0x5fb)],'height':bh['height']});},bh[rI(0x38b)]=function(){var rK=rI;a4['N']['trigger'](rK(0x6ec),{'message':ad['Z']['t'](rK(0x83f)),'code':ae['U'][rK(0x19d)]}),bg();},bh[rI(0x91d)]=bd;}):void 0x0;}['init'](){var rL=oc;wx['requestAnimationFrame']=this['_options']['output'][rL(0x7c5)],wx[rL(0xa22)]=this[rL(0x942)][rL(0x73f)][rL(0xa22)],this['_detector']=ak?new ab(this[rL(0x942)]):new a7(),this[rL(0x1fc)]=new ar({...this[rL(0x942)],'manual':this[rL(0x792)]===aX}),this[rL(0x686)]=new as['g'](this[rL(0x942)]),this[rL(0x90c)]=this[rL(0x554)](),Promise['all']([this[rL(0x8c5)][rL(0x1fe)](()=>this['trigger'](rL(0x6bb))),this[rL(0x7aa)](),this[rL(0x90c)][rL(0x54c)](),this[rL(0x3ad)][rL(0x54c)](),this[rL(0x686)][rL(0x7d1)]('default',this[rL(0x942)][rL(0x7f9)]||{})])[rL(0x1fe)](()=>{var rM=rL;this[rM(0x1fc)][rM(0x3f1)]=this[rM(0x90c)],this[rM(0x585)](this[rM(0x942)]['beautify']),this['_ready']||(this[rM(0x975)](rM(0x1d0)),this[rM(0x433)]=!0x0),this[rM(0x70f)]();}),a4['N']['on'](rL(0x6ec),bd=>{var rN=rL;this[rN(0x975)]('error',bd);});}['_initMainLoop'](){var rP=oc;this['_renderFunc']=async()=>{var rO=a0b;const bd='low'===this['_options'][rO(0x2ce)]?.['fps']?0x4:0x2;this[rO(0x347)]%bd==0x0&&this[rO(0x5bb)]()['catch'](be=>console['log']('render\x20fail',be)),this['count']++,this[rO(0x347)]>=0x4&&(this['count']=0x0);},ac[rP(0x8ee)][rP(0x26e)]['add'](this[rP(0x500)]);}['logTime'](bd){var rQ=oc;const be=+new Date();console['log'](bd+rQ(0x728)+(be-this[rQ(0x7f4)])),this[rQ(0x7f4)]=be;}async[oc(0x5bb)](){var rR=oc;if(this['_destroyed'])return;const bd=this['_input'][rR(0x9e7)]();if(this[rR(0x4b2)]){if(!bd)return!0x1;const be=await this[rR(0x3ad)][rR(0x2d2)](bd),{landmarks:bf,angles:bg,meshVertex:bh,lipVertex:bi}=be;this[rR(0x686)][rR(0x605)](bh),this[rR(0x686)][rR(0x341)](bf),this[rR(0x686)][rR(0x7fe)]({'landmarks':bf,'meshVertex':bh,'lipVertex':bi,'angles':bg,'image':this[rR(0x792)]===b0?this[rR(0x1fc)]['canvas']:bd,'isLivePusher':this[rR(0x792)]===b0});}else this['_renderer'][rR(0x7fe)]({'landmarks':[],'meshVertex':[],'lipVertex':[],'angles':{},'image':this['input_type']===b0?this['_input']['canvas']:bd,'isLivePusher':this[rR(0x792)]===b0});this[rR(0x7c7)](),this[rR(0x65c)](),this['transcodeLive']();}[oc(0x7c7)](){var rS=oc;if(this['recording']){if('offscreen'===au['iN']){if(this[rS(0x874)]=new Date(),this['renderSprite'])this[rS(0x952)][rS(0x732)][rS(0x9c2)]();else{let bd=ac[rS(0x1ac)][rS(0x1d4)](this[rS(0x686)]['_canvas']);this['renderSprite']=new ac['Sprite'](bd),this['renderSprite'][rS(0x9eb)]['set'](0.5,0.5),this[rS(0x952)][rS(0x784)]['x']=this[rS(0x952)][rS(0x5fb)]/0x2,this[rS(0x952)][rS(0x784)]['y']=this[rS(0x952)][rS(0x8ec)]/0x2,!ag||rS(0x86e)!=ai&&rS(0x2b4)!=ai&&rS(0x302)!=ai?this[rS(0x952)][rS(0x806)][rS(0x1e6)](0x1,0x1):this[rS(0x952)]['scale'][rS(0x1e6)](0x1,-0x1);}this[rS(0x93a)][rS(0x5bb)](this['renderSprite']),this[rS(0xa11)]||(this[rS(0xa11)]=!0x0);}else this[rS(0x99b)]['loop']();}else{if(this['takingPhoto']){const be=this[rS(0x686)][rS(0x2be)]();this['cacheImage']=be;}}}async[oc(0x5f9)](bd){var rT=oc;const {licenseKey:be,appId:bf,authFunc:bg}=bd,bh=wx[rT(0x864)]();this['_a']=new aK(be,bf,bg,bh[rT(0x317)][rT(0x632)]);const bi=await this['_a']['go']();return 0x0!==bi?.[rT(0x56e)]?(this[rT(0x975)](rT(0x6ec),{'code':ae['U']['AUTH_FAIL'],'message':bi[rT(0xa08)]}),Promise[rT(0x7ac)](bi[rT(0xa08)])):bi;}async[oc(0x93c)](bd={}){var rU=oc;return await this['_a'][rU(0x93c)](bd);}async[oc(0x24e)](bd){var rV=oc;if(rV(0x78f)===bd)return{'Url':rV(0x2d5)};const be=await this['_a']['getEffect']({'EffectId':bd});return be['Url']?be:Promise['reject'](be[rV(0x939)]);}async['getCommonFilter'](){var rW=oc;return await this['_a'][rW(0x1e8)]();}async[oc(0x7aa)](){var rX=oc;const bd=new ax['KI']();await bd[rX(0x54c)]();}['getInputNode'](){var rY=oc;if(this['input_type']===aZ)return new ap(this['_options']);if(this[rY(0x792)]===aY){const bd=new aw(this['_options']);return bd['on'](rY(0x82f),()=>{var rZ=rY;this[rZ(0x975)](rZ(0x82f));}),bd;}return this[rY(0x792)]===b0?new an(this[rY(0x942)]):new ao(this[rY(0x942)]);}[oc(0x585)](bd={}){var s0=oc;Object[s0(0x365)](bd)[s0(0x865)](be=>s0(0x51e)!==be&&s0(0x3f8)!==be&&bd[be])?this['flag_1']=!0x0:this['flag_1']=!0x1;}[oc(0x82c)](bd){var s1=oc;bd=bd||{},bd={...b1,...bd},aL(s1(0x7f9))?(this[s1(0x585)](bd),this[s1(0x6d9)]()['then'](()=>{var s2=s1;this[s2(0x686)]['switchMode'](s2(0x49b)),this[s2(0x686)][s2(0x32e)](s2(0x854),bd);})):this[s1(0x975)](s1(0x6ec),{'code':ae['U']['AUTH_API_FAIL'],'message':ad['Z']['t']('0007')});}[oc(0x857)](bd,be,bf){var s3=oc;if(!aL(s3(0x649))||!aL(s3(0x66b)))return void this['trigger']('error',{'code':ae['U'][s3(0x5d1)],'message':ad['Z']['t'](s3(0x6be))});if(!this[s3(0x686)]||!this[s3(0x686)][s3(0x85b)])return console[s3(0x45c)]('set\x20effect\x20no\x20meshVertex!'),void this[s3(0x975)](s3(0x6ec),{'code':ae['U'][s3(0x4a1)],'message':s3(0x4ad)});bd[s3(0x61d)]?this[s3(0x6c1)]=!0x0:this[s3(0x6c1)]=!0x1;let bg=[],bh=[],bi=[];if(Array[s3(0x813)](bd))bd[s3(0x560)](bj=>{var s4=s3;if(bj instanceof Object){bg[s4(0x315)](bj['id']);let bk=bj[s4(0x8ac)];bk=this['_checkVoid'](bk)?0x1:bk,bh[s4(0x315)](bj[s4(0x8ac)]);let bl=bj[s4(0x835)];bi['push'](this[s4(0x324)](bl)?bk:bl);}else bg[s4(0x315)](bj),bh['push'](0x1),bi['push'](0x1);});else{if(bd instanceof Object){bg=[bd['id']];let bj=bd[s3(0x8ac)];bj=this[s3(0x324)](bj)?0x1:bj,bh=[bj],bh=[bd[s3(0x8ac)]];let bk=bd[s3(0x835)];bi=[this['_checkVoid'](bk)?bj:bk];}else bg=[bd],bh=[0x1],bi=[0x1];}this['setEffectInner'](bg,bh,bi,be,bf);}[oc(0x324)](bd){return null==bd;}[oc(0x33f)](bd,be,bf,bg,bh){var s5=oc;this['el']['clearCache'](),this[s5(0x242)]=bd,this[s5(0x686)][s5(0x5a8)](),Promise[s5(0x227)](bd[s5(0x68a)](bi=>this[s5(0x24e)](bi)['then'](bj=>bj[s5(0x22b)])))[s5(0x1fe)](async bi=>{var s6=s5;bd[s6(0x865)](bj=>-0x1===this['lastestEffectIds']['indexOf'](bj))||(await as['g']['preloadEffects'](bi),this[s6(0x686)]['hideLoading'](),bd[s6(0x865)](bj=>-0x1===this[s6(0x242)][s6(0x50b)](bj))||(bg&&s6(0x4df)==typeof bg&&bg(),this[s6(0x686)]['switchMode'](s6(0x49b)),this[s6(0x686)][s6(0x857)](bi,be,bf,()=>!!aL(s6(0x414))||(this[s6(0x975)](s6(0x6ec),{'code':ae['U'][s6(0x5d1)],'message':ad['Z']['t'](s6(0x6be))}),!0x1))[s6(0x1fe)](bj=>{})));})[s5(0x2ec)](bi=>{var s7=s5;console['log'](s7(0x954),bd,bi),a4['N'][s7(0x975)](s7(0x6ec),{'code':ae['U'][s7(0x4a1)],'message':'set\x20effect\x20error','error':bi}),this[s7(0x686)][s7(0x556)](),bh&&s7(0x4df)==typeof bh&&bh();});}[oc(0x545)](bd,be=0x1,bf,bg){var s8=oc;if(aL('filter'))return this[s8(0x686)]&&this[s8(0x686)][s8(0x85b)]?void(bd&&s8(0x94a)!==bd?(this[s8(0x291)]['has'](bd)||this[s8(0x686)][s8(0x5a8)](),this[s8(0x24e)](bd)[s8(0x1fe)](async bh=>{var s9=s8;this[s9(0x291)][s9(0x4cb)](bd)||await as['g']['preloadEffects']([bh[s9(0x22b)]]),this[s9(0x686)][s9(0x556)](),this[s9(0x291)][s9(0x1e6)](bd,bh['Url']),bf&&s9(0x4df)==typeof bf&&bf(),this[s9(0x686)][s9(0x7bd)](s9(0x49b)),this[s9(0x686)][s9(0x17a)](bh[s9(0x22b)],be);})[s8(0x2ec)](bh=>{var sa=s8;a4['N'][sa(0x975)](sa(0x6ec),{'code':ae['U'][sa(0x4cc)],'message':sa(0x2cc),'error':bh}),this[sa(0x686)]['hideLoading'](),bg&&sa(0x4df)==typeof bg&&bg();})):this[s8(0x686)]['removeExclusiveFilter']()):(console['log'](s8(0x4b9)),void this[s8(0x975)](s8(0x6ec),{'code':ae['U'][s8(0x4cc)],'message':s8(0x4ad)}));this[s8(0x975)](s8(0x6ec),{'code':ae['U'][s8(0x5d1)],'message':ad['Z']['t'](s8(0x6be))});}async[oc(0x6d9)](){return new Promise(bd=>{let be;const bf=()=>{var sb=a0b;this[sb(0x433)]?(bd(),be&&clearTimeout(be)):be=setTimeout(bf,0x3e8);};bf();});}async['startRecord'](bd={'audio':{'format':'mp3'}}){var sc=oc;if(!this[sc(0x5df)]){if(this[sc(0x792)]===b0)throw new Error(sc(0x978));return this[sc(0x5df)]=!0x0,this[sc(0x99b)]=new av({'canvas':sc(0x1a5)===au['iN']?this[sc(0x5ab)]:this[sc(0x942)][sc(0x73f)],...bd}),await this[sc(0x99b)]['start'](),this['_startTime']=+new Date(),'offscreen'===au['iN']&&(this[sc(0x36c)]=wx[sc(0x671)](au['d9']+sc(0x9d7)),this[sc(0x36c)][sc(0x4b0)](()=>{var sd=sc;this[sd(0x99b)][sd(0x615)]();}),this[sc(0x36c)]['postMessage'](sc(0x1f8))),this[sc(0x99b)];}}async[oc(0x401)](bd={'useOriginAudio':!0x1,'destroy':!0x1}){var sf=oc;if(!this['recording'])return;if(ag){const bf=0xbb8,bg=bh=>new Promise((bi,bj)=>{var se=a0b;console[se(0x45c)](se(0x747),bh),setTimeout(()=>bi(),bh);});await bg(Math[sf(0x94f)](0x0,bf-(+new Date()-this[sf(0x8ea)])));}this[sf(0x36c)][sf(0x17e)]('stop'),this[sf(0x36c)][sf(0x3d7)]();const be=await this['recorder'][sf(0x355)](bd);return this[sf(0x99b)]=null,this[sf(0x5df)]=!0x1,be;}async[oc(0xa1a)](bd){return new Promise((be,bf)=>{var sg=a0b;wx[sg(0xa1a)]({'src':bd,'success':bg=>{be(bg);},'fail':()=>{bf({'errMsg':'get\x20video\x20info\x20fail'});}});});}async[oc(0x750)](){return new Promise(bd=>{var sh=a0b;this[sh(0x5cb)]['push'](bd);});}[oc(0x65c)](){var si=oc;const bd=this[si(0x5cb)][si(0x91c)]();if(bd){const bl=this[si(0x3a8)]||this['_renderer'][si(0x2be)](),{data:bm,width:bn,height:bo}=bl;for(var be=new Uint8ClampedArray(this[si(0x259)](bm)),bf=bo/0x2|0x0,bg=0x4*bn,bh=new Uint8ClampedArray(0x4*bn),bi=0x0;bi<bf;++bi){var bj=bi*bg,bk=(bo-bi-0x1)*bg;bh['set'](be[si(0x4da)](bj,bj+bg)),be[si(0x2d1)](bj,bk,bk+bg),be['set'](bh,bk);}bd({'uint8ArrayData':be,'width':bn,'height':bo});}}['typedArrayToBuffer'](bd){var sj=oc;return bd[sj(0x624)]['slice'](bd[sj(0x6d0)],bd[sj(0x790)]+bd[sj(0x6d0)]);}[oc(0x1f8)](){var sk=oc;ac[sk(0x8ee)][sk(0x26e)][sk(0x1f8)]();}[oc(0x355)](){var sl=oc;ac[sl(0x8ee)]['shared']['stop']();}[oc(0x970)](){var sm=oc;this[sm(0x686)][sm(0x194)][sm(0x970)]();}[oc(0x73a)](bd=!0x0){var sn=oc;this['_a']['had']=void 0x0,this['_destroyed']=!0x0,this[sn(0x500)]&&ac[sn(0x8ee)]['shared']['remove'](this['_renderFunc']),this[sn(0x3ad)]&&this['_detector'][sn(0x73a)](),this[sn(0x686)]&&this['_renderer']['destroy'](),this[sn(0x1fc)]&&this[sn(0x1fc)][sn(0x73a)](),this[sn(0x90c)]&&this[sn(0x90c)][sn(0x73a)](),this[sn(0x93a)]&&(this[sn(0x93a)][sn(0x73a)](),this[sn(0x952)]&&this[sn(0x952)][sn(0x73a)](!0x0)),this[sn(0x5ab)]&&(this[sn(0x5ab)]=null),bd&&(async function(){var so=sn;wx[so(0x4db)]=null;for(let be in ac['utils'][so(0x237)]){const bf=ac[so(0x7d6)][so(0x237)][be];ac[so(0x1ac)][so(0x935)](bf),bf[so(0x73a)](!0x0);}(0x0,aM['UI'])(),new ay['e']({})['clearCache'](),ac[so(0x7c8)](),ac[so(0x8ee)][so(0x26e)]['stop']();}());}static['getRealSize'](bd=0x2d0){var sp=oc;bd=bd||0x2d0;const {platform:be,pixelRatio:bf}=af,bg=am(),bh=0x10/0x9;let bi=Math[sp(0x312)](bd*bh);const bj={'width':'0','height':'0','showWidth':0x0,'showHeight':0x0,'realWidth':0x0,'realHeight':0x0};function bk(bl,bm=0x2){var sq=sp;const bn=Math[sq(0x312)](bl*bf);return bn%bm!=0x0?bk(bl-0x1,bm):[bl,bn];}if(sp(0x9b8)===be)bd=bd%0x2?bd-0x1:bd,bi=bi%0x2?bi-0x1:bi,bj[sp(0x5c6)]=bj[sp(0x7d0)]=bg?bi:bd,bj[sp(0x20e)]=bj[sp(0x6fd)]=bg?bd:bi;else{const bl=Math[sp(0x312)](bd/bf),bm=Math[sp(0x312)](bi/bf);[bj[sp(0x5c6)],bj['realWidth']]=bk(bg?bm:bl,0x4),[bj['showHeight'],bj[sp(0x6fd)]]=bk(bg?bl:bm);}return bj[sp(0x5fb)]=bj[sp(0x5c6)]+'px',bj[sp(0x8ec)]=bj[sp(0x20e)]+'px',bj[sp(0x5a3)]=bg?0.5625:bh,bj;}[oc(0x5b0)](bd,be){var sr=oc;const bf=am();if(!bf&&bd>0x2d0)throw new Error(sr(0x701)+bd+'px');if(bf&&be>0x2d0)throw new Error(sr(0x4dd)+be+'px');if(ag){if(bd%0x4!=0x0||be%0x2!=0x0)throw new Error(sr(0x9d1));}else{if(bd%0x2!=0x0||be%0x2!=0x0)throw new Error(sr(0x7c2));}}[oc(0x35c)](){var ss=oc;this[ss(0x792)]===b0&&this[ss(0x90c)]?.['generatePusherData']();}['changeLiveFps'](bd){var st=oc;if('high'!==bd||'low'!==bd)throw new Error(st(0x20c));this[st(0x942)]['live'][st(0x91e)]=bd;}}var b3,b4,b5;!function(bd){var su=oc;bd[bd['Default']=0x0]=su(0x449),bd[bd[su(0x59a)]=0x1]=su(0x59a);}(b3||(b3={})),function(bd){bd['2D']='2d',bd['3D']='3d';}(b4||(b4={})),function(bd){var sv=oc;bd[bd[sv(0x577)]=0x0]=sv(0x577),bd[bd[sv(0x794)]=0x1]=sv(0x794),bd[bd[sv(0x2bb)]=0x2]='CANVAS',bd[bd[sv(0x2c9)]=0x3]='IMAGE',bd[bd[sv(0x8b1)]=0x4]=sv(0x8b1);}(b5||(b5={}));var b6,b7,b8={'CAMERA':0x0,'CANVAS2D':0x2,'IMAGE':0x3};!function(bd){var sw=oc;bd[bd[sw(0x577)]=0x0]=sw(0x577),bd[bd[sw(0x794)]=0x1]=sw(0x794),bd[bd[sw(0x2bb)]=0x2]=sw(0x2bb),bd[bd[sw(0x2c9)]=0x3]=sw(0x2c9),bd[bd[sw(0x8b1)]=0x4]='MEDIA_STREAM';}(b6||(b6={})),function(bd){var sx=oc;bd[bd[sx(0x60d)]=0x0]=sx(0x60d),bd[bd[sx(0x397)]=0x1]='DEFAULT';}(b7||(b7={}));var b9=a2(0x6c2);},0xde1:(b,d,f)=>{f['d'](d,{'Z':()=>k});var g=f(0x191),h=function(m){var sy=a0b,p='function'==typeof Symbol&&Symbol[sy(0x3c2)],q=p&&m[p],v=0x0;if(q)return q[sy(0x6ca)](m);if(m&&sy(0x78e)==typeof m[sy(0x61d)])return{'next':function(){return m&&v>=m['length']&&(m=void 0x0),{'value':m&&m[v++],'done':!m};}};throw new TypeError(p?sy(0x494):sy(0x534));},j=function(m,p){var sz=a0b,q=sz(0x4df)==typeof Symbol&&m[Symbol[sz(0x3c2)]];if(!q)return m;var v,w,x=q[sz(0x6ca)](m),y=[];try{for(;(void 0x0===p||p-->0x0)&&!(v=x[sz(0x549)]())[sz(0x2ed)];)y[sz(0x315)](v[sz(0x9e0)]);}catch(z){w={'error':z};}finally{try{v&&!v[sz(0x2ed)]&&(q=x[sz(0x512)])&&q[sz(0x6ca)](x);}finally{if(w)throw w[sz(0x6ec)];}}return y;};const k=new(function(){var sB=a0b;function m(){var sA=a0b;this[sA(0x329)]=new Map(),this[sA(0x1e6)]('common-v3',{'Url':(0x0,g['xb'])()});}return m[sB(0x6cb)][sB(0x1e6)]=function(p,q){var sC=sB;this[sC(0x329)][sC(0x1e6)](p,q);},m[sB(0x6cb)][sB(0x298)]=function(p){var sD=sB;return this[sD(0x329)][sD(0x298)](p);},m[sB(0x6cb)][sB(0x4cb)]=function(p){var sE=sB;return this[sE(0x329)]['has'](p);},m[sB(0x6cb)][sB(0x591)]=function(p){var sF=sB;this[sF(0x329)][sF(0x1d9)](p);},m[sB(0x6cb)][sB(0x263)]=function(){var sG=sB;this[sG(0x329)][sG(0x263)]();},m['prototype']['findId']=function(p){var sH=sB,q,v;try{for(var w=h(this['data']),x=w[sH(0x549)]();!x['done'];x=w[sH(0x549)]()){var y=j(x['value'],0x2),z=y[0x0];y[0x1];if(this['data'][sH(0x298)](z)[sH(0x22b)]===p)return z;}}catch(A){q={'error':A};}finally{try{x&&!x[sH(0x2ed)]&&(v=w[sH(0x512)])&&v[sH(0x6ca)](w);}finally{if(q)throw q[sH(0x6ec)];}}return null;},m;}())();},0xf09:(b,d,f)=>{f['d'](d,{'t':()=>m});var g,h=f(0x1ade),j=f(0x17dd),k=(g=function(p,q){return g=Object['setPrototypeOf']||{'__proto__':[]}instanceof Array&&function(v,w){var sI=a0b;v[sI(0x3b3)]=w;}||function(v,w){var sJ=a0b;for(var x in w)Object['prototype'][sJ(0x708)]['call'](w,x)&&(v[x]=w[x]);},g(p,q);},function(p,q){var sK=a0b;if(sK(0x4df)!=typeof q&&null!==q)throw new TypeError(sK(0x20f)+String(q)+sK(0x67f));function v(){var sL=sK;this[sL(0x93e)]=p;}g(p,q),p[sK(0x6cb)]=null===q?Object['create'](q):(v[sK(0x6cb)]=q[sK(0x6cb)],new v());}),m=function(p){var sN=a0b;function q(){var sM=a0b,v=p[sM(0x6ca)](this)||this;return v[sM(0x942)]={},v;}return k(q,p),Object[sN(0x182)](q['prototype'],sN(0x361),{'get':function(){var sO=sN;return this[sO(0x942)];},'enumerable':!0x1,'configurable':!0x0}),q[sN(0x6cb)][sN(0x6c2)]=function(){var sP=sN;return this[sP(0x942)];},q[sN(0x6cb)][sN(0x7b4)]=function(v){var sQ=sN;j['bH'][sQ(0x45c)](sQ(0x6ea),v[sQ(0x384)],this[sQ(0x942)][sQ(0x384)]),void 0x0!==v[sQ(0x384)]&&v[sQ(0x384)]!==this['_options'][sQ(0x384)]&&(j['bH'][sQ(0x45c)](sQ(0x3cf),v[sQ(0x384)]),this['trigger'](sQ(0x61b),{'mirror':v[sQ(0x384)]})),this['_options']=v;},q[sN(0x369)]=new q(),q;}(h['Q']);},0x435:(j,q,z)=>{var t5=a0b;z['d'](q,{'F':()=>a4});var A,B=z(0x4b6),D=z(0x15a0),F=z(0xc30),G=(A=function(a5,a6){var sR=a0b;return A=Object[sR(0x977)]||{'__proto__':[]}instanceof Array&&function(a7,a8){a7['__proto__']=a8;}||function(a7,a8){var sS=sR;for(var a9 in a8)Object[sS(0x6cb)][sS(0x708)][sS(0x6ca)](a8,a9)&&(a7[a9]=a8[a9]);},A(a5,a6);},function(a5,a6){var sT=a0b;if(sT(0x4df)!=typeof a6&&null!==a6)throw new TypeError(sT(0x20f)+String(a6)+sT(0x67f));function a7(){var sU=sT;this[sU(0x93e)]=a5;}A(a5,a6),a5[sT(0x6cb)]=null===a6?Object[sT(0x7da)](a6):(a7['prototype']=a6[sT(0x6cb)],new a7());}),H=function(a5,a6,a7,a8){return new(a7||(a7=Promise))(function(a9,aa){var sY=a0b;function ab(ae){var sV=a0b;try{ad(a8[sV(0x549)](ae));}catch(af){aa(af);}}function ac(ae){var sW=a0b;try{ad(a8[sW(0x30d)](ae));}catch(af){aa(af);}}function ad(ae){var sX=a0b,af;ae['done']?a9(ae['value']):(af=ae[sX(0x9e0)],af instanceof a7?af:new a7(function(ag){ag(af);}))['then'](ab,ac);}ad((a8=a8[sY(0x1ea)](a5,a6||[]))[sY(0x549)]());});},I=function(a5,a6){var sZ=a0b,a7,a8,a9,aa,ab={'label':0x0,'sent':function(){if(0x1&a9[0x0])throw a9[0x1];return a9[0x1];},'trys':[],'ops':[]};return aa={'next':ac(0x0),'throw':ac(0x1),'return':ac(0x2)},sZ(0x4df)==typeof Symbol&&(aa[Symbol['iterator']]=function(){return this;}),aa;function ac(ad){return function(ae){return function(af){var t0=a0b;if(a7)throw new TypeError('Generator\x20is\x20already\x20executing.');for(;ab;)try{if(a7=0x1,a8&&(a9=0x2&af[0x0]?a8['return']:af[0x0]?a8[t0(0x30d)]||((a9=a8[t0(0x512)])&&a9[t0(0x6ca)](a8),0x0):a8[t0(0x549)])&&!(a9=a9[t0(0x6ca)](a8,af[0x1]))[t0(0x2ed)])return a9;switch(a8=0x0,a9&&(af=[0x2&af[0x0],a9['value']]),af[0x0]){case 0x0:case 0x1:a9=af;break;case 0x4:return ab[t0(0x823)]++,{'value':af[0x1],'done':!0x1};case 0x5:ab[t0(0x823)]++,a8=af[0x1],af=[0x0];continue;case 0x7:af=ab[t0(0xa27)][t0(0x984)](),ab['trys'][t0(0x984)]();continue;default:if(!(a9=ab[t0(0x9c4)],(a9=a9[t0(0x61d)]>0x0&&a9[a9[t0(0x61d)]-0x1])||0x6!==af[0x0]&&0x2!==af[0x0])){ab=0x0;continue;}if(0x3===af[0x0]&&(!a9||af[0x1]>a9[0x0]&&af[0x1]<a9[0x3])){ab[t0(0x823)]=af[0x1];break;}if(0x6===af[0x0]&&ab[t0(0x823)]<a9[0x1]){ab[t0(0x823)]=a9[0x1],a9=af;break;}if(a9&&ab['label']<a9[0x2]){ab[t0(0x823)]=a9[0x2],ab[t0(0xa27)][t0(0x315)](af);break;}a9[0x2]&&ab[t0(0xa27)]['pop'](),ab[t0(0x9c4)][t0(0x984)]();continue;}af=a6[t0(0x6ca)](a5,ab);}catch(ag){af=[0x6,ag],a8=0x0;}finally{a7=a9=0x0;}if(0x5&af[0x0])throw af[0x1];return{'value':af[0x0]?af[0x1]:void 0x0,'done':!0x0};}([ad,ae]);};}},J=function(a5){var t2=a0b;function a6(a7){var t1=a0b,a8=a5[t1(0x6ca)](this)||this;return a8[t1(0x942)]=a7,a8;}return G(a6,a5),a6[t2(0x6cb)]['getFilterInstance']=function(a7){return H(this,void 0x0,Promise,function(){var a8,a9=this;return I(this,function(aa){var t3=a0b;switch(aa[t3(0x823)]){case 0x0:return[0x4,this[t3(0x54c)]()];case 0x1:return a8=aa[t3(0x5e2)](),[0x2,this[t3(0x492)](a8)[t3(0x1fe)](function(ab){var t4=t3;return ab[F['RY']]['baseTexture'][t4(0x9d0)]=B[t4(0x313)][t4(0x8b8)],ab[F['RY']][t4(0x41f)][t4(0x419)]=B[t4(0x908)][t4(0x44b)],new D['f'](t4(0x405),a9[t4(0x942)],{'uniforms':{'lut':ab[F['RY']],'lutSize':[0x200,0x200],'intensity':a7}});})];}});});},a6;}(F['KI']),K=z(0x24f3);const L=t5(0x8a0),M=t5(0x528);var N=z(0x191),O=(function(){var a5=function(a6,a7){return a5=Object['setPrototypeOf']||{'__proto__':[]}instanceof Array&&function(a8,a9){a8['__proto__']=a9;}||function(a8,a9){var t6=a0b;for(var aa in a9)Object[t6(0x6cb)][t6(0x708)]['call'](a9,aa)&&(a8[aa]=a9[aa]);},a5(a6,a7);};return function(a6,a7){var t7=a0b;if(t7(0x4df)!=typeof a7&&null!==a7)throw new TypeError('Class\x20extends\x20value\x20'+String(a7)+t7(0x67f));function a8(){this['constructor']=a6;}a5(a6,a7),a6[t7(0x6cb)]=null===a7?Object[t7(0x7da)](a7):(a8['prototype']=a7[t7(0x6cb)],new a8());};}()),Q=function(a5,a6,a7,a8){return new(a7||(a7=Promise))(function(a9,aa){var ta=a0b;function ab(ae){try{ad(a8['next'](ae));}catch(af){aa(af);}}function ac(ae){var t8=a0b;try{ad(a8[t8(0x30d)](ae));}catch(af){aa(af);}}function ad(ae){var t9=a0b,af;ae[t9(0x2ed)]?a9(ae[t9(0x9e0)]):(af=ae[t9(0x9e0)],af instanceof a7?af:new a7(function(ag){ag(af);}))[t9(0x1fe)](ab,ac);}ad((a8=a8[ta(0x1ea)](a5,a6||[]))['next']());});},R=function(a5,a6){var tb=t5,a7,a8,a9,aa,ab={'label':0x0,'sent':function(){if(0x1&a9[0x0])throw a9[0x1];return a9[0x1];},'trys':[],'ops':[]};return aa={'next':ac(0x0),'throw':ac(0x1),'return':ac(0x2)},tb(0x4df)==typeof Symbol&&(aa[Symbol[tb(0x3c2)]]=function(){return this;}),aa;function ac(ad){return function(ae){return function(af){var tc=a0b;if(a7)throw new TypeError('Generator\x20is\x20already\x20executing.');for(;ab;)try{if(a7=0x1,a8&&(a9=0x2&af[0x0]?a8['return']:af[0x0]?a8[tc(0x30d)]||((a9=a8[tc(0x512)])&&a9[tc(0x6ca)](a8),0x0):a8[tc(0x549)])&&!(a9=a9['call'](a8,af[0x1]))[tc(0x2ed)])return a9;switch(a8=0x0,a9&&(af=[0x2&af[0x0],a9['value']]),af[0x0]){case 0x0:case 0x1:a9=af;break;case 0x4:return ab[tc(0x823)]++,{'value':af[0x1],'done':!0x1};case 0x5:ab[tc(0x823)]++,a8=af[0x1],af=[0x0];continue;case 0x7:af=ab['ops']['pop'](),ab[tc(0x9c4)][tc(0x984)]();continue;default:if(!(a9=ab[tc(0x9c4)],(a9=a9[tc(0x61d)]>0x0&&a9[a9['length']-0x1])||0x6!==af[0x0]&&0x2!==af[0x0])){ab=0x0;continue;}if(0x3===af[0x0]&&(!a9||af[0x1]>a9[0x0]&&af[0x1]<a9[0x3])){ab['label']=af[0x1];break;}if(0x6===af[0x0]&&ab['label']<a9[0x1]){ab[tc(0x823)]=a9[0x1],a9=af;break;}if(a9&&ab[tc(0x823)]<a9[0x2]){ab[tc(0x823)]=a9[0x2],ab[tc(0xa27)]['push'](af);break;}a9[0x2]&&ab[tc(0xa27)][tc(0x984)](),ab['trys'][tc(0x984)]();continue;}af=a6['call'](a5,ab);}catch(ag){af=[0x6,ag],a8=0x0;}finally{a7=a9=0x0;}if(0x5&af[0x0])throw af[0x1];return{'value':af[0x0]?af[0x1]:void 0x0,'done':!0x0};}([ad,ae]);};}},U=(function(){var te=t5;function a5(a6){var td=a0b;this[td(0x942)]=a6;}return Object['defineProperty'](a5[te(0x6cb)],te(0xa2a),{'set':function(a6){var tf=te;for(var a7 in a6)this[tf(0x422)][tf(0xa2a)][a7]=a6[a7];},'enumerable':!0x1,'configurable':!0x0}),a5[te(0x6cb)][te(0x219)]=function(a6){var tg=te;a6[tg(0x6bc)]||(a6[tg(0x6bc)]=[]),a6[tg(0x6bc)]['indexOf'](this[tg(0x422)])>-0x1||(a6[tg(0x6bc)]['push'](this['_filter']),this[tg(0x390)]=a6);},a5[te(0x6cb)][te(0x8dd)]=function(a6){var th=te;if(a6[th(0x6bc)]&&-0x1!==a6['filters']['indexOf'](this[th(0x422)])){var a7=a6['filters'][th(0x50b)](this[th(0x422)]);a6[th(0x6bc)]['splice'](a7,0x1),this['_container']=null;}},a5['prototype'][te(0xa0e)]=function(a6,a7){var ti=te;this[ti(0x422)]&&this[ti(0x422)]['resize'](a6,a7);},a5;}()),V=function(a5){var tk=t5;function a6(a7,a8){var tj=a0b,a9=a5[tj(0x6ca)](this,a8)||this;return a9['intensity']=a7,a9;}return O(a6,a5),Object['defineProperty'](a6[tk(0x6cb)],tk(0x8ac),{'get':function(){var tl=tk;return this[tl(0x602)];},'set':function(a7){var tm=tk;this[tm(0x602)]=a7,this['_filter']&&(this[tm(0x422)]['uniforms'][tm(0x8ac)]=a7<0.01?0x0:a7);},'enumerable':!0x1,'configurable':!0x0}),a6['prototype'][tk(0x54c)]=function(){return Q(this,void 0x0,Promise,function(){var a7;return R(this,function(a8){var tn=a0b;switch(a8[tn(0x823)]){case 0x0:return[0x4,new J(this[tn(0x942)])[tn(0x5c5)](this['intensity'])];case 0x1:return a7=a8[tn(0x5e2)](),this['_filter']=a7,a7[tn(0xa2a)][tn(0x8ac)]=this[tn(0x602)]<0.01?0x0:this[tn(0x602)],[0x2];}});});},a6;}(U),W=(function(a5){var tp=t5;function a6(a7,a8,a9){var to=a0b,aa=a5[to(0x6ca)](this,a9)||this,ab=aa[to(0x942)],ac=ab[to(0x5fb)],ad=ab[to(0x8ec)],ae=new B[(to(0x3d4))]({'width':ac,'height':ad});return aa[to(0x8f8)]=new B[(to(0x9da))](ae),aa['_filter']=new D['f'](to(0x822),a9,{'uniforms':{'intensity':0x1,'faceMask':aa[to(0x8f8)],'grayTexture':B[to(0x7d6)][to(0x237)][F['lc']],'lookupTexture':B[to(0x7d6)]['TextureCache'][F['M$']],'levelRangeInv':1.040816,'levelBlack':0.01960784}}),aa[to(0x742)]=a7,aa[to(0x914)]=a8,aa;}O(a6,a5),Object[tp(0x182)](a6[tp(0x6cb)],tp(0x742),{'get':function(){var tq=tp;return this[tq(0x1b0)];},'set':function(a7){var tr=tp;this[tr(0x1b0)]=a7,this[tr(0x284)]&&(this['_shader'][tr(0xa2a)]['intensity']=a7<0.01?0x0:a7);},'enumerable':!0x1,'configurable':!0x0}),Object[tp(0x182)](a6[tp(0x6cb)],'intensityTeeth',{'get':function(){return this['_intensityTeeth'];},'set':function(a7){var ts=tp;this[ts(0x8b4)]=a7,this[ts(0x284)]&&(this[ts(0x284)][ts(0xa2a)][ts(0x914)]=a7<0.01?0x0:a7);},'enumerable':!0x1,'configurable':!0x0}),Object[tp(0x182)](a6['prototype'],tp(0x3a1),{'get':function(){var tt=tp;return this[tt(0x686)];},'set':function(a7){var tu=tp;this[tu(0x686)]=a7;},'enumerable':!0x1,'configurable':!0x0}),a6[tp(0x6cb)][tp(0x5bb)]=function(){var tv=tp;if(this[tv(0x54d)]){if(!this[tv(0x738)]){var a7={'mask':B[tv(0x7d6)][tv(0x237)][F['iy']],'intensity':this[tv(0x742)]<0.01?0x0:this[tv(0x742)]},a8=B[tv(0x918)]['from'](L,M,a7);this[tv(0x284)]=a8,this[tv(0x738)]=new B[(tv(0x55a))](this[tv(0x54d)],a8);}this['renderer']&&this[tv(0x3a1)][tv(0x5bb)](this['faceMesh'],{'renderTexture':this[tv(0x8f8)]});}};}(U),function(a5){var tx=t5;function a6(a7,a8){var tw=a0b,a9=a5[tw(0x6ca)](this,a8)||this,aa=a9[tw(0x942)],ab=aa[tw(0x5fb)],ac=aa['height'],ad=new B['BaseRenderTexture']({'width':ab,'height':ac});return a9[tw(0x8f8)]=new B['RenderTexture'](ad),a9['_filter']=new D['f'](tw(0x3f8),a8,{'uniforms':{'intensity':a7<0.01?0x0:a7,'faceMask':a9[tw(0x8f8)]}}),a9[tw(0x8ac)]=a7,a9;}return O(a6,a5),Object[tx(0x182)](a6[tx(0x6cb)],tx(0x3a1),{'get':function(){var ty=tx;return this[ty(0x686)];},'set':function(a7){var tz=tx;this[tz(0x686)]=a7;},'enumerable':!0x1,'configurable':!0x0}),a6['prototype'][tx(0x5bb)]=function(){var tA=tx;if(this[tA(0x54d)]){if(!this[tA(0x738)]){var a7={'mask':B[tA(0x7d6)][tA(0x237)][F['L4']],'intensity':0x1},a8=B['Shader'][tA(0x1d4)](L,M,a7);this['faceMesh']=new B[(tA(0x55a))](this[tA(0x54d)],a8);}this[tA(0x3a1)]&&this['renderer'][tA(0x5bb)](this['faceMesh'],{'renderTexture':this[tA(0x8f8)]});}},a6[tx(0x6cb)]['applyTo']=function(a7){var tB=tx;a5[tB(0x6cb)][tB(0x219)][tB(0x6ca)](this,a7);},Object['defineProperty'](a6[tx(0x6cb)],tx(0x8ac),{'get':function(){var tC=tx;return this[tC(0x602)];},'set':function(a7){var tD=tx;this[tD(0x602)]=a7,this[tD(0x602)]=0.7*a7,this['_filter']&&(this['_filter']['uniforms']['intensity']=this[tD(0x602)]<0.01?0x0:this[tD(0x602)]);},'enumerable':!0x1,'configurable':!0x0}),a6;}(U)),X=function(a5){var tF=t5;function a6(a7,a8,a9){var tE=a0b,aa=a5['call'](this,a9)||this,ab=aa[tE(0x942)],ac=ab[tE(0x5fb)],ad=ab[tE(0x8ec)],ae=new B[(tE(0x3d4))]({'width':ac,'height':ad});return aa[tE(0x8f8)]=new B['RenderTexture'](ae),aa['_filter']=new D['f'](tE(0x73d),a9,{'uniforms':{'intensity':0x1,'faceMask':aa['renderTexture']}}),aa['intensityDarkCircle']=a7,aa['intensityNasolabialFolds']=a8,aa;}return O(a6,a5),Object[tF(0x182)](a6[tF(0x6cb)],tF(0x55c),{'get':function(){var tG=tF;return this[tG(0x51c)];},'set':function(a7){var tH=tF;this[tH(0x51c)]=a7,this['_shader']&&(this[tH(0x284)][tH(0xa2a)]['intensityDarkCircle']=a7<0.01?0x0:a7);},'enumerable':!0x1,'configurable':!0x0}),Object[tF(0x182)](a6[tF(0x6cb)],tF(0x682),{'get':function(){var tI=tF;return this[tI(0x68c)];},'set':function(a7){var tJ=tF;this[tJ(0x68c)]=a7,this[tJ(0x284)]&&(this[tJ(0x284)][tJ(0xa2a)][tJ(0x682)]=a7<0.01?0x0:a7);},'enumerable':!0x1,'configurable':!0x0}),Object[tF(0x182)](a6[tF(0x6cb)],tF(0x3a1),{'get':function(){var tK=tF;return this[tK(0x686)];},'set':function(a7){var tL=tF;this[tL(0x686)]=a7;},'enumerable':!0x1,'configurable':!0x0}),a6[tF(0x6cb)][tF(0x5bb)]=function(){var tM=tF;if(this['geometry']){if(!this[tM(0x738)]){var a7={'falingwen':B[tM(0x7d6)]['TextureCache'][F['F7']],'heiyanquan':B[tM(0x7d6)]['TextureCache'][F['B3']],'intensityDarkCircle':this[tM(0x55c)],'intensityNasolabialFolds':this[tM(0x682)]},a8=B[tM(0x918)]['from'](L,tM(0x87d),a7);this[tM(0x284)]=a8,this[tM(0x738)]=new B[(tM(0x55a))](this[tM(0x54d)],a8);}this[tM(0x3a1)]&&this[tM(0x3a1)]['render'](this[tM(0x738)],{'renderTexture':this['renderTexture']});}},a6;}(U),Y=function(a5){var tO=t5;function a6(a7,a8){var tN=a0b,a9=a5[tN(0x6ca)](this,a8)||this;return a9[tN(0x422)]=new D['f'](tN(0x841),a8,{'intensity':a7}),a9[tN(0x8ac)]=a7,a9;}return O(a6,a5),Object['defineProperty'](a6[tO(0x6cb)],tO(0x8ac),{'get':function(){var tP=tO;return this[tP(0x602)];},'set':function(a7){var tQ=tO;this[tQ(0x602)]=a7,this['_filter'][tQ(0xa2a)]['intensity']=a7<0.01?0x0:a7;},'enumerable':!0x1,'configurable':!0x0}),a6;}(U),Z=['left_eye_center',t5(0x743),t5(0x3c4),t5(0x289),'nose_bridge5','contour_left4',t5(0x9f6),'contour_right4',t5(0x816),t5(0x95e),t5(0x27b),t5(0x729),t5(0x5ca),t5(0x82b),t5(0x767),t5(0x658),'nose_right1',t5(0x39c),t5(0x6a5),t5(0x92e),'lip_bottom_left',t5(0x609),'lip_top_left_target',t5(0x599),t5(0x2e5),'lip_bottom_right_target',t5(0x28f),t5(0x1e1),t5(0x79b),t5(0x9ef),t5(0x8d2),'lip_inner_bottom',t5(0x39b),t5(0x476),t5(0x81a),t5(0x654),t5(0x663),t5(0x7e7),t5(0x557),'left_eye_top',t5(0x95a),t5(0x2eb),t5(0x4a6),t5(0x78c),t5(0x53e),t5(0x8d8),t5(0x2da),t5(0x99f),t5(0x96c),t5(0x5b9),t5(0x99c)],a0=function(a5){var tS=t5;function a6(a7,a8){var tR=a0b,a9=a5[tR(0x6ca)](this,a7)||this;return a9[tR(0x471)]=0x0,a9[tR(0x2b7)]=a8,a9[tR(0x652)]=new K['M']()['getDataConfig'](N['c4'][tR(0x201)]),a9;}return O(a6,a5),Object[tS(0x182)](a6[tS(0x6cb)],tS(0x5ef),{'set':function(a7){var tT=tS;if(a7[tT(0x61d)]){var a8=Z,a9=this[tT(0x3b0)](a7,a8);this[tT(0x45d)]={};for(var aa=0x0;aa<a8[tT(0x61d)];aa++){var ab=a8[aa];this[tT(0x45d)][ab]=a9[aa];}this[tT(0x766)](this[tT(0x45d)]);}},'enumerable':!0x1,'configurable':!0x0}),Object['defineProperty'](a6[tS(0x6cb)],tS(0x2b7),{'set':function(a7){var tU=tS;a7[tU(0x2ca)]=this[tU(0x471)]?a7[tU(0x2ca)]:this[tU(0x471)],this[tU(0x766)](a7);},'enumerable':!0x1,'configurable':!0x0}),Object['defineProperty'](a6[tS(0x6cb)],tS(0x2ca),{'set':function(a7){var tV=tS,a8=a7?0x1:0x0;this[tV(0x471)]!==a8&&(this[tV(0x471)]=a8,this[tV(0x766)]({'enable':this[tV(0x471)]}));},'enumerable':!0x1,'configurable':!0x0}),a6[tS(0x6cb)][tS(0x766)]=function(a7){var tW=tS;if(!this[tW(0x422)]){var a8={};Z[tW(0x560)](function(aa){a8[aa]=[0x0,0x0];}),a8[tW(0x2ca)]=this[tW(0x471)],this[tW(0x422)]=new D['f']('faceReshape',this[tW(0x942)],{'uniforms':a8});}for(var a9 in a7)this['_filter'][tW(0xa2a)][a9]=a7[a9]||0x0;},a6['prototype']['_getCartesianPointsByKeys']=function(a7,a8){var tX=tS,a9=this[tX(0x652)],aa=[];return a8['forEach'](function(ab){var tY=tX;try{var ac=a7[a9[ab]],ad={'x':ac['x'],'y':ac['y']};aa['push']([ad['x'],ad['y']]);}catch(ae){console[tY(0x45c)]('err',ab,a9[ab],ae);}}),aa;},a6;}(U),a1=(function(){var u0=t5;function a5(a6,a7,a8){var tZ=a0b;this['_beautify']={'whiten':0x0,'dermabrasion':0x0,'eyeWhiten':0x0,'teethWhiten':0x0,'darkCircle':0x0,'nasolabialFolds':0x0,'lift':0x0,'shave':0x0,'cheekbone':0x0,'head':0x0,'eyeBrightness':0x0,'lip':0x0,'forehead':0x0,'nose':0x0,'eye':0x0,'chin':0x0,'usm':0x0},this[tZ(0x949)]=!0x1,this['id']=a6,this['_target']=a7,this[tZ(0x942)]=a8;}return Object[u0(0x182)](a5[u0(0x6cb)],'detected',{'get':function(){return this['_detected'];},'set':function(a6){var u1=u0;if(this[u1(0x949)]!==a6&&(this[u1(0x949)]=a6,this[u1(0x9f8)])){var a7=this[u1(0x383)];this[u1(0x9f8)][u1(0x2b7)]={'lift':a7[u1(0x54f)],'shave':a7[u1(0x783)],'cheekbone':a7[u1(0x674)],'head':a7[u1(0x61f)],'eyeBrightness':a7[u1(0x3cd)],'lip':a7[u1(0x988)],'forehead':a7[u1(0x8d6)],'nose':a7[u1(0x3af)],'eye':a7['eye'],'chin':a7[u1(0x4ed)],'darkCircle':a7[u1(0x20a)],'nasolabialFolds':a7['nasolabialFolds'],'enable':a7['lift']||a7['shave']||a7[u1(0x20a)]||a7['nasolabialFolds']||a7[u1(0x674)]||a7[u1(0x61f)]||a7[u1(0x3cd)]||a7[u1(0x988)]||a7['forehead']||a7['eye']||a7[u1(0x4ed)]||a7['nose']?0x1:0x0};}},'enumerable':!0x1,'configurable':!0x0}),Object[u0(0x182)](a5[u0(0x6cb)],u0(0x7f9),{'set':function(a6){var u2=u0;this[u2(0x383)]=Object[u2(0x5e8)](this['_beautify'],a6);var a7=this[u2(0x383)],a8=a7[u2(0x51e)],a9=a7[u2(0x3f8)],aa=(a7['eyeWhiten'],a7[u2(0x6a2)],a7[u2(0x20a)]),ab=a7[u2(0x409)],ac=a7['lift'],ad=a7[u2(0x783)],ae=a7['cheekbone'],af=a7[u2(0x61f)],ag=a7[u2(0x3cd)],ah=a7[u2(0x988)],ai=a7[u2(0x8d6)],aj=a7[u2(0x3af)],ak=a7['eye'],al=a7[u2(0x4ed)],am=a7[u2(0x841)];this['_whiten']&&(this[u2(0x695)][u2(0x8ac)]=a8),this[u2(0x8ba)]&&(this[u2(0x8ba)][u2(0x8ac)]=a9),this[u2(0x8e9)]&&(this[u2(0x8e9)]['intensityDarkCircle']=aa,this[u2(0x8e9)][u2(0x682)]=ab),this['_usm']&&(this[u2(0x868)][u2(0x8ac)]=am),this[u2(0x9f8)]&&(this['_reshape'][u2(0x2b7)]={'lift':ac,'shave':ad,'cheekbone':ae,'head':af,'eyeBrightness':ag,'lip':ah,'forehead':ai,'nose':aj,'eye':ak,'chin':al,'darkCircle':aa,'nasolabialFolds':ab,'enable':ac||ad||ae||af||ag||ah||ai||ak||al||ab||ab||aj?0x1:0x0});},'enumerable':!0x1,'configurable':!0x0}),a5['prototype'][u0(0x901)]=function(){return Q(this,void 0x0,Promise,function(){var a6,a7,a8,a9,aa,ab,ac=this;return R(this,function(ad){var u3=a0b;switch(ad[u3(0x823)]){case 0x0:return this[u3(0x357)]?[0x2]:(this['loaded']=!0x0,this['_config']?[0x3,0x2]:(this[u3(0x803)]=new K['M'](),[0x4,this[u3(0x803)]['load']()]));case 0x1:ad[u3(0x5e2)](),ad[u3(0x823)]=0x2;case 0x2:return a6=Object[u3(0x5e8)](this[u3(0x383)]),a7=void 0x0!==a6[u3(0x51e)]&&null!==a6[u3(0x51e)]?a6[u3(0x51e)]:N['em'],this['_whiten']=new V(a7,this['_options']),a8=void 0x0!==a6[u3(0x3f8)]&&null!==a6[u3(0x3f8)]?a6[u3(0x3f8)]:N['Ss'],this['_dermabrasion']=new W(a8,this[u3(0x942)]),a9=void 0x0!==a6[u3(0x20a)]&&null!==a6[u3(0x20a)]?a6[u3(0x20a)]:0x0,aa=void 0x0!==a6[u3(0x409)]&&null!==a6[u3(0x409)]?a6[u3(0x409)]:0x0,this[u3(0x8e9)]=new X(a9,aa,this[u3(0x942)]),void 0x0!==a6['eyeWhiten']&&null!==a6[u3(0x5a5)]?a6['eyeWhiten']:0x0,void 0x0!==a6['teethWhiten']&&null!==a6['teethWhiten']?a6['teethWhiten']:0x0,this[u3(0x868)]=new Y(a6['usm']||0x0,this[u3(0x942)]),ab={'lift':a6[u3(0x54f)],'shave':a6[u3(0x783)],'cheekbone':a6['cheekbone'],'head':a6[u3(0x61f)],'eyeBrightness':a6['eyeBrightness'],'lip':a6[u3(0x988)],'forehead':a6['forehead'],'nose':a6[u3(0x3af)],'darkCircle':a6[u3(0x20a)],'nasolabialFolds':a6[u3(0x409)],'eye':a6[u3(0x4ec)],'chin':a6[u3(0x4ed)],'enable':a6['lift']||a6[u3(0x783)]||a6[u3(0x20a)]||a6['nasolabialFolds']||a6[u3(0x674)]||a6[u3(0x61f)]||a6[u3(0x3cd)]||a6[u3(0x988)]||a6[u3(0x8d6)]||a6[u3(0x3af)]||a6[u3(0x4ec)]||a6[u3(0x4ed)]?0x1:0x0},this[u3(0x9f8)]=new a0(this[u3(0x942)],ab),[0x2,this['_whiten'][u3(0x54c)]()['then'](function(){var u4=u3;ac[u4(0x1ea)]();})];}});});},a5[u0(0x6cb)][u0(0x341)]=function(a6){var u5=u0;a6&&a6[u5(0x61d)]?this['_reshape']&&(this[u5(0x9f8)]['landmarks']=a6,this[u5(0x9f8)][u5(0x2ca)]=!0x0):this['_reshape']['enable']=!0x1;},a5[u0(0x6cb)][u0(0x605)]=function(a6){var u6=u0;if(a6&&a6[u6(0x61d)]){if(!this[u6(0x54d)]){var a7=this['_config'][u6(0x8f5)](0x1a),a8=new B['Geometry']()[u6(0x600)](u6(0x86c),a6)[u6(0x600)](u6(0x788),a7);this['geometry']=a8;}this['geometry']['getBuffer'](u6(0x86c))[u6(0x9c2)](a6),this['_dermabrasion']&&(this[u6(0x8ba)][u6(0x54d)]=this[u6(0x54d)],this[u6(0x8e9)][u6(0x54d)]=this[u6(0x54d)],this['_dermabrasion']['render'](),this['_partialDermabrasion'][u6(0x5bb)]());}},a5[u0(0x6cb)][u0(0x57b)]=function(a6){var a7,a8=this,a9=function(){var u7=a0b;a8['_dermabrasion']&&a8[u7(0x8e9)]?(a8['_dermabrasion'][u7(0x3a1)]=a6,a8[u7(0x8e9)][u7(0x3a1)]=a6,clearTimeout(a7)):a7=setTimeout(a9,0x1e);};a9();},a5['prototype']['resize']=function(a6,a7){var u8=u0;this['_whiten']&&this[u8(0x695)]['resize'](a6,a7),this[u8(0x8ba)]&&this['_dermabrasion']['resize'](a6,a7),this[u8(0x8e9)]&&this['_partialDermabrasion'][u8(0xa0e)](a6,a7),this[u8(0x9f8)]&&this['_reshape']['resize'](a6,a7),this[u8(0x868)]&&this['_usm'][u8(0xa0e)](a6,a7);},a5['prototype'][u0(0x591)]=function(){var u9=u0;this['_active']&&(this[u9(0x695)]&&this['_whiten'][u9(0x8dd)](this[u9(0x9ab)]),this[u9(0x8ba)]&&this[u9(0x8ba)][u9(0x8dd)](this[u9(0x9ab)]),this[u9(0x8e9)]&&this[u9(0x8e9)][u9(0x8dd)](this[u9(0x9ab)]),this['_reshape']&&this['_reshape'][u9(0x8dd)](this[u9(0x9ab)]),this[u9(0x868)]&&this[u9(0x868)][u9(0x8dd)](this[u9(0x9ab)]),this[u9(0x1db)]=!0x1);},a5['prototype'][u0(0x1ea)]=function(){var ua=u0;this['_active']||(this[ua(0x695)]&&this[ua(0x695)][ua(0x219)](this['_target']),this[ua(0x8ba)]&&this['_dermabrasion'][ua(0x219)](this[ua(0x9ab)]),this[ua(0x8e9)]&&this[ua(0x8e9)][ua(0x219)](this[ua(0x9ab)]),this[ua(0x9f8)]&&this['_reshape']['applyTo'](this[ua(0x9ab)]),this['_usm']&&this[ua(0x868)][ua(0x219)](this[ua(0x9ab)]),this[ua(0x1db)]=!0x0);},a5['prototype']['destroy']=function(){var ub=u0;this['remove'](),this[ub(0x695)]=null,this[ub(0x8ba)]=null,this['_partialDermabrasion']=null,this[ub(0x9f8)]=null;},a5;}()),a2=function(a5,a6,a7,a8){return new(a7||(a7=Promise))(function(a9,aa){var ue=a0b;function ab(ae){var uc=a0b;try{ad(a8[uc(0x549)](ae));}catch(af){aa(af);}}function ac(ae){try{ad(a8['throw'](ae));}catch(af){aa(af);}}function ad(ae){var ud=a0b,af;ae[ud(0x2ed)]?a9(ae[ud(0x9e0)]):(af=ae[ud(0x9e0)],af instanceof a7?af:new a7(function(ag){ag(af);}))[ud(0x1fe)](ab,ac);}ad((a8=a8[ue(0x1ea)](a5,a6||[]))[ue(0x549)]());});},a3=function(a5,a6){var uf=t5,a7,a8,a9,aa,ab={'label':0x0,'sent':function(){if(0x1&a9[0x0])throw a9[0x1];return a9[0x1];},'trys':[],'ops':[]};return aa={'next':ac(0x0),'throw':ac(0x1),'return':ac(0x2)},uf(0x4df)==typeof Symbol&&(aa[Symbol[uf(0x3c2)]]=function(){return this;}),aa;function ac(ad){return function(ae){return function(af){var ug=a0b;if(a7)throw new TypeError(ug(0x976));for(;ab;)try{if(a7=0x1,a8&&(a9=0x2&af[0x0]?a8[ug(0x512)]:af[0x0]?a8[ug(0x30d)]||((a9=a8['return'])&&a9[ug(0x6ca)](a8),0x0):a8[ug(0x549)])&&!(a9=a9[ug(0x6ca)](a8,af[0x1]))[ug(0x2ed)])return a9;switch(a8=0x0,a9&&(af=[0x2&af[0x0],a9[ug(0x9e0)]]),af[0x0]){case 0x0:case 0x1:a9=af;break;case 0x4:return ab[ug(0x823)]++,{'value':af[0x1],'done':!0x1};case 0x5:ab['label']++,a8=af[0x1],af=[0x0];continue;case 0x7:af=ab[ug(0xa27)]['pop'](),ab[ug(0x9c4)][ug(0x984)]();continue;default:if(!(a9=ab[ug(0x9c4)],(a9=a9[ug(0x61d)]>0x0&&a9[a9['length']-0x1])||0x6!==af[0x0]&&0x2!==af[0x0])){ab=0x0;continue;}if(0x3===af[0x0]&&(!a9||af[0x1]>a9[0x0]&&af[0x1]<a9[0x3])){ab[ug(0x823)]=af[0x1];break;}if(0x6===af[0x0]&&ab[ug(0x823)]<a9[0x1]){ab['label']=a9[0x1],a9=af;break;}if(a9&&ab['label']<a9[0x2]){ab[ug(0x823)]=a9[0x2],ab[ug(0xa27)][ug(0x315)](af);break;}a9[0x2]&&ab[ug(0xa27)][ug(0x984)](),ab[ug(0x9c4)]['pop']();continue;}af=a6[ug(0x6ca)](a5,ab);}catch(ag){af=[0x6,ag],a8=0x0;}finally{a7=a9=0x0;}if(0x5&af[0x0])throw af[0x1];return{'value':af[0x0]?af[0x1]:void 0x0,'done':!0x0};}([ad,ae]);};}},a4=(function(){var ui=t5;function a5(a6){var uh=a0b;this[uh(0x187)]={},this[uh(0x949)]=!0x1,this[uh(0x942)]=a6;}return Object[ui(0x182)](a5['prototype'],'renderer',{'get':function(){var uj=ui;return this[uj(0x686)];},'set':function(a6){var uk=ui;this['_renderer']=a6,this[uk(0x57b)]();},'enumerable':!0x1,'configurable':!0x0}),Object[ui(0x182)](a5[ui(0x6cb)],ui(0x455),{'get':function(){return this['_detected'];},'set':function(a6){var ul=ui;for(var a7 in(this[ul(0x949)]=a6,this['_beautifies'])){this[ul(0x187)][a7]['detected']=a6;}},'enumerable':!0x1,'configurable':!0x0}),a5[ui(0x6cb)][ui(0x32e)]=function(a6,a7){var um=ui;this['_beautifies'][a6]?this[um(0x50f)](a6,a7):this[um(0x191)](a6,a7);},a5[ui(0x6cb)][ui(0x50f)]=function(a6,a7){var un=ui;void 0x0===a6&&(a6=un(0x854));var a8=this[un(0x187)][a6];a8&&(a8['beautify']=a7);},a5[ui(0x6cb)][ui(0x191)]=function(a6,a7){var uo=ui;void 0x0===a6&&(a6=uo(0x854)),void 0x0===a7&&(a7={});var a8=new a1(a6,this['_target'],this[uo(0x942)]);a8['detected']=this[uo(0x455)],a7&&(a8['beautify']=a7),this[uo(0x187)][a6]&&this[uo(0xa02)](a6),a8['loaded']||(a8['load'](),a8['setRenderer'](this[uo(0x3a1)])),this[uo(0x187)][a6]=a8;},a5[ui(0x6cb)][ui(0x7d1)]=function(a6,a7){var up=ui;return void 0x0===a6&&(a6=up(0x854)),void 0x0===a7&&(a7={}),a2(this,void 0x0,void 0x0,function(){var a8,a9;return a3(this,function(aa){var uq=a0b;switch(aa[uq(0x823)]){case 0x0:return a8=+new Date(),console['log'](uq(0x203),a6,this['_options']),(a9=new a1(a6,this[uq(0x9ab)],this[uq(0x942)]))['detected']=this[uq(0x455)],a7&&(a9[uq(0x7f9)]=a7),[0x4,a9['load']()];case 0x1:return aa['sent'](),a9[uq(0x57b)](this[uq(0x3a1)]),this[uq(0x187)][a6]&&this[uq(0xa02)](a6),this['_beautifies'][a6]=a9,console[uq(0x45c)](uq(0x68f),+new Date()-a8),[0x2];}});});},a5[ui(0x6cb)][ui(0x2ca)]=function(){var ur=ui;for(var a6 in this['_beautifies'])this[ur(0x187)][a6]['apply']();},a5[ui(0x6cb)][ui(0x506)]=function(){var us=ui;for(var a6 in this[us(0x187)])console['log'](us(0x6ef),a6),this[us(0x187)][a6][us(0x591)]();},a5['prototype'][ui(0xa0e)]=function(a6,a7){var ut=ui;for(var a8 in this[ut(0x187)])this[ut(0x187)][a8][ut(0xa0e)](a6,a7);},a5[ui(0x6cb)][ui(0xa02)]=function(a6){var uu=ui;this[uu(0x187)][a6]['destroy'](),delete this[uu(0x187)][a6];},a5[ui(0x6cb)][ui(0x441)]=function(){var uv=ui;for(var a6 in this[uv(0x187)])uv(0x854)!==a6&&this[uv(0xa02)](a6);},a5[ui(0x6cb)][ui(0x341)]=function(a6){var uw=ui;for(var a7 in this[uw(0x187)])this['_beautifies'][a7][uw(0x341)](a6);},a5[ui(0x6cb)][ui(0x605)]=function(a6){var ux=ui;for(var a7 in this['_beautifies'])this[ux(0x187)][a7][ux(0x605)](a6);},a5[ui(0x6cb)]['setRenderer']=function(){var uy=ui;for(var a6 in this[uy(0x187)])console['log'](uy(0x769)),this['_beautifies'][a6][uy(0x57b)](this['renderer']);},a5;}());},0x1424:(b,d,f)=>{var uM=a0b;f['d'](d,{'Z':()=>k});var g,h=f(0x4b6),j=(g=function(m,p){var uz=a0b;return g=Object[uz(0x977)]||{'__proto__':[]}instanceof Array&&function(q,v){var uA=uz;q[uA(0x3b3)]=v;}||function(q,v){var uB=uz;for(var w in v)Object[uB(0x6cb)][uB(0x708)][uB(0x6ca)](v,w)&&(q[w]=v[w]);},g(m,p);},function(m,p){var uC=a0b;if(uC(0x4df)!=typeof p&&null!==p)throw new TypeError(uC(0x20f)+String(p)+'\x20is\x20not\x20a\x20constructor\x20or\x20null');function q(){var uD=uC;this[uD(0x93e)]=m;}g(m,p),m['prototype']=null===p?Object[uC(0x7da)](p):(q[uC(0x6cb)]=p[uC(0x6cb)],new q());});const k=function(m){var uF=a0b;function p(q){var uE=a0b,v=m[uE(0x6ca)](this)||this;v[uE(0x680)]=-0x5a,v[uE(0x395)]=0x10e,v[uE(0x481)]=0xe,v[uE(0x440)]=0x2,v['isVisible']=!0x1;var w;return w=wx[uE(0x631)]()[uE(0x8e7)],v['size']=(q['size']||0x64)*w,v[uE(0x5d6)]=v[uE(0x1b2)]/0x2,v[uE(0x485)]=(q['lineWidth']||0x8)*w,v[uE(0x9ea)]=q[uE(0x325)]||0x4169e1,v[uE(0x789)]={},v[uE(0xa03)]=new h[(uE(0x48c))](),v[uE(0xa03)][uE(0x806)][uE(0x1e6)](0x1/w,0x1/w),v['addChild'](v[uE(0xa03)]),v[uE(0x5ba)]=v[uE(0x63c)][uE(0xa0c)](v),v;}return j(p,m),p['prototype'][uF(0x63c)]=function(){var uG=uF;this['degreeStart']=this[uG(0x680)]+this[uG(0x481)],this[uG(0x395)]=this[uG(0x395)]+this[uG(0x440)],this[uG(0x680)]-0x168>this[uG(0x395)]&&(this[uG(0x680)]-=0x2d0);var q=this['graphics'];q[uG(0x263)](),q[uG(0x1d5)](this[uG(0x485)],this[uG(0x9ea)]),q[uG(0x477)](0x0,0x0,this['radius']-this['lineWidth']/0x2,(this[uG(0x680)]<this[uG(0x395)]?this[uG(0x680)]:this[uG(0x395)])*Math['PI']/0xb4,(this[uG(0x680)]<this['degreeEnd']?this[uG(0x395)]:this[uG(0x680)])*Math['PI']/0xb4);},p[uF(0x6cb)][uF(0x451)]=function(){var uH=uF;h[uH(0x8ee)][uH(0x26e)][uH(0x861)](this[uH(0x5ba)]);},p['prototype'][uF(0x53d)]=function(){var uI=uF;h[uI(0x8ee)][uI(0x26e)][uI(0x591)](this[uI(0x5ba)]);},p[uF(0x6cb)]['show']=function(q){var uJ=uF;q&&(this[uJ(0x789)][q]=0x1),this[uJ(0x9dd)]||(clearTimeout(this['t']),this['graphics']['visible']=!0x0,this[uJ(0x63c)](),this[uJ(0x451)](),this[uJ(0x9dd)]=!0x0);},p[uF(0x6cb)][uF(0x3de)]=function(q){var uK=uF;if(q){this['queue'][q]=void 0x0;var v=!0x0;for(var w in this[uK(0x789)])this[uK(0x789)][w]&&(v=!0x1);v&&this['_hide']();}else this['_hide']();},p[uF(0x6cb)][uF(0x1fb)]=function(){var uL=uF;this['t']&&clearTimeout(this['t']),this['graphics']['visible']=!0x1,this[uL(0x53d)](),this[uL(0x9dd)]=!0x1;},p[uF(0x6cb)][uF(0x73a)]=function(){this['_hide'](),this['graphics']['destroy'](!0x0);},p;}(h[uM(0x468)]);},0xc30:(b,j,k)=>{var uS=a0b;k['d'](j,{'B3':()=>C,'F7':()=>B,'KI':()=>H,'L4':()=>z,'M$':()=>E,'RY':()=>F,'X_':()=>G,'iy':()=>A,'lc':()=>D});var q=k(0x4b6),v=k(0xbe4),w=k(0x191),x=function(I,J,K,L){return new(K||(K=Promise))(function(M,N){var uP=a0b;function O(R){try{Q(L['next'](R));}catch(S){N(S);}}function P(R){var uN=a0b;try{Q(L[uN(0x30d)](R));}catch(S){N(S);}}function Q(R){var uO=a0b,S;R[uO(0x2ed)]?M(R[uO(0x9e0)]):(S=R[uO(0x9e0)],S instanceof K?S:new K(function(T){T(S);}))[uO(0x1fe)](O,P);}Q((L=L[uP(0x1ea)](I,J||[]))['next']());});},y=function(I,J){var uQ=a0b,K,L,M,N,O={'label':0x0,'sent':function(){if(0x1&M[0x0])throw M[0x1];return M[0x1];},'trys':[],'ops':[]};return N={'next':P(0x0),'throw':P(0x1),'return':P(0x2)},uQ(0x4df)==typeof Symbol&&(N[Symbol[uQ(0x3c2)]]=function(){return this;}),N;function P(Q){return function(R){return function(S){var uR=a0b;if(K)throw new TypeError(uR(0x976));for(;O;)try{if(K=0x1,L&&(M=0x2&S[0x0]?L[uR(0x512)]:S[0x0]?L['throw']||((M=L[uR(0x512)])&&M[uR(0x6ca)](L),0x0):L[uR(0x549)])&&!(M=M[uR(0x6ca)](L,S[0x1]))[uR(0x2ed)])return M;switch(L=0x0,M&&(S=[0x2&S[0x0],M[uR(0x9e0)]]),S[0x0]){case 0x0:case 0x1:M=S;break;case 0x4:return O[uR(0x823)]++,{'value':S[0x1],'done':!0x1};case 0x5:O['label']++,L=S[0x1],S=[0x0];continue;case 0x7:S=O[uR(0xa27)]['pop'](),O['trys'][uR(0x984)]();continue;default:if(!(M=O[uR(0x9c4)],(M=M['length']>0x0&&M[M[uR(0x61d)]-0x1])||0x6!==S[0x0]&&0x2!==S[0x0])){O=0x0;continue;}if(0x3===S[0x0]&&(!M||S[0x1]>M[0x0]&&S[0x1]<M[0x3])){O[uR(0x823)]=S[0x1];break;}if(0x6===S[0x0]&&O[uR(0x823)]<M[0x1]){O[uR(0x823)]=M[0x1],M=S;break;}if(M&&O[uR(0x823)]<M[0x2]){O[uR(0x823)]=M[0x2],O['ops'][uR(0x315)](S);break;}M[0x2]&&O[uR(0xa27)][uR(0x984)](),O[uR(0x9c4)][uR(0x984)]();continue;}S=J[uR(0x6ca)](I,O);}catch(T){S=[0x6,T],L=0x0;}finally{K=M=0x0;}if(0x5&S[0x0])throw S[0x1];return{'value':S[0x0]?S[0x1]:void 0x0,'done':!0x0};}([Q,R]);};}},z=uS(0x4ef),A='eye.png',B=uS(0x27a),C=uS(0x3e3),D='skin_gray.png',E=uS(0x66a),F='whiten.png',G='lips-mask-wx2.png',H=(function(){var uT=uS;function I(){}return I['prototype'][uT(0x54c)]=function(){return x(this,void 0x0,Promise,function(){var J;return y(this,function(K){var uU=a0b;switch(K['label']){case 0x0:return[0x4,(J=new v['pF']())[uU(0x54c)]()];case 0x1:return K['sent'](),[0x4,J[uU(0x8f9)]((0x0,w['xb'])())];case 0x2:return K[uU(0x5e2)](),[0x2,J[uU(0x33d)]()];}});});},I[uT(0x6cb)][uT(0x492)]=function(J){return x(this,void 0x0,Promise,function(){return y(this,function(K){return[0x2,new Promise(function(L,M){var uV=a0b,N={};if(q[uV(0x7d6)][uV(0x237)][F]&&q[uV(0x7d6)][uV(0x237)][G]&&q['utils'][uV(0x237)][z]&&q[uV(0x7d6)][uV(0x237)][A]&&q[uV(0x7d6)]['TextureCache'][B]&&q[uV(0x7d6)]['TextureCache'][C])return N[F]=q['utils'][uV(0x237)][F],N[G]=q[uV(0x7d6)]['TextureCache'][G],N[z]=q[uV(0x7d6)][uV(0x237)][z],N[A]=q[uV(0x7d6)][uV(0x237)][A],N[B]=q[uV(0x7d6)]['TextureCache'][B],N[C]=q[uV(0x7d6)][uV(0x237)][C],L(N);J['add'](F),J[uV(0x861)](G),J[uV(0x861)](z),J[uV(0x861)](A),J[uV(0x861)](B),J[uV(0x861)](C),J['load'](function(O,P){var uW=uV;return N[F]=q[uW(0x7d6)][uW(0x237)][F],N[G]=q[uW(0x7d6)]['TextureCache'][G],N[z]=q[uW(0x7d6)]['TextureCache'][z],N[A]=q['utils'][uW(0x237)][A],N[B]=q['utils'][uW(0x237)][B],N[C]=q[uW(0x7d6)][uW(0x237)][C],L(N);});})];});});},I;}());},0x15a0:(b,d,f)=>{var v2=a0b;f['d'](d,{'f':()=>m});var g=f(0x4b6),h,j=(h=function(p,q){var uX=a0b;return h=Object[uX(0x977)]||{'__proto__':[]}instanceof Array&&function(v,w){var uY=uX;v[uY(0x3b3)]=w;}||function(v,w){var uZ=uX;for(var x in w)Object['prototype'][uZ(0x708)][uZ(0x6ca)](w,x)&&(v[x]=w[x]);},h(p,q);},function(p,q){var v0=a0b;if(v0(0x4df)!=typeof q&&null!==q)throw new TypeError('Class\x20extends\x20value\x20'+String(q)+'\x20is\x20not\x20a\x20constructor\x20or\x20null');function v(){var v1=v0;this[v1(0x93e)]=p;}h(p,q),p[v0(0x6cb)]=null===q?Object[v0(0x7da)](q):(v[v0(0x6cb)]=q['prototype'],new v());}),k={'mirror':{'fragment':v2(0x532)},'mirrorVertical':{'fragment':'\x0auniform\x20sampler2D\x20uSampler;\x0avarying\x20vec2\x20vTextureCoord;\x0a\x0avoid\x20main()\x20{\x0a\x20\x20vec2\x20p\x20=\x20vTextureCoord;\x0a\x20\x20p.y\x20=\x201.0\x20-\x20p.y;\x0a\x20\x20vec4\x20color\x20=\x20texture2D(uSampler,\x20p);\x0a\x20\x20gl_FragColor\x20=\x20color;\x0a}\x0a'},'lut':{'fragment':v2(0x37f)},'lutSkin':{'fragment':v2(0xa10)},'partialLutSkin':{'fragment':'precision\x20mediump\x20float;\x0avarying\x20highp\x20vec2\x20vTextureCoord;\x0a\x0auniform\x20sampler2D\x20uSampler;\x20//\x20图像texture\x0auniform\x20sampler2D\x20grayTexture;\x20\x20//\x20灰度查找表\x0auniform\x20sampler2D\x20lookupTexture;\x20//\x20LUT\x0a\x0auniform\x20highp\x20float\x20levelRangeInv;\x20//\x20范围\x0auniform\x20lowp\x20float\x20levelBlack;\x20//\x20灰度level\x20\x0a//\x20uniform\x20lowp\x20float\x20intensity;\x20//\x20肤色程度\x20\x0auniform\x20sampler2D\x20faceMask;\x0a\x0avoid\x20main()\x20{\x0a\x20\x20\x20\x20float\x20mask\x20=\x20texture2D(faceMask,\x20vTextureCoord).a;\x0a\x20\x20\x20\x20lowp\x20vec3\x20textureColor\x20=\x20texture2D(uSampler,\x20vTextureCoord).rgb;\x0a\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20//\x20if\x20(mask\x20==\x200.)\x20{\x0a\x20\x20\x20\x20//\x20\x20\x20\x20\x20gl_FragColor\x20=\x20vec4(textureColor,\x201.0);\x20\x0a\x20\x20\x20\x20//\x20\x20\x20\x20\x20return;\x0a\x20\x20\x20\x20//\x20};\x0a\x20\x20\x20\x20\x0a\x0a\x20\x20\x20\x20textureColor\x20=\x20clamp((textureColor\x20-\x20vec3(levelBlack,\x20levelBlack,\x20levelBlack))\x20*\x20levelRangeInv,\x200.0,\x201.0);\x0a\x20\x20\x20\x20textureColor.r\x20=\x20texture2D(grayTexture,\x20vec2(textureColor.r,\x200.5)).r;\x0a\x20\x20\x20\x20textureColor.g\x20=\x20texture2D(grayTexture,\x20vec2(textureColor.g,\x200.5)).g;\x0a\x20\x20\x20\x20textureColor.b\x20=\x20texture2D(grayTexture,\x20vec2(textureColor.b,\x200.5)).b;\x0a\x0a\x20\x20\x20\x20mediump\x20float\x20blueColor\x20=\x20textureColor.b\x20*\x2015.0;\x0a\x0a\x20\x20\x20\x20mediump\x20vec2\x20quad1;\x0a\x20\x20\x20\x20quad1.y\x20=\x20floor(blueColor\x20/\x204.0);\x0a\x20\x20\x20\x20quad1.x\x20=\x20floor(blueColor)\x20-\x20(quad1.y\x20*\x204.0);\x0a\x0a\x20\x20\x20\x20mediump\x20vec2\x20quad2;\x0a\x20\x20\x20\x20quad2.y\x20=\x20floor(ceil(blueColor)\x20/\x204.0);\x0a\x20\x20\x20\x20quad2.x\x20=\x20ceil(blueColor)\x20-\x20(quad2.y\x20*\x204.0);\x0a\x0a\x20\x20\x20\x20highp\x20vec2\x20texPos1;\x0a\x20\x20\x20\x20texPos1.x\x20=\x20(quad1.x\x20*\x200.25)\x20+\x200.5\x20/\x2064.0\x20+\x20((0.25\x20-\x201.0\x20/\x2064.0)\x20*\x20textureColor.r);\x0a\x20\x20\x20\x20texPos1.y\x20=\x20(quad1.y\x20*\x200.25)\x20+\x200.5\x20/\x2064.0\x20+\x20((0.25\x20-\x201.0\x20/\x2064.0)\x20*\x20textureColor.g);\x0a\x0a\x20\x20\x20\x20highp\x20vec2\x20texPos2;\x0a\x20\x20\x20\x20texPos2.x\x20=\x20(quad2.x\x20*\x200.25)\x20+\x200.5\x20/\x2064.0\x20+\x20((0.25\x20-\x201.0\x20/\x2064.0)\x20*\x20textureColor.r);\x0a\x20\x20\x20\x20texPos2.y\x20=\x20(quad2.y\x20*\x200.25)\x20+\x200.5\x20/\x2064.0\x20+\x20((0.25\x20-\x201.0\x20/\x2064.0)\x20*\x20textureColor.g);\x0a\x0a\x20\x20\x20\x20lowp\x20vec4\x20newColor1\x20=\x20texture2D(lookupTexture,\x20texPos1);\x0a\x20\x20\x20\x20lowp\x20vec4\x20newColor2\x20=\x20texture2D(lookupTexture,\x20texPos2);\x0a\x0a\x20\x20\x20\x20lowp\x20vec3\x20newColor\x20=\x20mix(newColor1.rgb,\x20newColor2.rgb,\x20fract(blueColor));\x0a\x0a\x20\x20\x20\x20//\x20textureColor\x20=\x20mix(textureColor,\x20newColor,\x201.0);\x0a\x20\x20\x20\x20textureColor\x20=\x20mix(textureColor,\x20newColor,\x20mask);\x0a\x0a\x20\x20\x20\x20gl_FragColor\x20=\x20vec4(textureColor,\x201.0);\x20\x0a}\x0a'},'dermabrasion':{'fragment':v2(0x5ee)},'partialDermabrasion':{'fragment':v2(0x700)},'faceReshape':{'fragment':v2(0x3cc)},'maskBlack':{'fragment':v2(0x515)},'usm':{'fragment':v2(0x8d9)}},m=function(p){var v4=v2;function q(v,w,x){var v3=a0b,y=this,z=k[v];(y=p[v3(0x6ca)](this,z[v3(0x2a3)]||'attribute\x20vec2\x20aVertexPosition;\x0aattribute\x20vec2\x20aTextureCoord;\x0auniform\x20mat3\x20projectionMatrix;\x0avarying\x20vec2\x20vTextureCoord;\x0a\x0avoid\x20main(void)\x0a{\x0a\x20\x20gl_Position\x20=\x20vec4((projectionMatrix\x20*\x20vec3(aVertexPosition,\x201.0)).xy,\x200.0,\x201.0);\x0a\x20\x20vTextureCoord\x20=\x20aTextureCoord;\x0a}',z[v3(0x308)])||this)[v3(0x361)]=x||{};var A=y['options'][v3(0xa2a)];if(A){for(var B in A)y[v3(0xa2a)][B]=A[B];}var C=w['width'],D=w[v3(0x8ec)];return y[v3(0xa2a)][v3(0x5fb)]=C,y[v3(0xa2a)][v3(0x8ec)]=D,y['uniforms']['iResolution']=[C,D],y;}return j(q,p),q[v4(0x6cb)]['resize']=function(v,w){var v5=v4;this['uniforms'][v5(0x5fb)]=v,this[v5(0xa2a)][v5(0x8ec)]=w,this[v5(0xa2a)][v5(0x221)]=[v,w];},q[v4(0x6cb)][v4(0x80c)]=function(v,w){var v6=v4;if(v6(0x97f)==typeof v){for(var x in v)this['uniforms'][x]=v[x];}else this[v6(0xa2a)][v]!==w&&(this[v6(0xa2a)][v]=w);},q;}(g[v2(0x55b)]);},0x6c2:(b,d,f)=>{var v8=a0b;f['d'](d,{'a':()=>g,'L':()=>h});var g;!function(j){var v7=a0b;j[j['NORMAL']=0x0]='NORMAL',j[j['DARKEN']=0x1]=v7(0x8a2),j[j[v7(0x573)]=0x2]='MULTIPLY',j[j[v7(0x37b)]=0x3]='COLOR_BURN',j[j[v7(0x1de)]=0x4]='LINEAR_BURN',j[j[v7(0x1a6)]=0x5]='LIGHTEN',j[j[v7(0x628)]=0x6]='SCREEN',j[j[v7(0x587)]=0x7]=v7(0x587),j[j[v7(0x47a)]=0x8]=v7(0x47a),j[j[v7(0x3f0)]=0x9]='OVERLAY',j[j[v7(0x2a0)]=0xa]='SOFT_LIGHT',j[j['HARD_LIGHT']=0xb]=v7(0x797),j[j[v7(0x892)]=0xc]=v7(0x892),j[j[v7(0x1f6)]=0xd]='LINEAR_LIGHT',j[j[v7(0x18c)]=0xe]=v7(0x18c),j[j['HARD_MIX']=0xf]='HARD_MIX',j[j[v7(0x664)]=0x10]=v7(0x664),j[j['EXCLUSION']=0x11]='EXCLUSION',j[j[v7(0x30c)]=0x12]=v7(0x30c);}(g||(g={}));var h=[{'name':'普通','key':v8(0x926),'shader':v8(0x603)},{'name':'变暗','key':v8(0x493),'shader':v8(0x74d)},{'name':v8(0x552),'key':'Multiply','shader':'vec3\x20blendMultiply(vec3\x20base,\x20vec3\x20blend)\x20{\x0a\x09return\x20base*blend;\x0a}\x0a\x0a\x0avec3\x20blendMultiply(vec3\x20base,\x20vec3\x20blend,\x20float\x20opacity)\x20{\x0a\x09return\x20(blendMultiply(base,\x20blend)\x20*\x20opacity\x20+\x20base\x20*\x20(1.0\x20-\x20opacity));\x0a}\x0a\x0a'},{'name':v8(0x3b8),'key':v8(0x2cb),'shader':v8(0x43a)},{'name':v8(0x50e),'key':v8(0x258),'shader':v8(0x4b3)},{'name':'变亮','key':v8(0x5eb),'shader':v8(0x741)},{'name':'滤色','key':v8(0x6c4),'shader':v8(0x3bd)},{'name':'颜色减淡','key':v8(0x3ae),'shader':'float\x20blendColorDodge(float\x20base,\x20float\x20blend)\x20{\x0a\x09return\x20(blend==1.0)?blend:min(base/(1.0-blend),1.0);\x0a}\x0a\x0avec3\x20blendColorDodge(vec3\x20base,\x20vec3\x20blend)\x20{\x0a\x09return\x20vec3(blendColorDodge(base.r,blend.r),blendColorDodge(base.g,blend.g),blendColorDodge(base.b,blend.b));\x0a}\x0a\x0avec3\x20blendColorDodge(vec3\x20base,\x20vec3\x20blend,\x20float\x20opacity)\x20{\x0a\x09return\x20(blendColorDodge(base,\x20blend)\x20*\x20opacity\x20+\x20base\x20*\x20(1.0\x20-\x20opacity));\x0a}\x0a\x0a'},{'name':v8(0x65a),'key':v8(0x448),'shader':v8(0xa06)},{'name':'叠加','key':v8(0x852),'shader':'float\x20blendOverlay(float\x20base,\x20float\x20blend)\x20{\x0a\x09return\x20base<0.5?(2.0*base*blend):(1.0-2.0*(1.0-base)*(1.0-blend));\x0a}\x0a\x0avec3\x20blendOverlay(vec3\x20base,\x20vec3\x20blend)\x20{\x0a\x09return\x20vec3(blendOverlay(base.r,blend.r),blendOverlay(base.g,blend.g),blendOverlay(base.b,blend.b));\x0a}\x0a\x0avec3\x20blendOverlay(vec3\x20base,\x20vec3\x20blend,\x20float\x20opacity)\x20{\x0a\x09return\x20(blendOverlay(base,\x20blend)\x20*\x20opacity\x20+\x20base\x20*\x20(1.0\x20-\x20opacity));\x0a}\x0a\x0a'},{'name':'柔光','key':'SoftLight','shader':v8(0x55f)},{'name':'强光','key':'HardLight','shader':v8(0x3e0)},{'name':'亮光','key':'VividLight','shader':v8(0x6db)},{'name':v8(0x8ad),'key':v8(0x795),'shader':v8(0x456)},{'name':'点光','key':v8(0x367),'shader':v8(0x69e)},{'name':v8(0x2a8),'key':'HardMix','shader':'float\x20blendColorDodge(float\x20base,\x20float\x20blend)\x20{\x0a\x09return\x20(blend==1.0)?blend:min(base/(1.0-blend),1.0);\x0a}\x0a\x0a\x0a\x0afloat\x20blendColorBurn(float\x20base,\x20float\x20blend)\x20{\x0a\x09return\x20(blend==0.0)?blend:max((1.0-((1.0-base)/blend)),0.0);\x0a}\x0a\x0a\x0a\x0afloat\x20blendVividLight(float\x20base,\x20float\x20blend)\x20{\x0a\x09return\x20(blend<0.5)?blendColorBurn(base,(2.0*blend)):blendColorDodge(base,(2.0*(blend-0.5)));\x0a}\x0a\x0a\x0a\x0afloat\x20blendHardMix(float\x20base,\x20float\x20blend)\x20{\x0a\x09return\x20(blendVividLight(base,blend)<0.5)?0.0:1.0;\x0a}\x0a\x0avec3\x20blendHardMix(vec3\x20base,\x20vec3\x20blend)\x20{\x0a\x09return\x20vec3(blendHardMix(base.r,blend.r),blendHardMix(base.g,blend.g),blendHardMix(base.b,blend.b));\x0a}\x0a\x0avec3\x20blendHardMix(vec3\x20base,\x20vec3\x20blend,\x20float\x20opacity)\x20{\x0a\x09return\x20(blendHardMix(base,\x20blend)\x20*\x20opacity\x20+\x20base\x20*\x20(1.0\x20-\x20opacity));\x0a}\x0a\x0a'},{'name':'差值','key':v8(0x460),'shader':v8(0x7c1)},{'name':'排除','key':v8(0x925),'shader':v8(0x88d)},{'name':'减去','key':v8(0x25c),'shader':v8(0x3b2)}];},0x2558:(j,q,z)=>{var vf=a0b;z['d'](q,{'Kg':()=>a0,'Lc':()=>L['L'],'Kj':()=>a4,'jy':()=>X});var B,F=z(0x2353),G=(B=function(af,ag){var v9=a0b;return B=Object[v9(0x977)]||{'__proto__':[]}instanceof Array&&function(ah,ai){var va=v9;ah[va(0x3b3)]=ai;}||function(ah,ai){var vb=v9;for(var aj in ai)Object[vb(0x6cb)][vb(0x708)]['call'](ai,aj)&&(ah[aj]=ai[aj]);},B(af,ag);},function(af,ag){var vc=a0b;if(vc(0x4df)!=typeof ag&&null!==ag)throw new TypeError(vc(0x20f)+String(ag)+vc(0x67f));function ah(){var vd=vc;this[vd(0x93e)]=af;}B(af,ag),af[vc(0x6cb)]=null===ag?Object[vc(0x7da)](ag):(ah[vc(0x6cb)]=ag[vc(0x6cb)],new ah());}),H=function(af){function ag(){var ve=a0b,ah=null!==af&&af['apply'](this,arguments)||this;return ah[ve(0x410)]=null,ah[ve(0x25b)]=!0x1,ah['clearColor']=null,ah;}return G(ag,af),ag;}(F[vf(0x55b)]),J=function(af){function ag(ah){var vg=a0b,ai=this,aj='\x0avarying\x20vec2\x20vTextureCoord;\x0a\x0auniform\x20sampler2D\x20uSampler;\x0auniform\x20sampler2D\x20uBackdrop;\x0auniform\x20vec2\x20uBackdrop_flipY;\x0auniform\x20float\x20intensity;\x0a\x0a%UNIFORM_CODE%\x0a%FUNC_CODE%\x0avoid\x20main(void)\x0a{\x0a\x20\x20\x20\x20vec2\x20backdropCoord\x20=\x20vec2(vTextureCoord.x,\x20vTextureCoord.y);\x0a\x20\x20\x20\x20//\x20vec2\x20backdropCoord\x20=\x20vec2(vTextureCoord.x,\x20uBackdrop_flipY.x\x20+\x20uBackdrop_flipY.y\x20*\x20vTextureCoord.y);\x0a\x20\x20\x20\x20vec4\x20b_src\x20=\x20texture2D(uSampler,\x20vTextureCoord);\x20//\x20精灵\x0a\x20\x20\x20\x20vec4\x20b_dest\x20=\x20texture2D(uBackdrop,\x20backdropCoord);\x20//\x20底图\x0a\x20\x20\x20\x20vec4\x20b_res\x20=\x20b_src;\x0a\x0a\x0a\x20\x20\x20\x20//\x20gl_FragColor\x20=\x20b_dest;\x0a\x20\x20\x20\x20//\x20return;\x0a\x0a\x20\x20\x20\x20if\x20(b_src.a\x20==\x200.0)\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}\x0a\x20\x20\x20\x20if\x20(b_dest.a\x20==\x200.0)\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\x20//\x20gl_FragColor\x20=\x20b_src;\x0a\x20\x20\x20\x20\x20\x20\x20\x20return;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x0a\x20\x20\x0a\x20\x20\x20\x20b_res.rgb\x20=\x20blend%FUNC_NAME%(b_dest.rgb\x20/\x20b_dest.a,\x20b_src.rgb\x20/\x20b_src.a,\x20intensity);\x0a\x20\x20\x20\x20gl_FragColor\x20=\x20vec4(b_res.rgb\x20*\x20b_src.a,b_src.a);\x0a\x0a}';return aj=(aj=(aj=aj['replace']('%UNIFORM_CODE%',ah[vg(0x5bf)]||''))[vg(0x181)](vg(0x2d0),ah[vg(0x997)]||''))['replace'](vg(0x873),ah[vg(0x9aa)]||''),(ai=af[vg(0x6ca)](this,void 0x0,aj,ah[vg(0xa2a)])||this)[vg(0x410)]='uBackdrop',ai;}return G(ag,af),ag;}(H),K=(function(){var af=function(ag,ah){return af=Object['setPrototypeOf']||{'__proto__':[]}instanceof Array&&function(ai,aj){ai['__proto__']=aj;}||function(ai,aj){var vh=a0b;for(var ak in aj)Object[vh(0x6cb)][vh(0x708)][vh(0x6ca)](aj,ak)&&(ai[ak]=aj[ak]);},af(ag,ah);};return function(ag,ah){var vi=a0b;if(vi(0x4df)!=typeof ah&&null!==ah)throw new TypeError(vi(0x20f)+String(ah)+'\x20is\x20not\x20a\x20constructor\x20or\x20null');function ai(){var vj=vi;this[vj(0x93e)]=ag;}af(ag,ah),ag[vi(0x6cb)]=null===ah?Object[vi(0x7da)](ah):(ai[vi(0x6cb)]=ah[vi(0x6cb)],new ai());};}()),L=(function(af){function ag(ah,ai){var vk=a0b,aj=ai||{};return aj['flipY']||(aj[vk(0x5cd)]=new Float32Array([0x0,0x1])),af[vk(0x6ca)](this,vk(0x40c),ah,aj)||this;}K(ag,af);}(F[vf(0x55b)]),z(0x6c2)),M=[],N=[];function Q(af,ag){var vl=vf;return void 0x0===ag&&(ag=0x1),void 0x0===af?null:(M[af]||(M[af]=new J({'funcCode':L['L'][af][vl(0x3b9)],'funcName':L['L'][af]['key'],'uniforms':{'intensity':ag}})),M[af]);}function U(af,ag){var vm=vf;return void 0x0===ag&&(ag=0x1),void 0x0===af?null:(N[af]||(N[af]=[Q(af,ag)]),N[af][0x0][vm(0xa2a)][vm(0x8ac)]=ag,N[af]);}var V=z(0x7a9),W=(function(){var af=function(ag,ah){var vn=a0b;return af=Object[vn(0x977)]||{'__proto__':[]}instanceof Array&&function(ai,aj){var vo=vn;ai[vo(0x3b3)]=aj;}||function(ai,aj){var vp=vn;for(var ak in aj)Object[vp(0x6cb)][vp(0x708)][vp(0x6ca)](aj,ak)&&(ai[ak]=aj[ak]);},af(ag,ah);};return function(ag,ah){var vq=a0b;if(vq(0x4df)!=typeof ah&&null!==ah)throw new TypeError(vq(0x20f)+String(ah)+vq(0x67f));function ai(){var vr=vq;this[vr(0x93e)]=ag;}af(ag,ah),ag[vq(0x6cb)]=null===ah?Object[vq(0x7da)](ah):(ai[vq(0x6cb)]=ah[vq(0x6cb)],new ai());};}()),X=function(af){function ag(){var vs=a0b;return null!==af&&af[vs(0x1ea)](this,arguments)||this;}return W(ag,af),ag['prototype']['_render']=function(ah){var vt=a0b,ai=this[vt(0x473)];if(ai&&ai[vt(0x7a5)]){var aj=U(this[vt(0x8c7)]);new Date(),aj&&(ah['batch'][vt(0x5da)](),!ah[vt(0x7f8)][vt(0x581)](this,aj))||(+new Date(),this[vt(0x5f2)](),ah[vt(0x862)][vt(0x8de)](ah['plugins'][this[vt(0x520)]]),ah[vt(0x4a2)][this['pluginName']][vt(0x5bb)](this),aj&&(ah[vt(0x862)][vt(0x5da)](),ah[vt(0x7f8)]['pop']()));}},ag;}(V['j']),Y=z(0xb55),Z=(function(){var af=function(ag,ah){var vu=a0b;return af=Object[vu(0x977)]||{'__proto__':[]}instanceof Array&&function(ai,aj){var vv=vu;ai[vv(0x3b3)]=aj;}||function(ai,aj){for(var ak in aj)Object['prototype']['hasOwnProperty']['call'](aj,ak)&&(ai[ak]=aj[ak]);},af(ag,ah);};return function(ag,ah){var vw=a0b;if(vw(0x4df)!=typeof ah&&null!==ah)throw new TypeError(vw(0x20f)+String(ah)+vw(0x67f));function ai(){this['constructor']=ag;}af(ag,ah),ag[vw(0x6cb)]=null===ah?Object['create'](ah):(ai[vw(0x6cb)]=ah[vw(0x6cb)],new ai());};}()),a0=function(af){var vy=vf;function ag(ah,ai){var vx=a0b;void 0x0===ai&&(ai=!0x0);var aj=af[vx(0x6ca)](this,ah[0x0]instanceof F['Texture']?ah[0x0]:ah[0x0][vx(0x732)])||this;return aj[vx(0x337)]=null,aj['_durations']=null,aj['_autoUpdate']=ai,aj[vx(0x297)]=!0x1,aj['animationSpeed']=0x1,aj[vx(0x615)]=!0x0,aj['updateAnchor']=!0x1,aj[vx(0x41e)]=null,aj[vx(0x272)]=null,aj[vx(0x1da)]=null,aj[vx(0x4ba)]=0x0,aj[vx(0x9e4)]=!0x1,aj[vx(0x5a4)]=null,aj[vx(0x9af)]=ah,aj;}return Z(ag,af),ag[vy(0x6cb)][vy(0x355)]=function(){var vz=vy;this[vz(0x9e4)]&&(this[vz(0x9e4)]=!0x1,this[vz(0x5ae)]&&this[vz(0x297)]&&(Y['vB'][vz(0x26e)][vz(0x591)](this[vz(0x9c2)],this),this[vz(0x297)]=!0x1));},ag[vy(0x6cb)]['play']=function(){var vA=vy;this[vA(0x9e4)]||(this[vA(0x9e4)]=!0x0,this[vA(0x5ae)]&&!this[vA(0x297)]&&(Y['vB'][vA(0x26e)][vA(0x861)](this[vA(0x9c2)],this,Y['uF']['HIGH']),this[vA(0x297)]=!0x0));},ag[vy(0x6cb)]['gotoAndStop']=function(ah){var vB=vy;this[vB(0x355)]();var ai=this[vB(0x442)];this[vB(0x4ba)]=ah,ai!==this[vB(0x442)]&&this[vB(0x58e)]();},ag['prototype'][vy(0x83e)]=function(ah){var vC=vy,ai=this[vC(0x442)];this['_currentTime']=ah,ai!==this[vC(0x442)]&&this[vC(0x58e)](),this['play']();},ag[vy(0x6cb)][vy(0x9c2)]=function(ah){var vD=vy;if(this[vD(0x9e4)]){var ai=this[vD(0x989)]*ah,aj=this[vD(0x442)];if(null!==this[vD(0x173)]){var ak=this[vD(0x4ba)]%0x1*this[vD(0x173)][this[vD(0x442)]];for(ak+=ai/0x3c*0x3e8;ak<0x0;)this['_currentTime']--,ak+=this[vD(0x173)][this[vD(0x442)]];var al=Math[vD(0x8cf)](this[vD(0x989)]*ah);for(this[vD(0x4ba)]=Math[vD(0xa29)](this['_currentTime']);ak>=this[vD(0x173)][this[vD(0x442)]];)ak-=this[vD(0x173)][this[vD(0x442)]]*al,this[vD(0x4ba)]+=al;this[vD(0x4ba)]+=ak/this[vD(0x173)][this[vD(0x442)]];}else this[vD(0x4ba)]+=ai;this[vD(0x4ba)]<0x0&&!this[vD(0x615)]?(this['gotoAndStop'](0x0),this[vD(0x41e)]&&this[vD(0x41e)]()):this[vD(0x4ba)]>=this[vD(0x337)][vD(0x61d)]&&!this['loop']?(this['gotoAndStop'](this[vD(0x337)][vD(0x61d)]-0x1),this[vD(0x41e)]&&this[vD(0x41e)]()):aj!==this['currentFrame']&&(this['loop']&&this[vD(0x1da)]&&(this[vD(0x989)]>0x0&&this[vD(0x442)]<aj||this[vD(0x989)]<0x0&&this[vD(0x442)]>aj)&&this[vD(0x1da)](),this['updateTexture']());}},ag[vy(0x6cb)][vy(0x58e)]=function(){var vE=vy,ah=this[vE(0x442)];this[vE(0x5a4)]!==ah&&(this[vE(0x5a4)]=ah,this[vE(0x473)]=this[vE(0x337)][ah],this[vE(0x4e4)]=-0x1,this[vE(0x9ec)]=-0x1,this['_cachedTint']=0xffffff,this[vE(0x8c6)]=this[vE(0x473)][vE(0x9fb)]['uvsFloat32'],this[vE(0xa19)]&&this['_anchor']['copyFrom'](this[vE(0x473)]['defaultAnchor']),this[vE(0x272)]&&this['onFrameChange'](this[vE(0x442)]));},ag['prototype']['destroy']=function(ah){var vF=vy;this[vF(0x355)](),af[vF(0x6cb)][vF(0x73a)]['call'](this,ah),this[vF(0x41e)]=null,this[vF(0x272)]=null,this[vF(0x1da)]=null;},ag[vy(0x785)]=function(ah){var vG=vy;for(var ai=[],aj=0x0;aj<ah[vG(0x61d)];++aj)ai[vG(0x315)](F['Texture']['from'](ah[aj]));return new ag(ai);},ag[vy(0x1ce)]=function(ah){var vH=vy;for(var ai=[],aj=0x0;aj<ah[vH(0x61d)];++aj)ai['push'](F['Texture'][vH(0x1d4)](ah[aj]));return new ag(ai);},Object[vy(0x182)](ag[vy(0x6cb)],vy(0x9e5),{'get':function(){var vI=vy;return this[vI(0x337)][vI(0x61d)];},'enumerable':!0x1,'configurable':!0x0}),Object['defineProperty'](ag[vy(0x6cb)],vy(0x9af),{'get':function(){var vJ=vy;return this[vJ(0x337)];},'set':function(ah){var vK=vy;if(ah[0x0]instanceof F[vK(0x1ac)])this[vK(0x337)]=ah,this[vK(0x173)]=null;else{this['_textures']=[],this[vK(0x173)]=[];for(var ai=0x0;ai<ah[vK(0x61d)];ai++)this[vK(0x337)][vK(0x315)](ah[ai][vK(0x732)]),this['_durations']['push'](ah[ai][vK(0x176)]);}this[vK(0x5a4)]=null,this[vK(0x972)](0x0),this['updateTexture']();},'enumerable':!0x1,'configurable':!0x0}),Object['defineProperty'](ag['prototype'],vy(0x442),{'get':function(){var vL=vy,ah=Math[vL(0xa29)](this['_currentTime'])%this['_textures'][vL(0x61d)];return ah<0x0&&(ah+=this['_textures'][vL(0x61d)]),ah;},'enumerable':!0x1,'configurable':!0x0}),Object[vy(0x182)](ag[vy(0x6cb)],vy(0x22f),{'get':function(){return this['_playing'];},'enumerable':!0x1,'configurable':!0x0}),Object['defineProperty'](ag[vy(0x6cb)],vy(0x6d8),{'get':function(){var vM=vy;return this[vM(0x5ae)];},'set':function(ah){var vN=vy;ah!==this['_autoUpdate']&&(this['_autoUpdate']=ah,!this[vN(0x5ae)]&&this[vN(0x297)]?(Y['vB']['shared'][vN(0x591)](this[vN(0x9c2)],this),this[vN(0x297)]=!0x1):this['_autoUpdate']&&!this[vN(0x297)]&&this[vN(0x9e4)]&&(Y['vB'][vN(0x26e)]['add'](this[vN(0x9c2)],this),this[vN(0x297)]=!0x0));},'enumerable':!0x1,'configurable':!0x0}),ag;}(X),a1=z(0x1fcd),a2=z(0x1deb),a3=(function(){var af=function(ag,ah){var vO=a0b;return af=Object[vO(0x977)]||{'__proto__':[]}instanceof Array&&function(ai,aj){var vP=vO;ai[vP(0x3b3)]=aj;}||function(ai,aj){var vQ=vO;for(var ak in aj)Object[vQ(0x6cb)][vQ(0x708)][vQ(0x6ca)](aj,ak)&&(ai[ak]=aj[ak]);},af(ag,ah);};return function(ag,ah){var vR=a0b;if(vR(0x4df)!=typeof ah&&null!==ah)throw new TypeError(vR(0x20f)+String(ah)+'\x20is\x20not\x20a\x20constructor\x20or\x20null');function ai(){var vS=vR;this[vS(0x93e)]=ag;}af(ag,ah),ag[vR(0x6cb)]=null===ah?Object['create'](ah):(ai['prototype']=ah[vR(0x6cb)],new ai());};}()),a4=function(af){var vU=vf;function ag(){var vT=a0b;return null!==af&&af[vT(0x1ea)](this,arguments)||this;}return a3(ag,af),ag['prototype'][vU(0x2fb)]=function(ah){var vV=vU,ai=U(this[vV(0x8c7)],this[vV(0x8ac)]);if(!ai||(ah['batch'][vV(0x5da)](),ah[vV(0x7f8)][vV(0x581)](this,ai))){var aj=this[vV(0x54d)][vV(0x503)][0x0]['data'];this[vV(0x3b9)][vV(0x2e1)]&&this[vV(0x8ed)]===a2['lg']['TRIANGLES']&&aj[vV(0x61d)]<0x2*ag[vV(0x9bd)]?this[vV(0x402)](ah):this[vV(0x799)](ah),ai&&(ah[vV(0x862)][vV(0x5da)](),ah['filter']['pop']());}},ag;}(a1['Kj']),a5=z(0x810),a6=(function(){var af=function(ag,ah){var vW=a0b;return af=Object[vW(0x977)]||{'__proto__':[]}instanceof Array&&function(ai,aj){var vX=vW;ai[vX(0x3b3)]=aj;}||function(ai,aj){var vY=vW;for(var ak in aj)Object[vY(0x6cb)][vY(0x708)]['call'](aj,ak)&&(ai[ak]=aj[ak]);},af(ag,ah);};return function(ag,ah){var vZ=a0b;if('function'!=typeof ah&&null!==ah)throw new TypeError(vZ(0x20f)+String(ah)+vZ(0x67f));function ai(){var w0=vZ;this[w0(0x93e)]=ag;}af(ag,ah),ag[vZ(0x6cb)]=null===ah?Object[vZ(0x7da)](ah):(ai[vZ(0x6cb)]=ah['prototype'],new ai());};}()),a7=(function(af){var w2=vf;function ag(){var w1=a0b;return null!==af&&af[w1(0x1ea)](this,arguments)||this;}a6(ag,af),ag[w2(0x6cb)][w2(0x2fb)]=function(ah){var w3=w2,ai=this[w3(0x473)];if(ai&&ai[w3(0x7a5)]){var aj=U(this['blendMode_1']);aj&&(ah[w3(0x862)][w3(0x5da)](),!ah[w3(0x7f8)][w3(0x581)](this,aj))||(this[w3(0x1ca)]['updateLocalTransform'](),this[w3(0x2f7)][w3(0x9c2)](),ah['batch'][w3(0x8de)](ah[w3(0x4a2)][this[w3(0x520)]]),ah[w3(0x4a2)][this['pluginName']][w3(0x5bb)](this),aj&&(ah[w3(0x862)][w3(0x5da)](),ah[w3(0x7f8)][w3(0x984)]()));}};}(a5['o']),z(0x765));function a8(af,ag){var w4=vf;void 0x0===ag&&(ag=0x0);var ah=this['gl'];this[w4(0x644)]!==ag&&(this[w4(0x644)]=ag,ah[w4(0x280)](ah['TEXTURE0']+ag)),this['bind'](af,ag);}var a9=new a7['y3']();function aa(af,ag,ah){var w5=vf;void 0x0===ah&&(ah=!0x0);for(var ai=this[w5(0x3a1)],aj=this['defaultFilterStack'],ak=this['statePool'][w5(0x984)]()||new F[(w5(0x5f5))](),al=this[w5(0x3a1)]['renderTexture'],am=ag[0x0][w5(0x7ed)],an=ag[0x0][w5(0x62a)],ao=ag[0x0][w5(0x1f4)],ap=ag[0x0][w5(0x1b9)],aq=0x1;aq<ag[w5(0x61d)];aq++){var ar=ag[aq];am=Math[w5(0x2d8)](am,ar[w5(0x7ed)]),an=this[w5(0xa04)]?Math['max'](an,ar[w5(0x62a)]):an+ar[w5(0x62a)],ao=ao&&ar[w5(0x1f4)],ap=ap||ar[w5(0x1b9)];}0x1===aj[w5(0x61d)]&&(this['defaultFilterStack'][0x0][w5(0x8f8)]=al[w5(0x2cd)]),aj[w5(0x315)](ak),ak['resolution']=am,ak[w5(0x1b9)]=ap,ak['target']=af,ak['sourceFrame']['copyFrom'](af[w5(0x309)]||af['getBounds'](!0x0)),ak[w5(0x5db)][w5(0x646)](an);var as,at,au,av,aw,ax,ay=!0x0;if(ao){var az=this[w5(0xa17)][w5(0x5dd)](al['sourceFrame']);ai[w5(0x24a)][w5(0xa07)]&&this[w5(0x89c)](a9[w5(0x5dd)](ai[w5(0x24a)]['transform'])[w5(0x947)](),az),ak['sourceFrame']['fit'](az);}else as=this['renderer'][w5(0x8f8)]['sourceFrame'],at=ak[w5(0x5db)],au=at['x']+at[w5(0x5fb)],av=at['y']+at[w5(0x8ec)],aw=as['x']+as[w5(0x5fb)],ax=as['y']+as[w5(0x8ec)],ay=at['x']>=as['x']&&at['x']<=aw&&at['y']>=as['y']&&at['y']<=ax&&au>=as['x']&&au<=aw&&av>=as['y']&&av<=ax;if(ah&&ak[w5(0x5db)]['width']<=0x1&&ak[w5(0x5db)][w5(0x8ec)]<=0x1)return aj[w5(0x984)](),ak[w5(0x263)](),this[w5(0x34c)]['push'](ak),!0x1;this[w5(0x3f7)](ak[w5(0x5db)],al['current']?al[w5(0x2cd)]['resolution']:ai[w5(0x7ed)],al[w5(0x5db)],al[w5(0x6aa)],ai[w5(0x24a)]['transform']),ak[w5(0x5db)][w5(0x60f)](am),new Date();if(ay){var aA=null,aB=null;for(aq=0x0;aq<ag[w5(0x61d)];aq++){var aC=ag[aq][w5(0x410)];if(aC){var aD=ag[aq]['uniforms'];aD[aC+'_flipY']||(aD[aC+w5(0x90d)]=new Float32Array([0x0,0x1]));var aE=aD[aC+w5(0x90d)];null===aA?(aA=this[w5(0x594)](ak[w5(0x5db)],aE),aB=aE):(aE[0x0]=aB[0x0],aE[0x1]=aB[0x1]),aD[aC]=aA,aA&&(ag[aq]['_backdropActive']=!0x0);}}aA&&(am=ak[w5(0x7ed)]=aA[w5(0x7ed)]);}ak[w5(0x8f8)]=this['getOptimalFilterTexture'](ak[w5(0x5db)][w5(0x5fb)],ak['sourceFrame'][w5(0x8ec)],am),ak[w5(0x6bc)]=ag,ak[w5(0x6aa)]['width']=ak[w5(0x8f8)][w5(0x5fb)],ak['destinationFrame'][w5(0x8ec)]=ak['renderTexture'][w5(0x8ec)];var aF=this[w5(0xa17)];aF['x']=0x0,aF['y']=0x0,aF[w5(0x5fb)]=ak[w5(0x5db)][w5(0x5fb)],aF['height']=ak[w5(0x5db)]['height'],ak[w5(0x8f8)][w5(0x6a7)]=ak[w5(0x5db)],ak[w5(0x692)][w5(0x5dd)](al[w5(0x5db)]),ak[w5(0x34a)][w5(0x5dd)](al[w5(0x6aa)]),ak[w5(0xa07)]=ai['projection'][w5(0xa07)],ai[w5(0x24a)][w5(0xa07)]=null,al[w5(0xa0c)](ak[w5(0x8f8)],ak[w5(0x5db)],aF);var aG=ag[ag[w5(0x61d)]-0x1][w5(0x428)];return aG?ai[w5(0x3d2)][w5(0x263)](aG[0x0],aG[0x1],aG[0x2],aG[0x3]):ai[w5(0x3d2)][w5(0x263)](0x0,0x0,0x0,0x0),!0x0;}function ab(af,ag){var w6=vf;return this[w6(0x581)](af,ag,!0x1);}function ac(){var w7=vf,af=this[w7(0x66e)],ag=af['pop'](),ah=ag[w7(0x6bc)];this[w7(0x4bf)]=ag;var ai=this[w7(0x3f5)][w7(0xa2a)];ai[w7(0x8ab)]=ag[w7(0x5db)],ai[w7(0x7ed)]=ag[w7(0x7ed)];var aj=ai['inputSize'],ak=ai[w7(0x637)],al=ai['inputClamp'];if(aj[0x0]=ag['destinationFrame']['width'],aj[0x1]=ag[w7(0x6aa)]['height'],aj[0x2]=0x1/aj[0x0],aj[0x3]=0x1/aj[0x1],ak[0x0]=aj[0x0]*ag[w7(0x7ed)],ak[0x1]=aj[0x1]*ag[w7(0x7ed)],ak[0x2]=0x1/ak[0x0],ak[0x3]=0x1/ak[0x1],al[0x0]=0.5*ak[0x2],al[0x1]=0.5*ak[0x3],al[0x2]=ag[w7(0x5db)][w7(0x5fb)]*aj[0x2]-0.5*ak[0x2],al[0x3]=ag[w7(0x5db)]['height']*aj[0x3]-0.5*ak[0x3],ag[w7(0x1b9)]){var am=ai['filterArea'];am[0x0]=ag['destinationFrame']['width'],am[0x1]=ag[w7(0x6aa)][w7(0x8ec)],am[0x2]=ag[w7(0x5db)]['x'],am[0x3]=ag[w7(0x5db)]['y'],ai[w7(0xa1c)]=ai[w7(0x58d)];}this[w7(0x3f5)][w7(0x9c2)]();var an=af[af[w7(0x61d)]-0x1];if(ag['renderTexture'][w7(0x3d2)][w7(0x7b5)]>0x1&&this[w7(0x3a1)][w7(0x3d2)][w7(0x1dc)](),0x1===ah['length'])ah[0x0][w7(0x1ea)](this,ag[w7(0x8f8)],an[w7(0x8f8)],a2['yl'][w7(0x3ec)],ag),this[w7(0x7dd)](ag['renderTexture']);else{var ao=ag[w7(0x8f8)],ap=this[w7(0x829)](ao[w7(0x5fb)],ao[w7(0x8ec)],ag[w7(0x7ed)]);ap[w7(0x6a7)]=ao[w7(0x6a7)];var aq=0x0;for(aq=0x0;aq<ah[w7(0x61d)]-0x1;++aq){ah[aq][w7(0x1ea)](this,ao,ap,a2['yl']['CLEAR'],ag);var ar=ao;ao=ap,ap=ar;}ah[aq]['apply'](this,ao,an['renderTexture'],a2['yl']['BLEND'],ag),this[w7(0x7dd)](ao),this[w7(0x7dd)](ap);}var as=!0x1;for(aq=0x0;aq<ah[w7(0x61d)];aq++)if(ah[aq]['_backdropActive']){var at=ah[aq]['backdropUniformName'];as||(this[w7(0x7dd)](ah[aq][w7(0xa2a)][at]),as=!0x0),ah[aq][w7(0xa2a)][at]=null,ah[aq]['_backdropActive']=!0x1;}ag[w7(0x263)](),this[w7(0x34c)][w7(0x315)](ag);}var ad=!0x1;function ae(af,ag){var w8=vf,ah=this[w8(0x3a1)],ai=ah[w8(0x8f8)][w8(0x2cd)],aj=this[w8(0x3a1)]['renderTexture'][w8(0x5db)],ak=ah['projection']['transform']||a7['y3'][w8(0x9e6)],al=0x1;if(ai)al=ai[w8(0x41f)][w8(0x7ed)],ag[0x1]=0x1;else{if(!ah[w8(0x763)])return ad||(ad=!0x0,console[w8(0x5b7)](w8(0x1a1))),null;al=ah[w8(0x7ed)],ag[0x1]=-0x1;}var am=Math[w8(0x312)]((af['x']-aj['x']+ak['tx'])*al),an=af['y']-aj['y']+ak['ty'],ao=Math[w8(0x312)]((ag[0x1]<0x0?aj[w8(0x8ec)]-(an+af[w8(0x8ec)]):an)*al),ap=Math[w8(0x312)](af[w8(0x5fb)]*al),aq=Math['round'](af[w8(0x8ec)]*al),ar=ah['gl'],as=this[w8(0x829)](ap,aq,0x1);return ag[0x1]<0x0&&(ag[0x0]=aq/as[w8(0x8ec)]),as['filterFrame']=aj,as[w8(0x567)](al),ah[w8(0x732)][w8(0x94b)](as[w8(0x41f)],0x0),new Date(),(ar['copyTexSubImage2D'](ar['TEXTURE_2D'],0x0,0x0,0x0,am,ao,ap,aq),as);}F[vf(0x1e0)][vf(0x6cb)][vf(0x94b)]=a8,F[vf(0x526)][vf(0x6cb)][vf(0x315)]=ab,F[vf(0x526)][vf(0x6cb)][vf(0x581)]=aa,F[vf(0x526)]['prototype'][vf(0x984)]=ac,F[vf(0x526)][vf(0x6cb)][vf(0x594)]=ae;},0x191:(j,k,q)=>{var w9=a0b;q['d'](k,{'$G':()=>M,'Cb':()=>E,'Eh':()=>I,'Gb':()=>F,'Jp':()=>D,'Ss':()=>B,'Ty':()=>G,'c4':()=>z,'c9':()=>w,'d9':()=>O,'em':()=>A,'gz':()=>H,'hJ':()=>J,'iN':()=>N,'jw':()=>C,'rR':()=>L,'ty':()=>K,'xb':()=>x});var w=w9(0x90a);function x(){var wa=w9;return''[wa(0x5f8)](wa(0x748),'/')[wa(0x5f8)]('1.0.23-9','/')[wa(0x5f8)](w);}var z={'POINTS_MAP':0x17,'KEY_POINTS':0x18,'LEFT_FACE_OVAL':0x8,'LEFT_FACE_OVAL2':0x9,'LEFT_FACE_OVAL3':0xa,'RIGHT_FACE_OVAL':0xb,'RIGHT_FACE_OVAL2':0xc,'RIGHT_FACE_OVAL3':0xd,'MOUTH_UPPER':0x13,'MOUTH_LOWER':0x14,'OUTER_REFERENCE':0x12,'outer_offset_ratio':0x1b,'triangulation':0x19,'auvs':0x1a,'LEFT_IRIS':0x7,'RIGHT_IRIS':0x6,'LEFT_EYE_ORDER':0xe,'RIGHT_EYE_ORDER':0xf,'lipsTriangulation':0x1c,'lipsAuvs':0x1d,'LIPS':0x5},A=0x0,B=0x0,C=0x164,D=[0x0,0x20],E=w9(0x950),F=w9(0x7af),G=w9(0x95b),H='54,69,6d,65,73,74,61,6d,70',I=w9(0x4b6),J='4b,65,79,4c,69,73,74',K={'bu':'62,65,61,75,74,69,66,79','mu':w9(0x538),'s':w9(0x7cd),'s3':w9(0x709),'f':w9(0x1cf),'bg':w9(0x4c4),'a':w9(0x5c0),'av':w9(0x800)};function L(P){var wb=w9;for(var Q='',R=P[wb(0x1ee)](','),S=0x0;S<R[wb(0x61d)];S++)Q+=String[wb(0x1dd)](parseInt(R[S],0x10));return Q;}function M(P){var wc=w9;for(var Q='',R=0x0;R<P[wc(0x61d)];R++)''==Q?Q=P['charCodeAt'](R)['toString'](0x10):Q+=','+P['charCodeAt'](R)['toString'](0x10);return Q;}var N='offscreen',O=w9(0x359);},0xbe4:(b,g,j)=>{j['d'](g,{'UI':()=>A,'iV':()=>z,'pF':()=>B});var k=j(0x18a5),m=j(0x4b6),p=j(0x12c9),q=j(0x218a),v=function(C,D,E,F){var wd=a0b,G,H=arguments[wd(0x61d)],I=H<0x3?D:null===F?F=Object['getOwnPropertyDescriptor'](D,E):F;if(wd(0x97f)==typeof Reflect&&wd(0x4df)==typeof Reflect['decorate'])I=Reflect[wd(0x3fc)](C,D,E,F);else{for(var J=C[wd(0x61d)]-0x1;J>=0x0;J--)(G=C[J])&&(I=(H<0x3?G(I):H>0x3?G(D,E,I):G(D,E))||I);}return H>0x3&&I&&Object['defineProperty'](D,E,I),I;},w=function(C,D){var we=a0b;if('object'==typeof Reflect&&'function'==typeof Reflect['metadata'])return Reflect[we(0x667)](C,D);},x=function(C,D,E,F){return new(E||(E=Promise))(function(G,H){var wi=a0b;function I(L){var wf=a0b;try{K(F[wf(0x549)](L));}catch(M){H(M);}}function J(L){var wg=a0b;try{K(F[wg(0x30d)](L));}catch(M){H(M);}}function K(L){var wh=a0b,M;L[wh(0x2ed)]?G(L[wh(0x9e0)]):(M=L[wh(0x9e0)],M instanceof E?M:new E(function(N){N(M);}))[wh(0x1fe)](I,J);}K((F=F[wi(0x1ea)](C,D||[]))[wi(0x549)]());});},y=function(C,D){var wj=a0b,E,F,G,H,I={'label':0x0,'sent':function(){if(0x1&G[0x0])throw G[0x1];return G[0x1];},'trys':[],'ops':[]};return H={'next':J(0x0),'throw':J(0x1),'return':J(0x2)},wj(0x4df)==typeof Symbol&&(H[Symbol['iterator']]=function(){return this;}),H;function J(K){return function(L){return function(M){var wk=a0b;if(E)throw new TypeError(wk(0x976));for(;I;)try{if(E=0x1,F&&(G=0x2&M[0x0]?F['return']:M[0x0]?F[wk(0x30d)]||((G=F[wk(0x512)])&&G[wk(0x6ca)](F),0x0):F['next'])&&!(G=G[wk(0x6ca)](F,M[0x1]))['done'])return G;switch(F=0x0,G&&(M=[0x2&M[0x0],G[wk(0x9e0)]]),M[0x0]){case 0x0:case 0x1:G=M;break;case 0x4:return I['label']++,{'value':M[0x1],'done':!0x1};case 0x5:I[wk(0x823)]++,F=M[0x1],M=[0x0];continue;case 0x7:M=I[wk(0xa27)][wk(0x984)](),I['trys']['pop']();continue;default:if(!(G=I[wk(0x9c4)],(G=G[wk(0x61d)]>0x0&&G[G[wk(0x61d)]-0x1])||0x6!==M[0x0]&&0x2!==M[0x0])){I=0x0;continue;}if(0x3===M[0x0]&&(!G||M[0x1]>G[0x0]&&M[0x1]<G[0x3])){I[wk(0x823)]=M[0x1];break;}if(0x6===M[0x0]&&I[wk(0x823)]<G[0x1]){I[wk(0x823)]=G[0x1],G=M;break;}if(G&&I['label']<G[0x2]){I[wk(0x823)]=G[0x2],I[wk(0xa27)][wk(0x315)](M);break;}G[0x2]&&I[wk(0xa27)][wk(0x984)](),I[wk(0x9c4)]['pop']();continue;}M=D[wk(0x6ca)](C,I);}catch(N){M=[0x6,N],F=0x0;}finally{E=G=0x0;}if(0x5&M[0x0])throw M[0x1];return{'value':M[0x0]?M[0x1]:void 0x0,'done':!0x0};}([K,L]);};}},z={};function A(){z={};}var B=(function(){var wm=a0b;function C(){var wl=a0b;this['_inited']=!0x1,this[wl(0x715)]=!0x1;}return C[wm(0x6cb)]['getLoader']=function(){var wn=wm;return this[wn(0x382)];},C[wm(0x6cb)][wm(0x33d)]=function(){var wo=wm;return this[wo(0x62c)]();},C['prototype'][wm(0x262)]=function(D,E){var wp=wm,F=this[wp(0x2b0)][wp(0x923)](D,E)[wp(0x9f4)];if(F&&F[wp(0x61d)])return JSON[wp(0x87f)](p['T8'](F));},C['prototype'][wm(0x62c)]=function(){var wq=wm,D=this,E=new m[(wq(0x257))](),F=this[wq(0x2b6)]();return E[wq(0x8cc)](F),E[wq(0xa24)](function(G,H){var wr=wq;if(wr(0x580)!==G[wr(0xa1b)]){var I=G[wr(0x329)];if(m[wr(0x7d6)][wr(0x237)][G[wr(0x95c)]])H();else{var J=m[wr(0x1ac)][wr(0x7e1)](I[wr(0x9f4)],I[wr(0x5fb)],I[wr(0x8ec)],{'alphaMode':m[wr(0x30f)]['UNPACK']});m[wr(0x96b)]['addToCache'](J['baseTexture'],G['name']),m[wr(0x1ac)][wr(0x465)](J,G[wr(0x95c)]),H();}}else D[wr(0x4f1)](E,G,H);}),E;},C['prototype']['removeFromCache']=function(D){var ws=wm;this[ws(0x2b0)]&&this['encLoader'][ws(0x935)](D);},C[wm(0x6cb)]['init']=function(){return x(this,void 0x0,Promise,function(){var D=this;return y(this,function(E){var wt=a0b;return this[wt(0x6b6)]?[0x2,Promise[wt(0x42d)]()]:this[wt(0x715)]?[0x2,new Promise(function(F,G){var H,I=function(){var wu=a0b;D[wu(0x6b6)]?(F(),clearTimeout(H)):H=setTimeout(I,0x32);};H=setTimeout(I,0x32);})]:(this['_initing']=!0x0,[0x2,new Promise(function(F,G){var wv=wt,H=new k['e']({});H['init']()[wv(0x1fe)](function(){var ww=wv;D[ww(0x6b6)]=!0x0,D[ww(0x715)]=!0x1,D[ww(0x2b0)]=H,D[ww(0x382)]=D['_initLoader'](),F();})[wv(0x2ec)](function(I){});})]);});});},C[wm(0x6cb)]['preload']=function(D){return x(this,void 0x0,void 0x0,function(){var E;return y(this,function(F){var wx=a0b;switch(F[wx(0x823)]){case 0x0:return F[wx(0x9c4)][wx(0x315)]([0x0,0x2,,0x3]),[0x4,this[wx(0x2b0)][wx(0x8f9)](D)];case 0x1:return F[wx(0x5e2)](),[0x3,0x3];case 0x2:return E=F[wx(0x5e2)](),[0x2,Promise[wx(0x7ac)](E)];case 0x3:return[0x2];}});});},C[wm(0x6cb)][wm(0x2b6)]=function(){var D=this;return function(E,F){var wy=a0b;if(m&&m[wy(0x7d6)][wy(0x237)]&&E&&m[wy(0x7d6)][wy(0x237)][E['name']])F();else{var G=E[wy(0x79d)],H=D['encLoader'][wy(0x923)](G),I=H[wy(0x496)],J=H[wy(0x9f4)],K=E[wy(0x95c)];if(K[wy(0x50b)](wy(0x65e))>-0x1&&K[wy(0x50b)]('|')>-0x1){var L=K['split']('|')[0x0],M=D['encLoader']['getFileFromCache'](G,L);I=M[wy(0x496)],J=M[wy(0x9f4)];}if(/\.(json)$/i[wy(0x579)](G))return E[wy(0x329)]=JSON['parse'](p['T8'](J)),E['complete'](),void F();/\.(gif|jpe?g|tiff?|png|webp|bmp)$/i['test'](G)?(E[wy(0x329)]={'file':J,'width':I['__config'][G]?I['__config'][G][wy(0x5fb)]:0x320,'height':I[wy(0x508)][G]?I[wy(0x508)][G][wy(0x8ec)]:0x320},E[wy(0x8ef)](),F()):(E['data']={'file':J},E[wy(0x8ef)](),F());}};},C[wm(0x6cb)]['handleSpriteSheet']=function(D,E,F){var wz=wm,G=''[wz(0x5f8)](E['name'],'_image');if(E[wz(0x329)]&&E[wz(0x329)][wz(0x33c)]&&!D['resources'][G]&&!m['utils'][wz(0x237)][G]){var H={'crossOrigin':E[wz(0x634)],'metadata':E[wz(0x329)][wz(0x1cc)]},I=E[wz(0x329)]['meta'][wz(0x9d2)],J=E[wz(0x79d)]['split']('/');J[wz(0x984)](),J[wz(0x315)](I),I=J[wz(0x5d2)]('/');var K=this[wz(0x3c6)]();K[wz(0x861)](G,I,H,function(L){var wA=wz,M=m[wA(0x1ac)][wA(0x7e1)](L[wA(0x329)][wA(0x9f4)],L[wA(0x329)][wA(0x5fb)],L['data']['height'],{'alphaMode':m[wA(0x30f)]['UNPACK']}),N=new m[(wA(0x171))](M,E['data'],E['url']);N[wA(0x87f)](function(){var wB=wA;E[wB(0x1b4)]=N,E[wB(0x9af)]=N[wB(0x9af)],z[E[wB(0x95c)]]=E,F();});}),K['load'](function(L,M){});}else F();},C=v([q['e'],w(wm(0x4a4),[])],C);}());},0x18a5:(j,k,q)=>{q['d'](k,{'e':()=>O});var w=q(0x12c9),x=q(0x1407),z=q(0x218a),A=q(0xde1),B=q(0x1ade);const C=(function(){var wD=a0b;function P(){var wC=a0b;this[wC(0x1b5)]=wC(0x687),this['objectStoreName']=wC(0x32a),wC(0x5f4)!=typeof self&&self?this[wC(0x507)]=self:wC(0x5f4)!=typeof window&&window&&(this['window']=window);}return P[wD(0x6cb)][wD(0x2a6)]=function(){var wE=wD,Q=this[wE(0x507)];return!(void 0x0===Q||!Q||!Q['indexedDB']);},P[wD(0x6cb)][wD(0x54c)]=function(){var Q=this;return new Promise(function(R,S){var wF=a0b;if(Q[wF(0x2a6)]()){if(Q['db'])return void R(Q['db']);var T=Q[wF(0x507)]['indexedDB'][wF(0x673)](Q[wF(0x1b5)],0x1);T['onsuccess']=function(U){var wG=wF;Q['db']=U['target'][wG(0x6df)],R(Q);},T[wF(0x9c7)]=function(U){var wH=wF,V=U[wH(0x40e)][wH(0x6df)];V[wH(0x28d)]['contains'](Q[wH(0x1f7)])||V[wH(0x5d4)](Q['objectStoreName']);},T[wF(0x38b)]=function(U){S(U);};}else S();});},P[wD(0x6cb)]['getItem']=function(Q){var R=this;return new Promise(function(S,T){var wI=a0b;if(R['db']){var U=R['db'][wI(0x498)](R[wI(0x1f7)])['objectStore'](R['objectStoreName'])[wI(0x298)](Q);U[wI(0x71e)]=function(){var wJ=wI;return S(U[wJ(0x6df)]);},U['onerror']=function(){return T();};}else T();});},P[wD(0x6cb)][wD(0x44d)]=function(Q,R){var S=this;return new Promise(function(T,U){var wK=a0b;if(S['db']){var V=S['db'][wK(0x498)](S[wK(0x1f7)],wK(0x990))[wK(0x897)](S[wK(0x1f7)])[wK(0x243)](R,Q);V[wK(0x71e)]=function(){return T(R);},V[wK(0x38b)]=function(){return U();};}else U();});},P[wD(0x6cb)][wD(0x228)]=function(Q){var R=this;return new Promise(function(S,T){var wL=a0b;if(R['db']){var U=R['db'][wL(0x498)](R[wL(0x1f7)],wL(0x990))['objectStore'](R['objectStoreName'])[wL(0x1d9)](Q);U[wL(0x71e)]=function(){return S(null);},U[wL(0x38b)]=function(){return T();};}else T();});},P[wD(0x6cb)][wD(0x365)]=function(){var Q=this;return new Promise(function(R,S){var wM=a0b;if(!Q['db'])return S();var T=Q['db']['transaction'](Q['objectStoreName'])[wM(0x897)](Q[wM(0x1f7)])[wM(0x305)]();T['onsuccess']=function(){var wN=wM;return R(T[wN(0x6df)]);},T[wM(0x38b)]=function(){return S();};});},P[wD(0x6cb)][wD(0x263)]=function(){var Q=this;return new Promise(function(R,S){var wO=a0b;if(!Q['db'])return S();var T=Q['db'][wO(0x498)](Q[wO(0x1f7)],wO(0x990))['objectStore'](Q['objectStoreName'])[wO(0x263)]();T[wO(0x71e)]=function(){return R(null);},T[wO(0x38b)]=function(){return S();};});},P;}());var D=q(0x191),E=q(0x17dd),F=q(0x2700),G=function(P,Q,R,S){var wP=a0b,T,U=arguments[wP(0x61d)],V=U<0x3?Q:null===S?S=Object[wP(0x255)](Q,R):S;if(wP(0x97f)==typeof Reflect&&'function'==typeof Reflect[wP(0x3fc)])V=Reflect[wP(0x3fc)](P,Q,R,S);else{for(var W=P[wP(0x61d)]-0x1;W>=0x0;W--)(T=P[W])&&(V=(U<0x3?T(V):U>0x3?T(Q,R,V):T(Q,R))||V);}return U>0x3&&V&&Object[wP(0x182)](Q,R,V),V;},H=function(P,Q){var wQ=a0b;if(wQ(0x97f)==typeof Reflect&&wQ(0x4df)==typeof Reflect[wQ(0x667)])return Reflect['metadata'](P,Q);},I=function(P,Q,R,S){return new(R||(R=Promise))(function(T,U){var wU=a0b;function V(Y){var wR=a0b;try{X(S[wR(0x549)](Y));}catch(Z){U(Z);}}function W(Y){var wS=a0b;try{X(S[wS(0x30d)](Y));}catch(Z){U(Z);}}function X(Y){var wT=a0b,Z;Y[wT(0x2ed)]?T(Y[wT(0x9e0)]):(Z=Y[wT(0x9e0)],Z instanceof R?Z:new R(function(a0){a0(Z);}))[wT(0x1fe)](V,W);}X((S=S[wU(0x1ea)](P,Q||[]))[wU(0x549)]());});},J=function(P,Q){var wV=a0b,R,S,T,U,V={'label':0x0,'sent':function(){if(0x1&T[0x0])throw T[0x1];return T[0x1];},'trys':[],'ops':[]};return U={'next':W(0x0),'throw':W(0x1),'return':W(0x2)},wV(0x4df)==typeof Symbol&&(U[Symbol[wV(0x3c2)]]=function(){return this;}),U;function W(X){return function(Y){return function(Z){var wW=a0b;if(R)throw new TypeError(wW(0x976));for(;V;)try{if(R=0x1,S&&(T=0x2&Z[0x0]?S['return']:Z[0x0]?S[wW(0x30d)]||((T=S[wW(0x512)])&&T[wW(0x6ca)](S),0x0):S[wW(0x549)])&&!(T=T[wW(0x6ca)](S,Z[0x1]))['done'])return T;switch(S=0x0,T&&(Z=[0x2&Z[0x0],T[wW(0x9e0)]]),Z[0x0]){case 0x0:case 0x1:T=Z;break;case 0x4:return V['label']++,{'value':Z[0x1],'done':!0x1};case 0x5:V[wW(0x823)]++,S=Z[0x1],Z=[0x0];continue;case 0x7:Z=V[wW(0xa27)][wW(0x984)](),V[wW(0x9c4)][wW(0x984)]();continue;default:if(!(T=V[wW(0x9c4)],(T=T[wW(0x61d)]>0x0&&T[T[wW(0x61d)]-0x1])||0x6!==Z[0x0]&&0x2!==Z[0x0])){V=0x0;continue;}if(0x3===Z[0x0]&&(!T||Z[0x1]>T[0x0]&&Z[0x1]<T[0x3])){V['label']=Z[0x1];break;}if(0x6===Z[0x0]&&V[wW(0x823)]<T[0x1]){V[wW(0x823)]=T[0x1],T=Z;break;}if(T&&V[wW(0x823)]<T[0x2]){V['label']=T[0x2],V[wW(0xa27)][wW(0x315)](Z);break;}T[0x2]&&V['ops'][wW(0x984)](),V['trys'][wW(0x984)]();continue;}Z=Q['call'](P,V);}catch(a0){Z=[0x6,a0],S=0x0;}finally{R=T=0x0;}if(0x5&Z[0x0])throw Z[0x1];return{'value':Z[0x0]?Z[0x1]:void 0x0,'done':!0x0};}([X,Y]);};}},K=function(P){var wX=a0b,Q=wX(0x4df)==typeof Symbol&&Symbol[wX(0x3c2)],R=Q&&P[Q],S=0x0;if(R)return R[wX(0x6ca)](P);if(P&&wX(0x78e)==typeof P[wX(0x61d)])return{'next':function(){var wY=wX;return P&&S>=P[wY(0x61d)]&&(P=void 0x0),{'value':P&&P[S++],'done':!P};}};throw new TypeError(Q?'Object\x20is\x20not\x20iterable.':wX(0x534));},L=function(P,Q){var wZ=a0b,R=wZ(0x4df)==typeof Symbol&&P[Symbol[wZ(0x3c2)]];if(!R)return P;var S,T,U=R[wZ(0x6ca)](P),V=[];try{for(;(void 0x0===Q||Q-->0x0)&&!(S=U['next']())[wZ(0x2ed)];)V['push'](S[wZ(0x9e0)]);}catch(W){T={'error':W};}finally{try{S&&!S[wZ(0x2ed)]&&(R=U[wZ(0x512)])&&R[wZ(0x6ca)](U);}finally{if(T)throw T[wZ(0x6ec)];}}return V;},M=function(P,Q,R){var x0=a0b;if(R||0x2===arguments['length']){for(var S,T=0x0,U=Q[x0(0x61d)];T<U;T++)!S&&T in Q||(S||(S=Array['prototype'][x0(0x859)]['call'](Q,0x0,T)),S[T]=Q[T]);}return P['concat'](S||Array[x0(0x6cb)]['slice'][x0(0x6ca)](Q));},N=(function(){var x2=a0b;function P(Q){var x1=a0b;this[x1(0x1b2)]=Q,this['data']=new Map();}return P['prototype'][x2(0x243)]=function(Q,R){var x3=x2;if(E['D4'][x3(0x860)]('put',Q),Q[x3(0x50b)](D['c9'])>-0x1&&(this[x3(0x519)]=R,this['common_cache_domain']=Q),this[x3(0x329)][x3(0x4cb)](Q))return this[x3(0x329)][x3(0x1d9)](Q),void this[x3(0x329)][x3(0x1e6)](Q,R);if(this[x3(0x329)]['size']>=this[x3(0x1b2)]){var S=this[x3(0x329)][x3(0x365)]()['next']()[x3(0x9e0)];this[x3(0x329)][x3(0x1d9)](S);}this[x3(0x329)][x3(0x1e6)](Q,R);},P['prototype'][x2(0x298)]=function(Q){var x4=x2;if(Q[x4(0x50b)](D['c9'])>-0x1)return this[x4(0x519)];if(!this[x4(0x329)][x4(0x4cb)](Q))return!0x1;var R=this[x4(0x329)][x4(0x298)](Q);return this['data'][x4(0x1d9)](Q),this['data'][x4(0x1e6)](Q,R),R;},Object['defineProperty'](P[x2(0x6cb)],x2(0x365),{'get':function(){var x5=x2;return Array[x5(0x1d4)](this['data'][x5(0x365)]())[x5(0x5f8)]([this[x5(0x5af)]]);},'enumerable':!0x1,'configurable':!0x0}),P[x2(0x6cb)]['delete']=function(Q){var x6=x2;this[x6(0x329)][x6(0x1d9)](Q);},P[x2(0x6cb)][x2(0x263)]=function(){var x7=x2;this[x7(0x329)]['clear']();},P;}()),O=(function(){var x9=a0b;function P(Q){var x8=a0b;this[x8(0x6b6)]=!0x1,this[x8(0x715)]=!0x1,this['_cache']=new N(0x7),this[x8(0x8db)]={},Q=Q||{},this[x8(0x61e)]=Q,this['arCacheStorage']=new C();}return P[x9(0x6cb)][x9(0x54c)]=function(){return I(this,void 0x0,Promise,function(){var Q=this;return J(this,function(R){var xa=a0b;return this[xa(0x6b6)]?[0x2,Promise[xa(0x42d)]()]:this[xa(0x715)]?[0x2,new Promise(function(S,T){var U,V=function(){Q['_inited']?(S(),clearTimeout(U)):U=setTimeout(V,0x32);};U=setTimeout(V,0x32);})]:(this[xa(0x715)]=!0x0,this['_c']=new x['Y'](),[0x2,this['_c'][xa(0x54c)]()[xa(0x1fe)](function(){var xb=xa;Q[xb(0x6b6)]=!0x0,Q['_initing']=!0x1,setTimeout(function(){var xc=xb;Q[xc(0x6de)]();},0x270f);})]);});});},P[x9(0x6cb)][x9(0x303)]=function(){var xd=x9,Q=this;return this[xd(0x4ea)]||(this['worker']=new Worker(),this['worker'][xd(0x622)]=function(R){var xe=xd,S=R[xe(0x329)],T=S['p1'],U=S['p2'],V=S[xe(0x61d)],W=(S['i'],S['u']),X=S['error'];if(X)Q['_error']=new Error(X[xe(0x939)]);else{var Y=new Uint8Array(V);Y[xe(0x1e6)](T),Y['set'](U,T[xe(0x61d)]),Q[xe(0x67a)](W,Y);var Z=Q['_c'],a0=Z[xe(0x3e2)](T,'');Z[xe(0x4e6)]('');var a1=new Uint8Array(V);a1[xe(0x1e6)](a0),a1[xe(0x1e6)](U,a0[xe(0x61d)]);var a2=w['GZ'](a1);E['D4']['info'](xe(0x535),W),Q[xe(0x6ac)](a2)[xe(0x1fe)](function(){var xf=xe;Q['_cache'][xf(0x243)](W,a2),delete Q['_loadingMap'][W];});}}),this['worker'];},P[x9(0x6cb)]['preload']=function(Q,R,S){return void 0x0===R&&(R=!0x0),void 0x0===S&&(S=0x1),I(this,void 0x0,Promise,function(){var T,U,V=this;return J(this,function(W){var xg=a0b;if(this[xg(0x8db)][Q])return[0x2,this['waitUntilPreload'](Q)];for(T in(this[xg(0x8db)][Q]=!0x0,this[xg(0x8db)]))T!==Q&&(this[xg(0x8db)][T]=!0x1);return this[xg(0x212)][xg(0x298)](Q)?(delete this[xg(0x8db)][Q],[0x2,Promise[xg(0x42d)]()]):(U=A['Z'][xg(0x44f)](Q)||+new Date(),[0x2,new Promise(function(X,Y){return I(V,void 0x0,void 0x0,function(){var Z,a0,a1,a2=this;return J(this,function(a3){var xi=a0b;switch(a3['label']){case 0x0:return[0x4,(0x0,F['pe'])(U,Q)['catch'](function(a4){var xh=a0b;B['N'][xh(0x975)]('error',a4);})];case 0x1:return a3[xi(0x5e2)](),Z=wx[xi(0x9ce)](),a0={},a1=''[xi(0x5f8)](wx[xi(0x7bc)]['USER_DATA_PATH'],xi(0x445))[xi(0x5f8)](U,xi(0x744)),console['log'](xi(0x35b),a1),Z[xi(0x6a4)]({'filePath':a1,'entries':xi(0x227),'success':function(a4){var xj=xi,a5=a4['entries'];for(var a6 in a5)a0[a6]=new Uint8Array(a5[a6][xj(0x329)]);a2[xj(0x212)][xj(0x243)](Q,a0),delete a2[xj(0x8db)][Q],a2[xj(0x6ac)](a0)['then'](function(){var xk=xj;R||Z[xk(0x4eb)]({'filePath':''[xk(0x5f8)](wx['env']['USER_DATA_PATH'],xk(0x445))['concat'](U,'.bin'),'success':function(){},'fail':function(a7){var xl=xk;console['log'](xl(0x8fe),a7);}}),X();});},'fail':function(a4){var xm=xi;console[xm(0x45c)](a4['errMsg']);}}),[0x2];}});});})]);});});},P['prototype'][x9(0x923)]=function(Q,R){var xn=x9;if(R&&R['length']){var S=proxyServerManager['config'];S&&S[xn(0x292)]&&(R=proxyServerManager['getStaticPath'](R));}var T=this[xn(0x8d3)](Q,R);return{'zip':T['c'],'file':T['f']};},P[x9(0x6cb)][x9(0x676)]=function(Q){var xo=x9;return this[xo(0x212)]['get'](Q);},P['prototype'][x9(0x8d3)]=function(Q,R){var xp=x9,S,T,U,V,W=this[xp(0x212)],X=Q;if(R){var Y=W['get'](R);return Y&&(V=Y[X]),{'c':Y,'f':V};}var Z=W['keys'][xp(0x7b8)]();try{for(var a0=K(Z),a1=a0[xp(0x549)]();!a1[xp(0x2ed)];a1=a0[xp(0x549)]()){var a2=a1[xp(0x9e0)];if(V=(U=W[xp(0x298)](a2))[X])break;}}catch(a3){S={'error':a3};}finally{try{a1&&!a1[xp(0x2ed)]&&(T=a0[xp(0x512)])&&T['call'](a0);}finally{if(S)throw S[xp(0x6ec)];}}return{'c':U,'f':V};},P[x9(0x6cb)]['_setConfig']=function(Q){return I(this,void 0x0,Promise,function(){return J(this,function(R){return[0x2,new Promise(function(S){var xq=a0b;if(Q[xq(0x508)])S();else{var T=Q[xq(0x7f6)];if(T){var U=JSON[xq(0x87f)](w['T8'](T));Q[xq(0x508)]=U,S();}else S();}})];});});},P[x9(0x6cb)]['waitUntilPreload']=function(Q){var R=this;return new Promise(function(S,T){var U=setInterval(function(){var xr=a0b;R[xr(0x212)][xr(0x298)](Q)&&(clearInterval(U),S());},0x32);});},P[x9(0x6cb)][x9(0x7ee)]=function(Q){var xs=x9;for(var R=[],S=0x1;S<arguments[xs(0x61d)];S++)R[S-0x1]=arguments[S];return I(this,void 0x0,Promise,function(){var T=this;return J(this,function(U){return[0x2,new Promise(function(V,W){var xt=a0b,X=T[xt(0x212)][xt(0x365)],Y=Q[xt(0x1ee)]('/')[xt(0x984)]();X['forEach'](function(Z){var xu=xt,a0=T[xu(0x212)][xu(0x298)](Z),a1=a0[Y];if(a0[Y]){var a2=w['T8'](a1),a3=new Function(''+a2),a4=a3['call'][xu(0x1ea)](a3,M([null],L(R),!0x1));return V(a4);}});})];});});},P[x9(0x6cb)][x9(0x89d)]=function(Q,R,S){var xv=x9,T,U=this;return void 0x0===S&&(S=!0x1),R&&xv(0x4f5)==typeof R&&(T=R),new Promise(function(V){var xw=xv,W,X=U[xw(0x212)]['keys'];if(W=S?Q:Q[xw(0x1ee)]('/')[xw(0x984)](),T){var Y=U[xw(0x212)][xw(0x298)](T)[W];return Y?V(Y):V();}X['forEach'](function(Z){var xx=xw,a0=U[xx(0x212)][xx(0x298)](Z)[W];if(a0)return V(a0);});});},P[x9(0x6cb)][x9(0x935)]=function(Q){var xy=x9;console['log'](xy(0x935),Q),this[xy(0x212)]['delete'](Q);},P['prototype']['clearCache']=function(){var xz=x9;this[xz(0x212)][xz(0x263)](),this[xz(0x4ea)]&&(this['worker'][xz(0x3d7)](),this[xz(0x4ea)]=null);},P[x9(0x6cb)]['clearCacheTmp']=function(Q){var xA=x9,R,S;void 0x0===Q&&(Q=[]);try{for(var T=K(this['_cache']['keys']),U=T[xA(0x549)]();!U[xA(0x2ed)];U=T[xA(0x549)]()){var V=U[xA(0x9e0)];-0x1===Q[xA(0x50b)](V)&&this[xA(0x212)][xA(0x1d9)](V);}}catch(W){R={'error':W};}finally{try{U&&!U[xA(0x2ed)]&&(S=T[xA(0x512)])&&S[xA(0x6ca)](T);}finally{if(R)throw R[xA(0x6ec)];}}},P[x9(0x6cb)][x9(0x301)]=function(Q,R){return I(this,void 0x0,void 0x0,function(){var S,T,U,V,W,X;return J(this,function(Y){var xB=a0b;switch(Y['label']){case 0x0:if(!(R>0x1&&Blob[xB(0x6cb)][xB(0x6ce)]))return[0x3,0x3];for(T=0x100000,U=[],V=function(Z){var xC=xB,a0=Z*T,a1=a0+T-0x1,a2=xC(0x7d9)[xC(0x5f8)](a0,'-')['concat'](a1),a3=new Promise(function(a4,a5){var xD=xC;fetch(''[xD(0x5f8)](Q,xD(0x8f7))[xD(0x5f8)](Z),{'method':xD(0x2fa),'mode':xD(0x47d),'headers':{'range':a2}})[xD(0x1fe)](function(a6){var xE=xD;return a6[xE(0x6ce)]();})[xD(0x1fe)](function(a6){a4(a6);});});U[xC(0x315)](a3);},W=0x0;W<R;W++)V(W);return[0x4,Promise[xB(0x227)](U)];case 0x1:return X=Y[xB(0x5e2)](),[0x4,new Blob(X)['arrayBuffer']()];case 0x2:return S=Y[xB(0x5e2)](),[0x3,0x6];case 0x3:return[0x4,fetch(Q,{'method':xB(0x2fa),'mode':'cors'})[xB(0x2ec)](function(Z){var xF=xB;console[xF(0x45c)](xF(0x999),Z);})];case 0x4:return[0x4,Y[xB(0x5e2)]()[xB(0x6ce)]()[xB(0x2ec)](function(Z){var xG=xB;console[xG(0x45c)]('get\x20arraybuffer\x20error',Z);})];case 0x5:S=Y[xB(0x5e2)](),Y[xB(0x823)]=0x6;case 0x6:return[0x2,S];}});});},P[x9(0x6cb)]['checkFileCacheBlackList']=function(Q){return!!{'effect.bin':!0x0}[Q];},P[x9(0x6cb)][x9(0x67a)]=function(Q,R){var xH=x9,S=this;try{this[xH(0x568)][xH(0x2a6)]()&&this[xH(0x568)][xH(0x54c)]()[xH(0x1fe)](function(){var xI=xH,T=Q[xI(0x1ee)]('/')[xI(0x984)]();if(!S[xI(0x87e)](T)){var U=''[xI(0x5f8)](xI(0x55e),'/')[xI(0x5f8)](T);S[xI(0x568)][xI(0x44d)](U,R);}});}catch(T){}},P[x9(0x6cb)][x9(0x660)]=function(Q){var R=this;return new Promise(function(S,T){var xJ=a0b;R[xJ(0x568)][xJ(0x2a6)]()?R[xJ(0x568)][xJ(0x54c)]()[xJ(0x1fe)](function(){var xK=xJ,U=Q[xK(0x1ee)]('/')[xK(0x984)](),V=''[xK(0x5f8)](xK(0x55e),'/')['concat'](U);R[xK(0x87e)](U)?S(null):R[xK(0x568)]['getItem'](V)['then'](function(W){S(W||null);});})['catch'](function(){S(null);}):S(null);});},P[x9(0x6cb)]['checkAndClearOldFileCache']=function(){var xL=x9,Q=this;this[xL(0x568)][xL(0x2a6)]()&&this[xL(0x568)][xL(0x54c)]()['then'](function(){var xM=xL;Q[xM(0x568)][xM(0x365)]()[xM(0x1fe)](function(R){var xN=xM;if(R&&R[xN(0x61d)])for(var S=''[xN(0x5f8)]('1.0.23-9'),T=0x0;T<R['length'];T++){var U=R[T];U&&U[xN(0x50b)](S)<0x0&&Q[xN(0x568)][xN(0x228)](U);}});})[xL(0x2ec)](function(){});},P=G([z['e'],H('design:paramtypes',[Object])],P);}());},0x1f15:(b,d,f)=>{f['d'](d,{'Z':()=>j});var g=f(0x1d36),h=f(0x1933);const j=new(function(){var xP=a0b;function k(m){var xO=a0b;void 0x0===m&&(m='zh'),this[xO(0x653)]=m;}return Object[xP(0x182)](k[xP(0x6cb)],xP(0x1c5),{'get':function(){var xQ=xP;return this[xQ(0x653)];},'set':function(m){var xR=xP;this[xR(0x653)]=m;},'enumerable':!0x1,'configurable':!0x0}),k[xP(0x6cb)]['t']=function(m){return'zh'===this['_lang']?g['Z'][m]:h['Z'][m];},k;}())();},0x43c:(b,d,f)=>{f['d'](d,{'M':()=>j,'o':()=>k});var g=function(m,p,q,v){return new(q||(q=Promise))(function(w,x){var xU=a0b;function y(B){var xS=a0b;try{A(v[xS(0x549)](B));}catch(C){x(C);}}function z(B){try{A(v['throw'](B));}catch(C){x(C);}}function A(B){var xT=a0b,C;B[xT(0x2ed)]?w(B[xT(0x9e0)]):(C=B['value'],C instanceof q?C:new q(function(D){D(C);}))[xT(0x1fe)](y,z);}A((v=v[xU(0x1ea)](m,p||[]))[xU(0x549)]());});},h=function(m,p){var xV=a0b,q,v,w,x,y={'label':0x0,'sent':function(){if(0x1&w[0x0])throw w[0x1];return w[0x1];},'trys':[],'ops':[]};return x={'next':z(0x0),'throw':z(0x1),'return':z(0x2)},xV(0x4df)==typeof Symbol&&(x[Symbol['iterator']]=function(){return this;}),x;function z(A){return function(B){return function(C){var xW=a0b;if(q)throw new TypeError(xW(0x976));for(;y;)try{if(q=0x1,v&&(w=0x2&C[0x0]?v['return']:C[0x0]?v[xW(0x30d)]||((w=v[xW(0x512)])&&w[xW(0x6ca)](v),0x0):v[xW(0x549)])&&!(w=w[xW(0x6ca)](v,C[0x1]))[xW(0x2ed)])return w;switch(v=0x0,w&&(C=[0x2&C[0x0],w[xW(0x9e0)]]),C[0x0]){case 0x0:case 0x1:w=C;break;case 0x4:return y[xW(0x823)]++,{'value':C[0x1],'done':!0x1};case 0x5:y[xW(0x823)]++,v=C[0x1],C=[0x0];continue;case 0x7:C=y['ops'][xW(0x984)](),y[xW(0x9c4)]['pop']();continue;default:if(!(w=y[xW(0x9c4)],(w=w[xW(0x61d)]>0x0&&w[w[xW(0x61d)]-0x1])||0x6!==C[0x0]&&0x2!==C[0x0])){y=0x0;continue;}if(0x3===C[0x0]&&(!w||C[0x1]>w[0x0]&&C[0x1]<w[0x3])){y[xW(0x823)]=C[0x1];break;}if(0x6===C[0x0]&&y[xW(0x823)]<w[0x1]){y[xW(0x823)]=w[0x1],w=C;break;}if(w&&y['label']<w[0x2]){y[xW(0x823)]=w[0x2],y['ops'][xW(0x315)](C);break;}w[0x2]&&y['ops']['pop'](),y['trys'][xW(0x984)]();continue;}C=p['call'](m,y);}catch(D){C=[0x6,D],v=0x0;}finally{q=w=0x0;}if(0x5&C[0x0])throw C[0x1];return{'value':C[0x0]?C[0x1]:void 0x0,'done':!0x0};}([A,B]);};}};function j(m){return function(p,q,v){var xX=a0b,w=v['value'];return'AsyncFunction'===w['constructor'][xX(0x95c)]?v[xX(0x9e0)]=function(){for(var x=[],y=0x0;y<arguments['length'];y++)x[y]=arguments[y];return g(this,void 0x0,void 0x0,function(){return h(this,function(z){var xY=a0b;switch(z[xY(0x823)]){case 0x0:return[0x4,w[xY(0x1ea)](this,x)[xY(0x2ec)](function(A){var xZ=xY;console['log'](''[xZ(0x5f8)](m,'.')[xZ(0x5f8)](q,xZ(0x7fa)),A);})];case 0x1:return[0x2,z[xY(0x5e2)]()];}});});}:v[xX(0x9e0)]=function(){var y0=xX;for(var x=[],y=0x0;y<arguments[y0(0x61d)];y++)x[y]=arguments[y];try{var z=w[y0(0x1ea)](this,x);return z;}catch(A){console[y0(0x45c)](''[y0(0x5f8)](m,'.')[y0(0x5f8)](q,y0(0x7fa)),A);}},v;};}function k(m){return function(p,q,v){var y1=a0b,w=v[y1(0x9e0)];return v[y1(0x9e0)]=function(){var y2=y1;for(var x=[],y=0x0;y<arguments[y2(0x61d)];y++)x[y]=arguments[y];return g(this,void 0x0,void 0x0,function(){return h(this,function(z){var y3=a0b;switch(z[y3(0x823)]){case 0x0:return[0x4,w[y3(0x1ea)](this,x)[y3(0x2ec)](function(A){var y4=y3;console['log'](''[y4(0x5f8)](m,'.')[y4(0x5f8)](q,y4(0x7fa)),A);})];case 0x1:return[0x2,z[y3(0x5e2)]()];}});});},v;};}},0x1407:(b,g,j)=>{var yc=a0b;j['d'](g,{'Y':()=>D});var k=j(0x1f15),m=j(0x1ade),q=j(0x218a),v=j(0x191),w=j(0x12c9),x=j(0x1adf),y=function(E,F,G,H){var y5=a0b,I,J=arguments[y5(0x61d)],K=J<0x3?F:null===H?H=Object['getOwnPropertyDescriptor'](F,G):H;if(y5(0x97f)==typeof Reflect&&y5(0x4df)==typeof Reflect[y5(0x3fc)])K=Reflect['decorate'](E,F,G,H);else{for(var L=E[y5(0x61d)]-0x1;L>=0x0;L--)(I=E[L])&&(K=(J<0x3?I(K):J>0x3?I(F,G,K):I(F,G))||K);}return J>0x3&&K&&Object['defineProperty'](F,G,K),K;},z=function(E,F){var y6=a0b;if('object'==typeof Reflect&&y6(0x4df)==typeof Reflect[y6(0x667)])return Reflect['metadata'](E,F);},A=function(E,F,G,H){return new(G||(G=Promise))(function(I,J){var y9=a0b;function K(N){var y7=a0b;try{M(H[y7(0x549)](N));}catch(O){J(O);}}function L(N){try{M(H['throw'](N));}catch(O){J(O);}}function M(N){var y8=a0b,O;N[y8(0x2ed)]?I(N[y8(0x9e0)]):(O=N[y8(0x9e0)],O instanceof G?O:new G(function(P){P(O);}))[y8(0x1fe)](K,L);}M((H=H[y9(0x1ea)](E,F||[]))[y9(0x549)]());});},B=function(E,F){var ya=a0b,G,H,I,J,K={'label':0x0,'sent':function(){if(0x1&I[0x0])throw I[0x1];return I[0x1];},'trys':[],'ops':[]};return J={'next':L(0x0),'throw':L(0x1),'return':L(0x2)},ya(0x4df)==typeof Symbol&&(J[Symbol[ya(0x3c2)]]=function(){return this;}),J;function L(M){return function(N){return function(O){var yb=a0b;if(G)throw new TypeError('Generator\x20is\x20already\x20executing.');for(;K;)try{if(G=0x1,H&&(I=0x2&O[0x0]?H['return']:O[0x0]?H[yb(0x30d)]||((I=H['return'])&&I[yb(0x6ca)](H),0x0):H[yb(0x549)])&&!(I=I[yb(0x6ca)](H,O[0x1]))[yb(0x2ed)])return I;switch(H=0x0,I&&(O=[0x2&O[0x0],I[yb(0x9e0)]]),O[0x0]){case 0x0:case 0x1:I=O;break;case 0x4:return K['label']++,{'value':O[0x1],'done':!0x1};case 0x5:K[yb(0x823)]++,H=O[0x1],O=[0x0];continue;case 0x7:O=K['ops'][yb(0x984)](),K[yb(0x9c4)][yb(0x984)]();continue;default:if(!(I=K[yb(0x9c4)],(I=I[yb(0x61d)]>0x0&&I[I['length']-0x1])||0x6!==O[0x0]&&0x2!==O[0x0])){K=0x0;continue;}if(0x3===O[0x0]&&(!I||O[0x1]>I[0x0]&&O[0x1]<I[0x3])){K[yb(0x823)]=O[0x1];break;}if(0x6===O[0x0]&&K[yb(0x823)]<I[0x1]){K['label']=I[0x1],I=O;break;}if(I&&K[yb(0x823)]<I[0x2]){K[yb(0x823)]=I[0x2],K[yb(0xa27)]['push'](O);break;}I[0x2]&&K['ops'][yb(0x984)](),K['trys']['pop']();continue;}O=F[yb(0x6ca)](E,K);}catch(P){O=[0x6,P],H=0x0;}finally{G=I=0x0;}if(0x5&O[0x0])throw O[0x1];return{'value':O[0x0]?O[0x1]:void 0x0,'done':!0x0};}([M,N]);};}};yc(0x5f4)==typeof WXWebAssembly&&m['N']['trigger']('error',{'code':x['U'][yc(0x2c3)],'message':k['Z']['t'](yc(0x830))});var C=WXWebAssembly,D=(function(){var ye=yc;function E(){var yd=a0b;this[yd(0x6b6)]=!0x1,this[yd(0x715)]=!0x1;}return E[ye(0x6cb)][ye(0x54c)]=function(){return A(this,void 0x0,Promise,function(){var F=this;return B(this,function(G){var yf=a0b;return this[yf(0x6b6)]?[0x2,Promise[yf(0x42d)]()]:this[yf(0x715)]?[0x2,new Promise(function(H,I){var J,K=function(){var yg=a0b;F[yg(0x6b6)]?(H(),clearTimeout(J)):J=setTimeout(K,0x64);};J=setTimeout(K,0x64);})]:(this[yf(0x715)]=!0x0,[0x2,new Promise(function(H,I){var yh=yf;C['instantiate']('/'[yh(0x5f8)](v['d9'],yh(0x779)),{})['then'](function(J){var yi=yh;F[yi(0x9e8)]=J[yi(0x369)][yi(0x3c7)],F[yi(0x4ff)](),F[yi(0x6b6)]=!0x0,F[yi(0x715)]=!0x1,H();})[yh(0x2ec)](function(J){console['log']('wasm\x20instantiate\x20error',J);});})]);});});},E[ye(0x6cb)][ye(0x4ff)]=function(){var yj=ye,F,G=this[yj(0x9e8)],H=G['memory'],I=G['__wbindgen_malloc'],J=G[yj(0x4c5)];function K(){var yk=yj;return null!=F&&F[yk(0x624)]===H[yk(0x624)]||(F=new Uint8Array(H['buffer'])),F;}var L,M,N=0x0;function O(R){var yl=yj;for(var S=R[yl(0x61d)],T=I(S),U=K(),V=0x0;V<S;V++){var W=R[yl(0x388)](V);if(W>0x7f)break;U[T+V]=W;}if(V!==S){0x0!==V&&(R=R[yl(0x859)](V)),T=J(T,S,S=V+0x3*R['length']);var X=K()[yl(0x4da)](T+V,T+S);V+=L(R,X)['written'];}return N=V,T;}function P(){var ym=yj;return null!=M&&M['buffer']===H[ym(0x624)]||(M=new Int32Array(H[ym(0x624)])),M;}function Q(R,S){return w['T8'](K()['subarray'](R,R+S));}L=function(R,S){var yn=yj,T,U,V=new Array();T=R[yn(0x61d)];for(var W=0x0;W<T;W++)(U=R[yn(0x388)](W))>=0x10000&&U<=0x10ffff?(V[yn(0x315)](U>>0x12&0x7|0xf0),V[yn(0x315)](U>>0xc&0x3f|0x80),V[yn(0x315)](U>>0x6&0x3f|0x80),V['push'](0x3f&U|0x80)):U>=0x800&&U<=0xffff?(V[yn(0x315)](U>>0xc&0xf|0xe0),V[yn(0x315)](U>>0x6&0x3f|0x80),V[yn(0x315)](0x3f&U|0x80)):U>=0x80&&U<=0x7ff?(V['push'](U>>0x6&0x1f|0xc0),V['push'](0x3f&U|0x80)):V[yn(0x315)](0xff&U);var X=new Int8Array(V[yn(0x61d)]);for(var W in V)X[W]=V[W];return S['set'](X),{'read':R[yn(0x61d)],'written':X[yn(0x61d)]};},this[yj(0x3e2)]=function(R,S){var yo=yj,T,U,V=G[(0x0,v['rR'])(v['Cb'])],W=G['__wbindgen_free'],X=(U=I(0x1*(T=R)[yo(0x61d)]),K()[yo(0x1e6)](T,U/0x1),N=T['length'],U),Y=N;try{V(0x8,X,Y,O(S),N);var Z=P(),a0=function(a1,a2){var yp=yo;return K()[yp(0x4da)](a1/0x1,a1/0x1+a2);}(Z[0x2],Z[0x3])[yo(0x859)]();return W(Z[0x2],0x1*Z[0x3]),a0;}finally{R[yo(0x1e6)](K()[yo(0x4da)](X/0x1,X/0x1+Y)),W(X,0x1*Y);}},this[yj(0x4e6)]=function(R){var yq=yj;(0x0,G[yq(0x4e6)])(O(R),N);},this[yj(0x551)]=function(R,S,T){var yr=yj,U=G[yr(0x598)],V=(G[(0x0,v['rR'])(v['Gb'])](0x8,O(R),N,O(S),N,O(T),N),P()),W=Q(V[0x2],V[0x3])['slice']();return U(V[0x2],0x1*V[0x3]),W;},this[yj(0x1c7)]=function(R){var ys=yj,S=G[ys(0x598)],T=(G[ys(0x1c7)](0x8,O(R),N),P()),U=Q(T[0x2],T[0x3])[ys(0x859)]();return S(T[0x2],0x1*T[0x3]),U;},this['a_en']=function(R){var yt=yj,S=G['__wbindgen_free'],T=(G['a_en'](0x8,O(R),N),P()),U=Q(T[0x2],T[0x3])[yt(0x859)]();return S(T[0x2],0x1*T[0x3]),U;};},E=y([q['e'],z(ye(0x4a4),[])],E);}());},0x1adf:(b,d,f)=>{f['d'](d,{'U':()=>g});var g={'ENVIRAONMENT_NOT_COMPATIBLE':0x989681,'ENVIRAONMENT_NOT_FAST':0x989686,'WEBGL_CONTEXT_LOST':0x989682,'RENDER_SLOW':0x989683,'INPUT_ERROR':0x989685,'PRELOAD_EFFECT_ERROR':0x9896e5,'SET_EFFECT_ERROR':0x989acd,'SET_FILTER_ERROR':0x989ace,'SET_INTENSITY_ERROR':0x989acf,'SDK_DISABLED':0x989ad0,'INVALID_EFFECT':0x989ad1,'GET_CAMERA_ERROR':0x989b31,'MEDIA_INTERRUPT_ERROR':0x989b32,'GET_CAMERA_NOT_ALLOWED':0x989b33,'GET_MEDIA_NOT_FOUND':0x989b34,'GET_MICROPHONE_NOT_ALLOWED':0x989b35,'MEDIA_SIZE_ERROR':0x989b36,'EFFECT_LOAD_ERROR':0x98a239,'CORE_LOAD_ERROR':0x98a23a,'AUTH_NEED_RELOAD_PAGE':0x98a621,'AUTH_LICENSEKEY_MISS':0x13134d1,'AUTH_APPID_MISS':0x13134d1,'AUTH_FAIL':0x13130e9,'REQUEST_FAIL':0x13130ea,'AUTH_API_FAIL':0x13130eb,'SIGNATURE_TIMEOUT':0x13130ec,'AUTHORIZE_TIMEOUT':0x13130ed,'START_REACORD_FAIL':0x1c9c381,'STOP_REACORD_FAIL':0x1c9c382,'READ_FILE_CACHE_FAIL':0x1c9c383,'REQUEST_FILE_FAIL':0x1c9c384,'UNCAUGHT_ERROR':0x2625a00,'SDK_VERSION_LOW_ERROR':0x2625a01,'INPUT_NODE_RESIZE':0x2faf081,'RESIZE_EFFECT_LOST':0x2faf082};},0x1ade:(b,d,f)=>{f['d'](d,{'N':()=>h,'Q':()=>g});var g=(function(){var yv=a0b;function j(){var yu=a0b;this[yu(0x514)]={};}return j[yv(0x6cb)][yv(0x263)]=function(){this['_events']={};},j[yv(0x6cb)]['on']=function(k,m){var yw=yv;return this[yw(0x514)][k]||(this[yw(0x514)][k]=[]),this[yw(0x514)][k][yw(0x315)](m)-0x1;},j['prototype']['trigger']=function(k,m){var yx=yv,p=this;if('error'!==k){var q=this[yx(0x514)][k];q&&q[yx(0x61d)]&&q[yx(0x560)](function(v){v(m);});}else setTimeout(function(v){var yy=yx,w=p['_events'][k];w&&w[yy(0x61d)]&&w[yy(0x560)](function(x){x(m);});},0x64);},j[yv(0x6cb)][yv(0x487)]=function(k,m,p){var yz=yv,q=this[yz(0x514)][k];if(q&&q['length']){if(void 0x0!==p)q[yz(0x58f)](p,0x1);else{var v=q[yz(0x713)](function(w){return w===m;});v>-0x1&&q[yz(0x58f)](v,0x1);}}},j[yv(0x6cb)][yv(0x69b)]=function(k,m){var yA=yv,p,q=this;this[yA(0x514)][k]||(this[yA(0x514)][k]=[]);var v=function(w){var yB=yA;m(w),q[yB(0x487)](k,v,p);};p=this['on'](k,v);},j;}()),h=new g();},0x17dd:(b,d,f)=>{var yC=a0b;f['d'](d,{'D4':()=>m,'bH':()=>p,'b_':()=>k,'jl':()=>j});var g=f(0x170d),h=f['n'](g);h()[yC(0x839)]();function j(q){var yD=yC;return h()[yD(0x298)](q);}var k=j(yC(0x34e)),m=j(yC(0x685)),p=j(yC(0x78f));},0x543:(b,d,f)=>{function g(j,k){var yE=a0b;j['z']=j['z']||0x0,k['z']=k['z']||0x0;var m=Math[yE(0x593)](j['x']-k['x'],0x2)+Math['pow'](j['y']-k['y'],0x2)+Math[yE(0x593)](j['z']-k['z'],0x2);return Math[yE(0x593)](m,0.5);}function h(j,k){return j['z']=j['z']||0x0,k['z']=k['z']||0x0,{'x':(j['x']+k['x'])/0x2,'y':(j['y']+k['y'])/0x2,'z':(j['z']+k['z'])/0x2};}f['d'](d,{'Sp':()=>g,'qg':()=>h});},0x218a:(b,d,f)=>{f['d'](d,{'e':()=>h});var g=Symbol(),h=function(j){return new Proxy(j,{'construct':function(k,m,p){var yF=a0b;return k[yF(0x6cb)]!==p[yF(0x6cb)]?Reflect['construct'](k,m,p):(k[g]||(k[g]=Reflect[yF(0x7c6)](k,m,p)),k[g]);}});};},0x24f3:(b,d,f)=>{f['d'](d,{'M':()=>v});var g=f(0xb0e),h=f(0x191),j=f(0x218a),k=function(w,x,y,z){var yG=a0b,A,B=arguments['length'],C=B<0x3?x:null===z?z=Object[yG(0x255)](x,y):z;if(yG(0x97f)==typeof Reflect&&'function'==typeof Reflect['decorate'])C=Reflect[yG(0x3fc)](w,x,y,z);else{for(var D=w[yG(0x61d)]-0x1;D>=0x0;D--)(A=w[D])&&(C=(B<0x3?A(C):B>0x3?A(x,y,C):A(x,y))||C);}return B>0x3&&C&&Object['defineProperty'](x,y,C),C;},m=function(w,x,y,z){return new(y||(y=Promise))(function(A,B){var yJ=a0b;function C(F){var yH=a0b;try{E(z[yH(0x549)](F));}catch(G){B(G);}}function D(F){try{E(z['throw'](F));}catch(G){B(G);}}function E(F){var yI=a0b,G;F[yI(0x2ed)]?A(F[yI(0x9e0)]):(G=F[yI(0x9e0)],G instanceof y?G:new y(function(H){H(G);}))['then'](C,D);}E((z=z[yJ(0x1ea)](w,x||[]))['next']());});},p=function(w,x){var y,z,A,B,C={'label':0x0,'sent':function(){if(0x1&A[0x0])throw A[0x1];return A[0x1];},'trys':[],'ops':[]};return B={'next':D(0x0),'throw':D(0x1),'return':D(0x2)},'function'==typeof Symbol&&(B[Symbol['iterator']]=function(){return this;}),B;function D(E){return function(F){return function(G){var yK=a0b;if(y)throw new TypeError(yK(0x976));for(;C;)try{if(y=0x1,z&&(A=0x2&G[0x0]?z['return']:G[0x0]?z['throw']||((A=z[yK(0x512)])&&A[yK(0x6ca)](z),0x0):z[yK(0x549)])&&!(A=A['call'](z,G[0x1]))[yK(0x2ed)])return A;switch(z=0x0,A&&(G=[0x2&G[0x0],A[yK(0x9e0)]]),G[0x0]){case 0x0:case 0x1:A=G;break;case 0x4:return C[yK(0x823)]++,{'value':G[0x1],'done':!0x1};case 0x5:C['label']++,z=G[0x1],G=[0x0];continue;case 0x7:G=C[yK(0xa27)][yK(0x984)](),C['trys']['pop']();continue;default:if(!(A=C[yK(0x9c4)],(A=A[yK(0x61d)]>0x0&&A[A['length']-0x1])||0x6!==G[0x0]&&0x2!==G[0x0])){C=0x0;continue;}if(0x3===G[0x0]&&(!A||G[0x1]>A[0x0]&&G[0x1]<A[0x3])){C[yK(0x823)]=G[0x1];break;}if(0x6===G[0x0]&&C['label']<A[0x1]){C['label']=A[0x1],A=G;break;}if(A&&C[yK(0x823)]<A[0x2]){C[yK(0x823)]=A[0x2],C[yK(0xa27)]['push'](G);break;}A[0x2]&&C[yK(0xa27)][yK(0x984)](),C[yK(0x9c4)][yK(0x984)]();continue;}G=x[yK(0x6ca)](w,C);}catch(H){G=[0x6,H],z=0x0;}finally{y=A=0x0;}if(0x5&G[0x0])throw G[0x1];return{'value':G[0x0]?G[0x1]:void 0x0,'done':!0x0};}([E,F]);};}},q=function(w){var yL=a0b,x=yL(0x4df)==typeof Symbol&&Symbol['iterator'],y=x&&w[x],z=0x0;if(y)return y[yL(0x6ca)](w);if(w&&yL(0x78e)==typeof w[yL(0x61d)])return{'next':function(){var yM=yL;return w&&z>=w[yM(0x61d)]&&(w=void 0x0),{'value':w&&w[z++],'done':!w};}};throw new TypeError(x?'Object\x20is\x20not\x20iterable.':yL(0x534));},v=(function(){var yN=a0b;function w(){}return w['prototype'][yN(0x901)]=function(){return m(this,void 0x0,void 0x0,function(){return p(this,function(x){var yO=a0b;return[0x2,Promise[yO(0x42d)]()];});});},w[yN(0x6cb)][yN(0x8f5)]=function(x){return function(y){var yP=a0b;switch(y){case 0x0:return g['sP'];case 0x1:return g['dO'];case 0x2:return g['CV'];case 0x3:return g['rp'];case 0x4:return g['FC'];case 0x5:return g['dE'];case 0x6:return g['he'];case 0x7:return g['Bb'];case 0x8:return g['Nj'];case 0x9:return g[yP(0x3d9)];case 0xa:return g[yP(0x27f)];case 0xb:return g['Ed'];case 0xc:return g[yP(0x77a)];case 0xd:return g[yP(0x9f2)];case 0xe:return g['X2'];case 0xf:return g['bb'];case 0x10:return g['aj'];case 0x11:return g['G4'];case 0x12:return g['m1'];case 0x13:return g['MX'];case 0x14:return g['oC'];case 0x15:return g['Ej'];case 0x16:return g['HN'];case 0x17:return g['Cg'];case 0x18:return g['AE'];case 0x19:return g['Fx'];case 0x1a:return g['aV'];case 0x1b:return g['Op'];case 0x1c:return g['zk'];case 0x1d:return g['aW'];case 0x1e:return g['mw'];default:return'';}}(x);},w['prototype'][yN(0x200)]=function(x){var yQ=yN,y,z,A={};try{for(var B=q(x),C=B['next']();!C['done'];C=B[yQ(0x549)]()){var D=C[yQ(0x9e0)],E=h['c4'][D];A[D]=this[yQ(0x8f5)](E);}}catch(F){y={'error':F};}finally{try{C&&!C[yQ(0x2ed)]&&(z=B[yQ(0x512)])&&z[yQ(0x6ca)](B);}finally{if(y)throw y[yQ(0x6ec)];}}return A;},w=k([j['e']],w);}());},0x12c9:(a0,a1,a2)=>{var yU=a0b,a3=a2(0x1ec0),a4=Uint8Array,a5=Uint16Array,a6=Uint32Array,a7=new a4([0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1,0x1,0x1,0x1,0x2,0x2,0x2,0x2,0x3,0x3,0x3,0x3,0x4,0x4,0x4,0x4,0x5,0x5,0x5,0x5,0x0,0x0,0x0,0x0]),a8=new a4([0x0,0x0,0x0,0x0,0x1,0x1,0x2,0x2,0x3,0x3,0x4,0x4,0x5,0x5,0x6,0x6,0x7,0x7,0x8,0x8,0x9,0x9,0xa,0xa,0xb,0xb,0xc,0xc,0xd,0xd,0x0,0x0]),a9=new a4([0x10,0x11,0x12,0x0,0x8,0x7,0x9,0x6,0xa,0x5,0xb,0x4,0xc,0x3,0xd,0x2,0xe,0x1,0xf]),aa=function(c0,c1){for(var c2=new a5(0x1f),c3=0x0;c3<0x1f;++c3)c2[c3]=c1+=0x1<<c0[c3-0x1];var c4=new a6(c2[0x1e]);for(c3=0x1;c3<0x1e;++c3)for(var c5=c2[c3];c5<c2[c3+0x1];++c5)c4[c5]=c5-c2[c3]<<0x5|c3;return[c2,c4];},ab=aa(a7,0x2),ac=ab[0x0],ad=ab[0x1];ac[0x1c]=0x102,ad[0x102]=0x1c;for(var af=aa(a8,0x0),ag=af[0x0],ah=af[0x1],ai=new a5(0x8000),aj=0x0;aj<0x8000;++aj){var ak=(0xaaaa&aj)>>>0x1|(0x5555&aj)<<0x1;ak=(0xf0f0&(ak=(0xcccc&ak)>>>0x2|(0x3333&ak)<<0x2))>>>0x4|(0xf0f&ak)<<0x4,ai[aj]=((0xff00&ak)>>>0x8|(0xff&ak)<<0x8)>>>0x1;}var al=function(c0,c1,c2){var yR=a0b;for(var c3=c0[yR(0x61d)],c4=0x0,c5=new a5(c1);c4<c3;++c4)++c5[c0[c4]-0x1];var c6,c7=new a5(c1);for(c4=0x0;c4<c1;++c4)c7[c4]=c7[c4-0x1]+c5[c4-0x1]<<0x1;if(c2){c6=new a5(0x1<<c1);var c8=0xf-c1;for(c4=0x0;c4<c3;++c4)if(c0[c4]){for(var c9=c4<<0x4|c0[c4],ca=c1-c0[c4],cb=c7[c0[c4]-0x1]++<<ca,cc=cb|(0x1<<ca)-0x1;cb<=cc;++cb)c6[ai[cb]>>>c8]=c9;}}else{for(c6=new a5(c3),c4=0x0;c4<c3;++c4)c0[c4]&&(c6[c4]=ai[c7[c0[c4]-0x1]++]>>>0xf-c0[c4]);}return c6;},am=new a4(0x120);for(aj=0x0;aj<0x90;++aj)am[aj]=0x8;for(aj=0x90;aj<0x100;++aj)am[aj]=0x9;for(aj=0x100;aj<0x118;++aj)am[aj]=0x7;for(aj=0x118;aj<0x120;++aj)am[aj]=0x8;var an=new a4(0x20);for(aj=0x0;aj<0x20;++aj)an[aj]=0x5;var ao=al(am,0x9,0x0),ap=al(am,0x9,0x1),aq=al(an,0x5,0x0),ar=al(an,0x5,0x1),as=function(c0){var yS=a0b;for(var c1=c0[0x0],c2=0x1;c2<c0[yS(0x61d)];++c2)c0[c2]>c1&&(c1=c0[c2]);return c1;},au=function(c0,c1,c2){var c3=c1/0x8|0x0;return(c0[c3]|c0[c3+0x1]<<0x8)>>(0x7&c1)&c2;},av=function(c0,c1){var c2=c1/0x8|0x0;return(c0[c2]|c0[c2+0x1]<<0x8|c0[c2+0x2]<<0x10)>>(0x7&c1);},aw=function(c0){return(c0+0x7)/0x8|0x0;},ax=function(c0,c1,c2){var yT=a0b;(null==c1||c1<0x0)&&(c1=0x0),(null==c2||c2>c0[yT(0x61d)])&&(c2=c0['length']);var c3=new(c0 instanceof a5?a5:c0 instanceof a6?a6:a4)(c2-c1);return c3['set'](c0[yT(0x4da)](c1,c2)),c3;},ay=[yU(0x589),yU(0x4d3),yU(0x9b3),'invalid\x20distance',yU(0x97c),yU(0x586),,yU(0x84c),yU(0x386),yU(0x629),yU(0x9b4),yU(0x877),yU(0x9f0),yU(0x9f7)],az=function(c0,c1,c2){var yV=yU,c3=new Error(c1||ay[c0]);if(c3[yV(0x318)]=c0,Error[yV(0x37c)]&&Error['captureStackTrace'](c3,az),!c2)throw c3;return c3;},aA=function(c0,c1,c2){var yW=yU,c3=c0[yW(0x61d)];if(!c3||c2&&c2['f']&&!c2['l'])return c1||new a4(0x0);var c4=!c1||c2,c5=!c2||c2['i'];c2||(c2={}),c1||(c1=new a4(0x3*c3));var c6=function(cI){var yX=yW,cJ=c1[yX(0x61d)];if(cI>cJ){var cK=new a4(Math[yX(0x94f)](0x2*cJ,cI));cK['set'](c1),c1=cK;}},c7=c2['f']||0x0,c8=c2['p']||0x0,c9=c2['b']||0x0,ca=c2['l'],cb=c2['d'],cc=c2['m'],cd=c2['n'],cf=0x8*c3;do{if(!ca){c7=au(c0,c8,0x1);var cg=au(c0,c8+0x1,0x3);if(c8+=0x3,!cg){var ch=c0[(cs=aw(c8)+0x4)-0x4]|c0[cs-0x3]<<0x8,ci=cs+ch;if(ci>c3){c5&&az(0x0);break;}c4&&c6(c9+ch),c1['set'](c0[yW(0x4da)](cs,ci),c9),c2['b']=c9+=ch,c2['p']=c8=0x8*ci,c2['f']=c7;continue;}if(0x1==cg)ca=ap,cb=ar,cc=0x9,cd=0x5;else{if(0x2==cg){var cj=au(c0,c8,0x1f)+0x101,ck=au(c0,c8+0xa,0xf)+0x4,cl=cj+au(c0,c8+0x5,0x1f)+0x1;c8+=0xe;for(var cm=new a4(cl),cn=new a4(0x13),co=0x0;co<ck;++co)cn[a9[co]]=au(c0,c8+0x3*co,0x7);c8+=0x3*ck;var cp=as(cn),cq=(0x1<<cp)-0x1,cr=al(cn,cp,0x1);for(co=0x0;co<cl;){var cs,cu=cr[au(c0,c8,cq)];if(c8+=0xf&cu,(cs=cu>>>0x4)<0x10)cm[co++]=cs;else{var cv=0x0,cw=0x0;for(0x10==cs?(cw=0x3+au(c0,c8,0x3),c8+=0x2,cv=cm[co-0x1]):0x11==cs?(cw=0x3+au(c0,c8,0x7),c8+=0x3):0x12==cs&&(cw=0xb+au(c0,c8,0x7f),c8+=0x7);cw--;)cm[co++]=cv;}}var cx=cm[yW(0x4da)](0x0,cj),cy=cm['subarray'](cj);cc=as(cx),cd=as(cy),ca=al(cx,cc,0x1),cb=al(cy,cd,0x1);}else az(0x1);}if(c8>cf){c5&&az(0x0);break;}}c4&&c6(c9+0x20000);for(var cz=(0x1<<cc)-0x1,cA=(0x1<<cd)-0x1,cB=c8;;cB=c8){var cC=(cv=ca[av(c0,c8)&cz])>>>0x4;if((c8+=0xf&cv)>cf){c5&&az(0x0);break;}if(cv||az(0x2),cC<0x100)c1[c9++]=cC;else{if(0x100==cC){cB=c8,ca=null;break;}var cD=cC-0xfe;if(cC>0x108){var cE=a7[co=cC-0x101];cD=au(c0,c8,(0x1<<cE)-0x1)+ac[co],c8+=cE;}var cF=cb[av(c0,c8)&cA],cG=cF>>>0x4;cF||az(0x3),c8+=0xf&cF,cy=ag[cG];cG>0x3&&(cE=a8[cG],(cy+=av(c0,c8)&(0x1<<cE)-0x1,c8+=cE));if(c8>cf){c5&&az(0x0);break;}c4&&c6(c9+0x20000);for(var cH=c9+cD;c9<cH;c9+=0x4)c1[c9]=c1[c9-cy],c1[c9+0x1]=c1[c9+0x1-cy],c1[c9+0x2]=c1[c9+0x2-cy],c1[c9+0x3]=c1[c9+0x3-cy];c9=cH;}}c2['l']=ca,c2['p']=cB,c2['b']=c9,c2['f']=c7,ca&&(c7=0x1,c2['m']=cc,c2['d']=cb,c2['n']=cd);}while(!c7);return c9==c1[yW(0x61d)]?c1:ax(c1,0x0,c9);},aB=function(c0,c1,c2){c2<<=0x7&c1;var c3=c1/0x8|0x0;c0[c3]|=c2,c0[c3+0x1]|=c2>>>0x8;},aC=function(c0,c1,c2){c2<<=0x7&c1;var c3=c1/0x8|0x0;c0[c3]|=c2,c0[c3+0x1]|=c2>>>0x8,c0[c3+0x2]|=c2>>>0x10;},aD=function(c0,c1){var yY=yU;for(var c2=[],c3=0x0;c3<c0[yY(0x61d)];++c3)c0[c3]&&c2[yY(0x315)]({'s':c3,'f':c0[c3]});var c4=c2[yY(0x61d)],c5=c2['slice']();if(!c4)return[aK,0x0];if(0x1==c4){var c6=new a4(c2[0x0]['s']+0x1);return c6[c2[0x0]['s']]=0x1,[c6,0x1];}c2[yY(0x677)](function(cm,cn){return cm['f']-cn['f'];}),c2[yY(0x315)]({'s':-0x1,'f':0x61a9});var c7=c2[0x0],c8=c2[0x1],c9=0x0,ca=0x1,cb=0x2;for(c2[0x0]={'s':-0x1,'f':c7['f']+c8['f'],'l':c7,'r':c8};ca!=c4-0x1;)c7=c2[c2[c9]['f']<c2[cb]['f']?c9++:cb++],c8=c2[c9!=ca&&c2[c9]['f']<c2[cb]['f']?c9++:cb++],c2[ca++]={'s':-0x1,'f':c7['f']+c8['f'],'l':c7,'r':c8};var cc=c5[0x0]['s'];for(c3=0x1;c3<c4;++c3)c5[c3]['s']>cc&&(cc=c5[c3]['s']);var cd=new a5(cc+0x1),cf=aE(c2[ca-0x1],cd,0x0);if(cf>c1){c3=0x0;var cg=0x0,ch=cf-c1,ci=0x1<<ch;for(c5[yY(0x677)](function(cm,cn){return cd[cn['s']]-cd[cm['s']]||cm['f']-cn['f'];});c3<c4;++c3){var cj=c5[c3]['s'];if(!(cd[cj]>c1))break;cg+=ci-(0x1<<cf-cd[cj]),cd[cj]=c1;}for(cg>>>=ch;cg>0x0;){var ck=c5[c3]['s'];cd[ck]<c1?cg-=0x1<<c1-cd[ck]++-0x1:++c3;}for(;c3>=0x0&&cg;--c3){var cl=c5[c3]['s'];cd[cl]==c1&&(--cd[cl],++cg);}cf=c1;}return[new a4(cd),cf];},aE=function(c0,c1,c2){return-0x1==c0['s']?Math['max'](aE(c0['l'],c1,c2+0x1),aE(c0['r'],c1,c2+0x1)):c1[c0['s']]=c2;},aF=function(c0){var yZ=yU;for(var c1=c0[yZ(0x61d)];c1&&!c0[--c1];);for(var c2=new a5(++c1),c3=0x0,c4=c0[0x0],c5=0x1,c6=function(c8){c2[c3++]=c8;},c7=0x1;c7<=c1;++c7)if(c0[c7]==c4&&c7!=c1)++c5;else{if(!c4&&c5>0x2){for(;c5>0x8a;c5-=0x8a)c6(0x7ff2);c5>0x2&&(c6(c5>0xa?c5-0xb<<0x5|0x7012:c5-0x3<<0x5|0x3011),c5=0x0);}else{if(c5>0x3){for(c6(c4),--c5;c5>0x6;c5-=0x6)c6(0x2070);c5>0x2&&(c6(c5-0x3<<0x5|0x2010),c5=0x0);}}for(;c5--;)c6(c4);c5=0x1,c4=c0[c7];}return[c2['subarray'](0x0,c3),c1];},aG=function(c0,c1){for(var c2=0x0,c3=0x0;c3<c1['length'];++c3)c2+=c0[c3]*c1[c3];return c2;},aH=function(c0,c1,c2){var z0=yU,c3=c2[z0(0x61d)],c4=aw(c1+0x2);c0[c4]=0xff&c3,c0[c4+0x1]=c3>>>0x8,c0[c4+0x2]=0xff^c0[c4],c0[c4+0x3]=0xff^c0[c4+0x1];for(var c5=0x0;c5<c3;++c5)c0[c4+c5+0x4]=c2[c5];return 0x8*(c4+0x4+c3);},aI=function(c0,c1,c2,c3,c4,c5,c6,c7,c8,c9,ca){var z1=yU;aB(c1,ca++,c2),++c4[0x100];for(var cb=aD(c4,0xf),cc=cb[0x0],cd=cb[0x1],cf=aD(c5,0xf),cg=cf[0x0],ch=cf[0x1],ci=aF(cc),cj=ci[0x0],ck=ci[0x1],cl=aF(cg),cm=cl[0x0],cn=cl[0x1],co=new a5(0x13),cp=0x0;cp<cj[z1(0x61d)];++cp)co[0x1f&cj[cp]]++;for(cp=0x0;cp<cm['length'];++cp)co[0x1f&cm[cp]]++;for(var cq=aD(co,0x7),cr=cq[0x0],cs=cq[0x1],cu=0x13;cu>0x4&&!cr[a9[cu-0x1]];--cu);var cv,cw,cx,cy,cz=c9+0x5<<0x3,cA=aG(c4,am)+aG(c5,an)+c6,cB=aG(c4,cc)+aG(c5,cg)+c6+0xe+0x3*cu+aG(co,cr)+(0x2*co[0x10]+0x3*co[0x11]+0x7*co[0x12]);if(cz<=cA&&cz<=cB)return aH(c1,ca,c0[z1(0x4da)](c8,c8+c9));if(aB(c1,ca,0x1+(cB<cA)),ca+=0x2,cB<cA){cv=al(cc,cd,0x0),cw=cc,cx=al(cg,ch,0x0),cy=cg;var cC=al(cr,cs,0x0);aB(c1,ca,ck-0x101),aB(c1,ca+0x5,cn-0x1),aB(c1,ca+0xa,cu-0x4),ca+=0xe;for(cp=0x0;cp<cu;++cp)aB(c1,ca+0x3*cp,cr[a9[cp]]);ca+=0x3*cu;for(var cD=[cj,cm],cE=0x0;cE<0x2;++cE){var cF=cD[cE];for(cp=0x0;cp<cF[z1(0x61d)];++cp){var cG=0x1f&cF[cp];aB(c1,ca,cC[cG]),ca+=cr[cG],cG>0xf&&(aB(c1,ca,cF[cp]>>>0x5&0x7f),ca+=cF[cp]>>>0xc);}}}else cv=ao,cw=am,cx=aq,cy=an;for(cp=0x0;cp<c7;++cp)if(c3[cp]>0xff){cG=c3[cp]>>>0x12&0x1f,(aC(c1,ca,cv[cG+0x101]),ca+=cw[cG+0x101],cG>0x7&&(aB(c1,ca,c3[cp]>>>0x17&0x1f),ca+=a7[cG]));var cH=0x1f&c3[cp];aC(c1,ca,cx[cH]),ca+=cy[cH],cH>0x3&&(aC(c1,ca,c3[cp]>>>0x5&0x1fff),ca+=a8[cH]);}else aC(c1,ca,cv[c3[cp]]),ca+=cw[c3[cp]];return aC(c1,ca,cv[0x100]),ca+cw[0x100];},aJ=new a6([0x10004,0x20008,0x20010,0x20020,0x40020,0x100080,0x100100,0x204400,0x205000]),aK=new a4(0x0),aL=function(c0,c1,c2,c3,c4,c5){var z2=yU,c6=c0[z2(0x61d)],c7=new a4(c3+c6+0x5*(0x1+Math[z2(0x60f)](c6/0x1b58))+c4),c8=c7[z2(0x4da)](c3,c7['length']-c4),c9=0x0;if(!c1||c6<0x8)for(var ca=0x0;ca<=c6;ca+=0xffff){var cb=ca+0xffff;cb<c6?c9=aH(c8,c9,c0[z2(0x4da)](ca,cb)):(c8[ca]=c5,c9=aH(c8,c9,c0[z2(0x4da)](ca,c6)));}else{for(var cc=aJ[c1-0x1],cd=cc>>>0xd,cf=0x1fff&cc,cg=(0x1<<c2)-0x1,ch=new a5(0x8000),ci=new a5(cg+0x1),cj=Math[z2(0x60f)](c2/0x3),ck=0x2*cj,cl=function(cO){return(c0[cO]^c0[cO+0x1]<<cj^c0[cO+0x2]<<ck)&cg;},cm=new a6(0x61a8),cn=new a5(0x120),co=new a5(0x20),cp=0x0,cq=0x0,cr=(ca=0x0,0x0),cs=0x0,cu=0x0;ca<c6;++ca){var cv=cl(ca),cw=0x7fff&ca,cx=ci[cv];if(ch[cw]=cx,ci[cv]=cw,cs<=ca){var cy=c6-ca;if((cp>0x1b58||cr>0x6000)&&cy>0x1a7){c9=aI(c0,c8,0x0,cm,cn,co,cq,cr,cu,ca-cu,c9),cr=cp=cq=0x0,cu=ca;for(var cz=0x0;cz<0x11e;++cz)cn[cz]=0x0;for(cz=0x0;cz<0x1e;++cz)co[cz]=0x0;}var cA=0x2,cB=0x0,cC=cf,cD=cw-cx&0x7fff;if(cy>0x2&&cv==cl(ca-cD))for(var cE=Math[z2(0x2d8)](cd,cy)-0x1,cF=Math[z2(0x2d8)](0x7fff,ca),cG=Math[z2(0x2d8)](0x102,cy);cD<=cF&&--cC&&cw!=cx;){if(c0[ca+cA]==c0[ca+cA-cD]){for(var cH=0x0;cH<cG&&c0[ca+cH]==c0[ca+cH-cD];++cH);if(cH>cA){if(cA=cH,cB=cD,cH>cE)break;var cI=Math['min'](cD,cH-0x2),cJ=0x0;for(cz=0x0;cz<cI;++cz){var cK=ca-cD+cz+0x8000&0x7fff,cL=cK-ch[cK]+0x8000&0x7fff;cL>cJ&&(cJ=cL,cx=cK);}}}cD+=(cw=cx)-(cx=ch[cw])+0x8000&0x7fff;}if(cB){cm[cr++]=0x10000000|ad[cA]<<0x12|ah[cB];var cM=0x1f&ad[cA],cN=0x1f&ah[cB];cq+=a7[cM]+a8[cN],++cn[0x101+cM],++co[cN],cs=ca+cA,++cp;}else cm[cr++]=c0[ca],++cn[c0[ca]];}}c9=aI(c0,c8,c5,cm,cn,co,cq,cr,cu,ca-cu,c9),!c5&&0x7&c9&&(c9=aH(c8,c9+0x1,aK));}return ax(c7,0x0,c3+aw(c9)+c4);},aM=(function(){for(var c0=new Int32Array(0x100),c1=0x0;c1<0x100;++c1){for(var c2=c1,c3=0x9;--c3;)c2=(0x1&c2&&-0x12477ce0)^c2>>>0x1;c0[c1]=c2;}return c0;}()),aN=function(){var c0=-0x1;return{'p':function(c1){var z3=a0b;for(var c2=c0,c3=0x0;c3<c1[z3(0x61d)];++c3)c2=aM[0xff&c2^c1[c3]]^c2>>>0x8;c0=c2;},'d':function(){return~c0;}};},aO=function(){var c0=0x1,c1=0x0;return{'p':function(c2){var z4=a0b;for(var c3=c0,c4=c1,c5=0x0|c2[z4(0x61d)],c6=0x0;c6!=c5;){for(var c7=Math[z4(0x2d8)](c6+0xa5f,c5);c6<c7;++c6)c4+=c3+=c2[c6];c3=(0xffff&c3)+0xf*(c3>>0x10),c4=(0xffff&c4)+0xf*(c4>>0x10);}c0=c3,c1=c4;},'d':function(){return(0xff&(c0%=0xfff1))<<0x18|c0>>>0x8<<0x10|(0xff&(c1%=0xfff1))<<0x8|c1>>>0x8;}};},aP=function(c0,c1,c2,c3,c4){var z5=yU;return aL(c0,null==c1[z5(0x720)]?0x6:c1[z5(0x720)],null==c1[z5(0x4cd)]?Math[z5(0x60f)](1.5*Math[z5(0x94f)](0x8,Math['min'](0xd,Math[z5(0x45c)](c0['length'])))):0xc+c1['mem'],c2,c3,!c4);},aQ=function(c0,c1){var c2={};for(var c3 in c0)c2[c3]=c0[c3];for(var c3 in c1)c2[c3]=c1[c3];return c2;},aR=function(c0,c1,c2){var z6=yU;for(var c3=c0(),c4=c0['toString'](),c5=c4[z6(0x859)](c4['indexOf']('[')+0x1,c4[z6(0x57e)](']'))[z6(0x181)](/ /g,'')[z6(0x1ee)](','),c6=0x0;c6<c3['length'];++c6){var c7=c3[c6],c8=c5[c6];if(z6(0x4df)==typeof c7){c1+=';'+c8+'=';var c9=c7['toString']();if(c7[z6(0x6cb)]){if(-0x1!=c9['indexOf']('[native\x20code]')){var ca=c9[z6(0x50b)]('\x20',0x8)+0x1;c1+=c9[z6(0x859)](ca,c9['indexOf']('(',ca));}else{for(var cb in(c1+=c9,c7[z6(0x6cb)]))c1+=';'+c8+z6(0x642)+cb+'='+c7[z6(0x6cb)][cb]['toString']();}}else c1+=c9;}else c2[c8]=c7;}return[c1,c2];},aS=[],aT=function(c0,c1,c2,c3){var z7=yU,c4;if(!aS[c2]){for(var c5='',c6={},c7=c0[z7(0x61d)]-0x1,c8=0x0;c8<c7;++c8)c5=(c4=aR(c0[c8],c5,c6))[0x0],c6=c4[0x1];aS[c2]=aR(c0[c7],c5,c6);}var c9=aQ({},aS[c2][0x1]);return a3[z7(0x854)](aS[c2][0x0]+';onmessage=function(e){for(var\x20k\x20in\x20e.data)self[k]=e.data[k];onmessage='+c1[z7(0x3f9)]()+'}',c2,c9,function(ca){var cb=[];for(var cc in ca)(ca[cc]instanceof a4||ca[cc]instanceof a5||ca[cc]instanceof a6)&&cb['push']((ca[cc]=new ca[cc]['constructor'](ca[cc]))['buffer']);return cb;}(c9),c3);},aU=function(){return[a4,a5,a6,a7,a8,a9,ac,ag,ap,ar,ai,ay,al,as,au,av,aw,ax,az,aA,bn,b0,b1];},aV=function(){return[a4,a5,a6,a7,a8,a9,ad,ah,ao,am,aq,an,ai,aJ,aK,al,aB,aC,aD,aE,aF,aG,aH,aI,aw,ax,aL,aP,bj,b0];},aW=function(){return[b9,bc,b8,aN,aM];},aX=function(){return[ba,bb];},aY=function(){return[bd,b8,aO];},aZ=function(){return[be];},b0=function(c0){var z8=yU;return postMessage(c0,[c0[z8(0x624)]]);},b1=function(c0){var z9=yU;return c0&&c0[z9(0x1b2)]&&new a4(c0[z9(0x1b2)]);},b2=function(c0,c1,c2,c3,c4,c5){var zb=yU,c6=aT(c2,c3,c4,function(c7,c8){var za=a0b;c6[za(0x3d7)](),c5(c7,c8);});return c6[zb(0x17e)]([c0,c1],c1[zb(0x578)]?[c0[zb(0x624)]]:[]),function(){c6['terminate']();};},b3=function(c0){var zc=yU;return c0[zc(0x1ad)]=function(c1,c2){var zd=zc;return postMessage([c1,c2],[c1[zd(0x624)]]);},function(c1){var ze=zc;return c0[ze(0x315)](c1['data'][0x0],c1[ze(0x329)][0x1]);};},b4=function(c0,c1,c2,c3,c4){var zg=yU,c5,c6=aT(c0,c3,c4,function(c7,c8){var zf=a0b;c7?(c6[zf(0x3d7)](),c1[zf(0x1ad)][zf(0x6ca)](c1,c7)):(c8[0x1]&&c6[zf(0x3d7)](),c1[zf(0x1ad)][zf(0x6ca)](c1,c7,c8[0x0],c8[0x1]));});c6[zg(0x17e)](c2),c1[zg(0x315)]=function(c7,c8){var zh=zg;c1[zh(0x1ad)]||az(0x5),c5&&c1[zh(0x1ad)](az(0x4,0x0,0x1),null,!!c8),c6[zh(0x17e)]([c7,c5=c8],[c7[zh(0x624)]]);},c1['terminate']=function(){var zi=zg;c6[zi(0x3d7)]();};},b5=function(c0,c1){return c0[c1]|c0[c1+0x1]<<0x8;},b6=function(c0,c1){return(c0[c1]|c0[c1+0x1]<<0x8|c0[c1+0x2]<<0x10|c0[c1+0x3]<<0x18)>>>0x0;},b7=function(c0,c1){return b6(c0,c1)+0x100000000*b6(c0,c1+0x4);},b8=function(c0,c1,c2){for(;c2;++c1)c0[c1]=c2,c2>>>=0x8;},b9=function(c0,c1){var zj=yU,c2=c1[zj(0x40f)];if(c0[0x0]=0x1f,c0[0x1]=0x8b,c0[0x2]=0x8,c0[0x8]=c1[zj(0x720)]<0x2?0x4:0x9==c1[zj(0x720)]?0x2:0x0,c0[0x9]=0x3,0x0!=c1[zj(0x7b1)]&&b8(c0,0x4,Math['floor'](new Date(c1[zj(0x7b1)]||Date[zj(0x983)]())/0x3e8)),c2){c0[0x3]=0x8;for(var c3=0x0;c3<=c2['length'];++c3)c0[c3+0xa]=c2['charCodeAt'](c3);}},ba=function(c0){var zk=yU;0x1f==c0[0x0]&&0x8b==c0[0x1]&&0x8==c0[0x2]||az(0x6,zk(0x3fd));var c1=c0[0x3],c2=0xa;0x4&c1&&(c2+=c0[0xa]|0x2+(c0[0xb]<<0x8));for(var c3=(c1>>0x3&0x1)+(c1>>0x4&0x1);c3>0x0;c3-=!c0[c2++]);return c2+(0x2&c1);},bb=function(c0){var zl=yU,c1=c0[zl(0x61d)];return(c0[c1-0x4]|c0[c1-0x3]<<0x8|c0[c1-0x2]<<0x10|c0[c1-0x1]<<0x18)>>>0x0;},bc=function(c0){var zm=yU;return 0xa+(c0[zm(0x40f)]&&c0[zm(0x40f)][zm(0x61d)]+0x1||0x0);},bd=function(c0,c1){var zn=yU,c2=c1[zn(0x720)],c3=0x0==c2?0x0:c2<0x6?0x1:0x9==c2?0x3:0x2;c0[0x0]=0x78,c0[0x1]=c3<<0x6|(c3?0x20-0x2*c3:0x1);},be=function(c0){var zo=yU;(0x8!=(0xf&c0[0x0])||c0[0x0]>>>0x4>0x7||(c0[0x0]<<0x8|c0[0x1])%0x1f)&&az(0x6,zo(0x490)),0x20&c0[0x1]&&az(0x6,zo(0x82d));};function bf(c0,c1){var zp=yU;return c1||zp(0x4df)!=typeof c0||(c1=c0,c0={}),this['ondata']=c1,c0;}var bg=(function(){var zr=yU;function c0(c1,c2){var zq=a0b;c2||'function'!=typeof c1||(c2=c1,c1={}),this[zq(0x1ad)]=c2,this['o']=c1||{};}return c0[zr(0x6cb)]['p']=function(c1,c2){var zs=zr;this[zs(0x1ad)](aP(c1,this['o'],0x0,0x0,!c2),c2);},c0[zr(0x6cb)][zr(0x315)]=function(c1,c2){this['ondata']||az(0x5),this['d']&&az(0x4),this['d']=c2,this['p'](c1,c2||!0x1);},c0;}()),bh=(function(){return function(c0,c1){var zt=a0b;b4([aV,function(){return[b3,bg];}],this,bf[zt(0x6ca)](this,c0,c1),function(c2){var zu=zt,c3=new bg(c2[zu(0x329)]);onmessage=b3(c3);},0x6);};}());function bi(c0,c1,c2){return c2||(c2=c1,c1={}),'function'!=typeof c2&&az(0x7),b2(c0,c1,[aV],function(c3){var zv=a0b;return b0(bj(c3[zv(0x329)][0x0],c3[zv(0x329)][0x1]));},0x0,c2);}function bj(c0,c1){return aP(c0,c1||{},0x0,0x0);}var bk=(function(){var zy=yU;function c0(c1){var zw=a0b;this['s']={},this['p']=new a4(0x0),this[zw(0x1ad)]=c1;}return c0['prototype']['e']=function(c1){var zx=a0b;this[zx(0x1ad)]||az(0x5),this['d']&&az(0x4);var c2=this['p'][zx(0x61d)],c3=new a4(c2+c1['length']);c3[zx(0x1e6)](this['p']),c3[zx(0x1e6)](c1,c2),this['p']=c3;},c0[zy(0x6cb)]['c']=function(c1){var zz=zy;this['d']=this['s']['i']=c1||!0x1;var c2=this['s']['b'],c3=aA(this['p'],this['o'],this['s']);this[zz(0x1ad)](ax(c3,c2,this['s']['b']),this['d']),this['o']=ax(c3,this['s']['b']-0x8000),this['s']['b']=this['o'][zz(0x61d)],this['p']=ax(this['p'],this['s']['p']/0x8|0x0),this['s']['p']&=0x7;},c0[zy(0x6cb)][zy(0x315)]=function(c1,c2){this['e'](c1),this['c'](c2);},c0;}()),bl=(function(){return function(c0){this['ondata']=c0,b4([aU,function(){return[b3,bk];}],this,0x0,function(){var c1=new bk();onmessage=b3(c1);},0x7);};}());function bm(c0,c1,c2){return c2||(c2=c1,c1={}),'function'!=typeof c2&&az(0x7),b2(c0,c1,[aU],function(c3){var zA=a0b;return b0(bn(c3[zA(0x329)][0x0],b1(c3['data'][0x1])));},0x1,c2);}function bn(c0,c1){return aA(c0,c1);}var bo=(function(){var zB=yU;function c0(c1,c2){this['c']=aN(),this['l']=0x0,this['v']=0x1,bg['call'](this,c1,c2);}return c0[zB(0x6cb)][zB(0x315)]=function(c1,c2){var zC=zB;bg[zC(0x6cb)][zC(0x315)][zC(0x6ca)](this,c1,c2);},c0[zB(0x6cb)]['p']=function(c1,c2){var zD=zB;this['c']['p'](c1),this['l']+=c1['length'];var c3=aP(c1,this['o'],this['v']&&bc(this['o']),c2&&0x8,!c2);this['v']&&(b9(c3,this['o']),this['v']=0x0),c2&&(b8(c3,c3[zD(0x61d)]-0x8,this['c']['d']()),b8(c3,c3['length']-0x4,this['l'])),this[zD(0x1ad)](c3,c2);},c0;}()),bp=(function(){return function(c0,c1){b4([aV,aW,function(){return[b3,bg,bo];}],this,bf['call'](this,c0,c1),function(c2){var zE=a0b,c3=new bo(c2[zE(0x329)]);onmessage=b3(c3);},0x8);};}());function bq(c0,c1,c2){return c2||(c2=c1,c1={}),'function'!=typeof c2&&az(0x7),b2(c0,c1,[aV,aW,function(){return[br];}],function(c3){var zF=a0b;return b0(br(c3[zF(0x329)][0x0],c3[zF(0x329)][0x1]));},0x2,c2);}function br(c0,c1){var zG=yU;c1||(c1={});var c2=aN(),c3=c0['length'];c2['p'](c0);var c4=aP(c0,c1,bc(c1),0x8),c5=c4[zG(0x61d)];return b9(c4,c1),b8(c4,c5-0x8,c2['d']()),b8(c4,c5-0x4,c3),c4;}var bs=(function(){var zH=yU;function c0(c1){this['v']=0x1,bk['call'](this,c1);}return c0[zH(0x6cb)][zH(0x315)]=function(c1,c2){var zI=zH;if(bk[zI(0x6cb)]['e'][zI(0x6ca)](this,c1),this['v']){var c3=this['p'][zI(0x61d)]>0x3?ba(this['p']):0x4;if(c3>=this['p'][zI(0x61d)]&&!c2)return;this['p']=this['p'][zI(0x4da)](c3),this['v']=0x0;}c2&&(this['p'][zI(0x61d)]<0x8&&az(0x6,zI(0x3fd)),this['p']=this['p'][zI(0x4da)](0x0,-0x8)),bk[zI(0x6cb)]['c'][zI(0x6ca)](this,c2);},c0;}()),bu=(function(){return function(c0){this['ondata']=c0,b4([aU,aX,function(){return[b3,bk,bs];}],this,0x0,function(){var c1=new bs();onmessage=b3(c1);},0x9);};}());function bv(c0,c1,c2){var zJ=yU;return c2||(c2=c1,c1={}),zJ(0x4df)!=typeof c2&&az(0x7),b2(c0,c1,[aU,aX,function(){return[bw];}],function(c3){var zK=zJ;return b0(bw(c3[zK(0x329)][0x0]));},0x3,c2);}function bw(c0,c1){var zL=yU;return aA(c0[zL(0x4da)](ba(c0),-0x8),c1||new a4(bb(c0)));}var bx=(function(){var zM=yU;function c0(c1,c2){this['c']=aO(),this['v']=0x1,bg['call'](this,c1,c2);}return c0[zM(0x6cb)][zM(0x315)]=function(c1,c2){var zN=zM;bg[zN(0x6cb)][zN(0x315)][zN(0x6ca)](this,c1,c2);},c0[zM(0x6cb)]['p']=function(c1,c2){var zO=zM;this['c']['p'](c1);var c3=aP(c1,this['o'],this['v']&&0x2,c2&&0x4,!c2);this['v']&&(bd(c3,this['o']),this['v']=0x0),c2&&b8(c3,c3['length']-0x4,this['c']['d']()),this[zO(0x1ad)](c3,c2);},c0;}());function by(c0,c1){var zP=yU;c1||(c1={});var c2=aO();c2['p'](c0);var c3=aP(c0,c1,0x2,0x4);return bd(c3,c1),b8(c3,c3[zP(0x61d)]-0x4,c2['d']()),c3;}var bz=(function(){var zQ=yU;function c0(c1){this['v']=0x1,bk['call'](this,c1);}return c0[zQ(0x6cb)]['push']=function(c1,c2){var zR=zQ;if(bk[zR(0x6cb)]['e'][zR(0x6ca)](this,c1),this['v']){if(this['p'][zR(0x61d)]<0x2&&!c2)return;this['p']=this['p'][zR(0x4da)](0x2),this['v']=0x0;}c2&&(this['p'][zR(0x61d)]<0x4&&az(0x6,zR(0x490)),this['p']=this['p']['subarray'](0x0,-0x4)),bk[zR(0x6cb)]['c']['call'](this,c2);},c0;}()),bA=(function(){return function(c0){var zS=a0b;this[zS(0x1ad)]=c0,b4([aU,aZ,function(){return[b3,bk,bz];}],this,0x0,function(){var c1=new bz();onmessage=b3(c1);},0xb);};}());function bB(c0,c1,c2){var zT=yU;return c2||(c2=c1,c1={}),zT(0x4df)!=typeof c2&&az(0x7),b2(c0,c1,[aU,aZ,function(){return[bC];}],function(c3){return b0(bC(c3['data'][0x0],b1(c3['data'][0x1])));},0x5,c2);}function bC(c0,c1){return aA((be(c0),c0['subarray'](0x2,-0x4)),c1);}var bD=(function(){var zV=yU;function c0(c1){var zU=a0b;this['G']=bs,this['I']=bk,this['Z']=bz,this[zU(0x1ad)]=c1;}return c0['prototype'][zV(0x315)]=function(c1,c2){var zW=zV;if(this[zW(0x1ad)]||az(0x5),this['s'])this['s'][zW(0x315)](c1,c2);else{if(this['p']&&this['p'][zW(0x61d)]){var c3=new a4(this['p']['length']+c1['length']);c3[zW(0x1e6)](this['p']),c3[zW(0x1e6)](c1,this['p'][zW(0x61d)]);}else this['p']=c1;if(this['p'][zW(0x61d)]>0x2){var c4=this,c5=function(){c4['ondata']['apply'](c4,arguments);};this['s']=0x1f==this['p'][0x0]&&0x8b==this['p'][0x1]&&0x8==this['p'][0x2]?new this['G'](c5):0x8!=(0xf&this['p'][0x0])||this['p'][0x0]>>0x4>0x7||(this['p'][0x0]<<0x8|this['p'][0x1])%0x1f?new this['I'](c5):new this['Z'](c5),this['s'][zW(0x315)](this['p'],c2),this['p']=null;}}},c0;}()),bE=function(c0,c1,c2,c3){var zX=yU;for(var c4 in c0){var c5=c0[c4],c6=c1+c4;c5 instanceof a4?c2[c6]=[c5,c3]:Array[zX(0x813)](c5)?c2[c6]=[c5[0x0],aQ(c3,c5[0x1])]:bE(c5,c6+'/',c2,c3);}},bF=yU(0x5f4)!=typeof TextEncoder&&new TextEncoder(),bG=yU(0x5f4)!=typeof TextDecoder&&new TextDecoder(),bH=0x0;try{bG['decode'](aK,{'stream':!0x0}),bH=0x1;}catch(c0){}var bI=function(c1){var zY=yU;for(var c2='',c3=0x0;;){var c4=c1[c3++],c5=(c4>0x7f)+(c4>0xdf)+(c4>0xef);if(c3+c5>c1['length'])return[c2,ax(c1,c3-0x1)];c5?0x3==c5?(c4=((0xf&c4)<<0x12|(0x3f&c1[c3++])<<0xc|(0x3f&c1[c3++])<<0x6|0x3f&c1[c3++])-0x10000,c2+=String['fromCharCode'](0xd800|c4>>0xa,0xdc00|0x3ff&c4)):c2+=0x1&c5?String[zY(0x1dd)]((0x1f&c4)<<0x6|0x3f&c1[c3++]):String['fromCharCode']((0xf&c4)<<0xc|(0x3f&c1[c3++])<<0x6|0x3f&c1[c3++]):c2+=String[zY(0x1dd)](c4);}},bJ=(function(){function c1(c2){this['ondata']=c2,bH?this['t']=new TextDecoder():this['p']=aK;}return c1['prototype']['push']=function(c2,c3){var zZ=a0b;if(this[zZ(0x1ad)]||az(0x5),c3=!!c3,this['t'])return this[zZ(0x1ad)](this['t'][zZ(0x9e1)](c2,{'stream':!0x0}),c3),void(c3&&(this['t'][zZ(0x9e1)]()['length']&&az(0x8),this['t']=null));this['p']||az(0x4);var c4=new a4(this['p'][zZ(0x61d)]+c2['length']);c4[zZ(0x1e6)](this['p']),c4['set'](c2,this['p'][zZ(0x61d)]);var c5=bI(c4),c6=c5[0x0],c7=c5[0x1];c3?(c7[zZ(0x61d)]&&az(0x8),this['p']=null):this['p']=c7,this[zZ(0x1ad)](c6,c3);},c1;}());function bK(c1,c2){var A0=yU;if(c2){for(var c3=new a4(c1[A0(0x61d)]),c4=0x0;c4<c1[A0(0x61d)];++c4)c3[c4]=c1[A0(0x388)](c4);return c3;}if(bF)return bF[A0(0x86a)](c1);var c5=c1['length'],c6=new a4(c1[A0(0x61d)]+(c1['length']>>0x1)),c7=0x0,c8=function(cb){c6[c7++]=cb;};for(c4=0x0;c4<c5;++c4){if(c7+0x5>c6[A0(0x61d)]){var c9=new a4(c7+0x8+(c5-c4<<0x1));c9[A0(0x1e6)](c6),c6=c9;}var ca=c1['charCodeAt'](c4);ca<0x80||c2?c8(ca):ca<0x800?(c8(0xc0|ca>>0x6),c8(0x80|0x3f&ca)):ca>0xd7ff&&ca<0xe000?(c8(0xf0|(ca=0x10000+(0xffc00&ca)|0x3ff&c1[A0(0x388)](++c4))>>0x12),c8(0x80|ca>>0xc&0x3f),c8(0x80|ca>>0x6&0x3f),c8(0x80|0x3f&ca)):(c8(0xe0|ca>>0xc),c8(0x80|ca>>0x6&0x3f),c8(0x80|0x3f&ca));}return ax(c6,0x0,c7);}function bL(c1,c2){var A1=yU;if(c2){for(var c3='',c4=0x0;c4<c1[A1(0x61d)];c4+=0x4000)c3+=String[A1(0x1dd)][A1(0x1ea)](null,c1[A1(0x4da)](c4,c4+0x4000));return c3;}if(bG)return bG[A1(0x9e1)](c1);var c5=bI(c1),c6=c5[0x0];return c5[0x1][A1(0x61d)]&&az(0x8),c6;}a1['T8']=bL;var bM=function(c1){return 0x1==c1?0x3:c1<0x6?0x2:0x9==c1?0x1:0x0;},bN=function(c1,c2){return c2+0x1e+b5(c1,c2+0x1a)+b5(c1,c2+0x1c);},bO=function(c1,c2,c3){var c4=b5(c1,c2+0x1c),c5=bL(c1['subarray'](c2+0x2e,c2+0x2e+c4),!(0x800&b5(c1,c2+0x8))),c6=c2+0x2e+c4,c7=b6(c1,c2+0x14),c8=c3&&0xffffffff==c7?bP(c1,c6):[c7,b6(c1,c2+0x18),b6(c1,c2+0x2a)],c9=c8[0x0],ca=c8[0x1],cb=c8[0x2];return[b5(c1,c2+0xa),c9,ca,c5,c6+b5(c1,c2+0x1e)+b5(c1,c2+0x20),cb];},bP=function(c1,c2){for(;0x1!=b5(c1,c2);c2+=0x4+b5(c1,c2+0x2));return[b7(c1,c2+0xc),b7(c1,c2+0x4),b7(c1,c2+0x14)];},bQ=function(c1){var A2=yU,c2=0x0;if(c1)for(var c3 in c1){var c4=c1[c3][A2(0x61d)];c4>0xffff&&az(0x9),c2+=c4+0x4;}return c2;},bR=function(c1,c2,c3,c4,c5,c6,c7,c8){var A3=yU,c9=c4[A3(0x61d)],ca=c3[A3(0x9b2)],cb=c8&&c8[A3(0x61d)],cc=bQ(ca);b8(c1,c2,null!=c7?0x2014b50:0x4034b50),c2+=0x4,null!=c7&&(c1[c2++]=0x14,c1[c2++]=c3['os']),c1[c2]=0x14,c2+=0x2,c1[c2++]=c3[A3(0x2db)]<<0x1|(null==c6&&0x8),c1[c2++]=c5&&0x8,c1[c2++]=0xff&c3['cpr'],c1[c2++]=c3['cpr']>>0x8;var cd=new Date(null==c3[A3(0x7b1)]?Date[A3(0x983)]():c3[A3(0x7b1)]),cf=cd[A3(0x412)]()-0x7bc;if((cf<0x0||cf>0x77)&&az(0xa),b8(c1,c2,cf<<0x19|cd['getMonth']()+0x1<<0x15|cd['getDate']()<<0x10|cd['getHours']()<<0xb|cd[A3(0x956)]()<<0x5|cd[A3(0x28a)]()>>>0x1),c2+=0x4,null!=c6&&(b8(c1,c2,c3[A3(0x254)]),b8(c1,c2+0x4,c6),b8(c1,c2+0x8,c3['size'])),b8(c1,c2+0xc,c9),b8(c1,c2+0xe,cc),c2+=0x10,null!=c7&&(b8(c1,c2,cb),b8(c1,c2+0x6,c3[A3(0x4e9)]),b8(c1,c2+0xa,c7),c2+=0xe),c1['set'](c4,c2),c2+=c9,cc)for(var cg in ca){var ch=ca[cg],ci=ch[A3(0x61d)];b8(c1,c2,+cg),b8(c1,c2+0x2,ci),c1[A3(0x1e6)](ch,c2+0x4),c2+=0x4+ci;}return cb&&(c1[A3(0x1e6)](c8,c2),c2+=cb),c2;},bS=function(c1,c2,c3,c4,c5){b8(c1,c2,0x6054b50),b8(c1,c2+0x8,c3),b8(c1,c2+0xa,c3),b8(c1,c2+0xc,c4),b8(c1,c2+0x10,c5);},bT=(function(){var A5=yU;function c1(c2){var A4=a0b;this[A4(0x40f)]=c2,this['c']=aN(),this[A4(0x1b2)]=0x0,this[A4(0x7f5)]=0x0;}return c1[A5(0x6cb)][A5(0x67e)]=function(c2,c3){this['ondata'](null,c2,c3);},c1['prototype'][A5(0x315)]=function(c2,c3){var A6=A5;this[A6(0x1ad)]||az(0x5),this['c']['p'](c2),this[A6(0x1b2)]+=c2[A6(0x61d)],c3&&(this[A6(0x254)]=this['c']['d']()),this[A6(0x67e)](c2,c3||!0x1);},c1;}()),bU=(function(){var A9=yU;function c1(c2,c3){var A7=a0b,c4=this;c3||(c3={}),bT[A7(0x6ca)](this,c2),this['d']=new bh(c3,function(c5,c6,c7){var A8=A7;c4[A8(0x1ad)](c5,c6,c7);}),this[A7(0x7f5)]=0x8,this[A7(0x2db)]=bM(c3[A7(0x720)]),this['terminate']=this['d'][A7(0x3d7)];}return c1['prototype'][A9(0x67e)]=function(c2,c3){this['d']['push'](c2,c3);},c1['prototype'][A9(0x315)]=function(c2,c3){var Aa=A9;bT[Aa(0x6cb)][Aa(0x315)][Aa(0x6ca)](this,c2,c3);},c1;}()),bV=(function(){var Ac=yU;function c1(c2){var Ab=a0b;this[Ab(0x1ad)]=c2,this['u']=[],this['d']=0x1;}return c1[Ac(0x6cb)]['add']=function(c2){var Ad=Ac,c3=this;if(this[Ad(0x1ad)]||az(0x5),0x2&this['d'])this['ondata'](az(0x4+0x8*(0x1&this['d']),0x0,0x1),null,!0x1);else{var c4=bK(c2[Ad(0x40f)]),c5=c4[Ad(0x61d)],c6=c2[Ad(0x224)],c7=c6&&bK(c6),c8=c5!=c2['filename'][Ad(0x61d)]||c7&&c6[Ad(0x61d)]!=c7[Ad(0x61d)],c9=c5+bQ(c2[Ad(0x9b2)])+0x1e;c5>0xffff&&this[Ad(0x1ad)](az(0xb,0x0,0x1),null,!0x1);var ca=new a4(c9);bR(ca,0x0,c2,c4,c8);var cb=[ca],cc=function(){var Ae=Ad;for(var ci=0x0,cj=cb;ci<cj[Ae(0x61d)];ci++){var ck=cj[ci];c3['ondata'](null,ck,!0x1);}cb=[];},cd=this['d'];this['d']=0x0;var cf=this['u'][Ad(0x61d)],cg=aQ(c2,{'f':c4,'u':c8,'o':c7,'t':function(){var Af=Ad;c2[Af(0x3d7)]&&c2[Af(0x3d7)]();},'r':function(){if(cc(),cd){var ci=c3['u'][cf+0x1];ci?ci['r']():c3['d']=0x1;}cd=0x1;}}),ch=0x0;c2[Ad(0x1ad)]=function(ci,cj,ck){var Ag=Ad;if(ci)c3[Ag(0x1ad)](ci,cj,ck),c3[Ag(0x3d7)]();else{if(ch+=cj['length'],cb[Ag(0x315)](cj),ck){var cl=new a4(0x10);b8(cl,0x0,0x8074b50),b8(cl,0x4,c2[Ag(0x254)]),b8(cl,0x8,ch),b8(cl,0xc,c2[Ag(0x1b2)]),cb[Ag(0x315)](cl),cg['c']=ch,cg['b']=c9+ch+0x10,cg['crc']=c2['crc'],cg[Ag(0x1b2)]=c2[Ag(0x1b2)],cd&&cg['r'](),cd=0x1;}else cd&&cc();}},this['u'][Ad(0x315)](cg);}},c1['prototype']['end']=function(){var Ah=Ac,c2=this;0x2&this['d']?this[Ah(0x1ad)](az(0x4+0x8*(0x1&this['d']),0x0,0x1),null,!0x0):(this['d']?this['e']():this['u'][Ah(0x315)]({'r':function(){var Ai=Ah;0x1&c2['d']&&(c2['u'][Ai(0x58f)](-0x1,0x1),c2['e']());},'t':function(){}}),this['d']=0x3);},c1[Ac(0x6cb)]['e']=function(){var Aj=Ac;for(var c2=0x0,c3=0x0,c4=0x0,c5=0x0,c6=this['u'];c5<c6[Aj(0x61d)];c5++){c4+=0x2e+(ca=c6[c5])['f'][Aj(0x61d)]+bQ(ca[Aj(0x9b2)])+(ca['o']?ca['o'][Aj(0x61d)]:0x0);}for(var c7=new a4(c4+0x16),c8=0x0,c9=this['u'];c8<c9[Aj(0x61d)];c8++){var ca=c9[c8];bR(c7,c2,ca,ca['f'],ca['u'],ca['c'],c3,ca['o']),c2+=0x2e+ca['f'][Aj(0x61d)]+bQ(ca[Aj(0x9b2)])+(ca['o']?ca['o'][Aj(0x61d)]:0x0),c3+=ca['b'];}bS(c7,c2,this['u'][Aj(0x61d)],c4,c3),this[Aj(0x1ad)](null,c7,!0x0),this['d']=0x2;},c1[Ac(0x6cb)][Ac(0x3d7)]=function(){var Ak=Ac;for(var c2=0x0,c3=this['u'];c2<c3[Ak(0x61d)];c2++){c3[c2]['t']();}this['d']=0x2;},c1;}());a1['Xo']=function(c1,c2){var Al=yU;c2||(c2={});var c3={},c4=[];bE(c1,'',c3,c2);var c5=0x0,c6=0x0;for(var c7 in c3){var c8=c3[c7],c9=c8[0x0],ca=c8[0x1],cb=0x0==ca[Al(0x720)]?0x0:0x8,cc=(cp=bK(c7))[Al(0x61d)],cd=ca['comment'],cf=cd&&bK(cd),cg=cf&&cf[Al(0x61d)],ch=bQ(ca[Al(0x9b2)]);cc>0xffff&&az(0xb);var ci=cb?bj(c9,ca):c9,cj=ci[Al(0x61d)],ck=aN();ck['p'](c9),c4[Al(0x315)](aQ(ca,{'size':c9[Al(0x61d)],'crc':ck['d'](),'c':ci,'f':cp,'m':cf,'u':cc!=c7[Al(0x61d)]||cf&&cd[Al(0x61d)]!=cg,'o':c5,'cpr':cb})),c5+=0x1e+cc+ch+cj,c6+=0x4c+0x2*(cc+ch)+(cg||0x0)+cj;}for(var cl=new a4(c6+0x16),cm=c5,cn=c6-c5,co=0x0;co<c4[Al(0x61d)];++co){var cp=c4[co];bR(cl,cp['o'],cp,cp['f'],cp['u'],cp['c'][Al(0x61d)]);var cq=0x1e+cp['f']['length']+bQ(cp[Al(0x9b2)]);cl['set'](cp['c'],cp['o']+cq),bR(cl,c5,cp,cp['f'],cp['u'],cp['c'][Al(0x61d)],cp['o'],cp['m']),c5+=0x10+cq+(cp['m']?cp['m'][Al(0x61d)]:0x0);}return bS(cl,c5,c4['length'],cn,cm),cl;};var bW=(function(){var Am=yU;function c1(){}return c1['prototype'][Am(0x315)]=function(c2,c3){this['ondata'](null,c2,c3);},c1[Am(0x7f5)]=0x0,c1;}()),bX=(function(){var Ap=yU;function c1(c2,c3){var Ao=a0b,c4=this;c3<0x4e200?this['i']=new bk(function(c5,c6){c4['ondata'](null,c5,c6);}):(this['i']=new bl(function(c5,c6,c7){var An=a0b;c4[An(0x1ad)](c5,c6,c7);}),this[Ao(0x3d7)]=this['i'][Ao(0x3d7)]);}return c1['prototype'][Ap(0x315)]=function(c2,c3){var Aq=Ap;this['i'][Aq(0x3d7)]&&(c2=ax(c2,0x0)),this['i'][Aq(0x315)](c2,c3);},c1[Ap(0x7f5)]=0x8,c1;}()),bY=(function(){var As=yU;function c1(c2){var Ar=a0b;this[Ar(0x6c6)]=c2,this['k']=[],this['o']={0x0:bW},this['p']=aK;}return c1[As(0x6cb)][As(0x315)]=function(c2,c3){var At=As,c4=this;if(this[At(0x6c6)]||az(0x5),this['p']||az(0x4),this['c']>0x0){var c5=Math['min'](this['c'],c2[At(0x61d)]),c6=c2[At(0x4da)](0x0,c5);if(this['c']-=c5,this['d']?this['d']['push'](c6,!this['c']):this['k'][0x0]['push'](c6),(c2=c2['subarray'](c5))[At(0x61d)])return this[At(0x315)](c2,c3);}else{var c7=0x0,c8=0x0,c9=void 0x0,ca=void 0x0;this['p']['length']?c2[At(0x61d)]?((ca=new a4(this['p'][At(0x61d)]+c2[At(0x61d)]))[At(0x1e6)](this['p']),ca[At(0x1e6)](c2,this['p'][At(0x61d)])):ca=this['p']:ca=c2;for(var cb=ca[At(0x61d)],cc=this['c'],cd=cc&&this['d'],cf=function(){var Au=At,ci,cj=b6(ca,c8);if(0x4034b50==cj){c7=0x1,c9=c8,cg['d']=null,cg['c']=0x0;var ck=b5(ca,c8+0x6),cl=b5(ca,c8+0x8),cm=0x800&ck,cn=0x8&ck,co=b5(ca,c8+0x1a),cp=b5(ca,c8+0x1c);if(cb>c8+0x1e+co+cp){var cq=[];cg['k'][Au(0x3dc)](cq),c7=0x2;var cr,cs=b6(ca,c8+0x12),cu=b6(ca,c8+0x16),cv=bL(ca['subarray'](c8+0x1e,c8+=0x1e+co),!cm);0xffffffff==cs?(ci=cn?[-0x2]:bP(ca,c8),cs=ci[0x0],cu=ci[0x1]):cn&&(cs=-0x1),c8+=cp,cg['c']=cs;var cw={'name':cv,'cpr':cl,'start':function(){var Av=Au;if(cw[Av(0x1ad)]||az(0x5),cs){var cx=c4['o'][cl];cx||cw['ondata'](az(0xe,Av(0x4c8)+cl,0x1),null,!0x1),(cr=cs<0x0?new cx(cv):new cx(cv,cs,cu))[Av(0x1ad)]=function(cB,cC,cD){var Aw=Av;cw[Aw(0x1ad)](cB,cC,cD);};for(var cy=0x0,cz=cq;cy<cz[Av(0x61d)];cy++){var cA=cz[cy];cr['push'](cA,!0x1);}c4['k'][0x0]==cq&&c4['c']?c4['d']=cr:cr[Av(0x315)](aK,!0x0);}else cw[Av(0x1ad)](null,aK,!0x0);},'terminate':function(){var Ax=Au;cr&&cr['terminate']&&cr[Ax(0x3d7)]();}};cs>=0x0&&(cw[Au(0x1b2)]=cs,cw['ors']=cu),cg[Au(0x6c6)](cw);}return'break';}if(cc){if(0x8074b50==cj)return c9=c8+=0xc+(-0x2==cc&&0x8),c7=0x3,cg['c']=0x0,Au(0x406);if(0x2014b50==cj)return c9=c8-=0x4,c7=0x3,cg['c']=0x0,'break';}},cg=this;c8<cb-0x4;++c8){if('break'===cf())break;}if(this['p']=aK,cc<0x0){var ch=c7?ca[At(0x4da)](0x0,c9-0xc-(-0x2==cc&&0x8)-(0x8074b50==b6(ca,c9-0x10)&&0x4)):ca[At(0x4da)](0x0,c8);cd?cd[At(0x315)](ch,!!c7):this['k'][+(0x2==c7)]['push'](ch);}if(0x2&c7)return this[At(0x315)](ca[At(0x4da)](c8),c3);this['p']=ca[At(0x4da)](c8);}c3&&(this['c']&&az(0xd),this['p']=null);},c1[As(0x6cb)]['register']=function(c2){var Ay=As;this['o'][c2[Ay(0x7f5)]]=c2;},c1;}()),bZ=yU(0x4df)==typeof queueMicrotask?queueMicrotask:'function'==typeof setTimeout?setTimeout:function(c1){c1();};a1['GZ']=function(c1,c2){var Az=yU;for(var c3={},c4=c1[Az(0x61d)]-0x16;0x6054b50!=b6(c1,c4);--c4)(!c4||c1[Az(0x61d)]-c4>0x10016)&&az(0xd);var c5=b5(c1,c4+0x8);if(!c5)return{};var c6=b6(c1,c4+0x10),c7=0xffffffff==c6;c7&&(c4=b6(c1,c4-0xc),0x6064b50!=b6(c1,c4)&&az(0xd),c5=b6(c1,c4+0x20),c6=b6(c1,c4+0x30));for(var c8=c2&&c2['filter'],c9=0x0;c9<c5;++c9){var ca=bO(c1,c6,c7),cb=ca[0x0],cc=ca[0x1],cd=ca[0x2],cf=ca[0x3],cg=ca[0x4],ch=ca[0x5],ci=bN(c1,ch);c6=cg,c8&&!c8({'name':cf,'size':cc,'ors':cd,'cpr':cb})||(cb?0x8==cb?c3[cf]=bn(c1[Az(0x4da)](ci,ci+cc),new a4(cd)):az(0xe,'unknown\x20cpr\x20type\x20'+cb):c3[cf]=ax(c1,ci,ci+cc));}return c3;};},0x1ec0:(b,d)=>{var f={};d['default']=function(g,h,j,k,m){var AA=a0b,p=new Worker(f[h]||(f[h]=URL[AA(0x184)](new Blob([g+';addEventListener(\x22error\x22,function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{'type':AA(0x24b)}))));return p[AA(0x622)]=function(q){var AB=AA,v=q[AB(0x329)],w=v[AB(0x858)];if(w){var x=new Error(w[0x0]);x[AB(0x318)]=w[0x1],x[AB(0x606)]=w[0x2],m(x,null);}else m(null,v);},p[AA(0x17e)](j,k),p;};}},n={};function r(b){var AC=a0b,d=n[b];if(void 0x0!==d)return d[AC(0x3c7)];var f=n[b]={'id':b,'loaded':!0x1,'exports':{}};return e[b][AC(0x6ca)](f[AC(0x3c7)],f,f[AC(0x3c7)],r),f[AC(0x357)]=!0x0,f[AC(0x3c7)];}r['m']=e,t=[],r['O']=(b,d,f,g)=>{var AD=a0b;if(!d){var h=0x1/0x0;for(p=0x0;p<t[AD(0x61d)];p++){for(var [d,f,g]=t[p],j=!0x0,k=0x0;k<d[AD(0x61d)];k++)(!0x1&g||h>=g)&&Object[AD(0x365)](r['O'])[AD(0x174)](q=>r['O'][q](d[k]))?d['splice'](k--,0x1):(j=!0x1,g<h&&(h=g));if(j){t[AD(0x58f)](p--,0x1);var m=f();void 0x0!==m&&(b=m);}}return b;}g=g||0x0;for(var p=t[AD(0x61d)];p>0x0&&t[p-0x1][0x2]>g;p--)t[p]=t[p-0x1];t[p]=[d,f,g];},r['n']=b=>{var AE=a0b,d=b&&b[AE(0x368)]?()=>b[AE(0x854)]:()=>b;return r['d'](d,{'a':d}),d;},r['d']=(b,d)=>{for(var f in d)r['o'](d,f)&&!r['o'](b,f)&&Object['defineProperty'](b,f,{'enumerable':!0x0,'get':d[f]});},r['g']=(function(){var AF=a0b;if(AF(0x97f)==typeof globalThis)return globalThis;try{return this||new Function(AF(0x483))();}catch(b){if('object'==typeof window)return window;}}()),r['o']=(b,d)=>Object[a0AG(0x6cb)][a0AG(0x708)][a0AG(0x6ca)](b,d),r['r']=b=>{var AH=a0AG;'undefined'!=typeof Symbol&&Symbol[AH(0x197)]&&Object['defineProperty'](b,Symbol[AH(0x197)],{'value':AH(0x67c)}),Object[AH(0x182)](b,AH(0x368),{'value':!0x0});},r[a0AG(0x62e)]=b=>(b[a0AG(0x90f)]=[],b[a0AG(0x774)]||(b[a0AG(0x774)]=[]),b),((()=>{var AJ=a0AG,b={0x33a:0x0};r['O']['j']=g=>0x0===b[g];var d=(g,h)=>{var AI=a0b,j,k,[m,p,q]=h,v=0x0;if(m[AI(0x865)](x=>0x0!==b[x])){for(j in p)r['o'](p,j)&&(r['m'][j]=p[j]);if(q)var w=q(r);}for(g&&g(h);v<m[AI(0x61d)];v++)k=m[v],r['o'](b,k)&&b[k]&&b[k][0x0](),b[k]=0x0;return r['O'](w);},f=self[AJ(0x94d)]=self[AJ(0x94d)]||[];f[AJ(0x560)](d[AJ(0xa0c)](null,0x0)),f['push']=d[AJ(0xa0c)](null,f[AJ(0x315)][AJ(0xa0c)](f));})());var i=r['O'](void 0x0,[0x287,0x141],()=>r(0x1ea3)),o=(i=r['O'](i))['ry'],a=i['Cz'],s=i['T$'],c=i['Mj'],l=i['UZ'],u=i['bk'];export{o as ArSdk,a as BEAUTIFY_OPTIONS,s as BLEND_MODES,c as ENTRY_TYPES,l as EntryType,u as OUTPUT_TYPES};
|
|
1
|
+
var self = wx;var t,e={3483:function(t){t.exports=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};function e(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var n=function(){return(n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function r(t,e){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a={next:s(0),throw:s(1),return:s(2)};return"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){var c=[a,s];if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&c[0]?r.return:c[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,c[1])).done)return i;switch(r=0,(c=i?[2&c[0],i.value]:c)[0]){case 0:case 1:i=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!((i=0<(i=o.trys).length&&i[i.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3]))o.label=c[1];else if(6===c[0]&&o.label<i[1])o.label=i[1],i=c;else{if(!(i&&o.label<i[2])){i[2]&&o.ops.pop(),o.trys.pop();continue}o.label=i[2],o.ops.push(c)}}c=e.call(t,o)}catch(s){c=[6,s],r=0}finally{n=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}function i(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(t){if(null==t)throw new TypeError("Cannot convert first argument to object");for(var e=Object(t),n=1;n<arguments.length;n++)if(null!=(r=arguments[n]))for(var r=Object(r),i=Object.keys(Object(r)),o=0,a=i.length;o<a;o++){var s=i[o],c=Object.getOwnPropertyDescriptor(r,s);null!=c&&c.enumerable&&(e[s]=r[s])}return e}});var o=["ext1","ext2","ext3","level","trace","tag","seq","code"],a=(c.prototype.indexOf=function(t,e){for(var n=0;n<t.length;n++)if(t[n].callback===e)return n;return-1},c.prototype.on=function(t,e,n){var r;if(void 0===n&&(n=0),this)return(r=this.eventsList[t])||(this.eventsList[t]=[],r=this.eventsList[t]),-1===this.indexOf(r,e)&&r.push({name:t,type:n||0,callback:e}),this},c.prototype.one=function(t,e){this.on(t,e,1)},c.prototype.remove=function(t,e){if(this){var n=this.eventsList[t];if(n){if(e)return n.length&&(e=this.indexOf(n,e),n.splice(e,1)),this;try{delete this.eventsList[t]}catch(t){}}return null}},c.prototype.clear=function(){this.eventsList={}},c),s=function(t){if(!t||0===t.length)return"{}";t=Array.isArray(t)?t:[t];var e=Object.keys(t[0]),n={},r=(e.forEach((function(e){n[e]=t.map((function(t){return t[e]}))})),n.count=t.length,n);if("string"==typeof r)return r;try{return JSON.stringify(r,_())||"undefined"}catch(r){return"error happen when aegis stringify: \n "+r.message+" \n "+r.stack}};function c(){var t=this;this.emit=function(e,n){if(t){var r;if(null!=(i=t.eventsList[e])&&i.length)for(var i=i.slice(),o=0;o<i.length;o++){r=i[o];try{var a=r.callback.apply(t,[n]);if(1===r.type&&t.remove(e,r.callback),!1===a)break}catch(e){throw e}}return t}},this.eventsList={}}function l(t,e){return"string"==typeof t?t.split("?")[e?1:0]||"":t}function u(t){return"string"==typeof t&&t.startsWith("//")?"undefined"!=typeof location&&"https:"===location.protocol:/^https/.test(t)}function h(t,e,n){var r,i;try{if("function"==typeof(null==e?void 0:e.retCodeHandler))return{code:void 0===(o=(i=e.retCodeHandler(t,null==n?void 0:n.url,null==n?void 0:n.ctx)||{}).code)?"unknown":o,isErr:i.isErr};"string"==typeof t&&(t=JSON.parse(t)),"function"==typeof(null==(r=null==e?void 0:e.ret)?void 0:r.join)&&(v=[].concat(e.ret.map((function(t){return t.toLowerCase()}))));var o,a=Object.getOwnPropertyNames(t).filter((function(t){return-1!==v.indexOf(t.toLowerCase())}));return a.length?{code:""+(o=t[a[0]]),isErr:0!==o&&"0"!==o}:{code:"unknown",isErr:!1}}catch(t){return{code:"unknown",isErr:!1}}}function f(t,e){void 0===e&&(e=3);var n,r,i,o="";return Array.isArray(t)?(o+="[",n=t.length,t.forEach((function(t,r){var i,a;o=(o+="object"==typeof t&&1<e?f(t,e-1):(a="",a+="undefined"==(i=typeof t)||"symbol"==i||"function"==i?"null":"string"==i||"object"==i?'"'+t+'"':t))+(r===n-1?"":",")})),o+="]"):t instanceof Object?(o="{",r=Object.keys(t),i=r.length,r.forEach((function(n,a){var s,c,l;"object"==typeof t[n]&&1<e?o+='"'+n+'":'+f(t[n],e-1):o+=(l="","string"==(c=typeof(s=t[n]))||"object"==c?l+='"'+n+'":"'+s+'"':"function"==typeof s?l+='"'+n+'":"function '+s.name+'"':"symbol"==typeof s?l+='"'+n+'":"symbol"':"number"!=typeof s&&"boolean"!=c||(l+='"'+n+'": '+s),l),o+=a===i-1||a<i-1&&void 0===t[r[a+1]]?"":","})),o+="}"):o+=t,o}var d,p,g,m,y,v=["ret","retcode","code","errcode"],_=function(){var t=new WeakSet;return function(e,n){if(n instanceof Error)return"Error.message: "+n.message+" \n Error.stack: "+n.stack;if("object"==typeof n&&null!==n){if(t.has(n))return"[Circular "+(e||"root")+"]";t.add(n)}return n}},b=function(t){if("string"==typeof t)return t;try{return t instanceof Error?(JSON.stringify(t,_(),4)||"undefined").replace(/"/gim,""):JSON.stringify(t,_(),4)||"undefined"}catch(t){return"error happen when aegis stringify: \n "+t.message+" \n "+t.stack}};function x(t,e){var n,r=[],i=t.config;return t.lifeCycle.on("destroy",(function(){r.length=0})),function(o,a){Array.isArray(o)?r=r.concat(o):r.push(o),e&&r.length>=e||t.sendNow&&0<r.length?(r=B(r),a(r.splice(0,r.length)),n&&clearTimeout(n)):(n&&clearTimeout(n),n=setTimeout((function(){n=null,0<(r=B(r)).length&&a(r.splice(0,r.length))}),i.delay))}}function w(t,e){return Array.isArray(t)?e(t.map((function(t){return e=n(n({},t),{msg:"string"==typeof t.msg?t.msg:[].concat(t.msg).map(b).join(" ")}),o.forEach((function(t){e[t]||delete e[t]})),e;var e}))):e([n(n({},t),{msg:"string"==typeof t.msg?t.msg:b(t.msg)})])}function T(t,e){return function(r,i){var a,s,c,l=Array.isArray(r),u=l?r:[r],h=(t.lifeCycle.emit("beforeRequest",r),t.config.beforeRequest);(u="function"==typeof h?u.map((function(t){try{var n=h({logs:t,logType:e});return(null==n?void 0:n.logType)===e&&null!=n&&n.logs?n.logs:!1!==n&&t}catch(n){return t}})).filter((function(t){return!1!==t})):u).length&&(a=u,r=o,!Array.isArray(a)||a.length<=1||(s=[],c=[],!(c="string"==typeof r?[r]:r)||c.length<=0||(c.forEach((function(t){a.forEach((function(e){null!=e&&e[t]&&s.push(t)}))})),0<s.length&&(a=a.map((function(t){var e={};return s.forEach((function(t){e[t]=""})),n(n({},e),t)}))))),u=a,i(l?u:u[0]))}}function C(t){return function(e,n){t.lifeCycle.emit("modifyRequest",e);var r=t.config.modifyRequest;if("function"==typeof r)try{var i=r(e);"object"==typeof i&&"url"in i&&(e=i)}catch(e){console.error(e)}n(e)}}function S(t){return function(e,n){t.lifeCycle.emit("afterRequest",e);var r=t.config.afterRequest;"function"==typeof r&&!1===r(e)||n(e)}}function k(t){if(t&&t.reduce&&t.length)return 1===t.length?function(e,n){t[0](e,n||V)}:t.reduce((function(t,e){return function(n,r){return void 0===r&&(r=V),t(n,(function(t){return null==e?void 0:e(t,r)}))}}));throw new TypeError("createPipeline need at least one function param")}function E(t,e){Object.getOwnPropertyNames(t).forEach((function(n){"function"==typeof t[n]&&"constructor"!==n&&(e?e[n]="sendPipeline"===n?function(){return function(){}}:function(){}:t[n]=function(){})}))}function P(t){try{var e,n,r,i="";return i=t.pageUrl||(n=(e=getCurrentPages())[e.length-1]||{},o=n.options,r=Object.keys(o).length?"?"+Object.keys(o).map((function(t){return t+"="+o[t]})).join("&"):"",n.route?n.route+r:""),i="function"==typeof t.urlHandler?t.urlHandler():i}catch(t){return""}var o}function R(t,e){if("string"==typeof t&&"string"==typeof e){if(t===e)return 1;for(var n=t.split("."),r=e.split("."),i=Math.max(n.length,r.length),o=0;o<i;o++){var a=~~n[o],s=~~r[o];if(a<s)return;if(s<a)return 1}}}function O(t){return R(Y=Y||G.getSystemInfoSync().SDKVersion,"1.1.1")&&G.canIUse?G.canIUse(t):!!G[t]}function D(t){for(var e,n={unknown:/unknown|none/i,wifi:/wifi/i,net2g:/2g/i,net3g:/3g/i,net4g:/4g/i,net5g:/5g/i,net6g:/6g/i},r=g.unknown,i=0;i<Object.keys(n).length;i++){var o=Object.keys(n)[i];if(null!=(e=n[o])&&e.test(t)){r=g[o];break}}return r}function A(t){var e=t.apiName,n=et[e];n?n.hackCloudReq.addCallback(t):(n=tt.cloud[e],et[e]={hackCloudReq:new nt(t),originApi:n}),et[e]}function I(t){var e=t.apiName,n=it[e];n?n.hackReq.addCallback(t):(n=wx[e],it[e]={hackReq:new ot(t),originApi:n}),it[e]}(q=d=d||{}).INFO_ALL="-1",q.API_RESPONSE="1",q.INFO="2",q.ERROR="4",q.PROMISE_ERROR="8",q.AJAX_ERROR="16",q.SCRIPT_ERROR="32",q.IMAGE_ERROR="64",q.CSS_ERROR="128",q.CONSOLE_ERROR="256",q.MEDIA_ERROR="512",q.RET_ERROR="1024",q.REPORT="2048",q.PV="4096",q.EVENT="8192",q.PAGE_NOT_FOUND_ERROR="16384",q.WEBSOCKET_ERROR="32768",q.BRIDGE_ERROR="65536",(q=p=p||{})[q.android=1]="android",q[q.ios=2]="ios",q[q.windows=3]="windows",q[q.macos=4]="macos",q[q.linux=5]="linux",q[q.devtools=6]="devtools",q[q.other=100]="other",(q=g=g||{})[q.unknown=100]="unknown",q[q.wifi=1]="wifi",q[q.net2g=2]="net2g",q[q.net3g=3]="net3g",q[q.net4g=4]="net4g",q[q.net5g=5]="net5g",q[q.net6g=6]="net6g",(q=m=m||{}).LOG="log",q.SPEED="speed",q.PERFORMANCE="performance",q.OFFLINE="offline",q.WHITE_LIST="whiteList",q.VITALS="vitals",q.PV="pv",q.CUSTOM_PV="customPV",q.EVENT="event",q.CUSTOM="custom",q.SDK_ERROR="sdkError",q.SET_DATA="setData",q.LOAD_PACKAGE="loadPackage",(q=y=y||{}).production="production",q.development="development",q.gray="gray",q.pre="pre",q.daily="daily",q.local="local",q.test="test",q.others="others";var F,L,M,N,j,B=function(t){return t.filter((function(e,n){return"static"!==e.type||!t.find((function(t,r){return e.url===t.url&&200===e.status&&n<r}))}))},U=function(t){t.level===d.INFO_ALL&&(t.level=d.INFO)},z=function(t){return(Array.isArray(t)?t:[t]).map((function(t){return Object.getOwnPropertyNames(t).reduce((function(e,n){return"ctx"!==n&&(e[n]=t[n]),e}),{level:d.INFO,msg:""})}))},W=function(t){return function(e){return t.sendPipeline([function(e,n){return n({url:t.config.url||"",data:s(z(e)),method:"post",contentType:"application/json",type:m.LOG,log:e,requestConfig:{timeout:5e3},success:function(){var r=t.config.onReport;"function"==typeof r&&e.forEach((function(t){r(t)})),"function"==typeof n&&n([])},fail:function(e){"403 forbidden"===e&&t.destroy()}})}],m.LOG)(e)}},V=function(){},q=(Object.defineProperty(wt.prototype,"__version__",{get:function(){return console.warn("__version__ has discard, please use version"),"1.36.3"},enumerable:!1,configurable:!0}),Object.defineProperty(wt.prototype,"LogType",{get:function(){return console.warn("LogType has discard, please use logType"),d},enumerable:!1,configurable:!0}),wt.prototype.init=function(t){this.setConfig(t);for(var e=0;e<wt.installedPlugins.length;e++)try{wt.installedPlugins[e].patch(this)}catch(t){this.sendSDKError(t)}this.lifeCycle.emit("onInited")},wt.prototype.setConfig=function(t){Object.assign(this.config,t);var e=(t=this.config).id,n=t.uin,r=t.version,i=t.ext1,o=t.ext2,a=t.ext3,s=t.aid,c=void 0===(l=t.env)?"production":l,l=t.pageUrl;return t=this.bean.id!==e||this.bean.uin!==n||this.bean.aid!==s,this.bean.id=e||"",this.bean.uin=n||"",this.bean.version=r||"1.36.3",this.bean.aid=s||"",this.bean.env=function(){switch(c){case y.production:case y.development:case y.gray:case y.pre:case y.daily:case y.local:case y.test:case y.others:return 1;default:return}}()?c:y.others,l&&this.extendBean("from",encodeURIComponent(l)),i&&this.extendBean("ext1",encodeURIComponent(i)),o&&this.extendBean("ext2",encodeURIComponent(o)),a&&this.extendBean("ext3",encodeURIComponent(a)),t&&this.lifeCycle.emit("onConfigChange",this.config),this.config},wt.use=function(t){-1===wt.installedPlugins.indexOf(t)&&t.aegisPlugin&&wt.installedPlugins.push(t)},wt.unuse=function(t){-1!==(t=wt.installedPlugins.indexOf(t))&&wt.installedPlugins.splice(t,1)},wt.prototype.info=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r={level:d.INFO,msg:t};1===t.length&&t[0].msg&&Object.assign(r,n({},t[0]),{level:d.INFO}),this.normalLogPipeline(r)},wt.prototype.infoAll=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r={level:d.INFO_ALL,msg:t};1===t.length&&t[0].msg&&Object.assign(r,n({},t[0]),{level:d.INFO_ALL}),this.normalLogPipeline(r)},wt.prototype.report=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r={level:d.REPORT,msg:t};1===t.length&&t[0].msg&&Object.assign(r,n({},t[0])),this.normalLogPipeline(r)},wt.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r={level:d.ERROR,msg:t};1===t.length&&t[0].msg&&Object.assign(r,n({},t[0]),{level:d.ERROR}),this.normalLogPipeline(r)},wt.prototype.speedLogPipeline=function(t){throw new Error('You need to override "speedLogPipeline" method')},wt.prototype.reportPv=function(t){var e,n=this;t&&(console.warn("reportPv is deprecated, please use reportEvent"),e=""+Object.getOwnPropertyNames(this.bean).filter((function(t){return"id"!==t})).map((function(t){return t+"="+n.bean[t]})).join("&"),this.sendPipeline([function(r,i){i({url:n.config.url+"/"+t+"?"+e,addBean:!1,type:m.CUSTOM_PV,fail:function(t){"403 forbidden"===t&&n.destroy()}})}],m.CUSTOM_PV)(null))},wt.prototype.reportEvent=function(t){t&&((t="string"==typeof t?{name:t,ext1:this.config.ext1||"",ext2:this.config.ext2||"",ext3:this.config.ext3||""}:t).name?this.eventPipeline(t):console.warn("reportEvent params error"))},wt.prototype.reportTime=function(t,e){if("object"==typeof t)return this.reportT(t);"string"==typeof t?"number"==typeof e?e<0||6e4<e?console.warn("reportTime: duration must between 0 and 60000"):this.submitCustomTime(t,e):console.warn("reportTime: second param must be number"):console.warn("reportTime: first param must be a string")},wt.prototype.reportT=function(t){var e=t.name,n=t.duration,r=void 0===(r=t.ext1)?"":r,i=void 0===(i=t.ext2)?"":i,o=void 0===(o=t.ext3)?"":o;if(t=t.from,"string"==typeof e&&"number"==typeof n&&"string"==typeof r&&"string"==typeof i&&"string"==typeof o){if(!(n<0||6e4<n))return this.submitCustomTime(e,n,r,i,o,void 0===t?"":t);console.warn("reportTime: duration must between 0 and 60000")}else console.warn("reportTime: params error")},wt.prototype.time=function(t){"string"==typeof t?this.timeMap[t]?console.warn("Timer "+t+" already exists"):this.timeMap[t]=Date.now():console.warn("time: first param must be a string")},wt.prototype.timeEnd=function(t){"string"==typeof t?this.timeMap[t]?(this.submitCustomTime(t,Date.now()-this.timeMap[t]),delete this.timeMap[t]):console.warn("Timer "+t+" does not exist"):console.warn("timeEnd: first param must be a string")},wt.prototype.submitCustomTime=function(t,e,n,r,i,o){this.customTimePipeline({name:t,duration:e,ext1:n||this.config.ext1,ext2:r||this.config.ext2,ext3:i||this.config.ext3,from:o||void 0})},wt.prototype.extendBean=function(t,e){this.bean[t]=e},wt.prototype.sendPipeline=function(t,e){var n,r=this;return k(i([function(t,e){if("number"!=typeof n.config.random&&(console.warn("random must in [0, 1], default is 1."),n.config.random=1),!n.isHidden||!n.isGetSample)if(n.isGetSample)n.isHidden||e(t);else{if(n.isGetSample=!0,Math.random()<n.config.random)return n.isHidden=!1,e(t);n.isHidden=!0}},T(n=this,e)],t,[C(this),function(t,e){r.request(t,(function(){for(var n,o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];r.failRequestCount=0,e({isErr:!1,result:o,logType:null==t?void 0:t.type,logs:null==t?void 0:t.log}),null!=(n=null==t?void 0:t.success)&&n.call.apply(n,i([t],o))}),(function(){for(var n,o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];10<=++r.failRequestCount&&r.destroy(),e({isErr:!0,result:o,logType:null==t?void 0:t.type,logs:null==t?void 0:t.log}),null!=(n=null==t?void 0:t.fail)&&n.call.apply(n,i([t],o))}))},S(this)]))},wt.prototype.send=function(t,e,n){var r=this;return k([C(this),function(t,i){r.request(t,(function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];i({isErr:!1,result:n,logType:t.type,logs:t.log}),null!=e&&e.apply(void 0,n)}),(function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];i({isErr:!0,result:e,logType:t.type,logs:t.log}),null!=n&&n.apply(void 0,e)}))},S(this)])(t)},wt.prototype.ready=function(t,e,n){throw new Error('You need to override "ready" method')},wt.prototype.request=function(t,e,n){throw new Error('You need to override "request" method')},wt.prototype.sendSDKError=function(t){var e=this;this.sendPipeline([function(t,n){n({url:e.config.url+"?id=1085&msg[0]="+encodeURIComponent(b(t))+"&level[0]=2&from="+e.config.id+"&count=1&version="+e.config.id+"(1.36.3)",addBean:!1,method:"get",type:m.SDK_ERROR,log:t})}],m.SDK_ERROR)(t)},wt.prototype.destroy=function(t){void 0===t&&(t=!1);var e,n,r=wt.instances.indexOf(this);-1!==r&&wt.instances.splice(r,1);for(var i=wt.installedPlugins.length-1;0<=i;i--)try{wt.installedPlugins[i].unpatch(this)}catch(t){this.sendSDKError(t)}if(this.lifeCycle.emit("destroy"),this.lifeCycle.clear(),t)e=this,n=Object.getOwnPropertyDescriptors(e),Object.keys(n).forEach((function(t){n[t].writable&&(e[t]=null)})),Object.setPrototypeOf(this,null);else{for(var o=this;o.constructor!==Object&&E(o,this),o=Object.getPrototypeOf(o););0===wt.instances.length&&(E(r=Object.getPrototypeOf(this).constructor),E(wt))}},wt.version="1.36.3",wt.instances=[],wt.logType=d,wt.environment=y,wt.installedPlugins=[],wt),H=(xt.prototype.patch=function(t){this.canUse(t)&&this.exist(t)&&(this.instances.push(t),this.triggerInit(t),this.triggerOnNewAegis(t))},xt.prototype.unpatch=function(t){-1!==(t=this.instances.indexOf(t))&&(this.instances.splice(t,1),0===this.instances.length&&this.uninstall())},xt.prototype.countInstance=function(){return this.instances.length},xt.prototype.uninstall=function(){var t;null!=(t=null==(t=this.option)?void 0:t.destroy)&&t.apply(this)},xt.prototype.walk=function(t){var e=this;this.instances.forEach((function(n){var r=e.canUse(n);r&&t(n,r)}))},xt.prototype.canUse=function(t){return!(!(t=this.getConfig(t))||"object"!=typeof t)||!!t},xt.prototype.getConfig=function(t){return null==(t=t.config)?void 0:t[this.name]},xt.prototype.exist=function(t){return-1===this.instances.indexOf(t)},xt.prototype.triggerInit=function(t){var e;this.inited||(this.inited=!0,null!=(e=null==(e=this.option)?void 0:e.init)&&e.call(this.option,this.getConfig(t)))},xt.prototype.triggerOnNewAegis=function(t){var e;null!=(e=null==(e=this.option)?void 0:e.onNewAegis)&&e.call(this.option,t,this.getConfig(t))},xt),G=wx||qq,Y="",Z=new H({name:"offlineLog",onNewAegis:function(t){if(G.getFileSystemManager)try{var e=t.config,n=e.id,r=void 0===n?"":n,i=e.uin,o=void 0===i?0:i,a=e.offlineUrl,s=void 0===a?"":a,c=e.offlineLogLimit,l=new K({limit:c});t.lifeCycle.on("beforeWrite",(function(e){l.save2Offline(e=void 0===e?[]:e,t.config)})),l.ready((function(e){var n=(t.bean||{}).aid,i=void 0===n?"":n;!e&&r&&(o||i)&&t.send({url:s+"/offlineAuto",type:m.OFFLINE,log:m.OFFLINE},(function(n){var a=(null==n?void 0:n.data).secretKey;a&&!e&&l.getLogs({id:r,uin:o},(function(e,n){e?console.error(e):t.send({url:s+"/offlineLog",data:{logs:n,secretKey:a,id:r,uin:o,aid:i},method:"post",type:m.OFFLINE,log:n},(function(){l.clearLogs()}))}))}))}))}catch(t){console.error(t)}else console.warn("[aegis-mp-sdk]unsupport getFileSystemManager offline log not work!")}}),K=(bt.prototype.getLogs=function(t,e){var n=this.fileSystem,r=this.filePath;n.readFile({filePath:r,encoding:"utf8",fail:function(t){console.error(t)},success:function(t){t=(void 0===(t=t.data)?"":t).toString().split("\n").filter((function(t){return t})).map((function(t){return JSON.parse(t)})),e(null,t)}})},bt.prototype.checkLimit=function(t,e){void 0===e&&(e=function(){});var n=this.fileSystem,r=this.filePath,i=this.limitSize;n.readFile({filePath:r,encoding:"utf8",success:function(o){if((o=(o=void 0===(o=o.data)?"":o).toString()+t).length>i){for(var a=o.split("\n"),s="",c=a.length-1;0<=c&&!(a[c]&&(s=a[c]+"\n"+s).length>i);c--);n.writeFile({filePath:r,data:s,success:e})}else n.appendFile({data:t,filePath:r,encoding:"utf8",success:e,fail:function(t){console.error(t)}})}})},bt),X=new H({name:"device",onNewAegis:function(t){return e=this,o=function(){return r(this,(function(e){return this.setSystemInfo(t),this.refreshNetwork(t),this.setNetworkChange(t),[2]}))},new(i=(i=n=void 0)||Promise)((function(t,r){function a(t){try{c(o.next(t))}catch(t){r(t)}}function s(t){try{c(o.throw(t))}catch(t){r(t)}}function c(e){var n;e.done?t(e.value):((n=e.value)instanceof i?n:new i((function(t){t(n)}))).then(a,s)}c((o=o.apply(e,n||[])).next())}));var e,n,i,o},setSystemInfo:function(t){var e=this;try{O("getSystemInfo")&&G.getSystemInfo({success:function(n){var r=n.platform,i=n.model,o=n.windowHeight,a=n.windowWidth,s=void 0===(s=n.screenWidth)?0:s;n=void 0===(n=n.screenHeight)?0:n,t.extendBean("platform",e.getPlatFormType(r)),t.extendBean("model",i),t.extendBean("vp",Math.round(a)+" * "+Math.round(o)),t.extendBean("sr",Math.round(s)+" * "+Math.round(n))}})}catch(t){}},getPlatFormType:function(t){for(var e,n={android:/android/i,ios:/ios/i,windows:/windows/i,macos:/mac/i,devtools:/devtools/i},r=p.other,i=0;i<Object.keys(n).length;i++){var o=Object.keys(n)[i];if(null!=(e=n[o])&&e.test(t)){r=p[o];break}}return r},setNetworkChange:function(t){O("onNetworkStatusChange")&&G.onNetworkStatusChange((function(e){e=D(e.networkType),t.extendBean("netType",e)}))},setNetworkType:function(t){O("getNetworkType")&&G.getNetworkType({success:function(e){e=D(e.networkType),t.extendBean("netType",e)}})},refreshNetwork:function(t){var e=this;this.timer&&clearTimeout(this.timer),this.setNetworkType(t),this.timer=setTimeout((function(){e.refreshNetwork(t)}),1e4)}}),$=G.request,J=(e(_t,j=q),Object.defineProperty(_t.prototype,"getBean",{get:function(){var t=this;return this.bean?Object.getOwnPropertyNames(this.bean).map((function(e){return e+"="+t.bean[e]})).join("&")+"&from="+encodeURIComponent(P(this.config)):"from="+encodeURIComponent(P(this.config))},enumerable:!1,configurable:!0}),_t.prototype.initOfflineLog=function(){_t.use(Z)},_t.prototype.uploadLogs=function(t,e){this.lifeCycle.emit("uploadLogs",t=void 0===t?{}:t,e=void 0===e?{}:e)},_t.prototype.reportPv=function(t){var e,n=this;t&&(e=Object.getOwnPropertyNames(this.bean).filter((function(t){return"id"!==t})).map((function(t){return t+"="+n.bean[t]})).join("&")+"&from="+encodeURIComponent(P(this.config)),this.send({url:this.config.url+"/"+t+"?"+e,addBean:!1,type:m.CUSTOM_PV,log:m.CUSTOM_PV},(function(){}),(function(){})))},_t.sessionID="session-"+Date.now(),_t.asyncPluginIndex=0,q=_t,new H({name:"aid",onNewAegis:function(t){this.initAid((function(e){t.bean.aid=e,t.config.aid=e}))},initAid:function(t){G.getStorage({key:"AEGIS_ID",success:function(e){t(e.data)},fail:function(){var e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}));G.setStorage({key:"AEGIS_ID",data:e,success:function(){t(e)}})}})}})),Q=(vt.prototype.addCallback=function(t){t&&this.callbacks.push(t)},vt.prototype.prefixHandler=function(t){return n(n({},t),{aegisRequestStartTime:+new Date})},vt.prototype.successHandler=function(t,e){var n;this.callbacks.forEach((function(n){var r;try{null!=(r=n.success)&&r.call(n,t,e)}catch(n){}})),null!=(n=e.success)&&n.call(e,t,e)},vt.prototype.failHandler=function(t,e){var n;this.callbacks.forEach((function(n){var r;try{null!=(r=n.fail)&&r.call(n,t,e)}catch(n){}})),null!=(n=e.fail)&&n.call(e,t,e)},vt.prototype.completeHandler=function(t,e){var n;this.callbacks.forEach((function(n){var r;try{null!=(r=n.complete)&&r.call(n,t,e)}catch(n){}})),null!=(n=e.complete)&&n.call(e,t,e)},vt.prototype.override=function(){try{this.defineApiProperty()}catch(t){console.warn("cannot override `"+this.apiName+"`, error is: "+t)}finally{this.isOverride=!0}},vt),tt=wx||qq,et={},nt=(e(yt,N=Q),yt.prototype.defineApiProperty=function(){var t=this;tt.cloud&&tt.cloud[this.apiName]&&Object.defineProperty(tt.cloud,this.apiName,{get:function(){return t.hackHandler.bind(t)}})},yt.prototype.hackHandler=function(t){var e=this,r=this.prefixHandler(t);return new Promise((function(t,i){var o=null==(o=et[e.apiName])?void 0:o.originApi;null!=o&&o(n(n({},r),{success:function(n){e.successHandler(n,r),t(n)},fail:function(t){e.failHandler(t,r),i(t)},complete:function(t){e.completeHandler(t,r)}}))}))},yt),rt=wx||qq,it={},ot=(e(mt,M=Q),mt.prototype.defineApiProperty=function(){var t=this;Object.defineProperty(rt,this.apiName,{get:function(){return t.hackHandler.bind(t)}})},mt.prototype.hackHandler=function(t){var e=this,r=this.prefixHandler(t);return null==(t=null==(t=it[this.apiName])?void 0:t.originApi)?void 0:t(n(n({},r),{success:function(t){e.successHandler(t,r)},fail:function(t){e.failHandler(t,r)},complete:function(t){e.completeHandler(t,r)}}))},mt),at=new H({name:"reportApiSpeed",override:!1,onNewAegis:function(t){this.override||(this.override=!0,this.hackRequest(t.config),this.overrideCallFunction(t.config),this.overrideCallContainer(t.config))},hackRequest:function(t){var e=this;I({apiName:"request",success:function(n,r){var i,o,a,s;t.hostUrl&&-1<r.url.indexOf(t.hostUrl)||(i={method:r.method||"get",url:l(r.url),duration:Date.now()-r.aegisRequestStartTime,status:n.statusCode||0,nextHopProtocol:"",isHttps:u(r.url),type:"fetch"},o=null==(o=t.api)?void 0:o.apiDetail,a=(s=h(n.data,t.api,{url:r.url,ctx:n})||{}).code,s=s.isErr,r="req url: "+i.url+" \n \nreq method: "+i.method+" \n \nreq param: "+(o?b(r.data):"")+" \n \nres duration: "+i.duration+"ms \n \nres status: "+(n.statusCode||0)+" \n \nres retcode: "+a+" \n \nres data: "+(o?f(n.data):""),e.publishNormalLog({msg:r,level:d.API_RESPONSE,ctx:n}),i.ret=a,i.isErr=+s,e.publishSpeedLog(i),s&&e.publishNormalLog({msg:r,level:d.RET_ERROR,ctx:n}))},fail:function(n,r){t.hostUrl&&-1<r.url.indexOf(t.hostUrl)||(r={method:r.method||"get",url:l(r.url),duration:Date.now()-r.aegisRequestStartTime,status:0,nextHopProtocol:"",isHttps:u(r.url),type:"fetch"},e.publishSpeedLog(r))}})},overrideCallFunction:function(t){var e=this;A({apiName:"callFunction",success:function(n,r){e.cloudSuccessCallback(t,r,n,"callFunction")},fail:function(t,n){n={method:"call",url:"wx.cloud.callFunction."+n.name,duration:Date.now()-n.aegisRequestStartTime,status:0,nextHopProtocol:"",type:"fetch",errMsg:t.errMsg,isHttps:!0},e.publishSpeedLog(n)}})},overrideCallContainer:function(t){var e=this;A({apiName:"callContainer",success:function(n,r){e.cloudSuccessCallback(t,r,n,"callContainer")},fail:function(t,n){n={method:"call",url:"wx.cloud.callContainer."+n.path,duration:Date.now()-n.aegisRequestStartTime,status:0,nextHopProtocol:"",type:"fetch",errMsg:t.errMsg,isHttps:!0},e.publishSpeedLog(n)}})},cloudSuccessCallback:function(t,e,n,r){var i="callFunction"===r?e.name:e.path,o="callFunction"===r?n.result:n.data,a=(i={method:"call",url:"wx.cloud."+r+"."+i,duration:Date.now()-e.aegisRequestStartTime,status:200,nextHopProtocol:"",type:"fetch",isHttps:!0},["apiName","aegisRequestStartTime","config","success","fail","complete"]),s=Object.keys(e).reduce((function(t,n){return a.includes(n)||(t[n]=e[n]),t}),{}),c=(r="callFunction"===r?(null==(r=n.data)?void 0:r.code)||0:n.statusCode,(l=h(o,t.api,{url:i.url,ctx:n})||{}).code),l=void 0!==(l=l.isErr)&&l;i.ret=c,i.isErr=+l,t=null==(c=t.api)?void 0:c.apiDetail,c="req url: "+i.url+"\n \nreq type: "+i.type+"\n \nreq params: "+(t?f(s):"")+"\n \nres status: "+r+"\n \nres retcode: "+i.ret+"\n \nres duration: "+i.duration+"ms \n \nres data: "+(t?f(o):"")+"\n ",this.publishNormalLog({msg:c,level:d.API_RESPONSE,ctx:n}),this.publishSpeedLog(i),l&&this.publishNormalLog({msg:c,level:d.RET_ERROR,ctx:n})},publishSpeedLog:function(t){this.$walk((function(e){e.speedLogPipeline(t)}))},publishNormalLog:function(t){this.$walk((function(e){e.normalLogPipeline(t)}))}}),st=wx||qq,ct=st.connectSocket,lt=(gt.prototype.addConfig=function(t){var e=t.send;t=t.onError,e&&this.sends.push(e),t&&this.onErrors.push(t)},gt.prototype.toHack=function(t){var e=this,r=(this.onErrors.forEach((function(e){t.onError(e)})),t.send);return Object.defineProperty(t,"send",{get:function(){return function(i){return new Promise((function(o){r.call(t,n(n({},i),{fail:function(t){e.sends.forEach((function(e){var n;null!=(n=e.fail)&&n.call(e,t,i)})),o(t)}}))}))}}}),t},gt),ut=(e(pt,L=Q),pt.prototype.addTaskConf=function(t){this.taskHack.addConfig(t)},pt.prototype.defineApiProperty=function(){var t=this;Object.defineProperty(st,"connectSocket",{get:function(){return t.hackHandler.bind(t)}})},pt.prototype.hackHandler=function(t){var e=this,r=this.prefixHandler(t);return t=ct(n(n({},r),{success:function(t){e.successHandler(t,r)},fail:function(t){e.failHandler(t,r)},complete:function(t){e.completeHandler(t,r)}})),this.taskHack.toHack(t),t},pt),ht=(Q=new H({name:"onError",onNewAegis:function(t){var e=G.getSystemInfoSync().SDKVersion;this.listenError(),this.hackNetWork(t),this.hackCloud(t),t.config.websocketHack&&R(e,"1.7.0")&&this.hackWsConnect()},listenError:function(){var t=this;"function"==typeof G.onError&&G.onError((function(e){e&&t.publishErrorLog({msg:e,level:d.ERROR})})),O("onUnhandledRejection")&&G.onUnhandledRejection((function(e){!(e=e.reason)||-1<JSON.stringify(e).indexOf("request:fail")||t.publishErrorLog({msg:e,level:d.PROMISE_ERROR})})),O("onPageNotFound")&&G.onPageNotFound((function(e){e&&t.publishErrorLog({msg:e,level:d.PAGE_NOT_FOUND_ERROR})}))},publishErrorLog:function(t){this.$walk((function(e){e.normalLogPipeline(t)}))},hackNetWork:function(t){for(var e=this,n=t.config,r=0,i=[{apiName:"request",complete:function(t,r){return e.requestCompleteError(t,r,n)}},{apiName:"uploadFile",complete:function(t,r){return e.uploadFileCompleteError(t,r,n)}},{apiName:"downloadFile",complete:function(t,r){return e.downloadFileCompleteError(t,r,n)}}];r<i.length;r++){var o;I({apiName:(o=i[r]).apiName,complete:o=o.complete})}},requestCompleteError:function(t,e,n){var r,i=t.errMsg,o=t.statusCode;n.hostUrl&&-1<(null==(r=e.url)?void 0:r.indexOf(n.hostUrl))||(r=this.getErrorType({errMsg:i,statusCode:o}))&&this.publishNetWorkError({apiName:"request",opts:e,res:t,config:n,type:r})},downloadFileCompleteError:function(t,e,n){var r=t.errMsg,i=t.statusCode,o=t.filePath,a=(t=t.tempFilePath,this.getErrorType({errMsg:r,statusCode:i}));a&&(n=null==(n=n.api)?void 0:n.apiDetail,this.publishErrorLog({msg:"AJAX_ERROR: downloadFile "+a+"\n \nres status: "+(i||0)+"\n \nres duration: "+(Date.now()-e.aegisRequestStartTime)+"ms\n \nres filePath: "+o+"\n \nres tempFilePath: "+t+"\n \nreq url: "+e.url+"\n \nreq method: "+(e.method||"get")+"\n \nreq param: "+(n?b(e.data):"")+"\n \nerrMsg: "+r.slice(0,1e3),level:d.AJAX_ERROR}))},uploadFileCompleteError:function(t,e,n){var r=t.errMsg,i=t.statusCode;(r=this.getErrorType({errMsg:r,statusCode:i}))&&this.publishNetWorkError({apiName:"uploadFile",opts:e,res:t,config:n,type:r})},hackCloud:function(t){for(var e=this,n=t.config,r=0,i=[{apiName:"callFunction",complete:function(t,r){return e.callFunctionCompleteError(t,r,n)}},{apiName:"callContainer",complete:function(t,r){return e.callContainerCompleteError(t,r,n)}}];r<i.length;r++){var o;A({apiName:(o=i[r]).apiName,complete:o=o.complete})}},callFunctionCompleteError:function(t,e,n){(-1<t.errMsg.indexOf("fail")||-1<t.errMsg.indexOf("timeout"))&&(n=null==(n=n.api)?void 0:n.apiDetail,this.publishErrorLog({msg:"AJAX_ERROR: cloud.callFunction:fail\n \nres status: 0\n \nres duration: "+(Date.now()-e.aegisRequestStartTime)+"ms\n \nres data: "+(n?b(t):"")+"\n \nreq url: cloud.callFunction."+e.name+"\n \nreq method: POST\n \nreq param: "+(n?b(e.data):"")+"\n \nerrMsg: "+t.errMsg.slice(0,1e3),level:d.AJAX_ERROR}))},callContainerCompleteError:function(t,e,n){var r=t.errMsg,i=t.statusCode;(400<=i||-1<r.indexOf("fail")||-1<r.indexOf("timeout"))&&(n=null==(n=n.api)?void 0:n.apiDetail,this.publishErrorLog({msg:"AJAX_ERROR: cloud.callContainer:fail\n \nres status: "+(i||0)+"\n \nres duration: "+(Date.now()-e.aegisRequestStartTime)+"ms\n \nres data: "+(n?b(t):"")+"\n \nreq url: "+e.path+"\n \nreq method: "+(e.method||"POST")+"\n \nreq param: "+(n?b(e.data):"")+"\n \nerrMsg: "+r.slice(0,1e3),level:d.AJAX_ERROR}))},publishNetWorkError:function(t){var e=t.apiName,n=t.opts,r=t.res,i=t.config,o=(t=t.type,r.errMsg),a=r.statusCode,s=r.data,c=null==(c=i.api)?void 0:c.apiDetail,l="wx.cloud.callFunction."+n.url;i=h(s,i.api,{url:l,ctx:r}).code,this.publishErrorLog({msg:"AJAX_ERROR: "+e+" "+t+"\n \nres status: "+(a||0)+"\n \nres retcode: "+i+"\n \nres duration: "+(Date.now()-n.aegisRequestStartTime)+"ms\n \nres data: "+(c?b(s):"")+"\n \nreq url: "+n.url+"\n \nreq method: "+(n.method||"get")+"\n \nreq param: "+(c?b(n.data):"")+"\n \nerrMsg: "+o.slice(0,1e3),level:d.AJAX_ERROR})},getErrorType:function(t){var e=t.errMsg,n=(t=t.statusCode,"");return-1<e.indexOf("timeout")||-1<e.indexOf("超时")?n="timeout":400<=t?n="error":(-1<e.indexOf("fail")||!t||t<0)&&(n="failed"),n},hackWsConnect:function(){var t,e,n=this;I({apiName:"sendSocketMessage",fail:function(t){n.publishSocketError(t)}}),t=(e={connectCallback:{fail:function(t){n.publishSocketError(t)}},taskOpt:{onError:function(t){n.publishSocketError(t)},send:{fail:function(t){n.publishSocketError(t)}}}}).connectCallback,e=e.taskOpt,F?F.addCallback(t):F=new ut(t),e&&F.addTaskConf(e)},publishSocketError:function(t){t&&this.publishErrorLog({msg:t.errMsg,level:d.WEBSOCKET_ERROR})}}),new H({name:"reportAssetSpeed",isStart:!1,onNewAegis:function(t){this.isStart||(this.isStart=!0,this.start(t))},start:function(){var t=this;G.getPerformance&&G.getPerformance().createObserver((function(e){null!=(e=e.getEntries())&&e.forEach((function(e){"number"!=typeof e.duration||e.duration<=0||t.publishAssetLog(e)}))})).observe({entryTypes:["resource"]})},generateLog:function(t){return{url:""+l(t.uri),method:"get",duration:Math.round(100*t.duration)/100,status:200,type:"static",isHttps:!0,urlQuery:"",nextHopProtocol:"",domainLookup:0,connectTime:0}},publishAssetLog:function(t){var e=this;this.$walk((function(n){n.speedLogPipeline(e.generateLog(t))}))}})),ft=["onLaunch","onHide","onError","onLoad","onReady","onShow","onUnload"],dt=new H({name:"pagePerformance",pageNavigationStartTime:{},onNewAegis:function(t){try{O("getPerformance")&&this.reportPerformance(t),this.setPagePV(t),this.reportSetDataTiming(t)}catch(t){}},reportPerformance:function(t){var e=this,n=null==(n=G.getPerformance())?void 0:n.createObserver((function(n){var r={},i=null==(i=n.getEntriesByName("appLaunch"))?void 0:i[0],o=null==(o=n.getEntriesByName("firstRender"))?void 0:o[0],a=null==(a=n.getEntriesByName("evaluateScript"))?void 0:a[0],s=null==(s=n.getEntriesByName("route"))?void 0:s[0],c=null==(c=null==(c=n.getEntriesByName("firstPaint"))?void 0:c[0])?void 0:c.startTime,l=null==(l=(null==(l=n.getEntriesByName("firstPaint"))?void 0:l[0])||(null==(l=n.getEntriesByName("route"))?void 0:l[0])||(null==(l=n.getEntriesByName("appLaunch"))?void 0:l[0]))?void 0:l.pageId,u=null==(n=(null==(u=n.getEntriesByName("route"))?void 0:u[0])||(null==(u=n.getEntriesByName("appLaunch"))?void 0:u[0]))?void 0:n.startTime;l&&(e.pageNavigationStartTime[l]=null,u&&(e.pageNavigationStartTime[l]=u)),i&&(r.appLaunch=i.duration),o&&(r.firstScreenTiming=o.duration),a&&(r.scriptEvaluateTiming=a.duration),s&&(r.pageRouteTiming=s.duration),c&&u?r.firstPaintTiming=Math.max(c-u,0):c&&e.pageNavigationStartTime[l]&&(r.firstPaintTiming=Math.max(c-e.pageNavigationStartTime[l],0)),e.publish(r,t)}));null!=n&&n.observe({entryTypes:["navigation","render","script"]})},publish:function(t,e){var n,r,i,o=[],a=e.config,s=-1===(null==(n=e.config.performanceUrl)?void 0:n.indexOf("?"))?"?":"&";for(r in t)o.push(r+"="+t[r]);"function"==typeof a.urlHandler?(i=a.urlHandler()||window.location.href,this.$walk((function(n){n.send({url:e.config.performanceUrl+s+o.join("&")+"&from="+encodeURIComponent(i),beanFilter:["from"],type:m.PERFORMANCE,log:t})}))):this.$walk((function(n){n.send({url:e.config.performanceUrl+s+o.join("&"),type:m.PERFORMANCE,log:t})}))},setPagePV:function(t){var e=this;G.onAppRoute&&G.onAppRoute((function(t){"appLaunch"!==t.openType&&(e.$walk((function(t){t.send({url:""+t.config.pvUrl,type:m.PV})})),e.reportPageLoaded(t))}))},reportPageLoaded:function(t){t="infoType: behaviorBacktracking\ndataType: pageLoadAndRoute\npageLoadedPath: "+t.path+"\nopenType: "+t.openType,this.publishNormalLog({msg:t,level:d.INFO})},publishNormalLog:function(t){this.$walk((function(e){e.normalLogPipeline(t)}))},reportSetDataTiming:function(t){var e,n,r,i,o,a,s,c,l,u,h=this;!0!==(u=(u=t.config).setDataReportConfig||(null==(u=u.pagePerformance)?void 0:u.setDataReportConfig)||{}).disabled&&(e=u.timeThreshold,n=!1!==u.withDataPaths,r=e&&0<+e?+e:30,i=k([x(t,10),function(e){e=e.map((function(t){return{type:m.SET_DATA,component:t.from,duration:t.duration,fields:t.dataPaths&&t.dataPaths.length?t.dataPaths.sort().join(";"):void 0,size:t.size}})),t.send({url:t.config.setDataReportUrl+"?payload="+encodeURIComponent(JSON.stringify({miniProgramData:e})),type:m.SET_DATA,log:e})}]),o=Page,a=Component,s=function(t,e){var n=0;return null!=t&&t.data?(e.forEach((function(e){for(var r=t.data[e[0]],i=1,o=e.length;i<o;i++)r[e[i]]&&(r=r[e[i]]);var a="";try{a=JSON.stringify(r)}catch(e){a=""}n+=2*(void 0===a?"":a).replace(/[\u4e00-\u9fa5]/g,"aa").length})),n=Math.min(n,10485760)):n},c=function(t,e){var o=e.updateStartTimestamp,a=e.updateEndTimestamp;e=void 0===(e=e.dataPaths)?[]:e,a-=o,isNaN(a)||a<r||(o={from:t.is,duration:a},n&&0<e.length&&Object.assign(o,{dataPaths:e.slice(0,30),size:s(t,e)}),i(o))},l=function(t){var e="infoType: behaviorBacktracking\ndataType: tapEvent"+Object.keys(t[0]).reduce((function(e,n){var r="";try{r=n+": "+JSON.stringify(t[0][n])}catch(e){r=""}return e+"\n"+r}),"");h.publishNormalLog({msg:e,level:d.INFO})},Page=function(t){var e=t.onReady;return t.onReady=function(){var t=this;return"function"==typeof this.setUpdatePerformanceListener&&this.setUpdatePerformanceListener({withDataPaths:n},(function(e){c(t,e)})),null==e?void 0:e.call(this)},Object.keys(t).forEach((function(e){var n;"function"!=typeof t[e]||ft.includes(e)||(n=t[e],t[e]=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return null!=t&&t[0]&&"tap"===t[0].type&&l(t),null==n?void 0:n.apply(this,t)})})),o(t)},Component=function(t){t.lifetimes&&t.lifetimes.attached?(e=t.lifetimes.attached,t.lifetimes.attached=function(){var t=this;return"function"==typeof this.setUpdatePerformanceListener&&this.setUpdatePerformanceListener({withDataPaths:n},(function(e){c(t,e)})),null==e?void 0:e.call(this)}):(r=t.attached,t.attached=function(){var t=this;return"function"==typeof this.setUpdatePerformanceListener&&this.setUpdatePerformanceListener({withDataPaths:n},(function(e){c(t,e)})),null==r?void 0:r.call(this)});var e,r,i=t.methods;return i&&"[object Object]"===Object.prototype.toString.call(i)&&Object.keys(i).forEach((function(t){var e;"function"==typeof i[t]&&(e=i[t],i[t]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return null!=t&&t[0]&&"tap"===t[0].type&&l(t),null==e?void 0:e.apply(this,t)})})),a(t)})}});function pt(t){return(t=L.call(this,t)||this).taskHack=new lt,t}function gt(){this.onErrors=[],this.sends=[]}function mt(){return null!==M&&M.apply(this,arguments)||this}function yt(){return null!==N&&N.apply(this,arguments)||this}function vt(t){this.callbacks=[],this.isOverride=!1;var e=t.apiName;this.apiName=e,this.isOverride||this.override(),this.callbacks.push(t)}function _t(t){var e,r,i,o=j.call(this,t)||this;o.originRequest=$,o.speedLogPipeline=k([(r=o.config,i={},function(t,e){var n,o;r.speedSample?(o="object"==typeof r.repeat?r.repeat:{repeat:r.repeat},n=+o.speed||+o.repeat||5,Array.isArray(t)?(o=t.filter((function(t){var e=!i[t.url]||i[t.url]<n;return i[t.url]=1+~~i[t.url],e}))).length&&e(o):(!i[t.url]||i[t.url]<n)&&(i[t.url]=1+~~i[t.url],e(t))):e(t)}),x(o),function(t,n){O("getNetworkType")?G.getNetworkType({success:function(r){r=D(r.networkType),e.extendBean("netType",r),n(t)}}):n(t)},function(t,e){o.lifeCycle.emit("beforeReportSpeed",t);var n=o.config.beforeReportSpeed;if((t="function"==typeof n?t.filter((function(t){return!1!==n(t)})):t).length)return e(t)},T(e=o,m.SPEED),function(t){var e,r,i,a;o.send({url:""+o.config.speedUrl,method:"post",data:(e=o.bean,i={fetch:[],static:[],bridge:[]},a={},Array.isArray(t)?t.forEach((function(t){var e;null!=(e=i[t.type])&&e.push(t)})):null!=(r=i[t.type])&&r.push(t),a.payload=JSON.stringify(n({duration:i},e)),a)})}]),o.requestQueue=[],o.requesting=!1,o.request=function(t,e,r){if(t.url&&o.bean.id){var i,a,s,c,l;if(/^\w{8}-\w{4}-\w{4}-\w{4}-\w{12}$/.test(String(o.bean.aid))&&!(o.requesting||O("getNetworkType")&&void 0===o.bean.netType))return o.requesting=!0,i=t.url,o.config.whiteListUrl===i&&(a=e,e=function(t){null!=a&&a(JSON.stringify(t.data))}),!1!==t.addBean&&(i=i+(-1===i.indexOf("?")?"?":"&")+o.getBean),u=t.method||"get",s=function(){o.requesting=!1;var t=o.requestQueue.shift();t&&o.request(t.options,t.success,t.fail)},c=t,(c=(l=o.config.onBeforeRequest)?l(t,o):c)&&c.url?(l=o.config.enableHttp2||!1,"get"===u?(u=i,h=c.data,i="string"!=typeof u?"":"object"==typeof h&&h?(f=Object.getOwnPropertyNames(h).map((function(t){var e=h[t];return t+"="+("string"==typeof e?encodeURIComponent(e):encodeURIComponent(JSON.stringify(e)))})).join("&").replace(/eval/gi,"evaI"),u+(-1===u.indexOf("?")?"?":"&")+f):u,o.originRequest(n({url:i,enableHttp2:l,success:e,fail:r,complete:s},t.requestConfig))):("string"==typeof c.data&&(c.data=c.data.replace(/eval/gi,"evaI")),o.originRequest(n({url:i,enableHttp2:l,header:c.contentType?{"content-type":c.contentType}:void 0,method:"POST",data:c.data,success:e,fail:r,complete:s},t.requestConfig))),!0):(f="",c&&c.url||(f="Sending request blocked. Please handle the parameters reasonably, options.url is necessary",console.log(f)),null!=r&&r(f),s(),!1);o.requestQueue.push({options:t,success:e,fail:r})}var u,h,f};try{t.offlineLog&&o.initOfflineLog(),o.init(t),o.extendBean("sessionId",_t.sessionID),o.extendBean("referer",(O("getLaunchOptionsSync")?G.getLaunchOptionsSync():{scene:""}).scene||"")}catch(t){console.warn(t),console.log("%cThe above error occurred in the process of initializing Aegis, which will affect your normal use of Aegis.\nIt is recommended that you contact us for feedback and thank you for your support.","color: red"),o.sendSDKError(t)}return o}function bt(t){var e,n,r=this,i=void 0===(i=(t=void 0===t?{}:t).path)?"/.aegis.offline.log":i;t=void 0===(t=t.limit)?2e4:t,this.offlineBuffer=[],this.insertLog=(e=null,n=[],function(t){n=n.concat(t),e=e||setTimeout((function(){e=null;var t,i=r.fileSystem,o=r.filePath,a=n.map((function(t){return JSON.stringify(t)})).join("\n")+"\n";a&&(t=function(t){t?r.checkLimit(a,(function(){n=[]})):i.writeFile({data:a,filePath:o,encoding:"utf8",fail:function(t){console.error(t)},success:function(){n=[]}})},i.access({path:o,success:function(){t(!0)},fail:function(){t()}}))}),2e3)}),this.ready=function(t){r.fileSystem?setTimeout((function(){t(null)}),0):(t(new Error("getFileSystemManager file")),r.offlineLog=!1)},this.clearLogs=function(){var t=r.fileSystem,e=r.filePath;t.writeFile({filePath:e,data:"",fail:function(){t.unlinkSync(e)}})},this.save2Offline=function(t,e){t=(t=Array.isArray(t)?t:[t]).map((function(t){return"string"==typeof t&&(t={msg:t}),function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(0===t.length)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t[0]),r=1;r<t.length;r++){var i=t[r];if(null!==i)for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}return n}({id:e.id,uin:e.uin,time:+Date.now(),version:e.version,from:P(e)},t)})),r.fileSystem?r.insertLog(t):(r.fileSystem||r.offlineBuffer.length||r.ready((function(t){t?console.error(t):r.offlineBuffer.length&&(r.addLogs(r.offlineBuffer),r.offlineBuffer=[])})),r.offlineBuffer=r.offlineBuffer.concat(t))},this.addLogs=function(t){r.fileSystem&&r.insertLog(t)},this.filePath=G.env.USER_DATA_PATH+i,this.fileSystem=G.getFileSystemManager(),this.limitSize=t}function xt(t){this.aegisPlugin=!0,this.name="",this.instances=[],this.inited=!1,t.$walk=this.walk.bind(this),t.$getConfig=this.getConfig.bind(this),this.option=t,this.name=t.name}function wt(t){var e,n,r,i,o,s,c,l,u,h,f,p,g,y,v,_=this;this.isGetSample=!1,this.isHidden=!1,this.config={version:0,delay:1e3,onError:!0,repeat:5,random:1,aid:!0,device:!0,pagePerformance:!0,webVitals:!0,speedSample:!0,onClose:!0,hostUrl:"https://aegis.qq.com",websocketHack:!1,env:"production",url:"",offlineUrl:"",whiteListUrl:"",pvUrl:"",speedUrl:"",customTimeUrl:"",performanceUrl:"",webVitalsUrl:"",eventUrl:"",setDataReportUrl:"",reportImmediately:!0},this.isWhiteList=!1,this.lifeCycle=new a,this.bean={},this.normalLogPipeline=k([x(this,5),w,function(t,n){var r=e.config;n(t=t.map((function(t){var e,n=r.maxLength||204800;try{if(!t.msg||t.msg.length<=n)return t;t.msg=null==(e=t.msg)?void 0:e.substring(0,n)}catch(e){t.msg=b(t.msg).substring(0,r.maxLength)}return t})))},(y=(e=this).config,v={},function(t,e){var n="number"==typeof y.repeat?y.repeat:5;if(0===n)return e(t);e(t.filter((function(t){return t.level!==d.ERROR&&t.level!==d.PROMISE_ERROR&&t.level!==d.AJAX_ERROR&&t.level!==d.SCRIPT_ERROR&&t.level!==d.IMAGE_ERROR&&t.level!==d.CSS_ERROR&&t.level!==d.MEDIA_ERROR||(v[t.msg]=v[t.msg]||0,v[t.msg]+=1,!(v[t.msg]>n))})))}),(p=this.lifeCycle.emit,g=this.config,function(t,e){var n,r=g.logCreated;return"function"==typeof r?(n=t.filter((function(t){return!1!==r(t)})),p("beforeWrite",n),e(n)):(p("beforeWrite",t),e(t))}),(f=this,setTimeout((function(){var t=f.config.pvUrl,e=void 0===t?"":t;e&&f.sendPipeline([function(t,n){n({url:e,type:m.PV,fail:function(t){"403 forbidden"===t&&f.destroy()}})}],m.PV)(null)}),100),function(t,e){e(t)}),(u=l=c=!1,h=[],(o=this).lifeCycle.on("onConfigChange",(function(){s&&clearTimeout(s),s=setTimeout((function(){var t,e;!u&&o.config&&(u=!0,t=o.config.whiteListUrl,(e=void 0===t?"":t)&&o.sendPipeline([function(t,n){n({url:e,type:m.WHITE_LIST,success:function(t){l=!0;try{var e=t.data||JSON.parse(t),n=e.retcode,r=e.result,i=void 0===r?{}:r;if(0===n){if(c=i.is_in_white_list,o.isWhiteList=c,i.shutdown)return void o.destroy();0<=i.rate&&i.rate<=1&&(o.config.random=i.rate,o.isGetSample=!1)}o.isWhiteList&&h.length?W(o)(h.splice(0),(function(){})):!o.isWhiteList&&h.length&&(h.length=0);var a=o.config.onWhitelist;"function"==typeof a&&a(c)}catch(t){}},fail:function(t){"403 forbidden"===t&&o.destroy(),l=!0}})}],m.WHITE_LIST)(null),u=!1)}),o.config.uin?50:500)})),o.lifeCycle.on("destroy",(function(){h.length=0})),function(t,e){var n;c||null!=(n=null==(n=o.config)?void 0:n.api)&&n.reportRequest?e(t.concat(h.splice(0)).map((function(t){return U(t),t}))):(n=t.filter((function(t){return t.level!==d.INFO&&t.level!==d.API_RESPONSE?(U(t),!0):(l||(h.push(t),200<=h.length&&(h.length=200)),!1)}))).length&&e(n)}),function(t,e){try{var n=JSON.parse(JSON.stringify(t)),r=(_.lifeCycle.emit("beforeReport",n),_.config.beforeReport);(t="function"==typeof r?t.filter((function(t){return!1!==r(t)})):t).length&&e(t)}catch(t){}},W(this)]),this.eventPipeline=k([x(this,10),(i=this,function(t){i.sendPipeline([function(t,e){var n=t.map((function(t){return{name:t.name,ext1:t.ext1||i.config.ext1||"",ext2:t.ext2||i.config.ext2||"",ext3:t.ext3||i.config.ext3||""}}));e({url:i.config.eventUrl+"?payload="+encodeURIComponent(JSON.stringify(n)),type:m.EVENT,log:t,fail:function(t){"403 forbidden"===t&&i.destroy()}})}],m.EVENT)(t)})]),this.timeMap={},this.failRequestCount=0,this.customTimePipeline=k([x(this,10),(r=this,function(t){return r.sendPipeline([function(t,e){e({url:r.config.customTimeUrl+"?payload="+encodeURIComponent(JSON.stringify({custom:t})),type:m.CUSTOM,log:t,fail:function(t){"403 forbidden"===t&&r.destroy()}})}],m.CUSTOM)(t)})]),this.config=(n=this.config,void 0===(t=t.hostUrl)&&(t="https://aegis.qq.com"),n.url=n.url||t+"/collect",n.offlineUrl=n.offlineUrl||t+"/offline",n.whiteListUrl=n.whiteListUrl||t+"/collect/whitelist",n.pvUrl=n.pvUrl||t+"/collect/pv",n.eventUrl=n.eventUrl||t+"/collect/events",n.speedUrl=n.speedUrl||t+"/speed",n.customTimeUrl=n.customTimeUrl||t+"/speed/custom",n.performanceUrl=n.performanceUrl||t+"/speed/performance",n.webVitalsUrl=n.webVitalsUrl||t+"/speed/webvitals",n.setDataReportUrl=n.SetDataReportUrl||t+"/speed/miniProgramData",n),wt.instances.push(this)}return H=new H({name:"reportLoadPackageSpeed",isLoaded:!1,onNewAegis:function(t){this.isLoaded||(this.isLoaded=!0,this.start(t))},start:function(){var t=this;G.getPerformance&&G.getPerformance().createObserver((function(e){null!=(e=e.getEntries())&&e.forEach((function(e){"number"!=typeof e.duration||e.duration<=0||t.publishPackageLog(e)}))})).observe({entryTypes:["loadPackage"]})},generateLog:function(t){return[{type:m.LOAD_PACKAGE,packageName:t.packageName,size:Math.round(100*t.packageSize)/100,duration:Math.round(100*t.duration)/100}]},publishPackageLog:function(t){var e=this;this.$walk((function(n){var r=e.generateLog(t);n.send({url:n.config.setDataReportUrl+"?payload="+encodeURIComponent(JSON.stringify({miniProgramData:r})),type:m.LOAD_PACKAGE,log:r})}))}}),q.use(Q),q.use(at),q.use(J),q.use(ht),q.use(dt),q.use(H),q.use(X),q}()},1615:(t,e,n)=>{n.d(e,{Z:()=>wt});var r={};n.r(r),n.d(r,{Canvas:()=>O,Element:()=>k,HTMLElement:()=>E,HTMLMediaElement:()=>P,HTMLVideoElement:()=>R,Image:()=>j,MouseEvent:()=>$,PointerEvent:()=>V,Symbol:()=>tt,TouchEvent:()=>z,WebGLRenderingContext:()=>B,XMLHttpRequest:()=>lt,alert:()=>ht,blur:()=>dt,clearInterval:()=>yt,clearTimeout:()=>gt,devicePixelRatio:()=>f,focus:()=>ft,getComputedStyle:()=>ut,innerHeight:()=>p,innerWidth:()=>d,location:()=>et,navigator:()=>N,performance:()=>l,screen:()=>g,scrollX:()=>m,scrollY:()=>y,setInterval:()=>mt,setTimeout:()=>pt});const i={0:"animation-delay",1:"animation-direction",2:"animation-duration",3:"animation-fill-mode",4:"animation-iteration-count",5:"animation-name",6:"animation-play-state",7:"animation-timing-function",8:"background-attachment",9:"background-blend-mode",10:"background-clip",11:"background-color",12:"background-image",13:"background-origin",14:"background-position",15:"background-repeat",16:"background-size",17:"border-bottom-color",18:"border-bottom-left-radius",19:"border-bottom-right-radius",20:"border-bottom-style",21:"border-bottom-width",22:"border-collapse",23:"border-image-outset",24:"border-image-repeat",25:"border-image-slice",26:"border-image-source",27:"border-image-width",28:"border-left-color",29:"border-left-style",30:"border-left-width",31:"border-right-color",32:"border-right-style",33:"border-right-width",34:"border-top-color",35:"border-top-left-radius",36:"border-top-right-radius",37:"border-top-style",38:"border-top-width",39:"bottom",40:"box-shadow",41:"box-sizing",42:"break-after",43:"break-before",44:"break-inside",45:"caption-side",46:"clear",47:"clip",48:"color",49:"content",50:"cursor",51:"direction",52:"display",53:"empty-cells",54:"float",55:"font-family",56:"font-kerning",57:"font-size",58:"font-stretch",59:"font-style",60:"font-variant",61:"font-variant-ligatures",62:"font-variant-caps",63:"font-variant-numeric",64:"font-variant-east-asian",65:"font-weight",66:"height",67:"image-rendering",68:"isolation",69:"justify-items",70:"justify-self",71:"left",72:"letter-spacing",73:"line-height",74:"list-style-image",75:"list-style-position",76:"list-style-type",77:"margin-bottom",78:"margin-left",79:"margin-right",80:"margin-top",81:"max-height",82:"max-width",83:"min-height",84:"min-width",85:"mix-blend-mode",86:"object-fit",87:"object-position",88:"offset-distance",89:"offset-path",90:"offset-rotate",91:"opacity",92:"orphans",93:"outline-color",94:"outline-offset",95:"outline-style",96:"outline-width",97:"overflow-anchor",98:"overflow-wrap",99:"overflow-x",100:"overflow-y",101:"padding-bottom",102:"padding-left",103:"padding-right",104:"padding-top",105:"pointer-events",106:"position",107:"resize",108:"right",109:"scroll-behavior",110:"speak",111:"table-layout",112:"tab-size",113:"text-align",114:"text-align-last",115:"text-decoration",116:"text-decoration-line",117:"text-decoration-style",118:"text-decoration-color",119:"text-decoration-skip-ink",120:"text-underline-position",121:"text-indent",122:"text-rendering",123:"text-shadow",124:"text-size-adjust",125:"text-overflow",126:"text-transform",127:"top",128:"touch-action",129:"transition-delay",130:"transition-duration",131:"transition-property",132:"transition-timing-function",133:"unicode-bidi",134:"vertical-align",135:"visibility",136:"white-space",137:"widows",138:"width",139:"will-change",140:"word-break",141:"word-spacing",142:"word-wrap",143:"z-index",144:"zoom",145:"-webkit-appearance",146:"backface-visibility",147:"-webkit-border-horizontal-spacing",148:"-webkit-border-image",149:"-webkit-border-vertical-spacing",150:"-webkit-box-align",151:"-webkit-box-decoration-break",152:"-webkit-box-direction",153:"-webkit-box-flex",154:"-webkit-box-flex-group",155:"-webkit-box-lines",156:"-webkit-box-ordinal-group",157:"-webkit-box-orient",158:"-webkit-box-pack",159:"-webkit-box-reflect",160:"column-count",161:"column-gap",162:"column-rule-color",163:"column-rule-style",164:"column-rule-width",165:"column-span",166:"column-width",167:"align-content",168:"align-items",169:"align-self",170:"flex-basis",171:"flex-grow",172:"flex-shrink",173:"flex-direction",174:"flex-wrap",175:"justify-content",176:"-webkit-font-smoothing",177:"grid-auto-columns",178:"grid-auto-flow",179:"grid-auto-rows",180:"grid-column-end",181:"grid-column-start",182:"grid-template-areas",183:"grid-template-columns",184:"grid-template-rows",185:"grid-row-end",186:"grid-row-start",187:"grid-column-gap",188:"grid-row-gap",189:"-webkit-highlight",190:"hyphens",191:"-webkit-hyphenate-character",192:"-webkit-line-break",193:"-webkit-line-clamp",194:"-webkit-locale",195:"-webkit-margin-before-collapse",196:"-webkit-margin-after-collapse",197:"-webkit-mask-box-image",198:"-webkit-mask-box-image-outset",199:"-webkit-mask-box-image-repeat",200:"-webkit-mask-box-image-slice",201:"-webkit-mask-box-image-source",202:"-webkit-mask-box-image-width",203:"-webkit-mask-clip",204:"-webkit-mask-composite",205:"-webkit-mask-image",206:"-webkit-mask-origin",207:"-webkit-mask-position",208:"-webkit-mask-repeat",209:"-webkit-mask-size",210:"order",211:"perspective",212:"perspective-origin",213:"-webkit-print-color-adjust",214:"-webkit-rtl-ordering",215:"shape-outside",216:"shape-image-threshold",217:"shape-margin",218:"-webkit-tap-highlight-color",219:"-webkit-text-combine",220:"-webkit-text-decorations-in-effect",221:"-webkit-text-emphasis-color",222:"-webkit-text-emphasis-position",223:"-webkit-text-emphasis-style",224:"-webkit-text-fill-color",225:"-webkit-text-orientation",226:"-webkit-text-security",227:"-webkit-text-stroke-color",228:"-webkit-text-stroke-width",229:"transform",230:"transform-origin",231:"transform-style",232:"-webkit-user-drag",233:"-webkit-user-modify",234:"user-select",235:"-webkit-writing-mode",236:"-webkit-app-region",237:"buffered-rendering",238:"clip-path",239:"clip-rule",240:"mask",241:"filter",242:"flood-color",243:"flood-opacity",244:"lighting-color",245:"stop-color",246:"stop-opacity",247:"color-interpolation",248:"color-interpolation-filters",249:"color-rendering",250:"fill",251:"fill-opacity",252:"fill-rule",253:"marker-end",254:"marker-mid",255:"marker-start",256:"mask-type",257:"shape-rendering",258:"stroke",259:"stroke-dasharray",260:"stroke-dashoffset",261:"stroke-linecap",262:"stroke-linejoin",263:"stroke-miterlimit",264:"stroke-opacity",265:"stroke-width",266:"alignment-baseline",267:"baseline-shift",268:"dominant-baseline",269:"text-anchor",270:"writing-mode",271:"vector-effect",272:"paint-order",273:"d",274:"cx",275:"cy",276:"x",277:"y",278:"r",279:"rx",280:"ry",281:"caret-color",282:"line-break",display:"inline",dominantBaseline:"auto",emptyCells:"show",fill:"rgb(0, 0, 0)",fillOpacity:"1",fillRule:"nonzero",filter:"none",flex:"0 1 auto",flexBasis:"auto",flexDirection:"row",flexFlow:"row nowrap",flexGrow:"0",flexShrink:"1",flexWrap:"nowrap",float:"none",floodColor:"rgb(0, 0, 0)",floodOpacity:"1",font:'normal normal 400 normal 16px / normal "PingFang SC"',fontDisplay:"",fontFamily:'"PingFang SC"',fontFeatureSettings:"normal",fontKerning:"auto",fontSize:"16px",fontStretch:"100%",fontStyle:"normal",fontVariant:"normal",fontVariantCaps:"normal",fontVariantEastAsian:"normal",fontVariantLigatures:"normal",fontVariantNumeric:"normal",fontVariationSettings:"normal",fontWeight:"400",grid:"none / none / none / row / auto / auto",gridArea:"auto / auto / auto / auto",gridAutoColumns:"auto",gridAutoFlow:"row",gridAutoRows:"auto",gridColumn:"auto / auto",gridColumnEnd:"auto",gridColumnGap:"0px",gridColumnStart:"auto",gridGap:"0px 0px",gridRow:"auto / auto",gridRowEnd:"auto",gridRowGap:"0px",gridRowStart:"auto",gridTemplate:"none / none / none",gridTemplateAreas:"none",gridTemplateColumns:"none",gridTemplateRows:"none",height:"0px",hyphens:"manual",imageRendering:"auto",inlineSize:"0px",isolation:"auto",justifyContent:"normal",justifyItems:"normal",justifySelf:"auto",left:"auto",letterSpacing:"normal",lightingColor:"rgb(255, 255, 255)",lineBreak:"auto",lineHeight:"normal",listStyle:"disc outside none",listStyleImage:"none",listStylePosition:"outside",listStyleType:"disc",margin:"0px",marginBottom:"0px",marginLeft:"0px",marginRight:"0px",marginTop:"0px",marker:"",markerEnd:"none",markerMid:"none",markerStart:"none",mask:"none",maskType:"luminance",maxBlockSize:"none",maxHeight:"none",maxInlineSize:"none",maxWidth:"none",maxZoom:"",minBlockSize:"0px",minHeight:"0px",minInlineSize:"0px",minWidth:"0px",minZoom:"",mixBlendMode:"normal",objectFit:"fill",objectPosition:"50% 50%",offset:"none 0px auto 0deg",offsetDistance:"0px",offsetPath:"none",offsetRotate:"auto 0deg",opacity:"1",order:"0",orientation:"",orphans:"2",outline:"rgb(0, 0, 0) none 0px",outlineColor:"rgb(0, 0, 0)",outlineOffset:"0px",outlineStyle:"none",outlineWidth:"0px",overflow:"visible",overflowAnchor:"auto",overflowWrap:"normal",overflowX:"visible",overflowY:"visible",overscrollBehavior:"auto auto",overscrollBehaviorX:"auto",overscrollBehaviorY:"auto",padding:"0px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",paddingTop:"0px",page:"",pageBreakAfter:"auto",pageBreakBefore:"auto",pageBreakInside:"auto",paintOrder:"fill stroke markers",perspective:"none",perspectiveOrigin:"0px 0px",placeContent:"normal normal",placeItems:"normal normal",placeSelf:"auto auto",pointerEvents:"auto",position:"static",quotes:"",r:"0px",resize:"none",right:"auto",rx:"auto",ry:"auto",scrollBehavior:"auto",shapeImageThreshold:"0",shapeMargin:"0px",shapeOutside:"none",shapeRendering:"auto",size:"",speak:"normal",src:"",stopColor:"rgb(0, 0, 0)",stopOpacity:"1",stroke:"none",strokeDasharray:"none",strokeDashoffset:"0px",strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:"4",strokeOpacity:"1",strokeWidth:"1px",tabSize:"8",tableLayout:"auto",textAlign:"start",textAlignLast:"auto",textAnchor:"start",textCombineUpright:"none",textDecoration:"none solid rgb(0, 0, 0)",textDecorationColor:"rgb(0, 0, 0)",textDecorationLine:"none",textDecorationSkipInk:"auto",textDecorationStyle:"solid",textIndent:"0px",textOrientation:"mixed",textOverflow:"clip",textRendering:"auto",textShadow:"none",textSizeAdjust:"auto",textTransform:"none",textUnderlinePosition:"auto",top:"auto",touchAction:"auto",transform:"none",transformBox:"view-box",transformOrigin:"0px 0px",transformStyle:"flat",transition:"all 0s ease 0s",transitionDelay:"0s",transitionDuration:"0s",transitionProperty:"all",transitionTimingFunction:"ease",unicodeBidi:"normal",unicodeRange:"",userSelect:"auto",userZoom:"",vectorEffect:"none",verticalAlign:"baseline",visibility:"visible",webkitAppRegion:"no-drag",webkitAppearance:"none",webkitBorderAfter:"0px none rgb(0, 0, 0)",webkitBorderAfterColor:"rgb(0, 0, 0)",webkitBorderAfterStyle:"none",webkitBorderAfterWidth:"0px",webkitBorderBefore:"0px none rgb(0, 0, 0)",webkitBorderBeforeColor:"rgb(0, 0, 0)",webkitBorderBeforeStyle:"none",webkitBorderBeforeWidth:"0px",webkitBorderEnd:"0px none rgb(0, 0, 0)",webkitBorderEndColor:"rgb(0, 0, 0)",webkitBorderEndStyle:"none",webkitBorderEndWidth:"0px",webkitBorderHorizontalSpacing:"0px",webkitBorderImage:"none",webkitBorderStart:"0px none rgb(0, 0, 0)",webkitBorderStartColor:"rgb(0, 0, 0)",webkitBorderStartStyle:"none",webkitBorderStartWidth:"0px",webkitBorderVerticalSpacing:"0px",webkitBoxAlign:"stretch",webkitBoxDecorationBreak:"slice",webkitBoxDirection:"normal",webkitBoxFlex:"0",webkitBoxFlexGroup:"1",webkitBoxLines:"single",webkitBoxOrdinalGroup:"1",webkitBoxOrient:"horizontal",webkitBoxPack:"start",webkitBoxReflect:"none",webkitColumnBreakAfter:"auto",webkitColumnBreakBefore:"auto",webkitColumnBreakInside:"auto",webkitFontSizeDelta:"",webkitFontSmoothing:"auto",webkitHighlight:"none",webkitHyphenateCharacter:"auto",webkitLineBreak:"auto",webkitLineClamp:"none",webkitLocale:"auto",webkitLogicalHeight:"0px",webkitLogicalWidth:"0px",webkitMarginAfter:"0px",webkitMarginAfterCollapse:"collapse",webkitMarginBefore:"0px",webkitMarginBeforeCollapse:"collapse",webkitMarginBottomCollapse:"collapse",webkitMarginCollapse:"",webkitMarginEnd:"0px",webkitMarginStart:"0px",webkitMarginTopCollapse:"collapse",webkitMask:"",webkitMaskBoxImage:"none",webkitMaskBoxImageOutset:"0px",webkitMaskBoxImageRepeat:"stretch",webkitMaskBoxImageSlice:"0 fill",webkitMaskBoxImageSource:"none",webkitMaskBoxImageWidth:"auto",webkitMaskClip:"border-box",webkitMaskComposite:"source-over",webkitMaskImage:"none",webkitMaskOrigin:"border-box",webkitMaskPosition:"0% 0%",webkitMaskPositionX:"0%",webkitMaskPositionY:"0%",webkitMaskRepeat:"repeat",webkitMaskRepeatX:"",webkitMaskRepeatY:"",webkitMaskSize:"auto",webkitMaxLogicalHeight:"none",webkitMaxLogicalWidth:"none",webkitMinLogicalHeight:"0px",webkitMinLogicalWidth:"0px",webkitPaddingAfter:"0px",webkitPaddingBefore:"0px",webkitPaddingEnd:"0px",webkitPaddingStart:"0px",webkitPerspectiveOriginX:"",webkitPerspectiveOriginY:"",webkitPrintColorAdjust:"economy",webkitRtlOrdering:"logical",webkitRubyPosition:"before",webkitTapHighlightColor:"rgba(0, 0, 0, 0.4)",webkitTextCombine:"none",webkitTextDecorationsInEffect:"none",webkitTextEmphasis:"",webkitTextEmphasisColor:"rgb(0, 0, 0)",webkitTextEmphasisPosition:"over right",webkitTextEmphasisStyle:"none",webkitTextFillColor:"rgb(0, 0, 0)",webkitTextOrientation:"vertical-right",webkitTextSecurity:"none",webkitTextStroke:"",webkitTextStrokeColor:"rgb(0, 0, 0)",webkitTextStrokeWidth:"0px",webkitTransformOriginX:"",webkitTransformOriginY:"",webkitTransformOriginZ:"",webkitUserDrag:"auto",webkitUserModify:"read-only",webkitWritingMode:"horizontal-tb",whiteSpace:"normal",widows:"2",width:"0px",willChange:"auto",wordBreak:"normal",wordSpacing:"0px",wordWrap:"normal",writingMode:"horizontal-tb",x:"0px",y:"0px",zIndex:"auto",zoom:"1"};const o=function(t){const e=t.width,n=t.height;return Object.assign(i,{display:"inline",position:"static",inlineSize:e+"px",perspectiveOrigin:e/2+"px "+n/2+"px",transformOrigin:e/2+"px "+n/2+"px",webkitLogicalWidth:e+"px",webkitLogicalHeight:n+"px",width:e+"px",height:n+"px"})};const a=function(t){const e=t.getBoundingClientRect();return Object.assign(i,{display:"inline",position:"static",inlineSize:e.width+"px",perspectiveOrigin:e.width/2+"px "+e.height/2+"px",transformOrigin:e.width/2+"px "+e.height/2+"px",webkitLogicalWidth:e.width+"px",webkitLogicalHeight:e.height+"px",width:e.width+"px",height:e.height+"px"})};function s(){}let c;if(wx.getPerformance){const{platform:t}=wx.getSystemInfoSync(),e=wx.getPerformance(),n=e.now(),r=Object.assign({},e,{now:function(){return(e.now()-n)/1e3}});c="devtools"===t?e:r}else c={timeOrigin:Date.now(),now:function(){return Date.now()-this.timeOrigin}};const l=c,{screenWidth:u,screenHeight:h,devicePixelRatio:f}=wx.getSystemInfoSync(),d=u,p=h,g={width:u,height:h,availWidth:d,availHeight:p,availLeft:0,availTop:0},m=0,y=0;function v(t,e){if(!("parentNode"in t)){let r;r=0===e?function(){return null}:1===e?function(){return(n.g.document||wx.window.document).documentElement}:function(){if(!n.g||!n.g.document||!wx.window.document)return;return(n.g.document||wx.window.document).body},Object.defineProperty(t,"parentNode",{enumerable:!0,get:r})}if(!("parentElement"in t)){let r;r=0===e?function(){return null}:1===e?function(){return document.documentElement}:function(){return(n.g.document||wx.window.document).body},Object.defineProperty(t,"parentElement",{enumerable:!0,get:r})}}function _(t){t.style=t.style||{},Object.assign(t.style,{top:"0px",left:"0px",width:d+"px",height:p+"px",margin:"0px",padding:"0px"})}function b(t,e){"clientLeft"in t||(t.clientLeft=t._left||0,t.clientTop=t._top||0),"clientWidth"in t||(t.clientWidth=t._width||d,t.clientHeight=t._height||p),"getBoundingClientRect"in t||(t.getBoundingClientRect=function(){const e={x:0,y:0,top:0,left:0,width:t._width||this.clientWidth,height:t._height||this.clientHeight};return e.right=e.width,e.bottom=e.height,e})}function x(t){"offsetLeft"in t||(t.offsetLeft=0,t.offsetTop=0),"offsetWidth"in t||(t.offsetWidth=d,t.offsetHeight=p)}function w(t){const e=function(){};t.classList=[],t.classList.add=e,t.classList.remove=e,t.classList.contains=e,t.classList.toggle=e}const T=new WeakMap;class C{constructor(){T.set(this,{})}addEventListener(t,e,n={}){let r=T.get(this);r||(r={},T.set(this,r)),r[t]||(r[t]=[]),r[t].push(e),n.capture,n.once,n.passive}removeEventListener(t,e,n={}){const r=T.get(this);if(r){const n=r[t];if(n&&n.length>0)for(let t=n.length;t--;t>0)if(n[t]===e){n.splice(t,1);break}}}dispatchEvent(t={}){const e=T.get(this)[t.type];if(e)for(let n=0;n<e.length;n++)e[n](t)}}class S extends C{constructor(){super(),this.childNodes=[]}appendChild(t){this.childNodes.push(t)}cloneNode(){const t=Object.create(this);return Object.assign(t,this),t}removeChild(t){const e=this.childNodes.findIndex((e=>e===t));return e>-1?this.childNodes.splice(e,1):null}}class k extends S{constructor(){super(),this.className="",this.children=[]}setAttribute(t,e){this[t]=e}getAttribute(t){return this[t]}setAttributeNS(t,e){this[t]=e}getAttributeNS(t){return this[t]}}class E extends k{constructor(t="",e){var n;super(),this.className="",this.children=[],this.focus=s,this.blur=s,this.insertBefore=s,this.appendChild=s,this.removeChild=s,this.remove=s,this.innerHTML="",this.tagName=t.toUpperCase(),v(this,e),_(this),w(this),b(this),x(this),"scrollLeft"in(n=this)||(n.scrollLeft=0,n.scrollTop=0),"scrollWidth"in n||(n.scrollWidth=d,n.scrollHeight=p)}}class P extends E{constructor(t){super(t)}addTextTrack(){}captureStream(){}fastSeek(){}load(){}pause(){}play(){}}class R extends P{constructor(){super("video")}}function O(t){let e=t;t||(e=wx.createOffscreenCanvas({type:"webgl"})),"tagName"in e||(e.tagName="CANVAS"),e.type="canvas",v(e),_(e),w(e),b(e),x(e),e.focus=function(){},e.blur=function(){};let n={};return e.addEventListener=function(t,e,r={}){void 0===n[t]&&(n[t]=[]),-1===n[t].indexOf(e)&&n[t].push(e)},e.removeEventListener=function(t,e){const r=n[t];if(void 0!==r){const t=r.indexOf(e);-1!==t&&r.splice(t,1)}},e.dispatchEvent=function(t={}){const e=n[t.type];if(void 0!==e){t.target=this;const n=e.slice(0);for(let e=0,r=n.length;e<r;e++)n[e].call(this,t)}},e}const D=wx.getSystemInfoSync(),A=D.system,I=D.platform,F=D.language,L=-1!==A.toLowerCase().indexOf("android")?"Android; CPU Android 6.0":"iPhone; CPU iPhone OS 10_3_1 like Mac OS X",M={platform:I,language:F,appVersion:`5.0 (${L}) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1`,userAgent:`Mozilla/5.0 (${L}) AppleWebKit/603.1.30 (KHTML, like Gecko) Mobile/14E8301 MicroMessenger/6.6.0 MiniGame NetType/WIFI Language/${F}`,onLine:!0,geolocation:{getCurrentPosition:s,watchPosition:s,clearWatch:s}};wx.onNetworkStatusChange&&wx.onNetworkStatusChange((function(t){M.onLine=t.isConnected}));const N=M;function j(){try{let t;j._context;return wx&&wx.createCanvas&&(t=wx.createCanvas().createImage()),"tagName"in t||(t.tagName="IMG"),v(t),w(t),t.__proto__.__proto__=wx.createCanvas().createImage.prototype,t}catch(t){}}class B{constructor(){}}class U{constructor(t){this.cancelBubble=!1,this.cancelable=!1,this.target=null,this.currentTarget=null,this.preventDefault=s,this.stopPropagation=s,this.type=t,this.timeStamp=Date.now()}}class z extends U{constructor(t){super(t),this.touches=[],this.targetTouches=[],this.changedTouches=[],this.target=window.canvas,this.currentTarget=window.canvas}}function W(t){return e=>{const n=new z(t);n.changedTouches=e.changedTouches,n.touches=e.touches,n.targetTouches=Array.prototype.slice.call(e.touches),n.timeStamp=e.timeStamp,document.dispatchEvent(n)}}wx.onTouchStart&&wx.onTouchStart(W("touchstart")),wx.onTouchMove&&wx.onTouchMove(W("touchmove")),wx.onTouchEnd&&wx.onTouchEnd(W("touchend")),wx.onTouchCancel&&wx.onTouchCancel(W("touchcancel"));class V extends U{constructor(t){super(t)}}const q=["bubbles","cancelable","view","detail","screenX","screenY","clientX","clientY","ctrlKey","altKey","shiftKey","metaKey","button","relatedTarget","pointerId","width","height","pressure","tiltX","tiltY","pointerType","hwTimestamp","isPrimary","pageX","pageY","timeStamp"],H=[!1,!1,null,null,0,0,0,0,!1,!1,!1,!1,0,null,0,0,0,0,0,0,0,"",0,!1,0,0,0];function G(t,e,n){const r=new V(t);for(let t=0;t<q.length;t++){const n=q[t];r[n]=e[n]||H[t]}return r.type=t,r.target=window.canvas,r.currentTarget=window.canvas,r.buttons=function(t){let e=0;"touchstart"!==t&&"touchmove"!==t&&"pointerdown"!==t&&"pointermove"!==t||(e=1);return e}(t),r.which=r.buttons,r.pointerId=(e.identifier||0)+2,r.bubbles=!0,r.cancelable=!0,r.button=0,r.width=2*(e.radiusX||.5),r.height=2*(e.radiusY||.5),r.pressure=e.force||.5,r.isPrimary=function(t){return Y===t.identifier}(e),r.pointerType="touch",r.altKey=n.altKey,r.ctrlKey=n.ctrlKey,r.metaKey=n.metaKey,r.shiftKey=n.shiftKey,n.preventDefault&&(r.preventDefault=function(){n.preventDefault()}),r}let Y=null;function Z(t){null===Y&&(Y=t.identifier)}function K(t){Y===t.identifier&&(Y=null)}function X(t){return e=>{console.log("rawEvent",e);const n=e.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];0===r&&"pointerdown"===t?Z(i):"pointerup"!==t&&"pointercancel"!==t||K(i);const o=G(t,i,e);console.log("event dispatch",o),document.dispatchEvent(o)}}}wx.onTouchStart&&wx.onTouchStart(X("pointerdown")),wx.onTouchMove&&wx.onTouchMove(X("pointermove")),wx.onTouchEnd&&wx.onTouchEnd(X("pointerup")),wx.onTouchCancel&&wx.onTouchCancel(X("pointercancel"));class $ extends U{constructor(t){super(t)}}let J=0;const Q=function(t){return`__${t}_${Math.floor(1e9*Math.random())}_${++J}__`};Q.iterator=Q("Symbol.iterator");const tt=Q,et={href:"clip.js",reload(){},replace(t){this.href=t}},nt=new WeakMap,rt=new WeakMap,it=new WeakMap,ot=new WeakMap,at=new WeakMap;function st(t,...e){"function"==typeof this[`on${t}`]&&this[`on${t}`].apply(this,e)}function ct(t){this.readyState=t,st.call(this,"readystatechange"),this.dispatchEvent("readystatechange")}class lt{static UNSEND=0;static OPENED=1;static HEADERS_RECEIVED=2;static LOADING=3;static DONE=4;onabort=null;onerror=null;onload=null;onloadstart=null;onprogress=null;ontimeout=null;onloadend=null;onreadystatechange=null;readyState=0;response=null;responseText=null;responseType="";responseXML=null;status=0;statusText="";upload={};withCredentials=!1;events={};constructor(){it.set(this,{"content-type":"application/x-www-form-urlencoded"}),ot.set(this,{})}abort(){const t=at.get(this);t&&t.abort()}getAllResponseHeaders(){const t=ot.get(this);return Object.keys(t).map((e=>`${e}: ${t[e]}`)).join("\n")}getResponseHeader(t){return ot.get(this)[t]}open(t,e){rt.set(this,t),nt.set(this,e),ct.call(this,lt.OPENED)}overrideMimeType(){}send(t=""){if(this.readyState!==lt.OPENED)throw new Error("Failed to execute 'send' on 'XMLHttpRequest': The object's state must be OPENED.");if(-1===nt.get(this).indexOf("http")){let t=n.g.resourceManager.stickerLoader.readJSONFile(nt.get(this)),e=200,r={};if("string"!=typeof t&&!(t instanceof ArrayBuffer))try{t=JSON.stringify(t)}catch(t){}if(this.status=e,ot.set(this,r),st.call(this,"loadstart"),this.dispatchEvent("loadstart"),ct.call(this,lt.HEADERS_RECEIVED),ct.call(this,lt.LOADING),this.response=t,t instanceof ArrayBuffer){this.responseText="";const e=new Uint8Array(t),n=e.byteLength;for(let t=0;t<n;t++)this.responseText+=String.fromCharCode(e[t])}else this.responseText=t;ct.call(this,lt.DONE),st.call(this,"load"),this.dispatchEvent("load"),st.call(this,"loadend"),this.dispatchEvent("loadend")}else wx.request({data:t,url:nt.get(this),method:rt.get(this),header:it.get(this),responseType:this.responseType,success:({data:t,statusCode:e,header:n})=>{if("string"!=typeof t&&!(t instanceof ArrayBuffer))try{t=JSON.stringify(t)}catch(t){}if(this.status=e,ot.set(this,n),st.call(this,"loadstart"),this.dispatchEvent("loadstart"),ct.call(this,lt.HEADERS_RECEIVED),ct.call(this,lt.LOADING),this.response=t,t instanceof ArrayBuffer){this.responseText="";const e=new Uint8Array(t),n=e.byteLength;for(let t=0;t<n;t++)this.responseText+=String.fromCharCode(e[t])}else this.responseText=t;ct.call(this,lt.DONE),st.call(this,"load"),this.dispatchEvent("load"),st.call(this,"loadend"),this.dispatchEvent("loadend")},fail:({errMsg:t})=>{-1!==t.indexOf("abort")?(st.call(this,"abort"),this.dispatchEvent("abort")):(st.call(this,"error",t),this.dispatchEvent("error",t)),st.call(this,"loadend"),this.dispatchEvent("loadend")}})}setRequestHeader(t,e){const n=it.get(this);n[t]=e,it.set(this,n)}addEventListener(t,e){this.events[t]||(this.events[t]=[]),this.events[t].push(e)}removeEventListener(t,e){const n=this.events[t];if(n&&n.length>0)for(let t=n.length;t--;t>0)if(n[t]===e){n.splice(t,1);break}}dispatchEvent(t,e={}){const n=this.events[t];if(n)for(let t=0;t<n.length;t++)n[t](e)}}function ut(t){const e=t.tagName;return"CANVAS"===e?a(t):"IMG"===e?o(t):i}function ht(t){console.log(t)}function ft(){}function dt(){}const pt=setTimeout,gt=clearTimeout,mt=setInterval,yt=clearInterval;const vt={},_t={readyState:"complete",visibilityState:"visible",hidden:!1,fullscreen:!0,location:et,scripts:[],style:{},ontouchstart:null,ontouchmove:null,ontouchend:null,onvisibilitychange:null,parentNode:null,parentElement:null,createElement:t=>"canvas"===(t=t.toLowerCase())?new O:"img"===t?new j:new E(t),createElementNS(t,e){return this.createElement(e)},createTextNode:t=>t,getElementById:t=>t===r.canvas.id?r.canvas:null,getElementsByTagName:t=>"head"===(t=t.toLowerCase())?[_t.head]:"body"===t?[_t.body]:"canvas"===t?[r.canvas]:[],getElementsByTagNameNS(t,e){return this.getElementsByTagName(e)},getElementsByName:t=>"head"===t?[_t.head]:"body"===t?[_t.body]:"canvas"===t?[r.canvas]:[],querySelector:t=>"head"===t?_t.head:"body"===t?_t.body:"canvas"===t||t===`#${r.canvas.id}`?r.canvas:null,querySelectorAll:t=>"head"===t?[_t.head]:"body"===t?[_t.body]:"canvas"===t?[r.canvas]:[],addEventListener(t,e){vt[t]||(vt[t]=[]),vt[t].push(e)},removeEventListener(t,e){const n=vt[t];if(n&&n.length>0)for(let t=n.length;t--;t>0)if(n[t]===e){n.splice(t,1);break}},dispatchEvent(t){const e=t.type,n=vt[e];if(n)for(let e=0;e<n.length;e++)n[e](t);t.target&&"function"==typeof t.target["on"+e]&&t.target["on"+e](t)}};function bt(t){return function(){_t.visibilityState=t?"visible":"hidden";const e=!t;if(_t.hidden===e)return;_t.hidden=e;const n=new U("visibilitychange");n.target=_t,n.timeStamp=Date.now(),_t.dispatchEvent(n)}}_t.documentElement=new class extends E{constructor(){super("html",0)}},_t.head=new E("head"),_t.body=new class extends E{constructor(){super("body",0)}},wx.onHide&&wx.onHide(bt(!1)),wx.onShow&&wx.onShow(bt(!0));const xt=_t;const wt=function(t){r.document=xt,r.addEventListener=(t,e)=>{r.document.addEventListener(t,e)},r.removeEventListener=(t,e)=>{r.document.removeEventListener(t,e)},r.dispatchEvent=function(t={}){},t.global={},t.global.wx={};for(const e in r)t[e]=r[e];t.window=r,t.document=r.document,t.global.window=r,t.Image._context=t,t.HTMLImageElement=t.global.wx.createImage}},9984:(t,e,n)=>{n.d(e,{nH:()=>c,pe:()=>l,sN:()=>s});var r=n(337),i=n(5127),o=n(6879);let a=new i.Y;async function s(t){return new Promise(((e,n)=>{let r=wx.getFileSystemManager();r.access({path:t,success:()=>{e(!0)},fail:n=>{r.mkdir({dirPath:t,success:()=>{e(!0)},fail:t=>{e(!1)}})}})}))}async function c(t){return new Promise(((e,n)=>{wx.getFileSystemManager().access({path:t,success:()=>{e(!0)},fail:t=>{e(!1)}})}))}async function l(t,e){return new Promise((async(n,i)=>{const l=`${wx.env.USER_DATA_PATH}/ar`,u=`${l}/${t}.zip`;await s(l),await c(u)?n():async function(t,e){return new Promise((async(n,i)=>{let a=wx.getFileSystemManager();console.log("加载资源",t,e);const s=`${t}.bin`,l=`${wx.env.USER_DATA_PATH}/ar/${s}`;await c(l)?(console.log("读取本地bin"),a.readFile({filePath:l,success:t=>{n(t.data)},fail:t=>{i({code:o.U.READ_FILE_CACHE_FAIL,message:r.Z.t("0011")}),console.log("read file cache error",t)}})):(console.log("拉取远程bin"),wx.request({url:e,responseType:"arrayBuffer",success:t=>{const{data:e}=t;a.writeFile({filePath:l,data:e,encoding:"binary",success:t=>{n(e)},fail:t=>{let e={code:o.U.REQUEST_FILE_FAIL,message:t.errMsg};t.errMsg.indexOf("maximum size")>-1&&(e.message=r.Z.t("0012")),i(e),console.log("wx cache write eroor",t)}})}}))}))}(t,e).then((e=>{let s=wx.getFileSystemManager(),c=new Uint8Array(e),u=c.length,h=c.slice(0,1024),f=c.slice(1024,u);a.init().then((()=>{let e=a.run(h,"");a.finish("");const c=new Uint8Array(u);c.set(e),c.set(f,e.length);let d=`${l}/${t}.zip`;s.writeFile({filePath:d,data:c.buffer,encoding:"binary",success:t=>{n(d)},fail:t=>{console.log(" temp zip write file error",t);let e={code:o.U.REQUEST_FILE_FAIL,message:t.errMsg};t.errMsg.indexOf("maximum size")>-1&&(e.message=r.Z.t("0012")),i(e)}})}))})).catch((e=>{i({msg:"fail",zip:t,error:e})}))}))}},7959:(t,e,n)=>{n.d(e,{s:()=>r});n(885);const r=new class{detectOnly;_config={beautify:!0,handLandmark:!1};get config(){return this._config}set config(t){this._config=t}constructor(t){t&&(this.config=t)}enableHandLandmark(){this.config.handLandmark=!0}checkEnabled(t){return!("beautify"!==t||!this.detectOnly)||("segmentation"!==t||!this.detectOnly)&&this.config[t]}setData(t){t&&(this.config=t)}}},5901:function(t,e,n){var r,i;!function(o){var a,s={};s.VERSION="1.6.1";var c={},l=function(t,e){return function(){return e.apply(t,arguments)}},u=function(){var t,e,n=arguments,r=n[0];for(e=1;e<n.length;e++)for(t in n[e])!(t in r)&&n[e].hasOwnProperty(t)&&(r[t]=n[e][t]);return r},h=function(t,e){return{value:t,name:e}};s.TRACE=h(1,"TRACE"),s.DEBUG=h(2,"DEBUG"),s.INFO=h(3,"INFO"),s.TIME=h(4,"TIME"),s.WARN=h(5,"WARN"),s.ERROR=h(8,"ERROR"),s.OFF=h(99,"OFF");var f=function(t){this.context=t,this.setLevel(t.filterLevel),this.log=this.info};f.prototype={setLevel:function(t){t&&"value"in t&&(this.context.filterLevel=t)},getLevel:function(){return this.context.filterLevel},enabledFor:function(t){var e=this.context.filterLevel;return t.value>=e.value},trace:function(){this.invoke(s.TRACE,arguments)},debug:function(){this.invoke(s.DEBUG,arguments)},info:function(){this.invoke(s.INFO,arguments)},warn:function(){this.invoke(s.WARN,arguments)},error:function(){this.invoke(s.ERROR,arguments)},time:function(t){"string"==typeof t&&t.length>0&&this.invoke(s.TIME,[t,"start"])},timeEnd:function(t){"string"==typeof t&&t.length>0&&this.invoke(s.TIME,[t,"end"])},invoke:function(t,e){a&&this.enabledFor(t)&&a(e,u({level:t},this.context))}};var d,p=new f({filterLevel:s.OFF});(d=s).enabledFor=l(p,p.enabledFor),d.trace=l(p,p.trace),d.debug=l(p,p.debug),d.time=l(p,p.time),d.timeEnd=l(p,p.timeEnd),d.info=l(p,p.info),d.warn=l(p,p.warn),d.error=l(p,p.error),d.log=d.info,s.setHandler=function(t){a=t},s.setLevel=function(t){for(var e in p.setLevel(t),c)c.hasOwnProperty(e)&&c[e].setLevel(t)},s.getLevel=function(){return p.getLevel()},s.get=function(t){return c[t]||(c[t]=new f(u({name:t},p.context)))},s.createDefaultHandler=function(t){(t=t||{}).formatter=t.formatter||function(t,e){e.name&&t.unshift("["+e.name+"]")};var e={},n=function(t,e){Function.prototype.apply.call(t,console,e)};return"undefined"==typeof console?function(){}:function(r,i){r=Array.prototype.slice.call(r);var o,a=console.log;i.level===s.TIME?(o=(i.name?"["+i.name+"] ":"")+r[0],"start"===r[1]?console.time?console.time(o):e[o]=(new Date).getTime():console.timeEnd?console.timeEnd(o):n(a,[o+": "+((new Date).getTime()-e[o])+"ms"])):(i.level===s.WARN&&console.warn?a=console.warn:i.level===s.ERROR&&console.error?a=console.error:i.level===s.INFO&&console.info?a=console.info:i.level===s.DEBUG&&console.debug?a=console.debug:i.level===s.TRACE&&console.trace&&(a=console.trace),t.formatter(r,i),n(a,r))}},s.useDefaults=function(t){s.setLevel(t&&t.defaultLevel||s.DEBUG),s.setHandler(s.createDefaultHandler(t))},s.setDefaults=s.useDefaults,void 0===(i="function"==typeof(r=s)?r.call(e,n,e,t):r)||(t.exports=i)}()},3125:(t,e,n)=>{n.d(e,{LE:()=>Q});var r=n(9043),i=n(7659),o=n(8306),a=n(1893),s=n(519),c=n(2064),l=n(8141),u=n(6340),h=n(1961),f=n(2794);n(4775);class d extends r.Geometry{constructor(t=!1){super(),this._buffer=new r.Buffer(null,t,!1),this._indexBuffer=new r.Buffer(null,t,!0),this.addAttribute("aVertexPosition",this._buffer,3,!1,i.vK.FLOAT).addAttribute("aTextureCoord",this._buffer,2,!1,i.vK.FLOAT).addAttribute("aColor",this._buffer,4,!0,i.vK.UNSIGNED_BYTE).addAttribute("aTextureId",this._buffer,1,!0,i.vK.FLOAT).addIndex(this._indexBuffer)}}class p{constructor(t,e=!0){p.prototype.__init.call(this),this.legacy=t,e&&(this.enabled=!0),this.legacy.proj=this}__init(){this._enabled=!1}get enabled(){return this._enabled}set enabled(t){this._enabled=t}clear(){}}var g,m;function y(t){const e=this.proj,n=this,r=t._worldID,i=n.localTransform,o=e.scaleAfterAffine&&e.affine>=2;n._localID!==n._currentLocalID&&(o?(i.a=n._cx,i.b=n._sx,i.c=n._cy,i.d=n._sy,i.tx=n.position._x,i.ty=n.position._y):(i.a=n._cx*n.scale._x,i.b=n._sx*n.scale._x,i.c=n._cy*n.scale._y,i.d=n._sy*n.scale._y,i.tx=n.position._x-(n.pivot._x*i.a+n.pivot._y*i.c),i.ty=n.position._y-(n.pivot._x*i.b+n.pivot._y*i.d)),n._currentLocalID=n._localID,e._currentProjID=-1);const a=e._projID;if(e._currentProjID!==a&&(e._currentProjID=a,e.updateLocalTransform(i),n._parentID=-1),n._parentID!==r){const i=t.proj;i&&!i._affine?e.world.setToMult(i.world,e.local):e.world.setToMultLegacy(t.worldTransform,e.local);const a=n.worldTransform;e.world.copyTo(a,e._affine,e.affinePreserveOrientation),o&&(a.a*=n.scale._x,a.b*=n.scale._x,a.c*=n.scale._y,a.d*=n.scale._y,a.tx-=n.pivot._x*a.a+n.pivot._y*a.c,a.ty-=n.pivot._x*a.b+n.pivot._y*a.d),n._parentID=r,n._worldID++}}!function(t){t[t.NONE=0]="NONE";t[t.BEFORE_PROJ=4]="BEFORE_PROJ";t[t.PROJ=5]="PROJ";t[t.ALL=9]="ALL"}(g||(g={})),function(t){t[t.NONE=0]="NONE";t[t.FREE=1]="FREE";t[t.AXIS_X=2]="AXIS_X";t[t.AXIS_Y=3]="AXIS_Y";t[t.POINT=4]="POINT";t[t.AXIS_XR=5]="AXIS_XR"}(m||(m={}));class v extends p{constructor(...t){super(...t),v.prototype.__init.call(this),v.prototype.__init2.call(this),v.prototype.__init3.call(this),v.prototype.__init4.call(this),v.prototype.__init5.call(this)}updateLocalTransform(t){}__init(){this._projID=0}__init2(){this._currentProjID=-1}__init3(){this._affine=m.NONE}__init4(){this.affinePreserveOrientation=!1}__init5(){this.scaleAfterAffine=!0}set affine(t){this._affine!==t&&(this._affine=t,this._currentProjID=-1,this.legacy._currentLocalID=-1)}get affine(){return this._affine}set enabled(t){t!==this._enabled&&(this._enabled=t,t?(this.legacy.updateTransform=y,this.legacy._parentID=-1):(this.legacy.updateTransform=a.wx.prototype.updateTransform,this.legacy._parentID=-1))}clear(){this._currentProjID=-1,this._projID=0}}class _ extends r.AbstractBatchRenderer{constructor(...t){super(...t),_.prototype.__init.call(this),_.prototype.__init2.call(this)}__init(){this.forceMaxTextures=0}getUniforms(t){return this.defUniforms}syncUniforms(t){if(!t)return;const e=this._shader;for(const n in t)e.uniforms[n]=t[n]}__init2(){this.defUniforms={}}buildDrawCalls(t,e,n){const i=this,{_bufferedElements:a,_attributeBuffer:s,_indexBuffer:c,vertexSize:l}=this,u=r.AbstractBatchRenderer._drawCallPool;let h=this._dcIndex,f=this._aIndex,d=this._iIndex,p=u[h];p.start=this._iIndex,p.texArray=t;for(let r=e;r<n;++r){const n=a[r],i=n._texture.baseTexture,g=o.YA[i.alphaMode?1:0][n.blendMode],m=this.getUniforms(n);a[r]=null,e<r&&(p.blend!==g||p.uniforms!==m)&&(p.size=d-p.start,e=r,p=u[++h],p.texArray=t,p.start=d),this.packInterleavedGeometry(n,s,c,f,d),f+=n.vertexData.length/2*l,d+=n.indices.length,p.blend=g,p.uniforms=m}e<n&&(p.size=d-p.start,++h),i._dcIndex=h,i._aIndex=f,i._iIndex=d}drawBatches(){const t=this._dcIndex,{gl:e,state:n,shader:i}=this.renderer,o=r.AbstractBatchRenderer._drawCallPool;let a=null,s=null;for(let r=0;r<t;r++){const{texArray:t,type:c,size:l,start:u,blend:h,uniforms:f}=o[r];s!==t&&(s=t,this.bindAndClearTexArray(t)),a!==f&&(a=f,this.syncUniforms(f),i.syncUniformGroup(this._shader.uniformGroup)),this.state.blendMode=h,n.set(this.state),e.drawElements(c,l,e.UNSIGNED_SHORT,2*u)}}contextChange(){if(!this.forceMaxTextures)return super.contextChange(),void this.syncUniforms(this.defUniforms);const t=this;t.MAX_TEXTURES=this.forceMaxTextures,this._shader=t.shaderGenerator.generateShader(this.MAX_TEXTURES),this.syncUniforms(this.defUniforms);for(let e=0;e<t._packedGeometryPoolSize;e++)t._packedGeometries[e]=new this.geometryClass;this.initFlushBuffers()}}r.Renderer.registerPlugin("batch2d",class{static create(t){const{vertex:e,fragment:n,vertexSize:i,geometryClass:a}=Object.assign({vertex:"precision highp float;\nattribute vec3 aVertexPosition;\nattribute vec2 aTextureCoord;\nattribute vec4 aColor;\nattribute float aTextureId;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\nvarying float vTextureId;\n\nvoid main(void){\ngl_Position.xyw = projectionMatrix * aVertexPosition;\ngl_Position.z = 0.0;\n\nvTextureCoord = aTextureCoord;\nvTextureId = aTextureId;\nvColor = aColor;\n}\n",fragment:"\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\nvarying float vTextureId;\nuniform sampler2D uSamplers[%count%];\n\nvoid main(void){\nvec4 color;\n%forloop%\ngl_FragColor = color * vColor;\n}",geometryClass:d,vertexSize:7},t);return class extends r.AbstractBatchRenderer{constructor(t){super(t),this.shaderGenerator=new r.BatchShaderGenerator(e,n),this.geometryClass=a,this.vertexSize=i}packInterleavedGeometry(t,e,n,r,i){const{uint32View:a,float32View:s}=e,c=r/this.vertexSize,l=t.uvs,u=t.indices,h=t.vertexData,f=t.vertexData2d,d=t._texture.baseTexture._batchLocation,p=Math.min(t.worldAlpha,1),g=p<1&&t._texture.baseTexture.alphaMode?(0,o.rA)(t._tintRGB,p):t._tintRGB+(255*p<<24);if(f){let t=0;for(let e=0;e<f.length;e+=3,t+=2)s[r++]=f[e],s[r++]=f[e+1],s[r++]=f[e+2],s[r++]=l[t],s[r++]=l[t+1],a[r++]=g,s[r++]=d}else for(let t=0;t<h.length;t+=2)s[r++]=h[t],s[r++]=h[t+1],s[r++]=1,s[r++]=l[t],s[r++]=l[t+1],a[r++]=g,s[r++]=d;for(let t=0;t<u.length;t++)n[i++]=c+u[t]}}}}.create({}));const b=[1,0,0,0,1,0,0,0,1];class x{static __initStatic(){this.IDENTITY=new x}static __initStatic2(){this.TEMP_MATRIX=new x}__init(){this.floatArray=null}constructor(t){x.prototype.__init.call(this),this.mat3=new Float64Array(t||b)}get a(){return this.mat3[0]/this.mat3[8]}set a(t){this.mat3[0]=t*this.mat3[8]}get b(){return this.mat3[1]/this.mat3[8]}set b(t){this.mat3[1]=t*this.mat3[8]}get c(){return this.mat3[3]/this.mat3[8]}set c(t){this.mat3[3]=t*this.mat3[8]}get d(){return this.mat3[4]/this.mat3[8]}set d(t){this.mat3[4]=t*this.mat3[8]}get tx(){return this.mat3[6]/this.mat3[8]}set tx(t){this.mat3[6]=t*this.mat3[8]}get ty(){return this.mat3[7]/this.mat3[8]}set ty(t){this.mat3[7]=t*this.mat3[8]}set(t,e,n,r,i,o){const a=this.mat3;return a[0]=t,a[1]=e,a[2]=0,a[3]=n,a[4]=r,a[5]=0,a[6]=i,a[7]=o,a[8]=1,this}toArray(t,e){this.floatArray||(this.floatArray=new Float32Array(9));const n=e||this.floatArray,r=this.mat3;return t?(n[0]=r[0],n[1]=r[1],n[2]=r[2],n[3]=r[3],n[4]=r[4],n[5]=r[5],n[6]=r[6],n[7]=r[7],n[8]=r[8]):(n[0]=r[0],n[1]=r[3],n[2]=r[6],n[3]=r[1],n[4]=r[4],n[5]=r[7],n[6]=r[2],n[7]=r[5],n[8]=r[8]),n}apply(t,e){e=e||new a.E9;const n=this.mat3,r=t.x,i=t.y,o=1/(n[2]*r+n[5]*i+n[8]);return e.x=o*(n[0]*r+n[3]*i+n[6]),e.y=o*(n[1]*r+n[4]*i+n[7]),e}translate(t,e){const n=this.mat3;return n[0]+=t*n[2],n[1]+=e*n[2],n[3]+=t*n[5],n[4]+=e*n[5],n[6]+=t*n[8],n[7]+=e*n[8],this}scale(t,e){const n=this.mat3;return n[0]*=t,n[1]*=e,n[3]*=t,n[4]*=e,n[6]*=t,n[7]*=e,this}scaleAndTranslate(t,e,n,r){const i=this.mat3;i[0]=t*i[0]+n*i[2],i[1]=e*i[1]+r*i[2],i[3]=t*i[3]+n*i[5],i[4]=e*i[4]+r*i[5],i[6]=t*i[6]+n*i[8],i[7]=e*i[7]+r*i[8]}applyInverse(t,e){e=e||new a.E9;const n=this.mat3,r=t.x,i=t.y,o=n[0],s=n[3],c=n[6],l=n[1],u=n[4],h=n[7],f=n[2],d=n[5],p=n[8],g=(p*u-h*d)*r+(-p*s+c*d)*i+(h*s-c*u),m=(-p*l+h*f)*r+(p*o-c*f)*i+(-h*o+c*l),y=(d*l-u*f)*r+(-d*o+s*f)*i+(u*o-s*l);return e.x=g/y,e.y=m/y,e}invert(){const t=this.mat3,e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],c=t[7],l=t[8],u=l*o-a*c,h=-l*i+a*s,f=c*i-o*s;let d=e*u+n*h+r*f;return d?(d=1/d,t[0]=u*d,t[1]=(-l*n+r*c)*d,t[2]=(a*n-r*o)*d,t[3]=h*d,t[4]=(l*e-r*s)*d,t[5]=(-a*e+r*i)*d,t[6]=f*d,t[7]=(-c*e+n*s)*d,t[8]=(o*e-n*i)*d,this):this}identity(){const t=this.mat3;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,this}clone(){return new x(this.mat3)}copyTo2dOr3d(t){const e=this.mat3,n=t.mat3;return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4],n[5]=e[5],n[6]=e[6],n[7]=e[7],n[8]=e[8],t}copyTo(t,e,n){const r=this.mat3,i=1/r[8],o=r[6]*i,a=r[7]*i;if(t.a=(r[0]-r[2]*o)*i,t.b=(r[1]-r[2]*a)*i,t.c=(r[3]-r[5]*o)*i,t.d=(r[4]-r[5]*a)*i,t.tx=o,t.ty=a,e>=2){let r=t.a*t.d-t.b*t.c;n||(r=Math.abs(r)),e===m.POINT?(r=r>0?1:-1,t.a=r,t.b=0,t.c=0,t.d=r):e===m.AXIS_X?(r/=Math.sqrt(t.b*t.b+t.d*t.d),t.c=0,t.d=r):e===m.AXIS_Y?(r/=Math.sqrt(t.a*t.a+t.c*t.c),t.a=r,t.c=0):e===m.AXIS_XR&&(t.a=t.d*r,t.c=-t.b*r)}return t}copyFrom(t){const e=this.mat3;return e[0]=t.a,e[1]=t.b,e[2]=0,e[3]=t.c,e[4]=t.d,e[5]=0,e[6]=t.tx,e[7]=t.ty,e[8]=1,this}setToMultLegacy(t,e){const n=this.mat3,r=e.mat3,i=t.a,o=t.b,a=t.c,s=t.d,c=t.tx,l=t.ty,u=r[0],h=r[1],f=r[2],d=r[3],p=r[4],g=r[5],m=r[6],y=r[7],v=r[8];return n[0]=u*i+h*a+f*c,n[1]=u*o+h*s+f*l,n[2]=f,n[3]=d*i+p*a+g*c,n[4]=d*o+p*s+g*l,n[5]=g,n[6]=m*i+y*a+v*c,n[7]=m*o+y*s+v*l,n[8]=v,this}setToMultLegacy2(t,e){const n=this.mat3,r=t.mat3,i=r[0],o=r[1],a=r[2],s=r[3],c=r[4],l=r[5],u=r[6],h=r[7],f=r[8],d=e.a,p=e.b,g=e.c,m=e.d,y=e.tx,v=e.ty;return n[0]=d*i+p*s,n[1]=d*o+p*c,n[2]=d*a+p*l,n[3]=g*i+m*s,n[4]=g*o+m*c,n[5]=g*a+m*l,n[6]=y*i+v*s+u,n[7]=y*o+v*c+h,n[8]=y*a+v*l+f,this}setToMult(t,e){const n=this.mat3,r=t.mat3,i=e.mat3,o=r[0],a=r[1],s=r[2],c=r[3],l=r[4],u=r[5],h=r[6],f=r[7],d=r[8],p=i[0],g=i[1],m=i[2],y=i[3],v=i[4],_=i[5],b=i[6],x=i[7],w=i[8];return n[0]=p*o+g*c+m*h,n[1]=p*a+g*l+m*f,n[2]=p*s+g*u+m*d,n[3]=y*o+v*c+_*h,n[4]=y*a+v*l+_*f,n[5]=y*s+v*u+_*d,n[6]=b*o+x*c+w*h,n[7]=b*a+x*l+w*f,n[8]=b*s+x*u+w*d,this}prepend(t){return t.mat3?this.setToMult(t,this):this.setToMultLegacy(t,this)}}x.__initStatic(),x.__initStatic2();const w="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform mat3 uTransform;\n\nvarying vec3 vTextureCoord;\n\nvoid main(void)\n{\ngl_Position.xyw = projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0);\n\nvTextureCoord = uTransform * vec3(aTextureCoord, 1.0);\n}\n",T=new x;class C extends r.ObjectRenderer{constructor(t){super(t),C.prototype.__init.call(this);const e={globals:this.renderer.globalUniforms};this.shader=r.Shader.from(w,"\nvarying vec3 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec4 uColor;\nuniform mat3 uMapCoord;\nuniform vec4 uClampFrame;\nuniform vec2 uClampOffset;\n\nvoid main(void)\n{\nvec2 coord = mod(vTextureCoord.xy / vTextureCoord.z - uClampOffset, vec2(1.0, 1.0)) + uClampOffset;\ncoord = (uMapCoord * vec3(coord, 1.0)).xy;\ncoord = clamp(coord, uClampFrame.xy, uClampFrame.zw);\n\nvec4 sample = texture2D(uSampler, coord);\ngl_FragColor = sample * uColor;\n}\n",e),this.simpleShader=r.Shader.from(w,"\nvarying vec3 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec4 uColor;\n\nvoid main(void)\n{\nvec4 sample = texture2D(uSampler, vTextureCoord.xy / vTextureCoord.z);\ngl_FragColor = sample * uColor;\n}\n",e)}__init(){this.quad=new r.QuadUv}render(t){const e=this.renderer,n=this.quad;let r=n.vertices;r[0]=r[6]=t._width*-t.anchor.x,r[1]=r[3]=t._height*-t.anchor.y,r[2]=r[4]=t._width*(1-t.anchor.x),r[5]=r[7]=t._height*(1-t.anchor.y),t.uvRespectAnchor&&(r=n.uvs,r[0]=r[6]=-t.anchor.x,r[1]=r[3]=-t.anchor.y,r[2]=r[4]=1-t.anchor.x,r[5]=r[7]=1-t.anchor.y),n.invalidate();const a=t._texture,s=a.baseTexture,c=t.tileProj.world,l=t.uvMatrix;let u=s.isPowerOfTwo&&a.frame.width===s.width&&a.frame.height===s.height;u&&(s._glTextures[e.CONTEXT_UID]?u=s.wrapMode!==i.Nt.CLAMP:s.wrapMode===i.Nt.CLAMP&&(s.wrapMode=i.Nt.REPEAT));const h=u?this.simpleShader:this.shader;T.identity(),T.scale(a.width,a.height),T.prepend(c),T.scale(1/t._width,1/t._height),T.invert(),u?T.prepend(l.mapCoord):(h.uniforms.uMapCoord=l.mapCoord.toArray(!0),h.uniforms.uClampFrame=l.uClampFrame,h.uniforms.uClampOffset=l.uClampOffset),h.uniforms.uTransform=T.toArray(!0),h.uniforms.uColor=(0,o.GT)(t.tint,t.worldAlpha,h.uniforms.uColor,s.premultiplyAlpha),h.uniforms.translationMatrix=t.worldTransform.toArray(!0),h.uniforms.uSampler=a,e.shader.bind(h,!1),e.geometry.bind(n,void 0),e.state.setBlendMode((0,o.D)(t.blendMode,s.premultiplyAlpha)),e.geometry.draw(i.lg.TRIANGLES,6,0)}}const S=new a.E9,k=[new a.E9,new a.E9,new a.E9,new a.E9],E=new a.Ae,P=new x;class R extends v{constructor(t,e){super(t,e),R.prototype.__init.call(this),R.prototype.__init2.call(this),R.prototype.__init3.call(this),this.local=new x,this.world=new x}__init(){this.matrix=new x}__init2(){this.pivot=new a.AB(this.onChange,this,0,0)}__init3(){this.reverseLocalOrder=!1}onChange(){const t=this.pivot,e=this.matrix.mat3;e[6]=-(t._x*e[0]+t._y*e[3]),e[7]=-(t._x*e[1]+t._y*e[4]),this._projID++}setAxisX(t,e=1){const n=t.x,r=t.y,i=Math.sqrt(n*n+r*r),o=this.matrix.mat3;o[0]=n/i,o[1]=r/i,o[2]=e/i,this.onChange()}setAxisY(t,e=1){const n=t.x,r=t.y,i=Math.sqrt(n*n+r*r),o=this.matrix.mat3;o[3]=n/i,o[4]=r/i,o[5]=e/i,this.onChange()}mapSprite(t,e){const n=t.texture;E.x=-t.anchor.x*n.orig.width,E.y=-t.anchor.y*n.orig.height,E.width=n.orig.width,E.height=n.orig.height,this.mapQuad(E,e)}mapQuad(t,e){k[0].set(t.x,t.y),k[1].set(t.x+t.width,t.y),k[2].set(t.x+t.width,t.y+t.height),k[3].set(t.x,t.y+t.height);let n=1,r=2,i=3;if(0===function(t,e,n,r,i){const o=e.x-t.x,a=n.x-r.x,s=n.x-t.x,c=e.y-t.y,l=n.y-r.y,u=n.y-t.y,h=o*l-c*a;if(Math.abs(h)<1e-7)return i.x=o,i.y=c,0;const f=(s*l-u*a)/h,d=(o*u-c*s)/h;return d<1e-6||d-1>-1e-6?-1:(i.x=t.x+f*(e.x-t.x),i.y=t.y+f*(e.y-t.y),1)}(e[0],e[2],e[1],e[3],S))return;n=1,r=3,i=2;const o=Math.sqrt((e[0].x-S.x)*(e[0].x-S.x)+(e[0].y-S.y)*(e[0].y-S.y)),a=Math.sqrt((e[n].x-S.x)*(e[n].x-S.x)+(e[n].y-S.y)*(e[n].y-S.y)),s=Math.sqrt((e[r].x-S.x)*(e[r].x-S.x)+(e[r].y-S.y)*(e[r].y-S.y)),c=Math.sqrt((e[i].x-S.x)*(e[i].x-S.x)+(e[i].y-S.y)*(e[i].y-S.y)),l=(o+c)/c,u=(a+s)/s,h=(a+s)/a;let f=this.matrix.mat3;f[0]=k[0].x*l,f[1]=k[0].y*l,f[2]=l,f[3]=k[n].x*u,f[4]=k[n].y*u,f[5]=u,f[6]=k[r].x*h,f[7]=k[r].y*h,f[8]=h,this.matrix.invert(),f=P.mat3,f[0]=e[0].x,f[1]=e[0].y,f[2]=1,f[3]=e[n].x,f[4]=e[n].y,f[5]=1,f[6]=e[r].x,f[7]=e[r].y,f[8]=1,this.matrix.setToMult(P,this.matrix),this._projID++}updateLocalTransform(t){0!==this._projID?this.reverseLocalOrder?this.local.setToMultLegacy2(this.matrix,t):this.local.setToMultLegacy(t,this.matrix):this.local.copyFrom(t)}clear(){super.clear(),this.matrix.identity(),this.pivot.set(0,0)}}function O(){return this.proj.affine?this.transform.worldTransform:this.proj.world}class D extends s.W2{constructor(){super(),this.proj=new R(this.transform)}toLocal(t,e,n,r,i=g.ALL){return e&&(t=e.toGlobal(t,n,r)),r||this._recursivePostUpdateTransform(),i>=g.PROJ?(r||this.displayObjectUpdateTransform(),this.proj.affine?this.transform.worldTransform.applyInverse(t,n):this.proj.world.applyInverse(t,n)):(this.parent?n=this.parent.worldTransform.applyInverse(t,n):(n.x=t.x,n.y=t.y),i===g.NONE?n:this.transform.localTransform.applyInverse(n,n))}get worldTransform(){return this.proj.affine?this.transform.worldTransform:this.proj.world}}const A=D.prototype.toLocal;class I extends l.Kj{static __initStatic(){this.defaultVertexShader="precision highp float;\nattribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform mat3 uTextureMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\ngl_Position.xyw = projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0);\ngl_Position.z = 0.0;\n\nvTextureCoord = (uTextureMatrix * vec3(aTextureCoord, 1.0)).xy;\n}\n"}static __initStatic2(){this.defaultFragmentShader="\nvarying vec2 vTextureCoord;\nuniform vec4 uColor;\n\nuniform sampler2D uSampler;\n\nvoid main(void)\n{\ngl_FragColor = texture2D(uSampler, vTextureCoord) * uColor;\n}"}constructor(t,e,n,r){super(t,e,n,r),I.prototype.__init.call(this),this.proj=new R(this.transform)}__init(){this.vertexData2d=null}calculateVertices(){if(this.proj._affine)return this.vertexData2d=null,void super.calculateVertices();const t=this.geometry,e=t.buffers[0].data,n=this;if(t.vertexDirtyId===n.vertexDirty&&n._transformID===n.transform._worldID)return;n._transformID=n.transform._worldID,n.vertexData.length!==e.length&&(n.vertexData=new Float32Array(e.length)),this.vertexData2d&&this.vertexData2d.length===3*e.length/2||(this.vertexData2d=new Float32Array(3*e.length));const r=this.proj.world.mat3,i=this.vertexData2d,o=n.vertexData;for(let t=0;t<o.length/2;t++){const n=e[2*t],a=e[2*t+1],s=r[0]*n+r[3]*a+r[6],c=r[1]*n+r[4]*a+r[7],l=r[2]*n+r[5]*a+r[8];i[3*t]=s,i[3*t+1]=c,i[3*t+2]=l,o[2*t]=s/l,o[2*t+1]=c/l}n.vertexDirty=t.vertexDirtyId}_renderDefault(t){const e=this.shader;e.alpha=this.worldAlpha,e.update&&e.update(),t.batch.flush(),function(t){let e,n=t[0],r=1;for(;r<t.length;){const i=t[r],o=t[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(e=n,n=o(n)):"call"!==i&&"optionalCall"!==i||(n=o(((...t)=>n.call(e,...t))),e=void 0)}return n}([e,"access",t=>t.program,"access",t=>t.uniformData,"optionalAccess",t=>t.translationMatrix])&&(e.uniforms.translationMatrix=this.worldTransform.toArray(!0)),t.shader.bind(e,!1),t.state.set(this.state),t.geometry.bind(this.geometry,e),t.geometry.draw(this.drawMode,this.size,this.start,this.geometry.instanceCount)}toLocal(t,e,n,r,i=g.ALL){return A.call(this,t,e,n,r,i)}get worldTransform(){return this.proj.affine?this.transform.worldTransform:this.proj.world}}I.__initStatic(),I.__initStatic2();class F extends h.j{constructor(t){super(t),F.prototype.__init.call(this),this.proj=new R(this.transform),this.pluginName="batch2d"}__init(){this.vertexData2d=null}_calculateBounds(){this.calculateTrimmedVertices(),this._bounds.addQuad(this.vertexTrimmedData)}calculateVertices(){const t=this._texture;if(this.proj._affine)return this.vertexData2d=null,void super.calculateVertices();this.vertexData2d||(this.vertexData2d=new Float32Array(12));const e=this.transform._worldID,n=t._updateID;if(this._transformID===e&&this._textureID===n)return;this._textureID!==n&&(this.uvs=t._uvs.uvsFloat32),this._transformID=e,this._textureID=n;const r=this.proj.world.mat3,i=this.vertexData2d,o=this.vertexData,a=t.trim,s=t.orig,c=this._anchor;let l,u,h,f;a?(u=a.x-c._x*s.width,l=u+a.width,f=a.y-c._y*s.height,h=f+a.height):(u=-c._x*s.width,l=u+s.width,f=-c._y*s.height,h=f+s.height),i[0]=r[0]*u+r[3]*f+r[6],i[1]=r[1]*u+r[4]*f+r[7],i[2]=r[2]*u+r[5]*f+r[8],i[3]=r[0]*l+r[3]*f+r[6],i[4]=r[1]*l+r[4]*f+r[7],i[5]=r[2]*l+r[5]*f+r[8],i[6]=r[0]*l+r[3]*h+r[6],i[7]=r[1]*l+r[4]*h+r[7],i[8]=r[2]*l+r[5]*h+r[8],i[9]=r[0]*u+r[3]*h+r[6],i[10]=r[1]*u+r[4]*h+r[7],i[11]=r[2]*u+r[5]*h+r[8],o[0]=i[0]/i[2],o[1]=i[1]/i[2],o[2]=i[3]/i[5],o[3]=i[4]/i[5],o[4]=i[6]/i[8],o[5]=i[7]/i[8],o[6]=i[9]/i[11],o[7]=i[10]/i[11]}calculateTrimmedVertices(){if(this.proj._affine)return void super.calculateTrimmedVertices();const t=this.transform._worldID,e=this._texture._updateID,n=this;if(n.vertexTrimmedData){if(n._transformTrimmedID===t&&this._textureTrimmedID===e)return}else n.vertexTrimmedData=new Float32Array(8);n._transformTrimmedID=t,this._textureTrimmedID=e;const r=this._texture,i=n.vertexTrimmedData,o=r.orig,a=this.tileProj?this._width:o.width,s=this.tileProj?this._height:o.height,c=this._anchor,l=this.proj.world.mat3,u=-c._x*a,h=u+a,f=-c._y*s,d=f+s;let p=1/(l[2]*u+l[5]*f+l[8]);i[0]=p*(l[0]*u+l[3]*f+l[6]),i[1]=p*(l[1]*u+l[4]*f+l[7]),p=1/(l[2]*h+l[5]*f+l[8]),i[2]=p*(l[0]*h+l[3]*f+l[6]),i[3]=p*(l[1]*h+l[4]*f+l[7]),p=1/(l[2]*h+l[5]*d+l[8]),i[4]=p*(l[0]*h+l[3]*d+l[6]),i[5]=p*(l[1]*h+l[4]*d+l[7]),p=1/(l[2]*u+l[5]*d+l[8]),i[6]=p*(l[0]*u+l[3]*d+l[6]),i[7]=p*(l[1]*u+l[4]*d+l[7])}toLocal(t,e,n,r,i=g.ALL){return A.call(this,t,e,n,r,i)}get worldTransform(){return this.proj.affine?this.transform.worldTransform:this.proj.world}}const L=new a.wx;class M extends c.o{constructor(t,e,n){super(t,e,n),this.tileProj=new R(this.tileTransform),this.tileProj.reverseLocalOrder=!0,this.proj=new R(this.transform),this.pluginName="tilingSprite2d",this.uvRespectAnchor=!0}get worldTransform(){return this.proj.affine?this.transform.worldTransform:this.proj.world}toLocal(t,e,n,r,i=g.ALL){return A.call(this,t,e,n,r,i)}_render(t){const e=this._texture;e&&e.valid&&(this.tileTransform.updateTransform(L),this.uvMatrix.update(),t.batch.setObjectRenderer(t.plugins[this.pluginName]),t.plugins[this.pluginName].render(this))}}function N(){this.proj||(this.proj=new R(this.transform),this.toLocal=D.prototype.toLocal,Object.defineProperty(this,"worldTransform",{get:O,enumerable:!0,configurable:!0}))}s.W2.prototype.convertTo2d=N,h.j.prototype.convertTo2d=function(){this.proj||(this.calculateVertices=F.prototype.calculateVertices,this.calculateTrimmedVertices=F.prototype.calculateTrimmedVertices,this._calculateBounds=F.prototype._calculateBounds,this.pluginName="batch2d",N.call(this))},s.W2.prototype.convertSubtreeTo2d=function(){this.convertTo2d();for(let t=0;t<this.children.length;t++)this.children[t].convertSubtreeTo2d()},u.AL.prototype.convertTo2d=u.IE.prototype.convertTo2d=function(){this.proj||(this.calculateVertices=I.prototype.calculateVertices,this._renderDefault=I.prototype._renderDefault,"batch2d"!==this.material.pluginName&&(this.material=new l.rY(this.material.texture,{program:r.Program.from(I.defaultVertexShader,I.defaultFragmentShader),pluginName:"batch2d"})),N.call(this))},c.o.prototype.convertTo2d=function(){this.proj||(this.tileProj=new R(this.tileTransform),this.tileProj.reverseLocalOrder=!0,this.uvRespectAnchor=!0,this.calculateTrimmedVertices=F.prototype.calculateTrimmedVertices,this._calculateBounds=F.prototype._calculateBounds,this._render=M.prototype._render,this.pluginName="tilingSprite2d",N.call(this))};class j extends f.xv{constructor(t,e,n){super(t,e,n),j.prototype.__init.call(this),this.proj=new R(this.transform),this.pluginName="batch2d"}__init(){this.vertexData2d=null}get worldTransform(){return this.proj.affine?this.transform.worldTransform:this.proj.world}}j.prototype.calculateVertices=F.prototype.calculateVertices,j.prototype.calculateTrimmedVertices=F.prototype.calculateTrimmedVertices,j.prototype._calculateBounds=F.prototype._calculateBounds;const B=new x;class U extends r.Filter{constructor(t){super("\nattribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 otherMatrix;\n\nvarying vec3 vMaskCoord;\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\ngl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\nvTextureCoord = aTextureCoord;\nvMaskCoord = otherMatrix * vec3( aTextureCoord, 1.0);\n}\n","\nvarying vec3 vMaskCoord;\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform sampler2D mask;\nuniform float alpha;\nuniform vec4 maskClamp;\n\nvoid main(void)\n{\nvec2 uv = vMaskCoord.xy / vMaskCoord.z;\n\nfloat clip = step(3.5,\n step(maskClamp.x, uv.x) +\n step(maskClamp.y, uv.y) +\n step(uv.x, maskClamp.z) +\n step(uv.y, maskClamp.w));\n\nvec4 original = texture2D(uSampler, vTextureCoord);\nvec4 masky = texture2D(mask, uv);\n\noriginal *= (masky.r * masky.a * alpha * clip);\n\ngl_FragColor = original;\n}\n"),U.prototype.__init.call(this),t.renderable=!1,this.maskSprite=t}__init(){this.maskMatrix=new x}apply(t,e,n,i){const o=this.maskSprite,a=this.maskSprite.texture;a.valid&&(a.uvMatrix||(a.uvMatrix=new r.TextureMatrix(a,0)),a.uvMatrix.update(),this.uniforms.npmAlpha=a.baseTexture.alphaMode?0:1,this.uniforms.mask=o.texture,this.uniforms.otherMatrix=U.calculateSpriteMatrix(e,this.maskMatrix,o).prepend(a.uvMatrix.mapCoord),this.uniforms.alpha=o.worldAlpha,this.uniforms.maskClamp=a.uvMatrix.uClampFrame,t.applyFilter(this,e,n,i))}static calculateSpriteMatrix(t,e,n){const r=n.proj,i=t.filterFrame,o=r&&!r._affine?r.world.copyTo2dOr3d(B):B.copyFrom(n.transform.worldTransform),a=n.texture.orig;return e.set(t.width,0,0,t.height,i.x,i.y),o.invert(),e.setToMult(o,e),e.scaleAndTranslate(1/a.width,1/a.height,n.anchor.x,n.anchor.y),e}}r.MaskSystem.prototype.pushSpriteMask=function(t){const{maskObject:e}=t,n=t._target;let r=this.alphaMaskPool[this.alphaMaskIndex];r||(r=this.alphaMaskPool[this.alphaMaskIndex]=[new U(e)]),r[0].resolution=this.renderer.resolution,r[0].maskSprite=e;const i=n.filterArea;n.filterArea=e.getBounds(!0),this.renderer.filter.push(n,r),n.filterArea=i,this.alphaMaskIndex++},r.Renderer.registerPlugin("tilingSprite2d",C);class z extends a.E9{constructor(t,e,n){super(t,e),this.z=n}set(t,e,n){return this.x=t||0,this.y=void 0===e?this.x:e||0,this.z=void 0===e?this.x:n||0,this}copyFrom(t){return this.set(t.x,t.y,t.z||0),this}copyTo(t){return t.set(this.x,this.y,this.z),t}}class W extends a.AB{constructor(...t){super(...t),W.prototype.__init.call(this)}__init(){this._z=0}get z(){return this._z}set z(t){this._z!==t&&(this._z=t,this.cb.call(this.scope))}set(t,e,n){const r=t||0,i=void 0===e?r:e||0,o=void 0===e?r:n||0;return this._x===r&&this._y===i&&this._z===o||(this._x=r,this._y=i,this._z=o,this.cb.call(this.scope)),this}copyFrom(t){return this.set(t.x,t.y,t.z||0),this}copyTo(t){return t.set(this._x,this._y,this._z),t}}class V{constructor(t,e,n){V.prototype.__init.call(this),V.prototype.__init2.call(this),V.prototype.__init3.call(this),this._x=t||0,this._y=e||0,this._z=n||0,this.quaternion=new Float64Array(4),this.quaternion[3]=1,this.update()}__init(){this._quatUpdateId=-1}__init2(){this._quatDirtyId=0}__init3(){this._sign=1}get x(){return this._x}set x(t){this._x!==t&&(this._x=t,this._quatDirtyId++)}get y(){return this._y}set y(t){this._y!==t&&(this._y=t,this._quatDirtyId++)}get z(){return this._z}set z(t){this._z!==t&&(this._z=t,this._quatDirtyId++)}get pitch(){return this._x}set pitch(t){this._x!==t&&(this._x=t,this._quatDirtyId++)}get yaw(){return this._y}set yaw(t){this._y!==t&&(this._y=t,this._quatDirtyId++)}get roll(){return this._z}set roll(t){this._z!==t&&(this._z=t,this._quatDirtyId++)}set(t,e,n){const r=t||0,i=e||0,o=n||0;this._x===r&&this._y===i&&this._z===o||(this._x=r,this._y=i,this._z=o,this._quatDirtyId++)}copyFrom(t){const e=t.x,n=t.y,r=t.z;return this._x===e&&this._y===n&&this._z===r||(this._x=e,this._y=n,this._z=r,this._quatDirtyId++),this}copyTo(t){return t.set(this._x,this._y,this._z),t}equals(t){return this._x===t.x&&this._y===t.y&&this._z===t.z}clone(){return new V(this._x,this._y,this._z)}update(){if(this._quatUpdateId===this._quatDirtyId)return!1;this._quatUpdateId=this._quatDirtyId;const t=Math.cos(this._x/2),e=Math.cos(this._y/2),n=Math.cos(this._z/2),r=this._sign,i=r*Math.sin(this._x/2),o=r*Math.sin(this._y/2),a=r*Math.sin(this._z/2),s=this.quaternion;return s[0]=i*e*n+t*o*a,s[1]=t*o*n-i*e*a,s[2]=t*e*a+i*o*n,s[3]=t*e*n-i*o*a,!0}}class q{constructor(t,e,n,r,i){this.cb=t,this.scope=e,q.prototype.__init.call(this),q.prototype.__init2.call(this),q.prototype.__init3.call(this),this._x=n||0,this._y=r||0,this._z=i||0,this.quaternion=new Float64Array(4),this.quaternion[3]=1,this.update()}__init(){this._quatUpdateId=-1}__init2(){this._quatDirtyId=0}__init3(){this._sign=1}get x(){return this._x}set x(t){this._x!==t&&(this._x=t,this._quatDirtyId++,this.cb.call(this.scope))}get y(){return this._y}set y(t){this._y!==t&&(this._y=t,this._quatDirtyId++,this.cb.call(this.scope))}get z(){return this._z}set z(t){this._z!==t&&(this._z=t,this._quatDirtyId++,this.cb.call(this.scope))}get pitch(){return this._x}set pitch(t){this._x!==t&&(this._x=t,this._quatDirtyId++,this.cb.call(this.scope))}get yaw(){return this._y}set yaw(t){this._y!==t&&(this._y=t,this._quatDirtyId++,this.cb.call(this.scope))}get roll(){return this._z}set roll(t){this._z!==t&&(this._z=t,this._quatDirtyId++,this.cb.call(this.scope))}set(t,e,n){const r=t||0,i=e||0,o=n||0;return this._x===r&&this._y===i&&this._z===o||(this._x=r,this._y=i,this._z=o,this._quatDirtyId++,this.cb.call(this.scope)),this}copyFrom(t){const e=t.x,n=t.y,r=t.z;return this._x===e&&this._y===n&&this._z===r||(this._x=e,this._y=n,this._z=r,this._quatDirtyId++,this.cb.call(this.scope)),this}copyTo(t){return t.set(this._x,this._y,this._z),t}equals(t){return this._x===t.x&&this._y===t.y&&this._z===t.z}clone(){return new V(this._x,this._y,this._z)}update(){if(this._quatUpdateId===this._quatDirtyId)return!1;this._quatUpdateId=this._quatDirtyId;const t=Math.cos(this._x/2),e=Math.cos(this._y/2),n=Math.cos(this._z/2),r=this._sign,i=r*Math.sin(this._x/2),o=r*Math.sin(this._y/2),a=r*Math.sin(this._z/2),s=this.quaternion;return s[0]=i*e*n+t*o*a,s[1]=t*o*n-i*e*a,s[2]=t*e*a+i*o*n,s[3]=t*e*n-i*o*a,!0}}const H=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];class G{static __initStatic(){this.IDENTITY=new G}static __initStatic2(){this.TEMP_MATRIX=new G}__init(){this.floatArray=null}__init2(){this._dirtyId=0}__init3(){this._updateId=-1}__init4(){this._mat4inv=null}__init5(){this.cacheInverse=!1}constructor(t){G.prototype.__init.call(this),G.prototype.__init2.call(this),G.prototype.__init3.call(this),G.prototype.__init4.call(this),G.prototype.__init5.call(this),this.mat4=new Float64Array(t||H)}get a(){return this.mat4[0]/this.mat4[15]}set a(t){this.mat4[0]=t*this.mat4[15]}get b(){return this.mat4[1]/this.mat4[15]}set b(t){this.mat4[1]=t*this.mat4[15]}get c(){return this.mat4[4]/this.mat4[15]}set c(t){this.mat4[4]=t*this.mat4[15]}get d(){return this.mat4[5]/this.mat4[15]}set d(t){this.mat4[5]=t*this.mat4[15]}get tx(){return this.mat4[12]/this.mat4[15]}set tx(t){this.mat4[12]=t*this.mat4[15]}get ty(){return this.mat4[13]/this.mat4[15]}set ty(t){this.mat4[13]=t*this.mat4[15]}set(t,e,n,r,i,o){const a=this.mat4;return a[0]=t,a[1]=e,a[2]=0,a[3]=0,a[4]=n,a[5]=r,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=1,a[11]=0,a[12]=i,a[13]=o,a[14]=0,a[15]=1,this}toArray(t,e){this.floatArray||(this.floatArray=new Float32Array(9));const n=e||this.floatArray,r=this.mat4;return t?(n[0]=r[0],n[1]=r[1],n[2]=r[3],n[3]=r[4],n[4]=r[5],n[5]=r[7],n[6]=r[12],n[7]=r[13],n[8]=r[15]):(n[0]=r[0],n[1]=r[4],n[2]=r[12],n[3]=r[2],n[4]=r[6],n[5]=r[13],n[6]=r[3],n[7]=r[7],n[8]=r[15]),n}setToTranslation(t,e,n){const r=this.mat4;r[0]=1,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=1,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=1,r[11]=0,r[12]=t,r[13]=e,r[14]=n,r[15]=1}setToRotationTranslationScale(t,e,n,r,i,o,a){const s=this.mat4,c=t[0],l=t[1],u=t[2],h=t[3],f=c+c,d=l+l,p=u+u,g=c*f,m=c*d,y=c*p,v=l*d,_=l*p,b=u*p,x=h*f,w=h*d,T=h*p;return s[0]=(1-(v+b))*i,s[1]=(m+T)*i,s[2]=(y-w)*i,s[3]=0,s[4]=(m-T)*o,s[5]=(1-(g+b))*o,s[6]=(_+x)*o,s[7]=0,s[8]=(y+w)*a,s[9]=(_-x)*a,s[10]=(1-(g+v))*a,s[11]=0,s[12]=e,s[13]=n,s[14]=r,s[15]=1,s}apply(t,e){e=e||new z;const n=this.mat4,r=t.x,i=t.y,o=t.z||0,a=1/(n[3]*r+n[7]*i+n[11]*o+n[15]);return e.x=a*(n[0]*r+n[4]*i+n[8]*o+n[12]),e.y=a*(n[1]*r+n[5]*i+n[9]*o+n[13]),e.z=a*(n[2]*r+n[6]*i+n[10]*o+n[14]),e}translate(t,e,n){const r=this.mat4;return r[12]=r[0]*t+r[4]*e+r[8]*n+r[12],r[13]=r[1]*t+r[5]*e+r[9]*n+r[13],r[14]=r[2]*t+r[6]*e+r[10]*n+r[14],r[15]=r[3]*t+r[7]*e+r[11]*n+r[15],this}scale(t,e,n){const r=this.mat4;return r[0]*=t,r[1]*=t,r[2]*=t,r[3]*=t,r[4]*=e,r[5]*=e,r[6]*=e,r[7]*=e,void 0!==n&&(r[8]*=n,r[9]*=n,r[10]*=n,r[11]*=n),this}scaleAndTranslate(t,e,n,r,i,o){const a=this.mat4;a[0]=t*a[0]+r*a[3],a[1]=e*a[1]+i*a[3],a[2]=n*a[2]+o*a[3],a[4]=t*a[4]+r*a[7],a[5]=e*a[5]+i*a[7],a[6]=n*a[6]+o*a[7],a[8]=t*a[8]+r*a[11],a[9]=e*a[9]+i*a[11],a[10]=n*a[10]+o*a[11],a[12]=t*a[12]+r*a[15],a[13]=e*a[13]+i*a[15],a[14]=n*a[14]+o*a[15]}applyInverse(t,e){e=e||new z,this._mat4inv||(this._mat4inv=new Float64Array(16));const n=this._mat4inv,r=this.mat4,i=t.x,o=t.y;let a=t.z||0;this.cacheInverse&&this._updateId===this._dirtyId||(this._updateId=this._dirtyId,G.glMatrixMat4Invert(n,r));const s=1/(n[3]*i+n[7]*o+n[11]*a+n[15]),c=s*(n[0]*i+n[4]*o+n[8]*a+n[12]),l=s*(n[1]*i+n[5]*o+n[9]*a+n[13]),u=s*(n[2]*i+n[6]*o+n[10]*a+n[14]);a+=1;const h=1/(n[3]*i+n[7]*o+n[11]*a+n[15]),f=h*(n[0]*i+n[4]*o+n[8]*a+n[12]),d=h*(n[1]*i+n[5]*o+n[9]*a+n[13]),p=h*(n[2]*i+n[6]*o+n[10]*a+n[14]);Math.abs(u-p)<1e-10&&e.set(NaN,NaN,0);const g=(0-u)/(p-u);return e.set((f-c)*g+c,(d-l)*g+l,0),e}invert(){return G.glMatrixMat4Invert(this.mat4,this.mat4),this}invertCopyTo(t){this._mat4inv||(this._mat4inv=new Float64Array(16));const e=this._mat4inv,n=this.mat4;this.cacheInverse&&this._updateId===this._dirtyId||(this._updateId=this._dirtyId,G.glMatrixMat4Invert(e,n)),t.mat4.set(e)}identity(){const t=this.mat4;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}clone(){return new G(this.mat4)}copyTo3d(t){const e=this.mat4,n=t.mat4;return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4],n[5]=e[5],n[6]=e[6],n[7]=e[7],n[8]=e[8],t}copyTo2d(t){const e=this.mat4,n=t.mat3;return n[0]=e[0],n[1]=e[1],n[2]=e[3],n[3]=e[4],n[4]=e[5],n[5]=e[7],n[6]=e[12],n[7]=e[13],n[8]=e[15],t}copyTo2dOr3d(t){return t instanceof x?this.copyTo2d(t):this.copyTo3d(t)}copyTo(t,e,n){const r=this.mat4,i=1/r[15],o=r[12]*i,a=r[13]*i;if(t.a=(r[0]-r[3]*o)*i,t.b=(r[1]-r[3]*a)*i,t.c=(r[4]-r[7]*o)*i,t.d=(r[5]-r[7]*a)*i,t.tx=o,t.ty=a,e>=2){let r=t.a*t.d-t.b*t.c;n||(r=Math.abs(r)),e===m.POINT?(r=r>0?1:-1,t.a=r,t.b=0,t.c=0,t.d=r):e===m.AXIS_X?(r/=Math.sqrt(t.b*t.b+t.d*t.d),t.c=0,t.d=r):e===m.AXIS_Y&&(r/=Math.sqrt(t.a*t.a+t.c*t.c),t.a=r,t.c=0)}return t}copyFrom(t){const e=this.mat4;return e[0]=t.a,e[1]=t.b,e[2]=0,e[3]=0,e[4]=t.c,e[5]=t.d,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t.tx,e[13]=t.ty,e[14]=0,e[15]=1,this._dirtyId++,this}setToMultLegacy(t,e){const n=this.mat4,r=e.mat4,i=t.a,o=t.b,a=t.c,s=t.d,c=t.tx,l=t.ty;let u=r[0],h=r[1],f=r[2],d=r[3];return n[0]=u*i+h*a+d*c,n[1]=u*o+h*s+d*l,n[2]=f,n[3]=d,u=r[4],h=r[5],f=r[6],d=r[7],n[4]=u*i+h*a+d*c,n[5]=u*o+h*s+d*l,n[6]=f,n[7]=d,u=r[8],h=r[9],f=r[10],d=r[11],n[8]=u*i+h*a+d*c,n[9]=u*o+h*s+d*l,n[10]=f,n[11]=d,u=r[12],h=r[13],f=r[14],d=r[15],n[12]=u*i+h*a+d*c,n[13]=u*o+h*s+d*l,n[14]=f,n[15]=d,this._dirtyId++,this}setToMultLegacy2(t,e){const n=this.mat4,r=t.mat4,i=r[0],o=r[1],a=r[2],s=r[3],c=r[4],l=r[5],u=r[6],h=r[7],f=e.a,d=e.b,p=e.c,g=e.d,m=e.tx,y=e.ty;return n[0]=f*i+d*c,n[1]=f*o+d*l,n[2]=f*a+d*u,n[3]=f*s+d*h,n[4]=p*i+g*c,n[5]=p*o+g*l,n[6]=p*a+g*u,n[7]=p*s+g*h,n[8]=r[8],n[9]=r[9],n[10]=r[10],n[11]=r[11],n[12]=m*i+y*c+r[12],n[13]=m*o+y*l+r[13],n[14]=m*a+y*u+r[14],n[15]=m*s+y*h+r[15],this._dirtyId++,this}setToMult(t,e){return G.glMatrixMat4Multiply(this.mat4,t.mat4,e.mat4),this._dirtyId++,this}prepend(t){t.mat4?this.setToMult(t,this):this.setToMultLegacy(t,this)}static glMatrixMat4Invert(t,e){const n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],c=e[6],l=e[7],u=e[8],h=e[9],f=e[10],d=e[11],p=e[12],g=e[13],m=e[14],y=e[15],v=n*s-r*a,_=n*c-i*a,b=n*l-o*a,x=r*c-i*s,w=r*l-o*s,T=i*l-o*c,C=u*g-h*p,S=u*m-f*p,k=u*y-d*p,E=h*m-f*g,P=h*y-d*g,R=f*y-d*m;let O=v*R-_*P+b*E+x*k-w*S+T*C;return O?(O=1/O,t[0]=(s*R-c*P+l*E)*O,t[1]=(i*P-r*R-o*E)*O,t[2]=(g*T-m*w+y*x)*O,t[3]=(f*w-h*T-d*x)*O,t[4]=(c*k-a*R-l*S)*O,t[5]=(n*R-i*k+o*S)*O,t[6]=(m*b-p*T-y*_)*O,t[7]=(u*T-f*b+d*_)*O,t[8]=(a*P-s*k+l*C)*O,t[9]=(r*k-n*P-o*C)*O,t[10]=(p*w-g*b+y*v)*O,t[11]=(h*b-u*w-d*v)*O,t[12]=(s*S-a*E-c*C)*O,t[13]=(n*E-r*S+i*C)*O,t[14]=(g*_-p*x-m*v)*O,t[15]=(u*x-h*_+f*v)*O,t):null}static glMatrixMat4Multiply(t,e,n){const r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],c=e[5],l=e[6],u=e[7],h=e[8],f=e[9],d=e[10],p=e[11],g=e[12],m=e[13],y=e[14],v=e[15];let _=n[0],b=n[1],x=n[2],w=n[3];return t[0]=_*r+b*s+x*h+w*g,t[1]=_*i+b*c+x*f+w*m,t[2]=_*o+b*l+x*d+w*y,t[3]=_*a+b*u+x*p+w*v,_=n[4],b=n[5],x=n[6],w=n[7],t[4]=_*r+b*s+x*h+w*g,t[5]=_*i+b*c+x*f+w*m,t[6]=_*o+b*l+x*d+w*y,t[7]=_*a+b*u+x*p+w*v,_=n[8],b=n[9],x=n[10],w=n[11],t[8]=_*r+b*s+x*h+w*g,t[9]=_*i+b*c+x*f+w*m,t[10]=_*o+b*l+x*d+w*y,t[11]=_*a+b*u+x*p+w*v,_=n[12],b=n[13],x=n[14],w=n[15],t[12]=_*r+b*s+x*h+w*g,t[13]=_*i+b*c+x*f+w*m,t[14]=_*o+b*l+x*d+w*y,t[15]=_*a+b*u+x*p+w*v,t}}G.__initStatic(),G.__initStatic2();const Y=new G;class Z extends v{constructor(t,e){super(t,e),Z.prototype.__init.call(this),Z.prototype.__init2.call(this),Z.prototype.__init3.call(this),Z.prototype.__init4.call(this),Z.prototype.__init5.call(this),Z.prototype.__init6.call(this),this.local=new G,this.world=new G,this.local.cacheInverse=!0,this.world.cacheInverse=!0,this.position._z=0,this.scale._z=1,this.pivot._z=0}__init(){this.cameraMatrix=null}__init2(){this._cameraMode=!1}get cameraMode(){return this._cameraMode}set cameraMode(t){this._cameraMode!==t&&(this._cameraMode=t,this.euler._sign=this._cameraMode?-1:1,this.euler._quatDirtyId++,t&&(this.cameraMatrix=new G))}__init3(){this.position=new W(this.onChange,this,0,0)}__init4(){this.scale=new W(this.onChange,this,1,1)}__init5(){this.euler=new q(this.onChange,this,0,0,0)}__init6(){this.pivot=new W(this.onChange,this,0,0)}onChange(){this._projID++}clear(){this.cameraMatrix&&this.cameraMatrix.identity(),this.position.set(0,0,0),this.scale.set(1,1,1),this.euler.set(0,0,0),this.pivot.set(0,0,0),super.clear()}updateLocalTransform(t){if(0===this._projID)return void this.local.copyFrom(t);const e=this.local,n=this.euler,r=this.position,i=this.scale,o=this.pivot;if(n.update(),!this.cameraMode)return e.setToRotationTranslationScale(n.quaternion,r._x,r._y,r._z,i._x,i._y,i._z),e.translate(-o._x,-o._y,-o._z),void e.setToMultLegacy(t,e);e.setToMultLegacy(t,this.cameraMatrix),e.translate(o._x,o._y,o._z),e.scale(1/i._x,1/i._y,1/i._z),Y.setToRotationTranslationScale(n.quaternion,0,0,0,1,1,1),e.setToMult(e,Y),e.translate(-r._x,-r._y,-r._z),this.local._dirtyId++}}class K extends s.W2{constructor(){super(),this.proj=new Z(this.transform)}isFrontFace(t=!1){t&&(this._recursivePostUpdateTransform(),this.displayObjectUpdateTransform());const e=this.proj.world.mat4,n=e[0]*e[15]-e[3]*e[12],r=e[1]*e[15]-e[3]*e[13],i=e[4]*e[15]-e[7]*e[12];return n*(e[5]*e[15]-e[7]*e[13])-i*r>0}getDepth(t=!1){t&&(this._recursivePostUpdateTransform(),this.displayObjectUpdateTransform());const e=this.proj.world.mat4;return e[14]/e[15]}toLocal(t,e,n,r,i=g.ALL){return e&&(t=e.toGlobal(t,n,r)),r||this._recursivePostUpdateTransform(),i===g.ALL?(r||this.displayObjectUpdateTransform(),this.proj.affine?this.transform.worldTransform.applyInverse(t,n):this.proj.world.applyInverse(t,n)):(this.parent?n=this.parent.worldTransform.applyInverse(t,n):(n.x=t.x,n.y=t.y,n.z=t.z),i===g.NONE||(n=this.transform.localTransform.applyInverse(n,n),i===g.PROJ&&this.proj.cameraMode&&(n=this.proj.cameraMatrix.applyInverse(n,n))),n)}get worldTransform(){return this.proj.affine?this.transform.worldTransform:this.proj.world}get position3d(){return this.proj.position}set position3d(t){this.proj.position.copyFrom(t)}get scale3d(){return this.proj.scale}set scale3d(t){this.proj.scale.copyFrom(t)}get euler(){return this.proj.euler}set euler(t){this.proj.euler.copyFrom(t)}get pivot3d(){return this.proj.pivot}set pivot3d(t){this.proj.pivot.copyFrom(t)}}const X=K.prototype.toLocal,$=K.prototype.getDepth,J=K.prototype.isFrontFace;class Q extends K{constructor(){super(),Q.prototype.__init.call(this),Q.prototype.__init2.call(this),Q.prototype.__init3.call(this),Q.prototype.__init4.call(this),this.proj.cameraMode=!0,this.setPlanes(400,10,1e4,!1)}__init(){this._far=0}__init2(){this._near=0}__init3(){this._focus=0}__init4(){this._orthographic=!1}get far(){return this._far}get near(){return this._near}get focus(){return this._focus}get ortographic(){return this._orthographic}setPlanes(t,e=10,n=1e4,r=!1){this._focus=t,this._near=e,this._far=n,this._orthographic=r;const i=this.proj,o=i.cameraMatrix.mat4;i._projID++,o[10]=1/(n-e),o[14]=(t-e)/(n-e),this._orthographic?o[11]=0:o[11]=1/t}}class tt extends l.Kj{constructor(t,e,n,r){super(t,e,n,r),tt.prototype.__init.call(this),this.proj=new Z(this.transform)}__init(){this.vertexData2d=null}calculateVertices(){if(this.proj._affine)return this.vertexData2d=null,void super.calculateVertices();const t=this.geometry,e=t.buffers[0].data,n=this;if(t.vertexDirtyId===n.vertexDirty&&n._transformID===n.transform._worldID)return;n._transformID=n.transform._worldID,n.vertexData.length!==e.length&&(n.vertexData=new Float32Array(e.length)),this.vertexData2d&&this.vertexData2d.length===3*e.length/2||(this.vertexData2d=new Float32Array(3*e.length));const r=this.proj.world.mat4,i=this.vertexData2d,o=n.vertexData;for(let t=0;t<o.length/2;t++){const n=e[2*t],a=e[2*t+1],s=r[0]*n+r[4]*a+r[12],c=r[1]*n+r[5]*a+r[13],l=r[3]*n+r[7]*a+r[15];i[3*t]=s,i[3*t+1]=c,i[3*t+2]=l,o[2*t]=s/l,o[2*t+1]=c/l}n.vertexDirty=t.vertexDirtyId}get worldTransform(){return this.proj.affine?this.transform.worldTransform:this.proj.world}toLocal(t,e,n,r,i=g.ALL){return X.call(this,t,e,n,r,i)}isFrontFace(t){return J.call(this,t)}getDepth(t){return $.call(this,t)}get position3d(){return this.proj.position}set position3d(t){this.proj.position.copyFrom(t)}get scale3d(){return this.proj.scale}set scale3d(t){this.proj.scale.copyFrom(t)}get euler(){return this.proj.euler}set euler(t){this.proj.euler.copyFrom(t)}get pivot3d(){return this.proj.pivot}set pivot3d(t){this.proj.pivot.copyFrom(t)}}tt.prototype._renderDefault=I.prototype._renderDefault;class et extends h.j{constructor(t){super(t),et.prototype.__init.call(this),et.prototype.__init2.call(this),et.prototype.__init3.call(this),this.proj=new Z(this.transform),this.pluginName="batch2d"}__init(){this.vertexData2d=null}__init2(){this.culledByFrustrum=!1}__init3(){this.trimmedCulledByFrustrum=!1}calculateVertices(){const t=this._texture;if(this.proj._affine)return this.vertexData2d=null,void super.calculateVertices();this.vertexData2d||(this.vertexData2d=new Float32Array(12));const e=this.transform._worldID,n=t._updateID;if(this._transformID===e&&this._textureID===n)return;this._textureID!==n&&(this.uvs=t._uvs.uvsFloat32),this._transformID=e,this._textureID=n;const r=this.proj.world.mat4,i=this.vertexData2d,o=this.vertexData,a=t.trim,s=t.orig,c=this._anchor;let l,u,h,f;a?(u=a.x-c._x*s.width,l=u+a.width,f=a.y-c._y*s.height,h=f+a.height):(u=-c._x*s.width,l=u+s.width,f=-c._y*s.height,h=f+s.height);let d,p=!1;i[0]=r[0]*u+r[4]*f+r[12],i[1]=r[1]*u+r[5]*f+r[13],d=r[2]*u+r[6]*f+r[14],i[2]=r[3]*u+r[7]*f+r[15],p=p||d<0,i[3]=r[0]*l+r[4]*f+r[12],i[4]=r[1]*l+r[5]*f+r[13],d=r[2]*l+r[6]*f+r[14],i[5]=r[3]*l+r[7]*f+r[15],p=p||d<0,i[6]=r[0]*l+r[4]*h+r[12],i[7]=r[1]*l+r[5]*h+r[13],d=r[2]*l+r[6]*h+r[14],i[8]=r[3]*l+r[7]*h+r[15],p=p||d<0,i[9]=r[0]*u+r[4]*h+r[12],i[10]=r[1]*u+r[5]*h+r[13],d=r[2]*u+r[6]*h+r[14],i[11]=r[3]*u+r[7]*h+r[15],p=p||d<0,this.culledByFrustrum=p,o[0]=i[0]/i[2],o[1]=i[1]/i[2],o[2]=i[3]/i[5],o[3]=i[4]/i[5],o[4]=i[6]/i[8],o[5]=i[7]/i[8],o[6]=i[9]/i[11],o[7]=i[10]/i[11]}calculateTrimmedVertices(){if(this.proj._affine)return void super.calculateTrimmedVertices();const t=this.transform._worldID,e=this._texture._updateID,n=this;if(n.vertexTrimmedData){if(n._transformTrimmedID===t&&this._textureTrimmedID===e)return}else n.vertexTrimmedData=new Float32Array(8);n._transformTrimmedID=t,this._textureTrimmedID=e;const r=this._texture,i=n.vertexTrimmedData,o=r.orig,a=this._anchor,s=this.proj.world.mat4,c=-a._x*o.width,l=c+o.width,u=-a._y*o.height,h=u+o.height;let f,d=!1,p=1/(s[3]*c+s[7]*u+s[15]);i[0]=p*(s[0]*c+s[4]*u+s[12]),i[1]=p*(s[1]*c+s[5]*u+s[13]),f=s[2]*c+s[6]*u+s[14],d=d||f<0,p=1/(s[3]*l+s[7]*u+s[15]),i[2]=p*(s[0]*l+s[4]*u+s[12]),i[3]=p*(s[1]*l+s[5]*u+s[13]),f=s[2]*l+s[6]*u+s[14],d=d||f<0,p=1/(s[3]*l+s[7]*h+s[15]),i[4]=p*(s[0]*l+s[4]*h+s[12]),i[5]=p*(s[1]*l+s[5]*h+s[13]),f=s[2]*l+s[6]*h+s[14],d=d||f<0,p=1/(s[3]*c+s[7]*h+s[15]),i[6]=p*(s[0]*c+s[4]*h+s[12]),i[7]=p*(s[1]*c+s[5]*h+s[13]),f=s[2]*c+s[6]*h+s[14],d=d||f<0,this.culledByFrustrum=d}_calculateBounds(){if(this.calculateVertices(),this.culledByFrustrum)return;const t=this._texture.trim,e=this._texture.orig;!t||t.width===e.width&&t.height===e.height?this._bounds.addQuad(this.vertexData):(this.calculateTrimmedVertices(),this.trimmedCulledByFrustrum||this._bounds.addQuad(this.vertexTrimmedData))}_render(t){this.calculateVertices(),this.culledByFrustrum||(t.batch.setObjectRenderer(t.plugins[this.pluginName]),t.plugins[this.pluginName].render(this))}containsPoint(t){return!this.culledByFrustrum&&super.containsPoint(t)}get worldTransform(){return this.proj.affine?this.transform.worldTransform:this.proj.world}toLocal(t,e,n,r,i=g.ALL){return X.call(this,t,e,n,r,i)}isFrontFace(t){return J.call(this,t)}getDepth(t){return $.call(this,t)}get position3d(){return this.proj.position}set position3d(t){this.proj.position.copyFrom(t)}get scale3d(){return this.proj.scale}set scale3d(t){this.proj.scale.copyFrom(t)}get euler(){return this.proj.euler}set euler(t){this.proj.euler.copyFrom(t)}get pivot3d(){return this.proj.pivot}set pivot3d(t){this.proj.pivot.copyFrom(t)}}const nt={worldTransform:{get:function(){return this.proj.affine?this.transform.worldTransform:this.proj.world},enumerable:!0,configurable:!0},position3d:{get(){return this.proj.position},set(t){this.proj.position.copy(t)}},scale3d:{get(){return this.proj.scale},set(t){this.proj.scale.copy(t)}},pivot3d:{get(){return this.proj.pivot},set(t){this.proj.pivot.copy(t)}},euler:{get(){return this.proj.euler},set(t){this.proj.euler.copy(t)}}};function rt(){this.proj||(this.proj=new Z(this.transform),this.toLocal=K.prototype.toLocal,this.isFrontFace=K.prototype.isFrontFace,this.getDepth=K.prototype.getDepth,Object.defineProperties(this,nt))}s.W2.prototype.convertTo3d=rt,h.j.prototype.convertTo3d=function(){this.proj||(this.calculateVertices=et.prototype.calculateVertices,this.calculateTrimmedVertices=et.prototype.calculateTrimmedVertices,this._calculateBounds=et.prototype._calculateBounds,this.containsPoint=et.prototype.containsPoint,this.pluginName="batch2d",rt.call(this))},s.W2.prototype.convertSubtreeTo3d=function(){this.convertTo3d();for(let t=0;t<this.children.length;t++)this.children[t].convertSubtreeTo3d()},u.AL.prototype.convertTo3d=u.IE.prototype.convertTo3d=function(){this.proj||(this.calculateVertices=tt.prototype.calculateVertices,this._renderDefault=tt.prototype._renderDefault,"batch2d"!==this.material.pluginName&&(this.material=new l.rY(this.material.texture,{program:r.Program.from(I.defaultVertexShader,I.defaultFragmentShader),pluginName:"batch2d"})),rt.call(this))};class it extends f.xv{constructor(t,e,n){super(t,e,n),it.prototype.__init.call(this),this.proj=new Z(this.transform),this.pluginName="batch2d"}__init(){this.vertexData2d=null}get worldTransform(){return this.proj.affine?this.transform.worldTransform:this.proj.world}toLocal(t,e,n,r,i=g.ALL){return X.call(this,t,e,n,r,i)}isFrontFace(t){return J.call(this,t)}getDepth(t){return $.call(this,t)}get position3d(){return this.proj.position}set position3d(t){this.proj.position.copyFrom(t)}get scale3d(){return this.proj.scale}set scale3d(t){this.proj.scale.copyFrom(t)}get euler(){return this.proj.euler}set euler(t){this.proj.euler.copyFrom(t)}get pivot3d(){return this.proj.pivot}set pivot3d(t){this.proj.pivot.copyFrom(t)}}var ot;it.prototype.calculateVertices=et.prototype.calculateVertices,it.prototype.calculateTrimmedVertices=et.prototype.calculateTrimmedVertices,it.prototype._calculateBounds=et.prototype._calculateBounds,it.prototype.containsPoint=et.prototype.containsPoint,it.prototype._render=et.prototype._render;class at extends r.Geometry{constructor(t=!1){super(),this._buffer=new r.Buffer(null,t,!1),this._indexBuffer=new r.Buffer(null,t,!0),this.addAttribute("aVertexPosition",this._buffer,2,!1,i.vK.FLOAT).addAttribute("aTrans1",this._buffer,3,!1,i.vK.FLOAT).addAttribute("aTrans2",this._buffer,3,!1,i.vK.FLOAT).addAttribute("aSamplerSize",this._buffer,2,!1,i.vK.FLOAT).addAttribute("aFrame",this._buffer,4,!1,i.vK.FLOAT).addAttribute("aColor",this._buffer,4,!0,i.vK.UNSIGNED_BYTE).addAttribute("aTextureId",this._buffer,1,!0,i.vK.FLOAT).addIndex(this._indexBuffer)}}const st=[new a.E9,new a.E9,new a.E9,new a.E9],ct=[0,0,0,0];class lt{constructor(){lt.prototype.__init.call(this),lt.prototype.__init2.call(this),lt.prototype.__init3.call(this),lt.prototype.__init4.call(this)}__init(){this.surfaceID="default"}__init2(){this._updateID=0}__init3(){this.vertexSrc=""}__init4(){this.fragmentSrc=""}fillUniforms(t){}clear(){}boundsQuad(t,e,n){let r=e[0],i=e[1],o=e[0],a=e[1];for(let t=2;t<8;t+=2)r>e[t]&&(r=e[t]),o<e[t]&&(o=e[t]),i>e[t+1]&&(i=e[t+1]),a<e[t+1]&&(a=e[t+1]);if(st[0].set(r,i),this.apply(st[0],st[0]),st[1].set(o,i),this.apply(st[1],st[1]),st[2].set(o,a),this.apply(st[2],st[2]),st[3].set(r,a),this.apply(st[3],st[3]),n)n.apply(st[0],st[0]),n.apply(st[1],st[1]),n.apply(st[2],st[2]),n.apply(st[3],st[3]),e[0]=st[0].x,e[1]=st[0].y,e[2]=st[1].x,e[3]=st[1].y,e[4]=st[2].x,e[5]=st[2].y,e[6]=st[3].x,e[7]=st[3].y;else{for(let t=1;t<=3;t++)if(st[t].y<st[0].y||st[t].y===st[0].y&&st[t].x<st[0].x){const e=st[0];st[0]=st[t],st[t]=e}for(let t=1;t<=3;t++)ct[t]=Math.atan2(st[t].y-st[0].y,st[t].x-st[0].x);for(let t=1;t<=3;t++)for(let e=t+1;e<=3;e++)if(ct[t]>ct[e]){const n=st[t];st[t]=st[e],st[e]=n;const r=ct[t];ct[t]=ct[e],ct[e]=r}if(e[0]=st[0].x,e[1]=st[0].y,e[2]=st[1].x,e[3]=st[1].y,e[4]=st[2].x,e[5]=st[2].y,e[6]=st[3].x,e[7]=st[3].y,(st[3].x-st[2].x)*(st[1].y-st[2].y)-(st[1].x-st[2].x)*(st[3].y-st[2].y)<0)return e[4]=st[3].x,void(e[5]=st[3].y)}}}const ut=new a.y3,ht=new a.Ae,ft=new a.E9;class dt extends lt{constructor(...t){super(...t),dt.prototype.__init.call(this)}__init(){this.distortion=new a.E9}clear(){this.distortion.set(0,0)}apply(t,e){e=e||new a.E9;const n=this.distortion,r=t.x*t.y;return e.x=t.x+n.x*r,e.y=t.y+n.y*r,e}applyInverse(t,e){e=e||new a.E9;const n=t.x,r=t.y,i=this.distortion.x,o=this.distortion.y;if(0===i)e.x=n,e.y=r/(1+o*n);else if(0===o)e.y=r,e.x=n/(1+i*r);else{const t=.5*(r*i-n*o+1)/o,a=t*t+n/o;if(a<=1e-5)return e.set(NaN,NaN),e;e.x=o>0?-t+Math.sqrt(a):-t-Math.sqrt(a),e.y=(n/e.x-1)/i}return e}mapSprite(t,e,n){const r=t.texture;return ht.x=-t.anchor.x*r.orig.width,ht.y=-t.anchor.y*r.orig.height,ht.width=r.orig.width,ht.height=r.orig.height,this.mapQuad(ht,e,n||t.transform)}mapQuad(t,e,n){const r=-t.x/t.width,i=-t.y/t.height,o=(1-t.x)/t.width,a=(1-t.y)/t.height,s=e[0].x*(1-r)+e[1].x*r,c=e[0].y*(1-r)+e[1].y*r,l=e[0].x*(1-o)+e[1].x*o,u=e[0].y*(1-o)+e[1].y*o,h=e[3].x*(1-r)+e[2].x*r,f=e[3].y*(1-r)+e[2].y*r,d=e[3].x*(1-o)+e[2].x*o,p=e[3].y*(1-o)+e[2].y*o,g=s*(1-i)+h*i,m=c*(1-i)+f*i,y=l*(1-i)+d*i,v=u*(1-i)+p*i,_=s*(1-a)+h*a,b=c*(1-a)+f*a,x=l*(1-a)+d*a,w=u*(1-a)+p*a,T=ut;return T.tx=g,T.ty=m,T.a=y-g,T.b=v-m,T.c=_-g,T.d=b-m,ft.set(x,w),T.applyInverse(ft,ft),this.distortion.set(ft.x-1,ft.y-1),n.setFromMatrix(T),this}fillUniforms(t){t.distortion=t.distortion||new Float32Array([0,0,0,0]);const e=Math.abs(this.distortion.x),n=Math.abs(this.distortion.y);t.distortion[0]=1e4*e<=n?0:this.distortion.x,t.distortion[1]=1e4*n<=e?0:this.distortion.y,t.distortion[2]=1/t.distortion[0],t.distortion[3]=1/t.distortion[1]}}const pt=a.wx.prototype.updateTransform;function gt(t){const e=this.proj,n=t.proj,r=this;return n?n._surface?(e._activeProjection=n,this.updateLocalTransform(),this.localTransform.copyTo(this.worldTransform),void(r._parentID<0&&++r._worldID)):(pt.call(this,t),void(e._activeProjection=n._activeProjection)):(pt.call(this,t),void(e._activeProjection=null))}class mt extends p{constructor(...t){super(...t),mt.prototype.__init.call(this),mt.prototype.__init2.call(this),mt.prototype.__init3.call(this),mt.prototype.__init4.call(this),mt.prototype.__init5.call(this)}__init(){this._surface=null}__init2(){this._activeProjection=null}set enabled(t){t!==this._enabled&&(this._enabled=t,t?(this.legacy.updateTransform=gt,this.legacy._parentID=-1):(this.legacy.updateTransform=a.wx.prototype.updateTransform,this.legacy._parentID=-1))}get surface(){return this._surface}set surface(t){this._surface!==t&&(this._surface=t||null,this.legacy._parentID=-1)}applyPartial(t,e){return null!==this._activeProjection?(e=this.legacy.worldTransform.apply(t,e),this._activeProjection.surface.apply(e,e)):null!==this._surface?this.surface.apply(t,e):this.legacy.worldTransform.apply(t,e)}apply(t,e){return null!==this._activeProjection?(e=this.legacy.worldTransform.apply(t,e),this._activeProjection.surface.apply(e,e),this._activeProjection.legacy.worldTransform.apply(e,e)):null!==this._surface?(e=this.surface.apply(t,e),this.legacy.worldTransform.apply(e,e)):this.legacy.worldTransform.apply(t,e)}applyInverse(t,e){return null!==this._activeProjection?(e=this._activeProjection.legacy.worldTransform.applyInverse(t,e),this._activeProjection._surface.applyInverse(e,e),this.legacy.worldTransform.applyInverse(e,e)):null!==this._surface?(e=this.legacy.worldTransform.applyInverse(t,e),this._surface.applyInverse(e,e)):this.legacy.worldTransform.applyInverse(t,e)}mapBilinearSprite(t,e){this._surface instanceof dt||(this.surface=new dt),this.surface.mapSprite(t,e,this.legacy)}__init3(){this._currentSurfaceID=-1}__init4(){this._currentLegacyID=-1}__init5(){this._lastUniforms=null}clear(){this.surface&&this.surface.clear()}get uniforms(){return this._currentLegacyID===this.legacy._worldID&&this._currentSurfaceID===this.surface._updateID||(this._lastUniforms=this._lastUniforms||{},this._lastUniforms.translationMatrix=this.legacy.worldTransform,this._surface.fillUniforms(this._lastUniforms)),this._lastUniforms}}class yt extends h.j{constructor(t){super(t),yt.prototype.__init.call(this),this.proj=new mt(this.transform),this.pluginName="batch_bilinear"}__init(){this.aTrans=new a.y3}_calculateBounds(){this.calculateTrimmedVertices(),this._bounds.addQuad(this.vertexTrimmedData)}calculateVertices(){const t=this.transform._worldID,e=this._texture._updateID;if(this._transformID===t&&this._textureID===e)return;this._transformID=t,this._textureID=e;const n=this._texture,i=this.vertexData,o=n.trim,a=n.orig,s=this._anchor;let c,l,u,h;if(o?(l=o.x-s._x*a.width,c=l+o.width,h=o.y-s._y*a.height,u=h+o.height):(l=-s._x*a.width,c=l+a.width,h=-s._y*a.height,u=h+a.height),this.proj._surface)i[0]=l,i[1]=h,i[2]=c,i[3]=h,i[4]=c,i[5]=u,i[6]=l,i[7]=u,this.proj._surface.boundsQuad(i,i);else{const t=this.transform.worldTransform,e=t.a,n=t.b,r=t.c,o=t.d,a=t.tx,s=t.ty;i[0]=e*l+r*h+a,i[1]=o*h+n*l+s,i[2]=e*c+r*h+a,i[3]=o*h+n*c+s,i[4]=e*c+r*u+a,i[5]=o*u+n*c+s,i[6]=e*l+r*u+a,i[7]=o*u+n*l+s,this.proj._activeProjection&&this.proj._activeProjection.surface.boundsQuad(i,i)}n.uvMatrix||(n.uvMatrix=new r.TextureMatrix(n)),n.uvMatrix.update();const f=this.aTrans;f.set(a.width,0,0,a.height,l,h),null===this.proj._surface&&f.prepend(this.transform.worldTransform),f.invert(),f.prepend(n.uvMatrix.mapCoord)}calculateTrimmedVertices(){const t=this.transform._worldID,e=this._texture._updateID,n=this;if(n.vertexTrimmedData){if(n._transformTrimmedID===t&&this._textureTrimmedID===e)return}else n.vertexTrimmedData=new Float32Array(8);n._transformTrimmedID=t,this._textureTrimmedID=e;const r=this._texture,i=n.vertexTrimmedData,o=r.orig,a=this._anchor,s=-a._x*o.width,c=s+o.width,l=-a._y*o.height,u=l+o.height;if(this.proj._surface)i[0]=s,i[1]=l,i[2]=c,i[3]=l,i[4]=c,i[5]=u,i[6]=s,i[7]=u,this.proj._surface.boundsQuad(i,i,this.transform.worldTransform);else{const t=this.transform.worldTransform,e=t.a,n=t.b,r=t.c,o=t.d,a=t.tx,h=t.ty;i[0]=e*s+r*l+a,i[1]=o*l+n*s+h,i[2]=e*c+r*l+a,i[3]=o*l+n*c+h,i[4]=e*c+r*u+a,i[5]=o*u+n*c+h,i[6]=e*s+r*u+a,i[7]=o*u+n*s+h,this.proj._activeProjection&&this.proj._activeProjection.surface.boundsQuad(i,i,this.proj._activeProjection.legacy.worldTransform)}}get worldTransform(){return this.proj}}h.j.prototype.convertTo2s=function(){this.proj||(this.pluginName="sprite_bilinear",this.aTrans=new a.y3,this.calculateVertices=yt.prototype.calculateVertices,this.calculateTrimmedVertices=yt.prototype.calculateTrimmedVertices,this._calculateBounds=yt.prototype._calculateBounds,s.W2.prototype.convertTo2s.call(this))},s.W2.prototype.convertTo2s=function(){this.proj||(this.proj=new mt(this.transform),Object.defineProperty(this,"worldTransform",{get(){return this.proj},enumerable:!0,configurable:!0}))},s.W2.prototype.convertSubtreeTo2s=function(){this.convertTo2s();for(let t=0;t<this.children.length;t++)this.children[t].convertSubtreeTo2s()};class vt extends f.xv{constructor(t,e,n){super(t,e,n),vt.prototype.__init.call(this),this.proj=new mt(this.transform),this.pluginName="batch_bilinear"}__init(){this.aTrans=new a.y3}get worldTransform(){return this.proj}}vt.prototype.calculateVertices=yt.prototype.calculateVertices,vt.prototype.calculateTrimmedVertices=yt.prototype.calculateTrimmedVertices,vt.prototype._calculateBounds=yt.prototype._calculateBounds,r.Renderer.registerPlugin("batch_bilinear",class{static create(t){const{vertex:e,fragment:n,vertexSize:i,geometryClass:s}=Object.assign({vertex:"precision highp float;\nattribute vec2 aVertexPosition;\nattribute vec3 aTrans1;\nattribute vec3 aTrans2;\nattribute vec2 aSamplerSize;\nattribute vec4 aFrame;\nattribute vec4 aColor;\nattribute float aTextureId;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\n\nvarying vec2 vertexPosition;\nvarying vec3 vTrans1;\nvarying vec3 vTrans2;\nvarying vec2 vSamplerSize;\nvarying vec4 vFrame;\nvarying vec4 vColor;\nvarying float vTextureId;\n\nvoid main(void){\ngl_Position.xyw = projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0);\ngl_Position.z = 0.0;\n\nvertexPosition = aVertexPosition;\nvTrans1 = aTrans1;\nvTrans2 = aTrans2;\nvTextureId = aTextureId;\nvColor = aColor;\nvSamplerSize = aSamplerSize;\nvFrame = aFrame;\n}\n",fragment:"precision highp float;\nvarying vec2 vertexPosition;\nvarying vec3 vTrans1;\nvarying vec3 vTrans2;\nvarying vec2 vSamplerSize;\nvarying vec4 vFrame;\nvarying vec4 vColor;\nvarying float vTextureId;\n\nuniform sampler2D uSamplers[%count%];\nuniform vec4 distortion;\n\nvoid main(void){\nvec2 surface;\nvec2 surface2;\n\nfloat vx = vertexPosition.x;\nfloat vy = vertexPosition.y;\nfloat dx = distortion.x;\nfloat dy = distortion.y;\nfloat revx = distortion.z;\nfloat revy = distortion.w;\n\nif (distortion.x == 0.0) {\nsurface.x = vx;\nsurface.y = vy / (1.0 + dy * vx);\nsurface2 = surface;\n} else\nif (distortion.y == 0.0) {\nsurface.y = vy;\nsurface.x = vx / (1.0 + dx * vy);\nsurface2 = surface;\n} else {\nfloat c = vy * dx - vx * dy;\nfloat b = (c + 1.0) * 0.5;\nfloat b2 = (-c + 1.0) * 0.5;\nfloat d = b * b + vx * dy;\nif (d < -0.00001) {\n discard;\n}\nd = sqrt(max(d, 0.0));\nsurface.x = (- b + d) * revy;\nsurface2.x = (- b - d) * revy;\nsurface.y = (- b2 + d) * revx;\nsurface2.y = (- b2 - d) * revx;\n}\n\nvec2 uv;\nuv.x = vTrans1.x * surface.x + vTrans1.y * surface.y + vTrans1.z;\nuv.y = vTrans2.x * surface.x + vTrans2.y * surface.y + vTrans2.z;\n\nvec2 pixels = uv * vSamplerSize;\n\nif (pixels.x < vFrame.x || pixels.x > vFrame.z ||\npixels.y < vFrame.y || pixels.y > vFrame.w) {\nuv.x = vTrans1.x * surface2.x + vTrans1.y * surface2.y + vTrans1.z;\nuv.y = vTrans2.x * surface2.x + vTrans2.y * surface2.y + vTrans2.z;\npixels = uv * vSamplerSize;\n\nif (pixels.x < vFrame.x || pixels.x > vFrame.z ||\n pixels.y < vFrame.y || pixels.y > vFrame.w) {\n discard;\n}\n}\n\nvec4 edge;\nedge.xy = clamp(pixels - vFrame.xy + 0.5, vec2(0.0, 0.0), vec2(1.0, 1.0));\nedge.zw = clamp(vFrame.zw - pixels + 0.5, vec2(0.0, 0.0), vec2(1.0, 1.0));\n\nfloat alpha = 1.0; //edge.x * edge.y * edge.z * edge.w;\nvec4 rColor = vColor * alpha;\n\nfloat textureId = floor(vTextureId+0.5);\nvec2 vTextureCoord = uv;\nvec4 color;\n%forloop%\ngl_FragColor = color * rColor;\n}",geometryClass:at,vertexSize:16},t);return ot=class extends _{constructor(t){super(t),ot.prototype.__init.call(this),ot.prototype.__init2.call(this),ot.prototype.__init3.call(this),this.shaderGenerator=new r.BatchShaderGenerator(e,n),this.geometryClass=s,this.vertexSize=i}__init(){this.defUniforms={translationMatrix:new a.y3,distortion:new Float32Array([0,0,1/0,1/0])}}__init2(){this.size=1e3}__init3(){this.forceMaxTextures=1}getUniforms(t){const{proj:e}=t;return null!==e.surface?e.uniforms:null!==e._activeProjection?e._activeProjection.uniforms:this.defUniforms}packInterleavedGeometry(t,e,n,r,i){const{uint32View:a,float32View:s}=e,c=r/this.vertexSize,l=t.indices,u=t.vertexData,h=t._texture._frame,f=t.aTrans,{_batchLocation:d,realWidth:p,realHeight:g,resolution:m}=t._texture.baseTexture,y=Math.min(t.worldAlpha,1),v=y<1&&t._texture.baseTexture.alphaMode?(0,o.rA)(t._tintRGB,y):t._tintRGB+(255*y<<24);for(let t=0;t<u.length;t+=2)s[r]=u[t],s[r+1]=u[t+1],s[r+2]=f.a,s[r+3]=f.c,s[r+4]=f.tx,s[r+5]=f.b,s[r+6]=f.d,s[r+7]=f.ty,s[r+8]=p,s[r+9]=g,s[r+10]=h.x*m,s[r+11]=h.y*m,s[r+12]=(h.x+h.width)*m,s[r+13]=(h.y+h.height)*m,a[r+14]=v,s[r+15]=d,r+=16;for(let t=0;t<l.length;t++)n[i++]=c+l[t]}},ot}}.create({}))},4504:(t,e,n)=>{n.d(e,{ry:()=>ct,Cz:()=>ht.BeautifyOptions,T$:()=>ft.a,Mj:()=>ht.Mj,UZ:()=>ht.UZ,bk:()=>ht.bk,Iq:()=>G,aR:()=>ut,_$:()=>at});var r=n(6878),i=n(1347),o=n(617);class a{constructor(){this._configCenter=new o.M}async init(){return new Promise(((t,e)=>{this.initDataMap(),wx.initFaceDetect({success(){t()},fail(n){console.log("wx init face fail",n);const{errMsg:r}=n;if(r.indexOf("already init")>-1)return t();e({errMsg:"wx init face fail"})}})}))}send(t){const{data:e,width:n,height:r}=t;new Date;wx.faceDetect({width:n,height:r,frameBuffer:e,enablePoint:!0,enableAngle:!0,success:e=>{const{x:o,y:a}=e,s=e.pointArray,c=e.angleArray;let l={yaw:-c.yaw*Math.PI/2,pitch:c.pitch,roll:c.roll};const u=(o-n/2)/n;l.yaw+=1.4*u;const h=(a-r/2)/(r/2);l.pitch-=h,this.angles=l,s.push(this.getCenterOfTwoPoints(s[96],s[97])),s.push(this.getCenterOfTwoPoints(s[96],s[103])),s.push(this.getCenterOfTwoPoints(s[100],s[99])),s.push(this.getCenterOfTwoPoints(s[100],s[101]));const f=this.getCenterOfTwoPoints(s[78],s[79]),d=1.5*(0,i.Sp)(s[44],s[49]),p=this.getSlope(f,s[49]),g=Math.atan(p),m={x:f.x-d*Math.cos(g)*(g/Math.abs(g)),y:f.y-d*Math.sin(Math.abs(g))};s.push(m);const y=s[0],v=y.y-y.x*p,_=m.y- -1/p*m.x,b=(_-v)/(p- -1/p),x={x:b,y:b*p+v},w=this.twoBezier(.14,m,x,y),T=this.twoBezier(.28,m,x,y),C=this.twoBezier(.42,m,x,y),S=this.twoBezier(.56,m,x,y),k=this.twoBezier(.7,m,x,y),E=this.twoBezier(.85,m,x,y),P=s[32],R=P.y-P.x*p,O={x:(_-R)/(p- -1/p),y:(_-R)/(p- -1/p)*p+R},D=this.twoBezier(.14,m,O,P),A=this.twoBezier(.28,m,O,P),I=this.twoBezier(.42,m,O,P),F=this.twoBezier(.56,m,O,P),L=this.twoBezier(.7,m,O,P),M=this.twoBezier(.85,m,O,P);s.push(w,T,C,D,A,I,S,F,E,k,M,L);const{meshVertex:N,lipVertex:j}=this.getMeshVertex(s);this.triggerResult({landmarks:s,angles:l,image:t,meshVertex:N,lipVertex:j})},fail:e=>{this.triggerResult({landmarks:[],angles:[],image:t,meshVertex:[],lipVertex:[]})}})}onResult(t){this.resultCb=t}triggerResult(t){this.vkstarted||(this.vkstarted=!0),this.detectId=null,this.resultCb&&this.resultCb(t)}twoBezier(t,e,n,r){const{x:i,y:o}=e,{x:a,y:s}=n,{x:c,y:l}=r;return{x:(1-t)*(1-t)*i+2*t*(1-t)*a+t*t*c,y:(1-t)*(1-t)*o+2*t*(1-t)*s+t*t*l}}destroy(){console.log("stopFaceDetect"),wx.stopFaceDetect({success(){console.log("face detect stopped")},fail(){console.log("face detect stop failed")}})}getCenterOfTwoPoints(t,e){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}getDistanceOfTwoPoints(t,e){return Math.pow((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y),.5)}getSlope(t,e){return e.x===t.x?Number.MAX_SAFE_INTEGER:(e.y-t.y)/(e.x-t.x)}getMeshVertex(t){const{triangulation:e,lipsTriangulation:n,KEY_POINTS:r,LIPS:i,MOUTH_UPPER:o}=this._dataMap,a=[],s=[];if(t){const o=[],l=[],u=this.processLipEdge(t);t.forEach(((t,e)=>{if(r.indexOf(e)>=0){const n=t;o.push([u[e].x,u[e].y]),i.indexOf(e)>=0&&l.push([n.x,n.y])}}));this.addOuterLandmarks(t).forEach(((t,e)=>{o.push([t.x,t.y])}));const h=e;for(var c=0;c<h.length;c+=3){const t=h[c],e=h[c+1],n=h[c+2];a.push(o[t][0]),a.push(o[t][1]),a.push(o[e][0]),a.push(o[e][1]),a.push(o[n][0]),a.push(o[n][1])}for(c=0;c<n.length;c+=3){const t=n[c],e=n[c+1],r=n[c+2];s.push(l[t][0]),s.push(l[t][1]),s.push(l[e][0]),s.push(l[e][1]),s.push(l[r][0]),s.push(l[r][1])}}return{meshVertex:a,lipVertex:s}}processLipEdge(t){const e=JSON.parse(JSON.stringify(t)),{MOUTH_UPPER:n,MOUTH_LOWER:r}=this._dataMap;return n.forEach(((t,n)=>{const i=e[t],o=e[r[n]],a={x:(i.x+o.x)/2,y:(i.y+o.y)/2};i.y=a.y,i.x=a.x,o.y=a.y,o.x=a.x})),e}getAngles(){return this.angles}addOuterLandmarks(t){const{OUTER_REFERENCE:e}=this._dataMap,n=(0,i.Sp)(t[32],t[0]),r=(0,i.Sp)(t[16],t[110]),o=[],a=this.getAngles(t),s=Math.cos(a.roll),c=Math.sin(a.roll),{yaw:l,pitch:u}=a;return e.forEach(((e,i)=>{e.forEach((e=>{let a,u;"object"==typeof e?(a=t[e.x],u=t[e.y]):(a=t[e],u=t[e]);const h=this.getSlope(t[16],t[110]),f=-1/h,d=a.y-a.x*h,p=(d-(u.y-u.x*f))/(f-h),g=p,m=p*h+d,y=[.5,.2];let v,_,b;0===i?(b=y[0]*r,v=g+b*c,_=m-b*Math.abs(s)):1===i?(b=.3*n,l>0&&(b*=Math.cos(2*l)),v=g+b*Math.abs(s),_=m+b*c):2===i?(b=y[1]*r,v=g-b*c,_=m+b*Math.abs(s)):(b=.3*n,l<0&&(b*=Math.cos(2*l)),v=g-b*Math.abs(s),_=m-b*c),o.push({x:v,y:_,z:0})}))})),o}initDataMap(){const t=this._configCenter.getConfigByKeys(["triangulation","OUTER_REFERENCE","POINTS_MAP","KEY_POINTS","LEFT_FACE_OVAL","RIGHT_FACE_OVAL","outer_offset_ratio","MOUTH_UPPER","MOUTH_LOWER","lipsTriangulation","LIPS"]);this._dataMap=t}}class s{setAlpha(t){(t<=0||t>1)&&console.log("alpha should be in (0.0., 1.0]"),this.a=t}constructor(t,e=0){this.y=this.s=e,this.setAlpha(t),this.initialized=!1}filter(t){var e;return this.initialized?e=this.a*t+(1-this.a)*this.s:(e=t,this.initialized=!0),this.y=t,this.s=e,e}filterWithAlpha(t,e){return this.setAlpha(e),this.filter(t)}hasLastRawValue(){return this.initialized}lastRawValue(){return this.y}reset(){this.initialized=!1}}const c=class{alpha(t){var e=1/this.freq;return 1/(1+1/(2*Math.PI*t)/e)}setFrequency(t){t<=0&&console.log("freq should be >0"),this.freq=t}setMinCutoff(t){t<=0&&console.log("mincutoff should be >0"),this.mincutoff=t}setBeta(t){this.beta_=t}setDerivateCutoff(t){t<=0&&console.log("dcutoff should be >0"),this.dcutoff=t}constructor(t,e=1,n=0,r=1){this.setFrequency(t),this.setMinCutoff(e),this.setBeta(n),this.setDerivateCutoff(r),this.x=new s(this.alpha(e)),this.dx=new s(this.alpha(r)),this.lasttime=void 0}reset(){this.x.reset(),this.dx.reset(),this.lasttime=void 0}filter(t,e){null!=this.lasttime&&null!=e&&e!==this.lasttime&&(this.freq=1/(e-this.lasttime)),this.lasttime=e;var n=this.x.hasLastRawValue()?(t-this.x.lastRawValue())*this.freq:0,r=this.dx.filterWithAlpha(n,this.alpha(this.dcutoff)),i=this.mincutoff+this.beta_*Math.abs(r);return this.x.filterWithAlpha(t,this.alpha(i))}};class l{frame0;cacheNum=2;frame1;frame2;frame3;constructor(){}filter(t){if(null===this.frame0||void 0===this.frame0)for(let e=0;e<this.cacheNum;e++)return this[`frame${e}`]=t,t;for(let t=this.cacheNum-1;t>0;t--)this[`frame${t}`]=this["frame"+(t-1)];return this.frame0=t,this.average()}average(){let t=0;for(let e=0;e<this.cacheNum;e++)t+=this[`frame${e}`]||0;return t/this.cacheNum}}class u{session;currentResult;vkstarted;_filterMap={};_angleMap={};taskPromises=[];constructor(t){this._configCenter=new o.M,this._options=t;for(let t=0;t<106;t++)this._filterMap[t+"_x"]=new c(60,.05,80,1),this._filterMap[t+"_y"]=new c(60,.05,80,1),this._filterMap[t+"_z"]=new c(60,.05,80,1);this._angleMap.pitch=new l,this._angleMap.yaw=new l,this._angleMap.roll=new l}async init(){this.initDataMap();const t=wx.createVKSession({track:{face:{mode:2}},version:"v1"});this.session=t,this.session.on("updateAnchors",(t=>{this.currentResult=t[0];const e=this.processData();e.image=this.frame,this.triggerResult(e)})),this.session.on("removeAnchors",(t=>{const e={landmarks:[],angles:{},meshVertex:[],lipVertex:[]};e.image=this.frame,this.triggerResult(e)})),this.session.start()}triggerResult(t){this.vkstarted||(this.vkstarted=!0),this.detectId=null;this.taskPromises.shift()?.(t)}processData(){const t=.01*(new Date).getTime(),e=this.currentResult,n=e.angle;n.pitch=this._angleMap.pitch.filter(n.pitch,t),n.yaw=this._angleMap.yaw.filter(n.yaw,t),n.roll=this._angleMap.roll.filter(n.roll,t),n.yaw=1.1*(n.yaw-.1),n.pitch=.93*(n.pitch+.18),this.angles=n;const r=e.points,{width:o,height:a}=this.detectSize,s=o/a,c=this._options.width/this._options.height;r.forEach(((e,n)=>{c<s?e.x=.5+(e.x-.5)*(this._options.height/a):c>s&&(e.y=.5+(e.y-.5)/(s/c)),this._filterMap[n+"_x"]&&(e.x=this._filterMap[n+"_x"].filter(e.x,t),e.y=this._filterMap[n+"_y"].filter(e.y,t),e.z=this._filterMap[n+"_z"].filter(e.z,t)),e.x*=this._options.width,e.y*=this._options.height})),r.push(this.getCenterOfTwoPoints(r[96],r[97])),r.push(this.getCenterOfTwoPoints(r[96],r[103])),r.push(this.getCenterOfTwoPoints(r[100],r[99])),r.push(this.getCenterOfTwoPoints(r[100],r[101]));const l=this.getCenterOfTwoPoints(r[78],r[79]),u=1.5*(0,i.Sp)(r[44],r[49]),h=this.getSlope(l,r[49]),f=Math.atan(h),d={x:l.x-u*Math.cos(f)*(f/Math.abs(f)),y:l.y-u*Math.sin(Math.abs(f))};r.push(d);const p=r[0],g=p.y-p.x*h,m=d.y- -1/h*d.x,y=(m-g)/(h- -1/h),v={x:y,y:y*h+g},_=this.twoBezier(.14,d,v,p),b=this.twoBezier(.28,d,v,p),x=this.twoBezier(.42,d,v,p),w=this.twoBezier(.56,d,v,p),T=this.twoBezier(.7,d,v,p),C=this.twoBezier(.85,d,v,p),S=r[32],k=S.y-S.x*h,E={x:(m-k)/(h- -1/h),y:(m-k)/(h- -1/h)*h+k},P=this.twoBezier(.14,d,E,S),R=this.twoBezier(.28,d,E,S),O=this.twoBezier(.42,d,E,S),D=this.twoBezier(.56,d,E,S),A=this.twoBezier(.7,d,E,S),I=this.twoBezier(.85,d,E,S);r.push(_,b,x,P,R,O,w,D,C,T,I,A);const{meshVertex:F,lipVertex:L}=this.getMeshVertex(r);return{landmarks:r,angles:this.angles,meshVertex:F,lipVertex:L}}send(t){return new Promise((e=>{if(this.vkstarted&&this.detectId)return;const{data:n,width:r,height:i}=t;this.detectId=+new Date,this.currentResult=null,this.frame=t,this.taskPromises.push(e),this.detectSize={width:r,height:i},this.session.detectFace({frameBuffer:n,width:r,height:i,scoreThreshold:.5,sourceType:0,modelMode:1})}))}twoBezier(t,e,n,r){const{x:i,y:o}=e,{x:a,y:s}=n,{x:c,y:l}=r;return{x:(1-t)*(1-t)*i+2*t*(1-t)*a+t*t*c,y:(1-t)*(1-t)*o+2*t*(1-t)*s+t*t*l}}destroy(){this.session&&(this.session=null),this.taskPromises=[]}getCenterOfTwoPoints(t,e){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}getDistanceOfTwoPoints(t,e){return Math.pow((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y),.5)}getSlope(t,e){return e.x===t.x?Number.MAX_SAFE_INTEGER:(e.y-t.y)/(e.x-t.x)}getMeshVertex(t){const{triangulation:e,lipsTriangulation:n,KEY_POINTS:r,LIPS:i,MOUTH_UPPER:o}=this._dataMap,a=[],s=[];if(t){const o=[],l=[],u=this.processLipEdge(t);t.forEach(((t,e)=>{if(r.indexOf(e)>=0){const n=t;o.push([u[e].x,u[e].y]),i.indexOf(e)>=0&&l.push([n.x,n.y])}}));this.addOuterLandmarks(t).forEach(((t,e)=>{o.push([t.x,t.y])}));const h=e;for(var c=0;c<h.length;c+=3){const t=h[c],e=h[c+1],n=h[c+2];a.push(o[t][0]),a.push(o[t][1]),a.push(o[e][0]),a.push(o[e][1]),a.push(o[n][0]),a.push(o[n][1])}for(c=0;c<n.length;c+=3){const t=n[c],e=n[c+1],r=n[c+2];s.push(l[t][0]),s.push(l[t][1]),s.push(l[e][0]),s.push(l[e][1]),s.push(l[r][0]),s.push(l[r][1])}}return{meshVertex:a,lipVertex:s}}processLipEdge(t){const e=JSON.parse(JSON.stringify(t)),{MOUTH_UPPER:n,MOUTH_LOWER:r}=this._dataMap;return n.forEach(((t,n)=>{const i=e[t],o=e[r[n]],a={x:(i.x+o.x)/2,y:(i.y+o.y)/2};i.y=a.y,i.x=a.x,o.y=a.y,o.x=a.x})),e}getAngles(){return this.angles}addOuterLandmarks(t){const{OUTER_REFERENCE:e}=this._dataMap,n=(0,i.Sp)(t[32],t[0]),r=(0,i.Sp)(t[16],t[110]),o=[],a=this.getAngles(t),s=Math.cos(a.roll),c=Math.sin(a.roll),{yaw:l,pitch:u}=a;return e.forEach(((e,i)=>{e.forEach((e=>{let a,u;"object"==typeof e?(a=t[e.x],u=t[e.y]):(a=t[e],u=t[e]);const h=this.getSlope(t[16],t[110]),f=-1/h,d=a.y-a.x*h,p=(d-(u.y-u.x*f))/(f-h),g=p,m=p*h+d,y=[.5,.2];let v,_,b;0===i?(b=y[0]*r,v=g+b*c,_=m-b*Math.abs(s)):1===i?(b=.3*n,l>0&&(b*=Math.cos(2*l)),v=g+b*Math.abs(s),_=m+b*c):2===i?(b=y[1]*r,v=g-b*c,_=m+b*Math.abs(s)):(b=.3*n,l<0&&(b*=Math.cos(2*l)),v=g-b*Math.abs(s),_=m-b*c),o.push({x:v,y:_,z:0})}))})),o}initDataMap(){const t=this._configCenter.getConfigByKeys(["triangulation","OUTER_REFERENCE","POINTS_MAP","KEY_POINTS","LEFT_FACE_OVAL","RIGHT_FACE_OVAL","outer_offset_ratio","MOUTH_UPPER","MOUTH_LOWER","lipsTriangulation","LIPS"]);this._dataMap=t}}var h=n(1206),f=n(337),d=n(6879);let p,g,m,y,v,_;if(null==g){p=wx.getSystemInfoSync();let{system:t,version:e}=p;y=e}if(null==g){p=wx.getSystemInfoSync();let{system:t}=p;v=p.SDKVersion,g=t.toLowerCase().indexOf("android")>-1,m=!g,_=parseFloat(v)>=2.25}const b=parseFloat(v)>=2.29;function x(){return p.screenWidth>p.screenHeight}class w extends r.Q4{sprite;options;pushBuffer;stage;tag=!0;realWidth=0;realHeight=0;constructor(t){super(),this.options=t;const e=this.getPusherContent();this.getRealSize(),this.createSprite();const n=e.createOffscreenCanvas({type:"webgl",width:this.realWidth,height:this.realHeight});this.gl=n.getContext("webgl"),m?(this.createFilter(),this.renderer=new h.Th({width:this.realWidth,height:this.realHeight,resolution:1,view:new wx.window.Canvas(n)})):this.initGl()}getRealSize(){const{width:t,height:e}=this.options;m?(this.realWidth=t,this.realHeight=e):(this.realWidth=t/4,this.realHeight=1.5*e)}createSprite(){const t=x(),{width:e,height:n}=this.options,r=this.getPusherContent();console.log(":::::::::画面尺寸",n,e);const i=r.createOffscreenCanvas({type:"2d",width:e,height:n});if(this.ctx2d=i.getContext("2d"),t){const t=n/e;this.ctx2d.translate(i.width/2,i.height/2),m?this.ctx2d.rotate(-Math.PI/2):this.ctx2d.rotate(Math.PI/2),this.ctx2d.translate(-i.height/2,-i.width/2),!m&&this.ctx2d.scale(t,1/t)}const o=h.xE.from(new wx.window.Canvas(i)),a=new h.jy(o);a.anchor.set(.5,.5),a.position.set(e/2,n/2);t?a.scale.set(m?1:-1,1):a.scale.set(m?-1:1.3333333333333333,-1),this.sprite=a,this.pushBuffer=m?new Uint8Array(e*n*4):new Uint8Array(e*n*1.5)}createFilter(){let t=new h.wn(null,"precision lowp float;varying vec2 vTextureCoord;uniform sampler2D uSampler;void main(void){ vec4 color = texture2D(uSampler, vTextureCoord); gl_FragColor = color.bgra;}");this.stage=new h.W2;const e=h.xE.from(new wx.window.Canvas(this.options.output));console.log("::::::::createFilter",this.realWidth,this.realHeight),this.pushSprite=new h.jy(e),this.pushSprite.anchor.set(.5,.5),this.pushSprite.position.set(this.realWidth/2,this.realHeight/2),this.pushSprite.width=this.realWidth,this.pushSprite.height=this.realHeight,this.pushSprite.scale.set(1,-1),this.pushSprite.filters=[t],this.stage.addChild(this.pushSprite)}initGl(){const t=this.gl,e=t.createShader(t.VERTEX_SHADER),n=t.createShader(t.FRAGMENT_SHADER);t.shaderSource(e,"attribute vec2 aVertex;attribute vec2 aUV;varying vec2 vTex;void main(void) { gl_Position = vec4(aVertex, 0.0, 1.0); vTex = aUV;}"),t.shaderSource(n,"\n precision mediump float;\n uniform sampler2D rgbaTexture;\n uniform float height;\n uniform float xUnit;\n varying vec2 vTex;\n \n void main() {\n vec4 coeffsY = vec4(0.299, 0.587, 0.114, 0.0);\n vec4 coeffsU = vec4(-0.14713, -0.28886, 0.436, 0.5);\n vec4 coeffsV = vec4(0.615, -0.515, -0.100, 0.5);\n \n const float V_DIVIDE_LINE = 5.0 / 6.0;\n const float U_DIVIDE_LINE = 1.0 / 1.5;\n \n if (vTex.y <= U_DIVIDE_LINE) {\n vec2 pos0 = vec2(vTex.x - 1.5 * xUnit, vTex.y * 1.5);\n gl_FragColor.r = coeffsY.a + dot(coeffsY.rgb, texture2D(rgbaTexture, pos0).rgb);\n \n vec2 pos1 = vec2(vTex.x - 0.5 * xUnit, vTex.y * 1.5);\n gl_FragColor.g = coeffsY.a + dot(coeffsY.rgb, texture2D(rgbaTexture, pos1).rgb);\n \n vec2 pos2 = vec2(vTex.x + 0.5 * xUnit, vTex.y * 1.5);\n gl_FragColor.b = coeffsY.a + dot(coeffsY.rgb, texture2D(rgbaTexture, pos2).rgb);\n \n vec2 pos3 = vec2(vTex.x + 1.5 * xUnit, vTex.y * 1.5);\n gl_FragColor.a = coeffsY.a + dot(coeffsY.rgb, texture2D(rgbaTexture, pos3).rgb);\n } else if (vTex.y <= V_DIVIDE_LINE) {\n float offsetY = 1.0 / 3.0 / height;\n vec2 texCoord;\n if (vTex.x <= 0.5) {\n texCoord = vec2(vTex.x * 2.0, (vTex.y - U_DIVIDE_LINE) * 2.0 * 3.0);\n } else {\n texCoord = vec2((vTex.x - 0.5) * 2.0, ((vTex.y - U_DIVIDE_LINE) * 2.0 + offsetY) * 3.0);\n }\n vec4 color0 = texture2D(rgbaTexture, texCoord);\n vec4 color1 = texture2D(rgbaTexture, texCoord + vec2(xUnit * 2.0, 0.));\n vec4 color2 = texture2D(rgbaTexture, texCoord + vec2(xUnit * 4.0, 0.));\n vec4 color3 = texture2D(rgbaTexture, texCoord + vec2(xUnit * 6.0, 0.));\n float u0 = coeffsU.a + dot(coeffsU.rgb, color0.rgb);\n float u1 = coeffsU.a + dot(coeffsU.rgb, color1.rgb);\n float u2 = coeffsU.a + dot(coeffsU.rgb, color2.rgb);\n float u3 = coeffsU.a + dot(coeffsU.rgb, color3.rgb);\n gl_FragColor = vec4(u0, u1, u2, u3);\n } else {\n float offsetY = 1.0 / 3.0 / height;\n vec2 texCoord;\n if (vTex.x <= 0.5) {\n texCoord = vec2(vTex.x * 2.0, (vTex.y - V_DIVIDE_LINE) * 2.0 * 3.0);\n } else {\n texCoord = vec2((vTex.x - 0.5) * 2.0, ((vTex.y - V_DIVIDE_LINE) * 2.0 + offsetY) * 3.0);\n }\n vec4 color0 = texture2D(rgbaTexture, texCoord);\n vec4 color1 = texture2D(rgbaTexture, texCoord + vec2(xUnit * 2.0, 0.));\n vec4 color2 = texture2D(rgbaTexture, texCoord + vec2(xUnit * 4.0, 0.));\n vec4 color3 = texture2D(rgbaTexture, texCoord + vec2(xUnit * 6.0, 0.));\n float u0 = coeffsV.a + dot(coeffsV.rgb, color0.rgb);\n float u1 = coeffsV.a + dot(coeffsV.rgb, color1.rgb);\n float u2 = coeffsV.a + dot(coeffsV.rgb, color2.rgb);\n float u3 = coeffsV.a + dot(coeffsV.rgb, color3.rgb);\n gl_FragColor = vec4(u0, u1, u2, u3);\n }\n return;\n }"),t.compileShader(e),t.compileShader(n);const r=t.createProgram();t.attachShader(r,e),t.attachShader(r,n),t.linkProgram(r),t.useProgram(r),t.progObj=r,t.viewport(0,0,this.realWidth,this.realHeight);const i=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,i),t.bufferData(t.ARRAY_BUFFER,new Float32Array([-1,1,-1,-1,1,-1,1,1]),t.STATIC_DRAW),t.vertexBuff=i;const o=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,o),t.bufferData(t.ARRAY_BUFFER,new Float32Array([0,1,0,0,1,0,1,1]),t.STATIC_DRAW),t.texBuff=o;const a=t.getAttribLocation(r,"aVertex"),s=t.getAttribLocation(r,"aUV"),c=t.getUniformLocation(r,"height"),l=t.getUniformLocation(r,"xUnit");t.uniform1f(c,this.options.height),t.uniform1f(l,1/this.options.width);const u=t.createTexture();t.bindTexture(t.TEXTURE_2D,u),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,this.options.output),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.tex=u,t.enableVertexAttribArray(a),t.bindBuffer(t.ARRAY_BUFFER,i),t.vertexAttribPointer(a,2,t.FLOAT,!1,0,0),t.enableVertexAttribArray(s),t.bindBuffer(t.ARRAY_BUFFER,o),t.bindTexture(t.TEXTURE_2D,u),t.vertexAttribPointer(s,2,t.FLOAT,!1,0,0)}getPusherContent(){if(this.options?.live?.pusherContext||(this.options.live.pusherContext=wx.createLivePusherContext()),!this.options.live.pusherContext)throw new Error("livepusherContext is not available");return this.options.live.pusherContext}async init(){await this.authorize(),this.start()}async authorize(){if(!wx.authorize)return;let t,e;t=await this.authScope("scope.record");const n=()=>{setTimeout((async r=>{e=await this.authScope("scope.camera"),""===e?n():t&&e||await this.openSetting()}),500)};n()}async openSetting(){return new Promise(((t,e)=>{wx.showModal({content:f.Z.t("0002"),confirmText:f.Z.t("0003"),showCancel:!1,success:e=>{e.confirm?wx.openSetting({success:e=>{console.log("wx auth setting",e),e.authSetting["scope.record"]&&e.authSetting["scope.camera"]&&r.Nd.trigger("error",{code:d.U.AUTH_NEED_RELOAD_PAGE,message:f.Z.t("0013")}),this.authorize().then((()=>{t()}))},fail:()=>{t()}}):e.cancel&&t()}})}))}async authScope(t){return new Promise((async e=>{const n=await this.getSetting();return"scope.camera"===t&&void 0===n[t]?e(""):n[t]?e(!0):void wx.authorize({scope:t,success(){e(!0)},fail(){e(!1)}})}))}async getSetting(){return new Promise(((t,e)=>{wx.getSetting({success:e=>{t(e.authSetting)},fail:()=>{e()}})}))}generatePusherData(){m?(this.pushSprite.texture.update(),this.renderer.render(this.stage)):(this.gl.texSubImage2D(this.gl.TEXTURE_2D,0,0,0,this.gl.RGBA,this.gl.UNSIGNED_BYTE,this.options.output),this.gl.drawArrays(this.gl.TRIANGLE_FAN,0,4)),this.gl.readPixels(0,0,this.realWidth,this.realHeight,this.gl.RGBA,this.gl.UNSIGNED_BYTE,this.pushBuffer),this.ready=!0}start(){const t=this.getPusherContent();t.onCustomRendererEvent("frame",(()=>{if(this.ctx2d.drawImage(t,0,0),this.sprite.texture.update(),this.ready)return this.pushBuffer.buffer}))}stop(){this.getPusherContent().onCustomRendererEvent("frame",null)}destroy(){this.sprite=null,this.stop(),this.generatePusherData=null}}class T extends r.Q4{sprite;listener;options;cameraContext;constructor(t){const e={...t,width:t.width/1,height:t.height/1};super(),this.options=e,this.cameraContext=t.camera?.cameraContext}async init(){await this.authorize(),await this.initCameraIns(),console.log("wx camera init done")}async authorize(){if(!wx.authorize)return;let t,e;t=await this.authScope("scope.record");const n=()=>{setTimeout((async r=>{e=await this.authScope("scope.camera"),""===e?n():t&&e||await this.openSetting()}),500)};n()}async openSetting(){return new Promise(((t,e)=>{wx.showModal({content:f.Z.t("0002"),confirmText:f.Z.t("0003"),showCancel:!1,success:e=>{e.confirm?wx.openSetting({success:e=>{console.log("wx auth setting",e),e.authSetting["scope.record"]&&e.authSetting["scope.camera"]&&r.Nd.trigger("error",{code:d.U.AUTH_NEED_RELOAD_PAGE,message:f.Z.t("0013")}),this.authorize().then((()=>{t()}))},fail:()=>{t()}}):e.cancel&&t()}})}))}async authScope(t){return new Promise((async e=>{const n=await this.getSetting();return"scope.camera"===t&&void 0===n[t]?e(""):n[t]?e(!0):void wx.authorize({scope:t,success(){e(!0)},fail(){e(!1)}})}))}async getSetting(){return new Promise(((t,e)=>{wx.getSetting({success:e=>{t(e.authSetting)},fail:()=>{e()}})}))}async initCameraIns(){this.cameraContext=this.cameraContext||wx.createCameraContext();const t=this.cameraContext.onCameraFrame((t=>{this.frame=t}));this.listener=t,this.start()}readPixels(){return this.frame}async startRecord(t){return this.recording=!0,new Promise(((e,n)=>{this.cameraContext.startRecord({timeoutCallback:t=>{console.log("camera start record timeout",t),this.trigger("timeout",t),this.recording=!1,e(t)},success:n=>{t&&t(),e(n)},fail:t=>{r.Nd.trigger("error",{code:d.U.START_REACORD_FAIL,message:f.Z.t("0009"),error:t})}})}))}async stopRecord(t=!1){return this.recording=!1,new Promise(((e,n)=>{this.cameraContext.stopRecord({compressed:t,success:t=>{e(t)},fail:t=>{r.Nd.trigger("error",{code:d.U.STOP_REACORD_FAIL,message:f.Z.t("0010"),error:t})}})}))}start(){this.listener.start()}stop(){this.listener.stop()}destroy(){this.listener&&(this.listener.stop(),this.listener=null),this.sprite&&(this.sprite=null),this.cameraContext&&(this.cameraContext=null)}}class C{options;frame;constructor(t){this.options=t,this.canvas=wx.createOffscreenCanvas({type:"2d"})}async init(){const t=this.options,{width:e,height:n,input:r}=t;if(r.src){if(!(r.src instanceof ArrayBuffer))return new Promise(((t,i)=>{this.canvas.width=e,this.canvas.height=n;const o=this.canvas.createImage();o.onload=()=>{const e=this.canvas.getContext("2d");e.drawImage(o,0,0);const{data:n}=e.getImageData(0,0,o.width,o.height);this.frame={data:n.buffer,width:o.width,height:o.height},o.src="",t()},o.src=r.src}));this.frame={data:r.src,width:e,height:n}}}readPixels(){return this.frame}destroy(){}}const S=wx.window;class k{canvas=null;_target=null;_input=null;constructor(t){const e={...t,width:t.width/1,height:t.height/1};if(this._options=e,!e.manual){const{width:t,height:n}=e;let r;r=wx.createCanvas(),r.width=t,r.height=n,this.pixels=new Uint8Array(t*n*4),this.canvas=new S.Canvas(r),this._target=new h.W2,this.renderer=new h.Th({view:this.canvas,width:e.width,height:e.height}),this.gl=this.renderer.gl,this._renderFunc=()=>{this.render()},h.vB.shared.add(this._renderFunc)}}render(){const t=this.input;if(t&&t.tick){if(!t.tick())return!1}return this.renderer.render(this._target),!0}set input(t){if(this._input=t,this._target&&t.sprite){this._target.children.forEach((t=>{this._target.removeChild(t)}));try{t.sprite.scale.x=t.sprite.scale.x/1,t.sprite.scale.y=t.sprite.scale.y/1,this._target.addChild(t.sprite)}catch(t){console.log("add child fail",t)}}}get input(){return this._input}async load(t){}destroy(){this._renderFunc&&h.vB.shared.remove(this._renderFunc),this.renderer&&this.renderer.destroy(!0),this._target&&this._target.destroy(!0),this.canvas&&(this.canvas=null)}init(t){}readPixels(){if(this.input.readPixels)return this.input.readPixels();const{width:t,height:e}=this._options;this.gl.readPixels(0,0,t,e,this.gl.RGBA,this.gl.UNSIGNED_BYTE,this.pixels);return{data:this.pixels.buffer,width:t,height:e}}typedArrayToBuffer(t){return t.buffer.slice(t.byteOffset,t.byteLength+t.byteOffset)}async getCanvasNode(){return new Promise((t=>{wx.createSelectorQuery().select("#input-canvas").node().exec((e=>{const n=e[0].node;t(n)}))}))}}var E=n(6237),P=n(401);class R{count=0;mediaContainer;videoRecorder;audioRecorder;audioPath;audioRecorderStarted=!1;recording=!1;options;constructor(t){this.options=t;const{canvas:e,fps:n,audio:r={}}=t;this.createRecorder(e);const{onStart:i,onStop:o}=r;this.audioRecorder=wx.getRecorderManager(),this.audioRecorder.onStop((t=>{this.audioPath=t.tempFilePath,this.audioRecorderStarted=!1,o&&o(t)})),this.audioRecorder.onStart((()=>{this.audioRecorderStarted=!0,i&&i()})),this.mediaContainer=wx.createMediaContainer()}createRecorder(t){try{let e={duration:600,fps:"offscreen"===P.iN||g?30:60,gop:12,timeUpdateInterval:"offscreen"===P.iN||g?30:60,cumulativeStamp:!1,videoBitsPerSecond:3e3};console.log("recorder options",e),this.videoRecorder&&this.videoRecorder.destroy().catch((t=>{}));const n=wx.createMediaRecorder(t,e);this.videoRecorder=n,n.on("start",(()=>{console.log("recorder start success")}))}catch(t){r.Nd.trigger("error",{code:d.U.START_REACORD_FAIL,message:f.Z.t("0008"),error:t})}}async start(){this.videoRecorder&&(await this.videoRecorder.start().catch((t=>{r.Nd.trigger("error",{code:d.U.START_REACORD_FAIL,message:f.Z.t("0009")}),console.error("recorder start error",t)})),await this.startAudioRecorder(),this.recordStartTime=+new Date,this.recording=!0)}async stop(t){if(!this.videoRecorder)return;let e,n;this.recording=!1,this.audioRecorder.stop();try{e=(await this.videoRecorder.stop()).tempFilePath}catch(e){t.destroy||r.Nd.trigger("error",{code:d.U.STOP_REACORD_FAIL,message:f.Z.t("0010"),error:e})}if(console.log("stop record",e),e)try{const{videoTrack:r}=await this.getTracks(e);let i=[r];if(t.musicPath){const{audioTrack:e}=await this.getTracks(t.musicPath).catch((t=>{console.log("music separation fail",t)}));console.log("musicTrack",e),e._audioType="music",i.push(e)}if(t.useOriginAudio){const t=await this.getAudioPath(),{audioTrack:e}=await this.getTracks(t).catch((t=>{}));i.push(e)}n=await this.mergeTracks(...i).catch((t=>{}))}catch(t){n={tempFilePath:e}}try{this.videoRecorder.destroy()}catch(t){console.log("videoRecorder destroy error",t)}try{this.mediaContainer.destroy()}catch(t){console.log("mediaContainer destroy error",t)}return this.videoRecorder=null,n}async startAudioRecorder(){const{audio:t}=this.options;return console.log("zy sdk startAudioRecorder",t),new Promise((e=>{let n,r=()=>{this.audioRecorderStarted?(e(this.audioRecorderStarted),n&&clearTimeout(n)):n=setTimeout(r,10)};this.audioRecorder.start({duration:6e5,format:"mp3",...t}),r()}))}getRecorder(){return this.videoRecorder}async loop(){this.recording&&this.videoRecorder&&this.audioRecorderStarted&&await this.videoRecorder.requestFrame()}async getTracks(t){return new Promise(((e,n)=>{this.mediaContainer.extractDataSource({source:t,success:async({tracks:t})=>{let n,r;for(let e=0;e<t.length;e++)"audio"===t[e].kind?r=t[e]:"video"===t[e].kind&&(n=t[e]);e({audioTrack:r,videoTrack:n})},fail(t){console.log("failed to separate audio track",t),n(t)}})}))}async mergeTracks(t,...e){return new Promise(((n,r)=>{this.mediaContainer.addTrack(t),t.slice(.06,t.duration),e.forEach((e=>{this.mediaContainer.addTrack(e),"music"!==e._audioType&&e.slice(e.duration-t.duration+.06,2*e.duration)})),this.mediaContainer.export({success:r=>{this.mediaContainer.removeTrack(t),e.forEach((t=>{this.mediaContainer.removeTrack(t)})),n(r)},fail:t=>{console.log("mediaContainer export fail",t),r(t)}})}))}async getAudioPath(){return new Promise((t=>{let e,n=()=>{this.audioPath?(t(this.audioPath),e&&clearTimeout(e),this.audioPath=null):e=setTimeout(n,20)};n()}))}}class O extends r.Q4{sprite;options;video;constructor(t){super(),this.options=t}destroy(){try{this.video&&this.video.destroy()}catch(t){}}async init(){if(!this.sprite)return this.getVideoDecoder(),await this.start().catch((t=>{throw new Error("decoder start fail")})),new Promise((async(t,e)=>{let n=async()=>{const e=await this.tick();if(console.log("input init res",e),e)return this._inited=!0,t();setTimeout((()=>{n()}),100)};await n()}))}read(){return this.video.getFrameData()}tick(){const t=this.video.getFrameData();if(!t)return!1;const{width:e,height:n,data:r}=t;if(this.sprite)this.sprite.texture.baseTexture.resource.data=new Uint8Array(r),this.sprite.texture.update();else{const t=h.xE.fromBuffer(new Uint8Array(r),e,n),i=new h.jy(t),o=Math.max(this.options.width/e,this.options.height/n);this.sprite=i,i.anchor.set(.5,.5),i.x=this.options.width/2,i.y=this.options.height/2;const a=wx.getSystemInfoSync();let{system:s}=a;-1===s.toLowerCase().indexOf("android")?i.scale.set(o,o):i.scale.set(o,-o)}return!0}getVideoDecoder(){const t=wx.createVideoDecoder();return this.video=t,t}async start(){return new Promise(((t,e)=>{const{input:n,width:r,height:i}=this.options;this.video.on("start",(()=>{console.log("decoder start success",n),t()})),this.video.on("bufferchange",(()=>{console.log("decoder buffer change")})),this.video.on("error",(t=>{console.log("decoder error",t),e({errMsg:"decoder error"})})),this.video.on("ended",(()=>{console.log("decoder decode ended"),this.trigger("ended")})),this.video.start({source:n,mode:1,abortAudio:!0})}))}async getFps(t){return new Promise(((e,n)=>{let r=wx.createVideoDecoder();r.on("error",(t=>{console.log("init fps error",t),e(30)})),r.on("start",(t=>{console.log("player init fps",t.fps),r&&r.stop().catch((t=>{})),e(t.fps)})),r.on("stop",(()=>{r&&r.remove().catch((()=>{})),r=null})),r.start({source:t,mode:1,abortAudio:!0})}))}stop(){this.video.stop()}destroy(){this.video.remove()}}var D=n(3120),A=n(6309),I=n(5127),F=n(3553),L=n(8586),M=n(6109),N=function(){return N=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},N.apply(this,arguments)},j=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},B=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},U=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))},z=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},W=(0,M.jl)("Auth"),V=(0,P.rR)("68,74,74,70,73,3a,2f,2f,77,65,62,61,72,2e,71,63,6c,6f,75,64,2e,63,6f,6d,2f,73,64,6b"),q=function(){function t(t,e,n,r,i){void 0===r&&(r=""),void 0===i&&(i=""),this.cd=new o.M,this.license=t,this.appid=e+"",this.authFunc=n,this.wechatAppId=r,this.c=new I.Y}return Object.defineProperty(t.prototype,"version",{get:function(){var t,e="1.0.23".split(".");return t=0==e[0]&&e[1]<3?"v0":0==e[0]&&3==e[1]&&e[2]<4?"v1":"v2",W.info("sdk version",t),t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"language",{set:function(t){W.info("wx set language",t),f.Z.lang=t},enumerable:!1,configurable:!0}),t.prototype.exsureAuthData=function(){return U(this,void 0,void 0,(function(){return z(this,(function(t){switch(t.label){case 0:return"102"===this.appid&&(this.authFunc=this.getTemplateAuth.bind(this)),[4,this.authFunc()];case 1:return[2,t.sent()]}}))}))},t.prototype.exsurehad=function(){return U(this,void 0,void 0,(function(){var t,e,n;return z(this,(function(r){switch(r.label){case 0:return[4,this.c.init()];case 1:return r.sent(),[4,this._ts()];case 2:return t=r.sent(),[4,this.exsureAuthData()];case 3:return e=r.sent(),n=this.c.run2(t+"",this.wechatAppId,this.appid),[2,N(N({},e),{key:n,sdkts:t})]}}))}))},t.prototype._ts=function(){return U(this,void 0,void 0,(function(){var t,e,n=this;return z(this,(function(r){switch(r.label){case 0:return[4,this._uc()];case 1:return t=r.sent(),e="".concat(V).concat(t.ti),[2,new Promise((function(t,r){wx.request({url:e,method:"POST",header:{},success:function(e){var r=e.data,i=n.c.a_de(r),o=JSON.parse(i);t(o[(0,P.rR)(P.gz)])},fail:function(e){W.info("wx fetch error",e),t(e)}})}))]}}))}))},t.prototype.getTemplateAuth=function(){var t=this;return new Promise((function(e,n){wx.request({url:"https://1253707637-fkgh1gso7n-gz.scf.tencentcs.com",method:"GET",header:{},success:function(n){var r=n.data,i=t.c.a_de(r),o=JSON.parse(i);e(o)},fail:function(t){W.info("wx fetch error",t),e(t)}})}))},t.prototype._f=function(t,e){return U(this,void 0,void 0,(function(){var n,i,o,a,s,c,l,u,h,p,g,m,y,v=this;return z(this,(function(_){switch(_.label){case 0:return n="Preset"===e.Type&&JSON.stringify(e),this.had?[3,2]:(i=this,[4,this.exsurehad()]);case 1:i.had=_.sent(),_.label=2;case 2:return o=function(){return U(v,void 0,void 0,(function(){var n,r,i=this;return z(this,(function(o){switch(o.label){case 0:return e.Version=this.version,n=this.c.a_en(JSON.stringify(Object.assign({LicenseKey:this.license,AccountArea:"en"===f.Z.lang?1:0},e))),r={p:n},[4,new Promise((function(e,n){wx.request({url:t,method:"POST",header:{"content-type":"application/json",appid:i.appid,timestamp:i.had.timestamp,signature:i.had.signature,authorize:i.had.key,wechatappid:i.wechatAppId,sdktimestamp:i.had.sdkts+"",Language:"en"===f.Z.lang?"en-US":"zh-CN"},data:r,success:function(t){var n=t.data,r=i.c.a_de(n);e(JSON.parse(r))},fail:function(t){W.info("wx fetch error",t),e(t)}})}))];case 1:return[2,o.sent()]}}))}))},n?[3,3]:(s=!1,[3,6]);case 3:return"pending"!==F.Z.get(n)?[3,5]:(c=0,[4,new Promise((function(t,e){var r=function(){c++,a=setTimeout((function(){"pending"!==F.Z.get(n)?(clearTimeout(a),t(void 0),s=!0):c<10?r():(clearTimeout(a),t(void 0),s=!1)}),300)};r()}))]);case 4:return _.sent(),[3,6];case 5:F.Z.has(n)?(s=!0,l=F.Z.get(n),u=l[(0,P.rR)(P.Eh)],((h=+new Date)-1e3*u>6e5||1e3*u>h+6e5)&&(s=!1)):(F.Z.set(n,"pending"),s=!1),_.label=6;case 6:return s?(g=F.Z.get(n),[3,9]):[3,7];case 7:return[4,o()];case 8:g=_.sent(),_.label=9;case 9:return 101!=(p=g).Code?[3,12]:(m=this,[4,this.exsurehad()]);case 10:return m.had=_.sent(),[4,o()];case 11:return p=_.sent(),[3,16];case 12:return 106!=p.Code?[3,15]:(y=this,[4,this.exsurehad()]);case 13:return y.had=_.sent(),[4,o()];case 14:return p=_.sent(),[3,16];case 15:0!==p.Code&&(n&&F.Z.remove(n),101==p.Code?r.Nd.trigger("error",{code:d.U.SIGNATURE_TIMEOUT,message:"Signature timeout, retry failed."}):106==p.Code?r.Nd.trigger("error",{code:d.U.AUTHORIZE_TIMEOUT,message:"Authorize timeout, retry failed."}):r.Nd.trigger("error",{code:d.U.REQUEST_FAIL,message:p.Message})),_.label=16;case 16:return 0===p.Code?(p.WeChatAppId!==this.wechatAppId&&(r.Nd.trigger("error",{code:d.U.AUTH_FAIL,message:f.Z.t("0034")}),p={Code:-1,Data:{}}),n&&F.Z.set(n,p)):F.Z.remove(n),[2,p]}}))}))},t.prototype._uc=function(){return U(this,void 0,void 0,(function(){return z(this,(function(t){switch(t.label){case 0:return[4,this.cd.load()];case 1:return t.sent(),[2,this.cd.getDataConfig(30)]}}))}))},t.prototype._cuid=function(){return!("object"!=typeof navigator||"string"!=typeof navigator.userAgent||!/electron/i.test(navigator.userAgent)||location.host&&("string"!=typeof location.host||!location.host.startsWith("file://")))},t.prototype.go=function(){return U(this,void 0,void 0,(function(){var t,e,n,r,i,o;return z(this,(function(a){switch(a.label){case 0:return a.trys.push([0,3,,4]),[4,this._uc()];case 1:return t=a.sent(),[4,this._f("".concat(V).concat(t.au),{})];case 2:return e=a.sent(),n=(e.Data||{})[(0,P.rR)(P.hJ)]||[],r=[],i=Object.entries(P.ty),n.forEach((function(t){var e=(0,P.$G)(t),n=i.find((function(t){return t[1]===e}));r.push(n[0])})),F.Z.set((0,P.rR)(P.Ty),r),[2,e];case 3:return o=a.sent(),W.info("ar sdk fetch auth error",o),[2,new Error("fetch auth failed")];case 4:return[2]}}))}))},t.prototype.getAllEffectList=function(t){return void 0===t&&(t={}),U(this,void 0,void 0,(function(){var e,n,r,i;return z(this,(function(o){switch(o.label){case 0:return"Preset"===t.Type&&(void 0!==t.Label&&""!==t.Label||(t.Label=[f.Z.t("1001"),f.Z.t("1002")])),[4,this._uc()];case 1:return e=o.sent(),[4,this._f("".concat(V).concat(e.ae),N({Type:"Custom",PageNumber:0,PageSize:1e3},t))];case 2:return(n=o.sent())&&0==n.Code?(r=n.Data.EffectList,i=[],(i="Preset"===t.Type?r.filter((function(t){return!(t.Label.indexOf(f.Z.t("1004"))>-1&&!H("effect_sticker_3d")||t.Label.indexOf(f.Z.t("1005"))>-1&&!H("avatar_vr")||t.Label.indexOf(f.Z.t("1006"))>-1&&!H("avatar_ar"))})):r).forEach((function(t){F.Z.set(t.EffectId,t)})),[2,i]):[2,n]}}))}))},t.prototype.getEffect=function(t){return U(this,void 0,void 0,(function(){var e,n;return z(this,(function(r){switch(r.label){case 0:return F.Z.has(t.EffectId)?[2,F.Z.get(t.EffectId)]:[4,this._uc()];case 1:return e=r.sent(),[4,this._f("".concat(V).concat(e.ef),t)];case 2:return(n=r.sent())&&0==n.Code&&n.Data&&n.Data.Url?(F.Z.set(t.EffectId,n.Data),[2,n.Data]):n.Data&&!n.Data.Url?[2,{message:"invalid id"}]:[2,n]}}))}))},t.prototype.getEffectList=function(t){return void 0===t&&(t={}),U(this,void 0,void 0,(function(){var e;return z(this,(function(n){switch(n.label){case 0:return[4,this.getAllEffectList(t)];case 1:return(e=n.sent())&&e.OtherEffectList&&e.OtherEffectList.length&&r.Nd.trigger("error",{code:d.U.SDK_VERSION_LOW_ERROR,message:f.Z.t("0014")}),e&&e.EffectList?"Preset"===t.Type?[2,e.EffectList]:[2,e.EffectList.filter((function(t){return"Custom"===t.Type}))]:[2,e]}}))}))},t.prototype.getFilterList=function(){return U(this,void 0,void 0,(function(){var t;return z(this,(function(e){switch(e.label){case 0:return[4,this.getAllEffectList({Type:"Preset",Label:f.Z.t("1003")})];case 1:return(t=e.sent())&&t.EffectList?[2,t.EffectList]:[2,t]}}))}))},t.prototype.getAvatarList=function(t){return U(this,void 0,void 0,(function(){var e,n;return z(this,(function(r){switch(r.label){case 0:return e=f.Z.t("1006"),"VR"===t&&(e=f.Z.t("1005")),[4,this.getAllEffectList({Type:"Preset",Label:e})];case 1:return(n=r.sent())&&n.EffectList?[2,n.EffectList]:[2,n]}}))}))},t=j([L.e,B("design:paramtypes",[String,String,Function,String,String])],t)}(),H=function(t){var e=F.Z.get((0,P.rR)(P.Ty)),n=Object.entries(P.ty).find((function(e){return e[1]===(0,P.$G)(t)}));return!(!e||!e.find((function(t){return t===n[0]})))};function G(t,e,n,i){return U(this,void 0,void 0,(function(){var o,a,s,c;return z(this,(function(l){switch(l.label){case 0:return(0,r.E5)(),a=wx.getAccountInfoSync(),s=a.miniProgram.appId,o=new q(t,e,n,s),i&&(o.language=i),[4,o.go()];case 1:if(0!==(null==(c=l.sent())?void 0:c.Code))throw new Error(c);return[2,{getEffectList:o.getEffectList.bind(o),getFilterList:o.getFilterList.bind(o)}]}}))}))}var Y=n(3044),Z=n(3483),K=n.n(Z),X=!1;function $(t,e){!X&&t&&(X=!0,setTimeout((function(){new(K())({id:"1309122168"==t?"j4LDpiL2PlRmZ9ljaJ":"Gl3L4fE8vE5bqOVbV0",uin:t,ext1:t,ext2:e,reportApiSpeed:!0,spa:!1})}),1e3))}var J=n(4809),Q=n(9984);const tt=`${wx.env.USER_DATA_PATH}/ar`;class et extends r.Q4{background=null;stickers=[];filter=null;disabled=!1;constructor(t){super();let{auth:e,live:n}=t;const{licenseKey:i,appId:o,authFunc:a}=e,s=wx.getAccountInfoSync();this.auth=new q(i,o,a,s.miniProgram.appId),r.Nd.on("error",(t=>{this.trigger("error",t)})),$(o),this.checkReady=this.auth.go().then((t=>0===t.Code&&(this.trigger("created"),this.trigger("ready"),!0))).catch((()=>!1)),this.config=n}async clearStickers(){this.getPusherContent().clearStickers()}async resetStickers(){const t=this.getPusherContent();let e,n;return this.clearStickers(),this.background&&(e=new Promise(((e,n)=>{t.applySticker({type:"back",stickers:[{id:this.background.id,title:this.background.id,len:1,active:-1,path:this.background.path,segtype:0}],success:t=>{e(t)},fail:n})}))),this.stickers.length&&(n=new Promise(((e,n)=>{t.applySticker({type:"front",stickers:this.stickers.map((t=>({id:t.id,title:t.id,len:1,active:-1,pos:t.pos,path:t.path,segtype:0}))),success:t=>{e(t)},fail:n})}))),Promise.all([e,n])}async transSticker(t=[]){const e=t.map((async t=>{const[e,n]=this.getFilename(t.url);return t.id=e,t.path=await this.getZipDataPath(t.url,e,n),t}));return Promise.all(e)}async getEffect(t){if("debug"===t)return{Url:"https://webar-static.tencent-cloud.com/custom-effect/1309122168/1658976205287/effect.bin"};return await this.auth.getEffect({EffectId:t})}getPusherContent(){return this.config.pusherContext||(this.config.pusherContext=wx.createLivePusherContext()),this.config.pusherContext}getFilename(t=""){if(t instanceof ArrayBuffer)return["buffer"+Date.now(),"png"];const e=t.split("/"),n=e[e.length-1]||"test.png",r=parseInt((new Date).valueOf()/1e3);let[i="test",o="png"]=n.split(".");return i=i.replace(/[^a-zA-Z0-9]/g,"")+r,[i,o]}async getImageSize(t){return new Promise(((e,n)=>{wx.getImageInfo({src:t,success:t=>{e({width:t.width,height:t.height})},fail:n})}))}async preloadVcubeFile(t,e){await(0,Q.sN)(tt);const n=`${tt}/${t}`,r=await(0,Q.nH)(n),i=wx.getFileSystemManager();if(!r){const r=await(0,Q.pe)(t,e);await new Promise(((t,e)=>{i.unzip({zipFilePath:r,targetPath:n,success:t,fail:e,complete:()=>{i.unlink({filePath:r})}})}))}return new Promise(((t,e)=>{i.readFile({filePath:`${n}/content.json`,encoding:"utf8",success:({data:e})=>{const r=JSON.parse(e);t([n,r])},fail:e})}))}async download(t){return t instanceof ArrayBuffer?t:new Promise(((e,n)=>{wx.request({url:t,responseType:"arrayBuffer",success:t=>{const{data:n}=t;e(n)},fail:t=>{n(t)}})}))}async getZipDataPath(t,e,n){await(0,Q.sN)(tt);const r=`${tt}/${e}.zip`;if(await(0,Q.nH)(r))return r;const i=await this.download(t),o=new Uint8Array(i),a=(0,J.Xo)({[`${e}_0.${n}`]:o});return await new Promise(((t,e)=>{wx.getFileSystemManager().writeFile({filePath:r,data:a.buffer,encoding:"binary",success:()=>{t()},fail:t=>{e(t)}})})),r}async setBackground(t){t=t||{};const{type:e,src:n=""}=t;if("image"!==e&&n)return new Error("live mode is not supported");if(!n)return this.background=null,this.resetStickers();if(!await this.checkReady)throw this.trigger("error",{code:d.U.AUTH_FAIL,message:"Arsdk is not ready"}),new Error("Arsdk is not ready");return[this.background]=await this.transSticker([{url:n}]),this.resetStickers()}async clearFile(t){let e=wx.getFileSystemManager();return new Promise(((n,r)=>{e.unlink({filePath:t,success:n,fail:r})}))}async _setFilter(t,e=1){this.filter=[t,e];const n=this.getPusherContent();return new Promise(((r,i)=>{n.applyFilter({path:t,md5:"",alpha:e,success:r,fail:i})}))}async setWatermark(t=[]){if(!t?.length)return this.stickers=[],this.resetStickers();if(!await this.checkReady)throw this.trigger("error",{code:d.U.AUTH_FAIL,message:"Arsdk is not ready"}),new Error("Arsdk is not ready");return this.stickers=await this.transSticker(t),this.resetStickers()}async setFilter(t,e=1){if(!await this.checkReady)throw this.trigger("error",{code:d.U.AUTH_FAIL,message:"Arsdk is not ready"}),new Error("Arsdk is not ready");const{Url:n}=await this.getEffect(t),[r,i]=await this.preloadVcubeFile(t,n),o=`${r}/${i.filter[0].src}`;await(0,Q.nH)(o);return this._setFilter(o,e)}disable(){if(this.disabled)return;this.disabled=!0;const t=this.getPusherContent();t.clearStickers(),t.clearFilters()}async enable(){if(this.disabled)return this.disabled=!1,this.filter&&await this._setFilter(...this.filter),this.resetStickers()}destroy(){this.disable(),this.auth=null,this.stickers=[],this.filter=null,this.background=null}}const nt=0,rt=2,it=3,ot=4;function at(t){t&&(P.F3.defaultRoot=t.replace(/^\/|\/$/g,""))}const st={whiten:0,dermabrasion:0,lift:0,shave:0,eye:0,chin:0};class ct extends r.Q4{_input;_detector;_ready=!1;_renderer;_options;_renderFunc;renderSprite;outputCanvas;outputRenderer;lastestEffectIds=[];loadedIdMap=new Map;tickworker;input_type;count=0;flag_1=!1;flag_2=!1;disabled=!1;el=new A.e({});takePhotoPromises=[];get enableFaceDetect(){return!this.disabled&&(this.flag_1||this.flag_2)}disable(){this.disabled||(this.disabled=!0,this._renderer&&(this._renderer.disable(),this._renderer.disableExclusiveFilter()))}enable(){this.disabled&&(this.disabled=!1,this._renderer&&(this._renderer.enable(),this._renderer.enableExclusiveFilter()))}constructor(t){h.U1(),super();const{auth:e,input:n,live:i,camera:o,beautify:a,loading:s,output:c,plugin3d:l,language:u}=t;if((0,r.E5)(),f.Z.lang=u||"zh",n){if(!("string"==typeof n||n?.width&&n?.height))return void r.Nd.trigger("error",{message:f.Z.t("0004"),code:d.U.INPUT_ERROR});this.input_type=it}else if(o)this.input_type=nt;else{if(!i)return void r.Nd.trigger("error",{message:f.Z.t("0005"),code:d.U.INPUT_ERROR});if(this.input_type=ot,!b)throw new Error("The current WeChat version does not support it. Please upgrade and try again");if("native"===i.mode)return new et(t)}this.isReadyPromise=this.startAuth(e);const p={camera:o,input:n,live:i,mirror:this.input_type===nt&&o.mirror,beautify:a,plugin3d:l,output:new wx.window.Canvas(c)};s&&s.enable&&(p.enableLoadingIcon=s.enable,p.loadingIconOptions={size:s.size,lineWidth:s.lineWidth,strokeColor:s.strokeColor}),this._options=p,this.getAutoSize(n||o||i).then((({width:t,height:n})=>{this._options.width=t,this._options.height=n,"offscreen"===P.iN&&this.input_type!==ot&&(this.outputCanvas=new wx.window.Canvas(wx.createOffscreenCanvas({type:"webgl",width:this._options.width,height:this._options.height})),this.outputRenderer=new h.Th({view:this.outputCanvas,width:this._options.width,height:this._options.height,preserveDrawingBuffer:!0,antialias:!1})),this.init(),$(e.appId,e.sdkAppId)})),wx.onMemoryWarning?.((()=>{console.log("Out of memory!"),this.el.clearCache(),(0,Y.UI)()}))}async getAutoSize(t){if(this.input_type===ot){let e=t?.pushSize;return e?.realHeight&&e?.realWidth||(e=ct.getRealSize(720)),{width:e?.realWidth,height:e?.realHeight}}return this.input_type===nt?{width:t.width,height:t.height}:this.input_type===it?t.width&&t.height?{width:t.width,height:t.height}:new Promise(((e,n)=>{wx.getImageInfo({src:t,success:n=>{e({width:n.width,height:n.height}),this._options.input={src:t,...n}},fail:n})})):void 0}init(){wx.requestAnimationFrame=this._options.output.requestAnimationFrame,wx.cancelAnimationFrame=this._options.output.cancelAnimationFrame,this._detector=_?new u(this._options):new a,this._input=new k({...this._options,manual:this.input_type===nt||this.input_type===it}),this._renderer=new E.g(this._options),this.inputNode=this.getInputNode(),Promise.all([this.isReadyPromise.then((()=>this.trigger("created"))),this._initCommonResLoader(),this.inputNode.init(),this._detector.init(),this._renderer.addBeautyAsync("default",this._options.beautify||{})]).then((()=>{this._input.input=this.inputNode,this.checkIsBeauti(this._options.beautify),this._ready||(this.trigger("ready"),this._ready=!0),this._initMainLoop()})),r.Nd.on("error",(t=>{this.trigger("error",t)}))}_initMainLoop(){this._renderFunc=async()=>{let t="low"===this._options.live?.fps?4:2;this.input_type===it&&(t=10),this.count%t==0&&this.render().catch((t=>console.log("render fail",t))),this.count++,this.count>=4&&(this.count=0)},h.vB.shared.add(this._renderFunc)}logTime(t){const e=+new Date;console.log(`${t}时间:${e-this.currentTime}`),this.currentTime=e}async setInput(t){const{width:e,height:n}=await this.getAutoSize(t);this._options.width=e,this._options.height=n,this.outputCanvas.width=e,this.outputCanvas.height=n,this.outputRenderer.resize(n,n),this._options.input.src=t?.src||t,this._renderer.options={...this._options},await this.inputNode.init(),this._ready&&this.render()}async render(){if(this._destroyed)return;const t=this._input.readPixels();if(!t?.width)return!1;if(this.enableFaceDetect){const e=await this._detector.send(t),{landmarks:n,angles:r,meshVertex:i,lipVertex:o}=e;this._renderer.setMesh(i),this._renderer.setReshapeMarks(n),this._renderer.tick({landmarks:n,meshVertex:i,lipVertex:o,angles:r,image:this.input_type===ot?this._input.canvas:t,isLivePusher:this.input_type===ot})}else this._renderer.tick({landmarks:[],meshVertex:[],lipVertex:[],angles:{},image:this.input_type===ot?this._input.canvas:t,isLivePusher:this.input_type===ot});this.recordRender(),this._takePhoto(),this.transcodeLive()}recordRender(){if(this.recording)if("offscreen"===P.iN){if(this.ttt=new Date,this.renderSprite){this.renderSprite.texture.update()}else{let t=h.xE.from(this._renderer._canvas);this.renderSprite=new h.jy(t),this.renderSprite.anchor.set(.5,.5),this.renderSprite.position.x=this.renderSprite.width/2,this.renderSprite.position.y=this.renderSprite.height/2,!g||"8.0.28"!=y&&"8.0.29"!=y&&"8.0.30"!=y?this.renderSprite.scale.set(1,1):this.renderSprite.scale.set(1,-1)}this.outputRenderer.render(this.renderSprite),this.recordCanvasRendered||(this.recordCanvasRendered=!0)}else this.recorder.loop();else if(this.takingPhoto){const t=this._renderer.getPixels();this.cacheImage=t}}async startAuth(t){const{licenseKey:e,appId:n,authFunc:r}=t,i=wx.getAccountInfoSync();this._a=new q(e,n,r,i.miniProgram.appId);const o=await this._a.go();return 0!==o?.Code?Promise.reject(o.Message):o}async getEffectList(t={}){return await this._a.getEffectList(t)}async getEffect(t){if("debug"===t)return{Url:"https://webar-static.tencent-cloud.com/custom-effect/1309122168/1658976205287/effect.bin"};const e=await this._a.getEffect({EffectId:t});return e.Url?e:Promise.reject(e.message)}async getCommonFilter(){return await this._a.getFilterList()}async _initCommonResLoader(){const t=new D.KI;await t.init()}getInputNode(){if(this.input_type===it)return new C(this._options);if(this.input_type===rt){const t=new O(this._options);return t.on("ended",(()=>{this.trigger("ended")})),t}return this.input_type===ot?new w(this._options):new T(this._options)}checkIsBeauti(t){t=t||{},Object.keys(t).some((e=>"whiten"!==e&&"dermabrasion"!==e&&t[e]))?this.flag_1=!0:this.flag_1=!1}setBeautify(t){t=t||{},t={...st,...t},H("beautify")?(this.checkIsBeauti(t),this.checkReady().then((()=>{this._renderer.switchMode("Sticker"),this._renderer.updateBeauty("default",t)}))):this.trigger("error",{code:d.U.AUTH_API_FAIL,message:f.Z.t("0007")})}setEffect(t,e,n){if(!H("effect_makeup")||!H("effect_sticker_2d"))return void this.trigger("error",{code:d.U.AUTH_API_FAIL,message:f.Z.t("0007")});if(!this._renderer)return void this.trigger("error",{code:d.U.SET_EFFECT_ERROR,message:"no face detected"});t.length?this.flag_2=!0:this.flag_2=!1;let r=[],i=[],o=[];if(Array.isArray(t))t.forEach((t=>{if(t instanceof Object){r.push(t.id);let e=t.intensity;e=this._checkVoid(e)?1:e,i.push(t.intensity);let n=t.filterIntensity;o.push(this._checkVoid(n)?e:n)}else r.push(t),i.push(1),o.push(1)}));else if(t instanceof Object){r=[t.id];let e=t.intensity;e=this._checkVoid(e)?1:e,i=[e],i=[t.intensity];let n=t.filterIntensity;o=[this._checkVoid(n)?e:n]}else r=[t],i=[1],o=[1];this.setEffectInner(r,i,o,e,n)}_checkVoid(t){return null==t}setEffectInner(t,e,n,i,o){this.el.clearCache(),this.lastestEffectIds=t,this._renderer.showLoading(),Promise.all(t.map((t=>this.getEffect(t).then((t=>t.Url))))).then((async r=>{t.some((t=>-1===this.lastestEffectIds.indexOf(t)))||(await E.g.preloadEffects(r),this._renderer.hideLoading(),t.some((t=>-1===this.lastestEffectIds.indexOf(t)))||(i&&"function"==typeof i&&i(),this._renderer.switchMode("Sticker"),this._renderer.setEffect(r,e,n,(()=>!!H("effect_sticker_3d")||(this.trigger("error",{code:d.U.AUTH_API_FAIL,message:f.Z.t("0007")}),!1))).then((t=>{}))))})).catch((e=>{console.log("set effect error",t,e),r.Nd.trigger("error",{code:d.U.SET_EFFECT_ERROR,message:"set effect error",error:e}),this._renderer.hideLoading(),o&&"function"==typeof o&&o()}))}setFilter(t,e=1,n,i){H("filter")?this._renderer?t&&"none"!==t?(this.loadedIdMap.has(t)||this._renderer.showLoading(),this.getEffect(t).then((async r=>{this.loadedIdMap.has(t)||await E.g.preloadEffects([r.Url]),this._renderer.hideLoading(),this.loadedIdMap.set(t,r.Url),n&&"function"==typeof n&&n(),this._renderer.switchMode("Sticker"),this._renderer.setExclusiveFilter(r.Url,e)})).catch((t=>{r.Nd.trigger("error",{code:d.U.SET_FILTER_ERROR,message:"set filter error",error:t}),this._renderer.hideLoading(),i&&"function"==typeof i&&i()}))):this._renderer.removeExclusiveFilter():this.trigger("error",{code:d.U.SET_FILTER_ERROR,message:"no face detected"}):this.trigger("error",{code:d.U.AUTH_API_FAIL,message:f.Z.t("0007")})}async checkReady(){return new Promise((t=>{let e;const n=()=>{this._ready?(t(),e&&clearTimeout(e)):e=setTimeout(n,1e3)};n()}))}async startRecord(t={audio:{format:"mp3"},recordCamera:!1}){if(!this.recording){if(this.input_type===ot)throw new Error("record in live mode is not support");return this.recording=!0,this.recorder=new R({canvas:"offscreen"===P.iN?this.outputCanvas:this._options.output,...t}),await this.recorder.start(),this._startTime=+new Date,"offscreen"===P.iN&&(this.tickworker=wx.createWorker(`${P.F3.defaultRoot}/worker/tick.worker.js`),this.tickworker.onMessage((()=>{this.recorder.loop()})),this.tickworker.postMessage("start")),t.recordCamera&&this.inputNode.startRecord(),this.recorder}}async stopRecord(t={useOriginAudio:!1,destroy:!1,compressed:!1}){if(!this.recording)return;if(g){const t=3e3,e=t=>new Promise(((e,n)=>{console.log("wait time",t),setTimeout((()=>e()),t)}));await e(Math.max(0,t-(+new Date-this._startTime)))}this.tickworker.postMessage("stop"),this.tickworker.terminate();const e=await this.recorder.stop(t);if(this.recorder=null,this.recording=!1,this.inputNode.recording){const{tempVideoPath:n}=await this.inputNode.stopRecord(t.compressed);e.cameraVideoPath=n}return e}async getVideoInfo(t){return new Promise(((e,n)=>{wx.getVideoInfo({src:t,success:t=>{e(t)},fail:()=>{n({errMsg:"get video info fail"})}})}))}async takePhoto(t=!1){return new Promise((e=>{this.takePhotoPromises.push(e),t&&this.render()}))}_takePhoto(){const t=this.takePhotoPromises.shift();if(t){const c=this.cacheImage||this._renderer.getPixels(),{data:l,width:u,height:h}=c;for(var e=new Uint8ClampedArray(this.typedArrayToBuffer(l)),n=h/2|0,r=4*u,i=new Uint8ClampedArray(4*u),o=0;o<n;++o){var a=o*r,s=(h-o-1)*r;i.set(e.subarray(a,a+r)),e.copyWithin(a,s,s+r),e.set(i,s)}t({uint8ArrayData:e,width:u,height:h})}}typedArrayToBuffer(t){return t.buffer.slice(t.byteOffset,t.byteLength+t.byteOffset)}start(){h.vB.shared.start()}stop(){h.vB.shared.stop()}toggleOccluder(){this._renderer.app3d.toggleOccluder()}destroy(t=!0){this._a.had=void 0,this._destroyed=!0,(0,r.SZ)(),this._renderFunc&&h.vB.shared.remove(this._renderFunc),this._detector&&this._detector.destroy(),this._renderer&&this._renderer.destroy(),this._input&&this._input.destroy(),this.inputNode&&this.inputNode.destroy(),this.outputRenderer&&(this.outputRenderer.destroy(),this.renderSprite&&this.renderSprite.destroy(!0)),this.outputCanvas&&(this.outputCanvas=null),t&&async function(){wx.createCanvas=null;for(let t in h.P6.kN){const e=h.P6.kN[t];h.xE.removeFromCache(e),e.destroy(!0)}(0,Y.UI)(),new A.e({}).clearCache(),h.Ep(),h.vB.shared.stop()}()}static getRealSize(t=720){t=t||720;const{platform:e,pixelRatio:n}=p,r=x(),i=16/9;let o=Math.round(t*i);const a={width:"0",height:"0",showWidth:0,showHeight:0,realWidth:0,realHeight:0};function s(t,e=2){const r=Math.round(t*n);return r%e!=0?s(t-1,e):[t,r]}if("ios"===e)t=t%2?t-1:t,o=o%2?o-1:o,a.showWidth=a.realWidth=r?o:t,a.showHeight=a.realHeight=r?t:o;else{const e=Math.round(t/n),i=Math.round(o/n);[a.showWidth,a.realWidth]=s(r?i:e,4),[a.showHeight,a.realHeight]=s(r?e:i)}return a.width=a.showWidth+"px",a.height=a.showHeight+"px",a.ratio=r?.5625:i,a}checkPusherSize(t,e){const n=x();if(!n&&t>720)throw new Error(`live-pusher width cannot be greater than 720px,currently is ${t}px`);if(n&&e>720)throw new Error(`live-pusher height cannot be greater than 720px,currently is ${e}px`);if(g){if(t%4!=0||e%2!=0)throw new Error("live-pusher width or height is not support. please use Arsdk.getRealSize")}else if(t%2!=0||e%2!=0)throw new Error("live-pusher width or height cannot is not support. please use Arsdk.getRealSize")}transcodeLive(){this.input_type===ot&&this.inputNode?.generatePusherData()}changeLiveFps(t){if("high"!==t||"low"!==t)throw new Error("fps must be set to low or high");this._options.live.fps=t}}async function lt(t){return new Promise((async e=>{const n=await async function(){return new Promise(((t,e)=>{wx.getSetting({success:e=>{t(e.authSetting)},fail:()=>{e()}})}))}();if(n[t])return e(!0);wx.authorize({scope:t,success(){e(!0)},fail(){e(!1)}})}))}async function ut(){let t,e;t=await lt("scope.record"),e=await lt("scope.camera"),t&&e||await async function(){return new Promise(((t,e)=>{wx.showModal({content:f.Z.t("0002"),confirmText:f.Z.t("0003"),showCancel:!1,success:e=>{e.confirm?wx.openSetting({success:e=>{console.log("wx setting auth",e),ut().then((()=>{t()}))},fail:()=>{t()}}):e.cancel&&t()}})}))}()}var ht=n(885),ft=n(1730)},3553:(t,e,n)=>{n.d(e,{Z:()=>a});var r=n(401),i=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},o=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};const a=new(function(){function t(){this.data=new Map,this.set("common-v3",{Url:(0,r.xb)()})}return t.prototype.set=function(t,e){this.data.set(t,e)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.has=function(t){return this.data.has(t)},t.prototype.remove=function(t){this.data.delete(t)},t.prototype.clear=function(){this.data.clear()},t.prototype.findId=function(t){var e,n;try{for(var r=i(this.data),a=r.next();!a.done;a=r.next()){var s=o(a.value,2),c=s[0];s[1];if(this.data.get(c).Url===t)return c}}catch(t){e={error:t}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return null},t}())},3849:(t,e,n)=>{n.d(e,{t:()=>s});var r,i=n(6878),o=n(6109),a=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),s=function(t){function e(){var e=t.call(this)||this;return e._options={},e._hairColor={r:56,g:0,b:100},e}return a(e,t),Object.defineProperty(e.prototype,"options",{get:function(){return this._options},enumerable:!1,configurable:!0}),e.prototype.getOptions=function(){return this._options},e.prototype.setOptions=function(t){void 0!==t.mirror&&t.mirror!==this._options.mirror&&(o.bH.log("mirrorchange",t.mirror),this.trigger("mirrorChange",{mirror:t.mirror})),this._options=t},Object.defineProperty(e.prototype,"hairColor",{get:function(){return this._hairColor},set:function(t){this._hairColor=this.getRGB(t)},enumerable:!1,configurable:!0}),e.prototype.getRGB=function(t){var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null},e.instance=new e,e}(i.Q4)},1077:(t,e,n)=>{n.d(e,{F:()=>R});var r,i=n(1206),o=n(5536),a=n(3120),s=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))},l=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},u=function(t){function e(e){var n=t.call(this)||this;return n._options=e,n}return s(e,t),e.prototype.getFilterInstance=function(t){return c(this,void 0,Promise,(function(){var e,n=this;return l(this,(function(r){switch(r.label){case 0:return[4,this.init()];case 1:return e=r.sent(),[2,this.loadImage(e).then((function(e){return e[a.RY].baseTexture.scaleMode=i.aH.LINEAR,e[a.RY].baseTexture.mipmap=i.KI.OFF,new o.f("lutSkin",n._options,{uniforms:{lut:e[a.RY],lutSize:[512,512],intensity:t}})}))]}}))}))},e}(a.KI),h=n(617);const f="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 }";var d=n(401),p=n(6109),g=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),m=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))},y=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},v=function(){function t(t){this._options=t}return Object.defineProperty(t.prototype,"uniforms",{set:function(t){for(var e in t)this._filter.uniforms[e]=t[e]},enumerable:!1,configurable:!0}),t.prototype.applyTo=function(t){t.filters||(t.filters=[]),t.filters.indexOf(this._filter)>-1||(t.filters.push(this._filter),this._container=t)},t.prototype.removeFrom=function(t){if(t.filters&&-1!==t.filters.indexOf(this._filter)){var e=t.filters.indexOf(this._filter);t.filters.splice(e,1),this._container=null}},t.prototype.resize=function(t,e){this._filter&&this._filter.resize(t,e)},t}(),_=function(t){function e(e,n){var r=t.call(this,n)||this;return r.intensity=e,r}return g(e,t),Object.defineProperty(e.prototype,"intensity",{get:function(){return this._intensity},set:function(t){this._intensity=t,this._filter&&(this._filter.uniforms.intensity=t<.01?0:t)},enumerable:!1,configurable:!0}),e.prototype.init=function(){return m(this,void 0,Promise,(function(){var t;return y(this,(function(e){switch(e.label){case 0:return[4,new u(this._options).getFilterInstance(this.intensity)];case 1:return t=e.sent(),this._filter=t,t.uniforms.intensity=this._intensity<.01?0:this._intensity,[2]}}))}))},e}(v),b=function(t){function e(e,n){var r=t.call(this,n)||this,a=r._options,s=a.width,c=a.height,l=new i.jd({width:s,height:c});return r.renderTexture=new i.TI(l),r._filter=new o.f("dermabrasion",n,{uniforms:{intensity:e<.01?0:e,faceMask:r.renderTexture,enable:1}}),r.intensity=e,r}return g(e,t),Object.defineProperty(e.prototype,"renderer",{get:function(){return this._renderer},set:function(t){this._renderer=t},enumerable:!1,configurable:!0}),e.prototype.render=function(){if(this.geometry){if(!this.faceMesh){var t={mask:i.P6.kN[a.L4],intensity:1},e=i.ex.from(f,"precision mediump float;\nvarying vec2 vUvs;\nuniform sampler2D mask;\nuniform float intensity;\n\nvoid main() {\n vec4 color = texture2D(mask, vUvs);\n color = vec4(color.rgb, color.a) * intensity;\n gl_FragColor = color;\n}",t);this.faceMesh=new i.Kj(this.geometry,e)}this.renderer&&this.renderer.render(this.faceMesh,{renderTexture:this.renderTexture})}},e.prototype.applyTo=function(e){t.prototype.applyTo.call(this,e)},Object.defineProperty(e.prototype,"intensity",{get:function(){return this._intensity},set:function(t){this._intensity=t,this._intensity=.7*t,this._filter&&(this._filter.uniforms.intensity=this._intensity<.01?0:this._intensity)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"enable",{set:function(t){this._filter.uniforms.enable=t?1:0},enumerable:!1,configurable:!0}),e}(v),x=function(t){function e(e,n,r){var a=t.call(this,r)||this,s=a._options,c=s.width,l=s.height,u=new i.jd({width:c,height:l});return a.renderTexture=new i.TI(u),a._filter=new o.f("partialDermabrasion",r,{uniforms:{intensity:1,faceMask:a.renderTexture}}),a.intensityDarkCircle=e,a.intensityNasolabialFolds=n,a}return g(e,t),Object.defineProperty(e.prototype,"intensityDarkCircle",{get:function(){return this._intensityDarkCircle},set:function(t){this._intensityDarkCircle=t,this._shader&&(this._shader.uniforms.intensityDarkCircle=t<.01?0:t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"intensityNasolabialFolds",{get:function(){return this._intensityNasolabialFolds},set:function(t){this._intensityNasolabialFolds=t,this._shader&&(this._shader.uniforms.intensityNasolabialFolds=t<.01?0:t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderer",{get:function(){return this._renderer},set:function(t){this._renderer=t},enumerable:!1,configurable:!0}),e.prototype.render=function(){if(this.geometry){if(!this.faceMesh){var t={falingwen:i.P6.kN[a.F7],heiyanquan:i.P6.kN[a.B3],intensityDarkCircle:this.intensityDarkCircle,intensityNasolabialFolds:this.intensityNasolabialFolds},e=i.ex.from(f,"precision mediump float;\nvarying vec2 vUvs;\nuniform sampler2D falingwen;\nuniform sampler2D heiyanquan;\nuniform float intensityNasolabialFolds;\nuniform float intensityDarkCircle;\n\nvoid main() {\n vec4 color = texture2D(falingwen, vUvs) * intensityNasolabialFolds + texture2D(heiyanquan, vUvs) * intensityDarkCircle;\n \n gl_FragColor = vec4(color.a, 0.,0.,1.);\n}",t);this._shader=e,this.faceMesh=new i.Kj(this.geometry,e)}this.renderer&&this.renderer.render(this.faceMesh,{renderTexture:this.renderTexture})}},e}(v),w=function(t){function e(e,n){var r=t.call(this,n)||this;return r._filter=new o.f("usm",n,{intensity:e}),r.intensity=e,r}return g(e,t),Object.defineProperty(e.prototype,"intensity",{get:function(){return this._intensity},set:function(t){this._intensity=t,this._filter.uniforms.intensity=t<.01?0:t},enumerable:!1,configurable:!0}),e}(v),T=["left_eye_center","right_eye_center","nose_tip","contour_chin","nose_bridge5","contour_left4","contour_left9","contour_right4","contour_right9","contour_left10","contour_right10","mouth_lower_lip_bottom","nose_tip1","nose_bottom","nose_left1","nose_left2","nose_right1","nose_right2","lip_top_left","lip_top_right","lip_bottom_left","lip_bottom_right","lip_top_left_target","lip_top_right_target","lip_bottom_left_target","lip_bottom_right_target","lip_top_center","lip_top_center_target","lip_bottom_center","lip_bottom_center_target","lip_inner_top","lip_inner_bottom","forehead_top_center","eyebrow_center","forehead_left","left_eyebrow_center","forehead_right","right_eyebrow_center","right_eye_top","left_eye_top","right_eye_bottom","left_eye_bottom","contour_left3","contour_right3","nose_bridge6","nose_bridge4","nose_bridge3","nose_bridge2","nose_bridge1","chin_left","chin_right"],C=function(t){function e(e,n){var r=t.call(this,e)||this;return r._enable=0,r.intensities=n,r._keymap=(new h.M).getDataConfig(d.c4.POINTS_MAP),r}return g(e,t),Object.defineProperty(e.prototype,"landmarks",{set:function(t){if(t.length){var e=T,n=this._getCartesianPointsByKeys(t,e);this._keypoints={};for(var r=0;r<e.length;r++){var i=e[r];this._keypoints[i]=n[r]}this._updateFilter(this._keypoints)}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"intensities",{set:function(t){t.enable=this._enable?t.enable:this._enable,this._updateFilter(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"enable",{set:function(t){var e=t?1:0;this._enable!==e&&(this._enable=e,this._updateFilter({enable:this._enable}))},enumerable:!1,configurable:!0}),e.prototype._updateFilter=function(t){if(!this._filter){var e={};T.forEach((function(t){e[t]=[0,0]})),e.enable=this._enable,this._filter=new o.f("faceReshape",this._options,{uniforms:e})}for(var n in t)this._filter.uniforms[n]=t[n]||0},e.prototype._getCartesianPointsByKeys=function(t,e){var n=this._keymap,r=[];return e.forEach((function(e){try{var i=t[n[e]],o={x:i.x,y:i.y};r.push([o.x,o.y])}catch(t){p.kg.error("err",e,n[e],t)}})),r},e}(v),S=function(){function t(t,e,n){this._beautify={whiten:0,dermabrasion:0,eyeWhiten:0,teethWhiten:0,darkCircle:0,nasolabialFolds:0,lift:0,shave:0,cheekbone:0,head:0,eyeBrightness:0,lip:0,forehead:0,nose:0,eye:0,chin:0,usm:0},this._detected=!1,this.id=t,this._target=e,this._options=n}return Object.defineProperty(t.prototype,"detected",{get:function(){return this._detected},set:function(t){if(this._detected!==t){if(this._detected=t,this._reshape){var e=this._beautify;this._reshape.intensities={lift:e.lift,shave:e.shave,cheekbone:e.cheekbone,head:e.head,eyeBrightness:e.eyeBrightness,lip:e.lip,forehead:e.forehead,nose:e.nose,eye:e.eye,chin:e.chin,darkCircle:e.darkCircle,nasolabialFolds:e.nasolabialFolds,enable:e.lift||e.shave||e.darkCircle||e.nasolabialFolds||e.cheekbone||e.head||e.eyeBrightness||e.lip||e.forehead||e.eye||e.chin||e.nose?1:0}}this._dermabrasion&&(this._dermabrasion.enable=t)}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"beautify",{set:function(t){this._beautify=Object.assign(this._beautify,t);var e=this._beautify,n=e.whiten,r=e.dermabrasion,i=(e.eyeWhiten,e.teethWhiten,e.darkCircle),o=e.nasolabialFolds,a=e.lift,s=e.shave,c=e.cheekbone,l=e.head,u=e.eyeBrightness,h=e.lip,f=e.forehead,d=e.nose,p=e.eye,g=e.chin,m=e.usm;this._whiten&&(this._whiten.intensity=n),this._dermabrasion&&(this._dermabrasion.intensity=r),this._partialDermabrasion&&(this._partialDermabrasion.intensityDarkCircle=i,this._partialDermabrasion.intensityNasolabialFolds=o),this._usm&&(this._usm.intensity=m),this._reshape&&(this._reshape.intensities={lift:a,shave:s,cheekbone:c,head:l,eyeBrightness:u,lip:h,forehead:f,nose:d,eye:p,chin:g,darkCircle:i,nasolabialFolds:o,enable:a||s||c||l||u||h||f||p||g||o||o||d?1:0})},enumerable:!1,configurable:!0}),t.prototype.load=function(){return m(this,void 0,Promise,(function(){var t,e,n,r,i,o,a=this;return y(this,(function(s){switch(s.label){case 0:return this.loaded?[2]:(this.loaded=!0,this._config?[3,2]:(this._config=new h.M,[4,this._config.load()]));case 1:s.sent(),s.label=2;case 2:return t=Object.assign(this._beautify),e=void 0!==t.whiten&&null!==t.whiten?t.whiten:d.em,this._whiten=new _(e,this._options),n=void 0!==t.dermabrasion&&null!==t.dermabrasion?t.dermabrasion:d.Ss,this._dermabrasion=new b(n,this._options),r=void 0!==t.darkCircle&&null!==t.darkCircle?t.darkCircle:0,i=void 0!==t.nasolabialFolds&&null!==t.nasolabialFolds?t.nasolabialFolds:0,this._partialDermabrasion=new x(r,i,this._options),void 0!==t.eyeWhiten&&null!==t.eyeWhiten?t.eyeWhiten:0,void 0!==t.teethWhiten&&null!==t.teethWhiten?t.teethWhiten:0,this._usm=new w(t.usm||0,this._options),o={lift:t.lift,shave:t.shave,cheekbone:t.cheekbone,head:t.head,eyeBrightness:t.eyeBrightness,lip:t.lip,forehead:t.forehead,nose:t.nose,darkCircle:t.darkCircle,nasolabialFolds:t.nasolabialFolds,eye:t.eye,chin:t.chin,enable:t.lift||t.shave||t.darkCircle||t.nasolabialFolds||t.cheekbone||t.head||t.eyeBrightness||t.lip||t.forehead||t.nose||t.eye||t.chin?1:0},this._reshape=new C(this._options,o),[2,this._whiten.init().then((function(){a.apply()}))]}}))}))},t.prototype.setReshapeMarks=function(t){t&&t.length?this._reshape&&(this._reshape.landmarks=t,this._reshape.enable=!0):this._reshape.enable=!1},t.prototype.setMesh=function(t){if(t&&t.length){if(!this.geometry){var e=this._config.getDataConfig(26),n=(new i.wG).addAttribute("aVertexPosition",t).addAttribute("aUvs",e);this.geometry=n}this.geometry.getBuffer("aVertexPosition").update(t),this._dermabrasion&&(this._dermabrasion.geometry=this.geometry,this._partialDermabrasion.geometry=this.geometry,this._dermabrasion.render(),this._partialDermabrasion.render())}},t.prototype.setRenderer=function(t){var e,n=this,r=function(){n._dermabrasion&&n._partialDermabrasion?(n._dermabrasion.renderer=t,n._partialDermabrasion.renderer=t,clearTimeout(e)):e=setTimeout(r,30)};r()},t.prototype.resize=function(t,e){this._whiten&&this._whiten.resize(t,e),this._dermabrasion&&this._dermabrasion.resize(t,e),this._partialDermabrasion&&this._partialDermabrasion.resize(t,e),this._reshape&&this._reshape.resize(t,e),this._usm&&this._usm.resize(t,e)},t.prototype.remove=function(){this._active&&(this._whiten&&this._whiten.removeFrom(this._target),this._dermabrasion&&this._dermabrasion.removeFrom(this._target),this._partialDermabrasion&&this._partialDermabrasion.removeFrom(this._target),this._reshape&&this._reshape.removeFrom(this._target),this._usm&&this._usm.removeFrom(this._target),this._active=!1)},t.prototype.apply=function(){this._active||(this._whiten&&this._whiten.applyTo(this._target),this._dermabrasion&&this._dermabrasion.applyTo(this._target),this._partialDermabrasion&&this._partialDermabrasion.applyTo(this._target),this._reshape&&this._reshape.applyTo(this._target),this._usm&&this._usm.applyTo(this._target),this._active=!0)},t.prototype.destroy=function(){this.remove(),this._whiten=null,this._dermabrasion=null,this._partialDermabrasion=null,this._reshape=null},t}(),k=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))},E=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},P=(0,p.jl)("beautify-controller"),R=function(){function t(t){this._beautifies={},this._detected=!1,this._options=t}return Object.defineProperty(t.prototype,"renderer",{get:function(){return this._renderer},set:function(t){this._renderer=t,this.setRenderer()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"detected",{get:function(){return this._detected},set:function(t){for(var e in this._detected=t,this._beautifies){this._beautifies[e].detected=t}},enumerable:!1,configurable:!0}),t.prototype.updateBeauty=function(t,e){var n=this._beautifies[t];P.info("updateBeauty",n,e),n?this.setBeauty(t,e):this.addBeauty(t,e)},t.prototype.setBeauty=function(t,e){void 0===t&&(t="default");var n=this._beautifies[t];n&&(n.beautify=e)},t.prototype.addBeauty=function(t,e){void 0===t&&(t="default"),void 0===e&&(e={}),P.info("addBeauty",t);var n=new S(t,this._target,this._options);n.detected=this.detected,e&&(n.beautify=e),this._beautifies[t]&&this.removeBeauty(t),n.loaded||(n.load(),n.setRenderer(this.renderer)),this._beautifies[t]=n},t.prototype.addBeautyAsync=function(t,e){return void 0===t&&(t="default"),void 0===e&&(e={}),k(this,void 0,void 0,(function(){var n,r;return E(this,(function(i){switch(i.label){case 0:return n=+new Date,P.info("addBeautyAsync",t,this._options),(r=new S(t,this._target,this._options)).detected=this.detected,e&&(r.beautify=e),[4,r.load()];case 1:return i.sent(),r.setRenderer(this.renderer),this._beautifies[t]&&this.removeBeauty(t),this._beautifies[t]=r,P.info("log::::input node addBeautyAsync finish",+new Date-n),[2]}}))}))},t.prototype.enable=function(){for(var t in this._beautifies)this._beautifies[t].apply()},t.prototype.disable=function(){for(var t in this._beautifies)P.info("disable beautify",t),this._beautifies[t].remove()},t.prototype.resize=function(t,e){for(var n in this._beautifies)this._beautifies[n].resize(t,e)},t.prototype.removeBeauty=function(t){this._beautifies[t].destroy(),delete this._beautifies[t]},t.prototype.removeEffectBeauties=function(){for(var t in this._beautifies)"default"!==t&&this.removeBeauty(t)},t.prototype.setReshapeMarks=function(t){for(var e in this._beautifies)this._beautifies[e].setReshapeMarks(t)},t.prototype.setMesh=function(t){for(var e in this._beautifies)this._beautifies[e].setMesh(t)},t.prototype.setRenderer=function(){for(var t in this._beautifies)this._beautifies[t].setRenderer(this.renderer)},t}()},5156:(t,e,n)=>{n.d(e,{Z:()=>a});var r,i=n(1206),o=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const a=function(t){function e(e){var n=t.call(this)||this;n.degreeStart=-90,n.degreeEnd=270,n.stepStart=14,n.stepEnd=2,n.isVisible=!1;var r;return r=wx.getSystemInfoSync().pixelRatio,n.size=(e.size||100)*r,n.radius=n.size/2,n.lineWidth=(e.lineWidth||8)*r,n.strokeStyle=e.strokeColor||4286945,n.queue={},n.graphics=new i.TC,n.graphics.scale.set(1/r,1/r),n.addChild(n.graphics),n._draw=n.draw.bind(n),n}return o(e,t),e.prototype.draw=function(){this.degreeStart=this.degreeStart+this.stepStart,this.degreeEnd=this.degreeEnd+this.stepEnd,this.degreeStart-360>this.degreeEnd&&(this.degreeStart-=720);var t=this.graphics;t.clear(),t.lineStyle(this.lineWidth,this.strokeStyle),t.arc(0,0,this.radius-this.lineWidth/2,(this.degreeStart<this.degreeEnd?this.degreeStart:this.degreeEnd)*Math.PI/180,(this.degreeStart<this.degreeEnd?this.degreeEnd:this.degreeStart)*Math.PI/180)},e.prototype.addTicker=function(){i.vB.shared.add(this._draw)},e.prototype.removeTicker=function(){i.vB.shared.remove(this._draw)},e.prototype.show=function(t){t&&(this.queue[t]=1),this.isVisible||(clearTimeout(this.t),this.graphics.visible=!0,this.draw(),this.addTicker(),this.isVisible=!0)},e.prototype.hide=function(t){if(t){this.queue[t]=void 0;var e=!0;for(var n in this.queue)this.queue[n]&&(e=!1);e&&this._hide()}else this._hide()},e.prototype._hide=function(){this.t&&clearTimeout(this.t),this.graphics.visible=!1,this.removeTicker(),this.isVisible=!1},e.prototype.destroy=function(){this._hide(),this.graphics.destroy(!0)},e}(i.W2)},3120:(t,e,n)=>{n.d(e,{B3:()=>h,F7:()=>u,KI:()=>p,L4:()=>c,RY:()=>f,X_:()=>d});var r=n(1206),i=n(3044),o=n(401),a=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))},s=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},c="face.png",l="eye.png",u="falingwen.png",h="heiyanquan.png",f="whiten.png",d="lips-mask-wx2.png",p=function(){function t(){}return t.prototype.init=function(){return a(this,void 0,Promise,(function(){var t;return s(this,(function(e){switch(e.label){case 0:return[4,(t=new i.pF).init()];case 1:return e.sent(),[4,t.preload((0,o.xb)())];case 2:return e.sent(),[2,t.getIndeLoader()]}}))}))},t.prototype.loadImage=function(t){return a(this,void 0,Promise,(function(){return s(this,(function(e){return[2,new Promise((function(e,n){var i={};if(r.P6.kN[f]&&r.P6.kN[d]&&r.P6.kN[c]&&r.P6.kN[l]&&r.P6.kN[u]&&r.P6.kN[h])return i[f]=r.P6.kN[f],i[d]=r.P6.kN[d],i[c]=r.P6.kN[c],i[l]=r.P6.kN[l],i[u]=r.P6.kN[u],i[h]=r.P6.kN[h],e(i);t.add(f),t.add(d),t.add(c),t.add(l),t.add(u),t.add(h),t.load((function(t,n){return i[f]=r.P6.kN[f],i[d]=r.P6.kN[d],i[c]=r.P6.kN[c],i[l]=r.P6.kN[l],i[u]=r.P6.kN[u],i[h]=r.P6.kN[h],e(i)}))}))]}))}))},t}()},5536:(t,e,n)=>{n.d(e,{f:()=>s});var r=n(1206);var i,o=(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a={mirror:{fragment:"\nuniform sampler2D uSampler;\nvarying vec2 vTextureCoord;\n\nvoid main() {\n vec2 p = vTextureCoord;\n p.x = 1.0 - p.x;\n vec4 color = texture2D(uSampler, p);\n gl_FragColor = color;\n}\n"},mirrorVertical:{fragment:"\nuniform sampler2D uSampler;\nvarying vec2 vTextureCoord;\n\nvoid main() {\n vec2 p = vTextureCoord;\n p.y = 1.0 - p.y;\n vec4 color = texture2D(uSampler, p);\n gl_FragColor = color;\n}\n"},lut:{fragment:"\nvarying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform sampler2D lut;\nuniform lowp float intensity;\nuniform lowp float parentIntensity;\n\nvoid main() {\n vec4 color = texture2D(uSampler, vTextureCoord.xy);\n\n highp float blueColor = color.b * 63.0;\n \n //向下取值\n highp vec2 quad1;\n quad1.y = floor(floor(blueColor) / 8.0); \n quad1.x = floor(blueColor) - (quad1.y * 8.0);\n \n //向上取值\n highp vec2 quad2;\n quad2.y = floor(ceil(blueColor) / 8.0); \n quad2.x = ceil(blueColor) - (quad2.y * 8.0);\n \n //根据小正方形格子和RG通道,获取纹理坐标,每个大格子的大小:1/8=0.125,每个小格子的大小:1/512\n highp vec2 texPos1;\n texPos1.x = (quad1.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.r);\n texPos1.y = (quad1.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.g);\n \n highp vec2 texPos2;\n texPos2.x = (quad2.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.r);\n texPos2.y = (quad2.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.g);\n \n lowp vec4 newColor1 = texture2D(lut, texPos1);\n lowp vec4 newColor2 = texture2D(lut, texPos2);\n \n lowp vec3 newColor = mix(newColor1.rgb, newColor2.rgb, fract(blueColor));\n\n vec3 textureColor = mix(color.rgb, newColor, intensity * parentIntensity * 1.0);\n\n gl_FragColor = vec4(textureColor, 1.0);\n}\n"},lutSkin:{fragment:"precision mediump float;\n#define dimension 64.0\nuniform sampler2D uSampler; // 底图\nvarying vec2 vTextureCoord;\n\nuniform sampler2D lut; // lut 图\nuniform float intensity; // 强度\nuniform vec2 lutSize; // lut 尺寸\nvoid main() {\n vec4 color = texture2D(uSampler, vTextureCoord);\n float row = floor(sqrt(dimension) + 0.5);\n float blueColor = color.b * (dimension - 1.0);\n vec2 quad1;\n quad1.y = floor(floor(blueColor) / row);\n quad1.x = floor(blueColor) - (quad1.y * row);\n vec2 quad2;\n quad2.y = floor(ceil(blueColor) / row);\n quad2.x = ceil(blueColor) - (quad2.y * row);;\n vec2 texPos1;\n texPos1.x = (quad1.x * (1.0/row)) + 0.5/lutSize.x + ((1.0/row - 1.0/lutSize.x) * color.r);\n texPos1.y = (quad1.y * (1.0/row)) + 0.5/lutSize.y + ((1.0/row - 1.0/lutSize.y) * color.g);\n vec2 texPos2;\n texPos2.x = (quad2.x * (1.0/row)) + 0.5/lutSize.x + ((1.0/row - 1.0/lutSize.x) * color.r);\n texPos2.y = (quad2.y * (1.0/row)) + 0.5/lutSize.y + ((1.0/row - 1.0/lutSize.y) * color.g);\n vec4 newColor1 = texture2D(lut, texPos1);\n vec4 newColor2 = texture2D(lut, texPos2);\n vec4 newColor = mix(newColor1, newColor2, fract(blueColor));\n vec4 finalColor = mix(color, vec4(newColor.rgb, color.a), intensity);\n gl_FragColor = finalColor;\n}\n"},partialLutSkin:{fragment:"precision mediump float;\nvarying highp vec2 vTextureCoord;\n\nuniform sampler2D uSampler; // 图像texture\nuniform sampler2D grayTexture; // 灰度查找表\nuniform sampler2D lookupTexture; // LUT\n\nuniform highp float levelRangeInv; // 范围\nuniform lowp float levelBlack; // 灰度level \n// uniform lowp float intensity; // 肤色程度 \nuniform sampler2D faceMask;\n\nvoid main() {\n float mask = texture2D(faceMask, vTextureCoord).a;\n lowp vec3 textureColor = texture2D(uSampler, vTextureCoord).rgb;\n\n \n // if (mask == 0.) {\n // gl_FragColor = vec4(textureColor, 1.0); \n // return;\n // };\n \n\n textureColor = clamp((textureColor - vec3(levelBlack, levelBlack, levelBlack)) * levelRangeInv, 0.0, 1.0);\n textureColor.r = texture2D(grayTexture, vec2(textureColor.r, 0.5)).r;\n textureColor.g = texture2D(grayTexture, vec2(textureColor.g, 0.5)).g;\n textureColor.b = texture2D(grayTexture, vec2(textureColor.b, 0.5)).b;\n\n mediump float blueColor = textureColor.b * 15.0;\n\n mediump vec2 quad1;\n quad1.y = floor(blueColor / 4.0);\n quad1.x = floor(blueColor) - (quad1.y * 4.0);\n\n mediump vec2 quad2;\n quad2.y = floor(ceil(blueColor) / 4.0);\n quad2.x = ceil(blueColor) - (quad2.y * 4.0);\n\n highp vec2 texPos1;\n texPos1.x = (quad1.x * 0.25) + 0.5 / 64.0 + ((0.25 - 1.0 / 64.0) * textureColor.r);\n texPos1.y = (quad1.y * 0.25) + 0.5 / 64.0 + ((0.25 - 1.0 / 64.0) * textureColor.g);\n\n highp vec2 texPos2;\n texPos2.x = (quad2.x * 0.25) + 0.5 / 64.0 + ((0.25 - 1.0 / 64.0) * textureColor.r);\n texPos2.y = (quad2.y * 0.25) + 0.5 / 64.0 + ((0.25 - 1.0 / 64.0) * textureColor.g);\n\n lowp vec4 newColor1 = texture2D(lookupTexture, texPos1);\n lowp vec4 newColor2 = texture2D(lookupTexture, texPos2);\n\n lowp vec3 newColor = mix(newColor1.rgb, newColor2.rgb, fract(blueColor));\n\n // textureColor = mix(textureColor, newColor, 1.0);\n textureColor = mix(textureColor, newColor, mask);\n\n gl_FragColor = vec4(textureColor, 1.0); \n}\n"},dermabrasion:{fragment:"precision lowp float;\nuniform sampler2D uSampler;\nvarying lowp vec2 vTextureCoord;\n\nuniform int width;\nuniform int height;\n\nuniform float intensity;\n\nvoid main() {\n vec3 centralColor;\n\n centralColor = texture2D(uSampler, vTextureCoord).rgb;\n \n // if(intensity < 0.01) {\n // gl_FragColor = vec4(centralColor, 1.0);\n // return;\n // }\n float x_a = float(width);\n float y_a = float(height);\n\n float mul_x = 2.0 / x_a;\n float mul_y = 2.0 / y_a;\n vec2 blurCoordinates0 = vTextureCoord + vec2(0.0 * mul_x, -10.0 * mul_y);\n vec2 blurCoordinates2 = vTextureCoord + vec2(8.0 * mul_x, -5.0 * mul_y);\n vec2 blurCoordinates4 = vTextureCoord + vec2(8.0 * mul_x, 5.0 * mul_y);\n vec2 blurCoordinates6 = vTextureCoord + vec2(0.0 * mul_x, 10.0 * mul_y);\n vec2 blurCoordinates8 = vTextureCoord + vec2(-8.0 * mul_x, 5.0 * mul_y);\n vec2 blurCoordinates10 = vTextureCoord + vec2(-8.0 * mul_x, -5.0 * mul_y);\n\n mul_x = 1.8 / x_a;\n mul_y = 1.8 / y_a;\n vec2 blurCoordinates1 = vTextureCoord + vec2(5.0 * mul_x, -8.0 * mul_y);\n vec2 blurCoordinates3 = vTextureCoord + vec2(10.0 * mul_x, 0.0 * mul_y);\n vec2 blurCoordinates5 = vTextureCoord + vec2(5.0 * mul_x, 8.0 * mul_y);\n vec2 blurCoordinates7 = vTextureCoord + vec2(-5.0 * mul_x, 8.0 * mul_y);\n vec2 blurCoordinates9 = vTextureCoord + vec2(-10.0 * mul_x, 0.0 * mul_y);\n vec2 blurCoordinates11 = vTextureCoord + vec2(-5.0 * mul_x, -8.0 * mul_y);\n\n mul_x = 1.6 / x_a;\n mul_y = 1.6 / y_a;\n vec2 blurCoordinates12 = vTextureCoord + vec2(0.0 * mul_x,-6.0 * mul_y);\n vec2 blurCoordinates14 = vTextureCoord + vec2(-6.0 * mul_x,0.0 * mul_y);\n // vec2 blurCoordinates16 = vTextureCoord + vec2(0.0 * mul_x,6.0 * mul_y);\n // vec2 blurCoordinates18 = vTextureCoord + vec2(6.0 * mul_x,0.0 * mul_y);\n\n mul_x = 1.4 / x_a;\n mul_y = 1.4 / y_a;\n vec2 blurCoordinates13 = vTextureCoord + vec2(-4.0 * mul_x,-4.0 * mul_y);\n vec2 blurCoordinates15 = vTextureCoord + vec2(-4.0 * mul_x,4.0 * mul_y);\n // vec2 blurCoordinates17 = vTextureCoord + vec2(4.0 * mul_x,4.0 * mul_y);\n // vec2 blurCoordinates19 = vTextureCoord + vec2(4.0 * mul_x,-4.0 * mul_y);\n\n float central;\n float gaussianWeightTotal;\n float sum;\n float sampler;\n float distanceFromCentralColor;\n float gaussianWeight;\n\n float distanceNormalizationFactor = 3.6;\n\n central = texture2D(uSampler, vTextureCoord).g;\n gaussianWeightTotal = 0.2;\n sum = central * 0.2;\n\n sampler = texture2D(uSampler, blurCoordinates0).g;\n distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);\n gaussianWeight = 0.09 * (1.0 - distanceFromCentralColor);\n gaussianWeightTotal += gaussianWeight;\n sum += sampler * gaussianWeight;\n\n sampler = texture2D(uSampler, blurCoordinates1).g;\n distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);\n gaussianWeight = 0.09 * (1.0 - distanceFromCentralColor);\n gaussianWeightTotal += gaussianWeight;\n sum += sampler * gaussianWeight;\n\n sampler = texture2D(uSampler, blurCoordinates2).g;\n distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);\n gaussianWeight = 0.09 * (1.0 - distanceFromCentralColor);\n gaussianWeightTotal += gaussianWeight;\n sum += sampler * gaussianWeight;\n\n sampler = texture2D(uSampler, blurCoordinates3).g;\n distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);\n gaussianWeight = 0.09 * (1.0 - distanceFromCentralColor);\n gaussianWeightTotal += gaussianWeight;\n sum += sampler * gaussianWeight;\n\n sampler = texture2D(uSampler, blurCoordinates4).g;\n distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);\n gaussianWeight = 0.09 * (1.0 - distanceFromCentralColor);\n gaussianWeightTotal += gaussianWeight;\n sum += sampler * gaussianWeight;\n\n sampler = texture2D(uSampler, blurCoordinates5).g;\n distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);\n gaussianWeight = 0.09 * (1.0 - distanceFromCentralColor);\n gaussianWeightTotal += gaussianWeight;\n sum += sampler * gaussianWeight;\n\n sampler = texture2D(uSampler, blurCoordinates6).g;\n distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);\n gaussianWeight = 0.09 * (1.0 - distanceFromCentralColor);\n gaussianWeightTotal += gaussianWeight;\n sum += sampler * gaussianWeight;\n\n sampler = texture2D(uSampler, blurCoordinates7).g;\n distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);\n gaussianWeight = 0.09 * (1.0 - distanceFromCentralColor);\n gaussianWeightTotal += gaussianWeight;\n sum += sampler * gaussianWeight;\n\n sampler = texture2D(uSampler, blurCoordinates8).g;\n distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);\n gaussianWeight = 0.09 * (1.0 - distanceFromCentralColor);\n gaussianWeightTotal += gaussianWeight;\n sum += sampler * gaussianWeight;\n\n sampler = texture2D(uSampler, blurCoordinates9).g;\n distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);\n gaussianWeight = 0.09 * (1.0 - distanceFromCentralColor);\n gaussianWeightTotal += gaussianWeight;\n sum += sampler * gaussianWeight;\n\n sampler = texture2D(uSampler, blurCoordinates10).g;\n distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);\n gaussianWeight = 0.09 * (1.0 - distanceFromCentralColor);\n gaussianWeightTotal += gaussianWeight;\n sum += sampler * gaussianWeight;\n\n sampler = texture2D(uSampler, blurCoordinates11).g;\n distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);\n gaussianWeight = 0.09 * (1.0 - distanceFromCentralColor);\n gaussianWeightTotal += gaussianWeight;\n sum += sampler * gaussianWeight;\n\n sampler = texture2D(uSampler, blurCoordinates12).g;\n distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);\n gaussianWeight = 0.1 * (1.0 - distanceFromCentralColor);\n gaussianWeightTotal += gaussianWeight;\n sum += sampler * gaussianWeight;\n\n sampler = texture2D(uSampler, blurCoordinates13).g;\n distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);\n gaussianWeight = 0.1 * (1.0 - distanceFromCentralColor);\n gaussianWeightTotal += gaussianWeight;\n sum += sampler * gaussianWeight;\n\n sampler = texture2D(uSampler, blurCoordinates14).g;\n distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);\n gaussianWeight = 0.1 * (1.0 - distanceFromCentralColor);\n gaussianWeightTotal += gaussianWeight;\n sum += sampler * gaussianWeight;\n\n sampler = texture2D(uSampler, blurCoordinates15).g;\n distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);\n gaussianWeight = 0.1 * (1.0 - distanceFromCentralColor);\n gaussianWeightTotal += gaussianWeight;\n sum += sampler * gaussianWeight;\n\n // sampler = texture2D(uSampler, blurCoordinates16).g;\n // distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);\n // gaussianWeight = 0.1 * (1.0 - distanceFromCentralColor);\n // gaussianWeightTotal += gaussianWeight;\n // sum += sampler * gaussianWeight;\n\n // sampler = texture2D(uSampler, blurCoordinates17).g;\n // distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);\n // gaussianWeight = 0.1 * (1.0 - distanceFromCentralColor);\n // gaussianWeightTotal += gaussianWeight;\n // sum += sampler * gaussianWeight;\n\n // sampler = texture2D(uSampler, blurCoordinates18).g;\n // distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);\n // gaussianWeight = 0.1 * (1.0 - distanceFromCentralColor);\n // gaussianWeightTotal += gaussianWeight;\n // sum += sampler * gaussianWeight;\n\n // sampler = texture2D(uSampler, blurCoordinates19).g;\n // distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);\n // gaussianWeight = 0.1 * (1.0 - distanceFromCentralColor);\n // gaussianWeightTotal += gaussianWeight;\n // sum += sampler * gaussianWeight;\n\n sum = sum/gaussianWeightTotal;\n\n sampler = centralColor.g - sum + 0.5;\n\n // 高反差保留\n for(int i = 0; i < 5; ++i) {\n sampler = mix(sampler * sampler * 2.0, 1.0 - ((1.0 - sampler)*(1.0 - sampler) * 2.0), step(0.5,sampler));\n // sampler = sampler <= 0.5 ? sampler * sampler * 2.0 : 1.0 - ((1.0 - sampler)*(1.0 - sampler) * 2.0);\n // if(sampler <= 0.5) {\n // sampler = sampler * sampler * 2.0;\n // } else {\n // sampler = 1.0 - ((1.0 - sampler)*(1.0 - sampler) * 2.0);\n // }\n }\n\n float aa = 1.0 + pow(sum, 0.3) * 0.09;\n vec3 smoothColor = centralColor * aa - vec3(sampler) * (aa - 1.0);\n smoothColor = clamp(smoothColor, vec3(0.0), vec3(1.0));\n\n smoothColor = mix(centralColor, smoothColor, pow(centralColor.g, 0.33));\n smoothColor = mix(centralColor, smoothColor, pow(centralColor.g, 0.39));\n\n smoothColor = mix(centralColor, smoothColor, intensity * 1.5);\n\n gl_FragColor = vec4(pow(smoothColor, vec3(0.96)), 1.0);\n \n }"},partialDermabrasion:{fragment:"precision lowp float;\nuniform sampler2D uSampler;\nuniform sampler2D faceMask;\nvarying lowp vec2 vTextureCoord;\n\nuniform int width;\nuniform int height;\n\n// uniform float intensity;\n\nfloat normpdf(in float x, in float sigma)\n{\n\treturn 0.39894*exp(-0.5*x*x/(sigma*sigma))/sigma;\n}\n\nfloat normpdf3(in vec3 v, in float sigma)\n{\n\treturn 0.39894*exp(-0.5*dot(v,v)/(sigma*sigma))/sigma;\n}\n\n\n// 双边滤波\nvec3 bilateral(in vec2 coordinate) {\n const float SIGMA = 16.;\n const float BSIGMA = 9.;\n // const int MSIZE = 5;\n const int mSize = 16;\n\n // float c = getMaskColor(coordinate).a;\n\n vec3 color = texture2D(uSampler, coordinate).rgb;\n const int kSize = (mSize-1)/2;\n float kernel[mSize];\n vec3 final_alpha =vec3(0.);\n float Z = 0.;\n\tfor (int j = 0; j <= kSize; ++j)\n\t{\n\t\tkernel[kSize+j] = kernel[kSize-j] = normpdf(float(j), SIGMA);\n\t}\n\n vec3 cc;\n\tfloat factor;\n\tfloat bZ = 1.0/normpdf(0.0, BSIGMA);\n\n\t//read out the texels\n\tfor (int i=-kSize; i <= kSize; ++i)\n\t{\n\t\tfor (int j=-kSize; j <= kSize; ++j)\n\t\t{\n vec3 ccc = texture2D(uSampler, coordinate + vec2( float(i) / float(width), float(j) / float(height) )).rgb;\n cc = ccc;\n\t\t\tfactor = normpdf3(cc-color, BSIGMA)*bZ*kernel[kSize+j]*kernel[kSize+i];\n\t\t\tZ += factor;\n final_alpha += factor * ccc;\n\t\t}\n\t}\n return final_alpha / Z;\n}\n\nvoid main() {\n float mask = texture2D(faceMask, vTextureCoord).r;\n\n float i = mask;\n vec3 original = texture2D(uSampler, vTextureCoord).rgb;\n\n // gl_FragColor.rgb = original * i;\n // return;\n if (i == 0.) {\n gl_FragColor = vec4(original, 1.0);\n return;\n }\n vec3 color = bilateral(vTextureCoord).rgb;\n \n vec3 res = color * i + original * (1. - i);\n gl_FragColor = vec4(res.rgb, 1.0);\n return;\n \n }"},faceReshape:{fragment:"precision highp float;\nvarying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform int width;\nuniform int height;\nuniform int enable;\n\nuniform vec2 left_eye_center;\nuniform vec2 right_eye_center;\nuniform vec2 nose_tip;\nuniform vec2 contour_chin;\n\nuniform vec2 nose_bridge5;\nuniform vec2 contour_left4;\nuniform vec2 contour_left9;\nuniform vec2 contour_right4;\nuniform vec2 contour_right9;\nuniform vec2 contour_left10;\nuniform vec2 contour_right10;\n// 鼻子\nuniform vec2 nose_left1;\nuniform vec2 nose_left2;\nuniform vec2 nose_right1;\nuniform vec2 nose_right2;\nuniform vec2 nose_tip1;\nuniform vec2 nose_bottom;\n// 嘴唇\nuniform vec2 lip_top_left;\nuniform vec2 lip_top_left_target;\nuniform vec2 lip_top_right;\nuniform vec2 lip_top_right_target;\nuniform vec2 lip_bottom_left;\nuniform vec2 lip_bottom_left_target;\nuniform vec2 lip_bottom_right;\nuniform vec2 lip_bottom_right_target;\nuniform vec2 lip_top_center;\nuniform vec2 lip_top_center_target;\nuniform vec2 lip_bottom_center;\nuniform vec2 lip_bottom_center_target;\nuniform vec2 lip_inner_top;\nuniform vec2 lip_inner_bottom;\n// 额头\nuniform vec2 forehead_top_center;\nuniform vec2 eyebrow_center;\nuniform vec2 forehead_left;\nuniform vec2 left_eyebrow_center;\nuniform vec2 forehead_right;\nuniform vec2 right_eyebrow_center;\n// 眼睛\nuniform vec2 right_eye_top;\nuniform vec2 left_eye_top;\nuniform vec2 right_eye_bottom;\nuniform vec2 left_eye_bottom;\n// 瘦颧骨\nuniform vec2 contour_left3;\nuniform vec2 contour_right3;\nuniform vec2 nose_bridge6;\n\nuniform vec2 nose_bridge4;\nuniform vec2 nose_bridge3;\nuniform vec2 nose_bridge2;\nuniform vec2 nose_bridge1;\n\nuniform vec2 mouth_lower_lip_bottom;\n\nuniform vec2 chin_left;\nuniform vec2 chin_right;\n\nuniform float cheekbone;\nuniform float lift; // 窄脸\nuniform float shave; // 下颌骨\nuniform float eye; // 大眼\nuniform float chin; // 下巴\nuniform float nose; // 鼻子\n// uniform float noseBridge;\nuniform float lip; // 嘴唇\nuniform float forehead; // 额头\nuniform float eyeBrightness; // 亮眼\nuniform float head; // 小头\n\n// 曲线形变处理\nvec2 curveWarp(vec2 textureCoord, vec2 originPosition, vec2 targetPosition, float radius)\n{\n vec2 offset = vec2(0.0);\n vec2 result = vec2(0.0);\n\n vec2 direction = targetPosition - originPosition;\n\n float infect = distance(textureCoord, originPosition)/radius;\n\n infect = 1.0 - infect;\n infect = clamp(infect, 0.0, 1.0);\n offset = direction * infect;\n\n result = textureCoord - offset;\n\n return result;\n}\n// usm\nvec4 gaussianBlur(vec2 uv, float size) {\n const float Pi = 6.28318530718; // Pi*2\n \n // GAUSSIAN BLUR SETTINGS {{{\n const float Directions = 16.0; // BLUR DIRECTIONS (Default 16.0 - More is better but slower)\n const float Quality = 4.0; // BLUR QUALITY (Default 4.0 - More is better but slower)\n float Size = size; // BLUR SIZE (Radius)\n // GAUSSIAN BLUR SETTINGS }}}\n \n vec2 Radius = Size/vec2(float(width), float(height));\n \n // Pixel colour\n vec4 Color = texture2D(uSampler, uv);\n \n // Blur calculations\n for( float d=0.0; d<Pi; d+=Pi/Directions)\n {\n for(float i=1.0/Quality; i<=1.0; i+=1.0/Quality)\n {\n Color += texture2D( uSampler, uv+vec2(cos(d),sin(d))*Radius*i);\n }\n }\n \n // Output to screen\n Color /= Quality * Directions;\n return Color;\n}\nvec4 usm(vec2 vTextureCoord, float factor) {\n vec4 originColor = texture2D(uSampler, vTextureCoord);\n // if (factor == 0.) {\n // return originColor;\n // }\n vec4 gaussianColor = gaussianBlur(vTextureCoord, 3.0);\n return gaussianColor * -factor + originColor * (1.0 + factor);\n}\n\n\n// 大眼处理\nvec2 enlargeEye(vec2 currentCoordinate, vec2 circleCenter, float radius, float intensity)\n{\n // todo:改成椭圆形的放大\n float currentDistance = distance(currentCoordinate, circleCenter);\n float weight = currentDistance / radius;\n weight = 1.0 - intensity * (1.0 - weight * weight);\n weight = clamp(weight, 0.0, 1.0);\n currentCoordinate = circleCenter + (currentCoordinate - circleCenter) * weight;\n\n return currentCoordinate;\n}\nvec2 enlargeEyeEllipse(vec2 currentCoordinate, vec2 eyeCenter, float majorRadius, float minorRadius, float intensity) {\n float currentDistance = distance(currentCoordinate, eyeCenter);\n\n float cosa = (currentCoordinate.x - eyeCenter.x) / currentDistance;\n float sina = (currentCoordinate.y - eyeCenter.y) / currentDistance;\n float m = pow(majorRadius * majorRadius *cosa*cosa + minorRadius * minorRadius * sina * sina, 0.5);\n\n float weight = currentDistance / m;\n weight = 1.0 - intensity * (1.0 - weight * weight);\n weight = clamp(weight, 0.0, 1.0);\n currentCoordinate = eyeCenter + (currentCoordinate - eyeCenter) * weight;\n\n return currentCoordinate;\n}\n// 瘦脸\nvec2 faceLift(vec2 currentCoordinate, float faceLength)\n{\n vec2 coordinate = currentCoordinate;\n vec2 currentPoint = vec2(0.0);\n vec2 destPoint = vec2(0.0);\n float faceLiftScale = lift * 0.06;\n float radius = faceLength * 0.5;\n\n currentPoint = contour_left4;\n destPoint = currentPoint + (nose_bridge5 - currentPoint) * faceLiftScale;\n coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);\n\n currentPoint = contour_right4;\n destPoint = currentPoint + (nose_bridge5 - currentPoint) * faceLiftScale;\n coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);\n\n radius = radius * 0.8;\n currentPoint = contour_left9;\n destPoint = currentPoint + (nose_tip - currentPoint) * (faceLiftScale * 0.6);\n coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);\n\n currentPoint = contour_right9;\n destPoint = currentPoint + (nose_tip - currentPoint) * (faceLiftScale * 0.6);\n coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);\n\n return coordinate;\n}\n// 鼻子\nvec2 noseShave(vec2 currentCoordinate, float faceLength) {\n vec2 coordinate = currentCoordinate;\n vec2 currentPoint = vec2(0.0);\n vec2 destPoint = vec2(0.0);\n float scale = nose * 0.2;\n float radius = faceLength * 0.5;\n\n currentPoint = nose_left1; // 102\n destPoint = currentPoint + (nose_tip1 - currentPoint) * scale; // nose_tip1:1\n coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);\n\n currentPoint = nose_left2; // 97\n destPoint = currentPoint + (nose_bottom - currentPoint) * scale; //nose_bottom: 2\n coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);\n\n\n currentPoint = nose_right1; // 331\n destPoint = currentPoint + (nose_tip1 - currentPoint) * scale; // nose_tip1:1\n coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);\n\n currentPoint = nose_right2; // 326\n destPoint = currentPoint + (nose_bottom - currentPoint) * scale; //nose_bottom: 2\n coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);\n\n return coordinate;\n}\n// 嘴唇\nvec2 handleLip(vec2 currentCoordinate, float faceLength) {\n vec2 coordinate = currentCoordinate;\n vec2 currentPoint = vec2(0.0);\n vec2 destPoint = vec2(0.0);\n float scale = lip * 0.1;\n\n vec2 circleCenter = (lip_inner_top + lip_inner_bottom) / 2.0;\n // 当前点的距离\n float currentDistance = distance(currentCoordinate, circleCenter);\n\n // float radius = distance(lip_top_right, lip_top_left) * 0.6;\n // float radius = distance(lip_top_right, lip_top_left) * 0.6;\n float radiusy = distance(lip_inner_top, circleCenter) * 2.0;\n float radiusx = distance(lip_top_right, lip_top_left) / 2.0 * 2.0;\n float cosa = (currentCoordinate.x - circleCenter.x) / currentDistance;\n float sina = (currentCoordinate.y - circleCenter.y) / currentDistance;\n float m = pow(radiusx * radiusx*cosa*cosa + radiusy * radiusy * sina * sina, 0.5);\n\n \n float weight = currentDistance/m;\n\n weight = 1.0 - abs(scale) * (1.0 - weight);\n weight = clamp(weight, 0.0, 1.0);\n\n // 处理是放大还是缩小\n float neg = step(0.0,lip) * 2.0 -1.0;\n weight = pow(weight, neg);\n currentCoordinate = circleCenter + (currentCoordinate - circleCenter) * weight;\n \n return currentCoordinate;\n\n}\n// 发际线\nvec2 handleForehead(vec2 currentCoordinate, float faceLength) {\n vec2 coordinate = currentCoordinate;\n vec2 currentPoint = vec2(0.0);\n vec2 destPoint = vec2(0.0);\n float scale = forehead * 0.15;\n float radius = faceLength * 0.7;\n\n currentPoint = forehead_top_center + forehead_top_center - eyebrow_center; // 10\n destPoint = currentPoint + (eyebrow_center - currentPoint) * scale; // eyebrow_center:9\n destPoint.y = clamp(destPoint.y, 0.0, float(height));\n coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);\n\n currentPoint = forehead_left + forehead_left - left_eyebrow_center; // 67\n destPoint = currentPoint + (left_eyebrow_center - currentPoint) * scale; // left_eyebrow_center:66\n destPoint.y = clamp(destPoint.y, 0.0, float(height));\n coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);\n\n currentPoint = forehead_right + forehead_right - right_eyebrow_center; // 297\n destPoint = currentPoint + (right_eyebrow_center - currentPoint) * scale; // right_eyebrow_center:296\n destPoint.y = clamp(destPoint.y, 0.0, float(height));\n coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);\n\n\n\n return coordinate;\n\n}\n// 削脸\nvec2 faceShave(vec2 currentCoordinate, float faceLength)\n{\n vec2 coordinate = currentCoordinate;\n vec2 currentPoint = vec2(0.0);\n vec2 destPoint = vec2(0.0);\n float faceShaveScale = shave * 0.09;\n float radius = faceLength * 1.0;\n\n // 下巴中心\n vec2 chinCenter = (contour_chin + mouth_lower_lip_bottom) * 0.5;\n currentPoint = contour_left10;\n destPoint = currentPoint + (chinCenter - currentPoint) * faceShaveScale;\n coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);\n\n currentPoint = contour_right10;\n destPoint = currentPoint + (chinCenter - currentPoint) * faceShaveScale;\n coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);\n\n return coordinate;\n}\n// 曲线形变处理\nvec2 curveWarpVertical(vec2 textureCoord, vec2 originPosition, vec2 targetPosition, float xRadius, float yRadius)\n{\n vec2 offset = vec2(0.0);\n vec2 result = vec2(0.0);\n\n vec2 direction = targetPosition - originPosition;\n\n float infect = (textureCoord.x - originPosition.x) * (textureCoord.x - originPosition.x) / (xRadius * xRadius) + \n (textureCoord.y - originPosition.y) * (textureCoord.y - originPosition.y) / (yRadius * yRadius);\n\n infect = 1.0 - infect;\n infect = clamp(infect, 0.0, 1.0);\n offset = direction * infect;\n\n result = textureCoord - offset;\n\n return result;\n}\n// 处理下巴\nvec2 chinChange(vec2 currentCoordinate, float faceLength)\n{\n vec2 coordinate = currentCoordinate;\n vec2 currentPoint = vec2(0.0);\n vec2 destPoint = vec2(0.0);\n float chinScale = -chin * 0.4;\n float radius = faceLength * 0.3;\n vec2 chinCenter = contour_chin + (mouth_lower_lip_bottom - contour_chin) * 0.2;\n // 下巴尖\n currentPoint = contour_chin;\n destPoint = currentPoint + (chinCenter - currentPoint) * chinScale;\n coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);\n\n // 下巴尖左右各取一个点平滑下巴\n float r = 0.3 - 0.1 * step(0.0,chin);\n currentPoint = chin_left;\n destPoint = currentPoint + (chinCenter - currentPoint) * chinScale * r;\n coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);\n\n currentPoint = chin_right;\n destPoint = currentPoint + (chinCenter - currentPoint) * chinScale * r;\n coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);\n\n return coordinate;\n}\n\nvec2 scaleHead(vec2 currentCoordinate) {\n vec2 coordinate = currentCoordinate;\n float headRadius = distance(contour_chin, nose_bridge5) * 1.8;\n float isWithin = 1.0-step(headRadius, distance(currentCoordinate, nose_bridge5));\n // if (distance(currentCoordinate, nose_bridge5) <= headRadius) {\n float weight = isWithin * (1.0 - distance(currentCoordinate, nose_bridge5) / headRadius);\n \n coordinate = nose_bridge5 + (coordinate - nose_bridge5) * (1.0+weight * 0.12*head);\n // }\n \n \n return coordinate;\n}\n// 颧骨\nvec2 handleCheekbone(vec2 currentCoordinate, float faceLength) {\n vec2 coordinate = currentCoordinate;\n vec2 currentPoint = vec2(0.0);\n vec2 destPoint = vec2(0.0);\n float scale = cheekbone * 0.05;\n float radius = faceLength * 0.45;\n\n currentPoint = (contour_left4 + contour_left3) * 0.5;\n destPoint = currentPoint + (nose_bridge6 - currentPoint) * scale;\n coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);\n\n currentPoint = (contour_right4 + contour_right3) * 0.5;\n destPoint = currentPoint + (nose_bridge6 - currentPoint) * scale;\n coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);\n\n return coordinate;\n\n}\n\nvec4 eyeBright(vec2 currentCoordinate) {\n vec2 coordinate = currentCoordinate * vec2(float(width), float(height));\n\n float iris_size_size = distance(left_eye_top, left_eye_bottom);\n vec2 left_center = (left_eye_top + left_eye_bottom)/2.0;\n vec2 right_center = (right_eye_top + right_eye_bottom)/2.0;\n float flag = (1.0-step(iris_size_size, distance(coordinate, left_center))) + (1.0-step(iris_size_size, distance(coordinate, right_center)));\n // if ((distance(coordinate, left_center) <= iris_size_size || distance(coordinate, right_center) <= iris_size_size)) {\n return usm(currentCoordinate, flag * clamp(eyeBrightness,0.0,1.0));\n // return;\n // }\n // gl_FragColor = texture2D(uSampler, currentCoordinate);\n}\n\nvoid main()\n{\n vec2 coordinate = vTextureCoord.xy;\n \n // 禁用美型处理或者鼻子不在图像中,则直接绘制\n float enableFlag = step(1.0, float(enable)) * (step(0.03, nose_tip.x / float(width)) + step(0.03, nose_tip.y / float(height)));\n enableFlag = clamp(enableFlag, 0.0, 1.0);\n // if (enable == 0 || ((nose_tip.x / float(width) <= 0.03) || (nose_tip.y / float(height)) <= 0.03)) {\n vec4 color = texture2D(uSampler, coordinate);\n\n // gl_FragColor = color;\n // return;\n // }\n \n \n // 将坐标转成图像大小,这里是为了方便计算\n coordinate = vTextureCoord * vec2(float(width), float(height));\n\n // 两个瞳孔的距离\n float eyeDistance = distance(left_eye_center, right_eye_center); \n\n // 瘦脸\n coordinate = faceLift(coordinate, eyeDistance);\n\n // 削脸\n coordinate = faceShave(coordinate, eyeDistance);\n\n // 下巴\n coordinate = chinChange(coordinate, eyeDistance);\n\n // 鼻子\n coordinate = noseShave(coordinate,eyeDistance);\n\n // 嘴唇厚度\n coordinate = handleLip(coordinate,eyeDistance);\n\n // 发际线\n coordinate = handleForehead(coordinate,eyeDistance);\n\n // 颧骨\n coordinate = handleCheekbone(coordinate,eyeDistance);\n\n // 小头\n coordinate = scaleHead(coordinate);\n\n // 大眼\n float eyeEnlarge = eye * 0.16; // 放大倍数\n eyeEnlarge = clamp(eyeEnlarge, 0.0, 1.0);\n // if (eyeEnlarge > 0.0) {\n float radius = eyeDistance * 0.33; // 眼睛放大半径\n // float radius = eyeDistance * 0.33; // 眼睛放大半径\n // coordinate = enlargeEye(coordinate, left_eye_center + (right_eye_center - left_eye_center) * 0.05, radius, eyeEnlarge);\n // coordinate = enlargeEye(coordinate, right_eye_center + (left_eye_center - right_eye_center) * 0.05, radius, eyeEnlarge);\n coordinate = enlargeEyeEllipse(coordinate, left_eye_center + (right_eye_center - left_eye_center) * 0.05, eyeDistance * 0.45, eyeDistance * 0.25, eyeEnlarge);\n coordinate = enlargeEyeEllipse(coordinate, right_eye_center + (left_eye_center - right_eye_center) * 0.05, eyeDistance * 0.45, eyeDistance * 0.25, eyeEnlarge);\n // }\n\n // 转变回原来的纹理坐标系\n coordinate = coordinate / vec2(float(width), float(height));\n\n // 输出图像带上名目\n vec4 dealedColor = eyeBright(coordinate);\n\n // 输出图像\n // gl_FragColor = texture2D(uSampler, coordinate);\n gl_FragColor = mix(color, dealedColor, enableFlag);\n}"},maskBlack:{fragment:"\nuniform sampler2D uSampler;\nvarying vec2 vTextureCoord;\n\nvoid main() {\n vec4 color = texture2D(uSampler, vTextureCoord);\n gl_FragColor = vec4(color.rgb,color.r);\n}\n"},usm:{fragment:"\n\nprecision lowp float;\nuniform sampler2D uSampler;\nvarying lowp vec2 vTextureCoord;\nuniform int width;\nuniform int height;\nuniform float intensity;\n\nvec4 gaussianBlur(vec2 uv, float size) {\n const float Pi = 6.28318530718; // Pi*2\n \n // GAUSSIAN BLUR SETTINGS {{{\n const float Directions = 16.0; // BLUR DIRECTIONS (Default 16.0 - More is better but slower)\n const float Quality = 4.0; // BLUR QUALITY (Default 4.0 - More is better but slower)\n float Size = size; // BLUR SIZE (Radius)\n // GAUSSIAN BLUR SETTINGS }}}\n \n vec2 Radius = Size/vec2(float(width), float(height));\n \n // Pixel colour\n vec4 Color = texture2D(uSampler, uv);\n \n // Blur calculations\n for( float d=0.0; d<Pi; d+=Pi/Directions)\n {\n for(float i=1.0/Quality; i<=1.0; i+=1.0/Quality)\n {\n Color += texture2D( uSampler, uv+vec2(cos(d),sin(d))*Radius*i);\n }\n }\n \n // Output to screen\n Color /= Quality * Directions;\n return Color;\n}\nvec4 usm(vec2 vTextureCoord, float factor) {\n vec4 originColor = texture2D(uSampler, vTextureCoord);\n // if (factor == 0.) {\n // return originColor;\n // }\n vec4 gaussianColor = gaussianBlur(vTextureCoord, 3.0);\n return gaussianColor * -factor + originColor * (1.0 + factor);\n}\n\n\nvoid main(void)\n{ \n\n gl_FragColor = usm(vTextureCoord, intensity);\n}\n"}},s=function(t){function e(e,n,r){var i=this,o=a[e];(i=t.call(this,o.vertex||"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nuniform mat3 projectionMatrix;\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}",o.fragment)||this).options=r||{};var s=i.options.uniforms;if(s)for(var c in s)i.uniforms[c]=s[c];var l=n.width,u=n.height;return i.uniforms.width=l,i.uniforms.height=u,i.uniforms.iResolution=[l,u],i}return o(e,t),e.prototype.resize=function(t,e){this.uniforms.width=t,this.uniforms.height=e,this.uniforms.iResolution=[t,e]},e.prototype.setUniforms=function(t,e){if("object"==typeof t)for(var n in t)this.uniforms[n]=t[n];else this.uniforms[t]!==e&&(this.uniforms[t]=e)},e}(r.wn)},1730:(t,e,n)=>{n.d(e,{a:()=>r,L:()=>i});var r;!function(t){t[t.NORMAL=0]="NORMAL",t[t.DARKEN=1]="DARKEN",t[t.MULTIPLY=2]="MULTIPLY",t[t.COLOR_BURN=3]="COLOR_BURN",t[t.LINEAR_BURN=4]="LINEAR_BURN",t[t.LIGHTEN=5]="LIGHTEN",t[t.SCREEN=6]="SCREEN",t[t.COLOR_DODGE=7]="COLOR_DODGE",t[t.LINEAR_DODGE=8]="LINEAR_DODGE",t[t.OVERLAY=9]="OVERLAY",t[t.SOFT_LIGHT=10]="SOFT_LIGHT",t[t.HARD_LIGHT=11]="HARD_LIGHT",t[t.VIVID_LIGHT=12]="VIVID_LIGHT",t[t.LINEAR_LIGHT=13]="LINEAR_LIGHT",t[t.PIN_LIGHT=14]="PIN_LIGHT",t[t.HARD_MIX=15]="HARD_MIX",t[t.DIFFERENCE=16]="DIFFERENCE",t[t.EXCLUSION=17]="EXCLUSION",t[t.SUBSTRACT=18]="SUBSTRACT"}(r||(r={}));var i=[{name:"普通",key:"Normal",shader:"vec3 blendNormal(vec3 base, vec3 blend) {\n\treturn blend;\n}\nfloat blendNormal(float base, float blend) {\n\treturn blend;\n}\n\nvec3 blendNormal(vec3 base, vec3 blend, float opacity) {\n\treturn (blendNormal(base, blend) * opacity + base * (1.0 - opacity));\n}\n\n\n"},{name:"变暗",key:"Darken",shader:"float blendDarken(float base, float blend) {\n\treturn min(blend,base);\n}\n\nvec3 blendDarken(vec3 base, vec3 blend) {\n\treturn vec3(blendDarken(base.r,blend.r),blendDarken(base.g,blend.g),blendDarken(base.b,blend.b));\n}\n\nvec3 blendDarken(vec3 base, vec3 blend, float opacity) {\n\treturn (blendDarken(base, blend) * opacity + base * (1.0 - opacity));\n}\n\n"},{name:"正片叠底",key:"Multiply",shader:"vec3 blendMultiply(vec3 base, vec3 blend) {\n\treturn base*blend;\n}\n\n\nvec3 blendMultiply(vec3 base, vec3 blend, float opacity) {\n\treturn (blendMultiply(base, blend) * opacity + base * (1.0 - opacity));\n}\n\n"},{name:"颜色加深",key:"ColorBurn",shader:"float blendColorBurn(float base, float blend) {\n\treturn (blend==0.0)?blend:max((1.0-((1.0-base)/blend)),0.0);\n}\n\nvec3 blendColorBurn(vec3 base, vec3 blend) {\n\treturn vec3((base.r,blend.r),blendColorBurn(base.g,blend.g),blendColorBurn(base.b,blend.b));\n}\n\n\nvec3 blendColorBurn(vec3 base, vec3 blend, float opacity) {\n\treturn (blendColorBurn(base, blend) * opacity + base * (1.0 - opacity));\n}\n\n"},{name:"线性加深",key:"LinearBurn",shader:"float blendLinearBurn(float base, float blend) {\n\t// Note : Same implementation as BlendSubtractf\n\treturn max(base+blend-1.0,0.0);\n}\n\n\nvec3 blendLinearBurn(vec3 base, vec3 blend) {\n\t// Note : Same implementation as BlendSubtract\n\treturn max(base+blend-vec3(1.0),vec3(0.0));\n}\n\nvec3 blendLinearBurn(vec3 base, vec3 blend, float opacity) {\n\treturn (blendLinearBurn(base, blend) * opacity + base * (1.0 - opacity));\n}\n\n"},{name:"变亮",key:"Lighten",shader:"float blendLighten(float base, float blend) {\n\treturn max(blend,base);\n}\n\nvec3 blendLighten(vec3 base, vec3 blend) {\n\treturn vec3(blendLighten(base.r,blend.r),blendLighten(base.g,blend.g),blendLighten(base.b,blend.b));\n}\n\nvec3 blendLighten(vec3 base, vec3 blend, float opacity) {\n\treturn (blendLighten(base, blend) * opacity + base * (1.0 - opacity));\n}\n\n"},{name:"滤色",key:"Screen",shader:"float blendScreen(float base, float blend) {\n\treturn 1.0-((1.0-base)*(1.0-blend));\n}\n\nvec3 blendScreen(vec3 base, vec3 blend) {\n\treturn vec3(blendScreen(base.r,blend.r),blendScreen(base.g,blend.g),blendScreen(base.b,blend.b));\n}\n\nvec3 blendScreen(vec3 base, vec3 blend, float opacity) {\n\treturn (blendScreen(base, blend) * opacity + base * (1.0 - opacity));\n}\n\n"},{name:"颜色减淡",key:"ColorDodge",shader:"float blendColorDodge(float base, float blend) {\n\treturn (blend==1.0)?blend:min(base/(1.0-blend),1.0);\n}\n\nvec3 blendColorDodge(vec3 base, vec3 blend) {\n\treturn vec3(blendColorDodge(base.r,blend.r),blendColorDodge(base.g,blend.g),blendColorDodge(base.b,blend.b));\n}\n\nvec3 blendColorDodge(vec3 base, vec3 blend, float opacity) {\n\treturn (blendColorDodge(base, blend) * opacity + base * (1.0 - opacity));\n}\n\n"},{name:"线性减淡",key:"LinearDodge",shader:"float blendLinearDodge(float base, float blend) {\n\t// Note : Same implementation as BlendAddf\n\treturn min(base+blend,1.0);\n}\n\nvec3 blendLinearDodge(vec3 base, vec3 blend) {\n\t// Note : Same implementation as BlendAdd\n\treturn min(base+blend,vec3(1.0));\n}\n\nvec3 blendLinearDodge(vec3 base, vec3 blend, float opacity) {\n\treturn (blendLinearDodge(base, blend) * opacity + base * (1.0 - opacity));\n}\n\n"},{name:"叠加",key:"Overlay",shader:"float blendOverlay(float base, float blend) {\n\treturn base<0.5?(2.0*base*blend):(1.0-2.0*(1.0-base)*(1.0-blend));\n}\n\nvec3 blendOverlay(vec3 base, vec3 blend) {\n\treturn vec3(blendOverlay(base.r,blend.r),blendOverlay(base.g,blend.g),blendOverlay(base.b,blend.b));\n}\n\nvec3 blendOverlay(vec3 base, vec3 blend, float opacity) {\n\treturn (blendOverlay(base, blend) * opacity + base * (1.0 - opacity));\n}\n\n"},{name:"柔光",key:"SoftLight",shader:"float blendSoftLight(float base, float blend) {\n\treturn (blend<0.5)?(2.0*base*blend+base*base*(1.0-2.0*blend)):(sqrt(base)*(2.0*blend-1.0)+2.0*base*(1.0-blend));\n}\n\nvec3 blendSoftLight(vec3 base, vec3 blend) {\n\treturn vec3(blendSoftLight(base.r,blend.r),blendSoftLight(base.g,blend.g),blendSoftLight(base.b,blend.b));\n}\n\n\nvec3 blendSoftLight(vec3 base, vec3 blend, float opacity) {\n\treturn (blendSoftLight(base, blend) * opacity + base * (1.0 - opacity));\n}\n\n"},{name:"强光",key:"HardLight",shader:"float blendOverlay(float base, float blend) {\n\treturn base<0.5?(2.0*base*blend):(1.0-2.0*(1.0-base)*(1.0-blend));\n}\nvec3 blendOverlay(vec3 base, vec3 blend) {\n\treturn vec3(blendOverlay(base.r,blend.r),blendOverlay(base.g,blend.g),blendOverlay(base.b,blend.b));\n}\nvec3 blendHardLight(vec3 base, vec3 blend) {\n\treturn blendOverlay(blend,base);\n}\n\nvec3 blendHardLight(vec3 base, vec3 blend, float opacity) {\n\treturn (blendHardLight(base, blend) * opacity + base * (1.0 - opacity));\n}\n\n"},{name:"亮光",key:"VividLight",shader:"float blendColorDodge(float base, float blend) {\n\treturn (blend==1.0)?blend:min(base/(1.0-blend),1.0);\n}\n\n\nfloat blendColorBurn(float base, float blend) {\n\treturn (blend==0.0)?blend:max((1.0-((1.0-base)/blend)),0.0);\n}\n\n\n\n\nfloat blendVividLight(float base, float blend) {\n\treturn (blend<0.5)?blendColorBurn(base,(2.0*blend)):blendColorDodge(base,(2.0*(blend-0.5)));\n}\n\nvec3 blendVividLight(vec3 base, vec3 blend) {\n\treturn vec3(blendVividLight(base.r,blend.r),blendVividLight(base.g,blend.g),blendVividLight(base.b,blend.b));\n}\n\nvec3 blendVividLight(vec3 base, vec3 blend, float opacity) {\n\treturn (blendVividLight(base, blend) * opacity + base * (1.0 - opacity));\n}\n\n"},{name:"线性光",key:"LinearLight",shader:"float blendLinearBurn(float base, float blend) {\n\t// Note : Same implementation as BlendSubtractf\n\treturn max(base+blend-1.0,0.0);\n}\n\nfloat blendLinearDodge(float base, float blend) {\n\t// Note : Same implementation as BlendAddf\n\treturn min(base+blend,1.0);\n}\n\n\nfloat blendLinearLight(float base, float blend) {\n\treturn blend<0.5?blendLinearBurn(base,(2.0*blend)):blendLinearDodge(base,(2.0*(blend-0.5)));\n}\n\nvec3 blendLinearLight(vec3 base, vec3 blend) {\n\treturn vec3(blendLinearLight(base.r,blend.r),blendLinearLight(base.g,blend.g),blendLinearLight(base.b,blend.b));\n}\n\nvec3 blendLinearLight(vec3 base, vec3 blend, float opacity) {\n\treturn (blendLinearLight(base, blend) * opacity + base * (1.0 - opacity));\n}\n\n"},{name:"点光",key:"PinLight",shader:"float blendLighten(float base, float blend) {\n\treturn max(blend,base);\n}\nfloat blendDarken(float base, float blend) {\n\treturn min(blend,base);\n}\nfloat blendPinLight(float base, float blend) {\n\treturn (blend<0.5)?blendDarken(base,(2.0*blend)):blendLighten(base,(2.0*(blend-0.5)));\n}\n\nvec3 blendPinLight(vec3 base, vec3 blend) {\n\treturn vec3(blendPinLight(base.r,blend.r),blendPinLight(base.g,blend.g),blendPinLight(base.b,blend.b));\n}\n\nvec3 blendPinLight(vec3 base, vec3 blend, float opacity) {\n\treturn (blendPinLight(base, blend) * opacity + base * (1.0 - opacity));\n}\n\n"},{name:"实色混合",key:"HardMix",shader:"float blendColorDodge(float base, float blend) {\n\treturn (blend==1.0)?blend:min(base/(1.0-blend),1.0);\n}\n\n\n\nfloat blendColorBurn(float base, float blend) {\n\treturn (blend==0.0)?blend:max((1.0-((1.0-base)/blend)),0.0);\n}\n\n\n\nfloat blendVividLight(float base, float blend) {\n\treturn (blend<0.5)?blendColorBurn(base,(2.0*blend)):blendColorDodge(base,(2.0*(blend-0.5)));\n}\n\n\n\nfloat blendHardMix(float base, float blend) {\n\treturn (blendVividLight(base,blend)<0.5)?0.0:1.0;\n}\n\nvec3 blendHardMix(vec3 base, vec3 blend) {\n\treturn vec3(blendHardMix(base.r,blend.r),blendHardMix(base.g,blend.g),blendHardMix(base.b,blend.b));\n}\n\nvec3 blendHardMix(vec3 base, vec3 blend, float opacity) {\n\treturn (blendHardMix(base, blend) * opacity + base * (1.0 - opacity));\n}\n\n"},{name:"差值",key:"Difference",shader:"vec3 blendDifference(vec3 base, vec3 blend) {\n\treturn abs(base-blend);\n}\n\nvec3 blendDifference(vec3 base, vec3 blend, float opacity) {\n\treturn (blendDifference(base, blend) * opacity + base * (1.0 - opacity));\n}\n\n"},{name:"排除",key:"Exclusion",shader:"vec3 blendExclusion(vec3 base, vec3 blend) {\n\treturn base+blend-2.0*base*blend;\n}\n\nvec3 blendExclusion(vec3 base, vec3 blend, float opacity) {\n\treturn (blendExclusion(base, blend) * opacity + base * (1.0 - opacity));\n}\n\n"},{name:"减去",key:"Substract",shader:"float blendSubstract(float base, float blend) {\n\treturn max(base+blend-1.0,0.0);\n}\n\nvec3 blendSubstract(vec3 base, vec3 blend) {\n\treturn max(base+blend-vec3(1.0),vec3(0.0));\n}\n\nvec3 blendSubstract(vec3 base, vec3 blend, float opacity) {\n\treturn (blendSubstract(base, blend) * opacity + blend * (1.0 - opacity));\n}\n\n"}]},9560:(t,e,n)=>{n.d(e,{Kg:()=>_,Lc:()=>l.L,jy:()=>m});var r,i=n(9043),o=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.backdropUniformName=null,e._backdropActive=!1,e.clearColor=null,e}return o(e,t),e}(i.Filter),s=function(t){function e(e){var n=this,r="\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform sampler2D uBackdrop;\nuniform vec2 uBackdrop_flipY;\nuniform float intensity;\n\n%UNIFORM_CODE%\n%FUNC_CODE%\nvoid main(void)\n{\n vec2 backdropCoord = vec2(vTextureCoord.x, vTextureCoord.y);\n // vec2 backdropCoord = vec2(vTextureCoord.x, uBackdrop_flipY.x + uBackdrop_flipY.y * vTextureCoord.y);\n vec4 b_src = texture2D(uSampler, vTextureCoord); // 精灵\n vec4 b_dest = texture2D(uBackdrop, backdropCoord); // 底图\n vec4 b_res = b_src;\n\n\n // gl_FragColor = b_dest;\n // return;\n\n if (b_src.a == 0.0) {\n gl_FragColor = vec4(0.0,0.0,0.0,0.0);\n return;\n }\n if (b_dest.a == 0.0) {\n gl_FragColor = vec4(0.0,0.0,0.0,0.0);\n // gl_FragColor = b_src;\n return;\n }\n \n \n b_res.rgb = blend%FUNC_NAME%(b_dest.rgb / b_dest.a, b_src.rgb / b_src.a, intensity);\n gl_FragColor = vec4(b_res.rgb * b_src.a,b_src.a);\n\n}";return r=(r=(r=r.replace("%UNIFORM_CODE%",e.uniformCode||"")).replace("%FUNC_CODE%",e.funcCode||"")).replace("%FUNC_NAME%",e.funcName||""),(n=t.call(this,void 0,r,e.uniforms)||this).backdropUniformName="uBackdrop",n}return o(e,t),e}(a),c=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),l=(function(t){function e(e,n){var r=n||{};return r.flipY||(r.flipY=new Float32Array([0,1])),t.call(this,"\nattribute vec2 aVertexPosition;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nuniform vec4 inputSize;\nuniform vec4 outputFrame;\nuniform vec2 flipY;\n\nvec4 filterVertexPosition( void )\n{\n vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;\n\n return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n}\n\nvec2 filterTextureCoord( void )\n{\n return aVertexPosition * (outputFrame.zw * inputSize.zw);\n}\n\nvoid main(void)\n{\n gl_Position = filterVertexPosition();\n vTextureCoord = filterTextureCoord();\n vTextureCoord.y = flipY.x + flipY.y * vTextureCoord.y;\n}\n\n",e,r)||this}c(e,t)}(i.Filter),n(1730)),u=[],h=[];function f(t,e){return void 0===e&&(e=1),void 0===t?null:(u[t]||(u[t]=new s({funcCode:l.L[t].shader,funcName:l.L[t].key,uniforms:{intensity:e}})),u[t])}function d(t,e){return void 0===e&&(e=1),void 0===t?null:(h[t]||(h[t]=[f(t,e)]),h[t][0].uniforms.intensity=e,h[t])}var p=n(1961),g=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return g(e,t),e.prototype._render=function(t){var e=this._texture;if(e&&e.valid){var n=d(this.blendMode_1);new Date;n&&(t.batch.flush(),!t.filter.pushWithCheck(this,n))||(+new Date,this.calculateVertices(),t.batch.setObjectRenderer(t.plugins[this.pluginName]),t.plugins[this.pluginName].render(this),n&&(t.batch.flush(),t.filter.pop()))}},e}(p.j),y=n(2901),v=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_=function(t){function e(e,n){void 0===n&&(n=!0);var r=t.call(this,e[0]instanceof i.Texture?e[0]:e[0].texture)||this;return r._textures=null,r._durations=null,r._autoUpdate=n,r._isConnectedToTicker=!1,r.animationSpeed=1,r.loop=!0,r.updateAnchor=!1,r.onComplete=null,r.onFrameChange=null,r.onLoop=null,r._currentTime=0,r._playing=!1,r._previousFrame=null,r.textures=e,r}return v(e,t),e.prototype.stop=function(){this._playing&&(this._playing=!1,this._autoUpdate&&this._isConnectedToTicker&&(y.vB.shared.remove(this.update,this),this._isConnectedToTicker=!1))},e.prototype.play=function(){this._playing||(this._playing=!0,this._autoUpdate&&!this._isConnectedToTicker&&(y.vB.shared.add(this.update,this,y.uF.HIGH),this._isConnectedToTicker=!0))},e.prototype.gotoAndStop=function(t){this.stop();var e=this.currentFrame;this._currentTime=t,e!==this.currentFrame&&this.updateTexture()},e.prototype.gotoAndPlay=function(t){var e=this.currentFrame;this._currentTime=t,e!==this.currentFrame&&this.updateTexture(),this.play()},e.prototype.update=function(t){if(this._playing){var e=this.animationSpeed*t,n=this.currentFrame;if(null!==this._durations){var r=this._currentTime%1*this._durations[this.currentFrame];for(r+=e/60*1e3;r<0;)this._currentTime--,r+=this._durations[this.currentFrame];var i=Math.sign(this.animationSpeed*t);for(this._currentTime=Math.floor(this._currentTime);r>=this._durations[this.currentFrame];)r-=this._durations[this.currentFrame]*i,this._currentTime+=i;this._currentTime+=r/this._durations[this.currentFrame]}else this._currentTime+=e;this._currentTime<0&&!this.loop?(this.gotoAndStop(0),this.onComplete&&this.onComplete()):this._currentTime>=this._textures.length&&!this.loop?(this.gotoAndStop(this._textures.length-1),this.onComplete&&this.onComplete()):n!==this.currentFrame&&(this.loop&&this.onLoop&&(this.animationSpeed>0&&this.currentFrame<n||this.animationSpeed<0&&this.currentFrame>n)&&this.onLoop(),this.updateTexture())}},e.prototype.updateTexture=function(){var t=this.currentFrame;this._previousFrame!==t&&(this._previousFrame=t,this._texture=this._textures[t],this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this.uvs=this._texture._uvs.uvsFloat32,this.updateAnchor&&this._anchor.copyFrom(this._texture.defaultAnchor),this.onFrameChange&&this.onFrameChange(this.currentFrame))},e.prototype.destroy=function(e){this.stop(),t.prototype.destroy.call(this,e),this.onComplete=null,this.onFrameChange=null,this.onLoop=null},e.fromFrames=function(t){for(var n=[],r=0;r<t.length;++r)n.push(i.Texture.from(t[r]));return new e(n)},e.fromImages=function(t){for(var n=[],r=0;r<t.length;++r)n.push(i.Texture.from(t[r]));return new e(n)},Object.defineProperty(e.prototype,"totalFrames",{get:function(){return this._textures.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textures",{get:function(){return this._textures},set:function(t){if(t[0]instanceof i.Texture)this._textures=t,this._durations=null;else{this._textures=[],this._durations=[];for(var e=0;e<t.length;e++)this._textures.push(t[e].texture),this._durations.push(t[e].time)}this._previousFrame=null,this.gotoAndStop(0),this.updateTexture()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentFrame",{get:function(){var t=Math.floor(this._currentTime)%this._textures.length;return t<0&&(t+=this._textures.length),t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"playing",{get:function(){return this._playing},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"autoUpdate",{get:function(){return this._autoUpdate},set:function(t){t!==this._autoUpdate&&(this._autoUpdate=t,!this._autoUpdate&&this._isConnectedToTicker?(y.vB.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._playing&&(y.vB.shared.add(this.update,this),this._isConnectedToTicker=!0))},enumerable:!1,configurable:!0}),e}(m),b=n(8141),x=n(7659),w=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),T=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}w(e,t),e.prototype._render=function(t){var n=d(this.blendMode_1,this.intensity);if(!n||(t.batch.flush(),t.filter.pushWithCheck(this,n))){var r=this.geometry.buffers[0].data;this.shader.batchable&&this.drawMode===x.lg.TRIANGLES&&r.length<2*e.BATCHABLE_SIZE?this._renderToBatch(t):this._renderDefault(t),n&&(t.batch.flush(),t.filter.pop())}}}(b.Kj),n(2064)),C=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),S=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}C(e,t),e.prototype._render=function(t){var e=this._texture;if(e&&e.valid){var n=d(this.blendMode_1);n&&(t.batch.flush(),!t.filter.pushWithCheck(this,n))||(this.tileTransform.updateLocalTransform(),this.uvMatrix.update(),t.batch.setObjectRenderer(t.plugins[this.pluginName]),t.plugins[this.pluginName].render(this),n&&(t.batch.flush(),t.filter.pop()))}}}(T.o),n(1893));function k(t,e){void 0===e&&(e=0);var n=this.gl;this.currentLocation!==e&&(this.currentLocation=e,n.activeTexture(n.TEXTURE0+e)),this.bind(t,e)}var E=new S.y3;function P(t,e,n){void 0===n&&(n=!0);for(var r=this.renderer,o=this.defaultFilterStack,a=this.statePool.pop()||new i.FilterState,s=this.renderer.renderTexture,c=e[0].resolution,l=e[0].padding,u=e[0].autoFit,h=e[0].legacy,f=1;f<e.length;f++){var d=e[f];c=Math.min(c,d.resolution),l=this.useMaxPadding?Math.max(l,d.padding):l+d.padding,u=u&&d.autoFit,h=h||d.legacy}1===o.length&&(this.defaultFilterStack[0].renderTexture=s.current),o.push(a),a.resolution=c,a.legacy=h,a.target=t,a.sourceFrame.copyFrom(t.filterArea||t.getBounds(!0)),a.sourceFrame.pad(l);var p,g,m,y,v,_,b=!0;if(u){var x=this.tempRect.copyFrom(s.sourceFrame);r.projection.transform&&this.transformAABB(E.copyFrom(r.projection.transform).invert(),x),a.sourceFrame.fit(x)}else p=this.renderer.renderTexture.sourceFrame,g=a.sourceFrame,m=g.x+g.width,y=g.y+g.height,v=p.x+p.width,_=p.y+p.height,b=g.x>=p.x&&g.x<=v&&g.y>=p.y&&g.y<=_&&m>=p.x&&m<=v&&y>=p.y&&y<=_;if(n&&a.sourceFrame.width<=1&&a.sourceFrame.height<=1)return o.pop(),a.clear(),this.statePool.push(a),!1;this.roundFrame(a.sourceFrame,s.current?s.current.resolution:r.resolution,s.sourceFrame,s.destinationFrame,r.projection.transform),a.sourceFrame.ceil(c);new Date;if(b){var w=null,T=null;for(f=0;f<e.length;f++){var C=e[f].backdropUniformName;if(C){var S=e[f].uniforms;S[C+"_flipY"]||(S[C+"_flipY"]=new Float32Array([0,1]));var k=S[C+"_flipY"];null===w?(w=this.prepareBackdrop(a.sourceFrame,k),T=k):(k[0]=T[0],k[1]=T[1]),S[C]=w,w&&(e[f]._backdropActive=!0)}}w&&(c=a.resolution=w.resolution)}a.renderTexture=this.getOptimalFilterTexture(a.sourceFrame.width,a.sourceFrame.height,c),a.filters=e,a.destinationFrame.width=a.renderTexture.width,a.destinationFrame.height=a.renderTexture.height;var P=this.tempRect;P.x=0,P.y=0,P.width=a.sourceFrame.width,P.height=a.sourceFrame.height,a.renderTexture.filterFrame=a.sourceFrame,a.bindingSourceFrame.copyFrom(s.sourceFrame),a.bindingDestinationFrame.copyFrom(s.destinationFrame),a.transform=r.projection.transform,r.projection.transform=null,s.bind(a.renderTexture,a.sourceFrame,P);var R=e[e.length-1].clearColor;return R?r.framebuffer.clear(R[0],R[1],R[2],R[3]):r.framebuffer.clear(0,0,0,0),!0}function R(t,e){return this.pushWithCheck(t,e,!1)}function O(){var t=this.defaultFilterStack,e=t.pop(),n=e.filters;this.activeState=e;var r=this.globalUniforms.uniforms;r.outputFrame=e.sourceFrame,r.resolution=e.resolution;var i=r.inputSize,o=r.inputPixel,a=r.inputClamp;if(i[0]=e.destinationFrame.width,i[1]=e.destinationFrame.height,i[2]=1/i[0],i[3]=1/i[1],o[0]=i[0]*e.resolution,o[1]=i[1]*e.resolution,o[2]=1/o[0],o[3]=1/o[1],a[0]=.5*o[2],a[1]=.5*o[3],a[2]=e.sourceFrame.width*i[2]-.5*o[2],a[3]=e.sourceFrame.height*i[3]-.5*o[3],e.legacy){var s=r.filterArea;s[0]=e.destinationFrame.width,s[1]=e.destinationFrame.height,s[2]=e.sourceFrame.x,s[3]=e.sourceFrame.y,r.filterClamp=r.inputClamp}this.globalUniforms.update();var c=t[t.length-1];if(e.renderTexture.framebuffer.multisample>1&&this.renderer.framebuffer.blit(),1===n.length)n[0].apply(this,e.renderTexture,c.renderTexture,x.yl.BLEND,e),this.returnFilterTexture(e.renderTexture);else{var l=e.renderTexture,u=this.getOptimalFilterTexture(l.width,l.height,e.resolution);u.filterFrame=l.filterFrame;var h=0;for(h=0;h<n.length-1;++h){n[h].apply(this,l,u,x.yl.CLEAR,e);var f=l;l=u,u=f}n[h].apply(this,l,c.renderTexture,x.yl.BLEND,e),this.returnFilterTexture(l),this.returnFilterTexture(u)}var d=!1;for(h=0;h<n.length;h++)if(n[h]._backdropActive){var p=n[h].backdropUniformName;d||(this.returnFilterTexture(n[h].uniforms[p]),d=!0),n[h].uniforms[p]=null,n[h]._backdropActive=!1}e.clear(),this.statePool.push(e)}var D=!1;function A(t,e){var n=this.renderer,r=n.renderTexture.current,i=this.renderer.renderTexture.sourceFrame,o=n.projection.transform||S.y3.IDENTITY,a=1;if(r)a=r.baseTexture.resolution,e[1]=1;else{if(!n.useContextAlpha)return D||(D=!0,console.warn("pixi-picture: you are trying to use Blend Filter on main framebuffer! That wont work.")),null;a=n.resolution,e[1]=-1}var s=Math.round((t.x-i.x+o.tx)*a),c=t.y-i.y+o.ty,l=Math.round((e[1]<0?i.height-(c+t.height):c)*a),u=Math.round(t.width*a),h=Math.round(t.height*a),f=n.gl,d=this.getOptimalFilterTexture(u,h,1);e[1]<0&&(e[0]=h/d.height),d.filterFrame=i,d.setResolution(a),n.texture.bindForceLocation(d.baseTexture,0);new Date;return f.copyTexSubImage2D(f.TEXTURE_2D,0,0,0,s,l,u,h),d}i.TextureSystem.prototype.bindForceLocation=k,i.FilterSystem.prototype.push=R,i.FilterSystem.prototype.pushWithCheck=P,i.FilterSystem.prototype.pop=O,i.FilterSystem.prototype.prepareBackdrop=A},401:(t,e,n)=>{n.d(e,{$G:()=>v,Cb:()=>u,Eh:()=>p,F3:()=>b,Gb:()=>h,Jp:()=>l,Ss:()=>s,Ty:()=>f,c4:()=>o,c9:()=>r,em:()=>a,gz:()=>d,hJ:()=>g,iN:()=>_,jw:()=>c,rR:()=>y,ty:()=>m,xb:()=>i});var r="c30849f08b1b4841a759a7c7534a2f0c.bin";function i(){return"".concat("https://webar-static.tencent-cloud.com/ar-sdk/resources","/").concat("1.0.23","/").concat(r)}var o={POINTS_MAP:23,KEY_POINTS:24,LEFT_FACE_OVAL:8,LEFT_FACE_OVAL2:9,LEFT_FACE_OVAL3:10,RIGHT_FACE_OVAL:11,RIGHT_FACE_OVAL2:12,RIGHT_FACE_OVAL3:13,MOUTH_UPPER:19,MOUTH_LOWER:20,OUTER_REFERENCE:18,outer_offset_ratio:27,triangulation:25,auvs:26,LEFT_IRIS:7,RIGHT_IRIS:6,LEFT_EYE_ORDER:14,RIGHT_EYE_ORDER:15,lipsTriangulation:28,lipsAuvs:29,LIPS:5},a=0,s=0,c=356,l=[0,32],u="64,65,63,72,79,70,74",h="61,75,74,68",f="61,6c,6c,6f,77,46,75,6e,63,4c,69,73,74",d="54,69,6d,65,73,74,61,6d,70",p="57,65,62,54,69,6d,65,73,74,61,6d,70",g="4b,65,79,4c,69,73,74",m={bu:"62,65,61,75,74,69,66,79",mu:"65,66,66,65,63,74,5f,6d,61,6b,65,75,70",s:"65,66,66,65,63,74,5f,73,74,69,63,6b,65,72,5f,32,64",s3:"65,66,66,65,63,74,5f,73,74,69,63,6b,65,72,5f,33,64",f:"66,69,6c,74,65,72",bg:"62,61,63,6b,67,72,6f,75,6e,64",a:"61,76,61,74,61,72,5f,61,72",av:"61,76,61,74,61,72,5f,76,72"};function y(t){for(var e="",n=t.split(","),r=0;r<n.length;r++)e+=String.fromCharCode(parseInt(n[r],16));return e}function v(t){for(var e="",n=0;n<t.length;n++)""==e?e=t.charCodeAt(n).toString(16):e+=","+t.charCodeAt(n).toString(16);return e}var _="offscreen",b={defaultRoot:"miniprogram_npm/tencentcloud-webar"}},3044:(t,e,n)=>{n.d(e,{UI:()=>d,iV:()=>f,pF:()=>p});var r=n(6309),i=n(1206),o=n(4809),a=n(8586),s=n(201),c=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},l=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},u=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))},h=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},f={};function d(){f={}}var p=function(){function t(){this._inited=!1,this._initing=!1}return t.prototype.getLoader=function(){return this._loader},t.prototype.getIndeLoader=function(){return this._initLoader()},t.prototype.readJSON=function(t,e){var n=this.encLoader.getFileFromCache(t,e).file;if(n&&n.length)return JSON.parse((0,o.T8)(n))},t.prototype._initLoader=function(){var t=this,e=new i.aN,n=this.getPreMiddleware();return e.pre(n),e.use((function(n,r){if("json"!==n.extension){var o=n.data;if(i.P6.kN[n.name])r();else{var a=i.xE.fromBuffer(o.file,o.width,o.height,{alphaMode:i.iw.UNPACK,resolution:(0,s.u)()});i.VL.addToCache(a.baseTexture,n.name),i.xE.addToCache(a,n.name),r()}}else t.handleSpriteSheet(e,n,r)})),e},t.prototype.removeFromCache=function(t){this.encLoader&&this.encLoader.removeFromCache(t)},t.prototype.init=function(){return u(this,void 0,Promise,(function(){var t=this;return h(this,(function(e){return this._inited?[2,Promise.resolve()]:this._initing?[2,new Promise((function(e,n){var r,i=function(){t._inited?(e(),clearTimeout(r)):r=setTimeout(i,50)};r=setTimeout(i,50)}))]:(this._initing=!0,[2,new Promise((function(e,n){var i=new r.e({});i.init().then((function(){t._inited=!0,t._initing=!1,t.encLoader=i,t._loader=t._initLoader(),e()})).catch((function(t){}))}))])}))}))},t.prototype.preload=function(t){return u(this,void 0,void 0,(function(){var e;return h(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.encLoader.preload(t)];case 1:return n.sent(),[3,3];case 2:return e=n.sent(),[2,Promise.reject(e)];case 3:return[2]}}))}))},t.prototype.getPreMiddleware=function(){var t=this;return function(e,n){if(i.P6.kN&&e&&i.P6.kN[e.name])n();else{var r=e.url,a=t.encLoader.getFileFromCache(r),s=a.zip,c=a.file,l=e.name;if(l.indexOf("https")>-1&&l.indexOf("|")>-1){var u=l.split("|")[0],h=t.encLoader.getFileFromCache(r,u);s=h.zip,c=h.file}if(/\.(json)$/i.test(r))return e.data=JSON.parse((0,o.T8)(c)),e.complete(),void n();/\.(gif|jpe?g|tiff?|png|webp|bmp)$/i.test(r)?(e.data={file:c,width:s.__config[r]?s.__config[r].width:800,height:s.__config[r]?s.__config[r].height:800},e.complete(),n()):(e.data={file:c},e.complete(),n())}}},t.prototype.handleSpriteSheet=function(t,e,n){var r="".concat(e.name,"_image");if(e.data&&e.data.frames&&!t.resources[r]&&!i.P6.kN[r]){var o={crossOrigin:e.crossOrigin,metadata:e.data.meta},a=e.data.meta.image,c=e.url.split("/");c.pop(),c.push(a),a=c.join("/");var l=this.getLoader();l.add(r,a,o,(function(t){var r=i.xE.fromBuffer(t.data.file,t.data.width,t.data.height,{alphaMode:i.iw.UNPACK}),o=new i.c2(r,e.data,e.url+"@".concat((0,s.u)(),"x"));o.parse((function(){e.spritesheet=o,e.textures=o.textures,f[e.name]=e,n()}))})),l.load((function(t,e){}))}else n()},t=c([a.e,l("design:paramtypes",[])],t)}()},6309:(t,e,n)=>{n.d(e,{e:()=>b});var r=n(4809),i=n(5127),o=n(8586),a=n(3553),s=n(6878);const c=function(){function t(){this.projectName="webar-db",this.objectStoreName="webar-object-store","undefined"!=typeof self&&self?this.window=self:"undefined"!=typeof window&&window&&(this.window=window)}return t.prototype.checkSupport=function(){var t=this.window;return!(void 0===t||!t||!t.indexedDB)},t.prototype.init=function(){var t=this;return new Promise((function(e,n){if(t.checkSupport()){if(t.db)return void e(t.db);var r=t.window.indexedDB.open(t.projectName,1);r.onsuccess=function(n){t.db=n.target.result,e(t)},r.onupgradeneeded=function(e){var n=e.target.result;n.objectStoreNames.contains(t.objectStoreName)||n.createObjectStore(t.objectStoreName)},r.onerror=function(t){n(t)}}else n()}))},t.prototype.getItem=function(t){var e=this;return new Promise((function(n,r){if(e.db){var i=e.db.transaction(e.objectStoreName).objectStore(e.objectStoreName).get(t);i.onsuccess=function(){return n(i.result)},i.onerror=function(){return r()}}else r()}))},t.prototype.setItem=function(t,e){var n=this;return new Promise((function(r,i){if(n.db){var o=n.db.transaction(n.objectStoreName,"readwrite").objectStore(n.objectStoreName).put(e,t);o.onsuccess=function(){return r(e)},o.onerror=function(){return i()}}else i()}))},t.prototype.removeItem=function(t){var e=this;return new Promise((function(n,r){if(e.db){var i=e.db.transaction(e.objectStoreName,"readwrite").objectStore(e.objectStoreName).delete(t);i.onsuccess=function(){return n(null)},i.onerror=function(){return r()}}else r()}))},t.prototype.keys=function(){var t=this;return new Promise((function(e,n){if(!t.db)return n();var r=t.db.transaction(t.objectStoreName).objectStore(t.objectStoreName).getAllKeys();r.onsuccess=function(){return e(r.result)},r.onerror=function(){return n()}}))},t.prototype.clear=function(){var t=this;return new Promise((function(e,n){if(!t.db)return n();var r=t.db.transaction(t.objectStoreName,"readwrite").objectStore(t.objectStoreName).clear();r.onsuccess=function(){return e(null)},r.onerror=function(){return n()}}))},t}();var l=n(401),u=n(6109),h=n(9984),f=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},d=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},p=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))},g=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},m=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},y=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},v=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};var _=function(){function t(t){this.id=Math.floor(1e8*Math.random()),this.size=t,this.data=new Map}return t.prototype.put=function(t,e){if(u.D4.info("put",t,this.data.keys(),this.id),t.indexOf(l.c9)>-1&&(this.common_cache=e,this.common_cache_domain=t),this.data.has(t))return u.D4.info("replace key",t),this.data.delete(t),void this.data.set(t,e);if(u.D4.info("check need remove old",this.data.size,this.size),this.data.size>=this.size){var n=this.data.keys().next().value;u.D4.info("delete key",n),this.data.delete(n)}u.D4.info("set key",t),this.data.set(t,e)},t.prototype.get=function(t){if(t.indexOf(l.c9)>-1)return this.common_cache;if(!this.data.has(t))return!1;var e=this.data.get(t);return this.data.delete(t),this.data.set(t,e),e},Object.defineProperty(t.prototype,"keys",{get:function(){return Array.from(this.data.keys()).concat([this.common_cache_domain])},enumerable:!1,configurable:!0}),t.prototype.delete=function(t){this.data.delete(t)},t.prototype.clear=function(){this.data.clear()},t=f([o.e,d("design:paramtypes",[Number])],t)}(),b=function(){function t(t){this._inited=!1,this._initing=!1,this.id=Math.floor(1e8*Math.random()),this._cache=new _(7),this._loadingMap={},t=t||{},this.config=t,this.arCacheStorage=new c}return t.prototype.init=function(){return p(this,void 0,Promise,(function(){var t=this;return g(this,(function(e){return this._inited?[2,Promise.resolve()]:this._initing?[2,new Promise((function(e,n){var r,i=function(){t._inited?(e(),clearTimeout(r)):r=setTimeout(i,50)};r=setTimeout(i,50)}))]:(this._initing=!0,this._c=new i.Y,[2,this._c.init().then((function(){t._inited=!0,t._initing=!1,setTimeout((function(){t.checkAndClearOldFileCache()}),9999)}))])}))}))},t.prototype.getSingletonWorker=function(){var t=this;return this.worker||(this.worker=new Worker,this.worker.onmessage=function(e){var n=e.data,i=n.p1,o=n.p2,a=n.length,s=(n.i,n.u),c=n.error;if(c)t._error=new Error(c.message);else{var l=new Uint8Array(a);l.set(i),l.set(o,i.length),t.setFileCache(s,l);var h=t._c,f=h.run(i,"");h.finish("");var d=new Uint8Array(a);d.set(f),d.set(o,f.length);var p=(0,r.GZ)(d);u.D4.info("preload finish:",s),t._setConfig(p).then((function(){t._cache.put(s,p),delete t._loadingMap[s]}))}}),this.worker},t.prototype.preload=function(t,e,n){return void 0===e&&(e=!0),void 0===n&&(n=1),p(this,void 0,Promise,(function(){var n,r,i=this;return g(this,(function(o){if(this._loadingMap[t])return[2,this.waitUntilPreload(t)];for(n in this._loadingMap[t]=!0,this._loadingMap)n!==t&&(this._loadingMap[n]=!1);return this._cache.get(t)?(delete this._loadingMap[t],[2,Promise.resolve()]):(r=a.Z.findId(t)||+new Date,[2,new Promise((function(n,o){return p(i,void 0,void 0,(function(){var i,o,a,c=this;return g(this,(function(l){switch(l.label){case 0:return[4,(0,h.pe)(r,t).catch((function(t){s.Nd.trigger("error",t)}))];case 1:return l.sent(),i=wx.getFileSystemManager(),o={},a="".concat(wx.env.USER_DATA_PATH,"/ar/").concat(r,".zip"),console.log("zip 处理",a),i.readZipEntry({filePath:a,entries:"all",success:function(a){var s=a.entries;for(var l in s)o[l]=new Uint8Array(s[l].data);c._cache.put(t,o),delete c._loadingMap[t],c._setConfig(o).then((function(){e||i.unlink({filePath:"".concat(wx.env.USER_DATA_PATH,"/ar/").concat(r,".bin"),success:function(){},fail:function(t){console.log("delete local cache fail",t)}}),n()}))},fail:function(t){console.log(t.errMsg)}}),[2]}}))}))}))])}))}))},t.prototype.getFileFromCache=function(t,e){var n=this._find(t,e);return{zip:n.c,file:n.f}},t.prototype.getGroupFromCache=function(t){return this._cache.get(t)},t.prototype._find=function(t,e){var n,r,i,o,a=this._cache,s=t;if(e){var c=a.get(e);return c&&(o=c[s]),{c,f:o}}var l=a.keys.reverse();try{for(var u=m(l),h=u.next();!h.done;h=u.next()){var f=h.value;if(o=(i=a.get(f))[s])break}}catch(t){n={error:t}}finally{try{h&&!h.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}return{c:i,f:o}},t.prototype._setConfig=function(t){return p(this,void 0,Promise,(function(){return g(this,(function(e){return[2,new Promise((function(e){if(t.__config)e();else{var n=t["__config.json"];if(n){var i=JSON.parse((0,r.T8)(n));t.__config=i,e()}else e()}}))]}))}))},t.prototype.waitUntilPreload=function(t){var e=this;return new Promise((function(n,r){var i=setInterval((function(){e._cache.get(t)&&(clearInterval(i),n())}),50)}))},t.prototype.loadScript=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return p(this,void 0,Promise,(function(){var n=this;return g(this,(function(i){return[2,new Promise((function(i,o){var a=n._cache.keys,s=t.split("/").pop();return a.forEach((function(t){var o=n._cache.get(t),a=o[s];if(o[s]){var c=(0,r.T8)(a),l=new Function(""+c),u=l.call.apply(l,v([null],y(e),!1));return i(u)}})),u.kg.info("this._cache",n.id,n._cache),o({message:"file not found in cache",url:t})}))]}))}))},t.prototype.hijackFetch=function(t,e,n){var r,i=this;return void 0===n&&(n=!1),e&&"string"==typeof e&&(r=e),new Promise((function(e){var o,a=i._cache.keys;if(o=n?t:t.split("/").pop(),r){var s=i._cache.get(r)[o];return s?e(s):e()}a.forEach((function(t){var n=i._cache.get(t)[o];if(n)return e(n)}))}))},t.prototype.removeFromCache=function(t){this._cache.delete(t)},t.prototype.clearCache=function(){console.trace("clearCache"),this._cache.clear(),this.worker&&(this.worker.terminate(),this.worker=null)},t.prototype.clearCacheTmp=function(t){var e,n;void 0===t&&(t=[]);try{for(var r=m(this._cache.keys),i=r.next();!i.done;i=r.next()){var o=i.value;-1===t.indexOf(o)&&this._cache.delete(o)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}},t.prototype.fetchWithSubPackage=function(t,e){return p(this,void 0,void 0,(function(){var n,r,i,o,a,s;return g(this,(function(c){switch(c.label){case 0:if(!(e>1&&Blob.prototype.arrayBuffer))return[3,3];for(r=1048576,i=[],o=function(e){var n=e*r,o=n+r-1,a="bytes=".concat(n,"-").concat(o),s=new Promise((function(n,r){fetch("".concat(t,"?id=00").concat(e),{method:"GET",mode:"cors",headers:{range:a}}).then((function(t){return t.arrayBuffer()})).then((function(t){n(t)}))}));i.push(s)},a=0;a<e;a++)o(a);return[4,Promise.all(i)];case 1:return s=c.sent(),[4,new Blob(s).arrayBuffer()];case 2:return n=c.sent(),[3,6];case 3:return[4,fetch(t,{method:"GET",mode:"cors"}).catch((function(t){}))];case 4:return[4,c.sent().arrayBuffer().catch((function(t){u.kg.error("get arraybuffer error",t)}))];case 5:n=c.sent(),c.label=6;case 6:return[2,n]}}))}))},t.prototype.checkFileCacheBlackList=function(t){return!!{"effect.bin":!0}[t]},t.prototype.setFileCache=function(t,e){var n=this;try{this.arCacheStorage.checkSupport()&&this.arCacheStorage.init().then((function(){var r=t.split("/").pop();if(!n.checkFileCacheBlackList(r)){var i="".concat("1.0.23","/").concat(r);n.arCacheStorage.setItem(i,e)}}))}catch(t){}},t.prototype.fetchFromFileCache=function(t){var e=this;return new Promise((function(n,r){e.arCacheStorage.checkSupport()?e.arCacheStorage.init().then((function(){var r=t.split("/").pop(),i="".concat("1.0.23","/").concat(r);e.checkFileCacheBlackList(r)?n(null):e.arCacheStorage.getItem(i).then((function(t){n(t||null)}))})).catch((function(){n(null)})):n(null)}))},t.prototype.checkAndClearOldFileCache=function(){var t=this;this.arCacheStorage.checkSupport()&&this.arCacheStorage.init().then((function(){t.arCacheStorage.keys().then((function(e){if(e&&e.length)for(var n="".concat("1.0.23"),r=0;r<e.length;r++){var i=e[r];i&&i.indexOf(n)<0&&t.arCacheStorage.removeItem(i)}}))})).catch((function(){}))},t=f([o.e,d("design:paramtypes",[Object])],t)}()},337:(t,e,n)=>{n.d(e,{Z:()=>o});const r={"0001":"当前环境不支持","0002":"请先开启摄像头及麦克风权限","0003":"去设置","0004":"输入不合法","0005":"缺少输入, 请设置input或camera参数","0006":"输入图片不合法","0007":"无权访问此接口,请确认License版本信息","0008":"创建录制器失败","0009":"录制启动失败","0010":"录制器停止失败","0011":"小程序读取缓存失败","0012":"存储空间不足,前往设置-通用-存储空间,清除缓存","0013":"需要重新进入页面使授权生效","0014":"当前SDK版本过低,部分特效无法正确显示,请升级SDK版本","0015":"intensity 的值超出范围(0-1),默认为 1","0016":"输入不合法, 远程链接只支持输入图片类型","0018":"当前浏览器特性支持不足,可能会出现卡顿情况,请使用新版 Chrome/Safari/微信体验","0019":"当前浏览器不支持,请使用新版 Chrome/Safari/微信体验","0020":"当前浏览器不支持,若Chrome请开启浏览器硬件加速","0021":"缺少鉴权参数licenseKey","0022":"缺少鉴权参数appId","0023":"输入不合法, 请传input或camera参数","0024":"无权访问此接口,请确认License版本信息","0025":"基础库加载失败","0026":"上下文丢失,请重新初始化","0027":"渲染耗时大,请尝试减小分辨率或刷新页面","0028":"未捕获异常","0029":"没有摄像头权限,请到设置-隐私中开启相关权限","0030":"调起用户摄像头失败","0031":"摄像头或麦克风中断,请手动刷新页面","0032":"分辨率变化导致特效丢失,请重新设置","0033":"特效加载失败","0034":"无法解析的数据","0035":"已授权,仍无法访问摄像头或麦克风设备","0036":"没有麦克风权限,请到设置-隐私中开启相关权限",1001:"美妆",1002:"贴纸",1003:"滤镜",1004:"3D特效",1005:"VR人像",1006:"头像"},i={"0001":"Unsupported environment","0002":"Please enable the camera and microphone permissions","0003":"Setting","0004":"Invalid input","0005":'Require "input" or "camera" paramate',"0006":"Invalid image input","0007":"API not accessible, Please confirm the License version","0008":"Failed to create the recorder","0009":"Failed to start recording","0010":"Failed to stop the recorder","0011":"Failed to read WX file cache data","0012":"Out of storage space, go to Settings - General-Storage Space and clear the cache","0013":"Need to enter the page again for the license to take effect","0014":"SDK version is too old, some features are not available. Please update the SDK","0015":'Require a valid value (0-1) for "intensity" (the default value is 1)',"0016":'Invalid "input" value, Only the image type can be entered for remote links',"0018":"This browser offers limited support for the SDK, and stutter may occur. Please use the latest version of Chrome, Safari, or WeChat","0019":"This browser is not supported. Please use the latest version of Chrome, Safari, or WeChat","0020":"This browser is not supported. If Chrome is used, enable hardware acceleration for the browser","0021":'The authentication parameter "licenseKey" is missing',"0022":'The authentication parameter "appId" is missing',"0023":'Require "input" or "camera" parameter',"0024":"The interface is not accessible. Please check the License version","0025":"Failed to load the basic libraries","0026":"The context is lost. Please reinitialize the SDK again","0027":"The rendering took too long. Try reducing the resolution or refreshing the page","0028":"No errors captured","0029":"This browser does not have camera permission, please go to Settings - Privacy turn Camera on","0030":"Failed to start the camera","0031":"The camera or microphone is disconnected. Please refresh","0032":"Resolution changes cause effects to be lost, Please reset","0033":"Failed to load the effects","0034":"Unrecognized response data","0035":"Authorized, but still unable to access camera or microphone device","0036":"This browser does not have microphone permission, please go to Settings - Privacy turn Microphone on",1001:"Makeup",1002:"Sticker",1003:"Filter",1004:"3D Effect",1005:"VR",1006:"AR"};const o=new(function(){function t(t){void 0===t&&(t="zh"),this._lang=t}return Object.defineProperty(t.prototype,"lang",{get:function(){return this._lang},set:function(t){this._lang=t},enumerable:!1,configurable:!0}),t.prototype.t=function(t){return"zh"===this._lang?r[t]:i[t]},t}())},885:(t,e,n)=>{var r,i,o;n.d(e,{Mj:()=>c,UZ:()=>o,bk:()=>a}),function(t){t[t.Default=0]="Default",t[t.Preview=1]="Preview"}(r||(r={})),function(t){t["2D"]="2d",t["3D"]="3d"}(i||(i={})),function(t){t[t.CAMERA=0]="CAMERA",t[t.VIDEO=1]="VIDEO",t[t.CANVAS=2]="CANVAS",t[t.IMAGE=3]="IMAGE",t[t.MEDIA_STREAM=4]="MEDIA_STREAM"}(o||(o={}));var a,s,c={CAMERA:0,CANVAS2D:2,IMAGE:3};!function(t){t[t.CAMERA=0]="CAMERA",t[t.VIDEO=1]="VIDEO",t[t.CANVAS=2]="CANVAS",t[t.IMAGE=3]="IMAGE",t[t.MEDIA_STREAM=4]="MEDIA_STREAM"}(a||(a={})),function(t){t[t.WORKER=0]="WORKER",t[t.DEFAULT=1]="DEFAULT"}(s||(s={}))},1084:(t,e,n)=>{n.d(e,{M:()=>a,o:()=>s});var r=n(6109),i=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))},o=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};function a(t){return function(e,n,a){var s=a.value;return"AsyncFunction"===s.constructor.name?a.value=function(){for(var e=[],a=0;a<arguments.length;a++)e[a]=arguments[a];return i(this,void 0,void 0,(function(){return o(this,(function(i){switch(i.label){case 0:return[4,s.apply(this,e).catch((function(e){r.kg.info("".concat(t,".").concat(n," call failed"),e)}))];case 1:return[2,i.sent()]}}))}))}:a.value=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];try{var o=s.apply(this,e);return o}catch(e){r.kg.info("".concat(t,".").concat(n," call failed"),e)}},a}}function s(t){return function(e,n,a){var s=a.value;return a.value=function(){for(var e=[],a=0;a<arguments.length;a++)e[a]=arguments[a];return i(this,void 0,void 0,(function(){return o(this,(function(i){switch(i.label){case 0:return[4,s.apply(this,e).catch((function(e){r.kg.info("".concat(t,".").concat(n," call failed"),e)}))];case 1:return[2,i.sent()]}}))}))},a}}},5127:(t,e,n)=>{n.d(e,{Y:()=>p});var r=n(337),i=n(6878),o=n(8586),a=n(401),s=n(4809),c=n(6879),l=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},u=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},h=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))},f=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};"undefined"==typeof WXWebAssembly&&i.Nd.trigger("error",{code:c.U.ENVIRAONMENT_NOT_COMPATIBLE,message:r.Z.t("0019")});var d=WXWebAssembly,p=function(){function t(){this._inited=!1,this._initing=!1}return t.prototype.init=function(){return h(this,void 0,Promise,(function(){var t=this;return f(this,(function(e){return this._inited?[2,Promise.resolve()]:this._initing?[2,new Promise((function(e,n){var r,i=function(){t._inited?(e(),clearTimeout(r)):r=setTimeout(i,100)};r=setTimeout(i,100)}))]:(this._initing=!0,[2,new Promise((function(e,n){d.instantiate("/".concat(a.F3.defaultRoot,"/0.wasm.br"),{}).then((function(n){t._wasm=n.instance.exports,t._initWasmWrapper(),t._inited=!0,t._initing=!1,e()})).catch((function(t){console.log("wasm instantiate error",t)}))}))])}))}))},t.prototype._initWasmWrapper=function(){var t,e=this._wasm,n=e.memory,r=e.__wbindgen_malloc,i=e.__wbindgen_realloc;function o(){return null!=t&&t.buffer===n.buffer||(t=new Uint8Array(n.buffer)),t}var c,l,u=0;function h(t){for(var e=t.length,n=r(e),a=o(),s=0;s<e;s++){var l=t.charCodeAt(s);if(l>127)break;a[n+s]=l}if(s!==e){0!==s&&(t=t.slice(s)),n=i(n,e,e=s+3*t.length);var h=o().subarray(n+s,n+e);s+=c(t,h).written}return u=s,n}function f(){return null!=l&&l.buffer===n.buffer||(l=new Int32Array(n.buffer)),l}function d(t,e){return(0,s.T8)(o().subarray(t,t+e))}c=function(t,e){var n,r,i=new Array;n=t.length;for(var o=0;o<n;o++)(r=t.charCodeAt(o))>=65536&&r<=1114111?(i.push(r>>18&7|240),i.push(r>>12&63|128),i.push(r>>6&63|128),i.push(63&r|128)):r>=2048&&r<=65535?(i.push(r>>12&15|224),i.push(r>>6&63|128),i.push(63&r|128)):r>=128&&r<=2047?(i.push(r>>6&31|192),i.push(63&r|128)):i.push(255&r);var a=new Int8Array(i.length);for(var o in i)a[o]=i[o];return e.set(a),{read:t.length,written:a.length}},this.run=function(t,n){var i,s,c=e[(0,a.rR)(a.Cb)],l=e.__wbindgen_free,d=(s=r(1*(i=t).length),o().set(i,s/1),u=i.length,s),p=u;try{c(8,d,p,h(n),u);var g=f(),m=function(t,e){return o().subarray(t/1,t/1+e)}(g[2],g[3]).slice();return l(g[2],1*g[3]),m}finally{t.set(o().subarray(d/1,d/1+p)),l(d,1*p)}},this.finish=function(t){(0,e.finish)(h(t),u)},this.run2=function(t,n,r){var i=e.__wbindgen_free,o=(e[(0,a.rR)(a.Gb)](8,h(t),u,h(n),u,h(r),u),f()),s=d(o[2],o[3]).slice();return i(o[2],1*o[3]),s},this.a_de=function(t){var n=e.__wbindgen_free,r=(e.a_de(8,h(t),u),f()),i=d(r[2],r[3]).slice();return n(r[2],1*r[3]),i},this.a_en=function(t){var n=e.__wbindgen_free,r=(e.a_en(8,h(t),u),f()),i=d(r[2],r[3]).slice();return n(r[2],1*r[3]),i}},t=l([o.e,u("design:paramtypes",[])],t)}()},6879:(t,e,n)=>{n.d(e,{U:()=>r});var r={ENVIRAONMENT_NOT_COMPATIBLE:10000001,ENVIRAONMENT_NOT_FAST:10000006,WEBGL_CONTEXT_LOST:10000002,RENDER_SLOW:10000003,INPUT_ERROR:10000005,PRELOAD_EFFECT_ERROR:10000101,SET_EFFECT_ERROR:10001101,SET_FILTER_ERROR:10001102,SET_INTENSITY_ERROR:10001103,SDK_DISABLED:10001104,INVALID_EFFECT:10001105,GET_CAMERA_ERROR:10001201,MEDIA_INTERRUPT_ERROR:10001202,GET_CAMERA_NOT_ALLOWED:10001203,GET_MEDIA_NOT_FOUND:10001204,GET_MICROPHONE_NOT_ALLOWED:10001205,MEDIA_SIZE_ERROR:10001206,EFFECT_LOAD_ERROR:10003001,CORE_LOAD_ERROR:10003002,AUTH_NEED_RELOAD_PAGE:10004001,AUTH_LICENSEKEY_MISS:20002001,AUTH_APPID_MISS:20002001,AUTH_FAIL:20001001,REQUEST_FAIL:20001002,AUTH_API_FAIL:20001003,SIGNATURE_TIMEOUT:20001004,AUTHORIZE_TIMEOUT:20001005,START_REACORD_FAIL:30000001,STOP_REACORD_FAIL:30000002,READ_FILE_CACHE_FAIL:30000003,REQUEST_FILE_FAIL:30000004,UNCAUGHT_ERROR:4e7,SDK_VERSION_LOW_ERROR:40000001,SEGMENTATION_NOT_AVAILABLE:40000002,INPUT_NODE_RESIZE:50000001,RESIZE_EFFECT_LOST:50000002}},6878:(t,e,n)=>{n.d(e,{E5:()=>o,Nd:()=>r,Q4:()=>i,SZ:()=>a});var r,i=function(){function t(){this._events={}}return t.prototype.clear=function(){this._events={}},t.prototype.on=function(t,e){return this._events[t]||(this._events[t]=[]),this._events[t].push(e)-1},t.prototype.trigger=function(t,e,n){var r=this;if(void 0===n&&(n=!1),"error"!==t){var i=this._events[t];i&&i.length&&i.forEach((function(t){t(e)}))}else setTimeout((function(n){var i=r._events[t];i&&i.length&&i.forEach((function(t){t(e)}))}),100)},t.prototype.off=function(t,e,n){var r=this._events[t];if(r&&r.length)if(void 0!==n)r.splice(n,1);else{var i=r.findIndex((function(t){return t===e}));i>-1&&r.splice(i,1)}},t.prototype.once=function(t,e){var n,r=this;this._events[t]||(this._events[t]=[]);var i=function(o){e(o),r.off(t,i,n)};n=this.on(t,i)},t}(),o=function(){return r||(r=new i),r},a=function(){r=null}},6109:(t,e,n)=>{n.d(e,{D4:()=>l,bH:()=>u,b_:()=>c,jl:()=>s,kg:()=>a});var r=n(5901),i=n.n(r);i().useDefaults(),i().setLevel(i().INFO);var o=new Set,a=i();function s(t){return o.add(t),i().get(t)}var c=s("set-effect"),l=s("resource-load"),u=s("debug");s("gl-pipeline")},1347:(t,e,n)=>{function r(t,e){t.z=t.z||0,e.z=e.z||0;var n=Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)+Math.pow(t.z-e.z,2);return Math.pow(n,.5)}n.d(e,{Sp:()=>r})},201:(t,e,n)=>{n.d(e,{u:()=>r});QualityManager.instance.gpu_detector.level;var r=function(){return 1}},8586:(t,e,n)=>{n.d(e,{e:()=>i});var r=Symbol(),i=function(t){return new Proxy(t,{construct:function(t,e,n){return t.prototype!==n.prototype?Reflect.construct(t,e,n):(t[r]||(t[r]=Reflect.construct(t,e,n)),t[r])}})}},617:(t,e,n)=>{n.d(e,{M:()=>N});var r={};n.r(r),n.d(r,{FC:()=>l,CV:()=>s,rp:()=>c,HN:()=>T,X2:()=>g,Ej:()=>w,Nj:()=>d,Bb:()=>f,dE:()=>u,oC:()=>x,MX:()=>b,aj:()=>y,G4:()=>v,m1:()=>_,sP:()=>o,dO:()=>a,bb:()=>m,Ed:()=>p,he:()=>h,aV:()=>E,AE:()=>S,aW:()=>O,zk:()=>R,Op:()=>P,Cg:()=>C,Fx:()=>k,mw:()=>i});const i={au:"/r",ti:"/m",ef:"/t",ae:"/c"},o=[61,62,76,63,58,59,75,60],a=[42,71,70,69,68,41,40,39,38],s=[52,57,73,56,55,54,72,53],c=[33,64,65,66,67,34,35,36,37],l=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,121,122,118,116,115,114,110,111,112,113,117,120,119],u=[84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,106,107,108,109],h=[474,475,476,477],f=[469,470,471,472],d=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],p=[332,284,251,389,356,454,323,361,288,397,365,379,378],g=[52,57,73,56,55,54,72,53],m=[61,62,76,63,58,59,75,60],y=[80,82,47,48,49,50,51,81,83],v=[43,44,45,46],_=[[{y:120,x:0},{y:112,x:112},110,{y:115,x:115},{y:122,x:32}],[{y:110,x:122},{y:121,x:121},{y:28,x:32},{y:24,x:25},{y:16,x:21}],[{y:19,x:21},16,{y:13,x:11}],[{y:110,x:120},{y:119,x:119},{y:4,x:0},{y:8,x:7},{y:16,x:11}]],b=[96,106,97,98,99,108,100],x=[96,107,103,102,101,109,100],w=[52,53,72,54,55],T=[52,57,73,56,55],C={contour_left1:0,contour_left2:0,contour_left3:0,contour_left4:2,contour_left5:0,contour_left6:0,contour_left7:0,contour_left8:0,contour_left9:9,contour_left10:9,contour_left11:0,contour_left12:0,contour_right1:0,contour_right2:0,contour_right3:0,contour_right4:30,contour_right5:0,contour_right6:0,contour_right7:0,contour_right8:0,contour_right9:23,contour_right10:23,contour_right11:0,contour_right12:0,contour_left_limit_point:0,contour_right_limit_point:0,contour_chin:16,mouth_lower_lip_bottom:43,left_eye_left_corner:52,left_eye_right_corner:55,left_eye_top:72,left_eye_bottom:73,left_eye_center:74,right_eye_left_corner:58,right_eye_right_corner:61,right_eye_top:75,right_eye_bottom:76,right_eye_center:77,nose_bridge1:0,nose_bridge2:0,nose_bridge3:0,nose_bridge4:43,nose_bridge5:44,nose_bridge6:45,nose_bridge7:46,nose_tip:47,nose_left1:82,nose_left2:48,nose_right1:83,nose_right2:50,nose_tip1:46,nose_bottom:49,lip_top_left:84,lip_top_left_target:57,lip_top_right:90,lip_top_right_target:24,lip_top_center:87,lip_top_center_target:49,lip_bottom_left:94,lip_bottom_left_target:13,lip_bottom_right:92,lip_bottom_right_target:18,lip_bottom_center:93,lip_bottom_center_target:16,lip_inner_top:98,lip_inner_bottom:102,forehead_top_center:10,eyebrow_center:43,forehead_left:113,left_eyebrow_center:35,forehead_right:116,right_eyebrow_center:40,chin_left:13,chin_right:19},S=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122],k=[43,44,79,43,78,44,44,58,79,80,45,44,44,81,58,58,59,79,79,68,43,81,63,58,58,63,59,78,55,44,59,68,79,67,54,78,78,54,55,45,81,44,67,78,43,63,105,59,59,69,68,77,105,63,76,77,63,37,67,43,60,75,105,105,75,59,81,76,63,54,56,55,55,80,44,69,38,68,68,38,43,56,80,55,45,46,81,80,46,45,70,69,75,75,69,59,38,37,43,72,104,54,54,104,56,56,73,80,72,54,66,104,74,56,66,54,67,104,53,74,76,62,77,77,60,105,28,62,76,62,60,77,57,73,74,74,73,56,51,83,81,81,83,76,37,66,67,70,39,69,69,39,38,111,36,37,73,82,80,80,48,46,50,51,81,50,81,46,49,50,46,60,70,75,71,70,60,110,37,38,37,36,66,53,104,72,53,57,74,47,48,80,30,61,62,62,61,60,48,49,46,82,47,80,53,72,65,73,4,82,65,72,66,36,65,66,53,52,57,70,40,39,112,35,36,41,40,70,64,52,53,84,47,82,61,71,60,36,35,65,65,64,53,110,38,114,86,49,48,87,88,49,49,88,50,50,89,51,85,48,47,85,86,48,85,84,96,86,87,49,71,41,70,108,89,99,88,89,50,51,90,83,29,30,62,34,64,65,86,98,87,99,89,88,106,85,96,32,42,61,61,42,71,71,42,41,99,98,101,89,90,51,99,88,98,99,109,108,108,100,89,98,88,87,99,101,109,35,34,65,64,33,52,109,100,108,100,90,89,102,98,103,97,98,86,98,102,101,85,97,86,107,103,97,97,103,98,85,47,84,85,106,97,96,107,106,106,107,97,114,39,115,114,38,39,35,113,34,115,40,116,115,39,40,84,82,7,4,73,57,34,33,64,52,2,57,116,40,41,109,91,100,100,91,90,101,91,109,92,91,101,92,101,102,110,111,37,120,119,33,29,62,28,28,76,83,30,31,61,27,83,26,27,28,83,107,95,103,103,94,102,96,95,107,84,95,96,111,112,36,31,32,61,42,122,41,32,121,42,93,92,102,118,116,41,115,127,114,26,83,25,95,94,103,94,93,102,121,122,42,129,122,121,1,2,52,2,3,57,84,11,95,0,1,52,3,4,57,25,83,90,25,90,24,117,113,123,112,113,35,33,0,52,119,0,33,120,33,34,4,5,82,122,118,41,117,120,34,119,137,0,24,90,23,5,6,82,95,12,94,113,117,34,23,90,22,6,7,82,22,90,21,90,91,21,7,8,84,21,91,20,8,9,84,94,15,93,9,10,84,20,91,19,91,92,19,10,11,84,19,92,18,11,12,95,18,92,17,12,13,94,17,92,93,13,14,94,16,17,93,14,15,94,15,16,93,31,129,32,32,129,121,122,128,118,130,129,31,130,31,30,130,30,29,130,29,28,130,28,27,130,27,131,27,26,131,26,25,131,131,24,132,131,25,24,24,23,132,23,22,132,136,137,120,120,137,119,0,137,1,1,138,2,2,138,3,3,138,4,4,138,5,5,139,6,6,139,7,7,139,8,8,140,9,132,21,133,132,22,21,21,20,133,137,138,1,9,140,10,10,140,11,11,135,12,138,139,5,12,135,13,13,135,14,129,128,122,118,127,116,116,127,115,114,126,110,133,20,19,133,19,18,133,18,17,123,136,117,117,136,120,123,113,112,123,112,111,134,17,16,134,133,17,134,16,15,135,15,14,139,140,8,140,135,11,128,127,118,124,123,111,135,134,15,124,111,110,127,126,114,126,125,110,125,124,110],E=[.488189826866528,.46679085,.488189826866528,.50658295,.516143625,.471960025,.488189826866528,.46679085,.4599979375,.4717894375,.488189826866528,.50658295,.488189826866528,.50658295,.5447991249999999,.48110985,.516143625,.471960025,.4410622,.565803525,.488189826866528,.5462991,.488189826866528,.50658295,.488189826866528,.50658295,.5369319124999999,.5654357875,.5447991249999999,.48110985,.5447991249999999,.48110985,.5602547125,.46035325,.516143625,.471960025,.516143625,.471960025,.542807575,.42128374999999996,.488189826866528,.46679085,.5369319124999999,.5654357875,.568110275,.48251628750000003,.5447991249999999,.48110985,.5447991249999999,.48110985,.568110275,.48251628750000003,.5602547125,.46035325,.4599979375,.4717894375,.42883299999999996,.48068869999999997,.488189826866528,.50658295,.5602547125,.46035325,.542807575,.42128374999999996,.516143625,.471960025,.434630275,.421406325,.4135695,.4596802125,.4599979375,.4717894375,.4599979375,.4717894375,.4135695,.4596802125,.42883299999999996,.48068869999999997,.488189826866528,.5462991,.5369319124999999,.5654357875,.488189826866528,.50658295,.434630275,.421406325,.4599979375,.4717894375,.488189826866528,.46679085,.568110275,.48251628750000003,.5865549125,.4657776625,.5602547125,.46035325,.5602547125,.46035325,.57607715,.4146392875,.542807575,.42128374999999996,.588454125,.46861568750000004,.5865549125,.4657776625,.568110275,.48251628750000003,.5915551,.4831601,.588454125,.46861568750000004,.568110275,.48251628750000003,.4365127125,.40153225,.434630275,.421406325,.488189826866528,.46679085,.6097423125,.4507424125,.5838801625,.449976875,.5865549125,.4657776625,.5865549125,.4657776625,.5838801625,.449976875,.5602547125,.46035325,.5369319124999999,.5654357875,.5915551,.4831601,.568110275,.48251628750000003,.4135695,.4596802125,.40557155,.48211937499999996,.42883299999999996,.48068869999999997,.42883299999999996,.48068869999999997,.4410622,.565803525,.488189826866528,.50658295,.57607715,.4146392875,.5406618125,.40061935,.542807575,.42128374999999996,.542807575,.42128374999999996,.5406618125,.40061935,.488189826866528,.46679085,.40557155,.48211937499999996,.4410622,.565803525,.42883299999999996,.48068869999999997,.488189826866528,.5462991,.488189826866528,.58580675,.5369319124999999,.5654357875,.4410622,.565803525,.488189826866528,.58580675,.488189826866528,.5462991,.60990175,.4109925,.57607715,.4146392875,.5838801625,.449976875,.5838801625,.449976875,.57607715,.4146392875,.5602547125,.46035325,.5406618125,.40061935,.4365127125,.40153225,.488189826866528,.46679085,.38991549999999997,.4494414125,.3875146875,.465458025,.4135695,.4596802125,.4135695,.4596802125,.3875146875,.465458025,.40557155,.48211937499999996,.40557155,.48211937499999996,.38226482500000003,.4827557,.4410622,.565803525,.38991549999999997,.4494414125,.4135695,.4596802125,.4020055,.415060875,.3875146875,.465458025,.385898325,.46785316250000003,.40557155,.48211937499999996,.4020055,.415060875,.4135695,.4596802125,.434630275,.421406325,.3875146875,.465458025,.3640840875,.45055124999999996,.385898325,.46785316250000003,.5915551,.4831601,.6139756,.476639975,.588454125,.46861568750000004,.588454125,.46861568750000004,.6097423125,.4507424125,.5865549125,.4657776625,.6986649375,.5627347125,.6139756,.476639975,.5915551,.4831601,.6139756,.476639975,.6097423125,.4507424125,.588454125,.46861568750000004,.3599488125,.47632687500000004,.38226482500000003,.4827557,.385898325,.46785316250000003,.385898325,.46785316250000003,.38226482500000003,.4827557,.40557155,.48211937499999996,.537402425,.6126665875,.5512806,.592975125,.5369319124999999,.5654357875,.5369319124999999,.5654357875,.5512806,.592975125,.5915551,.4831601,.4365127125,.40153225,.4020055,.415060875,.434630275,.421406325,.60990175,.4109925,.5750593125000001,.39081712500000004,.57607715,.4146392875,.57607715,.4146392875,.5750593125000001,.39081712500000004,.5406618125,.40061935,.4196925125,.2953909749999999,.4028723125,.3915063125,.4365127125,.40153225,.38226482500000003,.4827557,.427124375,.59353005,.4410622,.565803525,.4410622,.565803525,.46482735,.617807575,.488189826866528,.58580675,.5135869249999999,.617646025,.537402425,.6126665875,.5369319124999999,.5654357875,.5135869249999999,.617646025,.5369319124999999,.5654357875,.488189826866528,.58580675,.488189826866528,.622551,.5135869249999999,.617646025,.488189826866528,.58580675,.6097423125,.4507424125,.60990175,.4109925,.5838801625,.449976875,.64358425,.412451125,.60990175,.4109925,.6097423125,.4507424125,.488189826866528,.2883909749999999,.4365127125,.40153225,.5406618125,.40061935,.4365127125,.40153225,.4028723125,.3915063125,.4020055,.415060875,.3640840875,.45055124999999996,.3875146875,.465458025,.38991549999999997,.4494414125,.3640840875,.45055124999999996,.3599488125,.47632687500000004,.385898325,.46785316250000003,.44135155,.61300865,.46482735,.617807575,.4410622,.565803525,.7079557,.5055197499999999,.6325640875,.46274605,.6139756,.476639975,.6139756,.476639975,.6325640875,.46274605,.6097423125,.4507424125,.46482735,.617807575,.488189826866528,.622551,.488189826866528,.58580675,.427124375,.59353005,.44135155,.61300865,.4410622,.565803525,.3640840875,.45055124999999996,.38991549999999997,.4494414125,.368784175,.41131387500000005,.38226482500000003,.4827557,.282695775,.5610828375,.427124375,.59353005,.368784175,.41131387500000005,.38991549999999997,.4494414125,.4020055,.415060875,.4028723125,.3915063125,.368784175,.41131387500000005,.4020055,.415060875,.3640840875,.45055124999999996,.3412266875,.462774925,.3599488125,.47632687500000004,.60990175,.4109925,.6109665,.3861959125,.5750593125000001,.39081712500000004,.38542595,.3023909749999999,.3679795875,.3866262,.4028723125,.3915063125,.6464699500000001,.39127456250000003,.6109665,.3861959125,.60990175,.4109925,.33567349999999996,.4124759625,.3412266875,.462774925,.3640840875,.45055124999999996,.40563065000000004,.66605925,.44135155,.61300865,.427124375,.59353005,.6325640875,.46274605,.64358425,.412451125,.6097423125,.4507424125,.4028723125,.3915063125,.3679795875,.3866262,.368784175,.41131387500000005,.368784175,.41131387500000005,.33567349999999996,.4124759625,.3640840875,.45055124999999996,.488189826866528,.2883909749999999,.5406618125,.40061935,.5578605625,.2953909749999999,.467591,.6554576874999999,.488189826866528,.622551,.46482735,.617807575,.488189826866528,.660130075,.505873625,.6556971749999999,.488189826866528,.622551,.488189826866528,.622551,.505873625,.6556971749999999,.5135869249999999,.617646025,.5135869249999999,.617646025,.537864,.66081345,.537402425,.6126665875,.436492575,.659831,.46482735,.617807575,.44135155,.61300865,.436492575,.659831,.467591,.6554576874999999,.46482735,.617807575,.436492575,.659831,.40563065000000004,.66605925,.4149069625,.6694827499999999,.467591,.6554576874999999,.488189826866528,.660130075,.488189826866528,.622551,.64358425,.412451125,.6464699500000001,.39127456250000003,.60990175,.4109925,.54207058125,.6724125624999999,.537864,.66081345,.523628625,.6757999375,.505873625,.6556971749999999,.537864,.66081345,.5135869249999999,.617646025,.537402425,.6126665875,.5699740624999999,.665637625,.5512806,.592975125,.7040264999999999,.5342099,.7079557,.5055197499999999,.6139756,.476639975,.33314059999999995,.3906893125,.33567349999999996,.4124759625,.368784175,.41131387500000005,.467591,.6554576874999999,.488189826866528,.679725375,.488189826866528,.660130075,.523628625,.6757999375,.537864,.66081345,.505873625,.6556971749999999,.43286249374999997,.6727749375,.436492575,.659831,.4149069625,.6694827499999999,.7120584999999999,.4479282,.67428775,.41762,.6325640875,.46274605,.6325640875,.46274605,.67428775,.41762,.64358425,.412451125,.64358425,.412451125,.67428775,.41762,.6464699500000001,.39127456250000003,0,0,0,0,0,0,.537864,.66081345,.5699740624999999,.665637625,.537402425,.6126665875,.523628625,.6757999375,.505873625,.6556971749999999,.488189826866528,.679725375,0,0,0,0,0,0,.54207058125,.6724125624999999,.5605125375,.6690251875,.537864,.66081345,.488189826866528,.679725375,.505873625,.6556971749999999,.488189826866528,.660130075,0,0,0,0,0,0,.3679795875,.3866262,.33314059999999995,.3906893125,.368784175,.41131387500000005,.33567349999999996,.4124759625,.305216575,.4170092,.3412266875,.462774925,0,0,0,0,0,0,.5605125375,.6690251875,.5699740624999999,.665637625,.537864,.66081345,0,0,0,0,0,0,.450818025,.676067125,.488189826866528,.679725375,.467591,.6554576874999999,0,0,0,0,0,0,.436492575,.659831,.450818025,.676067125,.467591,.6554576874999999,0,0,0,0,0,0,0,0,0,0,0,0,.436492575,.659831,.44135155,.61300865,.40563065000000004,.66605925,.436492575,.659831,.43286249374999997,.6727749375,.450818025,.676067125,0,0,0,0,0,0,0,0,0,0,0,0,.5578605625,.2953909749999999,.5750593125000001,.39081712500000004,.59301290625,.3023909749999999,.5578605625,.2953909749999999,.5406618125,.40061935,.5750593125000001,.39081712500000004,.3679795875,.3866262,.35056009374999997,.3093909749999999,.33314059999999995,.3906893125,.59301290625,.3023909749999999,.6109665,.3861959125,.6287182250000001,.3093909749999999,.59301290625,.3023909749999999,.5750593125000001,.39081712500000004,.6109665,.3861959125,.40563065000000004,.66605925,.427124375,.59353005,.3030863625,.64445225,.282695775,.5610828375,.38226482500000003,.4827557,.3599488125,.47632687500000004,.33314059999999995,.3906893125,.305216575,.4170092,.33567349999999996,.4124759625,.3412266875,.462774925,.2733915,.50383525,.3599488125,.47632687500000004,.6287182250000001,.3093909749999999,.6109665,.3861959125,.6464699500000001,.39127456250000003,.54208226875,.67264515625,.5469159375,.6879962500000001,.5605125375,.6690251875,.5605125375,.6690251875,.5469159375,.6879962500000001,.5699740624999999,.665637625,.523652,.676265125,.5469159375,.6879962500000001,.54208226875,.67264515625,.5189354375,.7045858749999999,.5469159375,.6879962500000001,.523652,.676265125,.5189354375,.7045858749999999,.523652,.676265125,.488189826866528,.6814735375,.488189826866528,.2883909749999999,.4196925125,.2953909749999999,.4365127125,.40153225,.28182385833333334,.3866262,.27597567916666665,.4170092,.305216575,.4170092,.7040264999999999,.5342099,.6139756,.476639975,.6986649375,.5627347125,.6986649375,.5627347125,.5915551,.4831601,.5512806,.592975125,.7079557,.5055197499999999,.71060725,.476442525,.6325640875,.46274605,.692903125,.5908523999999999,.5512806,.592975125,.6857991250000001,.618673825,.692903125,.5908523999999999,.6986649375,.5627347125,.5512806,.592975125,.43282999375,.673484,.42734125,.6891803,.450753025,.67748525,.450753025,.67748525,.4548121625,.7055647999999999,.488189826866528,.6814735375,.4149069625,.6694827499999999,.42734125,.6891803,.43282999375,.673484,.40563065000000004,.66605925,.42734125,.6891803,.4149069625,.6694827499999999,.4196925125,.2953909749999999,.38542595,.3023909749999999,.4028723125,.3915063125,.71060725,.476442525,.7120584999999999,.4479282,.6325640875,.46274605,.67428775,.41762,.6994682499999999,.3861959125,.6464699500000001,.39127456250000003,.7120584999999999,.4479282,.705763375,.41762,.67428775,.41762,.488189826866528,.7103383750000001,.5189354375,.7045858749999999,.488189826866528,.6814735375,.67428775,.33039097499999986,.6287182250000001,.3093909749999999,.6464699500000001,.39127456250000003,.59301290625,.3023909749999999,.7120584999999999,.13003558749999994,.5578605625,.2953909749999999,.6857991250000001,.618673825,.5512806,.592975125,.6774095,.6461884999999999,.42734125,.6891803,.4548121625,.7055647999999999,.450753025,.67748525,.4548121625,.7055647999999999,.488189826866528,.7103383750000001,.488189826866528,.6814735375,.705763375,.41762,.6994682499999999,.3861959125,.67428775,.41762,.8383426749999999,.41762,.6994682499999999,.3861959125,.705763375,.41762,.2711788125,.475080675,.2733915,.50383525,.3412266875,.462774925,.2733915,.50383525,.27736215000000003,.53252975,.3599488125,.47632687500000004,.40563065000000004,.66605925,.364313,.738966,.42734125,.6891803,.2701275,.446433525,.2711788125,.475080675,.3412266875,.462774925,.27736215000000003,.53252975,.282695775,.5610828375,.3599488125,.47632687500000004,.6774095,.6461884999999999,.5512806,.592975125,.5699740624999999,.665637625,.6774095,.6461884999999999,.5699740624999999,.665637625,.66662155,.6725830875,.305216575,.33039097499999986,.35056009374999997,.3093909749999999,.2701275,.1304658749999999,.38542595,.3023909749999999,.35056009374999997,.3093909749999999,.3679795875,.3866262,.305216575,.4170092,.2701275,.446433525,.3412266875,.462774925,.27597567916666665,.4170092,.2701275,.446433525,.305216575,.4170092,.28182385833333334,.3866262,.305216575,.4170092,.33314059999999995,.3906893125,.282695775,.5610828375,.28838671250000003,.58901565,.427124375,.59353005,.6994682499999999,.3861959125,.67428775,.33039097499999986,.6464699500000001,.39127456250000003,.305216575,.33039097499999986,.28182385833333334,.3866262,.33314059999999995,.3906893125,.27597567916666665,.4170092,.1433963791666667,.4170092,.2701275,.446433525,.66662155,.6725830875,.5699740624999999,.665637625,.652230375,.6970854125,.28838671250000003,.58901565,.29503317500000004,.6170379625,.427124375,.59353005,.42734125,.6891803,.38528327500000004,.7581624625000001,.4548121625,.7055647999999999,.35056009374999997,.3093909749999999,.305216575,.33039097499999986,.33314059999999995,.3906893125,.652230375,.6970854125,.5699740624999999,.665637625,.6349819999999999,.719920125,.29503317500000004,.6170379625,.3030863625,.64445225,.427124375,.59353005,.6349819999999999,.719920125,.5699740624999999,.665637625,.615452575,.7405493125,.5699740624999999,.665637625,.5469159375,.6879962500000001,.615452575,.7405493125,.3030863625,.64445225,.3134811625,.6709578,.40563065000000004,.66605925,.615452575,.7405493125,.5469159375,.6879962500000001,.5944185000000001,.7597992000000001,.3134811625,.6709578,.327658,.6954898125,.40563065000000004,.66605925,.4548121625,.7055647999999999,.46111278749999995,.797688125,.488189826866528,.7103383750000001,.327658,.6954898125,.3447950375,.7185136249999999,.40563065000000004,.66605925,.5944185000000001,.7597992000000001,.5469159375,.6879962500000001,.57167145,.777034625,.5469159375,.6879962500000001,.5189354375,.7045858749999999,.57167145,.777034625,.3447950375,.7185136249999999,.364313,.738966,.40563065000000004,.66605925,.57167145,.777034625,.5189354375,.7045858749999999,.54608605,.79034725,.364313,.738966,.38528327500000004,.7581624625000001,.42734125,.6891803,.54608605,.79034725,.5189354375,.7045858749999999,.5180748375,.798073,.38528327500000004,.7581624625000001,.4080183375,.7756525375,.4548121625,.7055647999999999,.5180748375,.798073,.5189354375,.7045858749999999,.488189826866528,.7103383750000001,.4080183375,.7756525375,.43323218750000003,.78937325,.4548121625,.7055647999999999,.488189826866528,.800711625,.5180748375,.798073,.488189826866528,.7103383750000001,.43323218750000003,.78937325,.46111278749999995,.797688125,.4548121625,.7055647999999999,.46111278749999995,.797688125,.488189826866528,.800711625,.488189826866528,.7103383750000001,.71060725,.476442525,.8383426749999999,.41762,.7120584999999999,.4479282,.7120584999999999,.4479282,.8383426749999999,.41762,.705763375,.41762,.6994682499999999,.3861959125,.8320475499999999,.2883909749999999,.67428775,.33039097499999986,.8446377999999999,.5627347125,.8383426749999999,.41762,.71060725,.476442525,.8446377999999999,.5627347125,.71060725,.476442525,.7079557,.5055197499999999,.8446377999999999,.5627347125,.7079557,.5055197499999999,.7040264999999999,.5342099,.8446377999999999,.5627347125,.7040264999999999,.5342099,.6986649375,.5627347125,.8446377999999999,.5627347125,.6986649375,.5627347125,.692903125,.5908523999999999,.8446377999999999,.5627347125,.692903125,.5908523999999999,.8099888,.6725830875,.692903125,.5908523999999999,.6857991250000001,.618673825,.8099888,.6725830875,.6857991250000001,.618673825,.6774095,.6461884999999999,.8099888,.6725830875,.8099888,.6725830875,.66662155,.6725830875,.7480318749999999,.800711625,.8099888,.6725830875,.6774095,.6461884999999999,.66662155,.6725830875,.66662155,.6725830875,.652230375,.6970854125,.7480318749999999,.800711625,.652230375,.6970854125,.6349819999999999,.719920125,.7480318749999999,.800711625,.1492445583333334,.2883909749999999,.1433963791666667,.4170092,.28182385833333334,.3866262,.28182385833333334,.3866262,.1433963791666667,.4170092,.27597567916666665,.4170092,.2701275,.446433525,.1433963791666667,.4170092,.2711788125,.475080675,.2711788125,.475080675,.13754820000000006,.5610828375,.2733915,.50383525,.2733915,.50383525,.13754820000000006,.5610828375,.27736215000000003,.53252975,.27736215000000003,.53252975,.13754820000000006,.5610828375,.282695775,.5610828375,.282695775,.5610828375,.13754820000000006,.5610828375,.28838671250000003,.58901565,.28838671250000003,.58901565,.17050706250000003,.6709578,.29503317500000004,.6170379625,.29503317500000004,.6170379625,.17050706250000003,.6709578,.3030863625,.64445225,.3030863625,.64445225,.17050706250000003,.6709578,.3134811625,.6709578,.3134811625,.6709578,.23173370000000004,.800711625,.327658,.6954898125,.7480318749999999,.800711625,.615452575,.7405493125,.615452575,.879498755,.7480318749999999,.800711625,.6349819999999999,.719920125,.615452575,.7405493125,.615452575,.7405493125,.5944185000000001,.7597992000000001,.615452575,.879498755,.1433963791666667,.4170092,.13754820000000006,.5610828375,.2711788125,.475080675,.327658,.6954898125,.23173370000000004,.800711625,.3447950375,.7185136249999999,.3447950375,.7185136249999999,.23173370000000004,.800711625,.364313,.738966,.364313,.738966,.364313,.8781166675000001,.38528327500000004,.7581624625000001,.13754820000000006,.5610828375,.17050706250000003,.6709578,.28838671250000003,.58901565,.38528327500000004,.7581624625000001,.364313,.8781166675000001,.4080183375,.7756525375,.4080183375,.7756525375,.364313,.8781166675000001,.43323218750000003,.78937325,.8383426749999999,.41762,.8320475499999999,.2883909749999999,.6994682499999999,.3861959125,.67428775,.33039097499999986,.7120584999999999,.13003558749999994,.6287182250000001,.3093909749999999,.6287182250000001,.3093909749999999,.7120584999999999,.13003558749999994,.59301290625,.3023909749999999,.5578605625,.2953909749999999,.59301290625,.04623064999999982,.488189826866528,.2883909749999999,.615452575,.879498755,.5944185000000001,.7597992000000001,.57167145,.777034625,.615452575,.879498755,.57167145,.777034625,.54608605,.79034725,.615452575,.879498755,.54608605,.79034725,.5180748375,.798073,.2701275,.1304658749999999,.1492445583333334,.2883909749999999,.305216575,.33039097499999986,.305216575,.33039097499999986,.1492445583333334,.2883909749999999,.28182385833333334,.3866262,.2701275,.1304658749999999,.35056009374999997,.3093909749999999,.38542595,.3023909749999999,.2701275,.1304658749999999,.38542595,.3023909749999999,.4196925125,.2953909749999999,.4895560875,.9031757550000001,.5180748375,.798073,.488189826866528,.800711625,.4895560875,.9031757550000001,.615452575,.879498755,.5180748375,.798073,.4895560875,.9031757550000001,.488189826866528,.800711625,.46111278749999995,.797688125,.364313,.8781166675000001,.46111278749999995,.797688125,.43323218750000003,.78937325,.17050706250000003,.6709578,.23173370000000004,.800711625,.3134811625,.6709578,.23173370000000004,.800711625,.364313,.8781166675000001,.364313,.738966,.8320475499999999,.2883909749999999,.7120584999999999,.13003558749999994,.67428775,.33039097499999986,.38542595,.04623064999999982,.2701275,.1304658749999999,.4196925125,.2953909749999999,.364313,.8781166675000001,.4895560875,.9031757550000001,.46111278749999995,.797688125,.38542595,.04623064999999982,.4196925125,.2953909749999999,.488189826866528,.2883909749999999,.7120584999999999,.13003558749999994,.59301290625,.04623064999999982,.5578605625,.2953909749999999,.59301290625,.04623064999999982,.488446575,.032230649999999805,.488189826866528,.2883909749999999,.488446575,.032230649999999805,.38542595,.04623064999999982,.488189826866528,.2883909749999999],P=[-.08,-.05,-.03,0,0,.01,.015,.01,.01,-.01,-.03,-.05,-.06],R=[18,14,19,14,13,19,14,2,13,14,3,2,20,21,13,13,21,19,1,20,13,11,10,19,19,10,18,2,1,13,21,11,19,12,11,21,3,4,2,14,4,3,15,4,14,10,9,18,17,15,14,17,14,18,8,17,18,1,12,20,20,12,21,9,8,18,1,0,12,12,0,11,23,15,17,22,5,15,15,5,4,7,23,17,23,22,15,8,7,17,23,16,22,7,16,23,22,16,5,7,6,16,16,6,5],O=[.4994956625,.614281425,.49966255,.60233525,.46424221250000003,.6089815000000001,.49966255,.60233525,.465096475,.5992760874999999,.46424221250000003,.6089815000000001,.49966255,.60233525,.4818877,.5826464124999999,.465096475,.5992760874999999,.49966255,.60233525,.49910775,.5864197875,.4818877,.5826464124999999,.4479978375,.5976933312499999,.44757070625,.6025460375,.465096475,.5992760874999999,.465096475,.5992760874999999,.44757070625,.6025460375,.46424221250000003,.6089815000000001,.451843375,.5873581250000001,.4479978375,.5976933312499999,.465096475,.5992760874999999,.44207625,.6199760875,.46743702499999995,.6409725000000001,.46424221250000003,.6089815000000001,.46424221250000003,.6089815000000001,.46743702499999995,.6409725000000001,.4994956625,.614281425,.4818877,.5826464124999999,.451843375,.5873581250000001,.465096475,.5992760874999999,.44757070625,.6025460375,.44207625,.6199760875,.46424221250000003,.6089815000000001,.4308992,.596110575,.44207625,.6199760875,.44757070625,.6025460375,.49910775,.5864197875,.5163774999999999,.5825469625,.4818877,.5826464124999999,.49966255,.60233525,.5163774999999999,.5825469625,.49910775,.5864197875,.5342254625,.5992902,.5163774999999999,.5825469625,.49966255,.60233525,.46743702499999995,.6409725000000001,.4997823375,.64841675,.4994956625,.614281425,.535219575,.609022,.5342254625,.5992902,.49966255,.60233525,.535219575,.609022,.49966255,.60233525,.4994956625,.614281425,.53258415,.64137075,.535219575,.609022,.4994956625,.614281425,.451843375,.5873581250000001,.4308992,.596110575,.4479978375,.5976933312499999,.4479978375,.5976933312499999,.4308992,.596110575,.44757070625,.6025460375,.4997823375,.64841675,.53258415,.64137075,.4994956625,.614281425,.451843375,.5873581250000001,.422608125,.5931778375,.4308992,.596110575,.4308992,.596110575,.422608125,.5931778375,.44207625,.6199760875,.5518993,.60231035625,.5342254625,.5992902,.535219575,.609022,.55140224375,.59744445625,.546885375,.5874255749999999,.5342254625,.5992902,.5342254625,.5992902,.546885375,.5874255749999999,.5163774999999999,.5825469625,.5581709625,.620002975,.5518993,.60231035625,.535219575,.609022,.5518993,.60231035625,.55140224375,.59744445625,.5342254625,.5992902,.53258415,.64137075,.5581709625,.620002975,.535219575,.609022,.5518993,.60231035625,.568579025,.5955987125,.55140224375,.59744445625,.5581709625,.620002975,.568579025,.5955987125,.5518993,.60231035625,.55140224375,.59744445625,.568579025,.5955987125,.546885375,.5874255749999999,.5581709625,.620002975,.576995375,.5925833125,.568579025,.5955987125,.568579025,.5955987125,.576995375,.5925833125,.546885375,.5874255749999999];var D=n(401),A=n(8586),I=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},F=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))},L=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},M=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var N=function(){function t(){}return t.prototype.load=function(){return F(this,void 0,void 0,(function(){return L(this,(function(t){return[2,Promise.resolve()]}))}))},t.prototype.getDataConfig=function(t){return function(t){switch(t){case 0:return o;case 1:return a;case 2:return s;case 3:return c;case 4:return l;case 5:return u;case 6:return h;case 7:return f;case 8:return d;case 9:return r.LEFT_FACE_OVAL2;case 10:return r.LEFT_FACE_OVAL3;case 11:return p;case 12:return r.RIGHT_FACE_OVAL2;case 13:return r.RIGHT_FACE_OVAL3;case 14:return g;case 15:return m;case 16:return y;case 17:return v;case 18:return _;case 19:return b;case 20:return x;case 21:return w;case 22:return T;case 23:return C;case 24:return S;case 25:return k;case 26:return E;case 27:return P;case 28:return R;case 29:return O;case 30:return i;default:return""}}(t)},t.prototype.getConfigByKeys=function(t){var e,n,r={};try{for(var i=M(t),o=i.next();!o.done;o=i.next()){var a=o.value,s=D.c4[a];r[a]=this.getDataConfig(s)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r},t=I([A.e],t)}()},4809:(t,e,n)=>{var r=n(7872),i=Uint8Array,o=Uint16Array,a=Uint32Array,s=new i([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),c=new i([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),l=new i([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),u=function(t,e){for(var n=new o(31),r=0;r<31;++r)n[r]=e+=1<<t[r-1];var i=new a(n[30]);for(r=1;r<30;++r)for(var s=n[r];s<n[r+1];++s)i[s]=s-n[r]<<5|r;return[n,i]},h=u(s,2),f=h[0],d=h[1];f[28]=258,d[258]=28;for(var p=u(c,0),g=p[0],m=p[1],y=new o(32768),v=0;v<32768;++v){var _=(43690&v)>>>1|(21845&v)<<1;_=(61680&(_=(52428&_)>>>2|(13107&_)<<2))>>>4|(3855&_)<<4,y[v]=((65280&_)>>>8|(255&_)<<8)>>>1}var b=function(t,e,n){for(var r=t.length,i=0,a=new o(e);i<r;++i)++a[t[i]-1];var s,c=new o(e);for(i=0;i<e;++i)c[i]=c[i-1]+a[i-1]<<1;if(n){s=new o(1<<e);var l=15-e;for(i=0;i<r;++i)if(t[i])for(var u=i<<4|t[i],h=e-t[i],f=c[t[i]-1]++<<h,d=f|(1<<h)-1;f<=d;++f)s[y[f]>>>l]=u}else for(s=new o(r),i=0;i<r;++i)t[i]&&(s[i]=y[c[t[i]-1]++]>>>15-t[i]);return s},x=new i(288);for(v=0;v<144;++v)x[v]=8;for(v=144;v<256;++v)x[v]=9;for(v=256;v<280;++v)x[v]=7;for(v=280;v<288;++v)x[v]=8;var w=new i(32);for(v=0;v<32;++v)w[v]=5;var T=b(x,9,0),C=b(x,9,1),S=b(w,5,0),k=b(w,5,1),E=function(t){for(var e=t[0],n=1;n<t.length;++n)t[n]>e&&(e=t[n]);return e},P=function(t,e,n){var r=e/8|0;return(t[r]|t[r+1]<<8)>>(7&e)&n},R=function(t,e){var n=e/8|0;return(t[n]|t[n+1]<<8|t[n+2]<<16)>>(7&e)},O=function(t){return(t+7)/8|0},D=function(t,e,n){(null==e||e<0)&&(e=0),(null==n||n>t.length)&&(n=t.length);var r=new(t instanceof o?o:t instanceof a?a:i)(n-e);return r.set(t.subarray(e,n)),r};var A=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],I=function(t,e,n){var r=new Error(e||A[t]);if(r.code=t,Error.captureStackTrace&&Error.captureStackTrace(r,I),!n)throw r;return r},F=function(t,e,n){var r=t.length;if(!r||n&&n.f&&!n.l)return e||new i(0);var o=!e||n,a=!n||n.i;n||(n={}),e||(e=new i(3*r));var u=function(t){var n=e.length;if(t>n){var r=new i(Math.max(2*n,t));r.set(e),e=r}},h=n.f||0,d=n.p||0,p=n.b||0,m=n.l,y=n.d,v=n.m,_=n.n,x=8*r;do{if(!m){h=P(t,d,1);var w=P(t,d+1,3);if(d+=3,!w){var T=t[(W=O(d)+4)-4]|t[W-3]<<8,S=W+T;if(S>r){a&&I(0);break}o&&u(p+T),e.set(t.subarray(W,S),p),n.b=p+=T,n.p=d=8*S,n.f=h;continue}if(1==w)m=C,y=k,v=9,_=5;else if(2==w){var A=P(t,d,31)+257,F=P(t,d+10,15)+4,L=A+P(t,d+5,31)+1;d+=14;for(var M=new i(L),N=new i(19),j=0;j<F;++j)N[l[j]]=P(t,d+3*j,7);d+=3*F;var B=E(N),U=(1<<B)-1,z=b(N,B,1);for(j=0;j<L;){var W,V=z[P(t,d,U)];if(d+=15&V,(W=V>>>4)<16)M[j++]=W;else{var q=0,H=0;for(16==W?(H=3+P(t,d,3),d+=2,q=M[j-1]):17==W?(H=3+P(t,d,7),d+=3):18==W&&(H=11+P(t,d,127),d+=7);H--;)M[j++]=q}}var G=M.subarray(0,A),Y=M.subarray(A);v=E(G),_=E(Y),m=b(G,v,1),y=b(Y,_,1)}else I(1);if(d>x){a&&I(0);break}}o&&u(p+131072);for(var Z=(1<<v)-1,K=(1<<_)-1,X=d;;X=d){var $=(q=m[R(t,d)&Z])>>>4;if((d+=15&q)>x){a&&I(0);break}if(q||I(2),$<256)e[p++]=$;else{if(256==$){X=d,m=null;break}var J=$-254;if($>264){var Q=s[j=$-257];J=P(t,d,(1<<Q)-1)+f[j],d+=Q}var tt=y[R(t,d)&K],et=tt>>>4;tt||I(3),d+=15&tt;Y=g[et];if(et>3){Q=c[et];Y+=R(t,d)&(1<<Q)-1,d+=Q}if(d>x){a&&I(0);break}o&&u(p+131072);for(var nt=p+J;p<nt;p+=4)e[p]=e[p-Y],e[p+1]=e[p+1-Y],e[p+2]=e[p+2-Y],e[p+3]=e[p+3-Y];p=nt}}n.l=m,n.p=X,n.b=p,n.f=h,m&&(h=1,n.m=v,n.d=y,n.n=_)}while(!h);return p==e.length?e:D(e,0,p)},L=function(t,e,n){n<<=7&e;var r=e/8|0;t[r]|=n,t[r+1]|=n>>>8},M=function(t,e,n){n<<=7&e;var r=e/8|0;t[r]|=n,t[r+1]|=n>>>8,t[r+2]|=n>>>16},N=function(t,e){for(var n=[],r=0;r<t.length;++r)t[r]&&n.push({s:r,f:t[r]});var a=n.length,s=n.slice();if(!a)return[q,0];if(1==a){var c=new i(n[0].s+1);return c[n[0].s]=1,[c,1]}n.sort((function(t,e){return t.f-e.f})),n.push({s:-1,f:25001});var l=n[0],u=n[1],h=0,f=1,d=2;for(n[0]={s:-1,f:l.f+u.f,l,r:u};f!=a-1;)l=n[n[h].f<n[d].f?h++:d++],u=n[h!=f&&n[h].f<n[d].f?h++:d++],n[f++]={s:-1,f:l.f+u.f,l,r:u};var p=s[0].s;for(r=1;r<a;++r)s[r].s>p&&(p=s[r].s);var g=new o(p+1),m=j(n[f-1],g,0);if(m>e){r=0;var y=0,v=m-e,_=1<<v;for(s.sort((function(t,e){return g[e.s]-g[t.s]||t.f-e.f}));r<a;++r){var b=s[r].s;if(!(g[b]>e))break;y+=_-(1<<m-g[b]),g[b]=e}for(y>>>=v;y>0;){var x=s[r].s;g[x]<e?y-=1<<e-g[x]++-1:++r}for(;r>=0&&y;--r){var w=s[r].s;g[w]==e&&(--g[w],++y)}m=e}return[new i(g),m]},j=function(t,e,n){return-1==t.s?Math.max(j(t.l,e,n+1),j(t.r,e,n+1)):e[t.s]=n},B=function(t){for(var e=t.length;e&&!t[--e];);for(var n=new o(++e),r=0,i=t[0],a=1,s=function(t){n[r++]=t},c=1;c<=e;++c)if(t[c]==i&&c!=e)++a;else{if(!i&&a>2){for(;a>138;a-=138)s(32754);a>2&&(s(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(s(i),--a;a>6;a-=6)s(8304);a>2&&(s(a-3<<5|8208),a=0)}for(;a--;)s(i);a=1,i=t[c]}return[n.subarray(0,r),e]},U=function(t,e){for(var n=0,r=0;r<e.length;++r)n+=t[r]*e[r];return n},z=function(t,e,n){var r=n.length,i=O(e+2);t[i]=255&r,t[i+1]=r>>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var o=0;o<r;++o)t[i+o+4]=n[o];return 8*(i+4+r)},W=function(t,e,n,r,i,a,u,h,f,d,p){L(e,p++,n),++i[256];for(var g=N(i,15),m=g[0],y=g[1],v=N(a,15),_=v[0],C=v[1],k=B(m),E=k[0],P=k[1],R=B(_),O=R[0],D=R[1],A=new o(19),I=0;I<E.length;++I)A[31&E[I]]++;for(I=0;I<O.length;++I)A[31&O[I]]++;for(var F=N(A,7),j=F[0],W=F[1],V=19;V>4&&!j[l[V-1]];--V);var q,H,G,Y,Z=d+5<<3,K=U(i,x)+U(a,w)+u,X=U(i,m)+U(a,_)+u+14+3*V+U(A,j)+(2*A[16]+3*A[17]+7*A[18]);if(Z<=K&&Z<=X)return z(e,p,t.subarray(f,f+d));if(L(e,p,1+(X<K)),p+=2,X<K){q=b(m,y,0),H=m,G=b(_,C,0),Y=_;var $=b(j,W,0);L(e,p,P-257),L(e,p+5,D-1),L(e,p+10,V-4),p+=14;for(I=0;I<V;++I)L(e,p+3*I,j[l[I]]);p+=3*V;for(var J=[E,O],Q=0;Q<2;++Q){var tt=J[Q];for(I=0;I<tt.length;++I){var et=31&tt[I];L(e,p,$[et]),p+=j[et],et>15&&(L(e,p,tt[I]>>>5&127),p+=tt[I]>>>12)}}}else q=T,H=x,G=S,Y=w;for(I=0;I<h;++I)if(r[I]>255){et=r[I]>>>18&31;M(e,p,q[et+257]),p+=H[et+257],et>7&&(L(e,p,r[I]>>>23&31),p+=s[et]);var nt=31&r[I];M(e,p,G[nt]),p+=Y[nt],nt>3&&(M(e,p,r[I]>>>5&8191),p+=c[nt])}else M(e,p,q[r[I]]),p+=H[r[I]];return M(e,p,q[256]),p+H[256]},V=new a([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),q=new i(0),H=function(t,e,n,r,l,u){var h=t.length,f=new i(r+h+5*(1+Math.ceil(h/7e3))+l),p=f.subarray(r,f.length-l),g=0;if(!e||h<8)for(var y=0;y<=h;y+=65535){var v=y+65535;v<h?g=z(p,g,t.subarray(y,v)):(p[y]=u,g=z(p,g,t.subarray(y,h)))}else{for(var _=V[e-1],b=_>>>13,x=8191&_,w=(1<<n)-1,T=new o(32768),C=new o(w+1),S=Math.ceil(n/3),k=2*S,E=function(e){return(t[e]^t[e+1]<<S^t[e+2]<<k)&w},P=new a(25e3),R=new o(288),A=new o(32),I=0,F=0,L=(y=0,0),M=0,N=0;y<h;++y){var j=E(y),B=32767&y,U=C[j];if(T[B]=U,C[j]=B,M<=y){var H=h-y;if((I>7e3||L>24576)&&H>423){g=W(t,p,0,P,R,A,F,L,N,y-N,g),L=I=F=0,N=y;for(var G=0;G<286;++G)R[G]=0;for(G=0;G<30;++G)A[G]=0}var Y=2,Z=0,K=x,X=B-U&32767;if(H>2&&j==E(y-X))for(var $=Math.min(b,H)-1,J=Math.min(32767,y),Q=Math.min(258,H);X<=J&&--K&&B!=U;){if(t[y+Y]==t[y+Y-X]){for(var tt=0;tt<Q&&t[y+tt]==t[y+tt-X];++tt);if(tt>Y){if(Y=tt,Z=X,tt>$)break;var et=Math.min(X,tt-2),nt=0;for(G=0;G<et;++G){var rt=y-X+G+32768&32767,it=rt-T[rt]+32768&32767;it>nt&&(nt=it,U=rt)}}}X+=(B=U)-(U=T[B])+32768&32767}if(Z){P[L++]=268435456|d[Y]<<18|m[Z];var ot=31&d[Y],at=31&m[Z];F+=s[ot]+c[at],++R[257+ot],++A[at],M=y+Y,++I}else P[L++]=t[y],++R[t[y]]}}g=W(t,p,u,P,R,A,F,L,N,y-N,g),!u&&7&g&&(g=z(p,g+1,q))}return D(f,0,r+O(g)+l)},G=function(){for(var t=new Int32Array(256),e=0;e<256;++e){for(var n=e,r=9;--r;)n=(1&n&&-306674912)^n>>>1;t[e]=n}return t}(),Y=function(){var t=-1;return{p:function(e){for(var n=t,r=0;r<e.length;++r)n=G[255&n^e[r]]^n>>>8;t=n},d:function(){return~t}}},Z=function(){var t=1,e=0;return{p:function(n){for(var r=t,i=e,o=0|n.length,a=0;a!=o;){for(var s=Math.min(a+2655,o);a<s;++a)i+=r+=n[a];r=(65535&r)+15*(r>>16),i=(65535&i)+15*(i>>16)}t=r,e=i},d:function(){return(255&(t%=65521))<<24|t>>>8<<16|(255&(e%=65521))<<8|e>>>8}}},K=function(t,e,n,r,i){return H(t,null==e.level?6:e.level,null==e.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+e.mem,n,r,!i)},X=function(t,e){var n={};for(var r in t)n[r]=t[r];for(var r in e)n[r]=e[r];return n},$=function(t,e,n){for(var r=t(),i=t.toString(),o=i.slice(i.indexOf("[")+1,i.lastIndexOf("]")).replace(/ /g,"").split(","),a=0;a<r.length;++a){var s=r[a],c=o[a];if("function"==typeof s){e+=";"+c+"=";var l=s.toString();if(s.prototype)if(-1!=l.indexOf("[native code]")){var u=l.indexOf(" ",8)+1;e+=l.slice(u,l.indexOf("(",u))}else for(var h in e+=l,s.prototype)e+=";"+c+".prototype."+h+"="+s.prototype[h].toString();else e+=l}else n[c]=s}return[e,n]},J=[],Q=function(t,e,n,s){var c;if(!J[n]){for(var l="",u={},h=t.length-1,f=0;f<h;++f)l=(c=$(t[f],l,u))[0],u=c[1];J[n]=$(t[h],l,u)}var d=X({},J[n][1]);return r.default(J[n][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+e.toString()+"}",n,d,function(t){var e=[];for(var n in t)(t[n]instanceof i||t[n]instanceof o||t[n]instanceof a)&&e.push((t[n]=new t[n].constructor(t[n])).buffer);return e}(d),s)},tt=function(){return[i,o,a,s,c,l,f,g,C,k,y,A,b,E,P,R,O,D,I,F,Rt,at,st]},et=function(){return[i,o,a,s,c,l,d,m,T,x,S,w,y,V,q,b,L,M,N,j,B,U,z,W,O,D,H,K,St,at]},nt=function(){return[gt,vt,pt,Y,G]},rt=function(){return[mt,yt]},it=function(){return[_t,pt,Z]},ot=function(){return[bt]},at=function(t){return postMessage(t,[t.buffer])},st=function(t){return t&&t.size&&new i(t.size)},ct=function(t,e,n,r,i,o){var a=Q(n,r,i,(function(t,e){a.terminate(),o(t,e)}));return a.postMessage([t,e],e.consume?[t.buffer]:[]),function(){a.terminate()}},lt=function(t){return t.ondata=function(t,e){return postMessage([t,e],[t.buffer])},function(e){return t.push(e.data[0],e.data[1])}},ut=function(t,e,n,r,i){var o,a=Q(t,r,i,(function(t,n){t?(a.terminate(),e.ondata.call(e,t)):(n[1]&&a.terminate(),e.ondata.call(e,t,n[0],n[1]))}));a.postMessage(n),e.push=function(t,n){e.ondata||I(5),o&&e.ondata(I(4,0,1),null,!!n),a.postMessage([t,o=n],[t.buffer])},e.terminate=function(){a.terminate()}},ht=function(t,e){return t[e]|t[e+1]<<8},ft=function(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0},dt=function(t,e){return ft(t,e)+4294967296*ft(t,e+4)},pt=function(t,e,n){for(;n;++e)t[e]=n,n>>>=8},gt=function(t,e){var n=e.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=e.level<2?4:9==e.level?2:0,t[9]=3,0!=e.mtime&&pt(t,4,Math.floor(new Date(e.mtime||Date.now())/1e3)),n){t[3]=8;for(var r=0;r<=n.length;++r)t[r+10]=n.charCodeAt(r)}},mt=function(t){31==t[0]&&139==t[1]&&8==t[2]||I(6,"invalid gzip data");var e=t[3],n=10;4&e&&(n+=t[10]|2+(t[11]<<8));for(var r=(e>>3&1)+(e>>4&1);r>0;r-=!t[n++]);return n+(2&e)},yt=function(t){var e=t.length;return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0},vt=function(t){return 10+(t.filename&&t.filename.length+1||0)},_t=function(t,e){var n=e.level,r=0==n?0:n<6?1:9==n?3:2;t[0]=120,t[1]=r<<6|(r?32-2*r:1)},bt=function(t){(8!=(15&t[0])||t[0]>>>4>7||(t[0]<<8|t[1])%31)&&I(6,"invalid zlib data"),32&t[1]&&I(6,"invalid zlib data: preset dictionaries not supported")};function xt(t,e){return e||"function"!=typeof t||(e=t,t={}),this.ondata=e,t}var wt=function(){function t(t,e){e||"function"!=typeof t||(e=t,t={}),this.ondata=e,this.o=t||{}}return t.prototype.p=function(t,e){this.ondata(K(t,this.o,0,0,!e),e)},t.prototype.push=function(t,e){this.ondata||I(5),this.d&&I(4),this.d=e,this.p(t,e||!1)},t}();var Tt=function(){return function(t,e){ut([et,function(){return[lt,wt]}],this,xt.call(this,t,e),(function(t){var e=new wt(t.data);onmessage=lt(e)}),6)}}();function Ct(t,e,n){return n||(n=e,e={}),"function"!=typeof n&&I(7),ct(t,e,[et],(function(t){return at(St(t.data[0],t.data[1]))}),0,n)}function St(t,e){return K(t,e||{},0,0)}var kt=function(){function t(t){this.s={},this.p=new i(0),this.ondata=t}return t.prototype.e=function(t){this.ondata||I(5),this.d&&I(4);var e=this.p.length,n=new i(e+t.length);n.set(this.p),n.set(t,e),this.p=n},t.prototype.c=function(t){this.d=this.s.i=t||!1;var e=this.s.b,n=F(this.p,this.o,this.s);this.ondata(D(n,e,this.s.b),this.d),this.o=D(n,this.s.b-32768),this.s.b=this.o.length,this.p=D(this.p,this.s.p/8|0),this.s.p&=7},t.prototype.push=function(t,e){this.e(t),this.c(e)},t}();var Et=function(){return function(t){this.ondata=t,ut([tt,function(){return[lt,kt]}],this,0,(function(){var t=new kt;onmessage=lt(t)}),7)}}();function Pt(t,e,n){return n||(n=e,e={}),"function"!=typeof n&&I(7),ct(t,e,[tt],(function(t){return at(Rt(t.data[0],st(t.data[1])))}),1,n)}function Rt(t,e){return F(t,e)}var Ot=function(){function t(t,e){this.c=Y(),this.l=0,this.v=1,wt.call(this,t,e)}return t.prototype.push=function(t,e){wt.prototype.push.call(this,t,e)},t.prototype.p=function(t,e){this.c.p(t),this.l+=t.length;var n=K(t,this.o,this.v&&vt(this.o),e&&8,!e);this.v&&(gt(n,this.o),this.v=0),e&&(pt(n,n.length-8,this.c.d()),pt(n,n.length-4,this.l)),this.ondata(n,e)},t}();var Dt=function(){return function(t,e){ut([et,nt,function(){return[lt,wt,Ot]}],this,xt.call(this,t,e),(function(t){var e=new Ot(t.data);onmessage=lt(e)}),8)}}();function At(t,e,n){return n||(n=e,e={}),"function"!=typeof n&&I(7),ct(t,e,[et,nt,function(){return[It]}],(function(t){return at(It(t.data[0],t.data[1]))}),2,n)}function It(t,e){e||(e={});var n=Y(),r=t.length;n.p(t);var i=K(t,e,vt(e),8),o=i.length;return gt(i,e),pt(i,o-8,n.d()),pt(i,o-4,r),i}var Ft=function(){function t(t){this.v=1,kt.call(this,t)}return t.prototype.push=function(t,e){if(kt.prototype.e.call(this,t),this.v){var n=this.p.length>3?mt(this.p):4;if(n>=this.p.length&&!e)return;this.p=this.p.subarray(n),this.v=0}e&&(this.p.length<8&&I(6,"invalid gzip data"),this.p=this.p.subarray(0,-8)),kt.prototype.c.call(this,e)},t}();var Lt=function(){return function(t){this.ondata=t,ut([tt,rt,function(){return[lt,kt,Ft]}],this,0,(function(){var t=new Ft;onmessage=lt(t)}),9)}}();function Mt(t,e,n){return n||(n=e,e={}),"function"!=typeof n&&I(7),ct(t,e,[tt,rt,function(){return[Nt]}],(function(t){return at(Nt(t.data[0]))}),3,n)}function Nt(t,e){return F(t.subarray(mt(t),-8),e||new i(yt(t)))}var jt=function(){function t(t,e){this.c=Z(),this.v=1,wt.call(this,t,e)}return t.prototype.push=function(t,e){wt.prototype.push.call(this,t,e)},t.prototype.p=function(t,e){this.c.p(t);var n=K(t,this.o,this.v&&2,e&&4,!e);this.v&&(_t(n,this.o),this.v=0),e&&pt(n,n.length-4,this.c.d()),this.ondata(n,e)},t}();function Bt(t,e){e||(e={});var n=Z();n.p(t);var r=K(t,e,2,4);return _t(r,e),pt(r,r.length-4,n.d()),r}var Ut=function(){function t(t){this.v=1,kt.call(this,t)}return t.prototype.push=function(t,e){if(kt.prototype.e.call(this,t),this.v){if(this.p.length<2&&!e)return;this.p=this.p.subarray(2),this.v=0}e&&(this.p.length<4&&I(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),kt.prototype.c.call(this,e)},t}();var zt=function(){return function(t){this.ondata=t,ut([tt,ot,function(){return[lt,kt,Ut]}],this,0,(function(){var t=new Ut;onmessage=lt(t)}),11)}}();function Wt(t,e,n){return n||(n=e,e={}),"function"!=typeof n&&I(7),ct(t,e,[tt,ot,function(){return[Vt]}],(function(t){return at(Vt(t.data[0],st(t.data[1])))}),5,n)}function Vt(t,e){return F((bt(t),t.subarray(2,-4)),e)}var qt=function(){function t(t){this.G=Ft,this.I=kt,this.Z=Ut,this.ondata=t}return t.prototype.push=function(t,e){if(this.ondata||I(5),this.s)this.s.push(t,e);else{if(this.p&&this.p.length){var n=new i(this.p.length+t.length);n.set(this.p),n.set(t,this.p.length)}else this.p=t;if(this.p.length>2){var r=this,o=function(){r.ondata.apply(r,arguments)};this.s=31==this.p[0]&&139==this.p[1]&&8==this.p[2]?new this.G(o):8!=(15&this.p[0])||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(o):new this.Z(o),this.s.push(this.p,e),this.p=null}}},t}();var Ht=function(t,e,n,r){for(var o in t){var a=t[o],s=e+o;a instanceof i?n[s]=[a,r]:Array.isArray(a)?n[s]=[a[0],X(r,a[1])]:Ht(a,s+"/",n,r)}},Gt="undefined"!=typeof TextEncoder&&new TextEncoder,Yt="undefined"!=typeof TextDecoder&&new TextDecoder,Zt=0;try{Yt.decode(q,{stream:!0}),Zt=1}catch(t){}var Kt=function(t){for(var e="",n=0;;){var r=t[n++],i=(r>127)+(r>223)+(r>239);if(n+i>t.length)return[e,D(t,n-1)];i?3==i?(r=((15&r)<<18|(63&t[n++])<<12|(63&t[n++])<<6|63&t[n++])-65536,e+=String.fromCharCode(55296|r>>10,56320|1023&r)):e+=1&i?String.fromCharCode((31&r)<<6|63&t[n++]):String.fromCharCode((15&r)<<12|(63&t[n++])<<6|63&t[n++]):e+=String.fromCharCode(r)}},Xt=function(){function t(t){this.ondata=t,Zt?this.t=new TextDecoder:this.p=q}return t.prototype.push=function(t,e){if(this.ondata||I(5),e=!!e,this.t)return this.ondata(this.t.decode(t,{stream:!0}),e),void(e&&(this.t.decode().length&&I(8),this.t=null));this.p||I(4);var n=new i(this.p.length+t.length);n.set(this.p),n.set(t,this.p.length);var r=Kt(n),o=r[0],a=r[1];e?(a.length&&I(8),this.p=null):this.p=a,this.ondata(o,e)},t}();function $t(t,e){if(e){for(var n=new i(t.length),r=0;r<t.length;++r)n[r]=t.charCodeAt(r);return n}if(Gt)return Gt.encode(t);var o=t.length,a=new i(t.length+(t.length>>1)),s=0,c=function(t){a[s++]=t};for(r=0;r<o;++r){if(s+5>a.length){var l=new i(s+8+(o-r<<1));l.set(a),a=l}var u=t.charCodeAt(r);u<128||e?c(u):u<2048?(c(192|u>>6),c(128|63&u)):u>55295&&u<57344?(c(240|(u=65536+(1047552&u)|1023&t.charCodeAt(++r))>>18),c(128|u>>12&63),c(128|u>>6&63),c(128|63&u)):(c(224|u>>12),c(128|u>>6&63),c(128|63&u))}return D(a,0,s)}function Jt(t,e){if(e){for(var n="",r=0;r<t.length;r+=16384)n+=String.fromCharCode.apply(null,t.subarray(r,r+16384));return n}if(Yt)return Yt.decode(t);var i=Kt(t),o=i[0];return i[1].length&&I(8),o}e.T8=Jt;var Qt=function(t){return 1==t?3:t<6?2:9==t?1:0},te=function(t,e){return e+30+ht(t,e+26)+ht(t,e+28)},ee=function(t,e,n){var r=ht(t,e+28),i=Jt(t.subarray(e+46,e+46+r),!(2048&ht(t,e+8))),o=e+46+r,a=ft(t,e+20),s=n&&4294967295==a?ne(t,o):[a,ft(t,e+24),ft(t,e+42)],c=s[0],l=s[1],u=s[2];return[ht(t,e+10),c,l,i,o+ht(t,e+30)+ht(t,e+32),u]},ne=function(t,e){for(;1!=ht(t,e);e+=4+ht(t,e+2));return[dt(t,e+12),dt(t,e+4),dt(t,e+20)]},re=function(t){var e=0;if(t)for(var n in t){var r=t[n].length;r>65535&&I(9),e+=r+4}return e},ie=function(t,e,n,r,i,o,a,s){var c=r.length,l=n.extra,u=s&&s.length,h=re(l);pt(t,e,null!=a?33639248:67324752),e+=4,null!=a&&(t[e++]=20,t[e++]=n.os),t[e]=20,e+=2,t[e++]=n.flag<<1|(null==o&&8),t[e++]=i&&8,t[e++]=255&n.cpr,t[e++]=n.cpr>>8;var f=new Date(null==n.mtime?Date.now():n.mtime),d=f.getFullYear()-1980;if((d<0||d>119)&&I(10),pt(t,e,d<<25|f.getMonth()+1<<21|f.getDate()<<16|f.getHours()<<11|f.getMinutes()<<5|f.getSeconds()>>>1),e+=4,null!=o&&(pt(t,e,n.crc),pt(t,e+4,o),pt(t,e+8,n.size)),pt(t,e+12,c),pt(t,e+14,h),e+=16,null!=a&&(pt(t,e,u),pt(t,e+6,n.attrs),pt(t,e+10,a),e+=14),t.set(r,e),e+=c,h)for(var p in l){var g=l[p],m=g.length;pt(t,e,+p),pt(t,e+2,m),t.set(g,e+4),e+=4+m}return u&&(t.set(s,e),e+=u),e},oe=function(t,e,n,r,i){pt(t,e,101010256),pt(t,e+8,n),pt(t,e+10,n),pt(t,e+12,r),pt(t,e+16,i)},ae=function(){function t(t){this.filename=t,this.c=Y(),this.size=0,this.cpr=0}return t.prototype.process=function(t,e){this.ondata(null,t,e)},t.prototype.push=function(t,e){this.ondata||I(5),this.c.p(t),this.size+=t.length,e&&(this.crc=this.c.d()),this.process(t,e||!1)},t}();var se=function(){function t(t,e){var n=this;e||(e={}),ae.call(this,t),this.d=new Tt(e,(function(t,e,r){n.ondata(t,e,r)})),this.cpr=8,this.flag=Qt(e.level),this.terminate=this.d.terminate}return t.prototype.process=function(t,e){this.d.push(t,e)},t.prototype.push=function(t,e){ae.prototype.push.call(this,t,e)},t}();var ce=function(){function t(t){this.ondata=t,this.u=[],this.d=1}return t.prototype.add=function(t){var e=this;if(this.ondata||I(5),2&this.d)this.ondata(I(4+8*(1&this.d),0,1),null,!1);else{var n=$t(t.filename),r=n.length,o=t.comment,a=o&&$t(o),s=r!=t.filename.length||a&&o.length!=a.length,c=r+re(t.extra)+30;r>65535&&this.ondata(I(11,0,1),null,!1);var l=new i(c);ie(l,0,t,n,s);var u=[l],h=function(){for(var t=0,n=u;t<n.length;t++){var r=n[t];e.ondata(null,r,!1)}u=[]},f=this.d;this.d=0;var d=this.u.length,p=X(t,{f:n,u:s,o:a,t:function(){t.terminate&&t.terminate()},r:function(){if(h(),f){var t=e.u[d+1];t?t.r():e.d=1}f=1}}),g=0;t.ondata=function(n,r,o){if(n)e.ondata(n,r,o),e.terminate();else if(g+=r.length,u.push(r),o){var a=new i(16);pt(a,0,134695760),pt(a,4,t.crc),pt(a,8,g),pt(a,12,t.size),u.push(a),p.c=g,p.b=c+g+16,p.crc=t.crc,p.size=t.size,f&&p.r(),f=1}else f&&h()},this.u.push(p)}},t.prototype.end=function(){var t=this;2&this.d?this.ondata(I(4+8*(1&this.d),0,1),null,!0):(this.d?this.e():this.u.push({r:function(){1&t.d&&(t.u.splice(-1,1),t.e())},t:function(){}}),this.d=3)},t.prototype.e=function(){for(var t=0,e=0,n=0,r=0,o=this.u;r<o.length;r++){n+=46+(l=o[r]).f.length+re(l.extra)+(l.o?l.o.length:0)}for(var a=new i(n+22),s=0,c=this.u;s<c.length;s++){var l=c[s];ie(a,t,l,l.f,l.u,l.c,e,l.o),t+=46+l.f.length+re(l.extra)+(l.o?l.o.length:0),e+=l.b}oe(a,t,this.u.length,n,e),this.ondata(null,a,!0),this.d=2},t.prototype.terminate=function(){for(var t=0,e=this.u;t<e.length;t++){e[t].t()}this.d=2},t}();e.Xo=function(t,e){e||(e={});var n={},r=[];Ht(t,"",n,e);var o=0,a=0;for(var s in n){var c=n[s],l=c[0],u=c[1],h=0==u.level?0:8,f=(C=$t(s)).length,d=u.comment,p=d&&$t(d),g=p&&p.length,m=re(u.extra);f>65535&&I(11);var y=h?St(l,u):l,v=y.length,_=Y();_.p(l),r.push(X(u,{size:l.length,crc:_.d(),c:y,f:C,m:p,u:f!=s.length||p&&d.length!=g,o,cpr:h})),o+=30+f+m+v,a+=76+2*(f+m)+(g||0)+v}for(var b=new i(a+22),x=o,w=a-o,T=0;T<r.length;++T){var C=r[T];ie(b,C.o,C,C.f,C.u,C.c.length);var S=30+C.f.length+re(C.extra);b.set(C.c,C.o+S),ie(b,o,C,C.f,C.u,C.c.length,C.o,C.m),o+=16+S+(C.m?C.m.length:0)}return oe(b,o,r.length,w,x),b};var le=function(){function t(){}return t.prototype.push=function(t,e){this.ondata(null,t,e)},t.cpr=0,t}();var ue=function(){function t(t,e){var n=this;e<32e4?this.i=new kt((function(t,e){n.ondata(null,t,e)})):(this.i=new Et((function(t,e,r){n.ondata(t,e,r)})),this.terminate=this.i.terminate)}return t.prototype.push=function(t,e){this.i.terminate&&(t=D(t,0)),this.i.push(t,e)},t.cpr=8,t}();var he=function(){function t(t){this.onfile=t,this.k=[],this.o={0:le},this.p=q}return t.prototype.push=function(t,e){var n=this;if(this.onfile||I(5),this.p||I(4),this.c>0){var r=Math.min(this.c,t.length),o=t.subarray(0,r);if(this.c-=r,this.d?this.d.push(o,!this.c):this.k[0].push(o),(t=t.subarray(r)).length)return this.push(t,e)}else{var a=0,s=0,c=void 0,l=void 0;this.p.length?t.length?((l=new i(this.p.length+t.length)).set(this.p),l.set(t,this.p.length)):l=this.p:l=t;for(var u=l.length,h=this.c,f=h&&this.d,d=function(){var t,e=ft(l,s);if(67324752==e){a=1,c=s,p.d=null,p.c=0;var r=ht(l,s+6),i=ht(l,s+8),o=2048&r,f=8&r,d=ht(l,s+26),g=ht(l,s+28);if(u>s+30+d+g){var m=[];p.k.unshift(m),a=2;var y,v=ft(l,s+18),_=ft(l,s+22),b=Jt(l.subarray(s+30,s+=30+d),!o);4294967295==v?(t=f?[-2]:ne(l,s),v=t[0],_=t[1]):f&&(v=-1),s+=g,p.c=v;var x={name:b,cpr:i,start:function(){if(x.ondata||I(5),v){var t=n.o[i];t||x.ondata(I(14,"unknown cpr type "+i,1),null,!1),(y=v<0?new t(b):new t(b,v,_)).ondata=function(t,e,n){x.ondata(t,e,n)};for(var e=0,r=m;e<r.length;e++){var o=r[e];y.push(o,!1)}n.k[0]==m&&n.c?n.d=y:y.push(q,!0)}else x.ondata(null,q,!0)},terminate:function(){y&&y.terminate&&y.terminate()}};v>=0&&(x.size=v,x.ors=_),p.onfile(x)}return"break"}if(h){if(134695760==e)return c=s+=12+(-2==h&&8),a=3,p.c=0,"break";if(33639248==e)return c=s-=4,a=3,p.c=0,"break"}},p=this;s<u-4;++s){if("break"===d())break}if(this.p=q,h<0){var g=a?l.subarray(0,c-12-(-2==h&&8)-(134695760==ft(l,c-16)&&4)):l.subarray(0,s);f?f.push(g,!!a):this.k[+(2==a)].push(g)}if(2&a)return this.push(l.subarray(s),e);this.p=l.subarray(s)}e&&(this.c&&I(13),this.p=null)},t.prototype.register=function(t){this.o[t.cpr]=t},t}();var fe="function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout?setTimeout:function(t){t()};e.GZ=function(t,e){for(var n={},r=t.length-22;101010256!=ft(t,r);--r)(!r||t.length-r>65558)&&I(13);var o=ht(t,r+8);if(!o)return{};var a=ft(t,r+16),s=4294967295==a;s&&(r=ft(t,r-12),101075792!=ft(t,r)&&I(13),o=ft(t,r+32),a=ft(t,r+48));for(var c=e&&e.filter,l=0;l<o;++l){var u=ee(t,a,s),h=u[0],f=u[1],d=u[2],p=u[3],g=u[4],m=u[5],y=te(t,m);a=g,c&&!c({name:p,size:f,ors:d,cpr:h})||(h?8==h?n[p]=Rt(t.subarray(y,y+f),new i(d)):I(14,"unknown cpr type "+h):n[p]=D(t,y,y+f))}return n}},7872:(t,e)=>{var n={};e.default=function(t,e,r,i,o){var a=new Worker(n[e]||(n[e]=URL.createObjectURL(new Blob([t+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return a.onmessage=function(t){var e=t.data,n=e.$e$;if(n){var r=new Error(n[0]);r.code=n[1],r.stack=n[2],o(r,null)}else o(null,e)},a.postMessage(r,i),a}}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var o=n[t]={id:t,loaded:!1,exports:{}};return e[t].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}r.m=e,t=[],r.O=(e,n,i,o)=>{if(!n){var a=1/0;for(u=0;u<t.length;u++){for(var[n,i,o]=t[u],s=!0,c=0;c<n.length;c++)(!1&o||a>=o)&&Object.keys(r.O).every((t=>r.O[t](n[c])))?n.splice(c--,1):(s=!1,o<a&&(a=o));if(s){t.splice(u--,1);var l=i();void 0!==l&&(e=l)}}return e}o=o||0;for(var u=t.length;u>0&&t[u-1][2]>o;u--)t[u]=t[u-1];t[u]=[n,i,o]},r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{var t={826:0};r.O.j=e=>0===t[e];var e=(e,n)=>{var i,o,[a,s,c]=n,l=0;if(a.some((e=>0!==t[e]))){for(i in s)r.o(s,i)&&(r.m[i]=s[i]);if(c)var u=c(r)}for(e&&e(n);l<a.length;l++)o=a[l],r.o(t,o)&&t[o]&&t[o][0](),t[o]=0;return r.O(u)},n=self.webpackChunktencentcloud_webar=self.webpackChunktencentcloud_webar||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})();var i=r.O(void 0,[647,321],(()=>r(4504))),o=(i=r.O(i)).ry,a=i.Cz,s=i.T$,c=i.Mj,l=i.UZ,u=i.bk,h=i.Iq,f=i.aR,d=i._$;export{o as ArSdk,a as BEAUTIFY_OPTIONS,s as BLEND_MODES,c as ENTRY_TYPES,l as EntryType,u as OUTPUT_TYPES,h as authorize,f as authorizeWxCamera,d as setRootPath};
|