tencentcloud-webar 1.0.23-2 → 1.0.23-21
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 +3 -3
- package/build-umd/hand-3d.umd.729057d271d28c2b0321.js +6 -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/readme.md +9 -9
- 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;var a0B2=a0b;function a0b(a,b){var c=a0a();return a0b=function(d,e){d=d-0x16f;var f=c[d];return f;},a0b(a,b);}function a0a(){var B6=['400','grid-row-start','rate','117805tCfVhq','status','invoke','_dirtyId','_dataMap','UNSEND','54,69,6d,65,73,74,61,6d,70','glMatrixMat4Invert','indexOf','已授权,仍无法访问摄像头或麦克风设备','insertBefore','-webkit-user-drag','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','miniprogram_npm/tencentcloud-webar','repeat','fillUniforms','requestCompleteError','net5g','apiDetail','setNetworkChange','getEntriesByName','triggerResult','_enabled','window','wx\x20auth\x20setting','visibilitychange','statusCode','stringify','pixi-picture:\x20you\x20are\x20trying\x20to\x20use\x20Blend\x20Filter\x20on\x20main\x20framebuffer!\x20That\x20wont\x20work.','widows','identity','requestConfig','env','getDataConfig','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0areq\x20params:\x20','VR人像','lip','run','detected','_recursivePostUpdateTransform','isHidden','right_eyebrow_center','valid','BLEND','webVitalsUrl','touchcancel','_iIndex','/collect/events','.prototype.','stack','offsetHeight','src','authScope','-webkit-box-pack','globalUniforms','darkCircle','drawMode','This\x20browser\x20is\x20not\x20supported.\x20If\x20Chrome\x20is\x20used,\x20enable\x20hardware\x20acceleration\x20for\x20the\x20browser','skin_lookup.png','touch-action','childNodes','which','shutdown','flag_1','startTime','loadScript','enabled','forehead_top_center','isGetSample','customPV','taskPromises','slice','sqrt','getStaticPath','ios','state','affine','reverse','8.0.30','\x20call\x20failed','show','Normal','isReadyPromise','getItem','containsPoint','bottom','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','input','pushSpriteMask','none\x20/\x20none\x20/\x20none','_dermabrasion','createBuffer','timer','session','输入不合法,\x20远程链接只支持输入图片类型','dataPaths','destroy','uniformGroup','intensityDarkCircle','blit','node','aColor','/collect','limitSize','mapQuad','convertTo3d','\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','_playing','AJAX_ERROR:\x20downloadFile\x20','-webkit-mask-box-image','_active','isWhiteList','ortographic','lastestEffectIds','pushSize','SET_EFFECT_ERROR','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','cancelable','firstRender','retCodeHandler','function','/offlineLog','marker-end','decorate','offlineUrl','preventDefault','onNewAegis','_calculateBounds','points','attached','pivot','altKey','set\x20ar\x20options','Auth','recordCanvasRendered','invalid\x20distance','setConfig','tilingSprite2d','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','event\x20dispatch','1005','realHeight','readyState','showLoading','removeEventListener','color-rendering','TextureSystem','wx.cloud.callContainer.','text-align-last','preloadEffects','SDK_ERROR','-webkit-mask-size','aTrans2','inputPixel','upload','pixelRatio','lift','text-decoration-skip-ink','detail','musicPath','Symbol.iterator\x20is\x20not\x20defined.','cameraContext','https','_canvas','lip_top_right','AEGIS_ID','transaction','left_eye_center','_detector','column-span','meta','IMAGE_ERROR','border-image-slice','content','frame2','startRecord','economy','setBeta','frame3','getFps','Url','DARKEN','draw','offline','$walk','tileProj','back','getEffectList','string','then','webpackChunktencentcloud_webar','getSystemInfo','AUTH_NEED_RELOAD_PAGE','/worker/tick.worker.js','setObjectRenderer','toHack','getFilterInstance','unknown\x20cpr\x20type\x20','split','canIUse','11oODlYP','resolution','j4LDpiL2PlRmZ9ljaJ','-webkit-text-emphasis-color','getAttribLocation','Spritesheet','framebuffer','reportPv','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20duration:\x20','_dcIndex','set-effect','from','MEDIA_STREAM','toLowerCase','documentElement','_indexBuffer','replace','request','QuadUv','timeStamp','_worldID','copyWithin','lineStyle','onErrors','getPusherContent','Type','LEFT_FACE_OVAL','failed\x20to\x20separate\x20audio\x20track','setResolution','_loader','seq','addQuad','surface','grid-column-gap','https:','options','contour_left9','word-spacing','16384','pointArray','TRACE','uColor',';addEventListener(\x22error\x22,function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})','Default','readystatechange','input\x20init\x20res','getBuffer','path','_audioType','readwrite','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;}','setWatermark','setMinCutoff','background-color','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','颜色加深','SCALE_MODES','enableLoadingIcon','Failed\x20to\x20create\x20the\x20recorder','decoder\x20buffer\x20change','mediaContainer\x20export\x20fail','windows','top','Generator\x20is\x20already\x20executing.','lip_bottom_left','error','pvUrl','reportTime:\x20first\x20param\x20must\x20be\x20a\x20string','background-image','transition-duration','macos','API\x20not\x20accessible,\x20Please\x20confirm\x20the\x20License\x20version','IMG','uBackdrop','alpha\x20should\x20be\x20in\x20(0.0.,\x201.0]','MAX_TEXTURES','padding-top','marker-start','max','material','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20tempFilePath:\x20','text-anchor','wechatAppId','metadata','_intensity','frame1','sends','readPixels','worker','CAMERA','TEXTURE0','force','_beautify','afterRequest','ratio','correctBlendMode','face\x20detect\x20stopped','mediaContainer\x20destroy\x20error','far','RIGHT_FACE_OVAL','LINEAR_BURN','infoType:\x20behaviorBacktracking\x0adataType:\x20pageLoadAndRoute\x0apageLoadedPath:\x20','%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.','queue','-webkit-text-emphasis-position','lighting-color','HARD_MIX','log::::input\x20node\x20addBeautyAsync\x20finish','start','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','BatchShaderGenerator','staticProxy','createObserver','defineProperty','copyTo','aid','removeBeauty','net6g','getConfigByKeys','3aUNJju','linux','inputSize','Shader','shiftKey','set\x20effect\x20error','right_eye_center','\x20already\x20exists','uniformCode','trys','already\x20init','onReport','output','STATIC_DRAW','all','timeout','done','auto\x20/\x20auto\x20/\x20auto\x20/\x20auto','whiteList','You\x20need\x20to\x20override\x20\x22request\x22\x20method','getFileFromCache','The\x20rendering\x20took\x20too\x20long.\x20Try\x20reducing\x20the\x20resolution\x20or\x20refreshing\x20the\x20page','key','POINT','1.7.0','EffectList','live-pusher\x20width\x20or\x20height\x20is\x20not\x20support.\x20please\x20use\x20Arsdk.getRealSize','clearStickers','Sticker','consume','convertSubtreeTo3d','bubbles','removeItem','resultCb','pageId','onupgradeneeded','_hide','gotoAndStop','handleSpriteSheet','resources','normalLogPipeline','will-change','_initLoader','bind','loadingIconOptions','lifeCycle','horizontal-tb','_cuid','beforeRequest','BaseRenderTexture','-webkit-box-flex','Substract','onloadstart','bufferData','_uc','pushWithCheck','indexedDB','MOUTH_UPPER','_initCommonResLoader','SIGNATURE_TIMEOUT','OPENED','copyTo2dOr3d','publish','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','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','createSelectorQuery','events','当前浏览器特性支持不足,可能会出现卡顿情况,请使用新版\x20Chrome/Safari/微信体验','-webkit-mask-box-image-slice','-webkit-box-flex-group','setNetworkType','drawArrays','onUnhandledRejection','luminance','showHeight','high','INPUT_ERROR','onNetworkStatusChange','-webkit-mask-composite','__initStatic','AbstractBatchRenderer','webgl','en-US','SCRIPT_ERROR','clip-path','ctx','摄像头或麦克风中断,请手动刷新页面','lip_top_left_target','opacity','SET_FILTER_ERROR','initDataMap','_affine','calculateTrimmedVertices','gray','landmarks','setData','Makeup','\x0avarying\x20vec2\x20vTextureCoord;\x0auniform\x20vec4\x20uColor;\x0a\x0auniform\x20sampler2D\x20uSampler;\x0a\x0avoid\x20main(void)\x0a{\x0agl_FragColor\x20=\x20texture2D(uSampler,\x20vTextureCoord)\x20*\x20uColor;\x0a}','default','1004','BEFORE_PROJ','transform','Require\x20\x22input\x22\x20or\x20\x22camera\x22\x20parameter','PinLight','特效加载失败','inputClamp','currentLocation','disc','grid-template-rows','common_cache','useDefaults','pre','bean','border-bottom-style','-webkit-text-orientation','atan','TIME','defaultVertexShader','onTouchStart','setBeauty','PAGE_NOT_FOUND_ERROR','includes','response','LINEAR','transform-style','appId','_filterMap','native','recorder\x20start\x20error','background-position','65,66,66,65,63,74,5f,73,74,69,63,6b,65,72,5f,32,64','captureStackTrace','url','setUniforms','boundsQuad','_draw','hasLastRawValue','mem','fps\x20must\x20be\x20set\x20to\x20low\x20or\x20high','1069476AjdUhD','onLoop','chin','plugins','-webkit-appearance','getAllEffectList','responseType','调起用户摄像头失败','meshVertex','route','forceMaxTextures','403\x20forbidden','updateAnchor','unicode-bidi','trigger','onFrameChange','border-left-width','cameraMode','Mesh','background-origin','1002','getSlope','ret','FREE','row\x20nowrap','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','background-repeat',')\x20AppleWebKit/601.1.46\x20(KHTML,\x20like\x20Gecko)\x20Version/9.0\x20Mobile/13B143\x20Safari/601.1','-webkit-text-combine','getIndeLoader','_updateFilter','retcode','passive','nose_left2','contour_right3','utils','onReady','refreshNetwork','updateAnchors','head','net2g','publishSpeedLog','yaw','render','SUBSTRACT','touchmove','screenY','Authorized,\x20but\x20still\x20unable\x20to\x20access\x20camera\x20or\x20microphone\x20device','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}','justify-self','set\x20filter\x20no\x20meshVertex','clientLeft','max-height','aFrame','\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','_packedGeometryPoolSize','isLoaded','remove','createSprite','-webkit-box-ordinal-group','bindBuffer','_enable','live','contour_left3','projection','radius','_initWasmWrapper','websocketHack','getAllResponseHeaders','AXIS_XR','getLaunchOptionsSync','_startTime','getOwnPropertyDescriptor','getDepth','font-size','no\x20stream\x20handler','body','xUnit','buttons','submitCustomTime','border-top-right-radius','video','-webkit-rtl-ordering','removeAnchors','logType','level','checkFileCacheBlackList','SET_DATA','program','translationMatrix','style','__init5','disc\x20outside\x20none','-webkit-margin-after-collapse','auth','\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','setDataReportUrl','context','/0.wasm','createImage','_currentLegacyID','border-collapse','fps','destinationFrame','intensity','clearContext','stopRecord','enable','aSamplerSize','0013','clientTop','grid-template-areas','Failed\x20to\x20stop\x20the\x20recorder','onTouchMove','maxLength','timeEnd','border-bottom-width','pointerdown','INFO','returnFilterTexture','getBoundingClientRect','tagName','无权访问此接口,请确认License版本信息','getSeconds','touchend','application/x-www-form-urlencoded','screenHeight','getFilterList','uri','createMediaContainer','-webkit-mask-box-image-width','aTrans1','image-rendering','uploadFile','test','errcode','\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','当前环境不支持','metaKey','hackReq','setBeautify','KEY_POINTS','filterLevel','clip-rule','background-size','live-pusher\x20width\x20cannot\x20be\x20greater\x20than\x20720px,currently\x20is\x20','setPlanes','convertSubtreeTo2s','This\x20browser\x20is\x20not\x20supported.\x20Please\x20use\x20the\x20latest\x20version\x20of\x20Chrome,\x20Safari,\x20or\x20WeChat','delete','_updateID','parent','clear','startsWith','offset-path','eye.png','PERFORMANCE','maskClamp','document','_textures','req\x20url:\x20','setFromMatrix','SPEED','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','freq\x20should\x20be\x20>0','__init2','forehead_left','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;}','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','createObjectStore','trimmedCulledByFrustrum','onabort','end','sdkAppId','relatedTarget','setItem','intensityEye','hijackFetch','addOuterLandmarks','lineWidth','1px','border-right-color','color-interpolation','hyphens','once','_texture','vertexData2d','setEffect','bindAndClearTexArray','Need\x20to\x20enter\x20the\x20page\x20again\x20for\x20the\x20license\x20to\x20take\x20effect','vertical-align','assign','column-rule-color','animation-timing-function','scale3d','[object\x20Object]','otherMatrix','authSetting','32768','65,66,66,65,63,74,5f,73,74,69,63,6b,65,72,5f,33,64','init\x20fps\x20error','null','animation-direction','-webkit-text-decorations-in-effect','statusText','_buffer','switchMode','_0.','5701272ychsff','info','This\x20browser\x20offers\x20limited\x20support\x20for\x20the\x20SDK,\x20and\x20stutter\x20may\x20occur.\x20Please\x20use\x20the\x20latest\x20version\x20of\x20Chrome,\x20Safari,\x20or\x20WeChat','uniform1f','classList','getEffect','vertexAttribPointer','contour_right9','buffers','break-before','eyeBrightness','packageSize','vertexSrc','optionalCall','onConfigChange','\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','anchor','resetStickers','_parentID','currentTarget','aTextureId','music\x20separation\x20fail','auto\x200deg','_currentTime','withDataPaths','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','HardMix','removeEffectBeauties','setAxisY','isPowerOfTwo','pos','intensityNasolabialFolds','firstPaintTiming','webar-object-store','emit','invalid\x20zlib\x20data','TEXTURE_MIN_FILTER','bytes=','onTouchCancel','createCanvas','Texture','grid-auto-rows','zy\x20fetchWithSubPackage','_lang','ext3','TEMP_MATRIX','viewport','backdropUniformName','onBeforeRequest','_loadingMap','appendChild','listener','createLivePusherContext','partialLutSkin','The\x20camera\x20or\x20microphone\x20is\x20disconnected.\x20Please\x20refresh','Label','activeState','\x22:\x20','_shader','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}','时间:','UNSIGNED_SHORT','nose_bridge4','blur','floatArray','uvs','0%\x200%','quad','nose_bridge3','loadPackage','488986cXfHJC','createElement','exsurehad','changeLiveFps','_angleMap','OFFLINE','alphaMaskIndex','正片叠底','\x22:\x22','wx\x20init\x20face\x20fail','invalid\x20UTF-8\x20data','_detected','_drawCallPool','limit','缺少鉴权参数appId','-webkit-text-emphasis-style','http','construct','stage','copyTo2d','_intensityTeeth','addBeautyAsync','avatar_ar','startAudioRecorder','shared','onload','_transformTrimmedID','addBean','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}','eye','Failed\x20to\x20execute\x20\x27send\x27\x20on\x20\x27XMLHttpRequest\x27:\x20The\x20object\x27s\x20state\x20must\x20be\x20OPENED.','world','input_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}\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','border-top-width','DIFFERENCE','The\x20current\x20WeChat\x20version\x20does\x20not\x20support\x20it.\x20Please\x20upgrade\x20and\x20try\x20again','png','skin_gray.png','0004','getBean','applyTo','faceDetect','current','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}','TEXTURE_MAG_FILTER','countInstance','vertices','_sx','speedLogPipeline','pushSprite','sprite','_top','BATCHABLE_SIZE','stop','grid-auto-columns','openType','speedSample','trim','onmessage','loadImage','written','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20status:\x20','scaleAndTranslate','duration','keys','pending','android','authorize','background-blend-mode','whiten.png','_textureTrimmedID','pitch','bindingDestinationFrame','funcName','cloudSuccessCallback','responseXML','align-content','text-size-adjust','clientWidth','drawImage','alphaMode','text-transform','method','usm','system','mat4','pad','_filter','wrapMode','Sending\x20request\x20blocked.\x20Please\x20handle\x20the\x20parameters\x20reasonably,\x20options.url\x20is\x20necessary','return','fragment','createRecorder','UNSIGNED_BYTE','extension','observe','::::::::createFilter','lip_bottom_center','column-gap','device','/content.json','setToMult','texImage2D','radiusY','speedUrl','disabled','filters','onHide','premultiplyTintToRgba','flat','formatter','local','64,65,63,72,79,70,74','export','timeEnd:\x20first\x20param\x20must\x20be\x20a\x20string','row','cacheInverse','-webkit-border-image','script','uClampFrame','tiltX','OUTER_REFERENCE','access','https://webar-static.tencent-cloud.com/ar-sdk/resources','uvsFloat32','_autoUpdate','transcodeLive','addEventListener','TRIANGLE_FAN','getUniformLocation','Unrecognized\x20response\x20data','192KntezZ','Data','background','lifetimes','__init3','signature','nose_bottom','applySticker','OtherEffectList','distortion','onResult','asyncPluginIndex','sendSocketMessage','REQUEST_FILE_FAIL','time','version','hideLoading','find','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','offlineLogLimit','getStorage','attrs','strokeStyle','_sy','cpr','getZipDataPath','degreeEnd','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','setLevel','getErrorType','result','border-bottom-right-radius','256','read\x20file\x20cache\x20error','VividLight','LEFT_FACE_OVAL3','getSystemInfoSync','visible','urlHandler','defineProperties','left_eyebrow_center','connectSocket','request:fail','animation-name','marker-mid','maskSprite','_find','effect_makeup','overflow-x','_renderToBatch','record\x20in\x20live\x20mode\x20is\x20not\x20support','animation-iteration-count','next','butt','npmAlpha','颜色减淡','_sign','manual','_backdropActive','\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','border-top-style','offset-rotate','DEFAULT','isolation','uin','_height','processLipEdge','/ar/','inputNode','没有麦克风权限,请到设置-隐私中开启相关权限','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','getMeshVertex','listenError','TextureMatrix','decode','outline-width','onLine','hackWsConnect','updateTexture','LOADING','getImageData','stop-opacity','_left','createShader','object','shaderGenerator','createFilter','multisample','ondata','surfaceID','NORMAL','glMatrixMat4Multiply','setRenderer','code','0003','getAudioPath','forEach','0007','0010','_render','substring','model','hackRequest','_transformID','__version__\x20has\x20discard,\x20please\x20use\x20version','requestAnimationFrame','wx\x20camera\x20init','static','beforeWrite','onUnload','installedPlugins','aegisPlugin','copyFrom','canvas','statePool','netType','font-family','geometry','setDefaults','_durations','color-interpolation-filters','isArray','onComplete','TextureCache','reportTime','showWidth','setDerivateCutoff','ease','LogType','collapse','charCodeAt','mergeTracks','实色混合','8192','waitUntilPreload','offsetWidth','_cy','__version__','lip_top_center_target','0014','setToRotationTranslationScale','lastIndexOf','COLOR_BURN','undefined','pageY','root','captureStream','patch','VIVID_LIGHT','onChange','EXCLUSION','_checkVoid','videoRecorder\x20destroy\x20error','beta_','Version','__wbindgen_realloc','cancelAnimationFrame','USER_DATA_PATH','daily','euler','tab-size','createDefaultHandler','padding-right','lutSkin','stickers','copy','unzip','typedArrayToBuffer','forehead_right','61,6c,6c,6f,77,46,75,6e,63,4c,69,73,74','aTrans','confirm','degreeStart','_currentProjID','rgb(0,\x200,\x200)\x20none\x200px','\x20\x0a\x20','API_RESPONSE','stroke-width','net3g','xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx','输入图片不合法','color:\x20red','low','0002','mat3','overflow-wrap','FRAGMENT_SHADER','395906sMkdJN','checkSupport','sendPipeline','sourceFrame','HARD_LIGHT','one','hackCloudReq','ColorBurn','\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}','development','onWhitelist','pressure','isVisible','getPreMiddleware','addLogs','blend','effect_sticker_2d','TRIANGLES','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}','toArray','1003','scrollWidth','isStart','convertTo2d','file','word-break','ctx2d','unuse','wait\x20time','list-style-position','event','DONE','baseTexture','recordRender','drawBatches','hostUrl','maskMatrix','face\x20detect\x20stop\x20failed','devtools','toString','SDK_VERSION_LOW_ERROR','_keypoints','width','audioRecorderStarted','button','removeTrack','utf8','defaultFilterStack','MOUTH_LOWER','clip.js','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0aerrMsg:\x20','intensities','Resolution\x20changes\x20cause\x20effects\x20to\x20be\x20lost,\x20Please\x20reset','EVENT','box-sizing','rgba(0,\x200,\x200,\x200.4)','setMesh','decoder\x20error','_currentSurfaceID','stroke-linejoin','height','appendFile','-webkit-box-orient','getOwnPropertyDescriptors','Setting','parentElement','instances','faceMesh','setPrototypeOf','empty-cells','[Circular\x20','Module','reportRequest','quaternion','__wbindgen_free','STOP_REACORD_FAIL','grid-template-columns','loadend','Require\x20\x22input\x22\x20or\x20\x22camera\x22\x20paramate','userAgent','contour_right10','vertexDirtyId','extendBean','read','other','column-rule-style','abort','paths','inited','22265080aWTLEJ','convertSubtreeTo2d','mapSprite','MaskSystem','platform','nose','AXIS_Y','count','pointercancel','__proto__','scene','INFO_ALL','reduce','CONTEXT_UID','batch','fromFrames','clientY','init','Signature\x20timeout,\x20retry\x20failed.','NEAREST','DEBUG','addChild','__init','get','touch','FilterState','hasOwnProperty','Failed\x20to\x20start\x20recording','font-variant','mediaContainer','generatePusherData','config','effect_sticker_3d','RET_ERROR','nose_right2','renderer','prepend','-webkit-app-region','data','Failed\x20to\x20read\x20WX\x20file\x20cache\x20data','-webkit-box-decoration-break','rawEvent','frame0','$getConfig','scope','getPrototypeOf','application/json','perspective-origin','addToCache','RenderTexture','normal','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0areq\x20type:\x20','5.0\x20(','defaultAnchor','setDataReportConfig','scriptEvaluateTiming','webar-db','created','loop','unexpected\x20EOF','date\x20not\x20in\x20range\x201980-2099','getAccountInfoSync','ColorDodge','texSubImage2D','getInputNode','mode','(1.36.3)','outline-style','线性减淡','mask','flex-grow','msg','font-variant-caps','__init4','flex-wrap','blendMode_1','protocol','setExclusiveFilter','touchstart','stroke-dasharray','payload','requestQueue','throw','break-after','vertexTrimmedData','whiteListUrl','roll','uvRespectAnchor','没有摄像头权限,请到设置-隐私中开启相关权限','list-style-image','c30849f08b1b4841a759a7c7534a2f0c.bin','ENVIRAONMENT_NOT_COMPATIBLE','some','_mat4inv','Difference','_beautifies','html','onAppRoute','border-image-outset','equals','shave','max-width','-webkit-locale','return\x20this','fromBuffer','sort','renderTexture','Timer\x20','nowrap','logs','unshift','renderSprite','stretch','_flipY','visibility','vertexData','twoBezier','appid','timestamp','isPrimary','objectStore','applyFilter','encLoader','ALPHA_MODES','getMonth','_previousFrame','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0areq\x20method:\x20','_focus','filterClamp','uMapCoord','api','unlink','BRIDGE_ERROR','/speed/performance','filter','tickworker','Message','getSingletonWorker','clearCache','cancelBubble','overflow-y','offscreen','[native\x20code]','networkType','all\x200s\x20ease\x200s','videoRecorder','connectCallback','onprogress','IMAGE','resourceManager','_batchLocation','frame','arc','tap','Container','ARRAY_BUFFER','\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}','text-decoration-line','setToMultLegacy2','pixels','others','orphans','ext1','1.0.23-2','CUSTOM','_container','detectSize','license','sin','tick','pointermove','RGBA','updateLocalTransform','disable\x20beautify','createObjectURL','bindingSourceFrame','useMaxPadding','enableFaceDetect','8.0.29','reportPv\x20is\x20deprecated,\x20please\x20use\x20reportEvent','Multiply','alphaMaskPool','aVertexPosition','\x20is\x20not\x20a\x20constructor\x20or\x20null','PROJ','onreadystatechange','initFlushBuffers','READ_FILE_CACHE_FAIL','originApi','62,61,63,6b,67,72,6f,75,6e,64','分辨率变化导致特效丢失,请重新设置','defineApiProperty','OVERLAY','calculateSpriteMatrix','join','-webkit-mask-image','invalid\x20gzip\x20data','loadstart','clearFilters','_quatDirtyId','AXIS_X','createPipeline\x20need\x20at\x20least\x20one\x20function\x20param','mtime','linkProgram','_tintRGB','copyTo3d','hidden','scope.record','audioPath','getRealSize','binary','cloud','uvMatrix','Arsdk\x20is\x20not\x20ready','setFileCache','getUniforms','iResolution','children','texture','initCameraIns','triggerOnNewAegis','CSS_ERROR','app3d','currentFrame','LinearBurn','getAngles','50%\x2050%','loadedIdMap','_ts','pointerType','_keymap','cameraMatrix','front','_setConfig','originRequest','checkLimit','0\x20fill','Renderer','contains','get\x20video\x20info\x20fail','invalidate','/speed/custom','push','design:paramtypes','fill\x20stroke\x20markers','drawElements','font-variant-ligatures','_packedGeometries','initFaceDetect','\x22:\x22symbol\x22','audioRecorder','global','add','realWidth','crossOrigin','play','cursor','touches','instantiate','128','parentNode','reportSetDataTiming','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','addCallback','stroke-linecap','extra\x20field\x20too\x20long','Class\x20extends\x20value\x20','successHandler','methods','去设置','complete','_image','reportTime:\x20duration\x20must\x20between\x200\x20and\x2060000','-webkit-mask-box-image-source','background-clip','removeExclusiveFilter','_reshape','margin-right','NONE','ctrlKey','callFunction','whiten','visibilityState','filterIntensity','img','localTransform','identifier','font-stretch','instance','mouth_lower_lip_bottom','initAid','getFilename','applyPartial','outputCanvas','culledByFrustrum','ObjectRenderer','publishAssetLog','publishErrorLog','reportAssetSpeed','recorder\x20start\x20success','HardLight','上下文丢失,请重新初始化','freq','onCameraFrame','offsetLeft','floor','logTime','player\x20init\x20fps','onTouchEnd','shaderSource','flush','intensity\x20的值超出范围(0-1),默认为\x201','flex-shrink','lasttime','onfile','errMsg','exsureAuthData','clearColor','_initing','delay','atan2','legacy','fromCharCode','attachShader','animationSpeed','insertLog','contextChange','vertex','updateStartTimestamp','fromImages','SetDataReportUrl','cos','baseline','MULTIPLY','user-select','normal\x20normal','-webkit-box-lines','_inited','name','canUse','shift','aegisRequestStartTime','dispatchEvent','1001','overrideMimeType','offlineBuffer','?id=1085&msg[0]=','removeTicker','speed','pow','getTime','5824548bgpNgP','onInited','useProgram','getAvatarList','resize','sendSDKError','_error','getElementsByTagName','_partialDermabrasion','fill','_projID','vertexDirty','open','Ticker','FilterSystem','Exclusion','map','isFrontFace','texParameteri','text-overflow','LINEAR_LIGHT','Lighten','render\x20fail','authFunc','/.aegis.offline.log','fit','graphics','_setFilter','_renderer','rgb(255,\x20255,\x20255)','uniformData','reject','projectName','invalid\x20zip\x20data','当前浏览器不支持,若Chrome请开启浏览器硬件加速','dermabrasion','-webkit-highlight','convertTo2s','wx\x20set\x20language','getLoader','average','The\x20authentication\x20parameter\x20\x22appId\x22\x20is\x20missing','texArray','This\x20browser\x20does\x20not\x20have\x20camera\x20permission,\x20please\x20go\x20to\x20Settings\x20-\x20Privacy\x20turn\x20Camera\x20on','caption-side','none','filename\x20too\x20long','createMediaRecorder','_intensityNasolabialFolds','net4g','lastRawValue','AJAX_ERROR:\x20','getTracks','auto\x20auto','lang','unknown','postMessage','getVideoDecoder','WHITE_LIST','sessionID','0034','wifi','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0areq\x20url:\x20','ended','miter','callbacks','live\x20mode\x20is\x20not\x20supported','margin-left','aVertex','test.png','SCREEN','onerror','sendNow','Require\x20a\x20valid\x20value\x20(0-1)\x20for\x20\x22intensity\x22\x20(the\x20default\x20value\x20is\x201)','getLogs','outer_offset_ratio','findId','__initStatic2','setFilter','getLevel','-webkit-mask-box-image-repeat','set','currentResult','fill-rule','tag','getAllKeys','geometryClass','拉取远程bin','filePath','sessionId','Sprite','The\x20interface\x20is\x20not\x20accessible.\x20Please\x20check\x20the\x20License\x20version','RIGHT_FACE_OVAL3','add\x20child\x20fail','min-height','_orthographic','FLOAT','lip_top_center','fetch','option','RIGHT_FACE_OVAL2','Error.message:\x20','uTransform','length','_aIndex','decoder\x20decode\x20ended','getVideoInfo','useOriginAudio','speak','get\x20arraybuffer\x20error','load','min-width','reportTime:\x20params\x20error','START_REACORD_FAIL','batch_bilinear','getAttribute','displayObjectUpdateTransform','call','bindForceLocation','stepEnd','beforeReportSpeed','reportEvent\x20params\x20error','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','random','66,69,6c,74,65,72','right','onError','packInterleavedGeometry','getFileSystemManager\x20file','_initMainLoop','session-','tileTransform','refreshContext','lip_bottom_left_target','solid','Preview','\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.','terminate','aTextureCoord','iPhone;\x20CPU\x20iPhone\x20OS\x2010_3_1\x20like\x20Mac\x20OS\x20X','startAuth','57,65,62,54,69,6d,65,73,74,61,6d,70','`,\x20error\x20is:\x20','copyTexSubImage2D','ready','onCustomRendererEvent','table-layout','matrix','_wasm','getDistanceOfTwoPoints','eyeWhiten','LIGHTEN','clearLogs','输入不合法,\x20请传input或camera参数','chin_left','filename','direction','unpatch','focus','no\x20callback','setToTranslation','_renderDefault','off','vertexBuff','offsetTop','download','clone','1006','font-variant-east-asian','_currentLocalID','timeOrigin','createTexture','mincutoff','contour_left4','had','61,76,61,74,61,72,5f,76,72','addConfig','override','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0areq\x20url:\x20','_activeProjection','post','/collect/whitelist','no\x20face\x20detected','Failed\x20to\x20load\x20the\x20basic\x20libraries','run2','border-box','exec','worldAlpha','beforeReport','source-over','timeMap','\x20does\x20not\x20exist','comment','abs','getSetting','byteLength','_events','2048','removeChild','image','addTaskConf','pause','__config','angleArray','VERTEX_SHADER','uploadLogs','EffectId','callContainer','process','Invalid\x20input','_localID','color','pushBuffer','wx.cloud.callFunction.','recorder','common_cache_domain','toUpperCase','outputFrame','\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','tint','100%','ext2','animation-duration','SDKVersion','TEXTURE_2D','worldTransform','getPixels','pluginName','COLOR_DODGE','getCenterOfTwoPoints','nasolabialFolds','filterArea','mix-blend-mode','trace','_lastUniforms','nose_left1','save2Offline','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0areq\x20param:\x20','nonzero','alpha','flag_2','right_eye_top','host','showModal','setToMultLegacy','WEBSOCKET_ERROR','compileShader','entries','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0aerrMsg:\x20','_width','clientHeight','#input-canvas','checkReady','_takePhoto','opts','uClampOffset','ceil','target','reportT','fileSystem','\x0aopenType:\x20','onShow','pageNavigationStartTime','hide','padding','setUpdatePerformanceListener','1.36.3','list-style-type','getFrameData','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20status:\x20','pointer-events','update','preloadVcubeFile','beautify','0px\x20none\x20rgb(0,\x200,\x200)','getPerformance','__esModule','auto','batch2d','margin-bottom','_textureID','animation-fill-mode','grid-auto-flow','/speed','screenWidth','-webkit-border-vertical-spacing','stroke-opacity','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','stopFaceDetect','stop\x20record','evaluateScript','ERROR','onMessage','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}','updateEndTimestamp','prefixHandler','setPagePV','zip','fail','inline','horizontal','flag','createOffscreenCanvas','sdkError','Out\x20of\x20memory!','\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}','objectStoreName','failHandler','apiName','getAttributeNS','$e$','objectStoreNames','小程序读取缓存失败','getFullYear','overrideCallContainer','createVideoDecoder','Mozilla/5.0\x20(','indices','uSampler','downloadFile','bufferchange','infoAll','reportEvent','writing-mode','Buffer','hwTimestamp','\x20*\x20','live-pusher\x20width\x20or\x20height\x20cannot\x20is\x20not\x20support.\x20please\x20use\x20Arsdk.getRealSize','min','resolve','61,76,61,74,61,72,5f,61,72','border-image-repeat','-webkit-hyphenate-character','transition-delay','float','addAttribute','_whiten','filterWithAlpha','translate','order','_anchor','0019','error\x20happen\x20when\x20aegis\x20stringify:\x20\x0a\x20','eventUrl','VIDEO','fastSeek','getOwnPropertyNames','isErr','-webkit-line-break','setAttribute','invert','rgb(0,\x200,\x200)','nose_bridge5','instanceCount','HIGH','appLaunch','setEffectInner','is_in_white_list','tempRect','getConfig','reset','_usm','REPORT','_config','_input','catch','createVKSession','0009','-webkit-margin-before-collapse','animation-delay','invalid\x20block\x20type','sprite_bilinear','HEADERS_RECEIVED','Unsupported\x20environment','_glTextures','Program','simpleShader','activeTexture','shape-outside','publishNetWorkError','filterFrame','getBounds','initOfflineLog','transition-timing-function','extra','customTimePipeline','getOptimalFilterTexture','_surface','message','left_eye_bottom','requesting','POST','contour_right4','publishNormalLog','falingwen.png','use','overflow-anchor','&from=','eventPipeline','flood-color','padding-left','applyInverse','reason','none\x20solid\x20rgb(0,\x200,\x200)','reverseLocalOrder','registerPlugin','requestFrame','Invalid\x20\x22input\x22\x20value,\x20Only\x20the\x20image\x20type\x20can\x20be\x20entered\x20for\x20remote\x20links','bindTexture','invalid\x20id','checkIsBeauti','Filter','customTimeUrl','debug','_context','HTMLImageElement','calculateVertices','_configCenter','initialized','face.png','column-width','GET','cancel','getHours','nose_tip1','border-image-source','?payload=','chin_right','0012','apply','detectId','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','size','subarray','getContext','transition-property','before','break','flex-basis','onStart','pageRouteTiming','getFileSystemManager','language','_ready','pageX','defaultFragmentShader','texBuff','type','setAlpha','teethWhiten','scaleAfterAffine','vitals','eyebrow_center','className','invalid\x20length/literal','warn','cacheNum','onsuccess','intensityTeeth','perspective','_quatUpdateId','pivot3d','completeHandler','ops','-webkit-user-modify','invertCopyTo','0px','defUniforms','PIN_LIGHT','takePhotoPromises','playing','Preset','taskHack','WORKER','65536','Geometry','failRequestCount','vertexSize','success','uploadFileCompleteError','optionalAccess','/offline','proj','_cameraMode','cacheImage','_options','-webkit-font-smoothing','scrollTop','pop','transform-origin','Out\x20of\x20storage\x20space,\x20go\x20to\x20Settings\x20-\x20General-Storage\x20Space\x20and\x20clear\x20the\x20cache','LEFT_FACE_OVAL2','getNetworkType','json','batchable','reportLoadPackageSpeed','shader','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','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','Screen','wx\x20fetch\x20error','round','__init6','stopPropagation','angle','enableVertexAttribArray','recording','pointerId','register','stickerLoader','shape-rendering','spritesheet','eventsList','_destroyed','line-height','PROMISE_ERROR','border-left-style','buildDrawCalls','SoftLight','Canvas','-webkit-text-security','generateShader','exports','disable','border-top-color','LINEAR_DODGE','setReshapeMarks','\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','preload','lip_inner_top','getCanvasNode','over\x20right','exist','removeFromCache','Authorize\x20timeout,\x20retry\x20failed.','_far','AUTH_API_FAIL','boolean','box-shadow','font-kerning','_intensityEye','hackHandler','capture','concat','loaded','WARN','logical','iterator','label','flex-direction','responseText','Object\x20is\x20not\x20iterable.','录制器停止失败','resource','pointerup','performanceUrl','has','tempFilePath','scale','getImageSize','&level[0]=2&from=','%UNIFORM_CODE%','sent','production',':::::::::画面尺寸','initGl','BaseTexture','orig','constructor','nmd','send','position3d','mkdir','LOAD_PACKAGE','\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','px\x20','aUV','value','AUTH_FAIL','openSetting','dominant-baseline','withCredentials','writable','存储空间不足,前往设置-通用-存储空间,清除缓存','callback','Code','_near','Loader','arCacheStorage','nose_bridge2','contentType','create','POINTS_MAP','3D特效','useContextAlpha','updateTransform','mirror','加载资源','fetchFromFileCache','1024','scope.camera','IDENTITY','pusherContext','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20duration:\x20','toGlobal','angles','toLocal','onloadend','now','defaultLevel','modifyRequest','transSticker','VERSION','put','sdkts','Failed\x20to\x20start\x20the\x20camera','setSystemInfo','dcutoff','a_en','musicTrack','findIndex','line-break','performance','blendMode','Cannot\x20convert\x20undefined\x20or\x20null\x20to\x20object','setRequestHeader','onLoad','toStringTag','publishSocketError','SDK\x20version\x20is\x20too\x20old,\x20some\x20features\x20are\x20not\x20available.\x20Please\x20update\x20the\x20SDK','读取本地bin','_updateId','/ar','_intensityDarkCircle','prepareBackdrop','outputRenderer','setHandler','log','\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','readFile','writeFile','zy\x20sdk\x20startAudioRecorder','strokeColor','ar\x20sdk\x20fetch\x20auth\x20error','CLAMP','kind','lip_inner_bottom','-webkit-text-fill-color','rotate','finish','clip','progObj','ALL','\x20\x0a\x20\x20Error.stack:\x20','targetTouches','mapBilinearSprite','arrayBuffer','addTrack','mapCoord','-webkit-writing-mode','splice','addTicker','mirrorChange','stepStart','isOverride','premultiplyTint','clearFile','LIPS','0px\x200px','SOFT_LIGHT','需要重新进入页面使授权生效','a_de','crc','syncUniforms','_isConnectedToTicker','vkstarted','contour_left10','CANVAS','forehead','dcutoff\x20should\x20be\x20>0','createWorker','transformAABB','.zip','_target','byteOffset','mp3','reportTime:\x20second\x20param\x20must\x20be\x20number','miniProgram','removeFrom','file://','AJAX_ERROR','uniforms','href','symbol','textures','_renderFunc','_uvs','parse','grid-column-start','number','downloadFileCompleteError','-webkit-box-align','_cache','prototype','object-position','onLaunch','请先开启摄像头及麦克风权限','8.0.28','buffer','affinePreserveOrientation','report','\x20temp\x20zip\x20write\x20file\x20error','maximum\x20size','MAX_SAFE_INTEGER','break-inside','position','28xiIdKl','invalid\x20zlib\x20data:\x20preset\x20dictionaries\x20not\x20supported','setFrequency','triggerInit','toggleOccluder','live-pusher\x20height\x20cannot\x20be\x20greater\x20than\x20720px,currently\x20is\x20','This\x20browser\x20does\x20not\x20have\x20microphone\x20permission,\x20please\x20go\x20to\x20Settings\x20-\x20Privacy\x20turn\x20Microphone\x20on','time:\x20first\x20param\x20must\x20be\x20a\x20string','MEDIA_ERROR','_bounds','caret-color','cheekbone','unlinkSync','CLEAR','.bin','offset-distance','Custom','tex','offlineLog','evaI','CUSTOM_PV','OFF','enabledFor'];a0a=function(){return B6;};return a0a();}(function(b,d){var cP=a0b,f=b();while(!![]){try{var g=parseInt(cP(0x1dc))/0x1*(parseInt(cP(0x37d))/0x2)+parseInt(cP(0x267))/0x3+-parseInt(cP(0x940))/0x4*(-parseInt(cP(0x95a))/0x5)+parseInt(cP(0x337))/0x6+-parseInt(cP(0x4bc))/0x7*(-parseInt(cP(0x401))/0x8)+-parseInt(cP(0x674))/0x9+parseInt(cP(0x515))/0xa*(-parseInt(cP(0xa22))/0xb);if(g===d)break;else f['push'](f['shift']());}catch(h){f['push'](f['shift']());}}}(a0a,0xa82b6));var t,e={0xd9b:function(b){var cQ=a0b;b[cQ(0x87e)]=(function(){var cZ=cQ,a0=function(bg,bh){return(a0=Object['setPrototypeOf']||{'__proto__':[]}instanceof Array&&function(bi,bj){var cR=a0b;bi[cR(0x51e)]=bj;}||function(bi,bj){var cS=a0b;for(var bk in bj)Object[cS(0x933)]['hasOwnProperty'][cS(0x6e9)](bj,bk)&&(bi[bk]=bj[bk]);})(bg,bh);};function a1(bg,bh){var cU=a0b;function bi(){var cT=a0b;this[cT(0x8ac)]=bg;}a0(bg,bh),bg[cU(0x933)]=null===bh?Object['create'](bh):(bi['prototype']=bh[cU(0x933)],new bi());}var a2=function(){var cV=a0b;return(a2=Object[cV(0x326)]||function(bg){var cW=cV;for(var bh,bi=0x1,bj=arguments['length'];bi<bj;bi++)for(var bk in bh=arguments[bi])Object['prototype'][cW(0x52f)][cW(0x6e9)](bh,bk)&&(bg[bk]=bh[bk]);return bg;})[cV(0x821)](this,arguments);};function a3(bg,bh){var 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'function'==typeof Symbol&&(bm[Symbol['iterator']]=function(){return this;}),bm;function bn(bo){return function(bp){var cX=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['return']:bq[0x0]?bj[cX(0x567)]||((bk=bj[cX(0x3d8)])&&bk[cX(0x6e9)](bj),0x0):bj[cX(0x435)])&&!(bk=bk[cX(0x6e9)](bj,bq[0x1]))['done'])return bk;switch(bj=0x0,(bq=bk?[0x2&bq[0x0],bk['value']]:bq)[0x0]){case 0x0:case 0x1:bk=bq;break;case 0x4:return bl[cX(0x898)]++,{'value':bq[0x1],'done':!0x1};case 0x5:bl[cX(0x898)]++,bj=bq[0x1],bq=[0x0];continue;case 0x7:bq=bl['ops'][cX(0x85c)](),bl[cX(0x1e5)]['pop']();continue;default:if(!((bk=0x0<(bk=bl[cX(0x1e5)])[cX(0x6db)]&&bk[bk['length']-0x1])||0x6!==bq[0x0]&&0x2!==bq[0x0])){bl=0x0;continue;}if(0x3===bq[0x0]&&(!bk||bq[0x1]>bk[0x0]&&bq[0x1]<bk[0x3]))bl[cX(0x898)]=bq[0x1];else{if(0x6===bq[0x0]&&bl['label']<bk[0x1])bl[cX(0x898)]=bk[0x1],bk=bq;else{if(!(bk&&bl[cX(0x898)]<bk[0x2])){bk[0x2]&&bl[cX(0x843)][cX(0x85c)](),bl[cX(0x1e5)][cX(0x85c)]();continue;}bl['label']=bk[0x2],bl[cX(0x843)][cX(0x607)](bq);}}}bq=bh[cX(0x6e9)](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 cY=a0b;for(var bg=0x0,bh=0x0,bi=arguments[cY(0x6db)];bh<bi;bh++)bg+=arguments[bh][cY(0x6db)];var bj=Array(bg),bk=0x0;for(bh=0x0;bh<bi;bh++)for(var bl=arguments[bh],bm=0x0,bn=bl[cY(0x6db)];bm<bn;bm++,bk++)bj[bk]=bl[bm];return bj;}Object[cZ(0x326)]||Object[cZ(0x1d6)](Object,cZ(0x326),{'enumerable':!0x1,'configurable':!0x0,'writable':!0x0,'value':function(bg){var d0=cZ;if(null==bg)throw new TypeError('Cannot\x20convert\x20first\x20argument\x20to\x20object');for(var bh=Object(bg),bi=0x1;bi<arguments['length'];bi++)if(null!=(bj=arguments[bi]))for(var bj=Object(bj),bk=Object[d0(0x3be)](Object(bj)),bl=0x0,bm=bk['length'];bl<bm;bl++){var bn=bk[bl],bo=Object[d0(0x2af)](bj,bn);null!=bo&&bo['enumerable']&&(bh[bn]=bj[bn]);}return bh;}});var a5=[cZ(0x5b7),cZ(0x751),cZ(0x363),cZ(0x2bc),cZ(0x75d),cZ(0x6c8),cZ(0x183),cZ(0x45e)],a6=(a8[cZ(0x933)][cZ(0x962)]=function(bg,bh){var d1=cZ;for(var bi=0x0;bi<bg[d1(0x6db)];bi++)if(bg[bi]['callback']===bh)return bi;return-0x1;},a8[cZ(0x933)]['on']=function(bg,bh,bi){var d2=cZ,bj;if(void 0x0===bi&&(bi=0x0),this)return(bj=this[d2(0x874)][bg])||(this[d2(0x874)][bg]=[],bj=this[d2(0x874)][bg]),-0x1===this[d2(0x962)](bj,bh)&&bj[d2(0x607)]({'name':bg,'type':bi||0x0,'callback':bh}),this;},a8[cZ(0x933)][cZ(0x4c1)]=function(bg,bh){this['on'](bg,bh,0x1);},a8[cZ(0x933)]['remove']=function(bg,bh){var d3=cZ;if(this){var bi=this[d3(0x874)][bg];if(bi){if(bh)return bi['length']&&(bh=this[d3(0x962)](bi,bh),bi[d3(0x908)](bh,0x1)),this;try{delete this[d3(0x874)][bg];}catch(bj){}}return null;}},a8[cZ(0x933)][cZ(0x2ff)]=function(){this['eventsList']={};},a8),a7=function(bg){var d4=cZ;if(!bg||0x0===bg[d4(0x6db)])return'{}';bg=Array[d4(0x47a)](bg)?bg:[bg];var bh=Object[d4(0x3be)](bg[0x0]),bi={},bj=(bh[d4(0x461)](function(bk){var d5=d4;bi[bk]=bg[d5(0x684)](function(bl){return bl[bk];});}),bi[d4(0x51c)]=bg[d4(0x6db)],bi);if(d4(0xa16)==typeof bj)return bj;try{return JSON[d4(0x975)](bj,aj())||d4(0x490);}catch(bk){return d4(0x7ca)+bk[d4(0x7f8)]+d4(0x4b0)+bk[d4(0x98b)];}};function a8(){var d6=cZ,bg=this;this[d6(0x359)]=function(bh,bi){var d7=d6;if(bg){var bj;if(null!=(bk=bg[d7(0x874)][bh])&&bk[d7(0x6db)])for(var bk=bk[d7(0x9a1)](),bl=0x0;bl<bk[d7(0x6db)];bl++){bj=bk[bl];try{var bm=bj['callback']['apply'](bg,[bi]);if(0x1===bj[d7(0x833)]&&bg[d7(0x2a0)](bh,bj[d7(0x8bc)]),!0x1===bm)break;}catch(bn){throw bn;}}return bg;}},this[d6(0x874)]={};}function a9(bg,bh){var d8=cZ;return d8(0xa16)==typeof bg?bg[d8(0xa20)]('?')[bh?0x1:0x0]||'':bg;}function aa(bg){var d9=cZ;return d9(0xa16)==typeof bg&&bg[d9(0x300)]('//')?d9(0x490)!=typeof location&&d9(0x187)===location[d9(0x561)]:/^https/['test'](bg);}function ab(bg,bh,bi){var da=cZ,bj,bk;try{if(da(0x9d2)==typeof(null==bh?void 0x0:bh[da(0x9d1)]))return{'code':void 0x0===(bl=(bk=bh[da(0x9d1)](bg,null==bi?void 0x0:bi[da(0x260)],null==bi?void 0x0:bi[da(0x231)])||{})['code'])?'unknown':bl,'isErr':bk[da(0x7cf)]};'string'==typeof bg&&(bg=JSON['parse'](bg)),da(0x9d2)==typeof(null==(bj=null==bh?void 0x0:bh['ret'])?void 0x0:bj[da(0x5d7)])&&(ai=[]['concat'](bh['ret'][da(0x684)](function(bn){return bn['toLowerCase']();})));var bl,bm=Object['getOwnPropertyNames'](bg)[da(0x59b)](function(bn){var db=da;return-0x1!==ai['indexOf'](bn[db(0x172)]());});return bm[da(0x6db)]?{'code':''+(bl=bg[bm[0x0]]),'isErr':0x0!==bl&&'0'!==bl}:{'code':da(0x6ab),'isErr':!0x1};}catch(bn){return{'code':'unknown','isErr':!0x1};}}function ac(bg,bh){var dc=cZ;void 0x0===bh&&(bh=0x3);var bi,bj,bk,bl='';return Array[dc(0x47a)](bg)?(bl+='[',bi=bg[dc(0x6db)],bg['forEach'](function(bm,bn){var dd=dc,bo,bp;bl=(bl+=dd(0x455)==typeof bm&&0x1<bh?ac(bm,bh-0x1):(bp='',bp+=dd(0x490)==(bo=typeof bm)||'symbol'==bo||dd(0x9d2)==bo?dd(0x330):'string'==bo||'object'==bo?'\x22'+bm+'\x22':bm))+(bn===bi-0x1?'':',');}),bl+=']'):bg instanceof Object?(bl='{',bj=Object[dc(0x3be)](bg),bk=bj['length'],bj['forEach'](function(bm,bn){var de=dc,bo,bp,bq;'object'==typeof bg[bm]&&0x1<bh?bl+='\x22'+bm+'\x22:'+ac(bg[bm],bh-0x1):bl+=(bq='',de(0xa16)==(bp=typeof(bo=bg[bm]))||de(0x455)==bp?bq+='\x22'+bm+de(0x385)+bo+'\x22':'function'==typeof bo?bq+='\x22'+bm+'\x22:\x22function\x20'+bo[de(0x667)]+'\x22':de(0x929)==typeof bo?bq+='\x22'+bm+de(0x60e):'number'!=typeof bo&&de(0x88d)!=bp||(bq+='\x22'+bm+de(0x370)+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',cZ(0x286),'code',cZ(0x2ee)],aj=function(){var bg=new WeakSet();return function(bh,bi){var df=a0b;if(bi instanceof Error)return df(0x6d9)+bi[df(0x7f8)]+df(0x901)+bi['stack'];if(df(0x455)==typeof bi&&null!==bi){if(bg[df(0x8a0)](bi))return df(0x502)+(bh||df(0x492))+']';bg[df(0x611)](bi);}return bi;};},ak=function(bg){var dg=cZ;if('string'==typeof bg)return bg;try{return bg instanceof Error?(JSON[dg(0x975)](bg,aj(),0x4)||dg(0x490))['replace'](/"/gim,''):JSON[dg(0x975)](bg,aj(),0x4)||dg(0x490);}catch(bh){return dg(0x7ca)+bh[dg(0x7f8)]+dg(0x4b0)+bh[dg(0x98b)];}};function al(bg,bh){var dh=cZ,bi,bj=[],bk=bg[dh(0x534)];return bg[dh(0x209)]['on'](dh(0x9ba),function(){bj['length']=0x0;}),function(bl,bm){var di=dh;Array[di(0x47a)](bl)?bj=bj[di(0x893)](bl):bj[di(0x607)](bl),bh&&bj[di(0x6db)]>=bh||bg[di(0x6bc)]&&0x0<bj[di(0x6db)]?(bj=aE(bj),bm(bj['splice'](0x0,bj[di(0x6db)])),bi&&clearTimeout(bi)):(bi&&clearTimeout(bi),bi=setTimeout(function(){var dj=di;bi=null,0x0<(bj=aE(bj))[dj(0x6db)]&&bm(bj[dj(0x908)](0x0,bj[dj(0x6db)]));},bk[di(0x654)]));};}function am(bg,bh){var dk=cZ;return Array[dk(0x47a)](bg)?bh(bg[dk(0x684)](function(bi){var dl=dk;return bj=a2(a2({},bi),{'msg':dl(0xa16)==typeof bi['msg']?bi[dl(0x55c)]:[][dl(0x893)](bi[dl(0x55c)])[dl(0x684)](ak)[dl(0x5d7)]('\x20')}),a5[dl(0x461)](function(bk){bj[bk]||delete bj[bk];}),bj;var bj;})):bh([a2(a2({},bg),{'msg':dk(0xa16)==typeof bg[dk(0x55c)]?bg['msg']:ak(bg[dk(0x55c)])})]);}function an(bg,bh){return function(bi,bj){var dm=a0b,bk,bl,bm,bn=Array[dm(0x47a)](bi),bo=bn?bi:[bi],bp=(bg[dm(0x209)][dm(0x359)](dm(0x20c),bi),bg[dm(0x534)][dm(0x20c)]);(bo=dm(0x9d2)==typeof bp?bo[dm(0x684)](function(bq){var dn=dm;try{var br=bp({'logs':bq,'logType':bh});return(null==br?void 0x0:br[dn(0x2bb)])===bh&&null!=br&&br[dn(0x582)]?br['logs']:!0x1!==br&&bq;}catch(bs){return bq;}})[dm(0x59b)](function(bq){return!0x1!==bq;}):bo)[dm(0x6db)]&&(bk=bo,bi=a5,!Array[dm(0x47a)](bk)||bk[dm(0x6db)]<=0x1||(bl=[],bm=[],!(bm=dm(0xa16)==typeof bi?[bi]:bi)||bm['length']<=0x0||(bm['forEach'](function(bq){var dp=dm;bk[dp(0x461)](function(br){var dq=dp;null!=br&&br[bq]&&bl[dq(0x607)](bq);});}),0x0<bl[dm(0x6db)]&&(bk=bk[dm(0x684)](function(bq){var dr=dm,br={};return bl[dr(0x461)](function(bs){br[bs]='';}),a2(a2({},br),bq);})))),bo=bk,bj(bn?bo:bo[0x0]));};}function ao(bg){return function(bh,bi){var ds=a0b;bg['lifeCycle']['emit'](ds(0x8d6),bh);var bj=bg['config'][ds(0x8d6)];if('function'==typeof bj)try{var bk=bj(bh);ds(0x455)==typeof bk&&ds(0x260)in bk&&(bh=bk);}catch(bl){console['error'](bl);}bi(bh);};}function ap(bg){return function(bh,bi){var dt=a0b;bg[dt(0x209)][dt(0x359)](dt(0x1c2),bh);var bj=bg[dt(0x534)][dt(0x1c2)];'function'==typeof bj&&!0x1===bj(bh)||bi(bh);};}function aq(bg){var du=cZ;if(bg&&bg[du(0x521)]&&bg[du(0x6db)])return 0x1===bg[du(0x6db)]?function(bh,bi){bg[0x0](bh,bi||aI);}:bg[du(0x521)](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(du(0x5de));}function ar(bg,bh){var dv=cZ;Object[dv(0x7ce)](bg)['forEach'](function(bi){var dw=dv;dw(0x9d2)==typeof bg[bi]&&dw(0x8ac)!==bi&&(bh?bh[bi]='sendPipeline'===bi?function(){return function(){};}:function(){}:bg[bi]=function(){});});}function as(bg){var dx=cZ;try{var bh,bi,bj,bk='';return bk=bg['pageUrl']||(bi=(bh=getCurrentPages())[bh[dx(0x6db)]-0x1]||{},bl=bi['options'],bj=Object[dx(0x3be)](bl)[dx(0x6db)]?'?'+Object[dx(0x3be)](bl)[dx(0x684)](function(bm){return bm+'='+bl[bm];})[dx(0x5d7)]('&'):'',bi[dx(0x270)]?bi[dx(0x270)]+bj:''),bk=dx(0x9d2)==typeof bg[dx(0x427)]?bg['urlHandler']():bk;}catch(bm){return'';}var bl;}function au(bg,bh){var dy=cZ;if(dy(0xa16)==typeof bg&&dy(0xa16)==typeof bh){if(bg===bh)return 0x1;for(var bi=bg[dy(0xa20)]('.'),bj=bh[dy(0xa20)]('.'),bk=Math['max'](bi['length'],bj[dy(0x6db)]),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 dz=cZ;return au(aM=aM||aL['getSystemInfoSync']()[dz(0x753)],'1.1.1')&&aL[dz(0xa21)]?aL['canIUse'](bg):!!aL[bg];}function aw(bg){var dA=cZ;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[dA(0x6ab)],bk=0x0;bk<Object['keys'](bi)[dA(0x6db)];bk++){var bl=Object['keys'](bi)[bk];if(null!=(bh=bi[bl])&&bh[dA(0x2ed)](bg)){bj=af[bl];break;}}return bj;}function ax(bg){var dB=cZ,bh=bg[dB(0x7a8)],bi=aU[bh];bi?bi[dB(0x4c2)][dB(0x61c)](bg):(bi=aT['cloud'][bh],aU[bh]={'hackCloudReq':new aV(bg),'originApi':bi}),aU[bh];}function ay(bg){var dC=cZ,bh=bg[dC(0x7a8)],bi=aX[bh];bi?bi[dC(0x2f2)][dC(0x61c)](bg):(bi=wx[bh],aX[bh]={'hackReq':new aY(bg),'originApi':bi}),aX[bh];}(aJ=ad=ad||{})[cZ(0x520)]='-1',aJ[cZ(0x4b1)]='1',aJ['INFO']='2',aJ['ERROR']='4',aJ[cZ(0x877)]='8',aJ[cZ(0x926)]='16',aJ[cZ(0x22f)]='32',aJ['IMAGE_ERROR']='64',aJ[cZ(0x5f2)]=cZ(0x618),aJ['CONSOLE_ERROR']=cZ(0x421),aJ[cZ(0x948)]='512',aJ[cZ(0x536)]=cZ(0x8cb),aJ[cZ(0x7de)]=cZ(0x739),aJ['PV']='4096',aJ[cZ(0x4f1)]=cZ(0x486),aJ[cZ(0x254)]=cZ(0x18b),aJ[cZ(0x769)]=cZ(0x32d),aJ[cZ(0x599)]=cZ(0x84e),(aJ=ae=ae||{})[aJ['android']=0x1]='android',aJ[aJ[cZ(0x9a4)]=0x2]=cZ(0x9a4),aJ[aJ[cZ(0x1a2)]=0x3]=cZ(0x1a2),aJ[aJ[cZ(0x1ab)]=0x4]=cZ(0x1ab),aJ[aJ[cZ(0x1dd)]=0x5]='linux',aJ[aJ[cZ(0x4e2)]=0x6]='devtools',aJ[aJ[cZ(0x510)]=0x64]='other',(aJ=af=af||{})[aJ[cZ(0x6ab)]=0x64]=cZ(0x6ab),aJ[aJ[cZ(0x6b1)]=0x1]=cZ(0x6b1),aJ[aJ[cZ(0x28f)]=0x2]=cZ(0x28f),aJ[aJ[cZ(0x4b3)]=0x3]='net3g',aJ[aJ[cZ(0x6a5)]=0x4]=cZ(0x6a5),aJ[aJ[cZ(0x96b)]=0x5]=cZ(0x96b),aJ[aJ['net6g']=0x6]=cZ(0x1da),(aJ=ag=ag||{})['LOG']='log',aJ['SPEED']=cZ(0x671),aJ[cZ(0x303)]=cZ(0x8e2),aJ['OFFLINE']=cZ(0xa11),aJ[cZ(0x6ae)]=cZ(0x1ee),aJ['VITALS']=cZ(0x837),aJ['PV']='pv',aJ[cZ(0x954)]=cZ(0x99f),aJ['EVENT']=cZ(0x4da),aJ['CUSTOM']='custom',aJ['SDK_ERROR']=cZ(0x7a3),aJ[cZ(0x2be)]=cZ(0x23b),aJ[cZ(0x8b1)]=cZ(0x37c),(aJ=ah=ah||{})[cZ(0x8a7)]=cZ(0x8a7),aJ[cZ(0x4c5)]=cZ(0x4c5),aJ[cZ(0x239)]=cZ(0x239),aJ[cZ(0x24b)]=cZ(0x24b),aJ[cZ(0x49f)]=cZ(0x49f),aJ[cZ(0x3ed)]='local',aJ[cZ(0x2ed)]=cZ(0x2ed),aJ[cZ(0x5b5)]='others';var az,aA,aB,aC,aD,aE=function(bg){var dD=cZ;return bg[dD(0x59b)](function(bh,bi){var dE=dD;return dE(0x46c)!==bh[dE(0x833)]||!bg[dE(0x412)](function(bj,bk){var dF=dE;return bh['url']===bj['url']&&0xc8===bh[dF(0x95b)]&&bi<bk;});});},aF=function(bg){var dG=cZ;bg[dG(0x2bc)]===ad[dG(0x520)]&&(bg[dG(0x2bc)]=ad['INFO']);},aG=function(bg){var dH=cZ;return(Array['isArray'](bg)?bg:[bg])[dH(0x684)](function(bh){var dI=dH;return Object[dI(0x7ce)](bh)['reduce'](function(bi,bj){return'ctx'!==bj&&(bi[bj]=bh[bj]),bi;},{'level':ad['INFO'],'msg':''});});},aH=function(bg){return function(bh){var dJ=a0b;return bg[dJ(0x4be)]([function(bi,bj){var dK=dJ;return bj({'url':bg[dK(0x534)][dK(0x260)]||'','data':a7(aG(bi)),'method':'post','contentType':dK(0x543),'type':ag['LOG'],'log':bi,'requestConfig':{'timeout':0x1388},'success':function(){var dL=dK,bk=bg[dL(0x534)][dL(0x1e7)];dL(0x9d2)==typeof bk&&bi[dL(0x461)](function(bl){bk(bl);}),dL(0x9d2)==typeof bj&&bj([]);},'fail':function(bk){var dM=dK;dM(0x272)===bk&&bg['destroy']();}});}],ag['LOG'])(bh);};},aI=function(){},aJ=(Object[cZ(0x1d6)](bf[cZ(0x933)],cZ(0x48a),{'get':function(){var dN=cZ;return console[dN(0x83b)](dN(0x469)),'1.36.3';},'enumerable':!0x1,'configurable':!0x0}),Object[cZ(0x1d6)](bf[cZ(0x933)],cZ(0x481),{'get':function(){var dO=cZ;return console[dO(0x83b)]('LogType\x20has\x20discard,\x20please\x20use\x20logType'),ad;},'enumerable':!0x1,'configurable':!0x0}),bf[cZ(0x933)]['init']=function(bg){var dP=cZ;this[dP(0x9e2)](bg);for(var bh=0x0;bh<bf[dP(0x46f)][dP(0x6db)];bh++)try{bf['installedPlugins'][bh][dP(0x494)](this);}catch(bi){this[dP(0x679)](bi);}this['lifeCycle'][dP(0x359)](dP(0x675));},bf[cZ(0x933)][cZ(0x9e2)]=function(bg){var dQ=cZ;Object[dQ(0x326)](this[dQ(0x534)],bg);var bh=(bg=this[dQ(0x534)])['id'],bi=bg[dQ(0x441)],bj=bg[dQ(0x410)],bk=bg[dQ(0x5b7)],bl=bg['ext2'],bm=bg[dQ(0x363)],bn=bg[dQ(0x1d8)],bo=void 0x0===(bp=bg[dQ(0x97a)])?dQ(0x8a7):bp,bp=bg['pageUrl'];return bg=this[dQ(0x24c)]['id']!==bh||this[dQ(0x24c)][dQ(0x441)]!==bi||this[dQ(0x24c)][dQ(0x1d8)]!==bn,this[dQ(0x24c)]['id']=bh||'',this['bean'][dQ(0x441)]=bi||'',this[dQ(0x24c)][dQ(0x410)]=bj||dQ(0x77e),this['bean']['aid']=bn||'',this[dQ(0x24c)]['env']=(function(){var dR=dQ;switch(bo){case ah[dR(0x8a7)]:case ah[dR(0x4c5)]:case ah[dR(0x239)]:case ah['pre']:case ah['daily']:case ah[dR(0x3ed)]:case ah[dR(0x2ed)]:case ah['others']:return 0x1;default:return;}}())?bo:ah[dQ(0x5b5)],bp&&this[dQ(0x50e)](dQ(0x170),encodeURIComponent(bp)),bk&&this[dQ(0x50e)](dQ(0x5b7),encodeURIComponent(bk)),bl&&this['extendBean'](dQ(0x751),encodeURIComponent(bl)),bm&&this[dQ(0x50e)](dQ(0x363),encodeURIComponent(bm)),bg&&this[dQ(0x209)][dQ(0x359)](dQ(0x345),this[dQ(0x534)]),this[dQ(0x534)];},bf[cZ(0x7ff)]=function(bg){var dS=cZ;-0x1===bf['installedPlugins'][dS(0x962)](bg)&&bg[dS(0x470)]&&bf[dS(0x46f)][dS(0x607)](bg);},bf[cZ(0x4d7)]=function(bg){-0x1!==(bg=bf['installedPlugins']['indexOf'](bg))&&bf['installedPlugins']['splice'](bg,0x1);},bf[cZ(0x933)][cZ(0x338)]=function(){var dT=cZ;for(var bg=[],bh=0x0;bh<arguments[dT(0x6db)];bh++)bg[bh]=arguments[bh];var bi={'level':ad[dT(0x2dd)],'msg':bg};0x1===bg['length']&&bg[0x0]['msg']&&Object[dT(0x326)](bi,a2({},bg[0x0]),{'level':ad['INFO']}),this['normalLogPipeline'](bi);},bf[cZ(0x933)][cZ(0x7b5)]=function(){var dU=cZ;for(var bg=[],bh=0x0;bh<arguments[dU(0x6db)];bh++)bg[bh]=arguments[bh];var bi={'level':ad[dU(0x520)],'msg':bg};0x1===bg['length']&&bg[0x0][dU(0x55c)]&&Object['assign'](bi,a2({},bg[0x0]),{'level':ad[dU(0x520)]}),this[dU(0x204)](bi);},bf[cZ(0x933)][cZ(0x93a)]=function(){var dV=cZ;for(var bg=[],bh=0x0;bh<arguments[dV(0x6db)];bh++)bg[bh]=arguments[bh];var bi={'level':ad[dV(0x7de)],'msg':bg};0x1===bg[dV(0x6db)]&&bg[0x0][dV(0x55c)]&&Object['assign'](bi,a2({},bg[0x0])),this[dV(0x204)](bi);},bf[cZ(0x933)][cZ(0x1a6)]=function(){var dW=cZ;for(var bg=[],bh=0x0;bh<arguments[dW(0x6db)];bh++)bg[bh]=arguments[bh];var bi={'level':ad[dW(0x797)],'msg':bg};0x1===bg[dW(0x6db)]&&bg[0x0][dW(0x55c)]&&Object[dW(0x326)](bi,a2({},bg[0x0]),{'level':ad[dW(0x797)]}),this[dW(0x204)](bi);},bf[cZ(0x933)][cZ(0x3ae)]=function(bg){throw new Error('You\x20need\x20to\x20override\x20\x22speedLogPipeline\x22\x20method');},bf[cZ(0x933)][cZ(0xa29)]=function(bg){var dX=cZ,bh,bi=this;bg&&(console[dX(0x83b)](dX(0x5c8)),bh=''+Object[dX(0x7ce)](this[dX(0x24c)])['filter'](function(bj){return'id'!==bj;})['map'](function(bj){var dY=dX;return bj+'='+bi[dY(0x24c)][bj];})[dX(0x5d7)]('&'),this['sendPipeline']([function(bj,bk){var dZ=dX;bk({'url':bi[dZ(0x534)]['url']+'/'+bg+'?'+bh,'addBean':!0x1,'type':ag[dZ(0x954)],'fail':function(bl){var e0=dZ;e0(0x272)===bl&&bi[e0(0x9ba)]();}});}],ag[dX(0x954)])(null));},bf[cZ(0x933)][cZ(0x7b6)]=function(bg){var e1=cZ;bg&&((bg=e1(0xa16)==typeof bg?{'name':bg,'ext1':this[e1(0x534)][e1(0x5b7)]||'','ext2':this['config'][e1(0x751)]||'','ext3':this[e1(0x534)][e1(0x363)]||''}:bg)['name']?this[e1(0x802)](bg):console[e1(0x83b)](e1(0x6ed)));},bf[cZ(0x933)][cZ(0x47d)]=function(bg,bh){var e2=cZ;if(e2(0x455)==typeof bg)return this[e2(0x776)](bg);e2(0xa16)==typeof bg?'number'==typeof bh?bh<0x0||0xea60<bh?console['warn'](e2(0x625)):this[e2(0x2b6)](bg,bh):console['warn'](e2(0x922)):console[e2(0x83b)](e2(0x1a8));},bf['prototype']['reportT']=function(bg){var e3=cZ,bh=bg[e3(0x667)],bi=bg[e3(0x3bd)],bj=void 0x0===(bj=bg[e3(0x5b7)])?'':bj,bk=void 0x0===(bk=bg[e3(0x751)])?'':bk,bl=void 0x0===(bl=bg[e3(0x363)])?'':bl;if(bg=bg[e3(0x170)],e3(0xa16)==typeof bh&&e3(0x92f)==typeof bi&&e3(0xa16)==typeof bj&&e3(0xa16)==typeof bk&&e3(0xa16)==typeof bl){if(!(bi<0x0||0xea60<bi))return this[e3(0x2b6)](bh,bi,bj,bk,bl,void 0x0===bg?'':bg);console[e3(0x83b)](e3(0x625));}else console[e3(0x83b)](e3(0x6e4));},bf[cZ(0x933)][cZ(0x40f)]=function(bg){var e4=cZ;e4(0xa16)==typeof bg?this[e4(0x732)][bg]?console[e4(0x83b)](e4(0x580)+bg+e4(0x1e3)):this[e4(0x732)][bg]=Date[e4(0x8d4)]():console[e4(0x83b)](e4(0x947));},bf[cZ(0x933)][cZ(0x2da)]=function(bg){var e5=cZ;e5(0xa16)==typeof bg?this[e5(0x732)][bg]?(this[e5(0x2b6)](bg,Date['now']()-this['timeMap'][bg]),delete this[e5(0x732)][bg]):console[e5(0x83b)]('Timer\x20'+bg+e5(0x733)):console['warn'](e5(0x3f0));},bf[cZ(0x933)][cZ(0x2b6)]=function(bg,bh,bi,bj,bk,bl){var e6=cZ;this[e6(0x7f5)]({'name':bg,'duration':bh,'ext1':bi||this['config']['ext1'],'ext2':bj||this['config']['ext2'],'ext3':bk||this['config'][e6(0x363)],'from':bl||void 0x0});},bf[cZ(0x933)][cZ(0x50e)]=function(bg,bh){var e7=cZ;this[e7(0x24c)][bg]=bh;},bf['prototype']['sendPipeline']=function(bg,bh){var bi,bj=this;return aq(a4([function(bk,bl){var e8=a0b;if(e8(0x92f)!=typeof bi[e8(0x534)]['random']&&(console['warn']('random\x20must\x20in\x20[0,\x201],\x20default\x20is\x201.'),bi[e8(0x534)][e8(0x6ef)]=0x1),!bi['isHidden']||!bi[e8(0x99e)]){if(bi[e8(0x99e)])bi['isHidden']||bl(bk);else{if(bi[e8(0x99e)]=!0x0,Math[e8(0x6ef)]()<bi[e8(0x534)][e8(0x6ef)])return bi[e8(0x982)]=!0x1,bl(bk);bi[e8(0x982)]=!0x0;}}},an(bi=this,bh)],bg,[ao(this),function(bk,bl){var e9=a0b;bj[e9(0x176)](bk,function(){var ea=e9;for(var bm,bn=[],bo=0x0;bo<arguments[ea(0x6db)];bo++)bn[bo]=arguments[bo];bj[ea(0x850)]=0x0,bl({'isErr':!0x1,'result':bn,'logType':null==bk?void 0x0:bk[ea(0x833)],'logs':null==bk?void 0x0:bk[ea(0x8f1)]}),null!=(bm=null==bk?void 0x0:bk['success'])&&bm[ea(0x6e9)]['apply'](bm,a4([bk],bn));},function(){var eb=e9;for(var bm,bn=[],bo=0x0;bo<arguments['length'];bo++)bn[bo]=arguments[bo];0xa<=++bj[eb(0x850)]&&bj['destroy'](),bl({'isErr':!0x0,'result':bn,'logType':null==bk?void 0x0:bk['type'],'logs':null==bk?void 0x0:bk[eb(0x8f1)]}),null!=(bm=null==bk?void 0x0:bk[eb(0x79e)])&&bm[eb(0x6e9)][eb(0x821)](bm,a4([bk],bn));});},ap(this)]));},bf['prototype'][cZ(0x8ae)]=function(bg,bh,bi){var bj=this;return aq([ao(this),function(bk,bl){var ec=a0b;bj[ec(0x176)](bk,function(){var ed=ec;for(var bm=[],bn=0x0;bn<arguments[ed(0x6db)];bn++)bm[bn]=arguments[bn];bl({'isErr':!0x1,'result':bm,'logType':bk[ed(0x833)],'logs':bk['log']}),null!=bh&&bh['apply'](void 0x0,bm);},function(){var ee=ec;for(var bm=[],bn=0x0;bn<arguments[ee(0x6db)];bn++)bm[bn]=arguments[bn];bl({'isErr':!0x0,'result':bm,'logType':bk[ee(0x833)],'logs':bk[ee(0x8f1)]}),null!=bi&&bi[ee(0x821)](void 0x0,bm);});},ap(this)])(bg);},bf[cZ(0x933)][cZ(0x704)]=function(bg,bh,bi){throw new Error('You\x20need\x20to\x20override\x20\x22ready\x22\x20method');},bf[cZ(0x933)][cZ(0x176)]=function(bg,bh,bi){var ef=cZ;throw new Error(ef(0x1ef));},bf[cZ(0x933)][cZ(0x679)]=function(bg){var eh=cZ,bh=this;this['sendPipeline']([function(bi,bj){var eg=a0b;bj({'url':bh[eg(0x534)]['url']+eg(0x66f)+encodeURIComponent(ak(bi))+eg(0x8a4)+bh[eg(0x534)]['id']+'&count=1&version='+bh[eg(0x534)]['id']+eg(0x557),'addBean':!0x1,'method':eg(0x52c),'type':ag[eg(0x9f0)],'log':bi});}],ag[eh(0x9f0)])(bg);},bf['prototype'][cZ(0x9ba)]=function(bg){var ei=cZ;void 0x0===bg&&(bg=!0x1);var bh,bi,bj=bf[ei(0x4fe)][ei(0x962)](this);-0x1!==bj&&bf[ei(0x4fe)]['splice'](bj,0x1);for(var bk=bf[ei(0x46f)][ei(0x6db)]-0x1;0x0<=bk;bk--)try{bf['installedPlugins'][bk][ei(0x711)](this);}catch(bm){this[ei(0x679)](bm);}if(this['lifeCycle'][ei(0x359)](ei(0x9ba)),this[ei(0x209)][ei(0x2ff)](),bg)bh=this,bi=Object[ei(0x4fb)](bh),Object[ei(0x3be)](bi)[ei(0x461)](function(bn){var ej=ei;bi[bn][ej(0x8ba)]&&(bh[bn]=null);}),Object[ei(0x500)](this,null);else{for(var bl=this;bl[ei(0x8ac)]!==Object&&ar(bl,this),bl=Object[ei(0x542)](bl););0x0===bf[ei(0x4fe)][ei(0x6db)]&&(ar(bj=Object['getPrototypeOf'](this)[ei(0x8ac)]),ar(bf));}},bf[cZ(0x410)]=cZ(0x77e),bf[cZ(0x4fe)]=[],bf[cZ(0x2bb)]=ad,bf['environment']=ah,bf[cZ(0x46f)]=[],bf),aK=(be[cZ(0x933)][cZ(0x494)]=function(bg){var ek=cZ;this[ek(0x668)](bg)&&this[ek(0x888)](bg)&&(this[ek(0x4fe)][ek(0x607)](bg),this[ek(0x943)](bg),this['triggerOnNewAegis'](bg));},be[cZ(0x933)][cZ(0x711)]=function(bg){var el=cZ;-0x1!==(bg=this[el(0x4fe)][el(0x962)](bg))&&(this[el(0x4fe)][el(0x908)](bg,0x1),0x0===this['instances'][el(0x6db)]&&this['uninstall']());},be[cZ(0x933)][cZ(0x3ab)]=function(){var em=cZ;return this[em(0x4fe)][em(0x6db)];},be[cZ(0x933)]['uninstall']=function(){var en=cZ,bg;null!=(bg=null==(bg=this[en(0x6d7)])?void 0x0:bg[en(0x9ba)])&&bg['apply'](this);},be[cZ(0x933)]['walk']=function(bg){var eo=cZ,bh=this;this[eo(0x4fe)][eo(0x461)](function(bi){var ep=eo,bj=bh[ep(0x668)](bi);bj&&bg(bi,bj);});},be[cZ(0x933)][cZ(0x668)]=function(bg){var eq=cZ;return!(!(bg=this[eq(0x7db)](bg))||eq(0x455)!=typeof bg)||!!bg;},be[cZ(0x933)][cZ(0x7db)]=function(bg){var er=cZ;return null==(bg=bg[er(0x534)])?void 0x0:bg[this[er(0x667)]];},be['prototype'][cZ(0x888)]=function(bg){var es=cZ;return-0x1===this[es(0x4fe)][es(0x962)](bg);},be[cZ(0x933)][cZ(0x943)]=function(bg){var et=cZ,bh;this['inited']||(this[et(0x514)]=!0x0,null!=(bh=null==(bh=this[et(0x6d7)])?void 0x0:bh[et(0x526)])&&bh[et(0x6e9)](this[et(0x6d7)],this[et(0x7db)](bg)));},be[cZ(0x933)][cZ(0x5f1)]=function(bg){var eu=cZ,bh;null!=(bh=null==(bh=this[eu(0x6d7)])?void 0x0:bh[eu(0x9d8)])&&bh[eu(0x6e9)](this['option'],bg,this[eu(0x7db)](bg));},be),aL=wx||qq,aM='',aN=new aK({'name':'offlineLog','onNewAegis':function(bg){var ev=cZ;if(aL[ev(0x82d)])try{var bh=bg[ev(0x534)],bi=bh['id'],bj=void 0x0===bi?'':bi,bk=bh[ev(0x441)],bl=void 0x0===bk?0x0:bk,bm=bh[ev(0x9d6)],bn=void 0x0===bm?'':bm,bo=bh[ev(0x414)],bp=new aO({'limit':bo});bg[ev(0x209)]['on'](ev(0x46d),function(bq){bp['save2Offline'](bq=void 0x0===bq?[]:bq,bg['config']);}),bp[ev(0x704)](function(bq){var ew=ev,br=(bg[ew(0x24c)]||{})[ew(0x1d8)],bs=void 0x0===br?'':br;!bq&&bj&&(bl||bs)&&bg[ew(0x8ae)]({'url':bn+'/offlineAuto','type':ag[ew(0x382)],'log':ag[ew(0x382)]},function(bu){var ex=ew,bv=(null==bu?void 0x0:bu[ex(0x53b)])['secretKey'];bv&&!bq&&bp['getLogs']({'id':bj,'uin':bl},function(bw,bx){var ey=ex;bw?console[ey(0x1a6)](bw):bg[ey(0x8ae)]({'url':bn+ey(0x9d3),'data':{'logs':bx,'secretKey':bv,'id':bj,'uin':bl,'aid':bs},'method':ey(0x728),'type':ag[ey(0x382)],'log':bx},function(){var ez=ey;bp[ez(0x70c)]();});});});});}catch(bq){console[ev(0x1a6)](bq);}else console[ev(0x83b)]('[aegis-mp-sdk]unsupport\x20getFileSystemManager\x20offline\x20log\x20not\x20work!');}}),aO=(bd[cZ(0x933)][cZ(0x6be)]=function(bg,bh){var eA=cZ,bi=this[eA(0x777)],bj=this['filePath'];bi[eA(0x8f3)]({'filePath':bj,'encoding':eA(0x4ea),'fail':function(bk){var eB=eA;console[eB(0x1a6)](bk);},'success':function(bk){var eC=eA;bk=(void 0x0===(bk=bk[eC(0x53b)])?'':bk)['toString']()[eC(0xa20)]('\x0a')[eC(0x59b)](function(bl){return bl;})[eC(0x684)](function(bl){return JSON['parse'](bl);}),bh(null,bk);}});},bd['prototype'][cZ(0x600)]=function(bg,bh){var eD=cZ;void 0x0===bh&&(bh=function(){});var bi=this[eD(0x777)],bj=this['filePath'],bk=this[eD(0x9c1)];bi[eD(0x8f3)]({'filePath':bj,'encoding':eD(0x4ea),'success':function(bl){var eE=eD;if((bl=(bl=void 0x0===(bl=bl['data'])?'':bl)[eE(0x4e3)]()+bg)[eE(0x6db)]>bk){for(var bm=bl['split']('\x0a'),bn='',bo=bm['length']-0x1;0x0<=bo&&!(bm[bo]&&(bn=bm[bo]+'\x0a'+bn)[eE(0x6db)]>bk);bo--);bi[eE(0x8f4)]({'filePath':bj,'data':bn,'success':bh});}else bi[eE(0x4f9)]({'data':bg,'filePath':bj,'encoding':eE(0x4ea),'success':bh,'fail':function(bp){var eF=eE;console[eF(0x1a6)](bp);}});}});},bd),aP=new aK({'name':cZ(0x3e1),'onNewAegis':function(bg){return bh=this,bk=function(){return a3(this,function(bl){var eG=a0b;return this[eG(0x8dc)](bg),this[eG(0x28c)](bg),this[eG(0x96d)](bg),[0x2];});},new(bj=(bj=bi=void 0x0)||Promise)(function(bl,bm){var eJ=a0b;function bn(bq){try{bp(bk['next'](bq));}catch(br){bm(br);}}function bo(bq){var eH=a0b;try{bp(bk[eH(0x567)](bq));}catch(br){bm(br);}}function bp(bq){var eI=a0b,br;bq[eI(0x1ec)]?bl(bq['value']):((br=bq[eI(0x8b5)])instanceof bj?br:new bj(function(bs){bs(br);}))[eI(0xa17)](bn,bo);}bp((bk=bk[eJ(0x821)](bh,bi||[]))['next']());});var bh,bi,bj,bk;},'setSystemInfo':function(bg){var eK=cZ,bh=this;try{av(eK(0xa19))&&aL[eK(0xa19)]({'success':function(bi){var eL=eK,bj=bi[eL(0x519)],bk=bi[eL(0x466)],bl=bi['windowHeight'],bm=bi['windowWidth'],bn=void 0x0===(bn=bi[eL(0x790)])?0x0:bn;bi=void 0x0===(bi=bi[eL(0x2e5)])?0x0:bi,bg[eL(0x50e)]('platform',bh['getPlatFormType'](bj)),bg[eL(0x50e)](eL(0x466),bk),bg[eL(0x50e)]('vp',Math['round'](bm)+eL(0x7ba)+Math[eL(0x869)](bl)),bg[eL(0x50e)]('sr',Math[eL(0x869)](bn)+eL(0x7ba)+Math[eL(0x869)](bi));}});}catch(bi){}},'getPlatFormType':function(bg){var eM=cZ;for(var bh,bi={'android':/android/i,'ios':/ios/i,'windows':/windows/i,'macos':/mac/i,'devtools':/devtools/i},bj=ae[eM(0x510)],bk=0x0;bk<Object[eM(0x3be)](bi)[eM(0x6db)];bk++){var bl=Object[eM(0x3be)](bi)[bk];if(null!=(bh=bi[bl])&&bh[eM(0x2ed)](bg)){bj=ae[bl];break;}}return bj;},'setNetworkChange':function(bg){var eN=cZ;av(eN(0x229))&&aL['onNetworkStatusChange'](function(bh){var eO=eN;bh=aw(bh[eO(0x5a4)]),bg[eO(0x50e)]('netType',bh);});},'setNetworkType':function(bg){var eP=cZ;av(eP(0x860))&&aL[eP(0x860)]({'success':function(bh){var eQ=eP;bh=aw(bh[eQ(0x5a4)]),bg[eQ(0x50e)](eQ(0x474),bh);}});},'refreshNetwork':function(bg){var eR=cZ,bh=this;this['timer']&&clearTimeout(this[eR(0x9b6)]),this[eR(0x222)](bg),this[eR(0x9b6)]=setTimeout(function(){bh['refreshNetwork'](bg);},0x2710);}}),aQ=aL[cZ(0x176)],aR=(a1(bc,aD=aJ),Object[cZ(0x1d6)](bc['prototype'],cZ(0x3a5),{'get':function(){var eS=cZ,bg=this;return this[eS(0x24c)]?Object[eS(0x7ce)](this[eS(0x24c)])[eS(0x684)](function(bh){var eT=eS;return bh+'='+bg[eT(0x24c)][bh];})[eS(0x5d7)]('&')+eS(0x801)+encodeURIComponent(as(this[eS(0x534)])):'from='+encodeURIComponent(as(this[eS(0x534)]));},'enumerable':!0x1,'configurable':!0x0}),bc['prototype'][cZ(0x7f2)]=function(){bc['use'](aN);},bc[cZ(0x933)]['uploadLogs']=function(bg,bh){var eU=cZ;this['lifeCycle'][eU(0x359)](eU(0x741),bg=void 0x0===bg?{}:bg,bh=void 0x0===bh?{}:bh);},bc[cZ(0x933)]['reportPv']=function(bg){var eV=cZ,bh,bi=this;bg&&(bh=Object[eV(0x7ce)](this[eV(0x24c)])[eV(0x59b)](function(bj){return'id'!==bj;})[eV(0x684)](function(bj){var eW=eV;return bj+'='+bi[eW(0x24c)][bj];})[eV(0x5d7)]('&')+eV(0x801)+encodeURIComponent(as(this[eV(0x534)])),this['send']({'url':this[eV(0x534)]['url']+'/'+bg+'?'+bh,'addBean':!0x1,'type':ag[eV(0x954)],'log':ag['CUSTOM_PV']},function(){},function(){}));},bc['sessionID']=cZ(0x6f6)+Date['now'](),bc[cZ(0x40c)]=0x0,aJ=bc,new aK({'name':cZ(0x1d8),'onNewAegis':function(bg){var eX=cZ;this[eX(0x637)](function(bh){var eY=eX;bg['bean'][eY(0x1d8)]=bh,bg[eY(0x534)][eY(0x1d8)]=bh;});},'initAid':function(bg){var eZ=cZ;aL[eZ(0x415)]({'key':'AEGIS_ID','success':function(bh){var f0=eZ;bg(bh[f0(0x53b)]);},'fail':function(){var f1=eZ,bh=f1(0x4b4)['replace'](/[xy]/g,function(bi){var bj=0x10*Math['random']()|0x0;return('x'===bi?bj:0x3&bj|0x8)['toString'](0x10);});aL['setStorage']({'key':f1(0x9ff),'data':bh,'success':function(){bg(bh);}});}});}})),aS=(bb[cZ(0x933)][cZ(0x61c)]=function(bg){var f2=cZ;bg&&this[f2(0x6b5)][f2(0x607)](bg);},bb[cZ(0x933)][cZ(0x79b)]=function(bg){return a2(a2({},bg),{'aegisRequestStartTime':+new Date()});},bb[cZ(0x933)][cZ(0x620)]=function(bg,bh){var f3=cZ,bi;this[f3(0x6b5)]['forEach'](function(bj){var f4=f3,bk;try{null!=(bk=bj[f4(0x852)])&&bk[f4(0x6e9)](bj,bg,bh);}catch(bl){}}),null!=(bi=bh['success'])&&bi[f3(0x6e9)](bh,bg,bh);},bb[cZ(0x933)]['failHandler']=function(bg,bh){var f5=cZ,bi;this[f5(0x6b5)]['forEach'](function(bj){var f6=f5,bk;try{null!=(bk=bj[f6(0x79e)])&&bk['call'](bj,bg,bh);}catch(bl){}}),null!=(bi=bh[f5(0x79e)])&&bi[f5(0x6e9)](bh,bg,bh);},bb[cZ(0x933)]['completeHandler']=function(bg,bh){var f7=cZ,bi;this[f7(0x6b5)][f7(0x461)](function(bj){var f8=f7,bk;try{null!=(bk=bj[f8(0x623)])&&bk[f8(0x6e9)](bj,bg,bh);}catch(bl){}}),null!=(bi=bh[f7(0x623)])&&bi['call'](bh,bg,bh);},bb[cZ(0x933)][cZ(0x725)]=function(){var f9=cZ;try{this[f9(0x5d4)]();}catch(bg){console[f9(0x83b)]('cannot\x20override\x20`'+this[f9(0x7a8)]+f9(0x702)+bg);}finally{this[f9(0x90c)]=!0x0;}},bb),aT=wx||qq,aU={},aV=(a1(ba,aC=aS),ba[cZ(0x933)][cZ(0x5d4)]=function(){var fa=cZ,bg=this;aT[fa(0x5e8)]&&aT['cloud'][this[fa(0x7a8)]]&&Object[fa(0x1d6)](aT[fa(0x5e8)],this['apiName'],{'get':function(){return bg['hackHandler']['bind'](bg);}});},ba[cZ(0x933)][cZ(0x891)]=function(bg){var fb=cZ,bh=this,bi=this[fb(0x79b)](bg);return new Promise(function(bj,bk){var fc=fb,bl=null==(bl=aU[bh[fc(0x7a8)]])?void 0x0:bl['originApi'];null!=bl&&bl(a2(a2({},bi),{'success':function(bm){bh['successHandler'](bm,bi),bj(bm);},'fail':function(bm){bh['failHandler'](bm,bi),bk(bm);},'complete':function(bm){var fd=fc;bh[fd(0x842)](bm,bi);}}));});},ba),aW=wx||qq,aX={},aY=(a1(b9,aB=aS),b9['prototype'][cZ(0x5d4)]=function(){var fe=cZ,bg=this;Object[fe(0x1d6)](aW,this[fe(0x7a8)],{'get':function(){var ff=fe;return bg[ff(0x891)]['bind'](bg);}});},b9[cZ(0x933)][cZ(0x891)]=function(bg){var fg=cZ,bh=this,bi=this[fg(0x79b)](bg);return null==(bg=null==(bg=aX[this['apiName']])?void 0x0:bg[fg(0x5d1)])?void 0x0:bg(a2(a2({},bi),{'success':function(bj){var fh=fg;bh[fh(0x620)](bj,bi);},'fail':function(bj){bh['failHandler'](bj,bi);},'complete':function(bj){bh['completeHandler'](bj,bi);}}));},b9),aZ=new aK({'name':'reportApiSpeed','override':!0x1,'onNewAegis':function(bg){var fi=cZ;this[fi(0x725)]||(this[fi(0x725)]=!0x0,this[fi(0x467)](bg['config']),this['overrideCallFunction'](bg['config']),this[fi(0x7ae)](bg[fi(0x534)]));},'hackRequest':function(bg){var bh=this;ay({'apiName':'request','success':function(bi,bj){var fj=a0b,bk,bl,bm,bn;bg['hostUrl']&&-0x1<bj[fj(0x260)]['indexOf'](bg[fj(0x4df)])||(bk={'method':bj['method']||fj(0x52c),'url':a9(bj[fj(0x260)]),'duration':Date[fj(0x8d4)]()-bj[fj(0x66a)],'status':bi['statusCode']||0x0,'nextHopProtocol':'','isHttps':aa(bj['url']),'type':fj(0x6d6)},bl=null==(bl=bg[fj(0x597)])?void 0x0:bl[fj(0x96c)],bm=(bn=ab(bi[fj(0x53b)],bg[fj(0x597)],{'url':bj[fj(0x260)],'ctx':bi})||{})[fj(0x45e)],bn=bn['isErr'],bj='req\x20url:\x20'+bk[fj(0x260)]+fj(0x8f2)+bk[fj(0x3d0)]+fj(0x346)+(bl?ak(bj['data']):'')+fj(0x883)+bk[fj(0x3bd)]+fj(0x30f)+(bi[fj(0x974)]||0x0)+fj(0x29d)+bm+'\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'+(bl?ac(bi[fj(0x53b)]):''),bh['publishNormalLog']({'msg':bj,'level':ad[fj(0x4b1)],'ctx':bi}),bk['ret']=bm,bk[fj(0x7cf)]=+bn,bh[fj(0x290)](bk),bn&&bh[fj(0x7fd)]({'msg':bj,'level':ad[fj(0x536)],'ctx':bi}));},'fail':function(bi,bj){var fk=a0b;bg['hostUrl']&&-0x1<bj[fk(0x260)][fk(0x962)](bg['hostUrl'])||(bj={'method':bj[fk(0x3d0)]||fk(0x52c),'url':a9(bj[fk(0x260)]),'duration':Date['now']()-bj[fk(0x66a)],'status':0x0,'nextHopProtocol':'','isHttps':aa(bj[fk(0x260)]),'type':'fetch'},bh[fk(0x290)](bj));}});},'overrideCallFunction':function(bg){var fl=cZ,bh=this;ax({'apiName':fl(0x62d),'success':function(bi,bj){var fm=fl;bh['cloudSuccessCallback'](bg,bj,bi,fm(0x62d));},'fail':function(bi,bj){var fn=fl;bj={'method':fn(0x6e9),'url':'wx.cloud.callFunction.'+bj[fn(0x667)],'duration':Date['now']()-bj[fn(0x66a)],'status':0x0,'nextHopProtocol':'','type':fn(0x6d6),'errMsg':bi['errMsg'],'isHttps':!0x0},bh[fn(0x290)](bj);}});},'overrideCallContainer':function(bg){var fo=cZ,bh=this;ax({'apiName':fo(0x743),'success':function(bi,bj){var fp=fo;bh[fp(0x3c8)](bg,bj,bi,fp(0x743));},'fail':function(bi,bj){var fq=fo;bj={'method':'call','url':fq(0x9ed)+bj[fq(0x194)],'duration':Date[fq(0x8d4)]()-bj[fq(0x66a)],'status':0x0,'nextHopProtocol':'','type':'fetch','errMsg':bi['errMsg'],'isHttps':!0x0},bh[fq(0x290)](bj);}});},'cloudSuccessCallback':function(bg,bh,bi,bj){var fr=cZ,bk=fr(0x62d)===bj?bh['name']:bh[fr(0x194)],bl=fr(0x62d)===bj?bi['result']:bi['data'],bm=(bk={'method':'call','url':'wx.cloud.'+bj+'.'+bk,'duration':Date[fr(0x8d4)]()-bh[fr(0x66a)],'status':0xc8,'nextHopProtocol':'','type':'fetch','isHttps':!0x0},[fr(0x7a8),fr(0x66a),'config',fr(0x852),fr(0x79e),fr(0x623)]),bn=Object[fr(0x3be)](bh)[fr(0x521)](function(bq,br){return bm['includes'](br)||(bq[br]=bh[br]),bq;},{}),bo=(bj=fr(0x62d)===bj?(null==(bj=bi[fr(0x53b)])?void 0x0:bj[fr(0x45e)])||0x0:bi[fr(0x974)],(bp=ab(bl,bg[fr(0x597)],{'url':bk['url'],'ctx':bi})||{})[fr(0x45e)]),bp=void 0x0!==(bp=bp['isErr'])&&bp;bk[fr(0x27d)]=bo,bk['isErr']=+bp,bg=null==(bo=bg[fr(0x597)])?void 0x0:bo[fr(0x96c)],bo=fr(0x307)+bk[fr(0x260)]+fr(0x548)+bk[fr(0x833)]+fr(0x97c)+(bg?ac(bn):'')+fr(0x3bb)+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']+fr(0x8cf)+bk[fr(0x3bd)]+fr(0x865)+(bg?ac(bl):'')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',this[fr(0x7fd)]({'msg':bo,'level':ad[fr(0x4b1)],'ctx':bi}),this[fr(0x290)](bk),bp&&this[fr(0x7fd)]({'msg':bo,'level':ad[fr(0x536)],'ctx':bi});},'publishSpeedLog':function(bg){this['$walk'](function(bh){var fs=a0b;bh[fs(0x3ae)](bg);});},'publishNormalLog':function(bg){this['$walk'](function(bh){var ft=a0b;bh[ft(0x204)](bg);});}}),b0=wx||qq,b1=b0[cZ(0x42a)],b2=(b8[cZ(0x933)]['addConfig']=function(bg){var fu=cZ,bh=bg[fu(0x8ae)];bg=bg[fu(0x6f2)],bh&&this[fu(0x1bb)][fu(0x607)](bh),bg&&this[fu(0x17c)][fu(0x607)](bg);},b8['prototype'][cZ(0xa1d)]=function(bg){var fv=cZ,bh=this,bi=(this[fv(0x17c)]['forEach'](function(bj){bg['onError'](bj);}),bg['send']);return Object[fv(0x1d6)](bg,fv(0x8ae),{'get':function(){return function(bj){return new Promise(function(bk){bi['call'](bg,a2(a2({},bj),{'fail':function(bl){var fw=a0b;bh['sends'][fw(0x461)](function(bm){var fx=fw,bn;null!=(bn=bm[fx(0x79e)])&&bn[fx(0x6e9)](bm,bl,bj);}),bk(bl);}}));});};}}),bg;},b8),b3=(a1(b7,aA=aS),b7['prototype'][cZ(0x73c)]=function(bg){var fy=cZ;this[fy(0x84c)][fy(0x724)](bg);},b7[cZ(0x933)][cZ(0x5d4)]=function(){var fz=cZ,bg=this;Object[fz(0x1d6)](b0,'connectSocket',{'get':function(){var fA=fz;return bg[fA(0x891)][fA(0x207)](bg);}});},b7[cZ(0x933)][cZ(0x891)]=function(bg){var fB=cZ,bh=this,bi=this[fB(0x79b)](bg);return bg=b1(a2(a2({},bi),{'success':function(bj){bh['successHandler'](bj,bi);},'fail':function(bj){var fC=fB;bh[fC(0x7a7)](bj,bi);},'complete':function(bj){var fD=fB;bh[fD(0x842)](bj,bi);}})),this[fB(0x84c)][fB(0xa1d)](bg),bg;},b7),b4=(aS=new aK({'name':cZ(0x6f2),'onNewAegis':function(bg){var fE=cZ,bh=aL[fE(0x425)]()['SDKVersion'];this[fE(0x449)](),this['hackNetWork'](bg),this['hackCloud'](bg),bg[fE(0x534)][fE(0x2aa)]&&au(bh,fE(0x1f4))&&this[fE(0x44e)]();},'listenError':function(){var fF=cZ,bg=this;fF(0x9d2)==typeof aL[fF(0x6f2)]&&aL[fF(0x6f2)](function(bh){var fG=fF;bh&&bg[fG(0x63e)]({'msg':bh,'level':ad['ERROR']});}),av(fF(0x224))&&aL[fF(0x224)](function(bh){var fH=fF;!(bh=bh[fH(0x806)])||-0x1<JSON[fH(0x975)](bh)['indexOf'](fH(0x42b))||bg['publishErrorLog']({'msg':bh,'level':ad[fH(0x877)]});}),av('onPageNotFound')&&aL['onPageNotFound'](function(bh){var fI=fF;bh&&bg[fI(0x63e)]({'msg':bh,'level':ad[fI(0x254)]});});},'publishErrorLog':function(bg){var fJ=cZ;this[fJ(0xa12)](function(bh){var fK=fJ;bh[fK(0x204)](bg);});},'hackNetWork':function(bg){var fL=cZ;for(var bh=this,bi=bg[fL(0x534)],bj=0x0,bk=[{'apiName':fL(0x176),'complete':function(bm,bn){var fM=fL;return bh[fM(0x96a)](bm,bn,bi);}},{'apiName':fL(0x2ec),'complete':function(bm,bn){var fN=fL;return bh[fN(0x853)](bm,bn,bi);}},{'apiName':fL(0x7b3),'complete':function(bm,bn){var fO=fL;return bh[fO(0x930)](bm,bn,bi);}}];bj<bk['length'];bj++){var bl;ay({'apiName':(bl=bk[bj])[fL(0x7a8)],'complete':bl=bl['complete']});}},'requestCompleteError':function(bg,bh,bi){var fP=cZ,bj,bk=bg[fP(0x650)],bl=bg['statusCode'];bi[fP(0x4df)]&&-0x1<(null==(bj=bh[fP(0x260)])?void 0x0:bj[fP(0x962)](bi[fP(0x4df)]))||(bj=this[fP(0x41e)]({'errMsg':bk,'statusCode':bl}))&&this[fP(0x7ef)]({'apiName':fP(0x176),'opts':bh,'res':bg,'config':bi,'type':bj});},'downloadFileCompleteError':function(bg,bh,bi){var fQ=cZ,bj=bg[fQ(0x650)],bk=bg[fQ(0x974)],bl=bg[fQ(0x6cc)],bm=(bg=bg[fQ(0x8a1)],this[fQ(0x41e)]({'errMsg':bj,'statusCode':bk}));bm&&(bi=null==(bi=bi[fQ(0x597)])?void 0x0:bi[fQ(0x96c)],this[fQ(0x63e)]({'msg':fQ(0x9c6)+bm+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20status:\x20'+(bk||0x0)+fQ(0xa2a)+(Date[fQ(0x8d4)]()-bh['aegisRequestStartTime'])+'ms\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20filePath:\x20'+bl+fQ(0x1b5)+bg+fQ(0x6b2)+bh[fQ(0x260)]+fQ(0x593)+(bh[fQ(0x3d0)]||fQ(0x52c))+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0areq\x20param:\x20'+(bi?ak(bh['data']):'')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0aerrMsg:\x20'+bj['slice'](0x0,0x3e8),'level':ad['AJAX_ERROR']}));},'uploadFileCompleteError':function(bg,bh,bi){var fR=cZ,bj=bg[fR(0x650)],bk=bg['statusCode'];(bj=this[fR(0x41e)]({'errMsg':bj,'statusCode':bk}))&&this[fR(0x7ef)]({'apiName':fR(0x2ec),'opts':bh,'res':bg,'config':bi,'type':bj});},'hackCloud':function(bg){var fS=cZ;for(var bh=this,bi=bg[fS(0x534)],bj=0x0,bk=[{'apiName':fS(0x62d),'complete':function(bm,bn){return bh['callFunctionCompleteError'](bm,bn,bi);}},{'apiName':fS(0x743),'complete':function(bm,bn){return bh['callContainerCompleteError'](bm,bn,bi);}}];bj<bk[fS(0x6db)];bj++){var bl;ax({'apiName':(bl=bk[bj])[fS(0x7a8)],'complete':bl=bl[fS(0x623)]});}},'callFunctionCompleteError':function(bg,bh,bi){var fT=cZ;(-0x1<bg['errMsg'][fT(0x962)]('fail')||-0x1<bg[fT(0x650)]['indexOf'](fT(0x1eb)))&&(bi=null==(bi=bi[fT(0x597)])?void 0x0:bi[fT(0x96c)],this['publishErrorLog']({'msg':'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'+(Date[fT(0x8d4)]()-bh[fT(0x66a)])+fT(0x280)+(bi?ak(bg):'')+fT(0x6fc)+bh['name']+fT(0x74e)+(bi?ak(bh['data']):'')+fT(0x76c)+bg[fT(0x650)][fT(0x9a1)](0x0,0x3e8),'level':ad[fT(0x926)]}));},'callContainerCompleteError':function(bg,bh,bi){var fU=cZ,bj=bg[fU(0x650)],bk=bg['statusCode'];(0x190<=bk||-0x1<bj[fU(0x962)]('fail')||-0x1<bj['indexOf'](fU(0x1eb)))&&(bi=null==(bi=bi[fU(0x597)])?void 0x0:bi[fU(0x96c)],this['publishErrorLog']({'msg':'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'+(bk||0x0)+fU(0x8cf)+(Date[fU(0x8d4)]()-bh['aegisRequestStartTime'])+fU(0x280)+(bi?ak(bg):'')+fU(0x726)+bh[fU(0x194)]+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0areq\x20method:\x20'+(bh[fU(0x3d0)]||fU(0x7fb))+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0areq\x20param:\x20'+(bi?ak(bh[fU(0x53b)]):'')+fU(0x76c)+bj[fU(0x9a1)](0x0,0x3e8),'level':ad[fU(0x926)]}));},'publishNetWorkError':function(bg){var fV=cZ,bh=bg['apiName'],bi=bg[fV(0x772)],bj=bg['res'],bk=bg[fV(0x534)],bl=(bg=bg[fV(0x833)],bj[fV(0x650)]),bm=bj[fV(0x974)],bn=bj[fV(0x53b)],bo=null==(bo=bk[fV(0x597)])?void 0x0:bo[fV(0x96c)],bp=fV(0x749)+bi[fV(0x260)];bk=ab(bn,bk[fV(0x597)],{'url':bp,'ctx':bj})[fV(0x45e)],this[fV(0x63e)]({'msg':fV(0x6a7)+bh+'\x20'+bg+fV(0x781)+(bm||0x0)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20retcode:\x20'+bk+fV(0xa2a)+(Date[fV(0x8d4)]()-bi[fV(0x66a)])+'ms\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20data:\x20'+(bo?ak(bn):'')+fV(0x6b2)+bi[fV(0x260)]+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0areq\x20method:\x20'+(bi[fV(0x3d0)]||'get')+fV(0x761)+(bo?ak(bi[fV(0x53b)]):'')+fV(0x4ee)+bl[fV(0x9a1)](0x0,0x3e8),'level':ad[fV(0x926)]});},'getErrorType':function(bg){var fW=cZ,bh=bg[fW(0x650)],bi=(bg=bg[fW(0x974)],'');return-0x1<bh[fW(0x962)](fW(0x1eb))||-0x1<bh[fW(0x962)]('超时')?bi=fW(0x1eb):0x190<=bg?bi=fW(0x1a6):(-0x1<bh[fW(0x962)](fW(0x79e))||!bg||bg<0x0)&&(bi='failed'),bi;},'hackWsConnect':function(){var fX=cZ,bg,bh,bi=this;ay({'apiName':fX(0x40d),'fail':function(bj){var fY=fX;bi[fY(0x8e8)](bj);}}),bg=(bh={'connectCallback':{'fail':function(bj){bi['publishSocketError'](bj);}},'taskOpt':{'onError':function(bj){var fZ=fX;bi[fZ(0x8e8)](bj);},'send':{'fail':function(bj){var g0=fX;bi[g0(0x8e8)](bj);}}}})[fX(0x5a7)],bh=bh['taskOpt'],az?az[fX(0x61c)](bg):az=new b3(bg),bh&&az['addTaskConf'](bh);},'publishSocketError':function(bg){var g1=cZ;bg&&this[g1(0x63e)]({'msg':bg[g1(0x650)],'level':ad['WEBSOCKET_ERROR']});}}),new aK({'name':cZ(0x63f),'isStart':!0x1,'onNewAegis':function(bg){var g2=cZ;this[g2(0x4d2)]||(this[g2(0x4d2)]=!0x0,this['start'](bg));},'start':function(){var g3=cZ,bg=this;aL[g3(0x787)]&&aL['getPerformance']()['createObserver'](function(bh){var g4=g3;null!=(bh=bh['getEntries']())&&bh[g4(0x461)](function(bi){var g5=g4;'number'!=typeof bi[g5(0x3bd)]||bi[g5(0x3bd)]<=0x0||bg[g5(0x63d)](bi);});})[g3(0x3dd)]({'entryTypes':[g3(0x89d)]});},'generateLog':function(bg){var g6=cZ;return{'url':''+a9(bg[g6(0x2e7)]),'method':'get','duration':Math[g6(0x869)](0x64*bg[g6(0x3bd)])/0x64,'status':0xc8,'type':'static','isHttps':!0x0,'urlQuery':'','nextHopProtocol':'','domainLookup':0x0,'connectTime':0x0};},'publishAssetLog':function(bg){var g7=cZ,bh=this;this[g7(0xa12)](function(bi){bi['speedLogPipeline'](bh['generateLog'](bg));});}})),b5=[cZ(0x935),cZ(0x3e9),cZ(0x6f2),cZ(0x8e6),cZ(0x28b),cZ(0x779),cZ(0x46e)],b6=new aK({'name':'pagePerformance','pageNavigationStartTime':{},'onNewAegis':function(bg){var g8=cZ;try{av(g8(0x787))&&this['reportPerformance'](bg),this[g8(0x79c)](bg),this[g8(0x61a)](bg);}catch(bh){}},'reportPerformance':function(bg){var g9=cZ,bh=this,bi=null==(bi=aL['getPerformance']())?void 0x0:bi[g9(0x1d5)](function(bj){var ga=g9,bk={},bl=null==(bl=bj['getEntriesByName'](ga(0x7d7)))?void 0x0:bl[0x0],bm=null==(bm=bj[ga(0x96e)](ga(0x9d0)))?void 0x0:bm[0x0],bn=null==(bn=bj['getEntriesByName'](ga(0x796)))?void 0x0:bn[0x0],bo=null==(bo=bj['getEntriesByName'](ga(0x270)))?void 0x0:bo[0x0],bp=null==(bp=null==(bp=bj['getEntriesByName']('firstPaint'))?void 0x0:bp[0x0])?void 0x0:bp[ga(0x99a)],bq=null==(bq=(null==(bq=bj[ga(0x96e)]('firstPaint'))?void 0x0:bq[0x0])||(null==(bq=bj[ga(0x96e)](ga(0x270)))?void 0x0:bq[0x0])||(null==(bq=bj[ga(0x96e)]('appLaunch'))?void 0x0:bq[0x0]))?void 0x0:bq[ga(0x1fe)],br=null==(bj=(null==(br=bj[ga(0x96e)](ga(0x270)))?void 0x0:br[0x0])||(null==(br=bj[ga(0x96e)]('appLaunch'))?void 0x0:br[0x0]))?void 0x0:bj['startTime'];bq&&(bh[ga(0x77a)][bq]=null,br&&(bh[ga(0x77a)][bq]=br)),bl&&(bk[ga(0x7d7)]=bl['duration']),bm&&(bk['firstScreenTiming']=bm['duration']),bn&&(bk[ga(0x54c)]=bn[ga(0x3bd)]),bo&&(bk[ga(0x82c)]=bo[ga(0x3bd)]),bp&&br?bk[ga(0x357)]=Math['max'](bp-br,0x0):bp&&bh[ga(0x77a)][bq]&&(bk[ga(0x357)]=Math['max'](bp-bh[ga(0x77a)][bq],0x0)),bh[ga(0x21a)](bk,bg);});null!=bi&&bi[g9(0x3dd)]({'entryTypes':['navigation',g9(0x292),g9(0x3f4)]});},'publish':function(bg,bh){var gb=cZ,bi,bj,bk,bl=[],bm=bh[gb(0x534)],bn=-0x1===(null==(bi=bh[gb(0x534)]['performanceUrl'])?void 0x0:bi[gb(0x962)]('?'))?'?':'&';for(bj in bg)bl['push'](bj+'='+bg[bj]);gb(0x9d2)==typeof bm[gb(0x427)]?(bk=bm[gb(0x427)]()||window['location'][gb(0x928)],this[gb(0xa12)](function(bo){var gc=gb;bo['send']({'url':bh[gc(0x534)][gc(0x89f)]+bn+bl['join']('&')+'&from='+encodeURIComponent(bk),'beanFilter':[gc(0x170)],'type':ag[gc(0x303)],'log':bg});})):this[gb(0xa12)](function(bo){var gd=gb;bo[gd(0x8ae)]({'url':bh[gd(0x534)]['performanceUrl']+bn+bl[gd(0x5d7)]('&'),'type':ag['PERFORMANCE'],'log':bg});});},'setPagePV':function(bg){var ge=cZ,bh=this;aL[ge(0x576)]&&aL[ge(0x576)](function(bi){var gf=ge;gf(0x7d7)!==bi[gf(0x3b5)]&&(bh[gf(0xa12)](function(bj){var gg=gf;bj[gg(0x8ae)]({'url':''+bj[gg(0x534)][gg(0x1a7)],'type':ag['PV']});}),bh['reportPageLoaded'](bi));});},'reportPageLoaded':function(bg){var gh=cZ;bg=gh(0x1ca)+bg[gh(0x194)]+gh(0x778)+bg[gh(0x3b5)],this[gh(0x7fd)]({'msg':bg,'level':ad['INFO']});},'publishNormalLog':function(bg){var gi=cZ;this[gi(0xa12)](function(bh){var gj=gi;bh[gj(0x204)](bg);});},'reportSetDataTiming':function(bg){var gk=cZ,bh,bi,bj,bk,bl,bm,bn,bo,bp,bq,br=this;!0x0!==(bq=(bq=bg[gk(0x534)])[gk(0x54b)]||(null==(bq=bq['pagePerformance'])?void 0x0:bq[gk(0x54b)])||{})[gk(0x3e7)]&&(bh=bq['timeThreshold'],bi=!0x1!==bq[gk(0x34f)],bj=bh&&0x0<+bh?+bh:0x1e,bk=aq([al(bg,0xa),function(bs){var gm=gk;bs=bs['map'](function(bu){var gl=a0b;return{'type':ag[gl(0x2be)],'component':bu[gl(0x170)],'duration':bu[gl(0x3bd)],'fields':bu[gl(0x9b9)]&&bu[gl(0x9b9)]['length']?bu[gl(0x9b9)]['sort']()[gl(0x5d7)](';'):void 0x0,'size':bu['size']};}),bg[gm(0x8ae)]({'url':bg['config'][gm(0x2c7)]+gm(0x81e)+encodeURIComponent(JSON['stringify']({'miniProgramData':bs})),'type':ag[gm(0x2be)],'log':bs});}]),bl=Page,bm=Component,bn=function(bs,bu){var gn=gk,bv=0x0;return null!=bs&&bs['data']?(bu[gn(0x461)](function(bw){var go=gn;for(var bx=bs[go(0x53b)][bw[0x0]],by=0x1,bz=bw[go(0x6db)];by<bz;by++)bx[bw[by]]&&(bx=bx[bw[by]]);var bA='';try{bA=JSON[go(0x975)](bx);}catch(bB){bA='';}bv+=0x2*(void 0x0===bA?'':bA)[go(0x175)](/[\u4e00-\u9fa5]/g,'aa')['length'];}),bv=Math[gn(0x7bc)](bv,0xa00000)):bv;},bo=function(bs,bu){var gp=gk,bv=bu[gp(0x65d)],bw=bu[gp(0x79a)];bu=void 0x0===(bu=bu[gp(0x9b9)])?[]:bu,bw-=bv,isNaN(bw)||bw<bj||(bv={'from':bs['is'],'duration':bw},bi&&0x0<bu[gp(0x6db)]&&Object[gp(0x326)](bv,{'dataPaths':bu[gp(0x9a1)](0x0,0x1e),'size':bn(bs,bu)}),bk(bv));},bp=function(bs){var gq=gk,bu='infoType:\x20behaviorBacktracking\x0adataType:\x20tapEvent'+Object[gq(0x3be)](bs[0x0])[gq(0x521)](function(bv,bw){var gr=gq,bx='';try{bx=bw+':\x20'+JSON[gr(0x975)](bs[0x0][bw]);}catch(by){bx='';}return bv+'\x0a'+bx;},'');br[gq(0x7fd)]({'msg':bu,'level':ad[gq(0x2dd)]});},Page=function(bs){var gs=gk,bu=bs[gs(0x28b)];return bs[gs(0x28b)]=function(){var gt=gs,bv=this;return gt(0x9d2)==typeof this['setUpdatePerformanceListener']&&this[gt(0x77d)]({'withDataPaths':bi},function(bw){bo(bv,bw);}),null==bu?void 0x0:bu['call'](this);},Object['keys'](bs)[gs(0x461)](function(bv){var gu=gs,bw;gu(0x9d2)!=typeof bs[bv]||b5[gu(0x255)](bv)||(bw=bs[bv],bs[bv]=function(){var gv=gu;for(var bx=[],by=0x0;by<arguments[gv(0x6db)];by++)bx[by]=arguments[by];return null!=bx&&bx[0x0]&&gv(0x5ae)===bx[0x0][gv(0x833)]&&bp(bx),null==bw?void 0x0:bw[gv(0x821)](this,bx);});}),bl(bs);},Component=function(bs){var gw=gk;bs[gw(0x404)]&&bs[gw(0x404)][gw(0x9db)]?(bu=bs[gw(0x404)][gw(0x9db)],bs[gw(0x404)][gw(0x9db)]=function(){var gx=gw,bx=this;return gx(0x9d2)==typeof this[gx(0x77d)]&&this[gx(0x77d)]({'withDataPaths':bi},function(by){bo(bx,by);}),null==bu?void 0x0:bu['call'](this);}):(bv=bs['attached'],bs[gw(0x9db)]=function(){var gy=gw,bx=this;return gy(0x9d2)==typeof this['setUpdatePerformanceListener']&&this[gy(0x77d)]({'withDataPaths':bi},function(by){bo(bx,by);}),null==bv?void 0x0:bv[gy(0x6e9)](this);});var bu,bv,bw=bs[gw(0x621)];return bw&&gw(0x32a)===Object[gw(0x933)][gw(0x4e3)][gw(0x6e9)](bw)&&Object['keys'](bw)[gw(0x461)](function(bx){var by;'function'==typeof bw[bx]&&(by=bw[bx],bw[bx]=function(){var gz=a0b;for(var bz=[],bA=0x0;bA<arguments[gz(0x6db)];bA++)bz[bA]=arguments[bA];return null!=bz&&bz[0x0]&&gz(0x5ae)===bz[0x0]['type']&&bp(bz),null==by?void 0x0:by[gz(0x821)](this,bz);});}),bm(bs);});}});function b7(bg){var gA=cZ;return(bg=aA[gA(0x6e9)](this,bg)||this)[gA(0x84c)]=new b2(),bg;}function b8(){var gB=cZ;this['onErrors']=[],this[gB(0x1bb)]=[];}function b9(){var gC=cZ;return null!==aB&&aB[gC(0x821)](this,arguments)||this;}function ba(){var gD=cZ;return null!==aC&&aC[gD(0x821)](this,arguments)||this;}function bb(bg){var gE=cZ;this[gE(0x6b5)]=[],this[gE(0x90c)]=!0x1;var bh=bg[gE(0x7a8)];this['apiName']=bh,this[gE(0x90c)]||this[gE(0x725)](),this[gE(0x6b5)][gE(0x607)](bg);}function bc(bg){var gF=cZ,bh,bi,bj,bk=aD[gF(0x6e9)](this,bg)||this;bk[gF(0x5ff)]=aQ,bk['speedLogPipeline']=aq([(bi=bk['config'],bj={},function(bl,bm){var gG=gF,bn,bo;bi[gG(0x3b6)]?(bo=gG(0x455)==typeof bi[gG(0x968)]?bi[gG(0x968)]:{'repeat':bi[gG(0x968)]},bn=+bo[gG(0x671)]||+bo[gG(0x968)]||0x5,Array[gG(0x47a)](bl)?(bo=bl[gG(0x59b)](function(bp){var gH=gG,bq=!bj[bp['url']]||bj[bp[gH(0x260)]]<bn;return bj[bp[gH(0x260)]]=0x1+~~bj[bp[gH(0x260)]],bq;}))[gG(0x6db)]&&bm(bo):(!bj[bl['url']]||bj[bl[gG(0x260)]]<bn)&&(bj[bl[gG(0x260)]]=0x1+~~bj[bl['url']],bm(bl))):bm(bl);}),al(bk),function(bl,bm){var gI=gF;av(gI(0x860))?aL[gI(0x860)]({'success':function(bn){var gJ=gI;bn=aw(bn[gJ(0x5a4)]),bh[gJ(0x50e)]('netType',bn),bm(bl);}}):bm(bl);},function(bl,bm){var gK=gF;bk[gK(0x209)][gK(0x359)](gK(0x6ec),bl);var bn=bk[gK(0x534)][gK(0x6ec)];if((bl=gK(0x9d2)==typeof bn?bl['filter'](function(bo){return!0x1!==bn(bo);}):bl)[gK(0x6db)])return bm(bl);},an(bh=bk,ag[gF(0x309)]),function(bl){var gL=gF,bm,bn,bo,bp;bk[gL(0x8ae)]({'url':''+bk[gL(0x534)][gL(0x3e6)],'method':gL(0x728),'data':(bm=bk['bean'],bo={'fetch':[],'static':[],'bridge':[]},bp={},Array[gL(0x47a)](bl)?bl['forEach'](function(bq){var gM=gL,br;null!=(br=bo[bq[gM(0x833)]])&&br[gM(0x607)](bq);}):null!=(bn=bo[bl['type']])&&bn[gL(0x607)](bl),bp[gL(0x565)]=JSON[gL(0x975)](a2({'duration':bo},bm)),bp)});}]),bk[gF(0x566)]=[],bk[gF(0x7fa)]=!0x1,bk[gF(0x176)]=function(bl,bm,bn){var gN=gF;if(bl[gN(0x260)]&&bk[gN(0x24c)]['id']){var bo,bp,bq,br,bs;if(/^\w{8}-\w{4}-\w{4}-\w{4}-\w{12}$/[gN(0x2ed)](String(bk[gN(0x24c)][gN(0x1d8)]))&&!(bk[gN(0x7fa)]||av(gN(0x860))&&void 0x0===bk['bean']['netType']))return bk[gN(0x7fa)]=!0x0,bo=bl['url'],bk[gN(0x534)][gN(0x56a)]===bo&&(bp=bm,bm=function(bx){var gO=gN;null!=bp&&bp(JSON[gO(0x975)](bx[gO(0x53b)]));}),!0x1!==bl[gN(0x398)]&&(bo=bo+(-0x1===bo[gN(0x962)]('?')?'?':'&')+bk['getBean']),bu=bl[gN(0x3d0)]||'get',bq=function(){var gP=gN;bk[gP(0x7fa)]=!0x1;var bx=bk[gP(0x566)][gP(0x669)]();bx&&bk[gP(0x176)](bx[gP(0x188)],bx[gP(0x852)],bx[gP(0x79e)]);},br=bl,(br=(bs=bk[gN(0x534)][gN(0x367)])?bs(bl,bk):br)&&br[gN(0x260)]?(bs=bk['config']['enableHttp2']||!0x1,gN(0x52c)===bu?(bu=bo,bv=br[gN(0x53b)],bo='string'!=typeof bu?'':gN(0x455)==typeof bv&&bv?(bw=Object[gN(0x7ce)](bv)[gN(0x684)](function(bx){var gQ=gN,by=bv[bx];return bx+'='+(gQ(0xa16)==typeof by?encodeURIComponent(by):encodeURIComponent(JSON['stringify'](by)));})[gN(0x5d7)]('&')[gN(0x175)](/eval/gi,gN(0x953)),bu+(-0x1===bu[gN(0x962)]('?')?'?':'&')+bw):bu,bk[gN(0x5ff)](a2({'url':bo,'enableHttp2':bs,'success':bm,'fail':bn,'complete':bq},bl[gN(0x979)]))):(gN(0xa16)==typeof br[gN(0x53b)]&&(br[gN(0x53b)]=br[gN(0x53b)][gN(0x175)](/eval/gi,gN(0x953))),bk[gN(0x5ff)](a2({'url':bo,'enableHttp2':bs,'header':br[gN(0x8c2)]?{'content-type':br[gN(0x8c2)]}:void 0x0,'method':gN(0x7fb),'data':br['data'],'success':bm,'fail':bn,'complete':bq},bl[gN(0x979)]))),!0x0):(bw='',br&&br[gN(0x260)]||(bw=gN(0x3d7),console['log'](bw)),null!=bn&&bn(bw),bq(),!0x1);bk['requestQueue'][gN(0x607)]({'options':bl,'success':bm,'fail':bn});}var bu,bv,bw;};try{bg[gF(0x952)]&&bk['initOfflineLog'](),bk['init'](bg),bk['extendBean'](gF(0x6cd),bc[gF(0x6af)]),bk[gF(0x50e)]('referer',(av('getLaunchOptionsSync')?aL[gF(0x2ad)]():{'scene':''})[gF(0x51f)]||'');}catch(bl){console[gF(0x83b)](bl),console[gF(0x8f1)](gF(0x1cb),gF(0x4b6)),bk[gF(0x679)](bl);}return bk;}function bd(bg){var gR=cZ,bh,bi,bj=this,bk=void 0x0===(bk=(bg=void 0x0===bg?{}:bg)[gR(0x194)])?gR(0x68c):bk;bg=void 0x0===(bg=bg[gR(0x38a)])?0x4e20:bg,this[gR(0x66e)]=[],this['insertLog']=(bh=null,bi=[],function(bl){bi=bi['concat'](bl),bh=bh||setTimeout(function(){var gS=a0b;bh=null;var bm,bn=bj[gS(0x777)],bo=bj[gS(0x6cc)],bp=bi['map'](function(bq){var gT=gS;return JSON[gT(0x975)](bq);})['join']('\x0a')+'\x0a';bp&&(bm=function(bq){var gU=gS;bq?bj[gU(0x600)](bp,function(){bi=[];}):bn[gU(0x8f4)]({'data':bp,'filePath':bo,'encoding':'utf8','fail':function(br){var gV=gU;console[gV(0x1a6)](br);},'success':function(){bi=[];}});},bn['access']({'path':bo,'success':function(){bm(!0x0);},'fail':function(){bm();}}));},0x7d0);}),this['ready']=function(bl){var gW=gR;bj[gW(0x777)]?setTimeout(function(){bl(null);},0x0):(bl(new Error(gW(0x6f4))),bj[gW(0x952)]=!0x1);},this[gR(0x70c)]=function(){var gX=gR,bl=bj['fileSystem'],bm=bj[gX(0x6cc)];bl[gX(0x8f4)]({'filePath':bm,'data':'','fail':function(){var gY=gX;bl[gY(0x94c)](bm);}});},this[gR(0x760)]=function(bl,bm){var gZ=gR;bl=(bl=Array['isArray'](bl)?bl:[bl])[gZ(0x684)](function(bn){var h1=gZ;return'string'==typeof bn&&(bn={'msg':bn}),(function(){var h0=a0b;for(var bo=[],bp=0x0;bp<arguments['length'];bp++)bo[bp]=arguments[bp];if(0x0===bo[h0(0x6db)])throw new TypeError(h0(0x8e4));for(var bq=Object(bo[0x0]),br=0x1;br<bo[h0(0x6db)];br++){var bs=bo[br];if(null!==bs){for(var bu in bs)Object[h0(0x933)][h0(0x52f)][h0(0x6e9)](bs,bu)&&(bq[bu]=bs[bu]);}}return bq;}({'id':bm['id'],'uin':bm[h1(0x441)],'time':+Date[h1(0x8d4)](),'version':bm[h1(0x410)],'from':as(bm)},bn));}),bj[gZ(0x777)]?bj['insertLog'](bl):(bj[gZ(0x777)]||bj[gZ(0x66e)][gZ(0x6db)]||bj['ready'](function(bn){var h2=gZ;bn?console[h2(0x1a6)](bn):bj['offlineBuffer']['length']&&(bj[h2(0x4ca)](bj['offlineBuffer']),bj['offlineBuffer']=[]);}),bj['offlineBuffer']=bj[gZ(0x66e)][gZ(0x893)](bl));},this[gR(0x4ca)]=function(bl){var h3=gR;bj[h3(0x777)]&&bj[h3(0x65a)](bl);},this[gR(0x6cc)]=aL[gR(0x97a)][gR(0x49e)]+bk,this['fileSystem']=aL[gR(0x82d)](),this[gR(0x9c1)]=bg;}function be(bg){var h4=cZ;this['aegisPlugin']=!0x0,this[h4(0x667)]='',this[h4(0x4fe)]=[],this['inited']=!0x1,bg[h4(0xa12)]=this['walk']['bind'](this),bg[h4(0x540)]=this['getConfig'][h4(0x207)](this),this['option']=bg,this['name']=bg[h4(0x667)];}function bf(bg){var h5=cZ,bh,bi,bj,bk,bl,bm,bn,bo,bp,bq,br,bs,bu,bv,bw,bx=this;this[h5(0x99e)]=!0x1,this['isHidden']=!0x1,this[h5(0x534)]={'version':0x0,'delay':0x3e8,'onError':!0x0,'repeat':0x5,'random':0x1,'aid':!0x0,'device':!0x0,'pagePerformance':!0x0,'webVitals':!0x0,'speedSample':!0x0,'onClose':!0x0,'hostUrl':'https://aegis.qq.com','websocketHack':!0x1,'env':h5(0x8a7),'url':'','offlineUrl':'','whiteListUrl':'','pvUrl':'','speedUrl':'','customTimeUrl':'','performanceUrl':'','webVitalsUrl':'','eventUrl':'','setDataReportUrl':'','reportImmediately':!0x0},this['isWhiteList']=!0x1,this[h5(0x209)]=new a6(),this[h5(0x24c)]={},this[h5(0x204)]=aq([al(this,0x5),am,function(by,bz){var h6=h5,bA=bh[h6(0x534)];bz(by=by[h6(0x684)](function(bB){var h7=h6,bC,bD=bA[h7(0x2d9)]||0x32000;try{if(!bB[h7(0x55c)]||bB['msg'][h7(0x6db)]<=bD)return bB;bB[h7(0x55c)]=null==(bC=bB['msg'])?void 0x0:bC['substring'](0x0,bD);}catch(bE){bB['msg']=ak(bB[h7(0x55c)])[h7(0x465)](0x0,bA[h7(0x2d9)]);}return bB;}));},(bv=(bh=this)[h5(0x534)],bw={},function(by,bz){var h8=h5,bA=h8(0x92f)==typeof bv['repeat']?bv[h8(0x968)]:0x5;if(0x0===bA)return bz(by);bz(by['filter'](function(bB){var h9=h8;return bB[h9(0x2bc)]!==ad['ERROR']&&bB[h9(0x2bc)]!==ad['PROMISE_ERROR']&&bB['level']!==ad['AJAX_ERROR']&&bB[h9(0x2bc)]!==ad['SCRIPT_ERROR']&&bB[h9(0x2bc)]!==ad[h9(0xa05)]&&bB[h9(0x2bc)]!==ad['CSS_ERROR']&&bB[h9(0x2bc)]!==ad[h9(0x948)]||(bw[bB[h9(0x55c)]]=bw[bB['msg']]||0x0,bw[bB[h9(0x55c)]]+=0x1,!(bw[bB[h9(0x55c)]]>bA));}));}),(bs=this[h5(0x209)][h5(0x359)],bu=this['config'],function(by,bz){var ha=h5,bA,bB=bu['logCreated'];return ha(0x9d2)==typeof bB?(bA=by[ha(0x59b)](function(bC){return!0x1!==bB(bC);}),bs('beforeWrite',bA),bz(bA)):(bs(ha(0x46d),by),bz(by));}),(br=this,setTimeout(function(){var hb=h5,by=br[hb(0x534)][hb(0x1a7)],bz=void 0x0===by?'':by;bz&&br[hb(0x4be)]([function(bA,bB){bB({'url':bz,'type':ag['PV'],'fail':function(bC){var hc=a0b;hc(0x272)===bC&&br['destroy']();}});}],ag['PV'])(null);},0x64),function(by,bz){bz(by);}),(bp=bo=bn=!0x1,bq=[],(bl=this)['lifeCycle']['on']('onConfigChange',function(){var hh=h5;bm&&clearTimeout(bm),bm=setTimeout(function(){var hd=a0b,by,bz;!bp&&bl[hd(0x534)]&&(bp=!0x0,by=bl[hd(0x534)][hd(0x56a)],(bz=void 0x0===by?'':by)&&bl['sendPipeline']([function(bA,bB){var he=hd;bB({'url':bz,'type':ag[he(0x6ae)],'success':function(bC){var hf=he;bo=!0x0;try{var bD=bC[hf(0x53b)]||JSON[hf(0x92d)](bC),bE=bD[hf(0x286)],bF=bD[hf(0x41f)],bG=void 0x0===bF?{}:bF;if(0x0===bE){if(bn=bG[hf(0x7d9)],bl[hf(0x9c9)]=bn,bG[hf(0x998)])return void bl[hf(0x9ba)]();0x0<=bG['rate']&&bG[hf(0x959)]<=0x1&&(bl[hf(0x534)][hf(0x6ef)]=bG[hf(0x959)],bl[hf(0x99e)]=!0x1);}bl['isWhiteList']&&bq['length']?aH(bl)(bq[hf(0x908)](0x0),function(){}):!bl['isWhiteList']&&bq['length']&&(bq['length']=0x0);var bH=bl['config'][hf(0x4c6)];hf(0x9d2)==typeof bH&&bH(bn);}catch(bI){}},'fail':function(bC){var hg=he;hg(0x272)===bC&&bl[hg(0x9ba)](),bo=!0x0;}});}],ag[hd(0x6ae)])(null),bp=!0x1);},bl[hh(0x534)][hh(0x441)]?0x32:0x1f4);}),bl[h5(0x209)]['on'](h5(0x9ba),function(){var hi=h5;bq[hi(0x6db)]=0x0;}),function(by,bz){var hj=h5,bA;bn||null!=(bA=null==(bA=bl[hj(0x534)])?void 0x0:bA[hj(0x597)])&&bA[hj(0x504)]?bz(by[hj(0x893)](bq[hj(0x908)](0x0))[hj(0x684)](function(bB){return aF(bB),bB;})):(bA=by[hj(0x59b)](function(bB){var hk=hj;return bB['level']!==ad[hk(0x2dd)]&&bB['level']!==ad[hk(0x4b1)]?(aF(bB),!0x0):(bo||(bq['push'](bB),0xc8<=bq[hk(0x6db)]&&(bq['length']=0xc8)),!0x1);}))[hj(0x6db)]&&bz(bA);}),function(by,bz){var hl=h5;try{var bA=JSON['parse'](JSON[hl(0x975)](by)),bB=(bx[hl(0x209)][hl(0x359)]('beforeReport',bA),bx[hl(0x534)][hl(0x730)]);(by=hl(0x9d2)==typeof bB?by['filter'](function(bC){return!0x1!==bB(bC);}):by)['length']&&bz(by);}catch(bC){}},aH(this)]),this[h5(0x802)]=aq([al(this,0xa),(bk=this,function(by){var hm=h5;bk[hm(0x4be)]([function(bz,bA){var hn=hm,bB=bz[hn(0x684)](function(bC){var ho=hn;return{'name':bC[ho(0x667)],'ext1':bC[ho(0x5b7)]||bk[ho(0x534)][ho(0x5b7)]||'','ext2':bC[ho(0x751)]||bk[ho(0x534)]['ext2']||'','ext3':bC[ho(0x363)]||bk[ho(0x534)]['ext3']||''};});bA({'url':bk[hn(0x534)][hn(0x7cb)]+hn(0x81e)+encodeURIComponent(JSON[hn(0x975)](bB)),'type':ag[hn(0x4f1)],'log':bz,'fail':function(bC){var hp=hn;hp(0x272)===bC&&bk[hp(0x9ba)]();}});}],ag['EVENT'])(by);})]),this[h5(0x732)]={},this['failRequestCount']=0x0,this[h5(0x7f5)]=aq([al(this,0xa),(bj=this,function(by){var hq=h5;return bj[hq(0x4be)]([function(bz,bA){var hr=hq;bA({'url':bj[hr(0x534)][hr(0x810)]+'?payload='+encodeURIComponent(JSON[hr(0x975)]({'custom':bz})),'type':ag[hr(0x5b9)],'log':bz,'fail':function(bB){var hs=hr;hs(0x272)===bB&&bj[hs(0x9ba)]();}});}],ag['CUSTOM'])(by);})]),this['config']=(bi=this['config'],void 0x0===(bg=bg['hostUrl'])&&(bg='https://aegis.qq.com'),bi[h5(0x260)]=bi[h5(0x260)]||bg+h5(0x9c0),bi[h5(0x9d6)]=bi[h5(0x9d6)]||bg+h5(0x855),bi[h5(0x56a)]=bi['whiteListUrl']||bg+h5(0x729),bi['pvUrl']=bi[h5(0x1a7)]||bg+'/collect/pv',bi[h5(0x7cb)]=bi[h5(0x7cb)]||bg+h5(0x989),bi[h5(0x3e6)]=bi[h5(0x3e6)]||bg+h5(0x78f),bi[h5(0x810)]=bi[h5(0x810)]||bg+h5(0x606),bi[h5(0x89f)]=bi[h5(0x89f)]||bg+h5(0x59a),bi[h5(0x986)]=bi[h5(0x986)]||bg+'/speed/webvitals',bi['setDataReportUrl']=bi[h5(0x65f)]||bg+'/speed/miniProgramData',bi),bf[h5(0x4fe)][h5(0x607)](this);}return aK=new aK({'name':cZ(0x863),'isLoaded':!0x1,'onNewAegis':function(bg){var ht=cZ;this[ht(0x29f)]||(this['isLoaded']=!0x0,this['start'](bg));},'start':function(){var hu=cZ,bg=this;aL[hu(0x787)]&&aL['getPerformance']()['createObserver'](function(bh){var hv=hu;null!=(bh=bh['getEntries']())&&bh[hv(0x461)](function(bi){var hw=hv;hw(0x92f)!=typeof bi[hw(0x3bd)]||bi[hw(0x3bd)]<=0x0||bg['publishPackageLog'](bi);});})[hu(0x3dd)]({'entryTypes':[hu(0x37c)]});},'generateLog':function(bg){var hx=cZ;return[{'type':ag[hx(0x8b1)],'packageName':bg['packageName'],'size':Math[hx(0x869)](0x64*bg[hx(0x342)])/0x64,'duration':Math[hx(0x869)](0x64*bg[hx(0x3bd)])/0x64}];},'publishPackageLog':function(bg){var hy=cZ,bh=this;this[hy(0xa12)](function(bi){var hz=hy,bj=bh['generateLog'](bg);bi[hz(0x8ae)]({'url':bi['config'][hz(0x2c7)]+'?payload='+encodeURIComponent(JSON[hz(0x975)]({'miniProgramData':bj})),'type':ag[hz(0x8b1)],'log':bj});});}}),aJ[cZ(0x7ff)](aS),aJ[cZ(0x7ff)](aZ),aJ[cZ(0x7ff)](aR),aJ[cZ(0x7ff)](b4),aJ['use'](b6),aJ[cZ(0x7ff)](aK),aJ[cZ(0x7ff)](aP),aJ;}());},0x1933:(b,d,f)=>{var hA=a0b;f['d'](d,{'Z':()=>g});const g={'0001':hA(0x7e9),'0002':'Please\x20enable\x20the\x20camera\x20and\x20microphone\x20permissions','0003':hA(0x4fc),'0004':hA(0x745),'0005':hA(0x50a),'0006':'Invalid\x20image\x20input','0007':hA(0x1ac),'0008':hA(0x19f),'0009':hA(0x530),'0010':hA(0x2d7),'0011':hA(0x53c),'0012':hA(0x85e),'0013':hA(0x324),'0014':hA(0x8e9),'0015':hA(0x6bd),'0016':hA(0x80b),'0018':hA(0x339),'0019':hA(0x2fb),'0020':hA(0x993),'0021':'The\x20authentication\x20parameter\x20\x22licenseKey\x22\x20is\x20missing','0022':hA(0x69d),'0023':hA(0x242),'0024':hA(0x6cf),'0025':hA(0x72b),'0026':'The\x20context\x20is\x20lost.\x20Please\x20reinitialize\x20the\x20SDK\x20again','0027':hA(0x1f1),'0028':'No\x20errors\x20captured','0029':hA(0x69f),'0030':hA(0x8db),'0031':hA(0x36d),'0032':hA(0x4f0),'0033':'Failed\x20to\x20load\x20the\x20effects','0034':hA(0x400),'0035':hA(0x296),'0036':hA(0x946),0x3e9:hA(0x23c),0x3ea:hA(0x1f8),0x3eb:hA(0x80f),0x3ec:'3D\x20Effect',0x3ed:'VR',0x3ee:'AR'};},0x1d36:(b,d,f)=>{var hB=a0b;f['d'](d,{'Z':()=>g});const g={'0001':hB(0x2f0),'0002':hB(0x936),'0003':hB(0x622),'0004':'输入不合法','0005':'缺少输入,\x20请设置input或camera参数','0006':hB(0x4b5),'0007':hB(0x2e1),'0008':'创建录制器失败','0009':'录制启动失败','0010':hB(0x89c),'0011':hB(0x7ac),'0012':hB(0x8bb),'0013':hB(0x912),'0014':'当前SDK版本过低,部分特效无法正确显示,请升级SDK版本','0015':hB(0x64c),'0016':hB(0x9b8),'0018':hB(0x21f),'0019':'当前浏览器不支持,请使用新版\x20Chrome/Safari/微信体验','0020':hB(0x696),'0021':'缺少鉴权参数licenseKey','0022':hB(0x38b),'0023':hB(0x70d),'0024':hB(0x2e1),'0025':'基础库加载失败','0026':hB(0x642),'0027':'渲染耗时大,请尝试减小分辨率或刷新页面','0028':'未捕获异常','0029':hB(0x56d),'0030':hB(0x26e),'0031':hB(0x232),'0032':hB(0x5d3),'0033':hB(0x244),'0034':'无法解析的数据','0035':hB(0x963),'0036':hB(0x446),0x3e9:'美妆',0x3ea:'贴纸',0x3eb:'滤镜',0x3ec:hB(0x8c5),0x3ed:hB(0x97d),0x3ee:'头像'};},0x64f:(a0,a1,a2)=>{var hC=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:hC(0x7e5),0x1:hC(0x331),0x2:hC(0x752),0x3:hC(0x78d),0x4:hC(0x434),0x5:hC(0x42c),0x6:'animation-play-state',0x7:hC(0x328),0x8:'background-attachment',0x9:hC(0x3c2),0xa:hC(0x627),0xb:hC(0x19a),0xc:hC(0x1a9),0xd:hC(0x27a),0xe:hC(0x25d),0xf:hC(0x281),0x10:hC(0x2f7),0x11:'border-bottom-color',0x12:'border-bottom-left-radius',0x13:hC(0x420),0x14:hC(0x24d),0x15:hC(0x2db),0x16:hC(0x2cc),0x17:hC(0x577),0x18:hC(0x7bf),0x19:hC(0xa06),0x1a:hC(0x81d),0x1b:'border-image-width',0x1c:'border-left-color',0x1d:hC(0x878),0x1e:hC(0x277),0x1f:hC(0x31c),0x20:'border-right-style',0x21:'border-right-width',0x22:hC(0x880),0x23:'border-top-left-radius',0x24:hC(0x2b7),0x25:hC(0x43d),0x26:hC(0x39f),0x27:hC(0x9af),0x28:hC(0x88e),0x29:hC(0x4f2),0x2a:hC(0x568),0x2b:hC(0x340),0x2c:hC(0x93e),0x2d:hC(0x6a0),0x2e:hC(0x2ff),0x2f:hC(0x8fe),0x30:hC(0x747),0x31:hC(0xa07),0x32:hC(0x615),0x33:hC(0x710),0x34:'display',0x35:hC(0x501),0x36:hC(0x7c2),0x37:hC(0x475),0x38:hC(0x88f),0x39:hC(0x2b1),0x3a:hC(0x634),0x3b:'font-style',0x3c:hC(0x531),0x3d:hC(0x60b),0x3e:hC(0x55d),0x3f:'font-variant-numeric',0x40:hC(0x71c),0x41:'font-weight',0x42:hC(0x4f8),0x43:hC(0x2eb),0x44:hC(0x440),0x45:'justify-items',0x46:hC(0x298),0x47:'left',0x48:'letter-spacing',0x49:hC(0x876),0x4a:hC(0x56e),0x4b:hC(0x4d9),0x4c:hC(0x77f),0x4d:hC(0x78b),0x4e:hC(0x6b7),0x4f:hC(0x62a),0x50:'margin-top',0x51:hC(0x29b),0x52:hC(0x57a),0x53:hC(0x6d2),0x54:hC(0x6e3),0x55:hC(0x75c),0x56:'object-fit',0x57:hC(0x934),0x58:hC(0x94f),0x59:hC(0x301),0x5a:hC(0x43e),0x5b:hC(0x234),0x5c:hC(0x5b6),0x5d:'outline-color',0x5e:'outline-offset',0x5f:hC(0x558),0x60:hC(0x44c),0x61:hC(0x800),0x62:hC(0x4ba),0x63:hC(0x431),0x64:hC(0x5a1),0x65:'padding-bottom',0x66:hC(0x804),0x67:hC(0x4a3),0x68:hC(0x1b1),0x69:hC(0x782),0x6a:hC(0x93f),0x6b:hC(0x678),0x6c:'right',0x6d:'scroll-behavior',0x6e:hC(0x6e0),0x6f:hC(0x706),0x70:hC(0x4a1),0x71:'text-align',0x72:hC(0x9ee),0x73:'text-decoration',0x74:hC(0x5b2),0x75:'text-decoration-style',0x76:'text-decoration-color',0x77:hC(0x9f7),0x78:'text-underline-position',0x79:'text-indent',0x7a:'text-rendering',0x7b:'text-shadow',0x7c:hC(0x3cb),0x7d:hC(0x687),0x7e:hC(0x3cf),0x7f:hC(0x1a3),0x80:hC(0x995),0x81:hC(0x7c1),0x82:hC(0x1aa),0x83:hC(0x827),0x84:hC(0x7f3),0x85:hC(0x274),0x86:hC(0x325),0x87:hC(0x587),0x88:'white-space',0x89:hC(0x977),0x8a:hC(0x4e6),0x8b:hC(0x205),0x8c:hC(0x4d5),0x8d:hC(0x18a),0x8e:'word-wrap',0x8f:'z-index',0x90:'zoom',0x91:hC(0x26b),0x92:'backface-visibility',0x93:'-webkit-border-horizontal-spacing',0x94:hC(0x3f3),0x95:hC(0x791),0x96:hC(0x931),0x97:hC(0x53d),0x98:'-webkit-box-direction',0x99:hC(0x20e),0x9a:hC(0x221),0x9b:hC(0x665),0x9c:hC(0x2a2),0x9d:hC(0x4fa),0x9e:hC(0x98f),0x9f:'-webkit-box-reflect',0xa0:'column-count',0xa1:hC(0x3e0),0xa2:hC(0x327),0xa3:hC(0x511),0xa4:'column-rule-width',0xa5:hC(0xa03),0xa6:hC(0x818),0xa7:hC(0x3ca),0xa8:'align-items',0xa9:'align-self',0xaa:hC(0x82a),0xab:hC(0x55b),0xac:hC(0x64d),0xad:hC(0x899),0xae:hC(0x55f),0xaf:'justify-content',0xb0:hC(0x85a),0xb1:hC(0x3b4),0xb2:hC(0x78e),0xb3:hC(0x360),0xb4:'grid-column-end',0xb5:hC(0x92e),0xb6:hC(0x2d6),0xb7:hC(0x508),0xb8:hC(0x248),0xb9:'grid-row-end',0xba:hC(0x958),0xbb:hC(0x186),0xbc:'grid-row-gap',0xbd:hC(0x698),0xbe:hC(0x31e),0xbf:hC(0x7c0),0xc0:hC(0x7d0),0xc1:'-webkit-line-clamp',0xc2:hC(0x57b),0xc3:hC(0x7e4),0xc4:hC(0x2c4),0xc5:hC(0x9c7),0xc6:'-webkit-mask-box-image-outset',0xc7:hC(0x6c4),0xc8:hC(0x220),0xc9:hC(0x626),0xca:hC(0x2e9),0xcb:'-webkit-mask-clip',0xcc:hC(0x22a),0xcd:hC(0x5d8),0xce:'-webkit-mask-origin',0xcf:'-webkit-mask-position',0xd0:'-webkit-mask-repeat',0xd1:hC(0x9f1),0xd2:hC(0x7c7),0xd3:hC(0x83f),0xd4:hC(0x544),0xd5:'-webkit-print-color-adjust',0xd6:hC(0x2b9),0xd7:hC(0x7ee),0xd8:'shape-image-threshold',0xd9:'shape-margin',0xda:'-webkit-tap-highlight-color',0xdb:hC(0x283),0xdc:hC(0x332),0xdd:hC(0xa25),0xde:hC(0x1cd),0xdf:hC(0x38c),0xe0:hC(0x8fb),0xe1:hC(0x24e),0xe2:hC(0x87c),0xe3:'-webkit-text-stroke-color',0xe4:'-webkit-text-stroke-width',0xe5:'transform',0xe6:hC(0x85d),0xe7:hC(0x258),0xe8:hC(0x965),0xe9:hC(0x844),0xea:hC(0x663),0xeb:hC(0x907),0xec:hC(0x53a),0xed:'buffered-rendering',0xee:hC(0x230),0xef:hC(0x2f6),0xf0:hC(0x55a),0xf1:hC(0x59b),0xf2:hC(0x803),0xf3:'flood-opacity',0xf4:hC(0x1ce),0xf5:'stop-color',0xf6:hC(0x452),0xf7:hC(0x31d),0xf8:hC(0x479),0xf9:hC(0x9eb),0xfa:hC(0x67d),0xfb:'fill-opacity',0xfc:hC(0x6c7),0xfd:hC(0x9d4),0xfe:hC(0x42d),0xff:hC(0x1b2),0x100:'mask-type',0x101:hC(0x872),0x102:'stroke',0x103:hC(0x564),0x104:'stroke-dashoffset',0x105:hC(0x61d),0x106:hC(0x4f7),0x107:'stroke-miterlimit',0x108:hC(0x792),0x109:hC(0x4b2),0x10a:'alignment-baseline',0x10b:'baseline-shift',0x10c:hC(0x8b8),0x10d:hC(0x1b6),0x10e:hC(0x7b7),0x10f:'vector-effect',0x110:'paint-order',0x111:'d',0x112:'cx',0x113:'cy',0x114:'x',0x115:'y',0x116:'r',0x117:'rx',0x118:'ry',0x119:hC(0x94a),0x11a:hC(0x8e1),'display':hC(0x79f),'dominantBaseline':'auto','emptyCells':hC(0x9aa),'fill':'rgb(0,\x200,\x200)','fillOpacity':'1','fillRule':hC(0x762),'filter':'none','flex':'0\x201\x20auto','flexBasis':'auto','flexDirection':hC(0x3f1),'flexFlow':hC(0x27f),'flexGrow':'0','flexShrink':'1','flexWrap':hC(0x581),'float':hC(0x6a1),'floodColor':'rgb(0,\x200,\x200)','floodOpacity':'1','font':'normal\x20normal\x20400\x20normal\x2016px\x20/\x20normal\x20\x22PingFang\x20SC\x22','fontDisplay':'','fontFamily':'\x22PingFang\x20SC\x22','fontFeatureSettings':hC(0x547),'fontKerning':hC(0x789),'fontSize':'16px','fontStretch':hC(0x750),'fontStyle':hC(0x547),'fontVariant':hC(0x547),'fontVariantCaps':hC(0x547),'fontVariantEastAsian':hC(0x547),'fontVariantLigatures':hC(0x547),'fontVariantNumeric':hC(0x547),'fontVariationSettings':'normal','fontWeight':hC(0x957),'grid':'none\x20/\x20none\x20/\x20none\x20/\x20row\x20/\x20auto\x20/\x20auto','gridArea':hC(0x1ed),'gridAutoColumns':'auto','gridAutoFlow':hC(0x3f1),'gridAutoRows':hC(0x789),'gridColumn':'auto\x20/\x20auto','gridColumnEnd':hC(0x789),'gridColumnGap':hC(0x846),'gridColumnStart':hC(0x789),'gridGap':hC(0x910),'gridRow':'auto\x20/\x20auto','gridRowEnd':hC(0x789),'gridRowGap':'0px','gridRowStart':hC(0x789),'gridTemplate':hC(0x9b3),'gridTemplateAreas':'none','gridTemplateColumns':hC(0x6a1),'gridTemplateRows':hC(0x6a1),'height':hC(0x846),'hyphens':hC(0x43a),'imageRendering':'auto','inlineSize':'0px','isolation':hC(0x789),'justifyContent':hC(0x547),'justifyItems':hC(0x547),'justifySelf':hC(0x789),'left':'auto','letterSpacing':hC(0x547),'lightingColor':hC(0x691),'lineBreak':hC(0x789),'lineHeight':hC(0x547),'listStyle':hC(0x2c3),'listStyleImage':hC(0x6a1),'listStylePosition':'outside','listStyleType':hC(0x247),'margin':hC(0x846),'marginBottom':'0px','marginLeft':hC(0x846),'marginRight':hC(0x846),'marginTop':hC(0x846),'marker':'','markerEnd':hC(0x6a1),'markerMid':hC(0x6a1),'markerStart':'none','mask':hC(0x6a1),'maskType':hC(0x225),'maxBlockSize':hC(0x6a1),'maxHeight':hC(0x6a1),'maxInlineSize':hC(0x6a1),'maxWidth':'none','maxZoom':'','minBlockSize':hC(0x846),'minHeight':'0px','minInlineSize':hC(0x846),'minWidth':'0px','minZoom':'','mixBlendMode':hC(0x547),'objectFit':hC(0x67d),'objectPosition':hC(0x5f7),'offset':'none\x200px\x20auto\x200deg','offsetDistance':hC(0x846),'offsetPath':'none','offsetRotate':hC(0x34d),'opacity':'1','order':'0','orientation':'','orphans':'2','outline':hC(0x4af),'outlineColor':hC(0x7d3),'outlineOffset':hC(0x846),'outlineStyle':hC(0x6a1),'outlineWidth':hC(0x846),'overflow':'visible','overflowAnchor':hC(0x789),'overflowWrap':'normal','overflowX':hC(0x426),'overflowY':'visible','overscrollBehavior':hC(0x6a9),'overscrollBehaviorX':'auto','overscrollBehaviorY':'auto','padding':'0px','paddingBottom':hC(0x846),'paddingLeft':'0px','paddingRight':hC(0x846),'paddingTop':hC(0x846),'page':'','pageBreakAfter':hC(0x789),'pageBreakBefore':'auto','pageBreakInside':hC(0x789),'paintOrder':hC(0x609),'perspective':hC(0x6a1),'perspectiveOrigin':hC(0x910),'placeContent':hC(0x664),'placeItems':hC(0x664),'placeSelf':'auto\x20auto','pointerEvents':'auto','position':hC(0x46c),'quotes':'','r':hC(0x846),'resize':hC(0x6a1),'right':hC(0x789),'rx':hC(0x789),'ry':hC(0x789),'scrollBehavior':hC(0x789),'shapeImageThreshold':'0','shapeMargin':hC(0x846),'shapeOutside':'none','shapeRendering':hC(0x789),'size':'','speak':'normal','src':'','stopColor':hC(0x7d3),'stopOpacity':'1','stroke':'none','strokeDasharray':hC(0x6a1),'strokeDashoffset':hC(0x846),'strokeLinecap':hC(0x436),'strokeLinejoin':hC(0x6b4),'strokeMiterlimit':'4','strokeOpacity':'1','strokeWidth':hC(0x31b),'tabSize':'8','tableLayout':'auto','textAlign':'start','textAlignLast':hC(0x789),'textAnchor':hC(0x1d1),'textCombineUpright':hC(0x6a1),'textDecoration':hC(0x807),'textDecorationColor':hC(0x7d3),'textDecorationLine':hC(0x6a1),'textDecorationSkipInk':hC(0x789),'textDecorationStyle':hC(0x6fa),'textIndent':hC(0x846),'textOrientation':'mixed','textOverflow':'clip','textRendering':hC(0x789),'textShadow':hC(0x6a1),'textSizeAdjust':hC(0x789),'textTransform':'none','textUnderlinePosition':hC(0x789),'top':hC(0x789),'touchAction':'auto','transform':hC(0x6a1),'transformBox':'view-box','transformOrigin':hC(0x910),'transformStyle':hC(0x3eb),'transition':hC(0x5a5),'transitionDelay':'0s','transitionDuration':'0s','transitionProperty':'all','transitionTimingFunction':hC(0x480),'unicodeBidi':'normal','unicodeRange':'','userSelect':'auto','userZoom':'','vectorEffect':'none','verticalAlign':hC(0x661),'visibility':'visible','webkitAppRegion':'no-drag','webkitAppearance':'none','webkitBorderAfter':'0px\x20none\x20rgb(0,\x200,\x200)','webkitBorderAfterColor':'rgb(0,\x200,\x200)','webkitBorderAfterStyle':'none','webkitBorderAfterWidth':hC(0x846),'webkitBorderBefore':hC(0x786),'webkitBorderBeforeColor':hC(0x7d3),'webkitBorderBeforeStyle':hC(0x6a1),'webkitBorderBeforeWidth':hC(0x846),'webkitBorderEnd':'0px\x20none\x20rgb(0,\x200,\x200)','webkitBorderEndColor':hC(0x7d3),'webkitBorderEndStyle':'none','webkitBorderEndWidth':hC(0x846),'webkitBorderHorizontalSpacing':hC(0x846),'webkitBorderImage':hC(0x6a1),'webkitBorderStart':'0px\x20none\x20rgb(0,\x200,\x200)','webkitBorderStartColor':hC(0x7d3),'webkitBorderStartStyle':'none','webkitBorderStartWidth':hC(0x846),'webkitBorderVerticalSpacing':hC(0x846),'webkitBoxAlign':'stretch','webkitBoxDecorationBreak':hC(0x9a1),'webkitBoxDirection':'normal','webkitBoxFlex':'0','webkitBoxFlexGroup':'1','webkitBoxLines':'single','webkitBoxOrdinalGroup':'1','webkitBoxOrient':hC(0x7a0),'webkitBoxPack':hC(0x1d1),'webkitBoxReflect':'none','webkitColumnBreakAfter':'auto','webkitColumnBreakBefore':hC(0x789),'webkitColumnBreakInside':hC(0x789),'webkitFontSizeDelta':'','webkitFontSmoothing':hC(0x789),'webkitHighlight':hC(0x6a1),'webkitHyphenateCharacter':'auto','webkitLineBreak':hC(0x789),'webkitLineClamp':hC(0x6a1),'webkitLocale':hC(0x789),'webkitLogicalHeight':hC(0x846),'webkitLogicalWidth':hC(0x846),'webkitMarginAfter':hC(0x846),'webkitMarginAfterCollapse':hC(0x482),'webkitMarginBefore':hC(0x846),'webkitMarginBeforeCollapse':hC(0x482),'webkitMarginBottomCollapse':'collapse','webkitMarginCollapse':'','webkitMarginEnd':'0px','webkitMarginStart':hC(0x846),'webkitMarginTopCollapse':hC(0x482),'webkitMask':'','webkitMaskBoxImage':hC(0x6a1),'webkitMaskBoxImageOutset':hC(0x846),'webkitMaskBoxImageRepeat':hC(0x585),'webkitMaskBoxImageSlice':hC(0x601),'webkitMaskBoxImageSource':hC(0x6a1),'webkitMaskBoxImageWidth':hC(0x789),'webkitMaskClip':hC(0x72d),'webkitMaskComposite':hC(0x731),'webkitMaskImage':'none','webkitMaskOrigin':hC(0x72d),'webkitMaskPosition':hC(0x379),'webkitMaskPositionX':'0%','webkitMaskPositionY':'0%','webkitMaskRepeat':hC(0x968),'webkitMaskRepeatX':'','webkitMaskRepeatY':'','webkitMaskSize':hC(0x789),'webkitMaxLogicalHeight':hC(0x6a1),'webkitMaxLogicalWidth':hC(0x6a1),'webkitMinLogicalHeight':hC(0x846),'webkitMinLogicalWidth':hC(0x846),'webkitPaddingAfter':hC(0x846),'webkitPaddingBefore':hC(0x846),'webkitPaddingEnd':hC(0x846),'webkitPaddingStart':hC(0x846),'webkitPerspectiveOriginX':'','webkitPerspectiveOriginY':'','webkitPrintColorAdjust':hC(0xa0a),'webkitRtlOrdering':hC(0x896),'webkitRubyPosition':hC(0x828),'webkitTapHighlightColor':hC(0x4f3),'webkitTextCombine':'none','webkitTextDecorationsInEffect':'none','webkitTextEmphasis':'','webkitTextEmphasisColor':hC(0x7d3),'webkitTextEmphasisPosition':hC(0x887),'webkitTextEmphasisStyle':hC(0x6a1),'webkitTextFillColor':hC(0x7d3),'webkitTextOrientation':'vertical-right','webkitTextSecurity':hC(0x6a1),'webkitTextStroke':'','webkitTextStrokeColor':hC(0x7d3),'webkitTextStrokeWidth':hC(0x846),'webkitTransformOriginX':'','webkitTransformOriginY':'','webkitTransformOriginZ':'','webkitUserDrag':hC(0x789),'webkitUserModify':'read-only','webkitWritingMode':hC(0x20a),'whiteSpace':'normal','widows':'2','width':hC(0x846),'willChange':hC(0x789),'wordBreak':hC(0x547),'wordSpacing':hC(0x846),'wordWrap':'normal','writingMode':hC(0x20a),'x':'0px','y':'0px','zIndex':hC(0x789),'zoom':'1'},a5=function(bg){var hD=hC;const bh=bg[hD(0x4e6)],bi=bg['height'];return Object[hD(0x326)](a4,{'display':hD(0x79f),'position':hD(0x46c),'inlineSize':bh+'px','perspectiveOrigin':bh/0x2+hD(0x8b3)+bi/0x2+'px','transformOrigin':bh/0x2+hD(0x8b3)+bi/0x2+'px','webkitLogicalWidth':bh+'px','webkitLogicalHeight':bi+'px','width':bh+'px','height':bi+'px'});},a6=function(bg){var hE=hC;const bh=bg[hE(0x2df)]();return Object[hE(0x326)](a4,{'display':'inline','position':hE(0x46c),'inlineSize':bh[hE(0x4e6)]+'px','perspectiveOrigin':bh[hE(0x4e6)]/0x2+hE(0x8b3)+bh['height']/0x2+'px','transformOrigin':bh[hE(0x4e6)]/0x2+'px\x20'+bh[hE(0x4f8)]/0x2+'px','webkitLogicalWidth':bh[hE(0x4e6)]+'px','webkitLogicalHeight':bh[hE(0x4f8)]+'px','width':bh[hE(0x4e6)]+'px','height':bh[hE(0x4f8)]+'px'});};function a7(){}let a8;if(wx[hC(0x787)]){const {platform:bg}=wx['getSystemInfoSync'](),bh=wx['getPerformance'](),bi=bh[hC(0x8d4)](),bj=Object[hC(0x326)]({},bh,{'now':function(){var hF=hC;return(bh[hF(0x8d4)]()-bi)/0x3e8;}});a8=hC(0x4e2)===bg?bh:bj;}else a8={'timeOrigin':Date[hC(0x8d4)](),'now':function(){var hG=hC;return Date[hG(0x8d4)]()-this[hG(0x71e)];}};const a9=a8,{screenWidth:aa,screenHeight:ab,devicePixelRatio:ac}=wx[hC(0x425)](),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 hH=hC;if(!(hH(0x619)in bk)){let bm;bm=0x0===bl?function(){return null;}:0x1===bl?function(){var hI=hH;return(a2['g']['document']||wx[hI(0x971)][hI(0x305)])[hI(0x173)];}:function(){var hJ=hH;if(!a2['g']||!a2['g'][hJ(0x305)]||!wx[hJ(0x971)][hJ(0x305)])return;return(a2['g']['document']||wx[hJ(0x971)][hJ(0x305)])[hJ(0x2b3)];},Object[hH(0x1d6)](bk,hH(0x619),{'enumerable':!0x0,'get':bm});}if(!(hH(0x4fd)in bk)){let bn;bn=0x0===bl?function(){return null;}:0x1===bl?function(){var hK=hH;return document[hK(0x173)];}:function(){var hL=hH;return(a2['g']['document']||wx[hL(0x971)][hL(0x305)])[hL(0x2b3)];},Object['defineProperty'](bk,hH(0x4fd),{'enumerable':!0x0,'get':bn});}}function aj(bk){var hM=hC;bk[hM(0x2c1)]=bk[hM(0x2c1)]||{},Object[hM(0x326)](bk['style'],{'top':hM(0x846),'left':hM(0x846),'width':ad+'px','height':ae+'px','margin':hM(0x846),'padding':'0px'});}function ak(bk,bl){var hN=hC;hN(0x29a)in bk||(bk[hN(0x29a)]=bk[hN(0x453)]||0x0,bk[hN(0x2d5)]=bk[hN(0x3b1)]||0x0),'clientWidth'in bk||(bk['clientWidth']=bk[hN(0x76d)]||ad,bk[hN(0x76e)]=bk[hN(0x442)]||ae),hN(0x2df)in bk||(bk[hN(0x2df)]=function(){var hO=hN;const bm={'x':0x0,'y':0x0,'top':0x0,'left':0x0,'width':bk[hO(0x76d)]||this[hO(0x3cc)],'height':bk[hO(0x442)]||this[hO(0x76e)]};return bm[hO(0x6f1)]=bm['width'],bm['bottom']=bm[hO(0x4f8)],bm;});}function al(bk){var hP=hC;hP(0x645)in bk||(bk['offsetLeft']=0x0,bk[hP(0x718)]=0x0),hP(0x488)in bk||(bk[hP(0x488)]=ad,bk[hP(0x98c)]=ae);}function am(bk){var hQ=hC;const bl=function(){};bk[hQ(0x33b)]=[],bk[hQ(0x33b)][hQ(0x611)]=bl,bk[hQ(0x33b)][hQ(0x2a0)]=bl,bk[hQ(0x33b)][hQ(0x603)]=bl,bk['classList']['toggle']=bl;}const an=new WeakMap();class ao{constructor(){var hR=hC;an[hR(0x6c5)](this,{});}[hC(0x3fd)](bk,bl,bm={}){var hS=hC;let bn=an[hS(0x52c)](this);bn||(bn={},an[hS(0x6c5)](this,bn)),bn[bk]||(bn[bk]=[]),bn[bk]['push'](bl),bm[hS(0x892)],bm[hS(0x31f)],bm[hS(0x287)];}[hC(0x9ea)](bk,bl,bm={}){var hT=hC;const bn=an[hT(0x52c)](this);if(bn){const bo=bn[bk];if(bo&&bo[hT(0x6db)]>0x0){for(let bp=bo['length'];bp--;bp>0x0)if(bo[bp]===bl){bo[hT(0x908)](bp,0x1);break;}}}}[hC(0x66b)](bk={}){var hU=hC;const bl=an[hU(0x52c)](this)[bk[hU(0x833)]];if(bl){for(let bm=0x0;bm<bl[hU(0x6db)];bm++)bl[bm](bk);}}}class ap extends ao{constructor(){super(),this['childNodes']=[];}[hC(0x369)](bk){var hV=hC;this['childNodes'][hV(0x607)](bk);}['cloneNode'](){const bk=Object['create'](this);return Object['assign'](bk,this),bk;}[hC(0x73a)](bk){var hW=hC;const bl=this[hW(0x996)][hW(0x8e0)](bm=>bm===bk);return bl>-0x1?this['childNodes'][hW(0x908)](bl,0x1):null;}}class aq extends ap{constructor(){var hX=hC;super(),this[hX(0x839)]='',this[hX(0x5ee)]=[];}[hC(0x7d1)](bk,bl){this[bk]=bl;}[hC(0x6e7)](bk){return this[bk];}['setAttributeNS'](bk,bl){this[bk]=bl;}[hC(0x7a9)](bk){return this[bk];}}class ar extends aq{constructor(bk='',bl){var hY=hC,bm;super(),this[hY(0x839)]='',this[hY(0x5ee)]=[],this[hY(0x712)]=a7,this[hY(0x376)]=a7,this[hY(0x964)]=a7,this[hY(0x369)]=a7,this[hY(0x73a)]=a7,this[hY(0x2a0)]=a7,this['innerHTML']='',this[hY(0x2e0)]=bk[hY(0x74c)](),ai(this,bl),aj(this),am(this),ak(this),al(this),'scrollLeft'in(bm=this)||(bm['scrollLeft']=0x0,bm[hY(0x85b)]=0x0),hY(0x4d1)in bm||(bm[hY(0x4d1)]=ad,bm['scrollHeight']=ae);}}class as extends ar{constructor(bk){super(bk);}['addTextTrack'](){}[hC(0x493)](){}[hC(0x7cd)](){}[hC(0x6e2)](){}[hC(0x73d)](){}[hC(0x614)](){}}class au extends as{constructor(){super('video');}}function av(bk){var hZ=hC;let bl=bk;bk||(bl=wx[hZ(0x7a2)]({'type':hZ(0x22d)})),hZ(0x2e0)in bl||(bl['tagName']='CANVAS'),bl['type']=hZ(0x472),ai(bl),aj(bl),am(bl),ak(bl),al(bl),bl[hZ(0x712)]=function(){},bl[hZ(0x376)]=function(){};let bm={};return bl[hZ(0x3fd)]=function(bn,bo,bp={}){var i0=hZ;void 0x0===bm[bn]&&(bm[bn]=[]),-0x1===bm[bn][i0(0x962)](bo)&&bm[bn][i0(0x607)](bo);},bl['removeEventListener']=function(bn,bo){var i1=hZ;const bp=bm[bn];if(void 0x0!==bp){const bq=bp[i1(0x962)](bo);-0x1!==bq&&bp[i1(0x908)](bq,0x1);}},bl['dispatchEvent']=function(bn={}){var i2=hZ;const bo=bm[bn['type']];if(void 0x0!==bo){bn['target']=this;const bp=bo[i2(0x9a1)](0x0);for(let bq=0x0,br=bp[i2(0x6db)];bq<br;bq++)bp[bq]['call'](this,bn);}},bl;}const aw=wx[hC(0x425)](),ax=aw[hC(0x3d2)],ay=aw[hC(0x519)],az=aw[hC(0x82e)],aA=-0x1!==ax[hC(0x172)]()['indexOf'](hC(0x3c0))?'Android;\x20CPU\x20Android\x206.0':hC(0x6ff),aB={'platform':ay,'language':az,'appVersion':hC(0x549)+aA+hC(0x282),'userAgent':hC(0x7b0)+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[hC(0x229)]&&wx['onNetworkStatusChange'](function(bk){var i3=hC;aB[i3(0x44d)]=bk['isConnected'];});const aC=aB;function aD(){var i4=hC;try{let bk;return aD[i4(0x812)],(wx&&wx[i4(0x35e)]&&(bk=wx['createCanvas']()[i4(0x2ca)]()),'tagName'in bk||(bk[i4(0x2e0)]=i4(0x1ad)),ai(bk),am(bk),bk[i4(0x51e)][i4(0x51e)]=wx[i4(0x35e)]()[i4(0x2ca)][i4(0x933)],bk);}catch(bl){}}class aE{constructor(){}}class aF{constructor(bk){var i5=hC;this[i5(0x5a0)]=!0x1,this[i5(0x9cf)]=!0x1,this['target']=null,this[i5(0x34a)]=null,this['preventDefault']=a7,this[i5(0x86b)]=a7,this[i5(0x833)]=bk,this[i5(0x178)]=Date['now']();}}class aG extends aF{constructor(bk){var i6=hC;super(bk),this[i6(0x616)]=[],this[i6(0x902)]=[],this['changedTouches']=[],this[i6(0x775)]=window[i6(0x472)],this[i6(0x34a)]=window[i6(0x472)];}}function aH(bk){return bl=>{var i7=a0b;const bm=new aG(bk);bm['changedTouches']=bl['changedTouches'],bm[i7(0x616)]=bl[i7(0x616)],bm['targetTouches']=Array[i7(0x933)][i7(0x9a1)][i7(0x6e9)](bl[i7(0x616)]),bm['timeStamp']=bl['timeStamp'],document[i7(0x66b)](bm);};}wx[hC(0x252)]&&wx[hC(0x252)](aH(hC(0x563))),wx[hC(0x2d8)]&&wx['onTouchMove'](aH(hC(0x294))),wx[hC(0x649)]&&wx[hC(0x649)](aH(hC(0x2e3))),wx[hC(0x35d)]&&wx[hC(0x35d)](aH(hC(0x987)));class aI extends aF{constructor(bk){super(bk);}}const aJ=['bubbles',hC(0x9cf),'view',hC(0x9f8),'screenX',hC(0x295),'clientX',hC(0x525),hC(0x62c),hC(0x9dd),hC(0x1e0),'metaKey','button',hC(0x315),hC(0x86f),hC(0x4e6),'height',hC(0x4c7),hC(0x3f6),'tiltY',hC(0x5fa),hC(0x7b9),hC(0x58c),hC(0x830),hC(0x491),hC(0x178)],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 i8=hC;const bn=new aI(bk);for(let bo=0x0;bo<aJ[i8(0x6db)];bo++){const bp=aJ[bo];bn[bp]=bl[bp]||aK[bo];}return bn[i8(0x833)]=bk,bn['target']=window[i8(0x472)],bn[i8(0x34a)]=window[i8(0x472)],bn[i8(0x2b5)]=function(bq){var i9=i8;let br=0x0;return i9(0x563)!==bq&&i9(0x294)!==bq&&i9(0x2dc)!==bq&&i9(0x5bf)!==bq||(br=0x1),br;}(bk),bn[i8(0x997)]=bn[i8(0x2b5)],bn[i8(0x86f)]=(bl[i8(0x633)]||0x0)+0x2,bn[i8(0x1fb)]=!0x0,bn['cancelable']=!0x0,bn[i8(0x4e8)]=0x0,bn[i8(0x4e6)]=0x2*(bl['radiusX']||0.5),bn[i8(0x4f8)]=0x2*(bl[i8(0x3e5)]||0.5),bn[i8(0x4c7)]=bl[i8(0x1c0)]||0.5,bn[i8(0x58c)]=function(bq){var ia=i8;return aM===bq[ia(0x633)];}(bl),bn['pointerType']=i8(0x52d),bn[i8(0x9dd)]=bm[i8(0x9dd)],bn[i8(0x62c)]=bm['ctrlKey'],bn[i8(0x2f1)]=bm['metaKey'],bn[i8(0x1e0)]=bm[i8(0x1e0)],bm[i8(0x9d7)]&&(bn['preventDefault']=function(){var ib=i8;bm[ib(0x9d7)]();}),bn;}let aM=null;function aN(bk){var ic=hC;null===aM&&(aM=bk[ic(0x633)]);}function aO(bk){aM===bk['identifier']&&(aM=null);}function aP(bk){return bl=>{var id=a0b;console[id(0x8f1)](id(0x53e),bl);const bm=bl['changedTouches'];for(let bn=0x0;bn<bm['length'];bn++){const bo=bm[bn];0x0===bn&&id(0x2dc)===bk?aN(bo):id(0x89e)!==bk&&id(0x51d)!==bk||aO(bo);const bp=aL(bk,bo,bl);console[id(0x8f1)](id(0x9e5),bp),document[id(0x66b)](bp);}};}wx['onTouchStart']&&wx[hC(0x252)](aP(hC(0x2dc))),wx['onTouchMove']&&wx['onTouchMove'](aP('pointermove')),wx[hC(0x649)]&&wx[hC(0x649)](aP(hC(0x89e))),wx[hC(0x35d)]&&wx['onTouchCancel'](aP(hC(0x51d)));class aQ extends aF{constructor(bk){super(bk);}}let aR=0x0;const aS=function(bk){var ie=hC;return'__'+bk+'_'+Math[ie(0x646)](0x3b9aca00*Math[ie(0x6ef)]())+'_'+ ++aR+'__';};aS[hC(0x897)]=aS('Symbol.iterator');const aT=aS,aU={'href':hC(0x4ed),'reload'(){},'replace'(bk){var ig=hC;this[ig(0x928)]=bk;}},aV=new WeakMap(),aW=new WeakMap(),aX=new WeakMap(),aY=new WeakMap(),aZ=new WeakMap();function b0(bk,...bl){var ih=hC;ih(0x9d2)==typeof this['on'+bk]&&this['on'+bk][ih(0x821)](this,bl);}function b1(bk){var ii=hC;this[ii(0x9e8)]=bk,b0[ii(0x6e9)](this,'readystatechange'),this['dispatchEvent'](ii(0x191));}class b2{static [hC(0x95f)]=0x0;static ['OPENED']=0x1;static [hC(0x7e8)]=0x2;static [hC(0x450)]=0x3;static ['DONE']=0x4;[hC(0x312)]=null;[hC(0x6bb)]=null;[hC(0x396)]=null;[hC(0x210)]=null;[hC(0x5a8)]=null;['ontimeout']=null;[hC(0x8d3)]=null;[hC(0x5ce)]=null;[hC(0x9e8)]=0x0;[hC(0x256)]=null;['responseText']=null;[hC(0x26d)]='';[hC(0x3c9)]=null;[hC(0x95b)]=0x0;[hC(0x333)]='';[hC(0x9f4)]={};[hC(0x8b9)]=!0x1;[hC(0x21e)]={};constructor(){var ij=hC;aX[ij(0x6c5)](this,{'content-type':ij(0x2e4)}),aY[ij(0x6c5)](this,{});}[hC(0x512)](){var ik=hC;const bk=aZ['get'](this);bk&&bk[ik(0x512)]();}[hC(0x2ab)](){var il=hC;const bk=aY[il(0x52c)](this);return Object[il(0x3be)](bk)[il(0x684)](bl=>bl+':\x20'+bk[bl])[il(0x5d7)]('\x0a');}['getResponseHeader'](bk){var im=hC;return aY[im(0x52c)](this)[bk];}[hC(0x680)](bk,bl){var io=hC;aW[io(0x6c5)](this,bk),aV[io(0x6c5)](this,bl),b1[io(0x6e9)](this,b2[io(0x218)]);}[hC(0x66d)](){}[hC(0x8ae)](bk=''){var ip=hC;if(this[ip(0x9e8)]!==b2[ip(0x218)])throw new Error(ip(0x39b));if(-0x1===aV[ip(0x52c)](this)[ip(0x962)](ip(0x38d))){let bl=a2['g'][ip(0x5aa)][ip(0x871)]['readJSONFile'](aV['get'](this)),bm=0xc8,bn={};if(ip(0xa16)!=typeof bl&&!(bl instanceof ArrayBuffer))try{bl=JSON[ip(0x975)](bl);}catch(bo){}if(this[ip(0x95b)]=bm,aY[ip(0x6c5)](this,bn),b0['call'](this,ip(0x5da)),this[ip(0x66b)](ip(0x5da)),b1[ip(0x6e9)](this,b2[ip(0x7e8)]),b1[ip(0x6e9)](this,b2[ip(0x450)]),this['response']=bl,bl instanceof ArrayBuffer){this[ip(0x89a)]='';const bp=new Uint8Array(bl),bq=bp[ip(0x737)];for(let br=0x0;br<bq;br++)this[ip(0x89a)]+=String[ip(0x657)](bp[br]);}else this[ip(0x89a)]=bl;b1[ip(0x6e9)](this,b2['DONE']),b0['call'](this,ip(0x6e2)),this[ip(0x66b)](ip(0x6e2)),b0['call'](this,'loadend'),this[ip(0x66b)](ip(0x509));}else wx[ip(0x176)]({'data':bk,'url':aV[ip(0x52c)](this),'method':aW['get'](this),'header':aX['get'](this),'responseType':this[ip(0x26d)],'success':({data:bs,statusCode:bu,header:bv})=>{var iq=ip;if(iq(0xa16)!=typeof bs&&!(bs instanceof ArrayBuffer))try{bs=JSON[iq(0x975)](bs);}catch(bw){}if(this[iq(0x95b)]=bu,aY[iq(0x6c5)](this,bv),b0['call'](this,'loadstart'),this[iq(0x66b)](iq(0x5da)),b1[iq(0x6e9)](this,b2[iq(0x7e8)]),b1[iq(0x6e9)](this,b2[iq(0x450)]),this[iq(0x256)]=bs,bs instanceof ArrayBuffer){this[iq(0x89a)]='';const bx=new Uint8Array(bs),by=bx[iq(0x737)];for(let bz=0x0;bz<by;bz++)this['responseText']+=String[iq(0x657)](bx[bz]);}else this[iq(0x89a)]=bs;b1[iq(0x6e9)](this,b2[iq(0x4db)]),b0[iq(0x6e9)](this,iq(0x6e2)),this[iq(0x66b)]('load'),b0[iq(0x6e9)](this,'loadend'),this[iq(0x66b)](iq(0x509));},'fail':({errMsg:bs})=>{var ir=ip;-0x1!==bs['indexOf'](ir(0x512))?(b0[ir(0x6e9)](this,'abort'),this[ir(0x66b)]('abort')):(b0['call'](this,ir(0x1a6),bs),this[ir(0x66b)](ir(0x1a6),bs)),b0[ir(0x6e9)](this,'loadend'),this[ir(0x66b)](ir(0x509));}});}[hC(0x8e5)](bk,bl){var is=hC;const bm=aX['get'](this);bm[bk]=bl,aX[is(0x6c5)](this,bm);}[hC(0x3fd)](bk,bl){var it=hC;this[it(0x21e)][bk]||(this['events'][bk]=[]),this[it(0x21e)][bk][it(0x607)](bl);}[hC(0x9ea)](bk,bl){var iu=hC;const bm=this['events'][bk];if(bm&&bm[iu(0x6db)]>0x0){for(let bn=bm[iu(0x6db)];bn--;bn>0x0)if(bm[bn]===bl){bm[iu(0x908)](bn,0x1);break;}}}['dispatchEvent'](bk,bl={}){var iv=hC;const bm=this['events'][bk];if(bm){for(let bn=0x0;bn<bm[iv(0x6db)];bn++)bm[bn](bl);}}}function b3(bk){var iw=hC;const bl=bk[iw(0x2e0)];return'CANVAS'===bl?a6(bk):iw(0x1ad)===bl?a5(bk):a4;}function b4(bk){var ix=hC;console[ix(0x8f1)](bk);}function b5(){}function b6(){}const b7=setTimeout,b8=clearTimeout,b9=setInterval,ba=clearInterval,bb={},bc={'readyState':hC(0x623),'visibilityState':hC(0x426),'hidden':!0x1,'fullscreen':!0x0,'location':aU,'scripts':[],'style':{},'ontouchstart':null,'ontouchmove':null,'ontouchend':null,'onvisibilitychange':null,'parentNode':null,'parentElement':null,'createElement':bk=>hC(0x472)===(bk=bk[hC(0x172)]())?new av():hC(0x631)===bk?new aD():new ar(bk),'createElementNS'(bk,bl){var iy=hC;return this[iy(0x37e)](bl);},'createTextNode':bk=>bk,'getElementById':bk=>bk===a3[hC(0x472)]['id']?a3[hC(0x472)]:null,'getElementsByTagName':bk=>hC(0x28e)===(bk=bk[hC(0x172)]())?[bc['head']]:hC(0x2b3)===bk?[bc[hC(0x2b3)]]:'canvas'===bk?[a3[hC(0x472)]]:[],'getElementsByTagNameNS'(bk,bl){var iz=hC;return this[iz(0x67b)](bl);},'getElementsByName':bk=>hC(0x28e)===bk?[bc[hC(0x28e)]]:hC(0x2b3)===bk?[bc[hC(0x2b3)]]:hC(0x472)===bk?[a3[hC(0x472)]]:[],'querySelector':bk=>hC(0x28e)===bk?bc[hC(0x28e)]:hC(0x2b3)===bk?bc['body']:hC(0x472)===bk||bk==='#'+a3[hC(0x472)]['id']?a3['canvas']:null,'querySelectorAll':bk=>'head'===bk?[bc[hC(0x28e)]]:hC(0x2b3)===bk?[bc[hC(0x2b3)]]:'canvas'===bk?[a3[hC(0x472)]]:[],'addEventListener'(bk,bl){bb[bk]||(bb[bk]=[]),bb[bk]['push'](bl);},'removeEventListener'(bk,bl){var iA=hC;const bm=bb[bk];if(bm&&bm[iA(0x6db)]>0x0){for(let bn=bm[iA(0x6db)];bn--;bn>0x0)if(bm[bn]===bl){bm[iA(0x908)](bn,0x1);break;}}},'dispatchEvent'(bk){var iB=hC;const bl=bk[iB(0x833)],bm=bb[bl];if(bm){for(let bn=0x0;bn<bm[iB(0x6db)];bn++)bm[bn](bk);}bk[iB(0x775)]&&iB(0x9d2)==typeof bk['target']['on'+bl]&&bk['target']['on'+bl](bk);}};function bd(bk){return function(){var iC=a0b;bc[iC(0x62f)]=bk?iC(0x426):iC(0x5e3);const bl=!bk;if(bc[iC(0x5e3)]===bl)return;bc[iC(0x5e3)]=bl;const bm=new aF(iC(0x973));bm[iC(0x775)]=bc,bm[iC(0x178)]=Date['now'](),bc[iC(0x66b)](bm);};}bc['documentElement']=new class extends ar{constructor(){var iD=hC;super(iD(0x575),0x0);}}(),bc[hC(0x28e)]=new ar(hC(0x28e)),bc[hC(0x2b3)]=new class extends ar{constructor(){var iE=hC;super(iE(0x2b3),0x0);}}(),wx['onHide']&&wx[hC(0x3e9)](bd(!0x1)),wx[hC(0x779)]&&wx[hC(0x779)](bd(!0x0));const be=bc,bf=function(bk){var iF=hC;a3[iF(0x305)]=be,a3[iF(0x3fd)]=(bl,bm)=>{var iG=iF;a3[iG(0x305)]['addEventListener'](bl,bm);},a3['removeEventListener']=(bl,bm)=>{var iH=iF;a3[iH(0x305)][iH(0x9ea)](bl,bm);},a3['dispatchEvent']=function(bl={}){},bk[iF(0x610)]={},bk[iF(0x610)]['wx']={};for(const bl in a3)bk[bl]=a3[bl];bk['window']=a3,bk[iF(0x305)]=a3[iF(0x305)],bk[iF(0x610)]['window']=a3,bk['Image']['_context']=bk,bk[iF(0x813)]=bk[iF(0x610)]['wx'][iF(0x2ca)];};},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)=>{let y=wx['getFileSystemManager']();y['access']({'path':v,'success':()=>{w(!0x0);},'fail':z=>{var iI=a0b;y[iI(0x8b0)]({'dirPath':v,'success':()=>{w(!0x0);},'fail':A=>{w(!0x1);}});}});});}async function p(v){return new Promise((w,x)=>{var iJ=a0b;wx[iJ(0x82d)]()[iJ(0x3f8)]({'path':v,'success':()=>{w(!0x0);},'fail':y=>{w(!0x1);}});});}async function q(v,w){return new Promise(async(x,y)=>{var iK=a0b;const z=wx[iK(0x97a)][iK(0x49e)]+iK(0x8ec),A=z+'/'+v+iK(0x91e);await m(z),await p(A)?x():async function(B,C){return new Promise(async(D,E)=>{var iL=a0b;let F=wx['getFileSystemManager']();console[iL(0x8f1)](iL(0x8c9),B,C);const G=B+iL(0x94e),H=wx[iL(0x97a)][iL(0x49e)]+iL(0x444)+G;await p(H)?(console[iL(0x8f1)](iL(0x8ea)),F[iL(0x8f3)]({'filePath':H,'success':I=>{D(I['data']);},'fail':I=>{var iM=iL;E({'code':j['U'][iM(0x5d0)],'message':g['Z']['t']('0011')}),console['log'](iM(0x422),I);}})):(console[iL(0x8f1)](iL(0x6cb)),wx[iL(0x176)]({'url':C,'responseType':iL(0x904),'success':I=>{var iN=iL;const {data:J}=I;F[iN(0x8f4)]({'filePath':H,'data':J,'encoding':iN(0x5e7),'success':K=>{D(J);},'fail':K=>{var iO=iN;let L={'code':j['U']['REQUEST_FILE_FAIL'],'message':K['errMsg']};K['errMsg'][iO(0x962)](iO(0x93c))>-0x1&&(L[iO(0x7f8)]=g['Z']['t']('0012')),E(L),console[iO(0x8f1)]('wx\x20cache\x20write\x20eroor',K);}});}}));});}(v,w)[iK(0xa17)](B=>{var iP=iK;let C=wx[iP(0x82d)](),D=new Uint8Array(B),E=D[iP(0x6db)],F=D[iP(0x9a1)](0x0,0x400),G=D[iP(0x9a1)](0x400,E);k[iP(0x526)]()[iP(0xa17)](()=>{var iQ=iP;let H=k['run'](F,'');k[iQ(0x8fd)]('');const I=new Uint8Array(E);I['set'](H),I[iQ(0x6c5)](G,H[iQ(0x6db)]);let J=z+'/'+v+'.zip';C[iQ(0x8f4)]({'filePath':J,'data':I[iQ(0x938)],'encoding':iQ(0x5e7),'success':K=>{x(J);},'fail':K=>{var iR=iQ;console[iR(0x8f1)](iR(0x93b),K);let L={'code':j['U'][iR(0x40e)],'message':K[iR(0x650)]};K[iR(0x650)]['indexOf'](iR(0x93c))>-0x1&&(L['message']=g['Z']['t'](iR(0x820))),y(L);}});});})['catch'](B=>{var iS=iK;y({'msg':iS(0x79e),'zip':v,'error':B});});});}},0x170d:function(b,d,f){var g,h;!function(j){var iT=a0b,k,m={};m[iT(0x8d8)]='1.6.1';var q={},v=function(B,C){return function(){var iU=a0b;return C[iU(0x821)](B,arguments);};},w=function(){var iV=iT,B,C,D=arguments,E=D[0x0];for(C=0x1;C<D['length'];C++)for(B in D[C])!(B in E)&&D[C][iV(0x52f)](B)&&(E[B]=D[C][B]);return E;},x=function(B,C){return{'value':B,'name':C};};m['TRACE']=x(0x1,iT(0x18d)),m[iT(0x529)]=x(0x2,iT(0x529)),m[iT(0x2dd)]=x(0x3,iT(0x2dd)),m['TIME']=x(0x4,iT(0x250)),m[iT(0x895)]=x(0x5,iT(0x895)),m[iT(0x797)]=x(0x8,iT(0x797)),m[iT(0x955)]=x(0x63,iT(0x955));var y=function(B){var iW=iT;this[iW(0x2c8)]=B,this['setLevel'](B[iW(0x2f5)]),this[iW(0x8f1)]=this['info'];};y['prototype']={'setLevel':function(B){var iX=iT;B&&iX(0x8b5)in B&&(this[iX(0x2c8)][iX(0x2f5)]=B);},'getLevel':function(){var iY=iT;return this[iY(0x2c8)][iY(0x2f5)];},'enabledFor':function(B){var iZ=iT,C=this['context'][iZ(0x2f5)];return B[iZ(0x8b5)]>=C['value'];},'trace':function(){this['invoke'](m['TRACE'],arguments);},'debug':function(){var j0=iT;this['invoke'](m[j0(0x529)],arguments);},'info':function(){var j1=iT;this[j1(0x95c)](m[j1(0x2dd)],arguments);},'warn':function(){var j2=iT;this[j2(0x95c)](m[j2(0x895)],arguments);},'error':function(){var j3=iT;this[j3(0x95c)](m[j3(0x797)],arguments);},'time':function(B){var j4=iT;'string'==typeof B&&B[j4(0x6db)]>0x0&&this[j4(0x95c)](m[j4(0x250)],[B,j4(0x1d1)]);},'timeEnd':function(B){var j5=iT;j5(0xa16)==typeof B&&B['length']>0x0&&this['invoke'](m[j5(0x250)],[B,j5(0x313)]);},'invoke':function(B,C){var j6=iT;k&&this[j6(0x956)](B)&&k(C,w({'level':B},this[j6(0x2c8)]));}};var z,A=new y({'filterLevel':m[iT(0x955)]});(z=m)[iT(0x956)]=v(A,A[iT(0x956)]),z[iT(0x75d)]=v(A,A[iT(0x75d)]),z[iT(0x811)]=v(A,A[iT(0x811)]),z['time']=v(A,A[iT(0x40f)]),z[iT(0x2da)]=v(A,A['timeEnd']),z[iT(0x338)]=v(A,A[iT(0x338)]),z[iT(0x83b)]=v(A,A[iT(0x83b)]),z['error']=v(A,A['error']),z['log']=z[iT(0x338)],m[iT(0x8f0)]=function(B){k=B;},m['setLevel']=function(B){var j7=iT;for(var C in(A['setLevel'](B),q))q[j7(0x52f)](C)&&q[C][j7(0x41d)](B);},m[iT(0x6c3)]=function(){var j8=iT;return A[j8(0x6c3)]();},m[iT(0x52c)]=function(B){return q[B]||(q[B]=new y(w({'name':B},A['context'])));},m[iT(0x4a2)]=function(B){var j9=iT;(B=B||{})[j9(0x3ec)]=B[j9(0x3ec)]||function(E,F){var ja=j9;F[ja(0x667)]&&E[ja(0x583)]('['+F['name']+']');};var C={},D=function(E,F){var jb=j9;Function['prototype'][jb(0x821)][jb(0x6e9)](E,console,F);};return j9(0x490)==typeof console?function(){}:function(E,F){var jc=j9;E=Array[jc(0x933)][jc(0x9a1)][jc(0x6e9)](E);var G,H=console[jc(0x8f1)];F[jc(0x2bc)]===m[jc(0x250)]?(G=(F[jc(0x667)]?'['+F[jc(0x667)]+']\x20':'')+E[0x0],jc(0x1d1)===E[0x1]?console[jc(0x40f)]?console[jc(0x40f)](G):C[G]=new Date()['getTime']():console['timeEnd']?console['timeEnd'](G):D(H,[G+':\x20'+(new Date()[jc(0x673)]()-C[G])+'ms'])):(F[jc(0x2bc)]===m[jc(0x895)]&&console[jc(0x83b)]?H=console[jc(0x83b)]:F[jc(0x2bc)]===m[jc(0x797)]&&console[jc(0x1a6)]?H=console['error']:F[jc(0x2bc)]===m[jc(0x2dd)]&&console[jc(0x338)]?H=console[jc(0x338)]:F['level']===m[jc(0x529)]&&console['debug']?H=console[jc(0x811)]:F[jc(0x2bc)]===m[jc(0x18d)]&&console[jc(0x75d)]&&(H=console[jc(0x75d)]),B['formatter'](E,F),D(H,E));};},m['useDefaults']=function(B){var jd=iT;m[jd(0x41d)](B&&B[jd(0x8d5)]||m['DEBUG']),m[jd(0x8f0)](m[jd(0x4a2)](B));},m[iT(0x477)]=m[iT(0x24a)],void 0x0===(h=iT(0x9d2)==typeof(g=m)?g[iT(0x6e9)](d,f,d,b):g)||(b[iT(0x87e)]=h);}();},0xc35:(a0,a1,a2)=>{var je=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[je(0x84f)]{constructor(bc=!0x1){var jf=je;super(),this[jf(0x334)]=new a3[(jf(0x7b8))](null,bc,!0x1),this[jf(0x174)]=new a3['Buffer'](null,bc,!0x0),this[jf(0x7c3)]('aVertexPosition',this[jf(0x334)],0x3,!0x1,a4['vK'][jf(0x6d4)])['addAttribute'](jf(0x6fe),this[jf(0x334)],0x2,!0x1,a4['vK'][jf(0x6d4)])[jf(0x7c3)]('aColor',this[jf(0x334)],0x4,!0x0,a4['vK']['UNSIGNED_BYTE'])[jf(0x7c3)](jf(0x34b),this[jf(0x334)],0x1,!0x0,a4['vK'][jf(0x6d4)])['addIndex'](this[jf(0x174)]);}}class ae{constructor(bc,bd=!0x0){var jg=je;ae[jg(0x933)][jg(0x52b)][jg(0x6e9)](this),this['legacy']=bc,bd&&(this[jg(0x99c)]=!0x0),this[jg(0x656)][jg(0x856)]=this;}[je(0x52b)](){var jh=je;this[jh(0x970)]=!0x1;}get['enabled'](){var ji=je;return this[ji(0x970)];}set[je(0x99c)](bc){var jj=je;this[jj(0x970)]=bc;}['clear'](){}}var af,ag;function ah(bc){var jk=je;const bd=this[jk(0x856)],be=this,bf=bc[jk(0x179)],bg=be[jk(0x632)],bh=bd[jk(0x836)]&&bd['affine']>=0x2;be[jk(0x746)]!==be[jk(0x71d)]&&(bh?(bg['a']=be['_cx'],bg['b']=be[jk(0x3ad)],bg['c']=be[jk(0x489)],bg['d']=be[jk(0x418)],bg['tx']=be[jk(0x93f)]['_x'],bg['ty']=be[jk(0x93f)]['_y']):(bg['a']=be['_cx']*be[jk(0x8a2)]['_x'],bg['b']=be[jk(0x3ad)]*be[jk(0x8a2)]['_x'],bg['c']=be[jk(0x489)]*be[jk(0x8a2)]['_y'],bg['d']=be[jk(0x418)]*be[jk(0x8a2)]['_y'],bg['tx']=be['position']['_x']-(be[jk(0x9dc)]['_x']*bg['a']+be[jk(0x9dc)]['_y']*bg['c']),bg['ty']=be[jk(0x93f)]['_y']-(be[jk(0x9dc)]['_x']*bg['b']+be['pivot']['_y']*bg['d'])),be[jk(0x71d)]=be[jk(0x746)],bd[jk(0x4ae)]=-0x1);const bi=bd[jk(0x67e)];if(bd['_currentProjID']!==bi&&(bd['_currentProjID']=bi,bd['updateLocalTransform'](bg),be[jk(0x349)]=-0x1),be[jk(0x349)]!==bf){const bj=bc[jk(0x856)];bj&&!bj[jk(0x237)]?bd[jk(0x39c)][jk(0x3e3)](bj[jk(0x39c)],bd['local']):bd[jk(0x39c)][jk(0x768)](bc[jk(0x755)],bd[jk(0x3ed)]);const bk=be[jk(0x755)];bd[jk(0x39c)][jk(0x1d7)](bk,bd[jk(0x237)],bd['affinePreserveOrientation']),bh&&(bk['a']*=be['scale']['_x'],bk['b']*=be[jk(0x8a2)]['_x'],bk['c']*=be[jk(0x8a2)]['_y'],bk['d']*=be['scale']['_y'],bk['tx']-=be['pivot']['_x']*bk['a']+be[jk(0x9dc)]['_y']*bk['c'],bk['ty']-=be['pivot']['_x']*bk['b']+be['pivot']['_y']*bk['d']),be[jk(0x349)]=bf,be[jk(0x179)]++;}}!function(bc){var jl=je;bc[bc['NONE']=0x0]=jl(0x62b),bc[bc[jl(0x240)]=0x4]=jl(0x240),bc[bc[jl(0x5cd)]=0x5]=jl(0x5cd),bc[bc['ALL']=0x9]='ALL';}(af||(af={})),function(bc){var jm=je;bc[bc['NONE']=0x0]='NONE',bc[bc[jm(0x27e)]=0x1]='FREE',bc[bc[jm(0x5dd)]=0x2]=jm(0x5dd),bc[bc['AXIS_Y']=0x3]=jm(0x51b),bc[bc[jm(0x1f3)]=0x4]=jm(0x1f3),bc[bc[jm(0x2ac)]=0x5]=jm(0x2ac);}(ag||(ag={}));class ai extends ae{constructor(...bc){var jn=je;super(...bc),ai[jn(0x933)][jn(0x52b)]['call'](this),ai['prototype'][jn(0x30c)][jn(0x6e9)](this),ai['prototype'][jn(0x405)][jn(0x6e9)](this),ai[jn(0x933)][jn(0x55e)][jn(0x6e9)](this),ai['prototype'][jn(0x2c2)]['call'](this);}[je(0x5c1)](bc){}['__init'](){var jo=je;this[jo(0x67e)]=0x0;}[je(0x30c)](){var jp=je;this[jp(0x4ae)]=-0x1;}['__init3'](){var jq=je;this['_affine']=ag[jq(0x62b)];}[je(0x55e)](){var jr=je;this[jr(0x939)]=!0x1;}[je(0x2c2)](){var js=je;this[js(0x836)]=!0x0;}set[je(0x9a6)](bc){var jt=je;this[jt(0x237)]!==bc&&(this[jt(0x237)]=bc,this['_currentProjID']=-0x1,this[jt(0x656)][jt(0x71d)]=-0x1);}get[je(0x9a6)](){var ju=je;return this[ju(0x237)];}set['enabled'](bc){var jv=je;bc!==this[jv(0x970)]&&(this[jv(0x970)]=bc,bc?(this[jv(0x656)]['updateTransform']=ah,this['legacy'][jv(0x349)]=-0x1):(this['legacy']['updateTransform']=a6['wx'][jv(0x933)][jv(0x8c7)],this['legacy'][jv(0x349)]=-0x1));}[je(0x2ff)](){var jw=je;this[jw(0x4ae)]=-0x1,this[jw(0x67e)]=0x0;}}class aj extends a3[je(0x22c)]{constructor(...bc){var jx=je;super(...bc),aj[jx(0x933)]['__init'][jx(0x6e9)](this),aj[jx(0x933)][jx(0x30c)][jx(0x6e9)](this);}[je(0x52b)](){var jy=je;this[jy(0x271)]=0x0;}[je(0x5ec)](bc){var jz=je;return this[jz(0x847)];}['syncUniforms'](bc){var jA=je;if(!bc)return;const bd=this[jA(0x371)];for(const be in bc)bd[jA(0x927)][be]=bc[be];}['__init2'](){var jB=je;this[jB(0x847)]={};}[je(0x879)](bc,bd,be){var jC=je;const bf=this,{_bufferedElements:bg,_attributeBuffer:bh,_indexBuffer:bi,vertexSize:bj}=this,bk=a3[jC(0x22c)][jC(0x389)];let bl=this[jC(0xa2b)],bm=this['_aIndex'],bn=this['_iIndex'],bo=bk[bl];bo[jC(0x1d1)]=this[jC(0x988)],bo[jC(0x69e)]=bc;for(let bp=bd;bp<be;++bp){const bq=bg[bp],br=bq['_texture'][jC(0x4dc)],bs=a5['premultiplyBlendMode'][br[jC(0x3ce)]?0x1:0x0][bq[jC(0x8e3)]],bt=this[jC(0x5ec)](bq);bg[bp]=null,bd<bp&&(bo[jC(0x4cb)]!==bs||bo[jC(0x927)]!==bt)&&(bo['size']=bn-bo[jC(0x1d1)],bd=bp,bo=bk[++bl],bo[jC(0x69e)]=bc,bo[jC(0x1d1)]=bn),this[jC(0x6f3)](bq,bh,bi,bm,bn),bm+=bq['vertexData'][jC(0x6db)]/0x2*bj,bn+=bq[jC(0x7b1)][jC(0x6db)],bo['blend']=bs,bo[jC(0x927)]=bt;}bd<be&&(bo[jC(0x824)]=bn-bo[jC(0x1d1)],++bl),bf[jC(0xa2b)]=bl,bf[jC(0x6dc)]=bm,bf[jC(0x988)]=bn;}[je(0x4de)](){var jD=je;const bc=this['_dcIndex'],{gl:bd,state:be,shader:bf}=this[jD(0x538)],bg=a3[jD(0x22c)][jD(0x389)];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[jD(0x323)](bk)),bh!==bp&&(bh=bp,this['syncUniforms'](bp),bf['syncUniformGroup'](this[jD(0x371)][jD(0x9bb)])),this[jD(0x9a5)][jD(0x8e3)]=bo,be[jD(0x6c5)](this[jD(0x9a5)]),bd[jD(0x60a)](bl,bm,bd[jD(0x374)],0x2*bn);}}[je(0x65b)](){var jE=je;if(!this[jE(0x271)])return super[jE(0x65b)](),void this[jE(0x915)](this[jE(0x847)]);const bc=this;bc[jE(0x1b0)]=this[jE(0x271)],this['_shader']=bc[jE(0x456)][jE(0x87d)](this[jE(0x1b0)]),this['syncUniforms'](this['defUniforms']);for(let bd=0x0;bd<bc[jE(0x29e)];bd++)bc[jE(0x60c)][bd]=new this['geometryClass']();this[jE(0x5cf)]();}}a3[je(0x602)][je(0x809)](je(0x78a),class{static[je(0x8c3)](bc){var jF=je;const {vertex:bd,fragment:be,vertexSize:bf,geometryClass:bg}=Object[jF(0x326)]({'vertex':jF(0x19b),'fragment':jF(0x4c4),'geometryClass':ad,'vertexSize':0x7},bc);return class extends a3[jF(0x22c)]{constructor(bh){var jG=jF;super(bh),this[jG(0x456)]=new a3[(jG(0x1d3))](bd,be),this[jG(0x6ca)]=bg,this[jG(0x851)]=bf;}['packInterleavedGeometry'](bh,bi,bj,bk,bl){var jH=jF;const {uint32View:bm,float32View:bn}=bi,bo=bk/this['vertexSize'],bp=bh['uvs'],bq=bh[jH(0x7b1)],br=bh[jH(0x588)],bs=bh['vertexData2d'],bt=bh[jH(0x320)]['baseTexture'][jH(0x5ab)],bu=Math[jH(0x7bc)](bh[jH(0x72f)],0x1),bv=bu<0x1&&bh[jH(0x320)][jH(0x4dc)][jH(0x3ce)]?(0x0,a5[jH(0x90d)])(bh[jH(0x5e1)],bu):bh[jH(0x5e1)]+(0xff*bu<<0x18);if(bs){let bw=0x0;for(let bx=0x0;bx<bs[jH(0x6db)];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[jH(0x6db)];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[jH(0x6db)];bz++)bj[bl++]=bo+bq[bz];}};}}[je(0x8c3)]({}));const ak=[0x1,0x0,0x0,0x0,0x1,0x0,0x0,0x0,0x1];class al{static[je(0x22b)](){var jI=je;this[jI(0x8cd)]=new al();}static['__initStatic2'](){var jJ=je;this[jJ(0x364)]=new al();}[je(0x52b)](){this['floatArray']=null;}constructor(bc){var jK=je;al[jK(0x933)][jK(0x52b)]['call'](this),this[jK(0x4b9)]=new Float64Array(bc||ak);}get['a'](){var jL=je;return this['mat3'][0x0]/this[jL(0x4b9)][0x8];}set['a'](bc){var jM=je;this[jM(0x4b9)][0x0]=bc*this[jM(0x4b9)][0x8];}get['b'](){var jN=je;return this[jN(0x4b9)][0x1]/this[jN(0x4b9)][0x8];}set['b'](bc){this['mat3'][0x1]=bc*this['mat3'][0x8];}get['c'](){var jO=je;return this[jO(0x4b9)][0x3]/this['mat3'][0x8];}set['c'](bc){var jP=je;this[jP(0x4b9)][0x3]=bc*this[jP(0x4b9)][0x8];}get['d'](){var jQ=je;return this['mat3'][0x4]/this[jQ(0x4b9)][0x8];}set['d'](bc){var jR=je;this[jR(0x4b9)][0x4]=bc*this[jR(0x4b9)][0x8];}get['tx'](){var jS=je;return this['mat3'][0x6]/this[jS(0x4b9)][0x8];}set['tx'](bc){var jT=je;this[jT(0x4b9)][0x6]=bc*this[jT(0x4b9)][0x8];}get['ty'](){var jU=je;return this[jU(0x4b9)][0x7]/this[jU(0x4b9)][0x8];}set['ty'](bc){var jV=je;this[jV(0x4b9)][0x7]=bc*this[jV(0x4b9)][0x8];}[je(0x6c5)](bc,bd,be,bf,bg,bh){const bi=this['mat3'];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;}[je(0x4cf)](bc,bd){var jW=je;this['floatArray']||(this[jW(0x377)]=new Float32Array(0x9));const be=bd||this[jW(0x377)],bf=this[jW(0x4b9)];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;}[je(0x821)](bc,bd){var jX=je;bd=bd||new a6['E9']();const be=this[jX(0x4b9)],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;}['translate'](bc,bd){var jY=je;const be=this[jY(0x4b9)];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;}[je(0x8a2)](bc,bd){var jZ=je;const be=this[jZ(0x4b9)];return be[0x0]*=bc,be[0x1]*=bd,be[0x3]*=bc,be[0x4]*=bd,be[0x6]*=bc,be[0x7]*=bd,this;}[je(0x3bc)](bc,bd,be,bf){const bg=this['mat3'];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];}['applyInverse'](bc,bd){var k0=je;bd=bd||new a6['E9']();const be=this[k0(0x4b9)],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;}[je(0x7d2)](){var k1=je;const bc=this[k1(0x4b9)],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;}[je(0x978)](){var k2=je;const bc=this[k2(0x4b9)];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;}['clone'](){var k3=je;return new al(this[k3(0x4b9)]);}[je(0x219)](bc){var k4=je;const bd=this[k4(0x4b9)],be=bc['mat3'];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;}[je(0x1d7)](bc,bd,be){var k5=je;const bf=this[k5(0x4b9)],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[k5(0x735)](bj)),bd===ag[k5(0x1f3)]?(bj=bj>0x0?0x1:-0x1,bc['a']=bj,bc['b']=0x0,bc['c']=0x0,bc['d']=bj):bd===ag[k5(0x5dd)]?(bj/=Math[k5(0x9a2)](bc['b']*bc['b']+bc['d']*bc['d']),bc['c']=0x0,bc['d']=bj):bd===ag[k5(0x51b)]?(bj/=Math['sqrt'](bc['a']*bc['a']+bc['c']*bc['c']),bc['a']=bj,bc['c']=0x0):bd===ag[k5(0x2ac)]&&(bc['a']=bc['d']*bj,bc['c']=-bc['b']*bj);}return bc;}[je(0x471)](bc){var k6=je;const bd=this[k6(0x4b9)];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;}[je(0x768)](bc,bd){var k7=je;const be=this[k7(0x4b9)],bf=bd[k7(0x4b9)],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;}['setToMultLegacy2'](bc,bd){var k8=je;const be=this[k8(0x4b9)],bf=bc[k8(0x4b9)],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;}['setToMult'](bc,bd){var k9=je;const be=this[k9(0x4b9)],bf=bc['mat3'],bg=bd['mat3'],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;}['prepend'](bc){var ka=je;return bc[ka(0x4b9)]?this[ka(0x3e3)](bc,this):this['setToMultLegacy'](bc,this);}}al[je(0x22b)](),al[je(0x6c1)]();const am=je(0x9ce),an=new al();class ao extends a3[je(0x63c)]{constructor(bc){var kb=je;super(bc),ao[kb(0x933)][kb(0x52b)][kb(0x6e9)](this);const bd={'globals':this[kb(0x538)][kb(0x990)]};this[kb(0x864)]=a3[kb(0x1df)][kb(0x170)](am,kb(0x43c),bd),this[kb(0x7ec)]=a3[kb(0x1df)][kb(0x170)](am,'\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',bd);}[je(0x52b)](){var kc=je;this[kc(0x37a)]=new a3[(kc(0x177))]();}['render'](bc){var kd=je;const bd=this[kd(0x538)],be=this[kd(0x37a)];let bf=be[kd(0x3ac)];bf[0x0]=bf[0x6]=bc[kd(0x76d)]*-bc[kd(0x347)]['x'],bf[0x1]=bf[0x3]=bc[kd(0x442)]*-bc[kd(0x347)]['y'],bf[0x2]=bf[0x4]=bc['_width']*(0x1-bc['anchor']['x']),bf[0x5]=bf[0x7]=bc[kd(0x442)]*(0x1-bc['anchor']['y']),bc[kd(0x56c)]&&(bf=be[kd(0x378)],bf[0x0]=bf[0x6]=-bc['anchor']['x'],bf[0x1]=bf[0x3]=-bc[kd(0x347)]['y'],bf[0x2]=bf[0x4]=0x1-bc[kd(0x347)]['x'],bf[0x5]=bf[0x7]=0x1-bc[kd(0x347)]['y']),be[kd(0x605)]();const bg=bc[kd(0x320)],bh=bg[kd(0x4dc)],bi=bc['tileProj']['world'],bj=bc[kd(0x5e9)];let bk=bh[kd(0x354)]&&bg[kd(0x5ac)][kd(0x4e6)]===bh[kd(0x4e6)]&&bg[kd(0x5ac)][kd(0x4f8)]===bh[kd(0x4f8)];bk&&(bh[kd(0x7ea)][bd[kd(0x522)]]?bk=bh['wrapMode']!==a4['Nt'][kd(0x8f8)]:bh[kd(0x3d6)]===a4['Nt'][kd(0x8f8)]&&(bh[kd(0x3d6)]=a4['Nt']['REPEAT']));const bl=bk?this['simpleShader']:this['shader'];an[kd(0x978)](),an[kd(0x8a2)](bg['width'],bg['height']),an['prepend'](bi),an['scale'](0x1/bc[kd(0x76d)],0x1/bc[kd(0x442)]),an[kd(0x7d2)](),bk?an[kd(0x539)](bj[kd(0x906)]):(bl[kd(0x927)][kd(0x596)]=bj['mapCoord']['toArray'](!0x0),bl[kd(0x927)][kd(0x3f5)]=bj[kd(0x3f5)],bl[kd(0x927)][kd(0x773)]=bj[kd(0x773)]),bl[kd(0x927)][kd(0x6da)]=an[kd(0x4cf)](!0x0),bl[kd(0x927)][kd(0x18e)]=(0x0,a5[kd(0x3ea)])(bc[kd(0x74f)],bc['worldAlpha'],bl[kd(0x927)][kd(0x18e)],bh['premultiplyAlpha']),bl[kd(0x927)][kd(0x2c0)]=bc[kd(0x755)][kd(0x4cf)](!0x0),bl['uniforms'][kd(0x7b2)]=bg,bd[kd(0x864)][kd(0x207)](bl,!0x1),bd[kd(0x476)][kd(0x207)](be,void 0x0),bd['state']['setBlendMode']((0x0,a5[kd(0x1c4)])(bc[kd(0x8e3)],bh['premultiplyAlpha'])),bd[kd(0x476)][kd(0xa10)](a4['lg'][kd(0x4cd)],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 ke=je;super(bc,bd),au[ke(0x933)][ke(0x52b)][ke(0x6e9)](this),au[ke(0x933)][ke(0x30c)][ke(0x6e9)](this),au[ke(0x933)][ke(0x405)][ke(0x6e9)](this),this[ke(0x3ed)]=new al(),this['world']=new al();}[je(0x52b)](){var kf=je;this[kf(0x707)]=new al();}[je(0x30c)](){var kg=je;this['pivot']=new a6['AB'](this[kg(0x496)],this,0x0,0x0);}[je(0x405)](){var kh=je;this[kh(0x808)]=!0x1;}['onChange'](){var ki=je;const bc=this[ki(0x9dc)],bd=this[ki(0x707)][ki(0x4b9)];bd[0x6]=-(bc['_x']*bd[0x0]+bc['_y']*bd[0x3]),bd[0x7]=-(bc['_x']*bd[0x1]+bc['_y']*bd[0x4]),this[ki(0x67e)]++;}['setAxisX'](bc,bd=0x1){var kj=je;const be=bc['x'],bf=bc['y'],bg=Math[kj(0x9a2)](be*be+bf*bf),bh=this[kj(0x707)]['mat3'];bh[0x0]=be/bg,bh[0x1]=bf/bg,bh[0x2]=bd/bg,this[kj(0x496)]();}[je(0x353)](bc,bd=0x1){var kk=je;const be=bc['x'],bf=bc['y'],bg=Math[kk(0x9a2)](be*be+bf*bf),bh=this[kk(0x707)][kk(0x4b9)];bh[0x3]=be/bg,bh[0x4]=bf/bg,bh[0x5]=bd/bg,this[kk(0x496)]();}[je(0x517)](bc,bd){var kl=je;const be=bc[kl(0x5ef)];ar['x']=-bc[kl(0x347)]['x']*be[kl(0x8ab)]['width'],ar['y']=-bc[kl(0x347)]['y']*be[kl(0x8ab)][kl(0x4f8)],ar[kl(0x4e6)]=be[kl(0x8ab)]['width'],ar[kl(0x4f8)]=be['orig'][kl(0x4f8)],this[kl(0x9c2)](ar,bd);}['mapQuad'](bc,bd){var km=je;aq[0x0]['set'](bc['x'],bc['y']),aq[0x1][km(0x6c5)](bc['x']+bc[km(0x4e6)],bc['y']),aq[0x2][km(0x6c5)](bc['x']+bc[km(0x4e6)],bc['y']+bc['height']),aq[0x3][km(0x6c5)](bc['x'],bc['y']+bc['height']);let be=0x1,bf=0x2,bg=0x3;if(0x0===function(bp,bq,br,bs,bt){var kn=km;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[kn(0x735)](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[km(0x9a2)]((bd[0x0]['x']-ap['x'])*(bd[0x0]['x']-ap['x'])+(bd[0x0]['y']-ap['y'])*(bd[0x0]['y']-ap['y'])),bi=Math[km(0x9a2)]((bd[be]['x']-ap['x'])*(bd[be]['x']-ap['x'])+(bd[be]['y']-ap['y'])*(bd[be]['y']-ap['y'])),bj=Math['sqrt']((bd[bf]['x']-ap['x'])*(bd[bf]['x']-ap['x'])+(bd[bf]['y']-ap['y'])*(bd[bf]['y']-ap['y'])),bk=Math[km(0x9a2)]((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[km(0x707)][km(0x4b9)];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[km(0x707)][km(0x7d2)](),bo=as['mat3'],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[km(0x707)][km(0x3e3)](as,this['matrix']),this[km(0x67e)]++;}[je(0x5c1)](bc){var ko=je;0x0!==this['_projID']?this[ko(0x808)]?this[ko(0x3ed)][ko(0x5b3)](this['matrix'],bc):this[ko(0x3ed)][ko(0x768)](bc,this[ko(0x707)]):this[ko(0x3ed)][ko(0x471)](bc);}[je(0x2ff)](){var kp=je;super[kp(0x2ff)](),this[kp(0x707)][kp(0x978)](),this[kp(0x9dc)][kp(0x6c5)](0x0,0x0);}}function av(){var kq=je;return this[kq(0x856)]['affine']?this['transform'][kq(0x755)]:this[kq(0x856)][kq(0x39c)];}class aw extends a7['W2']{constructor(){var kr=je;super(),this[kr(0x856)]=new au(this['transform']);}[je(0x8d2)](bc,bd,be,bf,bg=af[je(0x900)]){var ks=je;return bd&&(bc=bd['toGlobal'](bc,be,bf)),bf||this[ks(0x981)](),bg>=af[ks(0x5cd)]?(bf||this[ks(0x6e8)](),this[ks(0x856)][ks(0x9a6)]?this['transform']['worldTransform'][ks(0x805)](bc,be):this['proj']['world'][ks(0x805)](bc,be)):(this[ks(0x2fe)]?be=this[ks(0x2fe)][ks(0x755)][ks(0x805)](bc,be):(be['x']=bc['x'],be['y']=bc['y']),bg===af['NONE']?be:this[ks(0x241)][ks(0x632)][ks(0x805)](be,be));}get[je(0x755)](){var kt=je;return this[kt(0x856)][kt(0x9a6)]?this['transform'][kt(0x755)]:this['proj'][kt(0x39c)];}}const ax=aw[je(0x933)][je(0x8d2)];class ay extends a9['Kj']{static[je(0x22b)](){var ku=je;this[ku(0x251)]=ku(0x350);}static['__initStatic2'](){var kv=je;this['defaultFragmentShader']=kv(0x23d);}constructor(bc,bd,be,bf){var kw=je;super(bc,bd,be,bf),ay[kw(0x933)][kw(0x52b)][kw(0x6e9)](this),this[kw(0x856)]=new au(this[kw(0x241)]);}[je(0x52b)](){var kx=je;this[kx(0x321)]=null;}[je(0x814)](){var ky=je;if(this[ky(0x856)][ky(0x237)])return this[ky(0x321)]=null,void super[ky(0x814)]();const bc=this['geometry'],bd=bc[ky(0x33f)][0x0]['data'],be=this;if(bc[ky(0x50d)]===be['vertexDirty']&&be['_transformID']===be[ky(0x241)][ky(0x179)])return;be[ky(0x468)]=be[ky(0x241)][ky(0x179)],be[ky(0x588)]['length']!==bd[ky(0x6db)]&&(be[ky(0x588)]=new Float32Array(bd[ky(0x6db)])),this[ky(0x321)]&&this[ky(0x321)][ky(0x6db)]===0x3*bd[ky(0x6db)]/0x2||(this[ky(0x321)]=new Float32Array(0x3*bd[ky(0x6db)]));const bf=this['proj'][ky(0x39c)][ky(0x4b9)],bg=this[ky(0x321)],bh=be[ky(0x588)];for(let bi=0x0;bi<bh[ky(0x6db)]/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[ky(0x67f)]=bc['vertexDirtyId'];}[je(0x715)](bc){var kz=je;const bd=this['shader'];bd['alpha']=this[kz(0x72f)],bd[kz(0x783)]&&bd[kz(0x783)](),bc['batch'][kz(0x64b)](),function(be){var kA=kz;let bf,bg=be[0x0],bh=0x1;for(;bh<be[kA(0x6db)];){const bi=be[bh],bj=be[bh+0x1];if(bh+=0x2,('optionalAccess'===bi||'optionalCall'===bi)&&null==bg)return;kA(0x3f8)===bi||kA(0x854)===bi?(bf=bg,bg=bj(bg)):kA(0x6e9)!==bi&&kA(0x344)!==bi||(bg=bj((...bk)=>bg['call'](bf,...bk)),bf=void 0x0);}return bg;}([bd,'access',be=>be[kz(0x2bf)],kz(0x3f8),be=>be[kz(0x692)],'optionalAccess',be=>be[kz(0x2c0)]])&&(bd[kz(0x927)]['translationMatrix']=this[kz(0x755)]['toArray'](!0x0)),bc[kz(0x864)][kz(0x207)](bd,!0x1),bc[kz(0x9a5)]['set'](this[kz(0x9a5)]),bc['geometry'][kz(0x207)](this[kz(0x476)],bd),bc[kz(0x476)][kz(0xa10)](this[kz(0x992)],this[kz(0x824)],this[kz(0x1d1)],this[kz(0x476)][kz(0x7d5)]);}[je(0x8d2)](bc,bd,be,bf,bg=af[je(0x900)]){var kB=je;return ax[kB(0x6e9)](this,bc,bd,be,bf,bg);}get[je(0x755)](){var kC=je;return this['proj']['affine']?this['transform']['worldTransform']:this['proj'][kC(0x39c)];}}ay[je(0x22b)](),ay[je(0x6c1)]();class az extends ab['j']{constructor(bc){var kD=je;super(bc),az['prototype'][kD(0x52b)][kD(0x6e9)](this),this['proj']=new au(this[kD(0x241)]),this[kD(0x757)]='batch2d';}['__init'](){this['vertexData2d']=null;}[je(0x9d9)](){var kE=je;this['calculateTrimmedVertices'](),this[kE(0x949)][kE(0x184)](this['vertexTrimmedData']);}[je(0x814)](){var kF=je;const bc=this[kF(0x320)];if(this[kF(0x856)]['_affine'])return this[kF(0x321)]=null,void super[kF(0x814)]();this[kF(0x321)]||(this[kF(0x321)]=new Float32Array(0xc));const bd=this[kF(0x241)]['_worldID'],be=bc[kF(0x2fd)];if(this[kF(0x468)]===bd&&this['_textureID']===be)return;this['_textureID']!==be&&(this[kF(0x378)]=bc[kF(0x92c)][kF(0x3fa)]),this[kF(0x468)]=bd,this[kF(0x78c)]=be;const bf=this[kF(0x856)][kF(0x39c)][kF(0x4b9)],bg=this[kF(0x321)],bh=this[kF(0x588)],bi=bc[kF(0x3b7)],bj=bc['orig'],bk=this[kF(0x7c8)];let bl,bm,bn,bo;bi?(bm=bi['x']-bk['_x']*bj[kF(0x4e6)],bl=bm+bi[kF(0x4e6)],bo=bi['y']-bk['_y']*bj[kF(0x4f8)],bn=bo+bi[kF(0x4f8)]):(bm=-bk['_x']*bj['width'],bl=bm+bj['width'],bo=-bk['_y']*bj[kF(0x4f8)],bn=bo+bj['height']),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];}[je(0x238)](){var kG=je;if(this[kG(0x856)][kG(0x237)])return void super[kG(0x238)]();const bc=this[kG(0x241)][kG(0x179)],bd=this['_texture']['_updateID'],be=this;if(be[kG(0x569)]){if(be[kG(0x397)]===bc&&this[kG(0x3c4)]===bd)return;}else be['vertexTrimmedData']=new Float32Array(0x8);be[kG(0x397)]=bc,this[kG(0x3c4)]=bd;const bf=this[kG(0x320)],bg=be[kG(0x569)],bh=bf[kG(0x8ab)],bi=this['tileProj']?this[kG(0x76d)]:bh[kG(0x4e6)],bj=this[kG(0xa13)]?this[kG(0x442)]:bh[kG(0x4f8)],bk=this[kG(0x7c8)],bl=this[kG(0x856)][kG(0x39c)][kG(0x4b9)],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]);}[je(0x8d2)](bc,bd,be,bf,bg=af[je(0x900)]){var kH=je;return ax[kH(0x6e9)](this,bc,bd,be,bf,bg);}get[je(0x755)](){var kI=je;return this[kI(0x856)]['affine']?this[kI(0x241)]['worldTransform']:this[kI(0x856)][kI(0x39c)];}}const aA=new a6['wx']();class aB extends a8['o']{constructor(bc,bd,be){var kJ=je;super(bc,bd,be),this[kJ(0xa13)]=new au(this[kJ(0x6f7)]),this[kJ(0xa13)][kJ(0x808)]=!0x0,this[kJ(0x856)]=new au(this[kJ(0x241)]),this[kJ(0x757)]=kJ(0x9e3),this[kJ(0x56c)]=!0x0;}get[je(0x755)](){var kK=je;return this[kK(0x856)][kK(0x9a6)]?this[kK(0x241)][kK(0x755)]:this[kK(0x856)][kK(0x39c)];}[je(0x8d2)](bc,bd,be,bf,bg=af[je(0x900)]){var kL=je;return ax[kL(0x6e9)](this,bc,bd,be,bf,bg);}[je(0x464)](bc){var kM=je;const bd=this[kM(0x320)];bd&&bd[kM(0x984)]&&(this[kM(0x6f7)][kM(0x8c7)](aA),this[kM(0x5e9)][kM(0x783)](),bc['batch']['setObjectRenderer'](bc[kM(0x26a)][this[kM(0x757)]]),bc[kM(0x26a)][this['pluginName']][kM(0x292)](this));}}function aC(){var kN=je;this[kN(0x856)]||(this[kN(0x856)]=new au(this['transform']),this['toLocal']=aw['prototype'][kN(0x8d2)],Object[kN(0x1d6)](this,kN(0x755),{'get':av,'enumerable':!0x0,'configurable':!0x0}));}a7['W2'][je(0x933)]['convertTo2d']=aC,ab['j'][je(0x933)][je(0x4d3)]=function(){var kO=je;this[kO(0x856)]||(this[kO(0x814)]=az[kO(0x933)][kO(0x814)],this[kO(0x238)]=az[kO(0x933)][kO(0x238)],this[kO(0x9d9)]=az['prototype']['_calculateBounds'],this[kO(0x757)]=kO(0x78a),aC[kO(0x6e9)](this));},a7['W2']['prototype'][je(0x516)]=function(){var kP=je;this[kP(0x4d3)]();for(let bc=0x0;bc<this[kP(0x5ee)][kP(0x6db)];bc++)this[kP(0x5ee)][bc][kP(0x516)]();},aa['AL'][je(0x933)][je(0x4d3)]=aa['IE'][je(0x933)][je(0x4d3)]=function(){var kQ=je;this[kQ(0x856)]||(this[kQ(0x814)]=ay['prototype'][kQ(0x814)],this[kQ(0x715)]=ay[kQ(0x933)][kQ(0x715)],'batch2d'!==this[kQ(0x1b4)][kQ(0x757)]&&(this[kQ(0x1b4)]=new a9['rY'](this[kQ(0x1b4)]['texture'],{'program':a3['Program'][kQ(0x170)](ay[kQ(0x251)],ay[kQ(0x831)]),'pluginName':'batch2d'})),aC[kQ(0x6e9)](this));},a8['o'][je(0x933)][je(0x4d3)]=function(){var kR=je;this[kR(0x856)]||(this[kR(0xa13)]=new au(this['tileTransform']),this[kR(0xa13)][kR(0x808)]=!0x0,this[kR(0x56c)]=!0x0,this['calculateTrimmedVertices']=az['prototype']['calculateTrimmedVertices'],this[kR(0x9d9)]=az[kR(0x933)][kR(0x9d9)],this[kR(0x464)]=aB[kR(0x933)][kR(0x464)],this['pluginName']='tilingSprite2d',aC[kR(0x6e9)](this));};class aD extends ac['xv']{constructor(bc,bd,be){var kS=je;super(bc,bd,be),aD[kS(0x933)]['__init'][kS(0x6e9)](this),this[kS(0x856)]=new au(this['transform']),this[kS(0x757)]='batch2d';}[je(0x52b)](){this['vertexData2d']=null;}get[je(0x755)](){var kT=je;return this[kT(0x856)][kT(0x9a6)]?this[kT(0x241)]['worldTransform']:this[kT(0x856)][kT(0x39c)];}}aD[je(0x933)]['calculateVertices']=az['prototype']['calculateVertices'],aD[je(0x933)]['calculateTrimmedVertices']=az[je(0x933)][je(0x238)],aD['prototype'][je(0x9d9)]=az['prototype'][je(0x9d9)];const aE=new al();class aF extends a3[je(0x80f)]{constructor(bc){var kU=je;super(kU(0x2c6),'\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'),aF['prototype'][kU(0x52b)][kU(0x6e9)](this),bc['renderable']=!0x1,this['maskSprite']=bc;}['__init'](){var kV=je;this[kV(0x4e0)]=new al();}[je(0x821)](bc,bd,be,bf){var kW=je;const bg=this[kW(0x42e)],bh=this['maskSprite'][kW(0x5ef)];bh['valid']&&(bh[kW(0x5e9)]||(bh[kW(0x5e9)]=new a3['TextureMatrix'](bh,0x0)),bh['uvMatrix'][kW(0x783)](),this[kW(0x927)][kW(0x437)]=bh['baseTexture'][kW(0x3ce)]?0x0:0x1,this[kW(0x927)]['mask']=bg['texture'],this[kW(0x927)][kW(0x32b)]=aF[kW(0x5d6)](bd,this[kW(0x4e0)],bg)[kW(0x539)](bh[kW(0x5e9)][kW(0x906)]),this[kW(0x927)][kW(0x763)]=bg[kW(0x72f)],this[kW(0x927)][kW(0x304)]=bh['uvMatrix']['uClampFrame'],bc[kW(0x58e)](this,bd,be,bf));}static[je(0x5d6)](bc,bd,be){var kX=je;const bf=be[kX(0x856)],bg=bc[kX(0x7f0)],bh=bf&&!bf[kX(0x237)]?bf[kX(0x39c)][kX(0x219)](aE):aE[kX(0x471)](be['transform'][kX(0x755)]),bi=be[kX(0x5ef)][kX(0x8ab)];return bd[kX(0x6c5)](bc[kX(0x4e6)],0x0,0x0,bc[kX(0x4f8)],bg['x'],bg['y']),bh[kX(0x7d2)](),bd[kX(0x3e3)](bh,bd),bd[kX(0x3bc)](0x1/bi[kX(0x4e6)],0x1/bi[kX(0x4f8)],be[kX(0x347)]['x'],be[kX(0x347)]['y']),bd;}}a3[je(0x518)][je(0x933)][je(0x9b2)]=function(bc){var kY=je;const {maskObject:bd}=bc,be=bc[kY(0x91f)];let bf=this[kY(0x5ca)][this['alphaMaskIndex']];bf||(bf=this[kY(0x5ca)][this['alphaMaskIndex']]=[new aF(bd)]),bf[0x0][kY(0xa23)]=this[kY(0x538)][kY(0xa23)],bf[0x0][kY(0x42e)]=bd;const bg=be[kY(0x75b)];be[kY(0x75b)]=bd[kY(0x7f1)](!0x0),this[kY(0x538)]['filter'][kY(0x607)](be,bf),be['filterArea']=bg,this[kY(0x383)]++;},a3[je(0x602)][je(0x809)](je(0x9e3),ao);class aG extends a6['E9']{constructor(bc,bd,be){super(bc,bd),this['z']=be;}[je(0x6c5)](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;}[je(0x471)](bc){var kZ=je;return this[kZ(0x6c5)](bc['x'],bc['y'],bc['z']||0x0),this;}[je(0x1d7)](bc){return bc['set'](this['x'],this['y'],this['z']),bc;}}class aH extends a6['AB']{constructor(...bc){var l0=je;super(...bc),aH[l0(0x933)][l0(0x52b)][l0(0x6e9)](this);}[je(0x52b)](){this['_z']=0x0;}get['z'](){return this['_z'];}set['z'](bc){var l1=je;this['_z']!==bc&&(this['_z']=bc,this['cb'][l1(0x6e9)](this[l1(0x541)]));}['set'](bc,bd,be){var l2=je;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'][l2(0x6e9)](this[l2(0x541)])),this;}[je(0x471)](bc){var l3=je;return this[l3(0x6c5)](bc['x'],bc['y'],bc['z']||0x0),this;}[je(0x1d7)](bc){var l4=je;return bc[l4(0x6c5)](this['_x'],this['_y'],this['_z']),bc;}}class aI{constructor(bc,bd,be){var l5=je;aI['prototype'][l5(0x52b)][l5(0x6e9)](this),aI[l5(0x933)][l5(0x30c)][l5(0x6e9)](this),aI[l5(0x933)][l5(0x405)][l5(0x6e9)](this),this['_x']=bc||0x0,this['_y']=bd||0x0,this['_z']=be||0x0,this[l5(0x505)]=new Float64Array(0x4),this[l5(0x505)][0x3]=0x1,this['update']();}['__init'](){var l6=je;this[l6(0x840)]=-0x1;}[je(0x30c)](){var l7=je;this[l7(0x5dc)]=0x0;}[je(0x405)](){this['_sign']=0x1;}get['x'](){return this['_x'];}set['x'](bc){var l8=je;this['_x']!==bc&&(this['_x']=bc,this[l8(0x5dc)]++);}get['y'](){return this['_y'];}set['y'](bc){var l9=je;this['_y']!==bc&&(this['_y']=bc,this[l9(0x5dc)]++);}get['z'](){return this['_z'];}set['z'](bc){this['_z']!==bc&&(this['_z']=bc,this['_quatDirtyId']++);}get[je(0x3c5)](){return this['_x'];}set[je(0x3c5)](bc){var la=je;this['_x']!==bc&&(this['_x']=bc,this[la(0x5dc)]++);}get[je(0x291)](){return this['_y'];}set[je(0x291)](bc){var lb=je;this['_y']!==bc&&(this['_y']=bc,this[lb(0x5dc)]++);}get[je(0x56b)](){return this['_z'];}set[je(0x56b)](bc){var lc=je;this['_z']!==bc&&(this['_z']=bc,this[lc(0x5dc)]++);}['set'](bc,bd,be){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['_quatDirtyId']++);}[je(0x471)](bc){var ld=je;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[ld(0x5dc)]++),this;}[je(0x1d7)](bc){var le=je;return bc[le(0x6c5)](this['_x'],this['_y'],this['_z']),bc;}[je(0x578)](bc){return this['_x']===bc['x']&&this['_y']===bc['y']&&this['_z']===bc['z'];}['clone'](){return new aI(this['_x'],this['_y'],this['_z']);}[je(0x783)](){var lf=je;if(this[lf(0x840)]===this[lf(0x5dc)])return!0x1;this[lf(0x840)]=this[lf(0x5dc)];const bc=Math[lf(0x660)](this['_x']/0x2),bd=Math[lf(0x660)](this['_y']/0x2),be=Math[lf(0x660)](this['_z']/0x2),bf=this[lf(0x439)],bg=bf*Math[lf(0x5bd)](this['_x']/0x2),bh=bf*Math['sin'](this['_y']/0x2),bi=bf*Math[lf(0x5bd)](this['_z']/0x2),bj=this['quaternion'];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 lg=je;this['cb']=bc,this['scope']=bd,aJ[lg(0x933)]['__init'][lg(0x6e9)](this),aJ['prototype']['__init2'][lg(0x6e9)](this),aJ['prototype'][lg(0x405)]['call'](this),this['_x']=be||0x0,this['_y']=bf||0x0,this['_z']=bg||0x0,this['quaternion']=new Float64Array(0x4),this['quaternion'][0x3]=0x1,this[lg(0x783)]();}['__init'](){var lh=je;this[lh(0x840)]=-0x1;}[je(0x30c)](){this['_quatDirtyId']=0x0;}[je(0x405)](){var li=je;this[li(0x439)]=0x1;}get['x'](){return this['_x'];}set['x'](bc){var lj=je;this['_x']!==bc&&(this['_x']=bc,this[lj(0x5dc)]++,this['cb'][lj(0x6e9)](this[lj(0x541)]));}get['y'](){return this['_y'];}set['y'](bc){var lk=je;this['_y']!==bc&&(this['_y']=bc,this[lk(0x5dc)]++,this['cb']['call'](this[lk(0x541)]));}get['z'](){return this['_z'];}set['z'](bc){var ll=je;this['_z']!==bc&&(this['_z']=bc,this[ll(0x5dc)]++,this['cb'][ll(0x6e9)](this[ll(0x541)]));}get[je(0x3c5)](){return this['_x'];}set['pitch'](bc){var lm=je;this['_x']!==bc&&(this['_x']=bc,this['_quatDirtyId']++,this['cb'][lm(0x6e9)](this[lm(0x541)]));}get[je(0x291)](){return this['_y'];}set[je(0x291)](bc){var ln=je;this['_y']!==bc&&(this['_y']=bc,this[ln(0x5dc)]++,this['cb'][ln(0x6e9)](this[ln(0x541)]));}get['roll'](){return this['_z'];}set[je(0x56b)](bc){var lo=je;this['_z']!==bc&&(this['_z']=bc,this[lo(0x5dc)]++,this['cb'][lo(0x6e9)](this[lo(0x541)]));}['set'](bc,bd,be){var lp=je;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[lp(0x5dc)]++,this['cb']['call'](this[lp(0x541)])),this;}[je(0x471)](bc){var lq=je;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[lq(0x5dc)]++,this['cb'][lq(0x6e9)](this[lq(0x541)])),this;}[je(0x1d7)](bc){return bc['set'](this['_x'],this['_y'],this['_z']),bc;}['equals'](bc){return this['_x']===bc['x']&&this['_y']===bc['y']&&this['_z']===bc['z'];}[je(0x71a)](){return new aI(this['_x'],this['_y'],this['_z']);}[je(0x783)](){var lr=je;if(this[lr(0x840)]===this[lr(0x5dc)])return!0x1;this['_quatUpdateId']=this[lr(0x5dc)];const bc=Math[lr(0x660)](this['_x']/0x2),bd=Math[lr(0x660)](this['_y']/0x2),be=Math['cos'](this['_z']/0x2),bf=this[lr(0x439)],bg=bf*Math[lr(0x5bd)](this['_x']/0x2),bh=bf*Math[lr(0x5bd)](this['_y']/0x2),bi=bf*Math[lr(0x5bd)](this['_z']/0x2),bj=this['quaternion'];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[je(0x22b)](){var ls=je;this[ls(0x8cd)]=new aL();}static[je(0x6c1)](){this['TEMP_MATRIX']=new aL();}[je(0x52b)](){this['floatArray']=null;}['__init2'](){var lt=je;this[lt(0x95d)]=0x0;}[je(0x405)](){this['_updateId']=-0x1;}[je(0x55e)](){var lu=je;this[lu(0x572)]=null;}[je(0x2c2)](){var lv=je;this[lv(0x3f2)]=!0x1;}constructor(bc){var lw=je;aL[lw(0x933)]['__init'][lw(0x6e9)](this),aL[lw(0x933)][lw(0x30c)]['call'](this),aL[lw(0x933)][lw(0x405)]['call'](this),aL[lw(0x933)][lw(0x55e)][lw(0x6e9)](this),aL[lw(0x933)][lw(0x2c2)][lw(0x6e9)](this),this[lw(0x3d3)]=new Float64Array(bc||aK);}get['a'](){var lx=je;return this[lx(0x3d3)][0x0]/this[lx(0x3d3)][0xf];}set['a'](bc){var ly=je;this[ly(0x3d3)][0x0]=bc*this[ly(0x3d3)][0xf];}get['b'](){var lz=je;return this[lz(0x3d3)][0x1]/this[lz(0x3d3)][0xf];}set['b'](bc){var lA=je;this[lA(0x3d3)][0x1]=bc*this[lA(0x3d3)][0xf];}get['c'](){var lB=je;return this[lB(0x3d3)][0x4]/this[lB(0x3d3)][0xf];}set['c'](bc){var lC=je;this['mat4'][0x4]=bc*this[lC(0x3d3)][0xf];}get['d'](){var lD=je;return this[lD(0x3d3)][0x5]/this[lD(0x3d3)][0xf];}set['d'](bc){var lE=je;this[lE(0x3d3)][0x5]=bc*this[lE(0x3d3)][0xf];}get['tx'](){var lF=je;return this['mat4'][0xc]/this[lF(0x3d3)][0xf];}set['tx'](bc){var lG=je;this[lG(0x3d3)][0xc]=bc*this[lG(0x3d3)][0xf];}get['ty'](){var lH=je;return this[lH(0x3d3)][0xd]/this[lH(0x3d3)][0xf];}set['ty'](bc){var lI=je;this[lI(0x3d3)][0xd]=bc*this['mat4'][0xf];}[je(0x6c5)](bc,bd,be,bf,bg,bh){const bi=this['mat4'];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 lJ=je;this[lJ(0x377)]||(this[lJ(0x377)]=new Float32Array(0x9));const be=bd||this[lJ(0x377)],bf=this[lJ(0x3d3)];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;}[je(0x714)](bc,bd,be){var lK=je;const bf=this[lK(0x3d3)];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;}[je(0x48d)](bc,bd,be,bf,bg,bh,bi){var lL=je;const bj=this[lL(0x3d3)],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;}['apply'](bc,bd){var lM=je;bd=bd||new aG();const be=this[lM(0x3d3)],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;}[je(0x7c6)](bc,bd,be){var lN=je;const bf=this[lN(0x3d3)];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;}['scale'](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;}['scaleAndTranslate'](bc,bd,be,bf,bg,bh){var lO=je;const bi=this[lO(0x3d3)];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];}[je(0x805)](bc,bd){var lP=je;bd=bd||new aG(),this['_mat4inv']||(this[lP(0x572)]=new Float64Array(0x10));const be=this[lP(0x572)],bf=this[lP(0x3d3)],bg=bc['x'],bh=bc['y'];let bi=bc['z']||0x0;this[lP(0x3f2)]&&this[lP(0x8eb)]===this[lP(0x95d)]||(this['_updateId']=this[lP(0x95d)],aL[lP(0x961)](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['abs'](bm-bq)<1e-10&&bd['set'](NaN,NaN,0x0);const br=(0x0-bm)/(bq-bm);return bd['set']((bo-bk)*br+bk,(bp-bl)*br+bl,0x0),bd;}[je(0x7d2)](){var lQ=je;return aL[lQ(0x961)](this[lQ(0x3d3)],this['mat4']),this;}[je(0x845)](bc){var lR=je;this[lR(0x572)]||(this['_mat4inv']=new Float64Array(0x10));const bd=this['_mat4inv'],be=this[lR(0x3d3)];this['cacheInverse']&&this[lR(0x8eb)]===this[lR(0x95d)]||(this[lR(0x8eb)]=this['_dirtyId'],aL['glMatrixMat4Invert'](bd,be)),bc[lR(0x3d3)][lR(0x6c5)](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;}[je(0x71a)](){var lS=je;return new aL(this[lS(0x3d3)]);}['copyTo3d'](bc){var lT=je;const bd=this[lT(0x3d3)],be=bc[lT(0x3d3)];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;}[je(0x390)](bc){var lU=je;const bd=this[lU(0x3d3)],be=bc['mat3'];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;}['copyTo2dOr3d'](bc){var lV=je;return bc instanceof al?this[lV(0x390)](bc):this[lV(0x5e2)](bc);}[je(0x1d7)](bc,bd,be){var lW=je;const bf=this['mat4'],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[lW(0x735)](bj)),bd===ag[lW(0x1f3)]?(bj=bj>0x0?0x1:-0x1,bc['a']=bj,bc['b']=0x0,bc['c']=0x0,bc['d']=bj):bd===ag[lW(0x5dd)]?(bj/=Math[lW(0x9a2)](bc['b']*bc['b']+bc['d']*bc['d']),bc['c']=0x0,bc['d']=bj):bd===ag[lW(0x51b)]&&(bj/=Math['sqrt'](bc['a']*bc['a']+bc['c']*bc['c']),bc['a']=bj,bc['c']=0x0);}return bc;}[je(0x471)](bc){var lX=je;const bd=this[lX(0x3d3)];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['_dirtyId']++,this;}['setToMultLegacy'](bc,bd){var lY=je;const be=this[lY(0x3d3)],bf=bd[lY(0x3d3)],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[lY(0x95d)]++,this;}[je(0x5b3)](bc,bd){var lZ=je;const be=this['mat4'],bf=bc[lZ(0x3d3)],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[lZ(0x95d)]++,this;}[je(0x3e3)](bc,bd){var m0=je;return aL['glMatrixMat4Multiply'](this[m0(0x3d3)],bc['mat4'],bd[m0(0x3d3)]),this[m0(0x95d)]++,this;}['prepend'](bc){var m1=je;bc['mat4']?this[m1(0x3e3)](bc,this):this[m1(0x768)](bc,this);}static[je(0x961)](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[je(0x45c)](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[je(0x22b)](),aL['__initStatic2']();const aM=new aL();class aN extends ai{constructor(bc,bd){var m2=je;super(bc,bd),aN[m2(0x933)][m2(0x52b)][m2(0x6e9)](this),aN['prototype'][m2(0x30c)][m2(0x6e9)](this),aN[m2(0x933)][m2(0x405)][m2(0x6e9)](this),aN[m2(0x933)]['__init4'][m2(0x6e9)](this),aN[m2(0x933)][m2(0x2c2)]['call'](this),aN[m2(0x933)][m2(0x86a)][m2(0x6e9)](this),this[m2(0x3ed)]=new aL(),this[m2(0x39c)]=new aL(),this['local'][m2(0x3f2)]=!0x0,this[m2(0x39c)][m2(0x3f2)]=!0x0,this[m2(0x93f)]['_z']=0x0,this['scale']['_z']=0x1,this[m2(0x9dc)]['_z']=0x0;}[je(0x52b)](){var m3=je;this[m3(0x5fc)]=null;}[je(0x30c)](){this['_cameraMode']=!0x1;}get[je(0x278)](){return this['_cameraMode'];}set[je(0x278)](bc){var m4=je;this['_cameraMode']!==bc&&(this[m4(0x857)]=bc,this[m4(0x4a0)][m4(0x439)]=this[m4(0x857)]?-0x1:0x1,this[m4(0x4a0)]['_quatDirtyId']++,bc&&(this[m4(0x5fc)]=new aL()));}['__init3'](){var m5=je;this[m5(0x93f)]=new aH(this[m5(0x496)],this,0x0,0x0);}[je(0x55e)](){var m6=je;this[m6(0x8a2)]=new aH(this[m6(0x496)],this,0x1,0x1);}[je(0x2c2)](){this['euler']=new aJ(this['onChange'],this,0x0,0x0,0x0);}[je(0x86a)](){var m7=je;this[m7(0x9dc)]=new aH(this[m7(0x496)],this,0x0,0x0);}[je(0x496)](){var m8=je;this[m8(0x67e)]++;}[je(0x2ff)](){var m9=je;this['cameraMatrix']&&this[m9(0x5fc)][m9(0x978)](),this['position'][m9(0x6c5)](0x0,0x0,0x0),this[m9(0x8a2)]['set'](0x1,0x1,0x1),this[m9(0x4a0)][m9(0x6c5)](0x0,0x0,0x0),this[m9(0x9dc)]['set'](0x0,0x0,0x0),super[m9(0x2ff)]();}['updateLocalTransform'](bc){var ma=je;if(0x0===this['_projID'])return void this[ma(0x3ed)][ma(0x471)](bc);const bd=this[ma(0x3ed)],be=this[ma(0x4a0)],bf=this[ma(0x93f)],bg=this[ma(0x8a2)],bh=this['pivot'];if(be[ma(0x783)](),!this[ma(0x278)])return bd['setToRotationTranslationScale'](be[ma(0x505)],bf['_x'],bf['_y'],bf['_z'],bg['_x'],bg['_y'],bg['_z']),bd['translate'](-bh['_x'],-bh['_y'],-bh['_z']),void bd[ma(0x768)](bc,bd);bd['setToMultLegacy'](bc,this[ma(0x5fc)]),bd[ma(0x7c6)](bh['_x'],bh['_y'],bh['_z']),bd['scale'](0x1/bg['_x'],0x1/bg['_y'],0x1/bg['_z']),aM[ma(0x48d)](be['quaternion'],0x0,0x0,0x0,0x1,0x1,0x1),bd[ma(0x3e3)](bd,aM),bd[ma(0x7c6)](-bf['_x'],-bf['_y'],-bf['_z']),this[ma(0x3ed)]['_dirtyId']++;}}class aO extends a7['W2']{constructor(){var mb=je;super(),this[mb(0x856)]=new aN(this[mb(0x241)]);}[je(0x685)](bc=!0x1){var mc=je;bc&&(this['_recursivePostUpdateTransform'](),this[mc(0x6e8)]());const bd=this[mc(0x856)][mc(0x39c)][mc(0x3d3)],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;}[je(0x2b0)](bc=!0x1){var md=je;bc&&(this[md(0x981)](),this['displayObjectUpdateTransform']());const bd=this[md(0x856)]['world'][md(0x3d3)];return bd[0xe]/bd[0xf];}[je(0x8d2)](bc,bd,be,bf,bg=af[je(0x900)]){var me=je;return bd&&(bc=bd[me(0x8d0)](bc,be,bf)),bf||this['_recursivePostUpdateTransform'](),bg===af[me(0x900)]?(bf||this[me(0x6e8)](),this[me(0x856)][me(0x9a6)]?this[me(0x241)][me(0x755)][me(0x805)](bc,be):this[me(0x856)][me(0x39c)][me(0x805)](bc,be)):(this[me(0x2fe)]?be=this['parent'][me(0x755)][me(0x805)](bc,be):(be['x']=bc['x'],be['y']=bc['y'],be['z']=bc['z']),bg===af[me(0x62b)]||(be=this[me(0x241)][me(0x632)][me(0x805)](be,be),bg===af['PROJ']&&this[me(0x856)]['cameraMode']&&(be=this['proj'][me(0x5fc)][me(0x805)](be,be))),be);}get[je(0x755)](){var mf=je;return this[mf(0x856)][mf(0x9a6)]?this[mf(0x241)][mf(0x755)]:this[mf(0x856)][mf(0x39c)];}get['position3d'](){var mg=je;return this[mg(0x856)][mg(0x93f)];}set[je(0x8af)](bc){var mh=je;this[mh(0x856)][mh(0x93f)][mh(0x471)](bc);}get[je(0x329)](){var mi=je;return this[mi(0x856)][mi(0x8a2)];}set[je(0x329)](bc){var mj=je;this['proj']['scale'][mj(0x471)](bc);}get[je(0x4a0)](){var mk=je;return this['proj'][mk(0x4a0)];}set[je(0x4a0)](bc){var ml=je;this[ml(0x856)]['euler'][ml(0x471)](bc);}get[je(0x841)](){var mm=je;return this[mm(0x856)]['pivot'];}set[je(0x841)](bc){var mn=je;this[mn(0x856)][mn(0x9dc)][mn(0x471)](bc);}}const aP=aO[je(0x933)][je(0x8d2)],aQ=aO['prototype'][je(0x2b0)],aR=aO[je(0x933)]['isFrontFace'];class aS extends aO{constructor(){var mo=je;super(),aS[mo(0x933)][mo(0x52b)][mo(0x6e9)](this),aS['prototype']['__init2'][mo(0x6e9)](this),aS[mo(0x933)][mo(0x405)][mo(0x6e9)](this),aS[mo(0x933)]['__init4'][mo(0x6e9)](this),this[mo(0x856)]['cameraMode']=!0x0,this[mo(0x2f9)](0x190,0xa,0x2710,!0x1);}[je(0x52b)](){var mp=je;this[mp(0x88b)]=0x0;}[je(0x30c)](){var mq=je;this[mq(0x8be)]=0x0;}[je(0x405)](){var mr=je;this[mr(0x594)]=0x0;}['__init4'](){var ms=je;this[ms(0x6d3)]=!0x1;}get[je(0x1c7)](){var mt=je;return this[mt(0x88b)];}get['near'](){var mu=je;return this[mu(0x8be)];}get[je(0x712)](){var mv=je;return this[mv(0x594)];}get[je(0x9ca)](){var mw=je;return this[mw(0x6d3)];}['setPlanes'](bc,bd=0xa,be=0x2710,bf=!0x1){var mx=je;this['_focus']=bc,this[mx(0x8be)]=bd,this[mx(0x88b)]=be,this[mx(0x6d3)]=bf;const bg=this[mx(0x856)],bh=bg[mx(0x5fc)][mx(0x3d3)];bg['_projID']++,bh[0xa]=0x1/(be-bd),bh[0xe]=(bc-bd)/(be-bd),this[mx(0x6d3)]?bh[0xb]=0x0:bh[0xb]=0x1/bc;}}class aT extends a9['Kj']{constructor(bc,bd,be,bf){var my=je;super(bc,bd,be,bf),aT[my(0x933)][my(0x52b)][my(0x6e9)](this),this[my(0x856)]=new aN(this['transform']);}[je(0x52b)](){var mz=je;this[mz(0x321)]=null;}['calculateVertices'](){var mA=je;if(this[mA(0x856)][mA(0x237)])return this['vertexData2d']=null,void super[mA(0x814)]();const bc=this['geometry'],bd=bc['buffers'][0x0][mA(0x53b)],be=this;if(bc['vertexDirtyId']===be[mA(0x67f)]&&be[mA(0x468)]===be['transform'][mA(0x179)])return;be['_transformID']=be[mA(0x241)][mA(0x179)],be[mA(0x588)][mA(0x6db)]!==bd['length']&&(be[mA(0x588)]=new Float32Array(bd[mA(0x6db)])),this[mA(0x321)]&&this[mA(0x321)]['length']===0x3*bd[mA(0x6db)]/0x2||(this['vertexData2d']=new Float32Array(0x3*bd[mA(0x6db)]));const bf=this[mA(0x856)][mA(0x39c)][mA(0x3d3)],bg=this[mA(0x321)],bh=be[mA(0x588)];for(let bi=0x0;bi<bh['length']/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[mA(0x50d)];}get['worldTransform'](){var mB=je;return this[mB(0x856)][mB(0x9a6)]?this[mB(0x241)][mB(0x755)]:this[mB(0x856)]['world'];}[je(0x8d2)](bc,bd,be,bf,bg=af['ALL']){var mC=je;return aP[mC(0x6e9)](this,bc,bd,be,bf,bg);}[je(0x685)](bc){var mD=je;return aR[mD(0x6e9)](this,bc);}[je(0x2b0)](bc){var mE=je;return aQ[mE(0x6e9)](this,bc);}get['position3d'](){var mF=je;return this[mF(0x856)][mF(0x93f)];}set[je(0x8af)](bc){var mG=je;this[mG(0x856)][mG(0x93f)][mG(0x471)](bc);}get[je(0x329)](){var mH=je;return this[mH(0x856)][mH(0x8a2)];}set[je(0x329)](bc){var mI=je;this['proj'][mI(0x8a2)][mI(0x471)](bc);}get[je(0x4a0)](){var mJ=je;return this[mJ(0x856)][mJ(0x4a0)];}set[je(0x4a0)](bc){var mK=je;this[mK(0x856)][mK(0x4a0)][mK(0x471)](bc);}get['pivot3d'](){var mL=je;return this[mL(0x856)][mL(0x9dc)];}set[je(0x841)](bc){var mM=je;this['proj']['pivot'][mM(0x471)](bc);}}aT[je(0x933)][je(0x715)]=ay[je(0x933)][je(0x715)];class aU extends ab['j']{constructor(bc){var mN=je;super(bc),aU[mN(0x933)][mN(0x52b)][mN(0x6e9)](this),aU[mN(0x933)][mN(0x30c)][mN(0x6e9)](this),aU[mN(0x933)][mN(0x405)]['call'](this),this[mN(0x856)]=new aN(this['transform']),this['pluginName']='batch2d';}['__init'](){var mO=je;this[mO(0x321)]=null;}[je(0x30c)](){var mP=je;this[mP(0x63b)]=!0x1;}[je(0x405)](){var mQ=je;this[mQ(0x311)]=!0x1;}[je(0x814)](){var mR=je;const bc=this[mR(0x320)];if(this[mR(0x856)][mR(0x237)])return this[mR(0x321)]=null,void super[mR(0x814)]();this['vertexData2d']||(this[mR(0x321)]=new Float32Array(0xc));const bd=this[mR(0x241)]['_worldID'],be=bc[mR(0x2fd)];if(this[mR(0x468)]===bd&&this[mR(0x78c)]===be)return;this[mR(0x78c)]!==be&&(this[mR(0x378)]=bc[mR(0x92c)][mR(0x3fa)]),this['_transformID']=bd,this[mR(0x78c)]=be;const bf=this[mR(0x856)][mR(0x39c)][mR(0x3d3)],bg=this[mR(0x321)],bh=this[mR(0x588)],bi=bc[mR(0x3b7)],bj=bc[mR(0x8ab)],bk=this[mR(0x7c8)];let bl,bm,bn,bo;bi?(bm=bi['x']-bk['_x']*bj[mR(0x4e6)],bl=bm+bi['width'],bo=bi['y']-bk['_y']*bj[mR(0x4f8)],bn=bo+bi[mR(0x4f8)]):(bm=-bk['_x']*bj[mR(0x4e6)],bl=bm+bj[mR(0x4e6)],bo=-bk['_y']*bj[mR(0x4f8)],bn=bo+bj[mR(0x4f8)]);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[mR(0x63b)]=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 mS=je;if(this['proj'][mS(0x237)])return void super[mS(0x238)]();const bc=this[mS(0x241)]['_worldID'],bd=this[mS(0x320)][mS(0x2fd)],be=this;if(be[mS(0x569)]){if(be[mS(0x397)]===bc&&this['_textureTrimmedID']===bd)return;}else be[mS(0x569)]=new Float32Array(0x8);be['_transformTrimmedID']=bc,this[mS(0x3c4)]=bd;const bf=this['_texture'],bg=be[mS(0x569)],bh=bf[mS(0x8ab)],bi=this[mS(0x7c8)],bj=this['proj'][mS(0x39c)][mS(0x3d3)],bk=-bi['_x']*bh[mS(0x4e6)],bl=bk+bh[mS(0x4e6)],bm=-bi['_y']*bh[mS(0x4f8)],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[mS(0x63b)]=bp;}[je(0x9d9)](){var mT=je;if(this[mT(0x814)](),this[mT(0x63b)])return;const bc=this[mT(0x320)][mT(0x3b7)],bd=this[mT(0x320)][mT(0x8ab)];!bc||bc['width']===bd[mT(0x4e6)]&&bc['height']===bd[mT(0x4f8)]?this['_bounds']['addQuad'](this[mT(0x588)]):(this[mT(0x238)](),this['trimmedCulledByFrustrum']||this[mT(0x949)][mT(0x184)](this[mT(0x569)]));}[je(0x464)](bc){var mU=je;this['calculateVertices'](),this[mU(0x63b)]||(bc['batch']['setObjectRenderer'](bc[mU(0x26a)][this[mU(0x757)]]),bc[mU(0x26a)][this[mU(0x757)]][mU(0x292)](this));}[je(0x9ae)](bc){var mV=je;return!this[mV(0x63b)]&&super[mV(0x9ae)](bc);}get[je(0x755)](){var mW=je;return this[mW(0x856)][mW(0x9a6)]?this['transform'][mW(0x755)]:this[mW(0x856)][mW(0x39c)];}['toLocal'](bc,bd,be,bf,bg=af[je(0x900)]){return aP['call'](this,bc,bd,be,bf,bg);}['isFrontFace'](bc){var mX=je;return aR[mX(0x6e9)](this,bc);}[je(0x2b0)](bc){var mY=je;return aQ[mY(0x6e9)](this,bc);}get[je(0x8af)](){var mZ=je;return this[mZ(0x856)][mZ(0x93f)];}set[je(0x8af)](bc){var n0=je;this[n0(0x856)]['position']['copyFrom'](bc);}get[je(0x329)](){var n1=je;return this[n1(0x856)][n1(0x8a2)];}set[je(0x329)](bc){var n2=je;this['proj'][n2(0x8a2)][n2(0x471)](bc);}get[je(0x4a0)](){var n3=je;return this['proj'][n3(0x4a0)];}set['euler'](bc){var n4=je;this[n4(0x856)][n4(0x4a0)][n4(0x471)](bc);}get[je(0x841)](){var n5=je;return this[n5(0x856)]['pivot'];}set[je(0x841)](bc){var n6=je;this[n6(0x856)][n6(0x9dc)][n6(0x471)](bc);}}const aV={'worldTransform':{'get':function(){var n7=je;return this[n7(0x856)]['affine']?this[n7(0x241)][n7(0x755)]:this[n7(0x856)][n7(0x39c)];},'enumerable':!0x0,'configurable':!0x0},'position3d':{'get'(){var n8=je;return this[n8(0x856)][n8(0x93f)];},'set'(bc){var n9=je;this[n9(0x856)][n9(0x93f)]['copy'](bc);}},'scale3d':{'get'(){var na=je;return this[na(0x856)]['scale'];},'set'(bc){var nb=je;this[nb(0x856)][nb(0x8a2)]['copy'](bc);}},'pivot3d':{'get'(){var nc=je;return this['proj'][nc(0x9dc)];},'set'(bc){var nd=je;this[nd(0x856)][nd(0x9dc)]['copy'](bc);}},'euler':{'get'(){var ne=je;return this[ne(0x856)][ne(0x4a0)];},'set'(bc){var nf=je;this[nf(0x856)][nf(0x4a0)][nf(0x4a6)](bc);}}};function aW(){var ng=je;this[ng(0x856)]||(this[ng(0x856)]=new aN(this[ng(0x241)]),this[ng(0x8d2)]=aO['prototype'][ng(0x8d2)],this[ng(0x685)]=aO[ng(0x933)]['isFrontFace'],this[ng(0x2b0)]=aO[ng(0x933)][ng(0x2b0)],Object[ng(0x428)](this,aV));}a7['W2']['prototype'][je(0x9c3)]=aW,ab['j'][je(0x933)][je(0x9c3)]=function(){var nh=je;this['proj']||(this[nh(0x814)]=aU[nh(0x933)][nh(0x814)],this[nh(0x238)]=aU[nh(0x933)][nh(0x238)],this[nh(0x9d9)]=aU[nh(0x933)][nh(0x9d9)],this['containsPoint']=aU['prototype'][nh(0x9ae)],this[nh(0x757)]=nh(0x78a),aW[nh(0x6e9)](this));},a7['W2'][je(0x933)][je(0x1fa)]=function(){var ni=je;this['convertTo3d']();for(let bc=0x0;bc<this[ni(0x5ee)][ni(0x6db)];bc++)this[ni(0x5ee)][bc][ni(0x1fa)]();},aa['AL'][je(0x933)]['convertTo3d']=aa['IE'][je(0x933)][je(0x9c3)]=function(){var nj=je;this[nj(0x856)]||(this[nj(0x814)]=aT[nj(0x933)][nj(0x814)],this[nj(0x715)]=aT['prototype']['_renderDefault'],nj(0x78a)!==this[nj(0x1b4)][nj(0x757)]&&(this[nj(0x1b4)]=new a9['rY'](this[nj(0x1b4)]['texture'],{'program':a3[nj(0x7eb)][nj(0x170)](ay[nj(0x251)],ay[nj(0x831)]),'pluginName':nj(0x78a)})),aW[nj(0x6e9)](this));};class aX extends ac['xv']{constructor(bc,bd,be){var nk=je;super(bc,bd,be),aX['prototype'][nk(0x52b)][nk(0x6e9)](this),this['proj']=new aN(this[nk(0x241)]),this[nk(0x757)]=nk(0x78a);}[je(0x52b)](){var nl=je;this[nl(0x321)]=null;}get[je(0x755)](){var nm=je;return this[nm(0x856)][nm(0x9a6)]?this[nm(0x241)][nm(0x755)]:this[nm(0x856)][nm(0x39c)];}[je(0x8d2)](bc,bd,be,bf,bg=af[je(0x900)]){var nn=je;return aP[nn(0x6e9)](this,bc,bd,be,bf,bg);}[je(0x685)](bc){var no=je;return aR[no(0x6e9)](this,bc);}[je(0x2b0)](bc){var np=je;return aQ[np(0x6e9)](this,bc);}get['position3d'](){var nq=je;return this[nq(0x856)][nq(0x93f)];}set[je(0x8af)](bc){var nr=je;this[nr(0x856)][nr(0x93f)]['copyFrom'](bc);}get[je(0x329)](){var ns=je;return this[ns(0x856)]['scale'];}set[je(0x329)](bc){var nt=je;this[nt(0x856)][nt(0x8a2)][nt(0x471)](bc);}get[je(0x4a0)](){var nu=je;return this[nu(0x856)][nu(0x4a0)];}set['euler'](bc){var nv=je;this[nv(0x856)][nv(0x4a0)]['copyFrom'](bc);}get[je(0x841)](){var nw=je;return this[nw(0x856)]['pivot'];}set['pivot3d'](bc){var nx=je;this[nx(0x856)]['pivot'][nx(0x471)](bc);}}var aY;aX['prototype'][je(0x814)]=aU[je(0x933)][je(0x814)],aX[je(0x933)][je(0x238)]=aU[je(0x933)]['calculateTrimmedVertices'],aX['prototype'][je(0x9d9)]=aU[je(0x933)][je(0x9d9)],aX[je(0x933)]['containsPoint']=aU[je(0x933)][je(0x9ae)],aX[je(0x933)][je(0x464)]=aU['prototype']['_render'];class aZ extends a3['Geometry']{constructor(bc=!0x1){var ny=je;super(),this[ny(0x334)]=new a3[(ny(0x7b8))](null,bc,!0x1),this['_indexBuffer']=new a3[(ny(0x7b8))](null,bc,!0x0),this[ny(0x7c3)](ny(0x5cb),this[ny(0x334)],0x2,!0x1,a4['vK'][ny(0x6d4)])[ny(0x7c3)](ny(0x2ea),this[ny(0x334)],0x3,!0x1,a4['vK']['FLOAT'])[ny(0x7c3)](ny(0x9f2),this[ny(0x334)],0x3,!0x1,a4['vK'][ny(0x6d4)])[ny(0x7c3)](ny(0x2d3),this[ny(0x334)],0x2,!0x1,a4['vK'][ny(0x6d4)])['addAttribute'](ny(0x29c),this['_buffer'],0x4,!0x1,a4['vK'][ny(0x6d4)])[ny(0x7c3)](ny(0x9bf),this[ny(0x334)],0x4,!0x0,a4['vK'][ny(0x3db)])[ny(0x7c3)]('aTextureId',this['_buffer'],0x1,!0x0,a4['vK'][ny(0x6d4)])['addIndex'](this[ny(0x174)]);}}const b0=[new a6['E9'](),new a6['E9'](),new a6['E9'](),new a6['E9']()],b1=[0x0,0x0,0x0,0x0];class b2{constructor(){var nz=je;b2[nz(0x933)]['__init'][nz(0x6e9)](this),b2[nz(0x933)][nz(0x30c)][nz(0x6e9)](this),b2[nz(0x933)][nz(0x405)]['call'](this),b2[nz(0x933)][nz(0x55e)][nz(0x6e9)](this);}[je(0x52b)](){var nA=je;this[nA(0x45a)]='default';}[je(0x30c)](){var nB=je;this[nB(0x2fd)]=0x0;}[je(0x405)](){var nC=je;this[nC(0x343)]='';}['__init4'](){this['fragmentSrc']='';}[je(0x969)](bc){}['clear'](){}[je(0x262)](bc,bd,be){var nD=je;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][nD(0x6c5)](bf,bg),this[nD(0x821)](b0[0x0],b0[0x0]),b0[0x1]['set'](bh,bg),this['apply'](b0[0x1],b0[0x1]),b0[0x2][nD(0x6c5)](bh,bi),this['apply'](b0[0x2],b0[0x2]),b0[0x3][nD(0x6c5)](bf,bi),this['apply'](b0[0x3],b0[0x3]),be)be[nD(0x821)](b0[0x0],b0[0x0]),be[nD(0x821)](b0[0x1],b0[0x1]),be['apply'](b0[0x2],b0[0x2]),be[nD(0x821)](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[nD(0x655)](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 nE=je;super(...bc),b6[nE(0x933)]['__init'][nE(0x6e9)](this);}['__init'](){var nF=je;this[nF(0x40a)]=new a6['E9']();}[je(0x2ff)](){var nG=je;this[nG(0x40a)][nG(0x6c5)](0x0,0x0);}[je(0x821)](bc,bd){var nH=je;bd=bd||new a6['E9']();const be=this[nH(0x40a)],bf=bc['x']*bc['y'];return bd['x']=bc['x']+be['x']*bf,bd['y']=bc['y']+be['y']*bf,bd;}[je(0x805)](bc,bd){var nI=je;bd=bd||new a6['E9']();const be=bc['x'],bf=bc['y'],bg=this[nI(0x40a)]['x'],bh=this[nI(0x40a)]['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[nI(0x6c5)](NaN,NaN),bd;bd['x']=bh>0x0?-bi+Math['sqrt'](bj):-bi-Math['sqrt'](bj),bd['y']=(be/bd['x']-0x1)/bg;}}return bd;}['mapSprite'](bc,bd,be){var nJ=je;const bf=bc[nJ(0x5ef)];return b4['x']=-bc[nJ(0x347)]['x']*bf['orig'][nJ(0x4e6)],b4['y']=-bc['anchor']['y']*bf[nJ(0x8ab)][nJ(0x4f8)],b4[nJ(0x4e6)]=bf[nJ(0x8ab)][nJ(0x4e6)],b4[nJ(0x4f8)]=bf['orig'][nJ(0x4f8)],this[nJ(0x9c2)](b4,bd,be||bc[nJ(0x241)]);}[je(0x9c2)](bc,bd,be){var nK=je;const bf=-bc['x']/bc[nK(0x4e6)],bg=-bc['y']/bc[nK(0x4f8)],bh=(0x1-bc['x'])/bc[nK(0x4e6)],bi=(0x1-bc['y'])/bc[nK(0x4f8)],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['set'](bx,by),bz[nK(0x805)](b5,b5),this[nK(0x40a)][nK(0x6c5)](b5['x']-0x1,b5['y']-0x1),be[nK(0x308)](bz),this;}[je(0x969)](bc){var nL=je;bc[nL(0x40a)]=bc[nL(0x40a)]||new Float32Array([0x0,0x0,0x0,0x0]);const bd=Math['abs'](this[nL(0x40a)]['x']),be=Math[nL(0x735)](this[nL(0x40a)]['y']);bc[nL(0x40a)][0x0]=0x2710*bd<=be?0x0:this[nL(0x40a)]['x'],bc[nL(0x40a)][0x1]=0x2710*be<=bd?0x0:this[nL(0x40a)]['y'],bc[nL(0x40a)][0x2]=0x1/bc[nL(0x40a)][0x0],bc['distortion'][0x3]=0x1/bc[nL(0x40a)][0x1];}}const b7=a6['wx']['prototype'][je(0x8c7)];function b8(bc){var nM=je;const bd=this[nM(0x856)],be=bc[nM(0x856)],bf=this;return be?be[nM(0x7f7)]?(bd[nM(0x727)]=be,this['updateLocalTransform'](),this[nM(0x632)][nM(0x1d7)](this[nM(0x755)]),void(bf['_parentID']<0x0&&++bf[nM(0x179)])):(b7[nM(0x6e9)](this,bc),void(bd[nM(0x727)]=be[nM(0x727)])):(b7[nM(0x6e9)](this,bc),void(bd[nM(0x727)]=null));}class b9 extends ae{constructor(...bc){var nN=je;super(...bc),b9[nN(0x933)]['__init'][nN(0x6e9)](this),b9[nN(0x933)]['__init2'][nN(0x6e9)](this),b9['prototype'][nN(0x405)][nN(0x6e9)](this),b9[nN(0x933)][nN(0x55e)]['call'](this),b9[nN(0x933)]['__init5'][nN(0x6e9)](this);}['__init'](){var nO=je;this[nO(0x7f7)]=null;}['__init2'](){var nP=je;this[nP(0x727)]=null;}set[je(0x99c)](bc){var nQ=je;bc!==this[nQ(0x970)]&&(this[nQ(0x970)]=bc,bc?(this['legacy'][nQ(0x8c7)]=b8,this[nQ(0x656)]['_parentID']=-0x1):(this['legacy'][nQ(0x8c7)]=a6['wx'][nQ(0x933)]['updateTransform'],this['legacy']['_parentID']=-0x1));}get[je(0x185)](){return this['_surface'];}set[je(0x185)](bc){var nR=je;this['_surface']!==bc&&(this[nR(0x7f7)]=bc||null,this['legacy']['_parentID']=-0x1);}[je(0x639)](bc,bd){var nS=je;return null!==this[nS(0x727)]?(bd=this[nS(0x656)][nS(0x755)][nS(0x821)](bc,bd),this['_activeProjection'][nS(0x185)][nS(0x821)](bd,bd)):null!==this[nS(0x7f7)]?this[nS(0x185)][nS(0x821)](bc,bd):this[nS(0x656)][nS(0x755)]['apply'](bc,bd);}[je(0x821)](bc,bd){var nT=je;return null!==this['_activeProjection']?(bd=this[nT(0x656)]['worldTransform'][nT(0x821)](bc,bd),this[nT(0x727)]['surface']['apply'](bd,bd),this[nT(0x727)]['legacy'][nT(0x755)]['apply'](bd,bd)):null!==this[nT(0x7f7)]?(bd=this[nT(0x185)][nT(0x821)](bc,bd),this['legacy'][nT(0x755)]['apply'](bd,bd)):this['legacy'][nT(0x755)]['apply'](bc,bd);}[je(0x805)](bc,bd){var nU=je;return null!==this['_activeProjection']?(bd=this['_activeProjection'][nU(0x656)][nU(0x755)][nU(0x805)](bc,bd),this[nU(0x727)][nU(0x7f7)][nU(0x805)](bd,bd),this[nU(0x656)][nU(0x755)][nU(0x805)](bd,bd)):null!==this[nU(0x7f7)]?(bd=this[nU(0x656)]['worldTransform']['applyInverse'](bc,bd),this[nU(0x7f7)][nU(0x805)](bd,bd)):this['legacy']['worldTransform'][nU(0x805)](bc,bd);}[je(0x903)](bc,bd){var nV=je;this[nV(0x7f7)]instanceof b6||(this[nV(0x185)]=new b6()),this[nV(0x185)][nV(0x517)](bc,bd,this[nV(0x656)]);}[je(0x405)](){var nW=je;this[nW(0x4f6)]=-0x1;}['__init4'](){var nX=je;this[nX(0x2cb)]=-0x1;}[je(0x2c2)](){var nY=je;this[nY(0x75e)]=null;}[je(0x2ff)](){var nZ=je;this[nZ(0x185)]&&this[nZ(0x185)][nZ(0x2ff)]();}get[je(0x927)](){var o0=je;return this[o0(0x2cb)]===this[o0(0x656)][o0(0x179)]&&this[o0(0x4f6)]===this[o0(0x185)][o0(0x2fd)]||(this[o0(0x75e)]=this[o0(0x75e)]||{},this[o0(0x75e)][o0(0x2c0)]=this[o0(0x656)][o0(0x755)],this[o0(0x7f7)]['fillUniforms'](this[o0(0x75e)])),this['_lastUniforms'];}}class ba extends ab['j']{constructor(bc){var o1=je;super(bc),ba[o1(0x933)][o1(0x52b)]['call'](this),this[o1(0x856)]=new b9(this['transform']),this[o1(0x757)]=o1(0x6e6);}[je(0x52b)](){var o2=je;this[o2(0x4ab)]=new a6['y3']();}['_calculateBounds'](){var o3=je;this['calculateTrimmedVertices'](),this[o3(0x949)][o3(0x184)](this[o3(0x569)]);}[je(0x814)](){var o4=je;const bc=this[o4(0x241)]['_worldID'],bd=this[o4(0x320)][o4(0x2fd)];if(this[o4(0x468)]===bc&&this['_textureID']===bd)return;this[o4(0x468)]=bc,this['_textureID']=bd;const be=this[o4(0x320)],bf=this['vertexData'],bg=be['trim'],bh=be[o4(0x8ab)],bi=this[o4(0x7c8)];let bj,bk,bl,bm;if(bg?(bk=bg['x']-bi['_x']*bh['width'],bj=bk+bg[o4(0x4e6)],bm=bg['y']-bi['_y']*bh['height'],bl=bm+bg[o4(0x4f8)]):(bk=-bi['_x']*bh[o4(0x4e6)],bj=bk+bh['width'],bm=-bi['_y']*bh[o4(0x4f8)],bl=bm+bh[o4(0x4f8)]),this[o4(0x856)][o4(0x7f7)])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[o4(0x856)]['_surface']['boundsQuad'](bf,bf);else{const bo=this[o4(0x241)]['worldTransform'],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[o4(0x856)]['_activeProjection']&&this[o4(0x856)]['_activeProjection'][o4(0x185)][o4(0x262)](bf,bf);}be['uvMatrix']||(be[o4(0x5e9)]=new a3[(o4(0x44a))](be)),be['uvMatrix'][o4(0x783)]();const bn=this['aTrans'];bn[o4(0x6c5)](bh['width'],0x0,0x0,bh[o4(0x4f8)],bk,bm),null===this['proj'][o4(0x7f7)]&&bn[o4(0x539)](this['transform'][o4(0x755)]),bn['invert'](),bn[o4(0x539)](be[o4(0x5e9)][o4(0x906)]);}[je(0x238)](){var o5=je;const bc=this['transform'][o5(0x179)],bd=this['_texture'][o5(0x2fd)],be=this;if(be[o5(0x569)]){if(be[o5(0x397)]===bc&&this[o5(0x3c4)]===bd)return;}else be[o5(0x569)]=new Float32Array(0x8);be[o5(0x397)]=bc,this[o5(0x3c4)]=bd;const bf=this[o5(0x320)],bg=be[o5(0x569)],bh=bf[o5(0x8ab)],bi=this[o5(0x7c8)],bj=-bi['_x']*bh[o5(0x4e6)],bk=bj+bh['width'],bl=-bi['_y']*bh[o5(0x4f8)],bm=bl+bh[o5(0x4f8)];if(this[o5(0x856)][o5(0x7f7)])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['proj']['_surface'][o5(0x262)](bg,bg,this['transform'][o5(0x755)]);else{const bn=this['transform'][o5(0x755)],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[o5(0x856)][o5(0x727)]&&this[o5(0x856)][o5(0x727)]['surface'][o5(0x262)](bg,bg,this[o5(0x856)][o5(0x727)][o5(0x656)][o5(0x755)]);}}get['worldTransform'](){var o6=je;return this[o6(0x856)];}}ab['j'][je(0x933)][je(0x699)]=function(){var o7=je;this[o7(0x856)]||(this[o7(0x757)]=o7(0x7e7),this[o7(0x4ab)]=new a6['y3'](),this['calculateVertices']=ba[o7(0x933)][o7(0x814)],this[o7(0x238)]=ba[o7(0x933)][o7(0x238)],this[o7(0x9d9)]=ba[o7(0x933)][o7(0x9d9)],a7['W2'][o7(0x933)][o7(0x699)]['call'](this));},a7['W2']['prototype'][je(0x699)]=function(){var o8=je;this[o8(0x856)]||(this[o8(0x856)]=new b9(this['transform']),Object[o8(0x1d6)](this,'worldTransform',{'get'(){var o9=o8;return this[o9(0x856)];},'enumerable':!0x0,'configurable':!0x0}));},a7['W2']['prototype']['convertSubtreeTo2s']=function(){var oa=je;this[oa(0x699)]();for(let bc=0x0;bc<this['children'][oa(0x6db)];bc++)this['children'][bc][oa(0x2fa)]();};class bb extends ac['xv']{constructor(bc,bd,be){var ob=je;super(bc,bd,be),bb[ob(0x933)][ob(0x52b)][ob(0x6e9)](this),this['proj']=new b9(this[ob(0x241)]),this['pluginName']=ob(0x6e6);}[je(0x52b)](){var oc=je;this[oc(0x4ab)]=new a6['y3']();}get[je(0x755)](){var od=je;return this[od(0x856)];}}bb[je(0x933)][je(0x814)]=ba['prototype'][je(0x814)],bb['prototype'][je(0x238)]=ba[je(0x933)][je(0x238)],bb[je(0x933)][je(0x9d9)]=ba['prototype']['_calculateBounds'],a3['Renderer'][je(0x809)](je(0x6e6),class{static[je(0x8c3)](bc){var of=je;const {vertex:bd,fragment:be,vertexSize:bf,geometryClass:bg}=Object['assign']({'vertex':'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','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 oe=a0b;super(bh),aY[oe(0x933)][oe(0x52b)][oe(0x6e9)](this),aY[oe(0x933)][oe(0x30c)][oe(0x6e9)](this),aY[oe(0x933)]['__init3'][oe(0x6e9)](this),this['shaderGenerator']=new a3['BatchShaderGenerator'](bd,be),this[oe(0x6ca)]=bg,this[oe(0x851)]=bf;}[of(0x52b)](){var og=of;this[og(0x847)]={'translationMatrix':new a6['y3'](),'distortion':new Float32Array([0x0,0x0,0x1/0x0,0x1/0x0])};}[of(0x30c)](){var oh=of;this[oh(0x824)]=0x3e8;}['__init3'](){var oi=of;this[oi(0x271)]=0x1;}[of(0x5ec)](bh){var oj=of;const {proj:bi}=bh;return null!==bi[oj(0x185)]?bi[oj(0x927)]:null!==bi[oj(0x727)]?bi[oj(0x727)][oj(0x927)]:this['defUniforms'];}[of(0x6f3)](bh,bi,bj,bk,bl){var ok=of;const {uint32View:bm,float32View:bn}=bi,bo=bk/this[ok(0x851)],bp=bh['indices'],bq=bh[ok(0x588)],br=bh[ok(0x320)]['_frame'],bs=bh['aTrans'],{_batchLocation:bt,realWidth:bu,realHeight:bv,resolution:bw}=bh[ok(0x320)][ok(0x4dc)],bx=Math[ok(0x7bc)](bh[ok(0x72f)],0x1),by=bx<0x1&&bh[ok(0x320)][ok(0x4dc)][ok(0x3ce)]?(0x0,a5[ok(0x90d)])(bh[ok(0x5e1)],bx):bh['_tintRGB']+(0xff*bx<<0x18);for(let bz=0x0;bz<bq[ok(0x6db)];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[ok(0x4e6)])*bw,bn[bk+0xd]=(br['y']+br[ok(0x4f8)])*bw,bm[bk+0xe]=by,bn[bk+0xf]=bt,bk+=0x10;for(let bA=0x0;bA<bp[ok(0x6db)];bA++)bj[bl++]=bo+bp[bA];}},aY;}}[je(0x8c3)]({}));},0x1ea3:(a0,a1,a2)=>{var ol=a0b;a2['d'](a1,{'ry':()=>b2,'Cz':()=>a3['BeautifyOptions'],'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(){this['_configCenter']=new a6['M']();}async[ol(0x526)](){return new Promise((ba,bb)=>{var om=a0b;this[om(0x236)](),wx[om(0x60d)]({'success'(){ba();},'fail'(bc){var on=om;console['log'](on(0x386),bc);const {errMsg:bd}=bc;if(bd[on(0x962)](on(0x1e6))>-0x1)return ba();bb({'errMsg':'wx\x20init\x20face\x20fail'});}});});}[ol(0x8ae)](ba){var oo=ol;const {data:bb,width:bc,height:bd}=ba;new Date(),wx[oo(0x3a7)]({'width':bc,'height':bd,'frameBuffer':bb,'enablePoint':!0x0,'enableAngle':!0x0,'success':be=>{var op=oo;const {x:bf,y:bg}=be,bh=be[op(0x18c)],bi=be[op(0x73f)];let bj={'yaw':-bi[op(0x291)]*Math['PI']/0x2,'pitch':bi['pitch'],'roll':bi[op(0x56b)]};const bk=(bf-bc/0x2)/bc;bj[op(0x291)]+=1.4*bk;const bl=(bg-bd/0x2)/(bd/0x2);bj[op(0x3c5)]-=bl,this['angles']=bj,bh['push'](this[op(0x759)](bh[0x60],bh[0x61])),bh[op(0x607)](this[op(0x759)](bh[0x60],bh[0x67])),bh['push'](this[op(0x759)](bh[0x64],bh[0x63])),bh[op(0x607)](this[op(0x759)](bh[0x64],bh[0x65]));const bm=this[op(0x759)](bh[0x4e],bh[0x4f]),bn=1.5*(0x0,a5['Sp'])(bh[0x2c],bh[0x31]),bo=this[op(0x27c)](bm,bh[0x31]),bp=Math[op(0x24f)](bo),bq={'x':bm['x']-bn*Math[op(0x660)](bp)*(bp/Math[op(0x735)](bp)),'y':bm['y']-bn*Math[op(0x5bd)](Math[op(0x735)](bp))};bh[op(0x607)](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[op(0x589)](0.14,bq,bv,br),bx=this['twoBezier'](0.28,bq,bv,br),by=this[op(0x589)](0.42,bq,bv,br),bz=this[op(0x589)](0.56,bq,bv,br),bA=this[op(0x589)](0.7,bq,bv,br),bB=this[op(0x589)](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[op(0x589)](0.14,bq,bE,bC),bG=this[op(0x589)](0.28,bq,bE,bC),bH=this[op(0x589)](0.42,bq,bE,bC),bI=this['twoBezier'](0.56,bq,bE,bC),bJ=this[op(0x589)](0.7,bq,bE,bC),bK=this[op(0x589)](0.85,bq,bE,bC);bh[op(0x607)](bw,bx,by,bF,bG,bH,bz,bI,bB,bA,bK,bJ);const {meshVertex:bL,lipVertex:bM}=this[op(0x448)](bh);this[op(0x96f)]({'landmarks':bh,'angles':bj,'image':ba,'meshVertex':bL,'lipVertex':bM});},'fail':be=>{var oq=oo;this[oq(0x96f)]({'landmarks':[],'angles':[],'image':ba,'meshVertex':[],'lipVertex':[]});}});}[ol(0x40b)](ba){var or=ol;this[or(0x1fd)]=ba;}[ol(0x96f)](ba){var os=ol;this['vkstarted']||(this[os(0x917)]=!0x0),this[os(0x822)]=null,this[os(0x1fd)]&&this[os(0x1fd)](ba);}[ol(0x589)](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};}[ol(0x9ba)](){var ot=ol;console['log'](ot(0x794)),wx[ot(0x794)]({'success'(){var ou=ot;console[ou(0x8f1)](ou(0x1c5));},'fail'(){var ov=ot;console['log'](ov(0x4e1));}});}['getCenterOfTwoPoints'](ba,bb){return{'x':(ba['x']+bb['x'])/0x2,'y':(ba['y']+bb['y'])/0x2};}[ol(0x709)](ba,bb){return Math['pow']((ba['x']-bb['x'])*(ba['x']-bb['x'])+(ba['y']-bb['y'])*(ba['y']-bb['y']),0.5);}[ol(0x27c)](ba,bb){var ow=ol;return bb['x']===ba['x']?Number[ow(0x93d)]:(bb['y']-ba['y'])/(bb['x']-ba['x']);}['getMeshVertex'](ba){var ox=ol;const {triangulation:bb,lipsTriangulation:bc,KEY_POINTS:bd,LIPS:be,MOUTH_UPPER:bf}=this[ox(0x95e)],bg=[],bh=[];if(ba){const bj=[],bk=[],bl=this[ox(0x443)](ba);ba[ox(0x461)]((bn,bo)=>{var oy=ox;if(bd[oy(0x962)](bo)>=0x0){const bp=bn;bj[oy(0x607)]([bl[bo]['x'],bl[bo]['y']]),be[oy(0x962)](bo)>=0x0&&bk[oy(0x607)]([bp['x'],bp['y']]);}}),this[ox(0x319)](ba)[ox(0x461)]((bn,bo)=>{bj['push']([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[ox(0x607)](bj[bn][0x0]),bg[ox(0x607)](bj[bn][0x1]),bg[ox(0x607)](bj[bo][0x0]),bg[ox(0x607)](bj[bo][0x1]),bg[ox(0x607)](bj[bp][0x0]),bg[ox(0x607)](bj[bp][0x1]);}for(bi=0x0;bi<bc['length'];bi+=0x3){const bq=bc[bi],br=bc[bi+0x1],bs=bc[bi+0x2];bh[ox(0x607)](bk[bq][0x0]),bh[ox(0x607)](bk[bq][0x1]),bh[ox(0x607)](bk[br][0x0]),bh[ox(0x607)](bk[br][0x1]),bh['push'](bk[bs][0x0]),bh['push'](bk[bs][0x1]);}}return{'meshVertex':bg,'lipVertex':bh};}[ol(0x443)](ba){var oz=ol;const bb=JSON[oz(0x92d)](JSON['stringify'](ba)),{MOUTH_UPPER:bc,MOUTH_LOWER:bd}=this[oz(0x95e)];return bc[oz(0x461)]((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;}[ol(0x5f6)](){var oA=ol;return this[oA(0x8d1)];}['addOuterLandmarks'](ba){var oB=ol;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[oB(0x660)](bf[oB(0x56b)]),bh=Math['sin'](bf[oB(0x56b)]),{yaw:bi,pitch:bj}=bf;return bb['forEach']((bk,bl)=>{bk['forEach'](bm=>{var oC=a0b;let bn,bo;oC(0x455)==typeof bm?(bn=ba[bm['x']],bo=ba[bm['y']]):(bn=ba[bm],bo=ba[bm]);const bp=this['getSlope'](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[oC(0x735)](bg)):0x1===bl?(by=0.3*bc,bi>0x0&&(by*=Math[oC(0x660)](0x2*bi)),bw=bt+by*Math[oC(0x735)](bg),bx=bu+by*bh):0x2===bl?(by=bv[0x1]*bd,bw=bt-by*bh,bx=bu+by*Math[oC(0x735)](bg)):(by=0.3*bc,bi<0x0&&(by*=Math[oC(0x660)](0x2*bi)),bw=bt-by*Math[oC(0x735)](bg),bx=bu-by*bh),be[oC(0x607)]({'x':bw,'y':bx,'z':0x0});});}),be;}[ol(0x236)](){var oD=ol;const ba=this[oD(0x815)][oD(0x1db)](['triangulation',oD(0x3f7),'POINTS_MAP',oD(0x2f4),oD(0x17f),oD(0x1c8),'outer_offset_ratio',oD(0x215),oD(0x4ec),'lipsTriangulation',oD(0x90f)]);this[oD(0x95e)]=ba;}}class a8{['setAlpha'](ba){var oE=ol;(ba<=0x0||ba>0x1)&&console[oE(0x8f1)](oE(0x1af)),this['a']=ba;}constructor(ba,bb=0x0){var oF=ol;this['y']=this['s']=bb,this[oF(0x834)](ba),this[oF(0x816)]=!0x1;}[ol(0x59b)](ba){var oG=ol,bb;return this[oG(0x816)]?bb=this['a']*ba+(0x1-this['a'])*this['s']:(bb=ba,this[oG(0x816)]=!0x0),this['y']=ba,this['s']=bb,bb;}[ol(0x7c5)](ba,bb){var oH=ol;return this[oH(0x834)](bb),this[oH(0x59b)](ba);}[ol(0x264)](){var oI=ol;return this[oI(0x816)];}[ol(0x6a6)](){return this['y'];}[ol(0x7dc)](){var oJ=ol;this[oJ(0x816)]=!0x1;}}const a9=class{[ol(0x763)](ba){var oK=ol,bb=0x1/this[oK(0x643)];return 0x1/(0x1+0x1/(0x2*Math['PI']*ba)/bb);}[ol(0x942)](ba){var oL=ol;ba<=0x0&&console['log'](oL(0x30b)),this['freq']=ba;}[ol(0x199)](ba){var oM=ol;ba<=0x0&&console[oM(0x8f1)]('mincutoff\x20should\x20be\x20>0'),this[oM(0x720)]=ba;}[ol(0xa0b)](ba){var oN=ol;this[oN(0x49a)]=ba;}[ol(0x47f)](ba){var oO=ol;ba<=0x0&&console[oO(0x8f1)](oO(0x91b)),this[oO(0x8dd)]=ba;}constructor(ba,bb=0x1,bc=0x0,bd=0x1){var oP=ol;this[oP(0x942)](ba),this[oP(0x199)](bb),this[oP(0xa0b)](bc),this[oP(0x47f)](bd),this['x']=new a8(this[oP(0x763)](bb)),this['dx']=new a8(this[oP(0x763)](bd)),this[oP(0x64e)]=void 0x0;}['reset'](){var oQ=ol;this['x']['reset'](),this['dx'][oQ(0x7dc)](),this[oQ(0x64e)]=void 0x0;}[ol(0x59b)](ba,bb){var oR=ol;null!=this['lasttime']&&null!=bb&&bb!==this[oR(0x64e)]&&(this[oR(0x643)]=0x1/(bb-this['lasttime'])),this[oR(0x64e)]=bb;var bc=this['x'][oR(0x264)]()?(ba-this['x'][oR(0x6a6)]())*this[oR(0x643)]:0x0,bd=this['dx'][oR(0x7c5)](bc,this['alpha'](this[oR(0x8dd)])),be=this[oR(0x720)]+this['beta_']*Math['abs'](bd);return this['x']['filterWithAlpha'](ba,this[oR(0x763)](be));}};class aa{[ol(0x53f)];[ol(0x83c)]=0x2;[ol(0x1ba)];[ol(0xa08)];[ol(0xa0c)];constructor(){}[ol(0x59b)](ba){var oS=ol;if(null===this['frame0']||void 0x0===this[oS(0x53f)]){for(let bb=0x0;bb<this[oS(0x83c)];bb++)return this[oS(0x5ac)+bb]=ba,ba;}for(let bc=this['cacheNum']-0x1;bc>0x0;bc--)this[oS(0x5ac)+bc]=this[oS(0x5ac)+(bc-0x1)];return this['frame0']=ba,this[oS(0x69c)]();}[ol(0x69c)](){var oT=ol;let ba=0x0;for(let bb=0x0;bb<this[oT(0x83c)];bb++)ba+=this[oT(0x5ac)+bb]||0x0;return ba/this[oT(0x83c)];}}class ab{[ol(0x9b7)];['currentResult'];[ol(0x917)];[ol(0x25a)]={};[ol(0x381)]={};[ol(0x9a0)]=[];constructor(ba){var oU=ol;this['_configCenter']=new a6['M'](),this[oU(0x859)]=ba;for(let bb=0x0;bb<0x6a;bb++)this[oU(0x25a)][bb+'_x']=new a9(0x3c,0.05,0x50,0x1),this['_filterMap'][bb+'_y']=new a9(0x3c,0.05,0x50,0x1),this[oU(0x25a)][bb+'_z']=new a9(0x3c,0.05,0x50,0x1);this[oU(0x381)][oU(0x3c5)]=new aa(),this[oU(0x381)][oU(0x291)]=new aa(),this[oU(0x381)][oU(0x56b)]=new aa();}async['init'](){var oV=ol;this['initDataMap']();const ba=wx[oV(0x7e2)]({'track':{'face':{'mode':0x2}},'version':'v1'});this[oV(0x9b7)]=ba,this[oV(0x9b7)]['on'](oV(0x28d),bb=>{var oW=oV;this[oW(0x6c6)]=bb[0x0];const bc=this['processData']();bc[oW(0x73b)]=this[oW(0x5ac)],this[oW(0x96f)](bc);}),this[oV(0x9b7)]['on'](oV(0x2ba),bb=>{var oX=oV;const bc={'landmarks':[],'angles':{},'meshVertex':[],'lipVertex':[]};bc[oX(0x73b)]=this[oX(0x5ac)],this[oX(0x96f)](bc);}),this[oV(0x9b7)][oV(0x1d1)]();}[ol(0x96f)](ba){var oY=ol;this[oY(0x917)]||(this['vkstarted']=!0x0),this[oY(0x822)]=null,this['taskPromises']['shift']()?.(ba);}['processData'](){var oZ=ol;const ba=0.01*new Date()[oZ(0x673)](),bb=this['currentResult'],bc=bb[oZ(0x86c)];bc[oZ(0x3c5)]=this[oZ(0x381)][oZ(0x3c5)][oZ(0x59b)](bc[oZ(0x3c5)],ba),bc[oZ(0x291)]=this[oZ(0x381)][oZ(0x291)]['filter'](bc[oZ(0x291)],ba),bc['roll']=this['_angleMap'][oZ(0x56b)]['filter'](bc[oZ(0x56b)],ba),bc[oZ(0x291)]=1.1*(bc[oZ(0x291)]-0.1),bc[oZ(0x3c5)]=0.93*(bc[oZ(0x3c5)]+0.18),this['angles']=bc;const bd=bb[oZ(0x9da)],{width:be,height:bf}=this[oZ(0x5bb)],bg=be/bf,bh=this['_options']['width']/this[oZ(0x859)][oZ(0x4f8)];bd[oZ(0x461)]((bJ,bK)=>{var p0=oZ;bh<bg?bJ['x']=0.5+(bJ['x']-0.5)*(this[p0(0x859)][p0(0x4f8)]/bf):bh>bg&&(bJ['y']=0.5+(bJ['y']-0.5)/(this[p0(0x859)][p0(0x4e6)]/be)),this[p0(0x25a)][bK+'_x']&&(bJ['x']=this[p0(0x25a)][bK+'_x']['filter'](bJ['x'],ba),bJ['y']=this[p0(0x25a)][bK+'_y'][p0(0x59b)](bJ['y'],ba),bJ['z']=this['_filterMap'][bK+'_z']['filter'](bJ['z'],ba)),bJ['x']*=this['_options'][p0(0x4e6)],bJ['y']*=this[p0(0x859)]['height'];}),bd[oZ(0x607)](this[oZ(0x759)](bd[0x60],bd[0x61])),bd[oZ(0x607)](this[oZ(0x759)](bd[0x60],bd[0x67])),bd[oZ(0x607)](this[oZ(0x759)](bd[0x64],bd[0x63])),bd['push'](this[oZ(0x759)](bd[0x64],bd[0x65]));const bi=this['getCenterOfTwoPoints'](bd[0x4e],bd[0x4f]),bj=1.5*(0x0,a5['Sp'])(bd[0x2c],bd[0x31]),bk=this[oZ(0x27c)](bi,bd[0x31]),bl=Math[oZ(0x24f)](bk),bm={'x':bi['x']-bj*Math[oZ(0x660)](bl)*(bl/Math[oZ(0x735)](bl)),'y':bi['y']-bj*Math[oZ(0x5bd)](Math['abs'](bl))};bd[oZ(0x607)](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['twoBezier'](0.14,bm,br,bn),bt=this['twoBezier'](0.28,bm,br,bn),bu=this[oZ(0x589)](0.42,bm,br,bn),bv=this[oZ(0x589)](0.56,bm,br,bn),bw=this[oZ(0x589)](0.7,bm,br,bn),bx=this[oZ(0x589)](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[oZ(0x589)](0.14,bm,bA,by),bC=this[oZ(0x589)](0.28,bm,bA,by),bD=this['twoBezier'](0.42,bm,bA,by),bE=this[oZ(0x589)](0.56,bm,bA,by),bF=this[oZ(0x589)](0.7,bm,bA,by),bG=this[oZ(0x589)](0.85,bm,bA,by);bd[oZ(0x607)](bs,bt,bu,bB,bC,bD,bv,bE,bx,bw,bG,bF);const {meshVertex:bH,lipVertex:bI}=this[oZ(0x448)](bd);return{'landmarks':bd,'angles':this[oZ(0x8d1)],'meshVertex':bH,'lipVertex':bI};}[ol(0x8ae)](ba){return new Promise(bb=>{var p1=a0b;if(this[p1(0x917)]&&this[p1(0x822)])return;const {data:bc,width:bd,height:be}=ba;this[p1(0x822)]=+new Date(),this[p1(0x6c6)]=null,this[p1(0x5ac)]=ba,this['taskPromises'][p1(0x607)](bb),this[p1(0x5bb)]={'width':bd,'height':be},this[p1(0x9b7)]['detectFace']({'frameBuffer':bc,'width':bd,'height':be,'scoreThreshold':0.5,'sourceType':0x0,'modelMode':0x1});});}[ol(0x589)](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};}[ol(0x9ba)](){var p2=ol;this[p2(0x9b7)]&&(this[p2(0x9b7)]=null),this[p2(0x9a0)]=[];}[ol(0x759)](ba,bb){return{'x':(ba['x']+bb['x'])/0x2,'y':(ba['y']+bb['y'])/0x2};}['getDistanceOfTwoPoints'](ba,bb){var p3=ol;return Math[p3(0x672)]((ba['x']-bb['x'])*(ba['x']-bb['x'])+(ba['y']-bb['y'])*(ba['y']-bb['y']),0.5);}['getSlope'](ba,bb){var p4=ol;return bb['x']===ba['x']?Number[p4(0x93d)]:(bb['y']-ba['y'])/(bb['x']-ba['x']);}[ol(0x448)](ba){var p5=ol;const {triangulation:bb,lipsTriangulation:bc,KEY_POINTS:bd,LIPS:be,MOUTH_UPPER:bf}=this['_dataMap'],bg=[],bh=[];if(ba){const bj=[],bk=[],bl=this[p5(0x443)](ba);ba[p5(0x461)]((bn,bo)=>{var p6=p5;if(bd['indexOf'](bo)>=0x0){const bp=bn;bj['push']([bl[bo]['x'],bl[bo]['y']]),be[p6(0x962)](bo)>=0x0&&bk[p6(0x607)]([bp['x'],bp['y']]);}}),this[p5(0x319)](ba)[p5(0x461)]((bn,bo)=>{var p7=p5;bj[p7(0x607)]([bn['x'],bn['y']]);});const bm=bb;for(var bi=0x0;bi<bm[p5(0x6db)];bi+=0x3){const bn=bm[bi],bo=bm[bi+0x1],bp=bm[bi+0x2];bg[p5(0x607)](bj[bn][0x0]),bg['push'](bj[bn][0x1]),bg['push'](bj[bo][0x0]),bg[p5(0x607)](bj[bo][0x1]),bg[p5(0x607)](bj[bp][0x0]),bg['push'](bj[bp][0x1]);}for(bi=0x0;bi<bc[p5(0x6db)];bi+=0x3){const bq=bc[bi],br=bc[bi+0x1],bs=bc[bi+0x2];bh[p5(0x607)](bk[bq][0x0]),bh[p5(0x607)](bk[bq][0x1]),bh[p5(0x607)](bk[br][0x0]),bh[p5(0x607)](bk[br][0x1]),bh[p5(0x607)](bk[bs][0x0]),bh[p5(0x607)](bk[bs][0x1]);}}return{'meshVertex':bg,'lipVertex':bh};}[ol(0x443)](ba){var p8=ol;const bb=JSON[p8(0x92d)](JSON[p8(0x975)](ba)),{MOUTH_UPPER:bc,MOUTH_LOWER:bd}=this[p8(0x95e)];return bc[p8(0x461)]((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;}[ol(0x5f6)](){var p9=ol;return this[p9(0x8d1)];}[ol(0x319)](ba){var pa=ol;const {OUTER_REFERENCE:bb}=this[pa(0x95e)],bc=(0x0,a5['Sp'])(ba[0x20],ba[0x0]),bd=(0x0,a5['Sp'])(ba[0x10],ba[0x6e]),be=[],bf=this[pa(0x5f6)](ba),bg=Math[pa(0x660)](bf['roll']),bh=Math['sin'](bf['roll']),{yaw:bi,pitch:bj}=bf;return bb[pa(0x461)]((bk,bl)=>{var pb=pa;bk[pb(0x461)](bm=>{var pc=pb;let bn,bo;pc(0x455)==typeof bm?(bn=ba[bm['x']],bo=ba[bm['y']]):(bn=ba[bm],bo=ba[bm]);const bp=this['getSlope'](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[pc(0x735)](bg)):0x1===bl?(by=0.3*bc,bi>0x0&&(by*=Math[pc(0x660)](0x2*bi)),bw=bt+by*Math[pc(0x735)](bg),bx=bu+by*bh):0x2===bl?(by=bv[0x1]*bd,bw=bt-by*bh,bx=bu+by*Math[pc(0x735)](bg)):(by=0.3*bc,bi<0x0&&(by*=Math[pc(0x660)](0x2*bi)),bw=bt-by*Math['abs'](bg),bx=bu-by*bh),be[pc(0x607)]({'x':bw,'y':bx,'z':0x0});});}),be;}[ol(0x236)](){var pd=ol;const ba=this['_configCenter']['getConfigByKeys'](['triangulation','OUTER_REFERENCE','POINTS_MAP',pd(0x2f4),pd(0x17f),pd(0x1c8),pd(0x6bf),pd(0x215),pd(0x4ec),'lipsTriangulation',pd(0x90f)]);this[pd(0x95e)]=ba;}}var ac=a2(0x4b6),ad=a2(0x1f15),ae=a2(0x1adf);let af,ag,ah,ai,aj,ak;if(null==ag){af=wx[ol(0x425)]();let {system:ba,version:bb}=af;ai=bb;}if(null==ag){af=wx['getSystemInfoSync']();let {system:bc}=af;aj=af[ol(0x753)],ag=bc['toLowerCase']()[ol(0x962)]('android')>-0x1,ah=!ag,ak=parseFloat(aj)>=2.25;}const al=parseFloat(aj)>=2.29;function am(){var pe=ol;return af[pe(0x790)]>af[pe(0x2e5)];}class an extends a4['Q']{['sprite'];[ol(0x188)];['pushBuffer'];[ol(0x38f)];[ol(0x6c8)]=!0x0;[ol(0x612)]=0x0;[ol(0x9e7)]=0x0;constructor(bd){var pf=ol;super(),this[pf(0x188)]=bd;const be=this['getPusherContent']();this[pf(0x5e6)](),this[pf(0x2a1)]();const bf=be[pf(0x7a2)]({'type':pf(0x22d),'width':this[pf(0x612)],'height':this[pf(0x9e7)]});this['gl']=bf[pf(0x826)]('webgl'),ah?(this[pf(0x457)](),this['renderer']=new ac[(pf(0x602))]({'width':this[pf(0x612)],'height':this[pf(0x9e7)],'resolution':0x1,'view':new wx[(pf(0x971))][(pf(0x87b))](bf)})):this[pf(0x8a9)]();}[ol(0x5e6)](){var pg=ol;const {width:bd,height:be}=this['options'];ah?(this[pg(0x612)]=bd,this[pg(0x9e7)]=be):(this['realWidth']=bd/0x4,this[pg(0x9e7)]=1.5*be);}[ol(0x2a1)](){var ph=ol;const bd=am(),{width:be,height:bf}=this[ph(0x188)],bg=this[ph(0x17d)]();console[ph(0x8f1)](ph(0x8a8),bf,be);const bh=bg[ph(0x7a2)]({'type':'2d','width':be,'height':bf});if(this[ph(0x4d6)]=bh[ph(0x826)]('2d'),bd){const bk=bf/be;this['ctx2d']['translate'](bh['width']/0x2,bh[ph(0x4f8)]/0x2),ah?this['ctx2d']['rotate'](-Math['PI']/0x2):this[ph(0x4d6)][ph(0x8fc)](Math['PI']/0x2),this[ph(0x4d6)][ph(0x7c6)](-bh[ph(0x4f8)]/0x2,-bh[ph(0x4e6)]/0x2),!ah&&this[ph(0x4d6)][ph(0x8a2)](bk,0x1/bk);}const bi=ac[ph(0x35f)][ph(0x170)](new wx['window']['Canvas'](bh)),bj=new ac[(ph(0x6ce))](bi);bj[ph(0x347)]['set'](0.5,0.5),bj[ph(0x93f)]['set'](be/0x2,bf/0x2),(bd?bj[ph(0x8a2)][ph(0x6c5)](ah?0x1:-0x1,0x1):bj[ph(0x8a2)]['set'](ah?-0x1:1.3333333333333333,-0x1),this[ph(0x3b0)]=bj,this[ph(0x748)]=ah?new Uint8Array(be*bf*0x4):new Uint8Array(be*bf*1.5));}[ol(0x457)](){var pi=ol;let bd=new ac[(pi(0x80f))](null,pi(0x197));this[pi(0x38f)]=new ac[(pi(0x5af))]();const be=ac['Texture'][pi(0x170)](new wx[(pi(0x971))][(pi(0x87b))](this[pi(0x188)][pi(0x1e8)]));console[pi(0x8f1)](pi(0x3de),this[pi(0x612)],this['realHeight']),this[pi(0x3af)]=new ac[(pi(0x6ce))](be),this['pushSprite'][pi(0x347)][pi(0x6c5)](0.5,0.5),this[pi(0x3af)][pi(0x93f)][pi(0x6c5)](this[pi(0x612)]/0x2,this[pi(0x9e7)]/0x2),this[pi(0x3af)]['width']=this[pi(0x612)],this[pi(0x3af)][pi(0x4f8)]=this['realHeight'],this['pushSprite']['scale'][pi(0x6c5)](0x1,-0x1),this[pi(0x3af)][pi(0x3e8)]=[bd],this[pi(0x38f)][pi(0x52a)](this[pi(0x3af)]);}[ol(0x8a9)](){var pj=ol;const bd=this['gl'],be=bd[pj(0x454)](bd[pj(0x740)]),bf=bd['createShader'](bd[pj(0x4bb)]);bd[pj(0x64a)](be,pj(0x30e)),bd['shaderSource'](bf,pj(0x5b1)),bd['compileShader'](be),bd[pj(0x76a)](bf);const bg=bd['createProgram']();bd[pj(0x658)](bg,be),bd['attachShader'](bg,bf),bd[pj(0x5e0)](bg),bd[pj(0x676)](bg),bd[pj(0x8ff)]=bg,bd[pj(0x365)](0x0,0x0,this[pj(0x612)],this[pj(0x9e7)]);const bh=bd[pj(0x9b5)]();bd[pj(0x2a3)](bd[pj(0x5b0)],bh),bd[pj(0x211)](bd[pj(0x5b0)],new Float32Array([-0x1,0x1,-0x1,-0x1,0x1,-0x1,0x1,0x1]),bd['STATIC_DRAW']),bd[pj(0x717)]=bh;const bi=bd['createBuffer']();bd['bindBuffer'](bd[pj(0x5b0)],bi),bd[pj(0x211)](bd[pj(0x5b0)],new Float32Array([0x0,0x1,0x0,0x0,0x1,0x0,0x1,0x1]),bd[pj(0x1e9)]),bd[pj(0x832)]=bi;const bj=bd[pj(0xa26)](bg,pj(0x6b8)),bk=bd['getAttribLocation'](bg,pj(0x8b4)),bl=bd[pj(0x3ff)](bg,pj(0x4f8)),bm=bd[pj(0x3ff)](bg,pj(0x2b4));bd[pj(0x33a)](bl,this[pj(0x188)][pj(0x4f8)]),bd['uniform1f'](bm,0x1/this[pj(0x188)]['width']);const bn=bd[pj(0x71f)]();bd[pj(0x80c)](bd[pj(0x754)],bn),bd[pj(0x3e4)](bd[pj(0x754)],0x0,bd[pj(0x5c0)],bd[pj(0x5c0)],bd[pj(0x3db)],this[pj(0x188)][pj(0x1e8)]),bd[pj(0x686)](bd[pj(0x754)],bd[pj(0x35b)],bd['NEAREST']),bd[pj(0x686)](bd[pj(0x754)],bd[pj(0x3aa)],bd[pj(0x528)]),bd[pj(0x951)]=bn,bd['enableVertexAttribArray'](bj),bd[pj(0x2a3)](bd['ARRAY_BUFFER'],bh),bd[pj(0x33d)](bj,0x2,bd['FLOAT'],!0x1,0x0,0x0),bd[pj(0x86d)](bk),bd['bindBuffer'](bd[pj(0x5b0)],bi),bd[pj(0x80c)](bd[pj(0x754)],bn),bd[pj(0x33d)](bk,0x2,bd['FLOAT'],!0x1,0x0,0x0);}['getPusherContent'](){var pk=ol;return this[pk(0x188)]?.[pk(0x2a5)]?.[pk(0x8ce)]||(this[pk(0x188)][pk(0x2a5)][pk(0x8ce)]=wx[pk(0x36b)]()),this[pk(0x188)][pk(0x2a5)]['pusherContext'];}async[ol(0x526)](){var pl=ol;await this[pl(0x3c1)](),this[pl(0x1d1)]();}async[ol(0x3c1)](){var pm=ol;let bd,be;bd=await this[pm(0x98e)]('scope.record');const bf=()=>{setTimeout(async bg=>{var pn=a0b;be=await this[pn(0x98e)](pn(0x8cc)),''===be?bf():bd&&be||await this[pn(0x8b7)]();},0x1f4);};bf();}async[ol(0x8b7)](){return new Promise((bd,be)=>{var po=a0b;wx[po(0x767)]({'content':ad['Z']['t'](po(0x4b8)),'confirmText':ad['Z']['t']('0003'),'showCancel':!0x1,'success':bf=>{var pp=po;bf[pp(0x4ac)]?wx[pp(0x8b7)]({'success':bg=>{var pq=pp;console[pq(0x8f1)](pq(0x972),bg),bg['authSetting'][pq(0x5e4)]&&bg[pq(0x32c)][pq(0x8cc)]&&a4['N'][pq(0x275)]('error',{'code':ae['U'][pq(0xa1a)],'message':ad['Z']['t']('0013')}),this['authorize']()[pq(0xa17)](()=>{bd();});},'fail':()=>{bd();}}):bf[pp(0x81a)]&&bd();}});});}async[ol(0x98e)](bd){return new Promise(async be=>{var pr=a0b;const bf=await this[pr(0x736)]();return pr(0x8cc)===bd&&void 0x0===bf[bd]?be(''):bf[bd]?be(!0x0):void wx[pr(0x3c1)]({'scope':bd,'success'(){be(!0x0);},'fail'(){be(!0x1);}});});}async[ol(0x736)](){return new Promise((bd,be)=>{var ps=a0b;wx[ps(0x736)]({'success':bf=>{var pt=ps;bd(bf[pt(0x32c)]);},'fail':()=>{be();}});});}[ol(0x533)](){var pu=ol;ah?(this[pu(0x3af)][pu(0x5ef)][pu(0x783)](),this['renderer'][pu(0x292)](this[pu(0x38f)])):(this['gl'][pu(0x554)](this['gl']['TEXTURE_2D'],0x0,0x0,0x0,this['gl']['RGBA'],this['gl'][pu(0x3db)],this[pu(0x188)][pu(0x1e8)]),this['gl'][pu(0x223)](this['gl'][pu(0x3fe)],0x0,0x4)),this['gl'][pu(0x1bc)](0x0,0x0,this[pu(0x612)],this[pu(0x9e7)],this['gl']['RGBA'],this['gl'][pu(0x3db)],this[pu(0x748)]),this[pu(0x704)]=!0x0;}[ol(0x1d1)](){var pv=ol;const bd=this[pv(0x17d)]();bd[pv(0x705)](pv(0x5ac),()=>{var pw=pv;if(this[pw(0x4d6)][pw(0x3cd)](bd,0x0,0x0),this[pw(0x3b0)][pw(0x5ef)][pw(0x783)](),this[pw(0x704)])return this[pw(0x748)][pw(0x938)];});}['stop'](){var px=ol;this[px(0x17d)]()[px(0x705)](px(0x5ac),null);}[ol(0x9ba)](){var py=ol;this[py(0x3b0)]=null,this[py(0x3b3)](),this[py(0x533)]=null;}}class ao extends a4['Q']{[ol(0x3b0)];[ol(0x36a)];[ol(0x188)];[ol(0x9fb)];constructor(bd){var pz=ol;const be={...bd,'width':bd['width']/0x1,'height':bd[pz(0x4f8)]/0x1};super(),this['options']=be;}async[ol(0x526)](){var pA=ol;console['log'](pA(0x46b)),await this['authorize'](),await this['initCameraIns']();}async[ol(0x3c1)](){var pB=ol;let bd,be;bd=await this[pB(0x98e)](pB(0x5e4));const bf=()=>{setTimeout(async bg=>{var pC=a0b;be=await this['authScope'](pC(0x8cc)),''===be?bf():bd&&be||await this[pC(0x8b7)]();},0x1f4);};bf();}async[ol(0x8b7)](){return new Promise((bd,be)=>{var pD=a0b;wx[pD(0x767)]({'content':ad['Z']['t'](pD(0x4b8)),'confirmText':ad['Z']['t'](pD(0x45f)),'showCancel':!0x1,'success':bf=>{var pE=pD;bf[pE(0x4ac)]?wx[pE(0x8b7)]({'success':bg=>{var pF=pE;console[pF(0x8f1)]('wx\x20auth\x20setting',bg),bg[pF(0x32c)][pF(0x5e4)]&&bg[pF(0x32c)][pF(0x8cc)]&&a4['N'][pF(0x275)]('error',{'code':ae['U'][pF(0xa1a)],'message':ad['Z']['t'](pF(0x2d4))}),this[pF(0x3c1)]()[pF(0xa17)](()=>{bd();});},'fail':()=>{bd();}}):bf[pE(0x81a)]&&bd();}});});}async[ol(0x98e)](bd){return new Promise(async be=>{var pG=a0b;const bf=await this[pG(0x736)]();return'scope.camera'===bd&&void 0x0===bf[bd]?be(''):bf[bd]?be(!0x0):void wx[pG(0x3c1)]({'scope':bd,'success'(){be(!0x0);},'fail'(){be(!0x1);}});});}async[ol(0x736)](){return new Promise((bd,be)=>{wx['getSetting']({'success':bf=>{var pH=a0b;bd(bf[pH(0x32c)]);},'fail':()=>{be();}});});}async[ol(0x5f0)](){var pI=ol;const bd=wx['createCameraContext']();this[pI(0x9fb)]=bd;const be=bd[pI(0x644)](bf=>{this['frame']=bf;});this[pI(0x36a)]=be,this['start']();}[ol(0x1bc)](){var pJ=ol;return this[pJ(0x5ac)];}async[ol(0xa09)](bd){return new Promise((be,bf)=>{var pK=a0b;this['cameraContext'][pK(0xa09)]({'timeoutCallback':bg=>{var pL=pK;console[pL(0x8f1)]('camera\x20start\x20record\x20timeout',bg),this['trigger'](pL(0x1eb),bg),be(bg);},'success':bg=>{bd&&bd(),be(bg);},'fail':bg=>{var pM=pK;a4['N']['trigger'](pM(0x1a6),{'code':ae['U'][pM(0x6e5)],'message':ad['Z']['t'](pM(0x7e3)),'error':bg});}});});}async['stopRecord'](){return new Promise((bd,be)=>{var pN=a0b;this[pN(0x9fb)][pN(0x2d1)]({'success':bf=>{bd(bf);},'fail':bf=>{var pO=pN;a4['N']['trigger'](pO(0x1a6),{'code':ae['U'][pO(0x507)],'message':ad['Z']['t'](pO(0x463)),'error':bf});}});});}[ol(0x1d1)](){var pP=ol;this[pP(0x36a)][pP(0x1d1)]();}['stop'](){var pQ=ol;this[pQ(0x36a)]['stop']();}[ol(0x9ba)](){var pR=ol;this[pR(0x36a)]&&(this[pR(0x36a)][pR(0x3b3)](),this['listener']=null),this[pR(0x3b0)]&&(this['sprite']=null),this[pR(0x9fb)]&&(this[pR(0x9fb)]=null);}}class ap{['sprite'];[ol(0x188)];constructor(bd){var pS=ol;this[pS(0x188)]=bd;}['destroy'](){var pT=ol;this[pT(0x3b0)][pT(0x9ba)](!0x0);}async[ol(0x526)](){if(!this['sprite'])return new Promise((bd,be)=>{var pU=a0b;const bf=this['options'],{width:bg,height:bh,input:bi}=bf,bj=(new ac[(pU(0x8bf))](),wx[pU(0x7a2)]({'type':'2d','width':0x1,'height':0x1}));let bk=bj['createImage']();bk[pU(0x396)]=()=>{var pV=pU;bj[pV(0x4e6)]=bk['width'],bj[pV(0x4f8)]=bk[pV(0x4f8)];const bl=bj[pV(0x826)]('2d');bl[pV(0x3cd)](bk,0x0,0x0);const {data:bm}=bl[pV(0x451)](0x0,0x0,bk['width'],bk[pV(0x4f8)]),bn=ac[pV(0x35f)][pV(0x57d)](new Uint8Array(bm),bk['width'],bk['height']);this[pV(0x3b0)]=new ac[(pV(0x6ce))](bn),this['sprite'][pV(0x8a2)][pV(0x6c5)](0x1,-0x1),this[pV(0x3b0)][pV(0x4e6)]=bg,this[pV(0x3b0)][pV(0x4f8)]=bh,this[pV(0x3b0)][pV(0x347)][pV(0x6c5)](0.5,0.5),this[pV(0x3b0)]['x']=bg/0x2,this['sprite']['y']=bh/0x2,bd();},bk['src']=bi;});}}const aq=wx[ol(0x971)];class ar{[ol(0x472)]=null;['_target']=null;[ol(0x7e0)]=null;constructor(bd){var pW=ol;const be={...bd,'width':bd[pW(0x4e6)]/0x1,'height':bd['height']/0x1};if(this[pW(0x859)]=be,!be['manual']){const {width:bf,height:bg}=be;let bh;bh=wx[pW(0x35e)](),bh[pW(0x4e6)]=bf,bh[pW(0x4f8)]=bg,this[pW(0x5b4)]=new Uint8Array(bf*bg*0x4),this[pW(0x472)]=new aq[(pW(0x87b))](bh),this[pW(0x91f)]=new ac[(pW(0x5af))](),this['renderer']=new ac[(pW(0x602))]({'view':this[pW(0x472)],'width':be[pW(0x4e6)],'height':be[pW(0x4f8)]}),this['gl']=this[pW(0x538)]['gl'],this['_renderFunc']=()=>{var pX=pW;this[pX(0x292)]();},ac[pW(0x681)]['shared'][pW(0x611)](this[pW(0x92b)]);}}[ol(0x292)](){var pY=ol;const bd=this['input'];if(bd&&bd[pY(0x5be)]){if(!bd[pY(0x5be)]())return!0x1;}return this[pY(0x538)][pY(0x292)](this[pY(0x91f)]),!0x0;}set[ol(0x9b1)](bd){var pZ=ol;if(this[pZ(0x7e0)]=bd,this['_target']&&bd[pZ(0x3b0)]){this['_target'][pZ(0x5ee)][pZ(0x461)](be=>{var q0=pZ;this[q0(0x91f)][q0(0x73a)](be);});try{bd[pZ(0x3b0)][pZ(0x8a2)]['x']=bd[pZ(0x3b0)][pZ(0x8a2)]['x']/0x1,bd[pZ(0x3b0)][pZ(0x8a2)]['y']=bd[pZ(0x3b0)]['scale']['y']/0x1,this[pZ(0x91f)][pZ(0x52a)](bd['sprite']);}catch(be){console['log'](pZ(0x6d1),be);}}}get[ol(0x9b1)](){var q1=ol;return this[q1(0x7e0)];}async[ol(0x6e2)](bd){}[ol(0x9ba)](){var q2=ol;this[q2(0x92b)]&&ac[q2(0x681)][q2(0x395)][q2(0x2a0)](this[q2(0x92b)]),this[q2(0x538)]&&this[q2(0x538)]['destroy'](!0x0),this['_target']&&this[q2(0x91f)][q2(0x9ba)](!0x0),this[q2(0x472)]&&(this[q2(0x472)]=null);}[ol(0x526)](bd){}[ol(0x1bc)](){var q3=ol;if(this[q3(0x9b1)][q3(0x1bc)])return this[q3(0x9b1)][q3(0x1bc)]();const {width:bd,height:be}=this[q3(0x859)];return this['gl'][q3(0x1bc)](0x0,0x0,bd,be,this['gl'][q3(0x5c0)],this['gl']['UNSIGNED_BYTE'],this[q3(0x5b4)]),{'data':this[q3(0x5b4)][q3(0x938)],'width':bd,'height':be};}[ol(0x4a8)](bd){var q4=ol;return bd['buffer'][q4(0x9a1)](bd[q4(0x920)],bd[q4(0x737)]+bd[q4(0x920)]);}async[ol(0x886)](){return new Promise(bd=>{var q5=a0b;wx[q5(0x21d)]()['select'](q5(0x76f))['node']()[q5(0x72e)](be=>{var q6=q5;const bf=be[0x0][q6(0x9be)];bd(bf);});});}}var as=a2(0x1419),au=a2(0x191);class av{[ol(0x51c)]=0x0;[ol(0x532)];[ol(0x5a6)];[ol(0x60f)];[ol(0x5e5)];[ol(0x4e7)]=!0x1;[ol(0x86e)]=!0x1;[ol(0x188)];constructor(bd){var q7=ol;this[q7(0x188)]=bd;const {canvas:be,fps:bf,audio:bg={}}=bd;this[q7(0x3da)](be);const {onStart:bh,onStop:bi}=bg;this[q7(0x60f)]=wx['getRecorderManager'](),this[q7(0x60f)]['onStop'](bj=>{var q8=q7;this[q8(0x5e5)]=bj[q8(0x8a1)],this[q8(0x4e7)]=!0x1,bi&&bi(bj);}),this[q7(0x60f)][q7(0x82b)](()=>{var q9=q7;this[q9(0x4e7)]=!0x0,bh&&bh();}),this[q7(0x532)]=wx[q7(0x2e8)]();}[ol(0x3da)](bd){var qa=ol;try{let be={'duration':0x258,'fps':qa(0x5a2)===au['iN']||ag?0x1e:0x3c,'gop':0xc,'timeUpdateInterval':qa(0x5a2)===au['iN']||ag?0x1e:0x3c,'cumulativeStamp':!0x1,'videoBitsPerSecond':0xbb8};console[qa(0x8f1)]('recorder\x20options',be),this[qa(0x5a6)]&&this[qa(0x5a6)][qa(0x9ba)]()[qa(0x7e1)](bg=>{});const bf=wx[qa(0x6a3)](bd,be);this[qa(0x5a6)]=bf,bf['on']('start',()=>{var qb=qa;console[qb(0x8f1)](qb(0x640));});}catch(bg){a4['N'][qa(0x275)](qa(0x1a6),{'code':ae['U'][qa(0x6e5)],'message':ad['Z']['t']('0008'),'error':bg});}}async[ol(0x1d1)](){var qc=ol;this['videoRecorder']&&(await this[qc(0x5a6)][qc(0x1d1)]()['catch'](bd=>{var qd=qc;a4['N']['trigger'](qd(0x1a6),{'code':ae['U'][qd(0x6e5)],'message':ad['Z']['t'](qd(0x7e3))}),console[qd(0x1a6)](qd(0x25c),bd);}),await this[qc(0x394)](),this['recordStartTime']=+new Date(),this[qc(0x86e)]=!0x0);}async[ol(0x3b3)](bd){var qe=ol;if(!this['videoRecorder'])return;let be,bf;this['recording']=!0x1,this[qe(0x60f)][qe(0x3b3)]();try{be=(await this['videoRecorder']['stop']())[qe(0x8a1)];}catch(bg){bd[qe(0x9ba)]||a4['N'][qe(0x275)](qe(0x1a6),{'code':ae['U'][qe(0x507)],'message':ad['Z']['t'](qe(0x463)),'error':bg});}if(console[qe(0x8f1)](qe(0x795),be),be)try{const {videoTrack:bh}=await this[qe(0x6a8)](be);let bi=[bh];if(bd[qe(0x9f9)]){const {audioTrack:bj}=await this[qe(0x6a8)](bd['musicPath'])[qe(0x7e1)](bk=>{var qf=qe;console[qf(0x8f1)](qf(0x34c),bk);});console['log'](qe(0x8df),bj),bj[qe(0x195)]='music',bi[qe(0x607)](bj);}if(bd[qe(0x6df)]){const bk=await this['getAudioPath'](),{audioTrack:bl}=await this[qe(0x6a8)](bk)[qe(0x7e1)](bm=>{});bi[qe(0x607)](bl);}bf=await this[qe(0x484)](...bi)['catch'](bm=>{});}catch(bm){bf={'tempFilePath':be};}try{this[qe(0x5a6)]['destroy']();}catch(bn){console[qe(0x8f1)](qe(0x499),bn);}try{this['mediaContainer']['destroy']();}catch(bo){console['log'](qe(0x1c6),bo);}return this[qe(0x5a6)]=null,bf;}async[ol(0x394)](){var qg=ol;const {audio:bd}=this[qg(0x188)];return console[qg(0x8f1)](qg(0x8f5),bd),new Promise(be=>{var qi=qg;let bf,bg=()=>{var qh=a0b;this[qh(0x4e7)]?(be(this[qh(0x4e7)]),bf&&clearTimeout(bf)):bf=setTimeout(bg,0xa);};this[qi(0x60f)][qi(0x1d1)]({'duration':0x927c0,'format':'mp3',...bd}),bg();});}['getRecorder'](){var qj=ol;return this[qj(0x5a6)];}async[ol(0x54f)](){var qk=ol;this[qk(0x86e)]&&this['videoRecorder']&&this['audioRecorderStarted']&&await this[qk(0x5a6)][qk(0x80a)]();}async['getTracks'](bd){return new Promise((be,bf)=>{var ql=a0b;this[ql(0x532)]['extractDataSource']({'source':bd,'success':async({tracks:bg})=>{var qm=ql;let bh,bi;for(let bj=0x0;bj<bg[qm(0x6db)];bj++)'audio'===bg[bj][qm(0x8f9)]?bi=bg[bj]:qm(0x2b8)===bg[bj][qm(0x8f9)]&&(bh=bg[bj]);be({'audioTrack':bi,'videoTrack':bh});},'fail'(bg){var qn=ql;console[qn(0x8f1)](qn(0x180),bg),bf(bg);}});});}async[ol(0x484)](bd,...be){return new Promise((bf,bg)=>{var qo=a0b;this[qo(0x532)][qo(0x905)](bd),bd[qo(0x9a1)](0.06,bd[qo(0x3bd)]),be[qo(0x461)](bh=>{var qp=qo;this[qp(0x532)][qp(0x905)](bh),'music'!==bh['_audioType']&&bh[qp(0x9a1)](bh[qp(0x3bd)]-bd['duration']+0.06,0x2*bh[qp(0x3bd)]);}),this['mediaContainer'][qo(0x3ef)]({'success':bh=>{var qq=qo;this[qq(0x532)][qq(0x4e9)](bd),be['forEach'](bi=>{var qr=qq;this[qr(0x532)][qr(0x4e9)](bi);}),bf(bh);},'fail':bh=>{var qs=qo;console['log'](qs(0x1a1),bh),bg(bh);}});});}async[ol(0x460)](){return new Promise(bd=>{let be,bf=()=>{this['audioPath']?(bd(this['audioPath']),be&&clearTimeout(be),this['audioPath']=null):be=setTimeout(bf,0x14);};bf();});}}class aw extends a4['Q']{[ol(0x3b0)];[ol(0x188)];[ol(0x2b8)];constructor(bd){super(),this['options']=bd;}[ol(0x9ba)](){var qt=ol;try{this[qt(0x2b8)]&&this[qt(0x2b8)]['destroy']();}catch(bd){}}async[ol(0x526)](){var qu=ol;if(!this['sprite'])return this[qu(0x6ad)](),await this['start']()[qu(0x7e1)](bd=>{throw new Error('decoder\x20start\x20fail');}),new Promise(async(bd,be)=>{let bf=async()=>{var qv=a0b;const bg=await this[qv(0x5be)]();if(console[qv(0x8f1)](qv(0x192),bg),bg)return this[qv(0x666)]=!0x0,bd();setTimeout(()=>{bf();},0x64);};await bf();});}[ol(0x50f)](){var qw=ol;return this['video'][qw(0x780)]();}[ol(0x5be)](){var qx=ol;const bd=this[qx(0x2b8)]['getFrameData']();if(!bd)return!0x1;const {width:be,height:bf,data:bg}=bd;if(this[qx(0x3b0)])this[qx(0x3b0)][qx(0x5ef)]['baseTexture'][qx(0x89d)][qx(0x53b)]=new Uint8Array(bg),this[qx(0x3b0)][qx(0x5ef)][qx(0x783)]();else{const bh=ac[qx(0x35f)]['fromBuffer'](new Uint8Array(bg),be,bf),bi=new ac[(qx(0x6ce))](bh),bj=Math[qx(0x1b3)](this[qx(0x188)][qx(0x4e6)]/be,this[qx(0x188)][qx(0x4f8)]/bf);this['sprite']=bi,bi[qx(0x347)][qx(0x6c5)](0.5,0.5),bi['x']=this[qx(0x188)][qx(0x4e6)]/0x2,bi['y']=this['options'][qx(0x4f8)]/0x2;const bk=wx[qx(0x425)]();let {system:bl}=bk;-0x1===bl[qx(0x172)]()[qx(0x962)](qx(0x3c0))?bi[qx(0x8a2)]['set'](bj,bj):bi[qx(0x8a2)]['set'](bj,-bj);}return!0x0;}['getVideoDecoder'](){var qy=ol;const bd=wx[qy(0x7af)]();return this[qy(0x2b8)]=bd,bd;}async[ol(0x1d1)](){return new Promise((bd,be)=>{var qz=a0b;const {input:bf,width:bg,height:bh}=this[qz(0x188)];this[qz(0x2b8)]['on']('start',()=>{var qA=qz;console[qA(0x8f1)]('decoder\x20start\x20success',bf),bd();}),this[qz(0x2b8)]['on'](qz(0x7b4),()=>{var qB=qz;console[qB(0x8f1)](qB(0x1a0));}),this[qz(0x2b8)]['on'](qz(0x1a6),bi=>{var qC=qz;console[qC(0x8f1)](qC(0x4f5),bi),be({'errMsg':qC(0x4f5)});}),this[qz(0x2b8)]['on']('ended',()=>{var qD=qz;console[qD(0x8f1)](qD(0x6dd)),this['trigger'](qD(0x6b3));}),this[qz(0x2b8)]['start']({'source':bf,'mode':0x1,'abortAudio':!0x0});});}async[ol(0xa0d)](bd){return new Promise((be,bf)=>{var qE=a0b;let bg=wx[qE(0x7af)]();bg['on'](qE(0x1a6),bh=>{var qF=qE;console[qF(0x8f1)](qF(0x32f),bh),be(0x1e);}),bg['on'](qE(0x1d1),bh=>{var qG=qE;console[qG(0x8f1)](qG(0x648),bh[qG(0x2cd)]),bg&&bg[qG(0x3b3)]()['catch'](bi=>{}),be(bh[qG(0x2cd)]);}),bg['on'](qE(0x3b3),()=>{var qH=qE;bg&&bg['remove']()[qH(0x7e1)](()=>{}),bg=null;}),bg[qE(0x1d1)]({'source':bd,'mode':0x1,'abortAudio':!0x0});});}['stop'](){var qI=ol;this[qI(0x2b8)]['stop']();}[ol(0x9ba)](){var qJ=ol;this[qJ(0x2b8)]['remove']();}}var ax=a2(0xc30),ay=a2(0x18a5),az=a2(0x1407),aA=a2(0xde1),aB=a2(0x218a),aC=a2(0x17dd),aD=function(){var qK=ol;return aD=Object[qK(0x326)]||function(bd){var qL=qK;for(var be,bf=0x1,bg=arguments['length'];bf<bg;bf++)for(var bh in be=arguments[bf])Object[qL(0x933)][qL(0x52f)][qL(0x6e9)](be,bh)&&(bd[bh]=be[bh]);return bd;},aD[qK(0x821)](this,arguments);},aE=function(bd,be,bf,bg){var qM=ol,bh,bi=arguments[qM(0x6db)],bj=bi<0x3?be:null===bg?bg=Object[qM(0x2af)](be,bf):bg;if('object'==typeof Reflect&&qM(0x9d2)==typeof Reflect[qM(0x9d5)])bj=Reflect[qM(0x9d5)](bd,be,bf,bg);else{for(var bk=bd['length']-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[qM(0x1d6)](be,bf,bj),bj;},aF=function(bd,be){var qN=ol;if(qN(0x455)==typeof Reflect&&qN(0x9d2)==typeof Reflect['metadata'])return Reflect[qN(0x1b8)](bd,be);},aG=function(bd,be,bf,bg){return new(bf||(bf=Promise))(function(bh,bi){var qR=a0b;function bj(bm){var qO=a0b;try{bl(bg[qO(0x435)](bm));}catch(bn){bi(bn);}}function bk(bm){var qP=a0b;try{bl(bg[qP(0x567)](bm));}catch(bn){bi(bn);}}function bl(bm){var qQ=a0b,bn;bm[qQ(0x1ec)]?bh(bm[qQ(0x8b5)]):(bn=bm[qQ(0x8b5)],bn instanceof bf?bn:new bf(function(bo){bo(bn);}))[qQ(0xa17)](bj,bk);}bl((bg=bg[qR(0x821)](bd,be||[]))[qR(0x435)]());});},aH=function(bd,be){var qS=ol,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)},qS(0x9d2)==typeof Symbol&&(bi[Symbol['iterator']]=function(){return this;}),bi;function bk(bl){return function(bm){return function(bn){var qT=a0b;if(bf)throw new TypeError('Generator\x20is\x20already\x20executing.');for(;bj;)try{if(bf=0x1,bg&&(bh=0x2&bn[0x0]?bg[qT(0x3d8)]:bn[0x0]?bg[qT(0x567)]||((bh=bg[qT(0x3d8)])&&bh[qT(0x6e9)](bg),0x0):bg['next'])&&!(bh=bh['call'](bg,bn[0x1]))['done'])return bh;switch(bg=0x0,bh&&(bn=[0x2&bn[0x0],bh[qT(0x8b5)]]),bn[0x0]){case 0x0:case 0x1:bh=bn;break;case 0x4:return bj[qT(0x898)]++,{'value':bn[0x1],'done':!0x1};case 0x5:bj['label']++,bg=bn[0x1],bn=[0x0];continue;case 0x7:bn=bj[qT(0x843)][qT(0x85c)](),bj[qT(0x1e5)][qT(0x85c)]();continue;default:if(!(bh=bj[qT(0x1e5)],(bh=bh['length']>0x0&&bh[bh['length']-0x1])||0x6!==bn[0x0]&&0x2!==bn[0x0])){bj=0x0;continue;}if(0x3===bn[0x0]&&(!bh||bn[0x1]>bh[0x0]&&bn[0x1]<bh[0x3])){bj['label']=bn[0x1];break;}if(0x6===bn[0x0]&&bj['label']<bh[0x1]){bj[qT(0x898)]=bh[0x1],bh=bn;break;}if(bh&&bj[qT(0x898)]<bh[0x2]){bj[qT(0x898)]=bh[0x2],bj[qT(0x843)][qT(0x607)](bn);break;}bh[0x2]&&bj[qT(0x843)][qT(0x85c)](),bj['trys'][qT(0x85c)]();continue;}bn=be[qT(0x6e9)](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'])(ol(0x9df)),aJ=(0x0,au['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'),aK=(function(){var qV=ol;function bd(be,bf,bg,bh,bi){var qU=a0b;void 0x0===bh&&(bh=''),void 0x0===bi&&(bi=''),this['cd']=new a6['M'](),this[qU(0x5bc)]=be,this[qU(0x58a)]=bf+'',this[qU(0x68b)]=bg,this[qU(0x1b7)]=bh,this['c']=new az['Y']();}return Object[qV(0x1d6)](bd['prototype'],'version',{'get':function(){var qW=qV,be,bf=qW(0x5b8)[qW(0xa20)]('.');return be=0x0==bf[0x0]&&bf[0x1]<0x3?'v0':0x0==bf[0x0]&&0x3==bf[0x1]&&bf[0x2]<0x4?'v1':'v2',aI[qW(0x338)]('sdk\x20version',be),be;},'enumerable':!0x1,'configurable':!0x0}),Object[qV(0x1d6)](bd[qV(0x933)],qV(0x82e),{'set':function(be){var qX=qV;console[qX(0x8f1)](qX(0x69a),be),ad['Z'][qX(0x6aa)]=be;},'enumerable':!0x1,'configurable':!0x0}),bd[qV(0x933)]['exsureAuthData']=function(){return aG(this,void 0x0,void 0x0,function(){return aH(this,function(be){var qY=a0b;switch(be[qY(0x898)]){case 0x0:return[0x4,this[qY(0x68b)]()];case 0x1:return[0x2,be['sent']()];}});});},bd[qV(0x933)][qV(0x37f)]=function(){return aG(this,void 0x0,void 0x0,function(){var be,bf,bg;return aH(this,function(bh){var qZ=a0b;switch(bh['label']){case 0x0:return[0x4,this['c']['init']()];case 0x1:return bh[qZ(0x8a6)](),[0x4,this['_ts']()];case 0x2:return be=bh[qZ(0x8a6)](),[0x4,this[qZ(0x651)]()];case 0x3:return bf=bh[qZ(0x8a6)](),bg=this['c'][qZ(0x72c)](be+'',this[qZ(0x1b7)],this[qZ(0x58a)]),[0x2,aD(aD({},bf),{'key':bg,'sdkts':be})];}});});},bd[qV(0x933)][qV(0x5f9)]=function(){return aG(this,void 0x0,void 0x0,function(){var be,bf,bg=this;return aH(this,function(bh){var r0=a0b;switch(bh[r0(0x898)]){case 0x0:return[0x4,this[r0(0x212)]()];case 0x1:return be=bh['sent'](),bf=''[r0(0x893)](aJ)[r0(0x893)](be['ti']),[0x2,new Promise(function(bi,bj){var r1=r0;wx[r1(0x176)]({'url':bf,'method':r1(0x7fb),'header':{},'success':function(bk){var r2=r1,bl=bk[r2(0x53b)],bm=bg['c'][r2(0x913)](bl),bn=JSON['parse'](bm);bi(bn[(0x0,au['rR'])(au['gz'])]);},'fail':function(bk){var r3=r1;console[r3(0x8f1)](r3(0x868),bk),bi(bk);}});})];}});});},bd[qV(0x933)]['_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 r4=a0b;switch(bu[r4(0x898)]){case 0x0:return bg=r4(0x84b)===bf['Type']&&JSON[r4(0x975)](bf),this[r4(0x722)]?[0x3,0x2]:(bh=this,[0x4,this['exsurehad']()]);case 0x1:bh['had']=bu[r4(0x8a6)](),bu[r4(0x898)]=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 r5=a0b;switch(by[r5(0x898)]){case 0x0:return bf[r5(0x49b)]=this[r5(0x410)],bv=this['c'][r5(0x8de)](JSON[r5(0x975)](Object[r5(0x326)]({'LicenseKey':this[r5(0x5bc)],'AccountArea':'en'===ad['Z']['lang']?0x1:0x0},bf))),bw={'p':bv},[0x4,new Promise(function(bz,bA){var r6=r5;wx['request']({'url':be,'method':r6(0x7fb),'header':{'content-type':r6(0x543),'appid':bx[r6(0x58a)],'timestamp':bx['had'][r6(0x58b)],'signature':bx[r6(0x722)][r6(0x406)],'authorize':bx[r6(0x722)][r6(0x1f2)],'wechatappid':bx['wechatAppId'],'sdktimestamp':bx[r6(0x722)][r6(0x8da)]+'','Language':'en'===ad['Z']['lang']?r6(0x22e):'zh-CN'},'data':bw,'success':function(bB){var r7=r6,bC=bB[r7(0x53b)],bD=bx['c'][r7(0x913)](bC);bz(JSON[r7(0x92d)](bD));},'fail':function(bB){var r8=r6;console[r8(0x8f1)](r8(0x868),bB),bz(bB);}});})];case 0x1:return[0x2,by[r5(0x8a6)]()];}});});},bg?[0x3,0x3]:(bk=!0x1,[0x3,0x6]);case 0x3:return r4(0x3bf)!==aA['Z'][r4(0x52c)](bg)?[0x3,0x5]:(bl=0x0,[0x4,new Promise(function(bv,bw){var bx=function(){bl++,bj=setTimeout(function(){var r9=a0b;r9(0x3bf)!==aA['Z'][r9(0x52c)](bg)?(clearTimeout(bj),bv(void 0x0),bk=!0x0):bl<0xa?bx():(clearTimeout(bj),bv(void 0x0),bk=!0x1);},0x12c);};bx();})]);case 0x4:return bu['sent'](),[0x3,0x6];case 0x5:aA['Z'][r4(0x8a0)](bg)?(bk=!0x0,bm=aA['Z'][r4(0x52c)](bg),bn=bm[(0x0,au['rR'])(au['Eh'])],((bo=+new Date())-0x3e8*bn>0x927c0||0x3e8*bn>bo+0x927c0)&&(bk=!0x1)):(aA['Z'][r4(0x6c5)](bg,r4(0x3bf)),bk=!0x1),bu[r4(0x898)]=0x6;case 0x6:return bk?(bq=aA['Z'][r4(0x52c)](bg),[0x3,0x9]):[0x3,0x7];case 0x7:return[0x4,bi()];case 0x8:bq=bu[r4(0x8a6)](),bu['label']=0x9;case 0x9:return 0x65!=(bp=bq)[r4(0x8bd)]?[0x3,0xc]:(br=this,[0x4,this[r4(0x37f)]()]);case 0xa:return br[r4(0x722)]=bu[r4(0x8a6)](),[0x4,bi()];case 0xb:return bp=bu[r4(0x8a6)](),[0x3,0x10];case 0xc:return 0x6a!=bp[r4(0x8bd)]?[0x3,0xf]:(bs=this,[0x4,this['exsurehad']()]);case 0xd:return bs['had']=bu[r4(0x8a6)](),[0x4,bi()];case 0xe:return bp=bu[r4(0x8a6)](),[0x3,0x10];case 0xf:0x0!==bp[r4(0x8bd)]&&(bg&&aA['Z'][r4(0x2a0)](bg),0x65==bp[r4(0x8bd)]?a4['N']['trigger'](r4(0x1a6),{'code':ae['U'][r4(0x217)],'message':r4(0x527)}):0x6a==bp['Code']?a4['N'][r4(0x275)](r4(0x1a6),{'code':ae['U']['AUTHORIZE_TIMEOUT'],'message':r4(0x88a)}):a4['N'][r4(0x275)](r4(0x1a6),{'code':ae['U']['REQUEST_FAIL'],'message':bp[r4(0x59d)]})),bu[r4(0x898)]=0x10;case 0x10:return 0x0===bp[r4(0x8bd)]?(bp['WeChatAppId']!==this[r4(0x1b7)]&&(a4['N'][r4(0x275)]('error',{'code':ae['U'][r4(0x8b6)],'message':ad['Z']['t'](r4(0x6b0))}),bp={'Code':-0x1,'Data':{}}),bg&&aA['Z'][r4(0x6c5)](bg,bp)):aA['Z']['remove'](bg),[0x2,bp];}});});},bd['prototype']['_uc']=function(){return aG(this,void 0x0,void 0x0,function(){return aH(this,function(be){var ra=a0b;switch(be[ra(0x898)]){case 0x0:return[0x4,this['cd']['load']()];case 0x1:return be[ra(0x8a6)](),[0x2,this['cd'][ra(0x97b)](0x1e)];}});});},bd['prototype'][qV(0x20b)]=function(){var rb=qV;return!(rb(0x455)!=typeof navigator||rb(0xa16)!=typeof navigator[rb(0x50b)]||!/electron/i['test'](navigator[rb(0x50b)])||location[rb(0x766)]&&('string'!=typeof location[rb(0x766)]||!location[rb(0x766)][rb(0x300)](rb(0x925))));},bd[qV(0x933)]['go']=function(){return aG(this,void 0x0,void 0x0,function(){var be,bf,bg,bh,bi,bj;return aH(this,function(bk){var rc=a0b;switch(bk[rc(0x898)]){case 0x0:return bk[rc(0x1e5)][rc(0x607)]([0x0,0x3,,0x4]),[0x4,this[rc(0x212)]()];case 0x1:return be=bk[rc(0x8a6)](),[0x4,this['_f'](''[rc(0x893)](aJ)[rc(0x893)](be['au']),{})];case 0x2:return bf=bk[rc(0x8a6)](),bg=(bf[rc(0x402)]||{})[(0x0,au['rR'])(au['hJ'])]||[],bh=[],bi=Object[rc(0x76b)](au['ty']),bg['forEach'](function(bl){var rd=rc,bm=(0x0,au['$G'])(bl),bn=bi[rd(0x412)](function(bo){return bo[0x1]===bm;});bh[rd(0x607)](bn[0x0]);}),aA['Z'][rc(0x6c5)]((0x0,au['rR'])(au['Ty']),bh),[0x2,bf];case 0x3:return bj=bk[rc(0x8a6)](),console[rc(0x8f1)](rc(0x8f7),bj),[0x2,new Error('fetch\x20auth\x20failed')];case 0x4:return[0x2];}});});},bd['prototype'][qV(0x26c)]=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 re=a0b;switch(bj['label']){case 0x0:return re(0x84b)===be[re(0x17e)]&&(void 0x0!==be[re(0x36e)]&&''!==be[re(0x36e)]||(be['Label']=[ad['Z']['t'](re(0x66c)),ad['Z']['t'](re(0x27b))])),[0x4,this['_uc']()];case 0x1:return bf=bj[re(0x8a6)](),[0x4,this['_f'](''[re(0x893)](aJ)[re(0x893)](bf['ae']),aD({'Type':re(0x950),'PageNumber':0x0,'PageSize':0x3e8},be))];case 0x2:return(bg=bj['sent']())&&0x0==bg[re(0x8bd)]?(bh=bg['Data'][re(0x1f5)],bi=[],(bi=re(0x84b)===be[re(0x17e)]?bh[re(0x59b)](function(bk){var rf=re;return!(bk['Label'][rf(0x962)](ad['Z']['t'](rf(0x23f)))>-0x1&&!aL(rf(0x535))||bk[rf(0x36e)][rf(0x962)](ad['Z']['t']('1005'))>-0x1&&!aL('avatar_vr')||bk[rf(0x36e)][rf(0x962)](ad['Z']['t'](rf(0x71b)))>-0x1&&!aL(rf(0x393)));}):bh)[re(0x461)](function(bk){aA['Z']['set'](bk['EffectId'],bk);}),[0x2,bi]):[0x2,bg];}});});},bd[qV(0x933)][qV(0x33c)]=function(be){return aG(this,void 0x0,void 0x0,function(){var bf,bg;return aH(this,function(bh){var rg=a0b;switch(bh[rg(0x898)]){case 0x0:return aA['Z'][rg(0x8a0)](be[rg(0x742)])?[0x2,aA['Z'][rg(0x52c)](be[rg(0x742)])]:[0x4,this[rg(0x212)]()];case 0x1:return bf=bh[rg(0x8a6)](),[0x4,this['_f'](''[rg(0x893)](aJ)[rg(0x893)](bf['ef']),be)];case 0x2:return(bg=bh[rg(0x8a6)]())&&0x0==bg[rg(0x8bd)]&&bg['Data']&&bg[rg(0x402)][rg(0xa0e)]?(aA['Z'][rg(0x6c5)](be[rg(0x742)],bg[rg(0x402)]),[0x2,bg['Data']]):bg[rg(0x402)]&&!bg[rg(0x402)]['Url']?[0x2,{'message':rg(0x80d)}]:[0x2,bg];}});});},bd['prototype'][qV(0xa15)]=function(be){return void 0x0===be&&(be={}),aG(this,void 0x0,void 0x0,function(){var bf;return aH(this,function(bg){var rh=a0b;switch(bg[rh(0x898)]){case 0x0:return[0x4,this['getAllEffectList'](be)];case 0x1:return(bf=bg[rh(0x8a6)]())&&bf[rh(0x409)]&&bf['OtherEffectList']['length']&&a4['N'][rh(0x275)](rh(0x1a6),{'code':ae['U'][rh(0x4e4)],'message':ad['Z']['t'](rh(0x48c))}),bf&&bf[rh(0x1f5)]?'Preset'===be[rh(0x17e)]?[0x2,bf['EffectList']]:[0x2,bf[rh(0x1f5)]['filter'](function(bh){var ri=rh;return ri(0x950)===bh[ri(0x17e)];})]:[0x2,bf];}});});},bd[qV(0x933)][qV(0x2e6)]=function(){return aG(this,void 0x0,void 0x0,function(){var be;return aH(this,function(bf){var rj=a0b;switch(bf[rj(0x898)]){case 0x0:return[0x4,this['getAllEffectList']({'Type':'Preset','Label':ad['Z']['t'](rj(0x4d0))})];case 0x1:return(be=bf[rj(0x8a6)]())&&be[rj(0x1f5)]?[0x2,be['EffectList']]:[0x2,be];}});});},bd['prototype'][qV(0x677)]=function(be){return aG(this,void 0x0,void 0x0,function(){var bf,bg;return aH(this,function(bh){var rk=a0b;switch(bh['label']){case 0x0:return bf=ad['Z']['t'](rk(0x71b)),'VR'===be&&(bf=ad['Z']['t'](rk(0x9e6))),[0x4,this[rk(0x26c)]({'Type':'Preset','Label':bf})];case 0x1:return(bg=bh[rk(0x8a6)]())&&bg[rk(0x1f5)]?[0x2,bg[rk(0x1f5)]]:[0x2,bg];}});});},bd=aE([aB['e'],aF(qV(0x608),[String,String,Function,String,String])],bd);}()),aL=function(bd){var rl=ol,be=aA['Z']['get']((0x0,au['rR'])(au['Ty'])),bf=Object[rl(0x76b)](au['ty'])[rl(0x412)](function(bg){return bg[0x1]===(0x0,au['$G'])(bd);});return!(!be||!be[rl(0x412)](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(){var rm=a0b;new(aO())({'id':'1309122168'==bd?rm(0xa24):'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[ol(0x97a)][ol(0x49e)]+ol(0x8ec);class aW extends a4['Q']{[ol(0x403)]=null;['stickers']=[];[ol(0x59b)]=null;[ol(0x3e7)]=!0x1;constructor(bd){var rn=ol;const {auth:be,live:bf}=bd;super();const {licenseKey:bg,appId:bh,authFunc:bi}=be,bj=wx[rn(0x552)]();this[rn(0x2c5)]=new aK(bg,bh,bi,bj[rn(0x923)]['appId']),aQ(bh),this[rn(0x770)]=this[rn(0x2c5)]['go']()[rn(0xa17)](bk=>0x0===bk[rn(0x8bd)]&&(this[rn(0x275)]('created'),this['trigger']('ready'),!0x0))['catch'](()=>!0x1),this[rn(0x534)]=bf;}async[ol(0x1f7)](){var ro=ol;this['getPusherContent']()[ro(0x1f7)]();}async[ol(0x348)](){var rp=ol;const bd=this[rp(0x17d)]();let be,bf;return this[rp(0x1f7)](),this[rp(0x403)]&&(be=new Promise((bg,bh)=>{var rq=rp;bd[rq(0x408)]({'type':rq(0xa14),'stickers':[{'id':this[rq(0x403)]['id'],'title':this['background']['id'],'len':0x1,'active':-0x1,'path':this[rq(0x403)]['path'],'segtype':0x0}],'success':bi=>{bg(bi);},'fail':bh});})),this[rp(0x4a5)]['length']&&(bf=new Promise((bg,bh)=>{var rr=rp;bd[rr(0x408)]({'type':rr(0x5fd),'stickers':this[rr(0x4a5)][rr(0x684)](bi=>({'id':bi['id'],'title':bi['id'],'len':0x1,'active':-0x1,'pos':bi[rr(0x355)],'path':bi['path'],'segtype':0x0})),'success':bi=>{bg(bi);},'fail':bh});})),Promise[rp(0x1ea)]([be,bf]);}async[ol(0x8d7)](bd=[]){var rt=ol;const be=bd['map'](async bf=>{var rs=a0b;const [bg,bh]=this[rs(0x638)](bf['url']);return bf['id']=bg,bf[rs(0x194)]=await this['getZipDataPath'](bf[rs(0x260)],bg,bh),bf;});return Promise[rt(0x1ea)](be);}async['getEffect'](bd){var ru=ol;if(ru(0x811)===bd)return{'Url':'https://webar-static.tencent-cloud.com/custom-effect/1309122168/1658976205287/effect.bin'};return await this[ru(0x2c5)][ru(0x33c)]({'EffectId':bd});}[ol(0x17d)](){var rv=ol;return this['config'][rv(0x8ce)]||(this['config'][rv(0x8ce)]=wx[rv(0x36b)]()),this[rv(0x534)][rv(0x8ce)];}[ol(0x638)](bd=''){var rw=ol;const be=bd[rw(0xa20)]('/'),bf=be[be['length']-0x1]||rw(0x6b9),bg=parseInt(new Date()['valueOf']()/0x3e8);let [bh='test',bi=rw(0x3a2)]=bf[rw(0xa20)]('.');return bh=bh['replace'](/[^a-zA-Z0-9]/g,'')+bg,[bh,bi];}async[ol(0x8a3)](bd){return new Promise((be,bf)=>{wx['getImageInfo']({'src':bd,'success':bg=>{var rx=a0b;be({'width':bg['width'],'height':bg[rx(0x4f8)]});},'fail':bf});});}async[ol(0x784)](bd,be){var ry=ol;await(0x0,aS['sN'])(aV);const bf=aV+'/'+bd,bg=await(0x0,aS['nH'])(bf),bh=wx[ry(0x82d)]();if(!bg){const bi=await(0x0,aS['pe'])(bd,be);await new Promise((bj,bk)=>{var rz=ry;bh[rz(0x4a7)]({'zipFilePath':bi,'targetPath':bf,'success':bj,'fail':bk,'complete':()=>{var rA=rz;bh[rA(0x598)]({'filePath':bi});}});});}return new Promise((bj,bk)=>{var rB=ry;bh[rB(0x8f3)]({'filePath':bf+rB(0x3e2),'encoding':rB(0x4ea),'success':({data:bl})=>{var rC=rB;const bm=JSON[rC(0x92d)](bl);bj([bf,bm]);},'fail':bk});});}async[ol(0x719)](bd){return new Promise((be,bf)=>{var rD=a0b;wx[rD(0x176)]({'url':bd,'responseType':rD(0x904),'success':bg=>{const {data:bh}=bg;be(bh);},'fail':bg=>{bf(bg);}});});}async[ol(0x41a)](bd,be,bf){var rE=ol;await(0x0,aS['sN'])(aV);const bg=aV+'/'+be+rE(0x91e);if(await(0x0,aS['nH'])(bg))return bg;const bh=await this['download'](bd),bi=new Uint8Array(bh),bj=(0x0,aR['Xo'])({[be+rE(0x336)+bf]:bi});return await new Promise((bk,bl)=>{var rF=rE;wx['getFileSystemManager']()[rF(0x8f4)]({'filePath':bg,'data':bj[rF(0x938)],'encoding':rF(0x5e7),'success':()=>{bk();},'fail':bm=>{bl(bm);}});}),bg;}async['setBackground'](bd){var rG=ol;const {type:be,src:bf=''}=bd;if(rG(0x73b)!==be)return new Error(rG(0x6b6));if(!bf)return this[rG(0x403)]=null,this[rG(0x348)]();if(!await this[rG(0x770)])throw this['trigger'](rG(0x1a6),{'code':ae['U'][rG(0x8b6)],'message':'Arsdk\x20is\x20not\x20ready'}),new Error('Arsdk\x20is\x20not\x20ready');return[this[rG(0x403)]]=await this['transSticker']([{'url':bf}]),this['resetStickers']();}async[ol(0x90e)](bd){var rH=ol;let be=wx[rH(0x82d)]();return new Promise((bf,bg)=>{be['unlink']({'filePath':bd,'success':bf,'fail':bg});});}async['_setFilter'](bd,be=0x1){var rI=ol;this[rI(0x59b)]=[bd,be];const bf=this[rI(0x17d)]();return new Promise((bg,bh)=>{var rJ=rI;bf[rJ(0x58e)]({'path':bd,'md5':'','alpha':be,'success':bg,'fail':bh});});}async[ol(0x198)](bd=[]){var rK=ol;if(!bd?.[rK(0x6db)])return;if(!await this[rK(0x770)])throw this[rK(0x275)]('error',{'code':ae['U'][rK(0x8b6)],'message':rK(0x5ea)}),new Error(rK(0x5ea));if(!nodeId)throw new Error('require\x20paramter:\x20id');return this[rK(0x4a5)]=await this[rK(0x8d7)](bd),this[rK(0x348)]();}async[ol(0x6c2)](bd,be=0x1){var rL=ol;if(!await this['checkReady'])throw this['trigger'](rL(0x1a6),{'code':ae['U'][rL(0x8b6)],'message':rL(0x5ea)}),new Error(rL(0x5ea));const {Url:bf}=await this['getEffect'](bd),[bg,bh]=await this[rL(0x784)](bd,bf),bi=bg+'/'+bh[rL(0x59b)][0x0][rL(0x98d)];return await(0x0,aS['nH'])(bi),this[rL(0x68f)](bi,be);}[ol(0x87f)](){var rM=ol;if(this['disabled'])return;this[rM(0x3e7)]=!0x0;const bd=this[rM(0x17d)]();bd[rM(0x1f7)](),bd[rM(0x5db)]();}async['enable'](){var rN=ol;if(this[rN(0x3e7)])return this['disabled']=!0x1,this[rN(0x59b)]&&await this['_setFilter'](...this[rN(0x59b)]),this['resetStickers']();}}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']{['_input'];[ol(0xa02)];['_ready']=!0x1;[ol(0x690)];[ol(0x859)];[ol(0x92b)];[ol(0x584)];[ol(0x63a)];[ol(0x8ef)];[ol(0x9cb)]=[];[ol(0x5f8)]=new Map();[ol(0x59c)];[ol(0x39d)];[ol(0x51c)]=0x0;[ol(0x999)]=!0x1;[ol(0x764)]=!0x1;['disabled']=!0x1;['el']=new ay['e']({});['takePhotoPromises']=[];get['enableFaceDetect'](){var rO=ol;return!this[rO(0x3e7)]&&(this[rO(0x999)]||this['flag_2']);}[ol(0x87f)](){var rP=ol;this[rP(0x3e7)]||(this['disabled']=!0x0,this[rP(0x690)]&&this[rP(0x690)][rP(0x87f)]());}[ol(0x2d2)](){var rQ=ol;this['disabled']&&(this['disabled']=!0x1,this['_renderer']&&this['_renderer'][rQ(0x2d2)]());}constructor(bd){var rR=ol;ac[rR(0x6f8)](),super();const {auth:be,input:bf,live:bg,camera:bh,beautify:bi,loading:bj,output:bk,plugin3d:bl,language:bm}=bd;if(ad['Z'][rR(0x6aa)]=bm||'zh',bf){if('string'!=typeof bf)return void a4['N'][rR(0x275)](rR(0x1a6),{'message':ad['Z']['t'](rR(0x3a4)),'code':ae['U'][rR(0x228)]});this[rR(0x39d)]=aZ;}else{if(bh)this[rR(0x39d)]=aX;else{if(!bg||!bg[rR(0x8ce)])return void a4['N'][rR(0x275)](rR(0x1a6),{'message':ad['Z']['t']('0005'),'code':ae['U'][rR(0x228)]});if(this[rR(0x39d)]=b0,rR(0x25b)===bg[rR(0x556)])return new aW(bd);if(!al)throw new Error(rR(0x3a1));}}this[rR(0x9ac)]=this['startAuth'](be);const bn={'input':bf,'live':bg,'mirror':this['input_type']===aX&&bh['mirror'],'beautify':bi,'plugin3d':bl,'output':new wx['window'][(rR(0x87b))](bk)};bj&&bj[rR(0x2d2)]&&(bn[rR(0x19e)]=bj[rR(0x2d2)],bn[rR(0x208)]={'size':bj['size'],'lineWidth':bj[rR(0x31a)],'strokeColor':bj[rR(0x8f6)]}),this[rR(0x859)]=bn,this['getAutoSize'](bf||bh||bg)['then'](({width:bo,height:bp})=>{var rS=rR;this['_options']['width']=bo,this[rS(0x859)]['height']=bp,rS(0x5a2)===au['iN']&&this[rS(0x39d)]!==b0&&(this[rS(0x63a)]=new wx[(rS(0x971))][(rS(0x87b))](wx['createOffscreenCanvas']({'type':rS(0x22d),'width':this['_options'][rS(0x4e6)],'height':this[rS(0x859)]['height']})),this['outputRenderer']=new ac[(rS(0x602))]({'view':this['outputCanvas'],'width':this[rS(0x859)]['width'],'height':this['_options'][rS(0x4f8)],'preserveDrawingBuffer':!0x0,'antialias':!0x1})),this['init'](),aQ(be[rS(0x259)],be[rS(0x314)]);}),wx['onMemoryWarning'](()=>{var rT=rR;console['log'](rT(0x7a4)),this['el'][rT(0x59f)](),(0x0,aM['UI'])();});}async['getAutoSize'](bd){var rU=ol;if(this[rU(0x39d)]===b0){let be=bd?.[rU(0x9cc)];return be?.['realHeight']&&be?.[rU(0x612)]||(be=b2[rU(0x5e6)](0x2d0)),{'width':be?.[rU(0x612)],'height':be?.[rU(0x9e7)]};}return this[rU(0x39d)]===aX?{'width':bd['width'],'height':bd['height']}:rU(0xa16)==typeof bd?new Promise((bf,bg)=>{var rV=rU;const bh=wx[rV(0x35e)]('2d')['createImage']();bh['onload']=()=>{var rW=rV;bf({'width':bh[rW(0x4e6)],'height':bh[rW(0x4f8)]});},bh[rV(0x6bb)]=function(){var rX=rV;a4['N'][rX(0x275)](rX(0x1a6),{'message':ad['Z']['t']('0006'),'code':ae['U'][rX(0x228)]}),bg();},bh[rV(0x98d)]=bd;}):void 0x0;}[ol(0x526)](){var rY=ol;wx[rY(0x46a)]=this[rY(0x859)][rY(0x1e8)][rY(0x46a)],wx[rY(0x49d)]=this['_options'][rY(0x1e8)][rY(0x49d)],this[rY(0xa02)]=ak?new ab(this[rY(0x859)]):new a7(),this[rY(0x7e0)]=new ar({...this['_options'],'manual':this[rY(0x39d)]===aX}),this['_renderer']=new as['g'](this[rY(0x859)]),this['inputNode']=this[rY(0x555)](),Promise['all']([this[rY(0x9ac)]['then'](()=>this['trigger'](rY(0x54e))),this['_initCommonResLoader'](),this[rY(0x445)]['init'](),this['_detector'][rY(0x526)](),this['_renderer'][rY(0x392)](rY(0x23e),this[rY(0x859)]['beautify']||{})])[rY(0xa17)](()=>{var rZ=rY;this[rZ(0x7e0)][rZ(0x9b1)]=this['inputNode'],this[rZ(0x80e)](this[rZ(0x859)][rZ(0x785)]),this['_ready']||(this[rZ(0x275)](rZ(0x704)),this[rZ(0x82f)]=!0x0),this[rZ(0x6f5)]();}),a4['N']['on'](rY(0x1a6),bd=>{var s0=rY;this[s0(0x275)](s0(0x1a6),bd);});}[ol(0x6f5)](){var s2=ol;this['_renderFunc']=async()=>{var s1=a0b;const bd=s1(0x4b7)===this['_options'][s1(0x2a5)]?.[s1(0x2cd)]?0x4:0x2;this['count']%bd==0x0&&this[s1(0x292)]()['catch'](be=>console[s1(0x8f1)](s1(0x68a),be)),this['count']++,this[s1(0x51c)]>=0x4&&(this[s1(0x51c)]=0x0);},ac['Ticker']['shared'][s2(0x611)](this[s2(0x92b)]);}[ol(0x647)](bd){var s3=ol;const be=+new Date();console[s3(0x8f1)](bd+s3(0x373)+(be-this['currentTime'])),this['currentTime']=be;}async[ol(0x292)](){var s4=ol;if(this[s4(0x875)])return;const bd=this[s4(0x7e0)][s4(0x1bc)]();if(this[s4(0x5c6)]){if(!bd)return!0x1;const be=await this[s4(0xa02)]['send'](bd),{landmarks:bf,angles:bg,meshVertex:bh,lipVertex:bi}=be;this['_renderer'][s4(0x4f4)](bh),this[s4(0x690)][s4(0x882)](bf),this[s4(0x690)]['tick']({'landmarks':bf,'meshVertex':bh,'lipVertex':bi,'angles':bg,'image':this[s4(0x39d)]===b0?this[s4(0x7e0)]['canvas']:bd,'isLivePusher':this[s4(0x39d)]===b0});}else this[s4(0x690)]['tick']({'landmarks':[],'meshVertex':[],'lipVertex':[],'angles':{},'image':this[s4(0x39d)]===b0?this[s4(0x7e0)][s4(0x472)]:bd,'isLivePusher':this[s4(0x39d)]===b0});this[s4(0x4dd)](),this['_takePhoto'](),this[s4(0x3fc)]();}[ol(0x4dd)](){var s5=ol;if(this['recording']){if('offscreen'===au['iN']){if(this['ttt']=new Date(),this[s5(0x584)])this[s5(0x584)]['texture'][s5(0x783)]();else{let bd=ac['Texture'][s5(0x170)](this[s5(0x690)][s5(0x9fd)]);this[s5(0x584)]=new ac[(s5(0x6ce))](bd),this['renderSprite'][s5(0x347)][s5(0x6c5)](0.5,0.5),this[s5(0x584)][s5(0x93f)]['x']=this['renderSprite'][s5(0x4e6)]/0x2,this[s5(0x584)][s5(0x93f)]['y']=this[s5(0x584)]['height']/0x2,!ag||s5(0x937)!=ai&&s5(0x5c7)!=ai&&s5(0x9a8)!=ai?this[s5(0x584)][s5(0x8a2)]['set'](0x1,0x1):this[s5(0x584)]['scale']['set'](0x1,-0x1);}this[s5(0x8ef)][s5(0x292)](this[s5(0x584)]),this[s5(0x9e0)]||(this[s5(0x9e0)]=!0x0);}else this[s5(0x74a)][s5(0x54f)]();}else{if(this['takingPhoto']){const be=this[s5(0x690)][s5(0x756)]();this['cacheImage']=be;}}}async[ol(0x700)](bd){var s6=ol;const {licenseKey:be,appId:bf,authFunc:bg}=bd,bh=wx[s6(0x552)]();this['_a']=new aK(be,bf,bg,bh[s6(0x923)][s6(0x259)]);const bi=await this['_a']['go']();return 0x0!==bi?.[s6(0x8bd)]?(this[s6(0x275)](s6(0x1a6),{'code':ae['U']['AUTH_FAIL'],'message':bi[s6(0x59d)]}),Promise[s6(0x693)](bi[s6(0x59d)])):bi;}async['getEffectList'](bd={}){var s7=ol;return await this['_a'][s7(0xa15)](bd);}async[ol(0x33c)](bd){var s8=ol;if(s8(0x811)===bd)return{'Url':'https://webar-static.tencent-cloud.com/custom-effect/1309122168/1658976205287/effect.bin'};const be=await this['_a'][s8(0x33c)]({'EffectId':bd});return be[s8(0xa0e)]?be:Promise[s8(0x693)](be['message']);}async['getCommonFilter'](){return await this['_a']['getFilterList']();}async[ol(0x216)](){var s9=ol;const bd=new ax['KI']();await bd[s9(0x526)]();}[ol(0x555)](){var sa=ol;if(this['input_type']===aZ)return new ap(this[sa(0x859)]);if(this[sa(0x39d)]===aY){const bd=new aw(this[sa(0x859)]);return bd['on'](sa(0x6b3),()=>{var sb=sa;this[sb(0x275)]('ended');}),bd;}return this['input_type']===b0?new an(this[sa(0x859)]):new ao(this[sa(0x859)]);}[ol(0x80e)](bd={}){var sc=ol;Object[sc(0x3be)](bd)[sc(0x571)](be=>sc(0x62e)!==be&&sc(0x697)!==be&&bd[be])?this[sc(0x999)]=!0x0:this[sc(0x999)]=!0x1;}[ol(0x2f3)](bd){var sd=ol;bd=bd||{},bd={...b1,...bd},aL('beautify')?(this[sd(0x80e)](bd),this[sd(0x770)]()[sd(0xa17)](()=>{var se=sd;this[se(0x690)]['switchMode']('Sticker'),this[se(0x690)]['updateBeauty'](se(0x23e),bd);})):this[sd(0x275)](sd(0x1a6),{'code':ae['U']['AUTH_API_FAIL'],'message':ad['Z']['t']('0007')});}['setEffect'](bd,be,bf){var sf=ol;if(!aL(sf(0x430))||!aL(sf(0x4cc)))return void this[sf(0x275)]('error',{'code':ae['U'][sf(0x88c)],'message':ad['Z']['t'](sf(0x462))});if(!this[sf(0x690)]||!this[sf(0x690)][sf(0x26f)])return console['log']('set\x20effect\x20no\x20meshVertex!'),void this[sf(0x275)](sf(0x1a6),{'code':ae['U'][sf(0x9cd)],'message':sf(0x72a)});bd[sf(0x6db)]?this[sf(0x764)]=!0x0:this[sf(0x764)]=!0x1;let bg=[],bh=[],bi=[];if(Array['isArray'](bd))bd[sf(0x461)](bj=>{var sg=sf;if(bj instanceof Object){bg['push'](bj['id']);let bk=bj[sg(0x2cf)];bk=this['_checkVoid'](bk)?0x1:bk,bh[sg(0x607)](bj[sg(0x2cf)]);let bl=bj[sg(0x630)];bi[sg(0x607)](this[sg(0x498)](bl)?bk:bl);}else bg[sg(0x607)](bj),bh[sg(0x607)](0x1),bi['push'](0x1);});else{if(bd instanceof Object){bg=[bd['id']];let bj=bd[sf(0x2cf)];bj=this[sf(0x498)](bj)?0x1:bj,bh=[bj],bh=[bd[sf(0x2cf)]];let bk=bd['filterIntensity'];bi=[this[sf(0x498)](bk)?bj:bk];}else bg=[bd],bh=[0x1],bi=[0x1];}this['setEffectInner'](bg,bh,bi,be,bf);}[ol(0x498)](bd){return null==bd;}[ol(0x7d8)](bd,be,bf,bg,bh){var sh=ol;this['el'][sh(0x59f)](),this[sh(0x9cb)]=bd,this[sh(0x690)][sh(0x9e9)](),Promise[sh(0x1ea)](bd[sh(0x684)](bi=>this[sh(0x33c)](bi)[sh(0xa17)](bj=>bj[sh(0xa0e)])))[sh(0xa17)](async bi=>{var si=sh;bd[si(0x571)](bj=>-0x1===this[si(0x9cb)][si(0x962)](bj))||(await as['g'][si(0x9ef)](bi),this[si(0x690)][si(0x411)](),bd[si(0x571)](bj=>-0x1===this[si(0x9cb)]['indexOf'](bj))||(bg&&si(0x9d2)==typeof bg&&bg(),this[si(0x690)][si(0x335)](si(0x1f8)),this['_renderer'][si(0x322)](bi,be,bf,()=>!!aL(si(0x535))||(this[si(0x275)](si(0x1a6),{'code':ae['U'][si(0x88c)],'message':ad['Z']['t'](si(0x462))}),!0x1))[si(0xa17)](bj=>{})));})['catch'](bi=>{var sj=sh;console['log'](sj(0x1e1),bd,bi),a4['N'][sj(0x275)](sj(0x1a6),{'code':ae['U']['SET_EFFECT_ERROR'],'message':sj(0x1e1),'error':bi}),this[sj(0x690)][sj(0x411)](),bh&&sj(0x9d2)==typeof bh&&bh();});}[ol(0x6c2)](bd,be=0x1,bf,bg){var sk=ol;if(aL(sk(0x59b)))return this[sk(0x690)]&&this['_renderer'][sk(0x26f)]?void(bd&&sk(0x6a1)!==bd?(this[sk(0x5f8)]['has'](bd)||this[sk(0x690)][sk(0x9e9)](),this[sk(0x33c)](bd)['then'](async bh=>{var sl=sk;this[sl(0x5f8)][sl(0x8a0)](bd)||await as['g']['preloadEffects']([bh[sl(0xa0e)]]),this[sl(0x690)]['hideLoading'](),this[sl(0x5f8)]['set'](bd,bh[sl(0xa0e)]),bf&&sl(0x9d2)==typeof bf&&bf(),this[sl(0x690)][sl(0x335)](sl(0x1f8)),this[sl(0x690)][sl(0x562)](bh[sl(0xa0e)],be);})[sk(0x7e1)](bh=>{var sm=sk;a4['N'][sm(0x275)](sm(0x1a6),{'code':ae['U'][sm(0x235)],'message':'set\x20filter\x20error','error':bh}),this[sm(0x690)][sm(0x411)](),bg&&sm(0x9d2)==typeof bg&&bg();})):this[sk(0x690)][sk(0x628)]()):(console[sk(0x8f1)](sk(0x299)),void this[sk(0x275)](sk(0x1a6),{'code':ae['U'][sk(0x235)],'message':sk(0x72a)}));this[sk(0x275)](sk(0x1a6),{'code':ae['U']['AUTH_API_FAIL'],'message':ad['Z']['t'](sk(0x462))});}async[ol(0x770)](){return new Promise(bd=>{let be;const bf=()=>{var sn=a0b;this[sn(0x82f)]?(bd(),be&&clearTimeout(be)):be=setTimeout(bf,0x3e8);};bf();});}async[ol(0xa09)](bd={'audio':{'format':ol(0x921)}}){var so=ol;if(!this[so(0x86e)]){if(this[so(0x39d)]===b0)throw new Error(so(0x433));return this['recording']=!0x0,this[so(0x74a)]=new av({'canvas':so(0x5a2)===au['iN']?this[so(0x63a)]:this['_options']['output'],...bd}),await this[so(0x74a)]['start'](),this[so(0x2ae)]=+new Date(),so(0x5a2)===au['iN']&&(this[so(0x59c)]=wx[so(0x91c)](au['d9']+so(0xa1b)),this[so(0x59c)][so(0x798)](()=>{var sp=so;this[sp(0x74a)]['loop']();}),this['tickworker'][so(0x6ac)](so(0x1d1))),this[so(0x74a)];}}async[ol(0x2d1)](bd={'useOriginAudio':!0x1,'destroy':!0x1}){var sq=ol;if(!this[sq(0x86e)])return;if(ag){const bf=0xbb8,bg=bh=>new Promise((bi,bj)=>{var sr=sq;console[sr(0x8f1)](sr(0x4d8),bh),setTimeout(()=>bi(),bh);});await bg(Math[sq(0x1b3)](0x0,bf-(+new Date()-this[sq(0x2ae)])));}this[sq(0x59c)][sq(0x6ac)]('stop'),this[sq(0x59c)]['terminate']();const be=await this[sq(0x74a)][sq(0x3b3)](bd);return this[sq(0x74a)]=null,this[sq(0x86e)]=!0x1,be;}async[ol(0x6de)](bd){return new Promise((be,bf)=>{var ss=a0b;wx[ss(0x6de)]({'src':bd,'success':bg=>{be(bg);},'fail':()=>{var st=ss;bf({'errMsg':st(0x604)});}});});}async['takePhoto'](){return new Promise(bd=>{var su=a0b;this[su(0x849)][su(0x607)](bd);});}[ol(0x771)](){var sv=ol;const bd=this[sv(0x849)][sv(0x669)]();if(bd){const bl=this[sv(0x858)]||this[sv(0x690)][sv(0x756)](),{data:bm,width:bn,height:bo}=bl;for(var be=new Uint8ClampedArray(this[sv(0x4a8)](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[sv(0x6c5)](be['subarray'](bj,bj+bg)),be[sv(0x17a)](bj,bk,bk+bg),be[sv(0x6c5)](bh,bk);}bd({'uint8ArrayData':be,'width':bn,'height':bo});}}['typedArrayToBuffer'](bd){var sw=ol;return bd['buffer'][sw(0x9a1)](bd[sw(0x920)],bd[sw(0x737)]+bd[sw(0x920)]);}[ol(0x1d1)](){var sx=ol;ac['Ticker']['shared'][sx(0x1d1)]();}[ol(0x3b3)](){var sy=ol;ac['Ticker']['shared'][sy(0x3b3)]();}[ol(0x944)](){var sz=ol;this[sz(0x690)][sz(0x5f3)][sz(0x944)]();}[ol(0x9ba)](bd=!0x0){var sA=ol;this['_a'][sA(0x722)]=void 0x0,this[sA(0x875)]=!0x0,this[sA(0x92b)]&&ac[sA(0x681)]['shared']['remove'](this[sA(0x92b)]),this['_detector']&&this[sA(0xa02)][sA(0x9ba)](),this[sA(0x690)]&&this[sA(0x690)]['destroy'](),this[sA(0x7e0)]&&this[sA(0x7e0)][sA(0x9ba)](),this['inputNode']&&this[sA(0x445)][sA(0x9ba)](),this[sA(0x8ef)]&&(this['outputRenderer'][sA(0x9ba)](),this[sA(0x584)]&&this[sA(0x584)][sA(0x9ba)](!0x0)),this[sA(0x63a)]&&(this[sA(0x63a)]=null),bd&&(async function(){var sB=sA;wx['createCanvas']=null;for(let be in ac[sB(0x28a)][sB(0x47c)]){const bf=ac[sB(0x28a)][sB(0x47c)][be];ac[sB(0x35f)][sB(0x889)](bf),bf['destroy'](!0x0);}(0x0,aM['UI'])(),new ay['e']({})[sB(0x59f)](),ac[sB(0x2d0)](),ac[sB(0x681)][sB(0x395)][sB(0x3b3)]();}());}static[ol(0x5e6)](bd=0x2d0){var sC=ol;bd=bd||0x2d0;const {platform:be,pixelRatio:bf}=af,bg=am(),bh=0x10/0x9;let bi=Math['round'](bd*bh);const bj={'width':'0','height':'0','showWidth':0x0,'showHeight':0x0,'realWidth':0x0,'realHeight':0x0};function bk(bl,bm=0x2){const bn=Math['round'](bl*bf);return bn%bm!=0x0?bk(bl-0x1,bm):[bl,bn];}if(sC(0x9a4)===be)bd=bd%0x2?bd-0x1:bd,bi=bi%0x2?bi-0x1:bi,bj[sC(0x47e)]=bj[sC(0x612)]=bg?bi:bd,bj['showHeight']=bj['realHeight']=bg?bd:bi;else{const bl=Math['round'](bd/bf),bm=Math[sC(0x869)](bi/bf);[bj[sC(0x47e)],bj[sC(0x612)]]=bk(bg?bm:bl,0x4),[bj[sC(0x226)],bj[sC(0x9e7)]]=bk(bg?bl:bm);}return bj[sC(0x4e6)]=bj[sC(0x47e)]+'px',bj[sC(0x4f8)]=bj[sC(0x226)]+'px',bj[sC(0x1c3)]=bg?0.5625:bh,bj;}['checkPusherSize'](bd,be){var sD=ol;const bf=am();if(!bf&&bd>0x2d0)throw new Error(sD(0x2f8)+bd+'px');if(bf&&be>0x2d0)throw new Error(sD(0x945)+be+'px');if(ag){if(bd%0x4!=0x0||be%0x2!=0x0)throw new Error(sD(0x1f6));}else{if(bd%0x2!=0x0||be%0x2!=0x0)throw new Error(sD(0x7bb));}}[ol(0x3fc)](){var sE=ol;this[sE(0x39d)]===b0&&this['inputNode']?.[sE(0x533)]();}[ol(0x380)](bd){var sF=ol;if(sF(0x227)!==bd||sF(0x4b7)!==bd)throw new Error(sF(0x266));this[sF(0x859)]['live'][sF(0x2cd)]=bd;}}var b3,b4,b5;!function(bd){var sG=ol;bd[bd[sG(0x190)]=0x0]=sG(0x190),bd[bd[sG(0x6fb)]=0x1]='Preview';}(b3||(b3={})),function(bd){bd['2D']='2d',bd['3D']='3d';}(b4||(b4={})),function(bd){var sH=ol;bd[bd[sH(0x1be)]=0x0]='CAMERA',bd[bd[sH(0x7cc)]=0x1]=sH(0x7cc),bd[bd[sH(0x919)]=0x2]='CANVAS',bd[bd['IMAGE']=0x3]=sH(0x5a9),bd[bd[sH(0x171)]=0x4]=sH(0x171);}(b5||(b5={}));var b6,b7,b8={'CAMERA':0x0,'CANVAS2D':0x2,'IMAGE':0x3};!function(bd){var sI=ol;bd[bd[sI(0x1be)]=0x0]=sI(0x1be),bd[bd[sI(0x7cc)]=0x1]=sI(0x7cc),bd[bd[sI(0x919)]=0x2]=sI(0x919),bd[bd[sI(0x5a9)]=0x3]=sI(0x5a9),bd[bd[sI(0x171)]=0x4]=sI(0x171);}(b6||(b6={})),function(bd){var sJ=ol;bd[bd[sJ(0x84d)]=0x0]=sJ(0x84d),bd[bd[sJ(0x43f)]=0x1]=sJ(0x43f);}(b7||(b7={}));var b9=a2(0x6c2);},0xde1:(b,d,f)=>{f['d'](d,{'Z':()=>k});var g=f(0x191),h=function(m){var sK=a0b,p=sK(0x9d2)==typeof Symbol&&Symbol[sK(0x897)],q=p&&m[p],v=0x0;if(q)return q[sK(0x6e9)](m);if(m&&'number'==typeof m[sK(0x6db)])return{'next':function(){return m&&v>=m['length']&&(m=void 0x0),{'value':m&&m[v++],'done':!m};}};throw new TypeError(p?sK(0x89b):'Symbol.iterator\x20is\x20not\x20defined.');},j=function(m,p){var sL=a0b,q=sL(0x9d2)==typeof Symbol&&m[Symbol[sL(0x897)]];if(!q)return m;var v,w,x=q['call'](m),y=[];try{for(;(void 0x0===p||p-->0x0)&&!(v=x[sL(0x435)]())[sL(0x1ec)];)y['push'](v[sL(0x8b5)]);}catch(z){w={'error':z};}finally{try{v&&!v['done']&&(q=x[sL(0x3d8)])&&q[sL(0x6e9)](x);}finally{if(w)throw w[sL(0x1a6)];}}return y;};const k=new(function(){var sN=a0b;function m(){var sM=a0b;this[sM(0x53b)]=new Map(),this[sM(0x6c5)]('common-v3',{'Url':(0x0,g['xb'])()});}return m[sN(0x933)][sN(0x6c5)]=function(p,q){var sO=sN;this[sO(0x53b)][sO(0x6c5)](p,q);},m[sN(0x933)][sN(0x52c)]=function(p){var sP=sN;return this[sP(0x53b)]['get'](p);},m[sN(0x933)][sN(0x8a0)]=function(p){var sQ=sN;return this[sQ(0x53b)]['has'](p);},m[sN(0x933)][sN(0x2a0)]=function(p){var sR=sN;this[sR(0x53b)][sR(0x2fc)](p);},m[sN(0x933)][sN(0x2ff)]=function(){var sS=sN;this[sS(0x53b)][sS(0x2ff)]();},m['prototype'][sN(0x6c0)]=function(p){var sT=sN,q,v;try{for(var w=h(this[sT(0x53b)]),x=w[sT(0x435)]();!x[sT(0x1ec)];x=w[sT(0x435)]()){var y=j(x[sT(0x8b5)],0x2),z=y[0x0];y[0x1];if(this[sT(0x53b)]['get'](z)[sT(0xa0e)]===p)return z;}}catch(A){q={'error':A};}finally{try{x&&!x['done']&&(v=w[sT(0x3d8)])&&v[sT(0x6e9)](w);}finally{if(q)throw q[sT(0x1a6)];}}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 sU=a0b;v[sU(0x51e)]=w;}||function(v,w){var sV=a0b;for(var x in w)Object[sV(0x933)]['hasOwnProperty']['call'](w,x)&&(v[x]=w[x]);},g(p,q);},function(p,q){var sW=a0b;if('function'!=typeof q&&null!==q)throw new TypeError(sW(0x61f)+String(q)+sW(0x5cc));function v(){var sX=sW;this[sX(0x8ac)]=p;}g(p,q),p[sW(0x933)]=null===q?Object['create'](q):(v[sW(0x933)]=q[sW(0x933)],new v());}),m=function(p){var sZ=a0b;function q(){var sY=a0b,v=p[sY(0x6e9)](this)||this;return v[sY(0x859)]={},v;}return k(q,p),Object[sZ(0x1d6)](q[sZ(0x933)],sZ(0x188),{'get':function(){return this['_options'];},'enumerable':!0x1,'configurable':!0x0}),q[sZ(0x933)]['getOptions']=function(){return this['_options'];},q[sZ(0x933)]['setOptions']=function(v){var t0=sZ;j['bH'][t0(0x8f1)](t0(0x9de)),void 0x0!==v[t0(0x8c8)]&&v[t0(0x8c8)]!==this[t0(0x859)][t0(0x8c8)]&&(j['bH'][t0(0x8f1)]('mirrorchange',v[t0(0x8c8)]),this['trigger'](t0(0x90a),{'mirror':v[t0(0x8c8)]})),this[t0(0x859)]=v;},q[sZ(0x635)]=new q(),q;}(h['Q']);},0x435:(j,q,z)=>{var te=a0b;z['d'](q,{'F':()=>a4});var A,B=z(0x4b6),D=z(0x15a0),F=z(0xc30),G=(A=function(a5,a6){return A=Object['setPrototypeOf']||{'__proto__':[]}instanceof Array&&function(a7,a8){var t1=a0b;a7[t1(0x51e)]=a8;}||function(a7,a8){var t2=a0b;for(var a9 in a8)Object['prototype'][t2(0x52f)][t2(0x6e9)](a8,a9)&&(a7[a9]=a8[a9]);},A(a5,a6);},function(a5,a6){var t3=a0b;if(t3(0x9d2)!=typeof a6&&null!==a6)throw new TypeError(t3(0x61f)+String(a6)+'\x20is\x20not\x20a\x20constructor\x20or\x20null');function a7(){this['constructor']=a5;}A(a5,a6),a5[t3(0x933)]=null===a6?Object[t3(0x8c3)](a6):(a7[t3(0x933)]=a6['prototype'],new a7());}),H=function(a5,a6,a7,a8){return new(a7||(a7=Promise))(function(a9,aa){var t7=a0b;function ab(ae){var t4=a0b;try{ad(a8[t4(0x435)](ae));}catch(af){aa(af);}}function ac(ae){var t5=a0b;try{ad(a8[t5(0x567)](ae));}catch(af){aa(af);}}function ad(ae){var t6=a0b,af;ae[t6(0x1ec)]?a9(ae['value']):(af=ae['value'],af instanceof a7?af:new a7(function(ag){ag(af);}))[t6(0xa17)](ab,ac);}ad((a8=a8['apply'](a5,a6||[]))[t7(0x435)]());});},I=function(a5,a6){var t8=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)},t8(0x9d2)==typeof Symbol&&(aa[Symbol['iterator']]=function(){return this;}),aa;function ac(ad){return function(ae){return function(af){var t9=a0b;if(a7)throw new TypeError(t9(0x1a4));for(;ab;)try{if(a7=0x1,a8&&(a9=0x2&af[0x0]?a8[t9(0x3d8)]:af[0x0]?a8[t9(0x567)]||((a9=a8[t9(0x3d8)])&&a9[t9(0x6e9)](a8),0x0):a8['next'])&&!(a9=a9[t9(0x6e9)](a8,af[0x1]))[t9(0x1ec)])return a9;switch(a8=0x0,a9&&(af=[0x2&af[0x0],a9[t9(0x8b5)]]),af[0x0]){case 0x0:case 0x1:a9=af;break;case 0x4:return ab[t9(0x898)]++,{'value':af[0x1],'done':!0x1};case 0x5:ab['label']++,a8=af[0x1],af=[0x0];continue;case 0x7:af=ab[t9(0x843)][t9(0x85c)](),ab[t9(0x1e5)][t9(0x85c)]();continue;default:if(!(a9=ab[t9(0x1e5)],(a9=a9[t9(0x6db)]>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[t9(0x898)]=af[0x1];break;}if(0x6===af[0x0]&&ab[t9(0x898)]<a9[0x1]){ab[t9(0x898)]=a9[0x1],a9=af;break;}if(a9&&ab['label']<a9[0x2]){ab[t9(0x898)]=a9[0x2],ab[t9(0x843)][t9(0x607)](af);break;}a9[0x2]&&ab['ops'][t9(0x85c)](),ab[t9(0x1e5)][t9(0x85c)]();continue;}af=a6[t9(0x6e9)](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 tb=a0b;function a6(a7){var ta=a0b,a8=a5[ta(0x6e9)](this)||this;return a8[ta(0x859)]=a7,a8;}return G(a6,a5),a6[tb(0x933)][tb(0xa1e)]=function(a7){return H(this,void 0x0,Promise,function(){var a8,a9=this;return I(this,function(aa){var tc=a0b;switch(aa[tc(0x898)]){case 0x0:return[0x4,this[tc(0x526)]()];case 0x1:return a8=aa[tc(0x8a6)](),[0x2,this[tc(0x3b9)](a8)['then'](function(ab){var td=tc;return ab[F['RY']][td(0x4dc)]['scaleMode']=B[td(0x19d)][td(0x257)],ab[F['RY']]['baseTexture']['mipmap']=B['MIPMAP_MODES'][td(0x955)],new D['f'](td(0x4a4),a9[td(0x859)],{'uniforms':{'lut':ab[F['RY']],'lutSize':[0x200,0x200],'intensity':a7}});})];}});});},a6;}(F['KI']),K=z(0x24f3);const L=te(0x799),M=te(0x4ce);var N=z(0x191),O=(function(){var a5=function(a6,a7){return a5=Object['setPrototypeOf']||{'__proto__':[]}instanceof Array&&function(a8,a9){var tf=a0b;a8[tf(0x51e)]=a9;}||function(a8,a9){var tg=a0b;for(var aa in a9)Object['prototype'][tg(0x52f)]['call'](a9,aa)&&(a8[aa]=a9[aa]);},a5(a6,a7);};return function(a6,a7){var th=a0b;if(th(0x9d2)!=typeof a7&&null!==a7)throw new TypeError(th(0x61f)+String(a7)+th(0x5cc));function a8(){this['constructor']=a6;}a5(a6,a7),a6[th(0x933)]=null===a7?Object['create'](a7):(a8['prototype']=a7[th(0x933)],new a8());};}()),Q=function(a5,a6,a7,a8){return new(a7||(a7=Promise))(function(a9,aa){var tl=a0b;function ab(ae){var ti=a0b;try{ad(a8[ti(0x435)](ae));}catch(af){aa(af);}}function ac(ae){var tj=a0b;try{ad(a8[tj(0x567)](ae));}catch(af){aa(af);}}function ad(ae){var tk=a0b,af;ae[tk(0x1ec)]?a9(ae[tk(0x8b5)]):(af=ae[tk(0x8b5)],af instanceof a7?af:new a7(function(ag){ag(af);}))[tk(0xa17)](ab,ac);}ad((a8=a8['apply'](a5,a6||[]))[tl(0x435)]());});},R=function(a5,a6){var tm=te,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)},tm(0x9d2)==typeof Symbol&&(aa[Symbol['iterator']]=function(){return this;}),aa;function ac(ad){return function(ae){return function(af){var tn=a0b;if(a7)throw new TypeError(tn(0x1a4));for(;ab;)try{if(a7=0x1,a8&&(a9=0x2&af[0x0]?a8[tn(0x3d8)]:af[0x0]?a8[tn(0x567)]||((a9=a8[tn(0x3d8)])&&a9[tn(0x6e9)](a8),0x0):a8[tn(0x435)])&&!(a9=a9[tn(0x6e9)](a8,af[0x1]))['done'])return a9;switch(a8=0x0,a9&&(af=[0x2&af[0x0],a9[tn(0x8b5)]]),af[0x0]){case 0x0:case 0x1:a9=af;break;case 0x4:return ab['label']++,{'value':af[0x1],'done':!0x1};case 0x5:ab['label']++,a8=af[0x1],af=[0x0];continue;case 0x7:af=ab['ops'][tn(0x85c)](),ab[tn(0x1e5)][tn(0x85c)]();continue;default:if(!(a9=ab[tn(0x1e5)],(a9=a9[tn(0x6db)]>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[tn(0x898)]<a9[0x1]){ab[tn(0x898)]=a9[0x1],a9=af;break;}if(a9&&ab[tn(0x898)]<a9[0x2]){ab[tn(0x898)]=a9[0x2],ab[tn(0x843)][tn(0x607)](af);break;}a9[0x2]&&ab[tn(0x843)][tn(0x85c)](),ab[tn(0x1e5)][tn(0x85c)]();continue;}af=a6[tn(0x6e9)](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 tp=te;function a5(a6){var to=a0b;this[to(0x859)]=a6;}return Object[tp(0x1d6)](a5[tp(0x933)],tp(0x927),{'set':function(a6){for(var a7 in a6)this['_filter']['uniforms'][a7]=a6[a7];},'enumerable':!0x1,'configurable':!0x0}),a5[tp(0x933)][tp(0x3a6)]=function(a6){var tq=tp;a6[tq(0x3e8)]||(a6['filters']=[]),a6[tq(0x3e8)]['indexOf'](this['_filter'])>-0x1||(a6[tq(0x3e8)]['push'](this[tq(0x3d5)]),this['_container']=a6);},a5['prototype'][tp(0x924)]=function(a6){var tr=tp;if(a6[tr(0x3e8)]&&-0x1!==a6[tr(0x3e8)][tr(0x962)](this[tr(0x3d5)])){var a7=a6[tr(0x3e8)][tr(0x962)](this[tr(0x3d5)]);a6['filters'][tr(0x908)](a7,0x1),this[tr(0x5ba)]=null;}},a5[tp(0x933)][tp(0x678)]=function(a6,a7){var ts=tp;this['_filter']&&this[ts(0x3d5)]['resize'](a6,a7);},a5;}()),V=function(a5){var tu=te;function a6(a7,a8){var tt=a0b,a9=a5[tt(0x6e9)](this,a8)||this;return a9['intensity']=a7,a9;}return O(a6,a5),Object[tu(0x1d6)](a6['prototype'],tu(0x2cf),{'get':function(){var tv=tu;return this[tv(0x1b9)];},'set':function(a7){var tw=tu;this[tw(0x1b9)]=a7,this[tw(0x3d5)]&&(this[tw(0x3d5)]['uniforms'][tw(0x2cf)]=a7<0.01?0x0:a7);},'enumerable':!0x1,'configurable':!0x0}),a6[tu(0x933)][tu(0x526)]=function(){return Q(this,void 0x0,Promise,function(){var a7;return R(this,function(a8){var tx=a0b;switch(a8[tx(0x898)]){case 0x0:return[0x4,new J(this[tx(0x859)])['getFilterInstance'](this[tx(0x2cf)])];case 0x1:return a7=a8[tx(0x8a6)](),this[tx(0x3d5)]=a7,a7[tx(0x927)][tx(0x2cf)]=this[tx(0x1b9)]<0.01?0x0:this[tx(0x1b9)],[0x2];}});});},a6;}(U),W=(function(a5){var tz=te;function a6(a7,a8,a9){var ty=a0b,aa=a5['call'](this,a9)||this,ab=aa[ty(0x859)],ac=ab[ty(0x4e6)],ad=ab[ty(0x4f8)],ae=new B[(ty(0x20d))]({'width':ac,'height':ad});return aa[ty(0x57f)]=new B[(ty(0x546))](ae),aa[ty(0x3d5)]=new D['f'](ty(0x36c),a9,{'uniforms':{'intensity':0x1,'faceMask':aa[ty(0x57f)],'grayTexture':B[ty(0x28a)][ty(0x47c)][F['lc']],'lookupTexture':B[ty(0x28a)][ty(0x47c)][F['M$']],'levelRangeInv':1.040816,'levelBlack':0.01960784}}),aa['intensityEye']=a7,aa['intensityTeeth']=a8,aa;}O(a6,a5),Object[tz(0x1d6)](a6[tz(0x933)],'intensityEye',{'get':function(){var tA=tz;return this[tA(0x890)];},'set':function(a7){var tB=tz;this[tB(0x890)]=a7,this['_shader']&&(this[tB(0x371)]['uniforms']['intensity']=a7<0.01?0x0:a7);},'enumerable':!0x1,'configurable':!0x0}),Object['defineProperty'](a6[tz(0x933)],tz(0x83e),{'get':function(){return this['_intensityTeeth'];},'set':function(a7){var tC=tz;this[tC(0x391)]=a7,this['_shader']&&(this[tC(0x371)][tC(0x927)][tC(0x83e)]=a7<0.01?0x0:a7);},'enumerable':!0x1,'configurable':!0x0}),Object[tz(0x1d6)](a6[tz(0x933)],tz(0x538),{'get':function(){return this['_renderer'];},'set':function(a7){var tD=tz;this[tD(0x690)]=a7;},'enumerable':!0x1,'configurable':!0x0}),a6[tz(0x933)]['render']=function(){var tE=tz;if(this[tE(0x476)]){if(!this['faceMesh']){var a7={'mask':B[tE(0x28a)][tE(0x47c)][F['iy']],'intensity':this[tE(0x317)]<0.01?0x0:this[tE(0x317)]},a8=B['Shader'][tE(0x170)](L,M,a7);this[tE(0x371)]=a8,this['faceMesh']=new B[(tE(0x279))](this[tE(0x476)],a8);}this[tE(0x538)]&&this[tE(0x538)][tE(0x292)](this['faceMesh'],{'renderTexture':this[tE(0x57f)]});}};}(U),function(a5){var tG=te;function a6(a7,a8){var tF=a0b,a9=a5[tF(0x6e9)](this,a8)||this,aa=a9[tF(0x859)],ab=aa[tF(0x4e6)],ac=aa['height'],ad=new B[(tF(0x20d))]({'width':ab,'height':ac});return a9['renderTexture']=new B[(tF(0x546))](ad),a9[tF(0x3d5)]=new D['f'](tF(0x697),a8,{'uniforms':{'intensity':a7<0.01?0x0:a7,'faceMask':a9[tF(0x57f)]}}),a9[tF(0x2cf)]=a7,a9;}return O(a6,a5),Object[tG(0x1d6)](a6[tG(0x933)],tG(0x538),{'get':function(){var tH=tG;return this[tH(0x690)];},'set':function(a7){var tI=tG;this[tI(0x690)]=a7;},'enumerable':!0x1,'configurable':!0x0}),a6[tG(0x933)][tG(0x292)]=function(){var tJ=tG;if(this[tJ(0x476)]){if(!this[tJ(0x4ff)]){var a7={'mask':B[tJ(0x28a)][tJ(0x47c)][F['L4']],'intensity':0x1},a8=B['Shader'][tJ(0x170)](L,M,a7);this['faceMesh']=new B[(tJ(0x279))](this[tJ(0x476)],a8);}this[tJ(0x538)]&&this[tJ(0x538)][tJ(0x292)](this['faceMesh'],{'renderTexture':this[tJ(0x57f)]});}},a6[tG(0x933)][tG(0x3a6)]=function(a7){var tK=tG;a5[tK(0x933)][tK(0x3a6)][tK(0x6e9)](this,a7);},Object[tG(0x1d6)](a6[tG(0x933)],tG(0x2cf),{'get':function(){var tL=tG;return this[tL(0x1b9)];},'set':function(a7){var tM=tG;this[tM(0x1b9)]=a7,this[tM(0x1b9)]=0.7*a7,this[tM(0x3d5)]&&(this['_filter']['uniforms'][tM(0x2cf)]=this[tM(0x1b9)]<0.01?0x0:this['_intensity']);},'enumerable':!0x1,'configurable':!0x0}),a6;}(U)),X=function(a5){var tO=te;function a6(a7,a8,a9){var tN=a0b,aa=a5['call'](this,a9)||this,ab=aa[tN(0x859)],ac=ab[tN(0x4e6)],ad=ab[tN(0x4f8)],ae=new B[(tN(0x20d))]({'width':ac,'height':ad});return aa[tN(0x57f)]=new B[(tN(0x546))](ae),aa[tN(0x3d5)]=new D['f']('partialDermabrasion',a9,{'uniforms':{'intensity':0x1,'faceMask':aa['renderTexture']}}),aa[tN(0x9bc)]=a7,aa['intensityNasolabialFolds']=a8,aa;}return O(a6,a5),Object['defineProperty'](a6[tO(0x933)],'intensityDarkCircle',{'get':function(){var tP=tO;return this[tP(0x8ed)];},'set':function(a7){var tQ=tO;this['_intensityDarkCircle']=a7,this[tQ(0x371)]&&(this[tQ(0x371)][tQ(0x927)]['intensityDarkCircle']=a7<0.01?0x0:a7);},'enumerable':!0x1,'configurable':!0x0}),Object[tO(0x1d6)](a6[tO(0x933)],'intensityNasolabialFolds',{'get':function(){var tR=tO;return this[tR(0x6a4)];},'set':function(a7){var tS=tO;this[tS(0x6a4)]=a7,this['_shader']&&(this[tS(0x371)]['uniforms'][tS(0x356)]=a7<0.01?0x0:a7);},'enumerable':!0x1,'configurable':!0x0}),Object['defineProperty'](a6['prototype'],tO(0x538),{'get':function(){var tT=tO;return this[tT(0x690)];},'set':function(a7){var tU=tO;this[tU(0x690)]=a7;},'enumerable':!0x1,'configurable':!0x0}),a6[tO(0x933)][tO(0x292)]=function(){var tV=tO;if(this[tV(0x476)]){if(!this['faceMesh']){var a7={'falingwen':B['utils'][tV(0x47c)][F['F7']],'heiyanquan':B['utils'][tV(0x47c)][F['B3']],'intensityDarkCircle':this['intensityDarkCircle'],'intensityNasolabialFolds':this[tV(0x356)]},a8=B[tV(0x1df)]['from'](L,tV(0x372),a7);this['_shader']=a8,this[tV(0x4ff)]=new B[(tV(0x279))](this[tV(0x476)],a8);}this['renderer']&&this[tV(0x538)]['render'](this[tV(0x4ff)],{'renderTexture':this['renderTexture']});}},a6;}(U),Y=function(a5){var tX=te;function a6(a7,a8){var tW=a0b,a9=a5['call'](this,a8)||this;return a9[tW(0x3d5)]=new D['f'](tW(0x3d1),a8,{'intensity':a7}),a9[tW(0x2cf)]=a7,a9;}return O(a6,a5),Object[tX(0x1d6)](a6[tX(0x933)],'intensity',{'get':function(){var tY=tX;return this[tY(0x1b9)];},'set':function(a7){var tZ=tX;this[tZ(0x1b9)]=a7,this['_filter']['uniforms'][tZ(0x2cf)]=a7<0.01?0x0:a7;},'enumerable':!0x1,'configurable':!0x0}),a6;}(U),Z=[te(0xa01),te(0x1e2),'nose_tip','contour_chin',te(0x7d4),te(0x721),te(0x189),te(0x7fc),te(0x33e),te(0x918),te(0x50c),te(0x636),te(0x81c),te(0x407),te(0x75f),te(0x288),'nose_right1',te(0x537),'lip_top_left',te(0x9fe),te(0x1a5),'lip_bottom_right',te(0x233),'lip_top_right_target',te(0x6f9),'lip_bottom_right_target',te(0x6d5),te(0x48b),te(0x3df),'lip_bottom_center_target',te(0x885),te(0x8fa),te(0x99d),te(0x838),te(0x30d),te(0x429),te(0x4a9),te(0x983),te(0x765),'left_eye_top','right_eye_bottom',te(0x7f9),te(0x2a6),te(0x289),'nose_bridge6',te(0x375),te(0x37b),te(0x8c1),'nose_bridge1',te(0x70e),te(0x81f)],a0=function(a5){var u1=te;function a6(a7,a8){var u0=a0b,a9=a5[u0(0x6e9)](this,a7)||this;return a9[u0(0x2a4)]=0x0,a9[u0(0x4ef)]=a8,a9[u0(0x5fb)]=new K['M']()[u0(0x97b)](N['c4'][u0(0x8c4)]),a9;}return O(a6,a5),Object[u1(0x1d6)](a6['prototype'],u1(0x23a),{'set':function(a7){var u2=u1;if(a7[u2(0x6db)]){var a8=Z,a9=this['_getCartesianPointsByKeys'](a7,a8);this[u2(0x4e5)]={};for(var aa=0x0;aa<a8[u2(0x6db)];aa++){var ab=a8[aa];this['_keypoints'][ab]=a9[aa];}this[u2(0x285)](this[u2(0x4e5)]);}},'enumerable':!0x1,'configurable':!0x0}),Object[u1(0x1d6)](a6[u1(0x933)],'intensities',{'set':function(a7){var u3=u1;a7['enable']=this[u3(0x2a4)]?a7[u3(0x2d2)]:this[u3(0x2a4)],this['_updateFilter'](a7);},'enumerable':!0x1,'configurable':!0x0}),Object['defineProperty'](a6[u1(0x933)],u1(0x2d2),{'set':function(a7){var u4=u1,a8=a7?0x1:0x0;this[u4(0x2a4)]!==a8&&(this[u4(0x2a4)]=a8,this['_updateFilter']({'enable':this[u4(0x2a4)]}));},'enumerable':!0x1,'configurable':!0x0}),a6[u1(0x933)]['_updateFilter']=function(a7){var u5=u1;if(!this[u5(0x3d5)]){var a8={};Z[u5(0x461)](function(aa){a8[aa]=[0x0,0x0];}),a8[u5(0x2d2)]=this[u5(0x2a4)],this['_filter']=new D['f']('faceReshape',this[u5(0x859)],{'uniforms':a8});}for(var a9 in a7)this['_filter'][u5(0x927)][a9]=a7[a9]||0x0;},a6['prototype']['_getCartesianPointsByKeys']=function(a7,a8){var u6=u1,a9=this[u6(0x5fb)],aa=[];return a8['forEach'](function(ab){var u7=u6;try{var ac=a7[a9[ab]],ad={'x':ac['x'],'y':ac['y']};aa[u7(0x607)]([ad['x'],ad['y']]);}catch(ae){console[u7(0x8f1)]('err',ab,a9[ab],ae);}}),aa;},a6;}(U),a1=(function(){var u9=te;function a5(a6,a7,a8){var u8=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[u8(0x388)]=!0x1,this['id']=a6,this[u8(0x91f)]=a7,this['_options']=a8;}return Object['defineProperty'](a5[u9(0x933)],u9(0x980),{'get':function(){var ua=u9;return this[ua(0x388)];},'set':function(a6){var ub=u9;if(this[ub(0x388)]!==a6&&(this[ub(0x388)]=a6,this[ub(0x629)])){var a7=this['_beautify'];this['_reshape'][ub(0x4ef)]={'lift':a7['lift'],'shave':a7['shave'],'cheekbone':a7[ub(0x94b)],'head':a7[ub(0x28e)],'eyeBrightness':a7[ub(0x341)],'lip':a7[ub(0x97e)],'forehead':a7[ub(0x91a)],'nose':a7[ub(0x51a)],'eye':a7[ub(0x39a)],'chin':a7[ub(0x269)],'darkCircle':a7['darkCircle'],'nasolabialFolds':a7['nasolabialFolds'],'enable':a7[ub(0x9f6)]||a7[ub(0x579)]||a7[ub(0x991)]||a7[ub(0x75a)]||a7['cheekbone']||a7[ub(0x28e)]||a7['eyeBrightness']||a7[ub(0x97e)]||a7[ub(0x91a)]||a7[ub(0x39a)]||a7[ub(0x269)]||a7[ub(0x51a)]?0x1:0x0};}},'enumerable':!0x1,'configurable':!0x0}),Object[u9(0x1d6)](a5[u9(0x933)],u9(0x785),{'set':function(a6){var uc=u9;this[uc(0x1c1)]=Object[uc(0x326)](this[uc(0x1c1)],a6);var a7=this['_beautify'],a8=a7[uc(0x62e)],a9=a7['dermabrasion'],aa=(a7[uc(0x70a)],a7[uc(0x835)],a7['darkCircle']),ab=a7['nasolabialFolds'],ac=a7[uc(0x9f6)],ad=a7[uc(0x579)],ae=a7['cheekbone'],af=a7[uc(0x28e)],ag=a7['eyeBrightness'],ah=a7['lip'],ai=a7[uc(0x91a)],aj=a7[uc(0x51a)],ak=a7[uc(0x39a)],al=a7[uc(0x269)],am=a7[uc(0x3d1)];this[uc(0x7c4)]&&(this[uc(0x7c4)][uc(0x2cf)]=a8),this[uc(0x9b4)]&&(this[uc(0x9b4)]['intensity']=a9),this[uc(0x67c)]&&(this['_partialDermabrasion']['intensityDarkCircle']=aa,this[uc(0x67c)][uc(0x356)]=ab),this['_usm']&&(this['_usm'][uc(0x2cf)]=am),this[uc(0x629)]&&(this[uc(0x629)][uc(0x4ef)]={'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[u9(0x933)]['load']=function(){return Q(this,void 0x0,Promise,function(){var a6,a7,a8,a9,aa,ab,ac=this;return R(this,function(ad){var ud=a0b;switch(ad[ud(0x898)]){case 0x0:return this['loaded']?[0x2]:(this['loaded']=!0x0,this[ud(0x7df)]?[0x3,0x2]:(this['_config']=new K['M'](),[0x4,this[ud(0x7df)][ud(0x6e2)]()]));case 0x1:ad[ud(0x8a6)](),ad[ud(0x898)]=0x2;case 0x2:return a6=Object[ud(0x326)](this[ud(0x1c1)]),a7=void 0x0!==a6['whiten']&&null!==a6[ud(0x62e)]?a6['whiten']:N['em'],this[ud(0x7c4)]=new V(a7,this[ud(0x859)]),a8=void 0x0!==a6[ud(0x697)]&&null!==a6[ud(0x697)]?a6[ud(0x697)]:N['Ss'],this[ud(0x9b4)]=new W(a8,this[ud(0x859)]),a9=void 0x0!==a6['darkCircle']&&null!==a6[ud(0x991)]?a6[ud(0x991)]:0x0,aa=void 0x0!==a6[ud(0x75a)]&&null!==a6[ud(0x75a)]?a6['nasolabialFolds']:0x0,this['_partialDermabrasion']=new X(a9,aa,this[ud(0x859)]),void 0x0!==a6[ud(0x70a)]&&null!==a6[ud(0x70a)]?a6[ud(0x70a)]:0x0,void 0x0!==a6[ud(0x835)]&&null!==a6[ud(0x835)]?a6['teethWhiten']:0x0,this[ud(0x7dd)]=new Y(a6[ud(0x3d1)]||0x0,this['_options']),ab={'lift':a6[ud(0x9f6)],'shave':a6[ud(0x579)],'cheekbone':a6[ud(0x94b)],'head':a6[ud(0x28e)],'eyeBrightness':a6[ud(0x341)],'lip':a6[ud(0x97e)],'forehead':a6[ud(0x91a)],'nose':a6[ud(0x51a)],'darkCircle':a6[ud(0x991)],'nasolabialFolds':a6[ud(0x75a)],'eye':a6[ud(0x39a)],'chin':a6[ud(0x269)],'enable':a6[ud(0x9f6)]||a6[ud(0x579)]||a6[ud(0x991)]||a6['nasolabialFolds']||a6['cheekbone']||a6[ud(0x28e)]||a6[ud(0x341)]||a6[ud(0x97e)]||a6[ud(0x91a)]||a6[ud(0x51a)]||a6[ud(0x39a)]||a6[ud(0x269)]?0x1:0x0},this['_reshape']=new a0(this[ud(0x859)],ab),[0x2,this[ud(0x7c4)]['init']()['then'](function(){var ue=ud;ac[ue(0x821)]();})];}});});},a5['prototype'][u9(0x882)]=function(a6){var uf=u9;a6&&a6[uf(0x6db)]?this['_reshape']&&(this['_reshape']['landmarks']=a6,this[uf(0x629)][uf(0x2d2)]=!0x0):this['_reshape'][uf(0x2d2)]=!0x1;},a5['prototype']['setMesh']=function(a6){var ug=u9;if(a6&&a6[ug(0x6db)]){if(!this[ug(0x476)]){var a7=this[ug(0x7df)][ug(0x97b)](0x1a),a8=new B['Geometry']()[ug(0x7c3)](ug(0x5cb),a6)[ug(0x7c3)]('aUvs',a7);this[ug(0x476)]=a8;}this[ug(0x476)][ug(0x193)]('aVertexPosition')[ug(0x783)](a6),this['_dermabrasion']&&(this[ug(0x9b4)][ug(0x476)]=this['geometry'],this[ug(0x67c)][ug(0x476)]=this['geometry'],this[ug(0x9b4)][ug(0x292)](),this[ug(0x67c)]['render']());}},a5['prototype'][u9(0x45d)]=function(a6){var a7,a8=this,a9=function(){var uh=a0b;a8[uh(0x9b4)]&&a8[uh(0x67c)]?(a8[uh(0x9b4)][uh(0x538)]=a6,a8[uh(0x67c)][uh(0x538)]=a6,clearTimeout(a7)):a7=setTimeout(a9,0x1e);};a9();},a5[u9(0x933)][u9(0x678)]=function(a6,a7){var ui=u9;this['_whiten']&&this[ui(0x7c4)][ui(0x678)](a6,a7),this[ui(0x9b4)]&&this[ui(0x9b4)][ui(0x678)](a6,a7),this[ui(0x67c)]&&this[ui(0x67c)][ui(0x678)](a6,a7),this[ui(0x629)]&&this['_reshape']['resize'](a6,a7),this['_usm']&&this[ui(0x7dd)][ui(0x678)](a6,a7);},a5[u9(0x933)][u9(0x2a0)]=function(){var uj=u9;this[uj(0x9c8)]&&(this[uj(0x7c4)]&&this['_whiten'][uj(0x924)](this[uj(0x91f)]),this[uj(0x9b4)]&&this['_dermabrasion'][uj(0x924)](this[uj(0x91f)]),this[uj(0x67c)]&&this[uj(0x67c)]['removeFrom'](this['_target']),this[uj(0x629)]&&this[uj(0x629)]['removeFrom'](this[uj(0x91f)]),this[uj(0x7dd)]&&this['_usm'][uj(0x924)](this[uj(0x91f)]),this[uj(0x9c8)]=!0x1);},a5[u9(0x933)]['apply']=function(){var uk=u9;this[uk(0x9c8)]||(this['_whiten']&&this[uk(0x7c4)][uk(0x3a6)](this[uk(0x91f)]),this[uk(0x9b4)]&&this['_dermabrasion']['applyTo'](this[uk(0x91f)]),this[uk(0x67c)]&&this['_partialDermabrasion'][uk(0x3a6)](this[uk(0x91f)]),this[uk(0x629)]&&this['_reshape'][uk(0x3a6)](this['_target']),this[uk(0x7dd)]&&this[uk(0x7dd)][uk(0x3a6)](this[uk(0x91f)]),this[uk(0x9c8)]=!0x0);},a5['prototype']['destroy']=function(){var ul=u9;this[ul(0x2a0)](),this[ul(0x7c4)]=null,this[ul(0x9b4)]=null,this['_partialDermabrasion']=null,this[ul(0x629)]=null;},a5;}()),a2=function(a5,a6,a7,a8){return new(a7||(a7=Promise))(function(a9,aa){var uo=a0b;function ab(ae){try{ad(a8['next'](ae));}catch(af){aa(af);}}function ac(ae){var um=a0b;try{ad(a8[um(0x567)](ae));}catch(af){aa(af);}}function ad(ae){var un=a0b,af;ae[un(0x1ec)]?a9(ae['value']):(af=ae['value'],af instanceof a7?af:new a7(function(ag){ag(af);}))['then'](ab,ac);}ad((a8=a8[uo(0x821)](a5,a6||[]))[uo(0x435)]());});},a3=function(a5,a6){var up=te,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)},'function'==typeof Symbol&&(aa[Symbol[up(0x897)]]=function(){return this;}),aa;function ac(ad){return function(ae){return function(af){var uq=a0b;if(a7)throw new TypeError(uq(0x1a4));for(;ab;)try{if(a7=0x1,a8&&(a9=0x2&af[0x0]?a8[uq(0x3d8)]:af[0x0]?a8[uq(0x567)]||((a9=a8[uq(0x3d8)])&&a9[uq(0x6e9)](a8),0x0):a8[uq(0x435)])&&!(a9=a9['call'](a8,af[0x1]))[uq(0x1ec)])return a9;switch(a8=0x0,a9&&(af=[0x2&af[0x0],a9[uq(0x8b5)]]),af[0x0]){case 0x0:case 0x1:a9=af;break;case 0x4:return ab[uq(0x898)]++,{'value':af[0x1],'done':!0x1};case 0x5:ab[uq(0x898)]++,a8=af[0x1],af=[0x0];continue;case 0x7:af=ab[uq(0x843)]['pop'](),ab['trys']['pop']();continue;default:if(!(a9=ab['trys'],(a9=a9[uq(0x6db)]>0x0&&a9[a9[uq(0x6db)]-0x1])||0x6!==af[0x0]&&0x2!==af[0x0])){ab=0x0;continue;}if(0x3===af[0x0]&&(!a9||af[0x1]>a9[0x0]&&af[0x1]<a9[0x3])){ab[uq(0x898)]=af[0x1];break;}if(0x6===af[0x0]&&ab[uq(0x898)]<a9[0x1]){ab['label']=a9[0x1],a9=af;break;}if(a9&&ab[uq(0x898)]<a9[0x2]){ab['label']=a9[0x2],ab[uq(0x843)][uq(0x607)](af);break;}a9[0x2]&&ab[uq(0x843)][uq(0x85c)](),ab[uq(0x1e5)][uq(0x85c)]();continue;}af=a6[uq(0x6e9)](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 us=te;function a5(a6){var ur=a0b;this['_beautifies']={},this[ur(0x388)]=!0x1,this[ur(0x859)]=a6;}return Object[us(0x1d6)](a5[us(0x933)],'renderer',{'get':function(){var ut=us;return this[ut(0x690)];},'set':function(a6){var uu=us;this[uu(0x690)]=a6,this[uu(0x45d)]();},'enumerable':!0x1,'configurable':!0x0}),Object[us(0x1d6)](a5[us(0x933)],us(0x980),{'get':function(){var uv=us;return this[uv(0x388)];},'set':function(a6){var uw=us;for(var a7 in(this[uw(0x388)]=a6,this[uw(0x574)])){this[uw(0x574)][a7][uw(0x980)]=a6;}},'enumerable':!0x1,'configurable':!0x0}),a5['prototype']['updateBeauty']=function(a6,a7){var ux=us;this[ux(0x574)][a6]?this[ux(0x253)](a6,a7):this['addBeauty'](a6,a7);},a5['prototype'][us(0x253)]=function(a6,a7){var uy=us;void 0x0===a6&&(a6=uy(0x23e));var a8=this['_beautifies'][a6];a8&&(a8[uy(0x785)]=a7);},a5[us(0x933)]['addBeauty']=function(a6,a7){var uz=us;void 0x0===a6&&(a6=uz(0x23e)),void 0x0===a7&&(a7={});var a8=new a1(a6,this['_target'],this['_options']);a8[uz(0x980)]=this[uz(0x980)],a7&&(a8['beautify']=a7),this['_beautifies'][a6]&&this[uz(0x1d9)](a6),a8[uz(0x894)]||(a8[uz(0x6e2)](),a8[uz(0x45d)](this[uz(0x538)])),this['_beautifies'][a6]=a8;},a5['prototype'][us(0x392)]=function(a6,a7){var uA=us;return void 0x0===a6&&(a6=uA(0x23e)),void 0x0===a7&&(a7={}),a2(this,void 0x0,void 0x0,function(){var a8,a9;return a3(this,function(aa){var uB=a0b;switch(aa[uB(0x898)]){case 0x0:return a8=+new Date(),console[uB(0x8f1)]('log::::input\x20node\x20addBeautyAsync',a6,this['_options']),(a9=new a1(a6,this[uB(0x91f)],this[uB(0x859)]))['detected']=this[uB(0x980)],a7&&(a9['beautify']=a7),[0x4,a9['load']()];case 0x1:return aa['sent'](),a9[uB(0x45d)](this[uB(0x538)]),this[uB(0x574)][a6]&&this['removeBeauty'](a6),this[uB(0x574)][a6]=a9,console[uB(0x8f1)](uB(0x1d0),+new Date()-a8),[0x2];}});});},a5['prototype'][us(0x2d2)]=function(){var uC=us;for(var a6 in this[uC(0x574)])this[uC(0x574)][a6][uC(0x821)]();},a5[us(0x933)][us(0x87f)]=function(){var uD=us;for(var a6 in this['_beautifies'])console[uD(0x8f1)](uD(0x5c2),a6),this[uD(0x574)][a6][uD(0x2a0)]();},a5[us(0x933)][us(0x678)]=function(a6,a7){var uE=us;for(var a8 in this[uE(0x574)])this[uE(0x574)][a8][uE(0x678)](a6,a7);},a5[us(0x933)]['removeBeauty']=function(a6){var uF=us;this[uF(0x574)][a6][uF(0x9ba)](),delete this[uF(0x574)][a6];},a5[us(0x933)][us(0x352)]=function(){var uG=us;for(var a6 in this[uG(0x574)])uG(0x23e)!==a6&&this[uG(0x1d9)](a6);},a5[us(0x933)][us(0x882)]=function(a6){var uH=us;for(var a7 in this['_beautifies'])this[uH(0x574)][a7]['setReshapeMarks'](a6);},a5[us(0x933)][us(0x4f4)]=function(a6){var uI=us;for(var a7 in this['_beautifies'])this['_beautifies'][a7][uI(0x4f4)](a6);},a5[us(0x933)][us(0x45d)]=function(){var uJ=us;for(var a6 in this[uJ(0x574)])console['log']('call\x20set\x20renderer'),this[uJ(0x574)][a6][uJ(0x45d)](this[uJ(0x538)]);},a5;}());},0x1424:(b,d,f)=>{var uX=a0b;f['d'](d,{'Z':()=>k});var g,h=f(0x4b6),j=(g=function(m,p){return g=Object['setPrototypeOf']||{'__proto__':[]}instanceof Array&&function(q,v){var uK=a0b;q[uK(0x51e)]=v;}||function(q,v){var uL=a0b;for(var w in v)Object[uL(0x933)]['hasOwnProperty']['call'](v,w)&&(q[w]=v[w]);},g(m,p);},function(m,p){var uM=a0b;if('function'!=typeof p&&null!==p)throw new TypeError(uM(0x61f)+String(p)+'\x20is\x20not\x20a\x20constructor\x20or\x20null');function q(){var uN=uM;this[uN(0x8ac)]=m;}g(m,p),m['prototype']=null===p?Object['create'](p):(q['prototype']=p[uM(0x933)],new q());});const k=function(m){var uP=a0b;function p(q){var uO=a0b,v=m[uO(0x6e9)](this)||this;v['degreeStart']=-0x5a,v[uO(0x41b)]=0x10e,v[uO(0x90b)]=0xe,v[uO(0x6eb)]=0x2,v[uO(0x4c8)]=!0x1;var w;return w=wx['getSystemInfoSync']()[uO(0x9f5)],v[uO(0x824)]=(q['size']||0x64)*w,v[uO(0x2a8)]=v[uO(0x824)]/0x2,v['lineWidth']=(q[uO(0x31a)]||0x8)*w,v[uO(0x417)]=q[uO(0x8f6)]||0x4169e1,v[uO(0x1cc)]={},v[uO(0x68e)]=new h['Graphics'](),v['graphics'][uO(0x8a2)][uO(0x6c5)](0x1/w,0x1/w),v[uO(0x52a)](v['graphics']),v[uO(0x263)]=v['draw'][uO(0x207)](v),v;}return j(p,m),p[uP(0x933)][uP(0xa10)]=function(){var uQ=uP;this['degreeStart']=this[uQ(0x4ad)]+this[uQ(0x90b)],this[uQ(0x41b)]=this['degreeEnd']+this[uQ(0x6eb)],this['degreeStart']-0x168>this['degreeEnd']&&(this['degreeStart']-=0x2d0);var q=this[uQ(0x68e)];q[uQ(0x2ff)](),q[uQ(0x17b)](this[uQ(0x31a)],this[uQ(0x417)]),q[uQ(0x5ad)](0x0,0x0,this[uQ(0x2a8)]-this[uQ(0x31a)]/0x2,(this['degreeStart']<this[uQ(0x41b)]?this[uQ(0x4ad)]:this[uQ(0x41b)])*Math['PI']/0xb4,(this['degreeStart']<this[uQ(0x41b)]?this[uQ(0x41b)]:this[uQ(0x4ad)])*Math['PI']/0xb4);},p[uP(0x933)][uP(0x909)]=function(){var uR=uP;h[uR(0x681)]['shared'][uR(0x611)](this[uR(0x263)]);},p[uP(0x933)]['removeTicker']=function(){var uS=uP;h[uS(0x681)][uS(0x395)][uS(0x2a0)](this[uS(0x263)]);},p[uP(0x933)][uP(0x9aa)]=function(q){var uT=uP;q&&(this[uT(0x1cc)][q]=0x1),this[uT(0x4c8)]||(clearTimeout(this['t']),this[uT(0x68e)]['visible']=!0x0,this[uT(0xa10)](),this['addTicker'](),this[uT(0x4c8)]=!0x0);},p[uP(0x933)][uP(0x77b)]=function(q){var uU=uP;if(q){this[uU(0x1cc)][q]=void 0x0;var v=!0x0;for(var w in this[uU(0x1cc)])this['queue'][w]&&(v=!0x1);v&&this[uU(0x200)]();}else this['_hide']();},p[uP(0x933)][uP(0x200)]=function(){var uV=uP;this['t']&&clearTimeout(this['t']),this['graphics'][uV(0x426)]=!0x1,this[uV(0x670)](),this['isVisible']=!0x1;},p[uP(0x933)][uP(0x9ba)]=function(){var uW=uP;this[uW(0x200)](),this[uW(0x68e)][uW(0x9ba)](!0x0);},p;}(h[uX(0x5af)]);},0xc30:(b,j,k)=>{var v2=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){function O(R){var uY=a0b;try{Q(L[uY(0x435)](R));}catch(S){N(S);}}function P(R){try{Q(L['throw'](R));}catch(S){N(S);}}function Q(R){var uZ=a0b,S;R[uZ(0x1ec)]?M(R[uZ(0x8b5)]):(S=R[uZ(0x8b5)],S instanceof K?S:new K(function(T){T(S);}))[uZ(0xa17)](O,P);}Q((L=L['apply'](I,J||[]))['next']());});},y=function(I,J){var v0=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)},v0(0x9d2)==typeof Symbol&&(N[Symbol['iterator']]=function(){return this;}),N;function P(Q){return function(R){return function(S){var v1=a0b;if(K)throw new TypeError(v1(0x1a4));for(;O;)try{if(K=0x1,L&&(M=0x2&S[0x0]?L['return']:S[0x0]?L['throw']||((M=L[v1(0x3d8)])&&M['call'](L),0x0):L[v1(0x435)])&&!(M=M[v1(0x6e9)](L,S[0x1]))['done'])return M;switch(L=0x0,M&&(S=[0x2&S[0x0],M['value']]),S[0x0]){case 0x0:case 0x1:M=S;break;case 0x4:return O[v1(0x898)]++,{'value':S[0x1],'done':!0x1};case 0x5:O[v1(0x898)]++,L=S[0x1],S=[0x0];continue;case 0x7:S=O['ops'][v1(0x85c)](),O[v1(0x1e5)][v1(0x85c)]();continue;default:if(!(M=O[v1(0x1e5)],(M=M[v1(0x6db)]>0x0&&M[M['length']-0x1])||0x6!==S[0x0]&&0x2!==S[0x0])){O=0x0;continue;}if(0x3===S[0x0]&&(!M||S[0x1]>M[0x0]&&S[0x1]<M[0x3])){O[v1(0x898)]=S[0x1];break;}if(0x6===S[0x0]&&O[v1(0x898)]<M[0x1]){O[v1(0x898)]=M[0x1],M=S;break;}if(M&&O[v1(0x898)]<M[0x2]){O['label']=M[0x2],O[v1(0x843)][v1(0x607)](S);break;}M[0x2]&&O[v1(0x843)]['pop'](),O[v1(0x1e5)]['pop']();continue;}S=J[v1(0x6e9)](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=v2(0x817),A=v2(0x302),B=v2(0x7fe),C='heiyanquan.png',D=v2(0x3a3),E=v2(0x994),F=v2(0x3c3),G='lips-mask-wx2.png',H=(function(){var v3=v2;function I(){}return I[v3(0x933)][v3(0x526)]=function(){return x(this,void 0x0,Promise,function(){var J;return y(this,function(K){var v4=a0b;switch(K[v4(0x898)]){case 0x0:return[0x4,(J=new v['pF']())['init']()];case 0x1:return K[v4(0x8a6)](),[0x4,J['preload']((0x0,w['xb'])())];case 0x2:return K[v4(0x8a6)](),[0x2,J['getIndeLoader']()];}});});},I[v3(0x933)][v3(0x3b9)]=function(J){return x(this,void 0x0,Promise,function(){return y(this,function(K){return[0x2,new Promise(function(L,M){var v5=a0b,N={};if(q['utils']['TextureCache'][F]&&q[v5(0x28a)][v5(0x47c)][G]&&q['utils']['TextureCache'][z]&&q[v5(0x28a)]['TextureCache'][A]&&q[v5(0x28a)]['TextureCache'][B]&&q['utils']['TextureCache'][C])return N[F]=q[v5(0x28a)][v5(0x47c)][F],N[G]=q['utils']['TextureCache'][G],N[z]=q[v5(0x28a)][v5(0x47c)][z],N[A]=q['utils'][v5(0x47c)][A],N[B]=q[v5(0x28a)][v5(0x47c)][B],N[C]=q[v5(0x28a)][v5(0x47c)][C],L(N);J[v5(0x611)](F),J[v5(0x611)](G),J[v5(0x611)](z),J[v5(0x611)](A),J[v5(0x611)](B),J[v5(0x611)](C),J[v5(0x6e2)](function(O,P){var v6=v5;return N[F]=q[v6(0x28a)][v6(0x47c)][F],N[G]=q[v6(0x28a)]['TextureCache'][G],N[z]=q[v6(0x28a)]['TextureCache'][z],N[A]=q[v6(0x28a)][v6(0x47c)][A],N[B]=q[v6(0x28a)]['TextureCache'][B],N[C]=q[v6(0x28a)][v6(0x47c)][C],L(N);});})];});});},I;}());},0x15a0:(b,d,f)=>{var vc=a0b;f['d'](d,{'f':()=>m});var g=f(0x4b6),h,j=(h=function(p,q){var v7=a0b;return h=Object[v7(0x500)]||{'__proto__':[]}instanceof Array&&function(v,w){var v8=v7;v[v8(0x51e)]=w;}||function(v,w){var v9=v7;for(var x in w)Object[v9(0x933)][v9(0x52f)][v9(0x6e9)](w,x)&&(v[x]=w[x]);},h(p,q);},function(p,q){var va=a0b;if(va(0x9d2)!=typeof q&&null!==q)throw new TypeError('Class\x20extends\x20value\x20'+String(q)+va(0x5cc));function v(){var vb=va;this[vb(0x8ac)]=p;}h(p,q),p[va(0x933)]=null===q?Object[va(0x8c3)](q):(v[va(0x933)]=q[va(0x933)],new v());}),k={'mirror':{'fragment':'\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'},'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':vc(0x2ef)},'lutSkin':{'fragment':vc(0x793)},'partialLutSkin':{'fragment':vc(0x866)},'dermabrasion':{'fragment':'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}'},'partialDermabrasion':{'fragment':vc(0x399)},'faceReshape':{'fragment':vc(0x3a9)},'maskBlack':{'fragment':'\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'},'usm':{'fragment':vc(0x8b2)}},m=function(p){var ve=vc;function q(v,w,x){var vd=a0b,y=this,z=k[v];(y=p[vd(0x6e9)](this,z[vd(0x65c)]||vd(0x297),z[vd(0x3d9)])||this)[vd(0x188)]=x||{};var A=y[vd(0x188)]['uniforms'];if(A){for(var B in A)y[vd(0x927)][B]=A[B];}var C=w[vd(0x4e6)],D=w[vd(0x4f8)];return y[vd(0x927)]['width']=C,y[vd(0x927)][vd(0x4f8)]=D,y['uniforms']['iResolution']=[C,D],y;}return j(q,p),q[ve(0x933)][ve(0x678)]=function(v,w){var vf=ve;this['uniforms'][vf(0x4e6)]=v,this[vf(0x927)]['height']=w,this[vf(0x927)][vf(0x5ed)]=[v,w];},q['prototype'][ve(0x261)]=function(v,w){var vg=ve;if(vg(0x455)==typeof v){for(var x in v)this[vg(0x927)][x]=v[x];}else this[vg(0x927)][v]!==w&&(this[vg(0x927)][v]=w);},q;}(g[vc(0x80f)]);},0x6c2:(b,d,f)=>{var vi=a0b;f['d'](d,{'a':()=>g,'L':()=>h});var g;!function(j){var vh=a0b;j[j[vh(0x45b)]=0x0]=vh(0x45b),j[j['DARKEN']=0x1]=vh(0xa0f),j[j[vh(0x662)]=0x2]=vh(0x662),j[j['COLOR_BURN']=0x3]=vh(0x48f),j[j[vh(0x1c9)]=0x4]=vh(0x1c9),j[j[vh(0x70b)]=0x5]=vh(0x70b),j[j[vh(0x6ba)]=0x6]=vh(0x6ba),j[j[vh(0x758)]=0x7]=vh(0x758),j[j[vh(0x881)]=0x8]=vh(0x881),j[j[vh(0x5d5)]=0x9]=vh(0x5d5),j[j[vh(0x911)]=0xa]=vh(0x911),j[j[vh(0x4c0)]=0xb]=vh(0x4c0),j[j[vh(0x495)]=0xc]=vh(0x495),j[j[vh(0x688)]=0xd]=vh(0x688),j[j[vh(0x848)]=0xe]=vh(0x848),j[j[vh(0x1cf)]=0xf]=vh(0x1cf),j[j[vh(0x3a0)]=0x10]=vh(0x3a0),j[j['EXCLUSION']=0x11]=vh(0x497),j[j['SUBSTRACT']=0x12]=vh(0x293);}(g||(g={}));var h=[{'name':'普通','key':vi(0x9ab),'shader':'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'},{'name':'变暗','key':'Darken','shader':vi(0x1d2)},{'name':vi(0x384),'key':vi(0x5c9),'shader':vi(0x61b)},{'name':vi(0x19c),'key':vi(0x4c3),'shader':vi(0x9b0)},{'name':'线性加深','key':vi(0x5f5),'shader':'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'},{'name':'变亮','key':vi(0x689),'shader':'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'},{'name':'滤色','key':vi(0x867),'shader':vi(0x21c)},{'name':vi(0x438),'key':vi(0x553),'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':vi(0x559),'key':'LinearDodge','shader':vi(0x823)},{'name':'叠加','key':'Overlay','shader':vi(0x39e)},{'name':'柔光','key':vi(0x87a),'shader':vi(0x30a)},{'name':'强光','key':vi(0x641),'shader':vi(0x6ee)},{'name':'亮光','key':vi(0x423),'shader':vi(0x21b)},{'name':'线性光','key':'LinearLight','shader':vi(0x41c)},{'name':'点光','key':vi(0x243),'shader':vi(0x413)},{'name':vi(0x485),'key':vi(0x351),'shader':vi(0x9e4)},{'name':'差值','key':vi(0x573),'shader':vi(0x447)},{'name':'排除','key':vi(0x683),'shader':'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'},{'name':'减去','key':vi(0x20f),'shader':vi(0x966)}];},0x2558:(j,q,z)=>{var vo=a0b;z['d'](q,{'Kg':()=>a0,'Lc':()=>L['L'],'Kj':()=>a4,'jy':()=>X});var B,F=z(0x2353),G=(B=function(af,ag){var vj=a0b;return B=Object[vj(0x500)]||{'__proto__':[]}instanceof Array&&function(ah,ai){var vk=vj;ah[vk(0x51e)]=ai;}||function(ah,ai){var vl=vj;for(var aj in ai)Object[vl(0x933)][vl(0x52f)][vl(0x6e9)](ai,aj)&&(ah[aj]=ai[aj]);},B(af,ag);},function(af,ag){var vm=a0b;if('function'!=typeof ag&&null!==ag)throw new TypeError(vm(0x61f)+String(ag)+'\x20is\x20not\x20a\x20constructor\x20or\x20null');function ah(){this['constructor']=af;}B(af,ag),af['prototype']=null===ag?Object[vm(0x8c3)](ag):(ah[vm(0x933)]=ag[vm(0x933)],new ah());}),H=function(af){function ag(){var vn=a0b,ah=null!==af&&af[vn(0x821)](this,arguments)||this;return ah[vn(0x366)]=null,ah[vn(0x43b)]=!0x1,ah[vn(0x652)]=null,ah;}return G(ag,af),ag;}(F[vo(0x80f)]),J=function(af){function ag(ah){var vp=a0b,ai=this,aj=vp(0x7a5);return aj=(aj=(aj=aj[vp(0x175)](vp(0x8a5),ah[vp(0x1e4)]||''))[vp(0x175)]('%FUNC_CODE%',ah['funcCode']||''))[vp(0x175)]('%FUNC_NAME%',ah[vp(0x3c7)]||''),(ai=af['call'](this,void 0x0,aj,ah['uniforms'])||this)[vp(0x366)]=vp(0x1ae),ai;}return G(ag,af),ag;}(H),K=(function(){var af=function(ag,ah){var vq=a0b;return af=Object[vq(0x500)]||{'__proto__':[]}instanceof Array&&function(ai,aj){ai['__proto__']=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 vr=a0b;if(vr(0x9d2)!=typeof ah&&null!==ah)throw new TypeError(vr(0x61f)+String(ah)+vr(0x5cc));function ai(){var vs=vr;this[vs(0x8ac)]=ag;}af(ag,ah),ag[vr(0x933)]=null===ah?Object[vr(0x8c3)](ah):(ai[vr(0x933)]=ah[vr(0x933)],new ai());};}()),L=(function(af){function ag(ah,ai){var vt=a0b,aj=ai||{};return aj['flipY']||(aj['flipY']=new Float32Array([0x0,0x1])),af[vt(0x6e9)](this,vt(0x9c4),ah,aj)||this;}K(ag,af);}(F['Filter']),z(0x6c2)),M=[],N=[];function Q(af,ag){var vu=vo;return void 0x0===ag&&(ag=0x1),void 0x0===af?null:(M[af]||(M[af]=new J({'funcCode':L['L'][af][vu(0x864)],'funcName':L['L'][af][vu(0x1f2)],'uniforms':{'intensity':ag}})),M[af]);}function U(af,ag){var vv=vo;return void 0x0===ag&&(ag=0x1),void 0x0===af?null:(N[af]||(N[af]=[Q(af,ag)]),N[af][0x0]['uniforms'][vv(0x2cf)]=ag,N[af]);}var V=z(0x7a9),W=(function(){var af=function(ag,ah){var vw=a0b;return af=Object[vw(0x500)]||{'__proto__':[]}instanceof Array&&function(ai,aj){var vx=vw;ai[vx(0x51e)]=aj;}||function(ai,aj){var vy=vw;for(var ak in aj)Object[vy(0x933)]['hasOwnProperty'][vy(0x6e9)](aj,ak)&&(ai[ak]=aj[ak]);},af(ag,ah);};return function(ag,ah){var vz=a0b;if(vz(0x9d2)!=typeof ah&&null!==ah)throw new TypeError(vz(0x61f)+String(ah)+vz(0x5cc));function ai(){var vA=vz;this[vA(0x8ac)]=ag;}af(ag,ah),ag[vz(0x933)]=null===ah?Object[vz(0x8c3)](ah):(ai['prototype']=ah[vz(0x933)],new ai());};}()),X=function(af){var vC=vo;function ag(){var vB=a0b;return null!==af&&af[vB(0x821)](this,arguments)||this;}return W(ag,af),ag['prototype'][vC(0x464)]=function(ah){var vD=vC,ai=this[vD(0x320)];if(ai&&ai[vD(0x984)]){var aj=U(this[vD(0x560)]);new Date(),aj&&(ah[vD(0x523)][vD(0x64b)](),!ah[vD(0x59b)]['pushWithCheck'](this,aj))||(+new Date(),this[vD(0x814)](),ah['batch'][vD(0xa1c)](ah[vD(0x26a)][this[vD(0x757)]]),ah[vD(0x26a)][this[vD(0x757)]][vD(0x292)](this),aj&&(ah[vD(0x523)]['flush'](),ah[vD(0x59b)][vD(0x85c)]()));}},ag;}(V['j']),Y=z(0xb55),Z=(function(){var af=function(ag,ah){return af=Object['setPrototypeOf']||{'__proto__':[]}instanceof Array&&function(ai,aj){var vE=a0b;ai[vE(0x51e)]=aj;}||function(ai,aj){var vF=a0b;for(var ak in aj)Object['prototype'][vF(0x52f)]['call'](aj,ak)&&(ai[ak]=aj[ak]);},af(ag,ah);};return function(ag,ah){var vG=a0b;if('function'!=typeof ah&&null!==ah)throw new TypeError(vG(0x61f)+String(ah)+vG(0x5cc));function ai(){var vH=vG;this[vH(0x8ac)]=ag;}af(ag,ah),ag[vG(0x933)]=null===ah?Object[vG(0x8c3)](ah):(ai[vG(0x933)]=ah[vG(0x933)],new ai());};}()),a0=function(af){var vK=vo;function ag(ah,ai){var vI=a0b;void 0x0===ai&&(ai=!0x0);var aj=af[vI(0x6e9)](this,ah[0x0]instanceof F['Texture']?ah[0x0]:ah[0x0]['texture'])||this;return aj[vI(0x306)]=null,aj[vI(0x478)]=null,aj[vI(0x3fb)]=ai,aj['_isConnectedToTicker']=!0x1,aj['animationSpeed']=0x1,aj[vI(0x54f)]=!0x0,aj['updateAnchor']=!0x1,aj[vI(0x47b)]=null,aj[vI(0x276)]=null,aj[vI(0x268)]=null,aj[vI(0x34e)]=0x0,aj[vI(0x9c5)]=!0x1,aj[vI(0x592)]=null,aj['textures']=ah,aj;}return Z(ag,af),ag['prototype']['stop']=function(){var vJ=a0b;this[vJ(0x9c5)]&&(this[vJ(0x9c5)]=!0x1,this[vJ(0x3fb)]&&this[vJ(0x916)]&&(Y['vB'][vJ(0x395)][vJ(0x2a0)](this[vJ(0x783)],this),this[vJ(0x916)]=!0x1));},ag[vK(0x933)][vK(0x614)]=function(){var vL=vK;this[vL(0x9c5)]||(this[vL(0x9c5)]=!0x0,this[vL(0x3fb)]&&!this[vL(0x916)]&&(Y['vB']['shared'][vL(0x611)](this[vL(0x783)],this,Y['uF'][vL(0x7d6)]),this[vL(0x916)]=!0x0));},ag[vK(0x933)]['gotoAndStop']=function(ah){var vM=vK;this[vM(0x3b3)]();var ai=this[vM(0x5f4)];this[vM(0x34e)]=ah,ai!==this[vM(0x5f4)]&&this['updateTexture']();},ag[vK(0x933)]['gotoAndPlay']=function(ah){var vN=vK,ai=this[vN(0x5f4)];this[vN(0x34e)]=ah,ai!==this[vN(0x5f4)]&&this['updateTexture'](),this[vN(0x614)]();},ag[vK(0x933)][vK(0x783)]=function(ah){var vO=vK;if(this[vO(0x9c5)]){var ai=this['animationSpeed']*ah,aj=this[vO(0x5f4)];if(null!==this['_durations']){var ak=this[vO(0x34e)]%0x1*this['_durations'][this['currentFrame']];for(ak+=ai/0x3c*0x3e8;ak<0x0;)this['_currentTime']--,ak+=this[vO(0x478)][this[vO(0x5f4)]];var al=Math['sign'](this['animationSpeed']*ah);for(this[vO(0x34e)]=Math['floor'](this[vO(0x34e)]);ak>=this[vO(0x478)][this['currentFrame']];)ak-=this[vO(0x478)][this[vO(0x5f4)]]*al,this[vO(0x34e)]+=al;this['_currentTime']+=ak/this[vO(0x478)][this[vO(0x5f4)]];}else this[vO(0x34e)]+=ai;this[vO(0x34e)]<0x0&&!this['loop']?(this['gotoAndStop'](0x0),this[vO(0x47b)]&&this[vO(0x47b)]()):this['_currentTime']>=this[vO(0x306)][vO(0x6db)]&&!this[vO(0x54f)]?(this[vO(0x201)](this['_textures'][vO(0x6db)]-0x1),this['onComplete']&&this[vO(0x47b)]()):aj!==this[vO(0x5f4)]&&(this[vO(0x54f)]&&this[vO(0x268)]&&(this['animationSpeed']>0x0&&this[vO(0x5f4)]<aj||this[vO(0x659)]<0x0&&this[vO(0x5f4)]>aj)&&this['onLoop'](),this['updateTexture']());}},ag[vK(0x933)][vK(0x44f)]=function(){var vP=vK,ah=this[vP(0x5f4)];this[vP(0x592)]!==ah&&(this['_previousFrame']=ah,this[vP(0x320)]=this[vP(0x306)][ah],this[vP(0x78c)]=-0x1,this[vP(0x3c4)]=-0x1,this['_cachedTint']=0xffffff,this['uvs']=this[vP(0x320)][vP(0x92c)][vP(0x3fa)],this[vP(0x273)]&&this[vP(0x7c8)][vP(0x471)](this['_texture'][vP(0x54a)]),this[vP(0x276)]&&this[vP(0x276)](this[vP(0x5f4)]));},ag[vK(0x933)][vK(0x9ba)]=function(ah){var vQ=vK;this['stop'](),af[vQ(0x933)][vQ(0x9ba)][vQ(0x6e9)](this,ah),this[vQ(0x47b)]=null,this[vQ(0x276)]=null,this['onLoop']=null;},ag[vK(0x524)]=function(ah){var vR=vK;for(var ai=[],aj=0x0;aj<ah[vR(0x6db)];++aj)ai[vR(0x607)](F[vR(0x35f)][vR(0x170)](ah[aj]));return new ag(ai);},ag[vK(0x65e)]=function(ah){var vS=vK;for(var ai=[],aj=0x0;aj<ah['length'];++aj)ai[vS(0x607)](F[vS(0x35f)][vS(0x170)](ah[aj]));return new ag(ai);},Object[vK(0x1d6)](ag[vK(0x933)],'totalFrames',{'get':function(){var vT=vK;return this[vT(0x306)]['length'];},'enumerable':!0x1,'configurable':!0x0}),Object[vK(0x1d6)](ag[vK(0x933)],'textures',{'get':function(){var vU=vK;return this[vU(0x306)];},'set':function(ah){var vV=vK;if(ah[0x0]instanceof F[vV(0x35f)])this[vV(0x306)]=ah,this[vV(0x478)]=null;else{this[vV(0x306)]=[],this['_durations']=[];for(var ai=0x0;ai<ah[vV(0x6db)];ai++)this[vV(0x306)][vV(0x607)](ah[ai][vV(0x5ef)]),this[vV(0x478)][vV(0x607)](ah[ai][vV(0x40f)]);}this[vV(0x592)]=null,this[vV(0x201)](0x0),this['updateTexture']();},'enumerable':!0x1,'configurable':!0x0}),Object[vK(0x1d6)](ag[vK(0x933)],vK(0x5f4),{'get':function(){var vW=vK,ah=Math[vW(0x646)](this['_currentTime'])%this['_textures'][vW(0x6db)];return ah<0x0&&(ah+=this['_textures'][vW(0x6db)]),ah;},'enumerable':!0x1,'configurable':!0x0}),Object[vK(0x1d6)](ag[vK(0x933)],vK(0x84a),{'get':function(){var vX=vK;return this[vX(0x9c5)];},'enumerable':!0x1,'configurable':!0x0}),Object[vK(0x1d6)](ag[vK(0x933)],'autoUpdate',{'get':function(){var vY=vK;return this[vY(0x3fb)];},'set':function(ah){var vZ=vK;ah!==this[vZ(0x3fb)]&&(this[vZ(0x3fb)]=ah,!this[vZ(0x3fb)]&&this[vZ(0x916)]?(Y['vB'][vZ(0x395)][vZ(0x2a0)](this['update'],this),this[vZ(0x916)]=!0x1):this['_autoUpdate']&&!this['_isConnectedToTicker']&&this['_playing']&&(Y['vB'][vZ(0x395)][vZ(0x611)](this[vZ(0x783)],this),this['_isConnectedToTicker']=!0x0));},'enumerable':!0x1,'configurable':!0x0}),ag;}(X),a1=z(0x1fcd),a2=z(0x1deb),a3=(function(){var af=function(ag,ah){var w0=a0b;return af=Object[w0(0x500)]||{'__proto__':[]}instanceof Array&&function(ai,aj){ai['__proto__']=aj;}||function(ai,aj){var w1=w0;for(var ak in aj)Object[w1(0x933)]['hasOwnProperty'][w1(0x6e9)](aj,ak)&&(ai[ak]=aj[ak]);},af(ag,ah);};return function(ag,ah){var w2=a0b;if('function'!=typeof ah&&null!==ah)throw new TypeError('Class\x20extends\x20value\x20'+String(ah)+w2(0x5cc));function ai(){var w3=w2;this[w3(0x8ac)]=ag;}af(ag,ah),ag['prototype']=null===ah?Object[w2(0x8c3)](ah):(ai[w2(0x933)]=ah[w2(0x933)],new ai());};}()),a4=function(af){var w5=vo;function ag(){var w4=a0b;return null!==af&&af[w4(0x821)](this,arguments)||this;}return a3(ag,af),ag[w5(0x933)]['_render']=function(ah){var w6=w5,ai=U(this[w6(0x560)],this[w6(0x2cf)]);if(!ai||(ah['batch'][w6(0x64b)](),ah[w6(0x59b)]['pushWithCheck'](this,ai))){var aj=this[w6(0x476)]['buffers'][0x0]['data'];this[w6(0x864)][w6(0x862)]&&this[w6(0x992)]===a2['lg'][w6(0x4cd)]&&aj['length']<0x2*ag[w6(0x3b2)]?this[w6(0x432)](ah):this['_renderDefault'](ah),ai&&(ah[w6(0x523)]['flush'](),ah[w6(0x59b)][w6(0x85c)]());}},ag;}(a1['Kj']),a5=z(0x810),a6=(function(){var af=function(ag,ah){var w7=a0b;return af=Object[w7(0x500)]||{'__proto__':[]}instanceof Array&&function(ai,aj){ai['__proto__']=aj;}||function(ai,aj){var w8=w7;for(var ak in aj)Object['prototype'][w8(0x52f)][w8(0x6e9)](aj,ak)&&(ai[ak]=aj[ak]);},af(ag,ah);};return function(ag,ah){var w9=a0b;if(w9(0x9d2)!=typeof ah&&null!==ah)throw new TypeError(w9(0x61f)+String(ah)+w9(0x5cc));function ai(){this['constructor']=ag;}af(ag,ah),ag[w9(0x933)]=null===ah?Object[w9(0x8c3)](ah):(ai[w9(0x933)]=ah['prototype'],new ai());};}()),a7=(function(af){var wa=vo;function ag(){return null!==af&&af['apply'](this,arguments)||this;}a6(ag,af),ag[wa(0x933)][wa(0x464)]=function(ah){var wb=wa,ai=this[wb(0x320)];if(ai&&ai[wb(0x984)]){var aj=U(this['blendMode_1']);aj&&(ah[wb(0x523)]['flush'](),!ah[wb(0x59b)][wb(0x213)](this,aj))||(this[wb(0x6f7)][wb(0x5c1)](),this[wb(0x5e9)][wb(0x783)](),ah['batch'][wb(0xa1c)](ah[wb(0x26a)][this[wb(0x757)]]),ah[wb(0x26a)][this['pluginName']][wb(0x292)](this),aj&&(ah['batch'][wb(0x64b)](),ah[wb(0x59b)][wb(0x85c)]()));}};}(a5['o']),z(0x765));function a8(af,ag){var wc=vo;void 0x0===ag&&(ag=0x0);var ah=this['gl'];this[wc(0x246)]!==ag&&(this[wc(0x246)]=ag,ah[wc(0x7ed)](ah[wc(0x1bf)]+ag)),this[wc(0x207)](af,ag);}var a9=new a7['y3']();function aa(af,ag,ah){var wd=vo;void 0x0===ah&&(ah=!0x0);for(var ai=this[wd(0x538)],aj=this[wd(0x4eb)],ak=this[wd(0x473)][wd(0x85c)]()||new F[(wd(0x52e))](),al=this[wd(0x538)][wd(0x57f)],am=ag[0x0][wd(0xa23)],an=ag[0x0][wd(0x77c)],ao=ag[0x0]['autoFit'],ap=ag[0x0][wd(0x656)],aq=0x1;aq<ag[wd(0x6db)];aq++){var ar=ag[aq];am=Math[wd(0x7bc)](am,ar[wd(0xa23)]),an=this[wd(0x5c5)]?Math['max'](an,ar[wd(0x77c)]):an+ar[wd(0x77c)],ao=ao&&ar['autoFit'],ap=ap||ar[wd(0x656)];}0x1===aj[wd(0x6db)]&&(this['defaultFilterStack'][0x0][wd(0x57f)]=al[wd(0x3a8)]),aj[wd(0x607)](ak),ak[wd(0xa23)]=am,ak[wd(0x656)]=ap,ak[wd(0x775)]=af,ak[wd(0x4bf)][wd(0x471)](af['filterArea']||af[wd(0x7f1)](!0x0)),ak[wd(0x4bf)][wd(0x3d4)](an);var as,at,au,av,aw,ax,ay=!0x0;if(ao){var az=this[wd(0x7da)]['copyFrom'](al['sourceFrame']);ai['projection'][wd(0x241)]&&this[wd(0x91d)](a9['copyFrom'](ai[wd(0x2a7)][wd(0x241)])[wd(0x7d2)](),az),ak[wd(0x4bf)][wd(0x68d)](az);}else as=this[wd(0x538)][wd(0x57f)][wd(0x4bf)],at=ak[wd(0x4bf)],au=at['x']+at[wd(0x4e6)],av=at['y']+at[wd(0x4f8)],aw=as['x']+as[wd(0x4e6)],ax=as['y']+as[wd(0x4f8)],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[wd(0x4bf)][wd(0x4e6)]<=0x1&&ak[wd(0x4bf)]['height']<=0x1)return aj['pop'](),ak['clear'](),this[wd(0x473)]['push'](ak),!0x1;this['roundFrame'](ak['sourceFrame'],al[wd(0x3a8)]?al[wd(0x3a8)][wd(0xa23)]:ai[wd(0xa23)],al[wd(0x4bf)],al['destinationFrame'],ai['projection']['transform']),ak[wd(0x4bf)]['ceil'](am),new Date();if(ay){var aA=null,aB=null;for(aq=0x0;aq<ag['length'];aq++){var aC=ag[aq]['backdropUniformName'];if(aC){var aD=ag[aq][wd(0x927)];aD[aC+'_flipY']||(aD[aC+'_flipY']=new Float32Array([0x0,0x1]));var aE=aD[aC+wd(0x586)];null===aA?(aA=this[wd(0x8ee)](ak[wd(0x4bf)],aE),aB=aE):(aE[0x0]=aB[0x0],aE[0x1]=aB[0x1]),aD[aC]=aA,aA&&(ag[aq][wd(0x43b)]=!0x0);}}aA&&(am=ak[wd(0xa23)]=aA['resolution']);}ak[wd(0x57f)]=this[wd(0x7f6)](ak['sourceFrame'][wd(0x4e6)],ak[wd(0x4bf)]['height'],am),ak[wd(0x3e8)]=ag,ak[wd(0x2ce)][wd(0x4e6)]=ak['renderTexture'][wd(0x4e6)],ak[wd(0x2ce)]['height']=ak[wd(0x57f)]['height'];var aF=this[wd(0x7da)];aF['x']=0x0,aF['y']=0x0,aF['width']=ak['sourceFrame'][wd(0x4e6)],aF[wd(0x4f8)]=ak[wd(0x4bf)][wd(0x4f8)],ak['renderTexture'][wd(0x7f0)]=ak[wd(0x4bf)],ak[wd(0x5c4)][wd(0x471)](al['sourceFrame']),ak[wd(0x3c6)][wd(0x471)](al[wd(0x2ce)]),ak[wd(0x241)]=ai['projection'][wd(0x241)],ai[wd(0x2a7)][wd(0x241)]=null,al['bind'](ak[wd(0x57f)],ak[wd(0x4bf)],aF);var aG=ag[ag[wd(0x6db)]-0x1]['clearColor'];return aG?ai[wd(0xa28)][wd(0x2ff)](aG[0x0],aG[0x1],aG[0x2],aG[0x3]):ai[wd(0xa28)][wd(0x2ff)](0x0,0x0,0x0,0x0),!0x0;}function ab(af,ag){var we=vo;return this[we(0x213)](af,ag,!0x1);}function ac(){var wf=vo,af=this[wf(0x4eb)],ag=af[wf(0x85c)](),ah=ag['filters'];this[wf(0x36f)]=ag;var ai=this['globalUniforms'][wf(0x927)];ai[wf(0x74d)]=ag[wf(0x4bf)],ai[wf(0xa23)]=ag[wf(0xa23)];var aj=ai[wf(0x1de)],ak=ai[wf(0x9f3)],al=ai[wf(0x245)];if(aj[0x0]=ag['destinationFrame'][wf(0x4e6)],aj[0x1]=ag[wf(0x2ce)][wf(0x4f8)],aj[0x2]=0x1/aj[0x0],aj[0x3]=0x1/aj[0x1],ak[0x0]=aj[0x0]*ag[wf(0xa23)],ak[0x1]=aj[0x1]*ag[wf(0xa23)],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[wf(0x4bf)][wf(0x4e6)]*aj[0x2]-0.5*ak[0x2],al[0x3]=ag[wf(0x4bf)][wf(0x4f8)]*aj[0x3]-0.5*ak[0x3],ag[wf(0x656)]){var am=ai[wf(0x75b)];am[0x0]=ag[wf(0x2ce)][wf(0x4e6)],am[0x1]=ag[wf(0x2ce)][wf(0x4f8)],am[0x2]=ag[wf(0x4bf)]['x'],am[0x3]=ag[wf(0x4bf)]['y'],ai[wf(0x595)]=ai[wf(0x245)];}this[wf(0x990)][wf(0x783)]();var an=af[af[wf(0x6db)]-0x1];if(ag[wf(0x57f)][wf(0xa28)][wf(0x458)]>0x1&&this[wf(0x538)][wf(0xa28)][wf(0x9bd)](),0x1===ah[wf(0x6db)])ah[0x0][wf(0x821)](this,ag[wf(0x57f)],an[wf(0x57f)],a2['yl'][wf(0x985)],ag),this[wf(0x2de)](ag['renderTexture']);else{var ao=ag[wf(0x57f)],ap=this['getOptimalFilterTexture'](ao['width'],ao[wf(0x4f8)],ag['resolution']);ap['filterFrame']=ao[wf(0x7f0)];var aq=0x0;for(aq=0x0;aq<ah['length']-0x1;++aq){ah[aq][wf(0x821)](this,ao,ap,a2['yl'][wf(0x94d)],ag);var ar=ao;ao=ap,ap=ar;}ah[aq][wf(0x821)](this,ao,an[wf(0x57f)],a2['yl'][wf(0x985)],ag),this[wf(0x2de)](ao),this['returnFilterTexture'](ap);}var as=!0x1;for(aq=0x0;aq<ah[wf(0x6db)];aq++)if(ah[aq][wf(0x43b)]){var at=ah[aq]['backdropUniformName'];as||(this[wf(0x2de)](ah[aq]['uniforms'][at]),as=!0x0),ah[aq]['uniforms'][at]=null,ah[aq][wf(0x43b)]=!0x1;}ag[wf(0x2ff)](),this['statePool'][wf(0x607)](ag);}var ad=!0x1;function ae(af,ag){var wg=vo,ah=this[wg(0x538)],ai=ah[wg(0x57f)][wg(0x3a8)],aj=this[wg(0x538)][wg(0x57f)][wg(0x4bf)],ak=ah[wg(0x2a7)][wg(0x241)]||a7['y3'][wg(0x8cd)],al=0x1;if(ai)al=ai[wg(0x4dc)][wg(0xa23)],ag[0x1]=0x1;else{if(!ah[wg(0x8c6)])return ad||(ad=!0x0,console[wg(0x83b)](wg(0x976))),null;al=ah['resolution'],ag[0x1]=-0x1;}var am=Math[wg(0x869)]((af['x']-aj['x']+ak['tx'])*al),an=af['y']-aj['y']+ak['ty'],ao=Math[wg(0x869)]((ag[0x1]<0x0?aj[wg(0x4f8)]-(an+af[wg(0x4f8)]):an)*al),ap=Math[wg(0x869)](af[wg(0x4e6)]*al),aq=Math[wg(0x869)](af['height']*al),ar=ah['gl'],as=this['getOptimalFilterTexture'](ap,aq,0x1);return ag[0x1]<0x0&&(ag[0x0]=aq/as['height']),as[wg(0x7f0)]=aj,as[wg(0x181)](al),ah[wg(0x5ef)]['bindForceLocation'](as[wg(0x4dc)],0x0),new Date(),(ar[wg(0x703)](ar['TEXTURE_2D'],0x0,0x0,0x0,am,ao,ap,aq),as);}F[vo(0x9ec)][vo(0x933)][vo(0x6ea)]=a8,F[vo(0x682)][vo(0x933)][vo(0x607)]=ab,F['FilterSystem']['prototype'][vo(0x213)]=aa,F[vo(0x682)][vo(0x933)][vo(0x85c)]=ac,F[vo(0x682)][vo(0x933)][vo(0x8ee)]=ae;},0x191:(j,k,q)=>{var wh=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=wh(0x56f);function x(){var wi=wh;return''['concat'](wi(0x3f9),'/')[wi(0x893)](wi(0x5b8),'/')[wi(0x893)](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=wh(0x3ee),F='61,75,74,68',G=wh(0x4aa),H=wh(0x960),I=wh(0x701),J='4b,65,79,4c,69,73,74',K={'bu':'62,65,61,75,74,69,66,79','mu':'65,66,66,65,63,74,5f,6d,61,6b,65,75,70','s':wh(0x25e),'s3':wh(0x32e),'f':wh(0x6f0),'bg':wh(0x5d2),'a':wh(0x7be),'av':wh(0x723)};function L(P){var wj=wh;for(var Q='',R=P[wj(0xa20)](','),S=0x0;S<R[wj(0x6db)];S++)Q+=String[wj(0x657)](parseInt(R[S],0x10));return Q;}function M(P){var wk=wh;for(var Q='',R=0x0;R<P['length'];R++)''==Q?Q=P[wk(0x483)](R)[wk(0x4e3)](0x10):Q+=','+P[wk(0x483)](R)[wk(0x4e3)](0x10);return Q;}var N=wh(0x5a2),O=wh(0x967);},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 wl=a0b,G,H=arguments[wl(0x6db)],I=H<0x3?D:null===F?F=Object[wl(0x2af)](D,E):F;if(wl(0x455)==typeof Reflect&&wl(0x9d2)==typeof Reflect[wl(0x9d5)])I=Reflect[wl(0x9d5)](C,D,E,F);else{for(var J=C[wl(0x6db)]-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[wl(0x1d6)](D,E,I),I;},w=function(C,D){if('object'==typeof Reflect&&'function'==typeof Reflect['metadata'])return Reflect['metadata'](C,D);},x=function(C,D,E,F){return new(E||(E=Promise))(function(G,H){var wo=a0b;function I(L){try{K(F['next'](L));}catch(M){H(M);}}function J(L){var wm=a0b;try{K(F[wm(0x567)](L));}catch(M){H(M);}}function K(L){var wn=a0b,M;L[wn(0x1ec)]?G(L[wn(0x8b5)]):(M=L['value'],M instanceof E?M:new E(function(N){N(M);}))['then'](I,J);}K((F=F['apply'](C,D||[]))[wo(0x435)]());});},y=function(C,D){var wp=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)},wp(0x9d2)==typeof Symbol&&(H[Symbol[wp(0x897)]]=function(){return this;}),H;function J(K){return function(L){return function(M){var wq=a0b;if(E)throw new TypeError(wq(0x1a4));for(;I;)try{if(E=0x1,F&&(G=0x2&M[0x0]?F[wq(0x3d8)]:M[0x0]?F[wq(0x567)]||((G=F[wq(0x3d8)])&&G[wq(0x6e9)](F),0x0):F['next'])&&!(G=G[wq(0x6e9)](F,M[0x1]))[wq(0x1ec)])return G;switch(F=0x0,G&&(M=[0x2&M[0x0],G[wq(0x8b5)]]),M[0x0]){case 0x0:case 0x1:G=M;break;case 0x4:return I[wq(0x898)]++,{'value':M[0x1],'done':!0x1};case 0x5:I[wq(0x898)]++,F=M[0x1],M=[0x0];continue;case 0x7:M=I[wq(0x843)]['pop'](),I[wq(0x1e5)][wq(0x85c)]();continue;default:if(!(G=I[wq(0x1e5)],(G=G[wq(0x6db)]>0x0&&G[G[wq(0x6db)]-0x1])||0x6!==M[0x0]&&0x2!==M[0x0])){I=0x0;continue;}if(0x3===M[0x0]&&(!G||M[0x1]>G[0x0]&&M[0x1]<G[0x3])){I[wq(0x898)]=M[0x1];break;}if(0x6===M[0x0]&&I[wq(0x898)]<G[0x1]){I[wq(0x898)]=G[0x1],G=M;break;}if(G&&I['label']<G[0x2]){I[wq(0x898)]=G[0x2],I[wq(0x843)][wq(0x607)](M);break;}G[0x2]&&I['ops'][wq(0x85c)](),I[wq(0x1e5)][wq(0x85c)]();continue;}M=D[wq(0x6e9)](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 ws=a0b;function C(){var wr=a0b;this[wr(0x666)]=!0x1,this['_initing']=!0x1;}return C[ws(0x933)]['getLoader']=function(){var wt=ws;return this[wt(0x182)];},C[ws(0x933)][ws(0x284)]=function(){var wu=ws;return this[wu(0x206)]();},C[ws(0x933)]['readJSON']=function(D,E){var wv=ws,F=this[wv(0x58f)][wv(0x1f0)](D,E)['file'];if(F&&F[wv(0x6db)])return JSON[wv(0x92d)](p['T8'](F));},C[ws(0x933)][ws(0x206)]=function(){var ww=ws,D=this,E=new m[(ww(0x8bf))](),F=this[ww(0x4c9)]();return E[ww(0x24b)](F),E['use'](function(G,H){var wx=ww;if(wx(0x861)!==G[wx(0x3dc)]){var I=G['data'];if(m[wx(0x28a)][wx(0x47c)][G[wx(0x667)]])H();else{var J=m[wx(0x35f)][wx(0x57d)](I[wx(0x4d4)],I[wx(0x4e6)],I[wx(0x4f8)],{'alphaMode':m['ALPHA_MODES']['UNPACK']});m[wx(0x8aa)][wx(0x545)](J[wx(0x4dc)],G[wx(0x667)]),m[wx(0x35f)]['addToCache'](J,G[wx(0x667)]),H();}}else D[wx(0x202)](E,G,H);}),E;},C[ws(0x933)]['removeFromCache']=function(D){var wy=ws;this[wy(0x58f)]&&this[wy(0x58f)][wy(0x889)](D);},C[ws(0x933)][ws(0x526)]=function(){return x(this,void 0x0,Promise,function(){var D=this;return y(this,function(E){var wz=a0b;return this['_inited']?[0x2,Promise['resolve']()]:this[wz(0x653)]?[0x2,new Promise(function(F,G){var H,I=function(){var wA=a0b;D[wA(0x666)]?(F(),clearTimeout(H)):H=setTimeout(I,0x32);};H=setTimeout(I,0x32);})]:(this['_initing']=!0x0,[0x2,new Promise(function(F,G){var wB=wz,H=new k['e']({});H[wB(0x526)]()[wB(0xa17)](function(){var wC=wB;D[wC(0x666)]=!0x0,D['_initing']=!0x1,D[wC(0x58f)]=H,D[wC(0x182)]=D[wC(0x206)](),F();})[wB(0x7e1)](function(I){});})]);});});},C[ws(0x933)][ws(0x884)]=function(D){return x(this,void 0x0,void 0x0,function(){var E;return y(this,function(F){var wD=a0b;switch(F[wD(0x898)]){case 0x0:return F[wD(0x1e5)]['push']([0x0,0x2,,0x3]),[0x4,this[wD(0x58f)][wD(0x884)](D)];case 0x1:return F[wD(0x8a6)](),[0x3,0x3];case 0x2:return E=F[wD(0x8a6)](),[0x2,Promise[wD(0x693)](E)];case 0x3:return[0x2];}});});},C['prototype']['getPreMiddleware']=function(){var D=this;return function(E,F){var wE=a0b;if(m&&m[wE(0x28a)][wE(0x47c)]&&E&&m['utils']['TextureCache'][E[wE(0x667)]])F();else{var G=E['url'],H=D[wE(0x58f)]['getFileFromCache'](G),I=H['zip'],J=H['file'],K=E[wE(0x667)];if(K[wE(0x962)](wE(0x9fc))>-0x1&&K[wE(0x962)]('|')>-0x1){var L=K[wE(0xa20)]('|')[0x0],M=D[wE(0x58f)][wE(0x1f0)](G,L);I=M[wE(0x79d)],J=M[wE(0x4d4)];}if(/\.(json)$/i[wE(0x2ed)](G))return E[wE(0x53b)]=JSON[wE(0x92d)](p['T8'](J)),E[wE(0x623)](),void F();/\.(gif|jpe?g|tiff?|png|webp|bmp)$/i[wE(0x2ed)](G)?(E[wE(0x53b)]={'file':J,'width':I[wE(0x73e)][G]?I[wE(0x73e)][G][wE(0x4e6)]:0x320,'height':I['__config'][G]?I['__config'][G][wE(0x4f8)]:0x320},E[wE(0x623)](),F()):(E['data']={'file':J},E[wE(0x623)](),F());}};},C[ws(0x933)][ws(0x202)]=function(D,E,F){var wF=ws,G=''[wF(0x893)](E[wF(0x667)],wF(0x624));if(E[wF(0x53b)]&&E['data']['frames']&&!D[wF(0x203)][G]&&!m[wF(0x28a)]['TextureCache'][G]){var H={'crossOrigin':E[wF(0x613)],'metadata':E['data'][wF(0xa04)]},I=E['data'][wF(0xa04)]['image'],J=E[wF(0x260)][wF(0xa20)]('/');J[wF(0x85c)](),J[wF(0x607)](I),I=J['join']('/');var K=this[wF(0x69b)]();K[wF(0x611)](G,I,H,function(L){var wG=wF,M=m['Texture'][wG(0x57d)](L[wG(0x53b)][wG(0x4d4)],L[wG(0x53b)]['width'],L[wG(0x53b)][wG(0x4f8)],{'alphaMode':m[wG(0x590)]['UNPACK']}),N=new m[(wG(0xa27))](M,E['data'],E[wG(0x260)]);N[wG(0x92d)](function(){var wH=wG;E[wH(0x873)]=N,E[wH(0x92a)]=N[wH(0x92a)],z[E['name']]=E,F();});}),K['load'](function(L,M){});}else F();},C=v([q['e'],w(ws(0x608),[])],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 wJ=a0b;function P(){var wI=a0b;this['projectName']=wI(0x54d),this[wI(0x7a6)]=wI(0x358),wI(0x490)!=typeof self&&self?this[wI(0x971)]=self:'undefined'!=typeof window&&window&&(this[wI(0x971)]=window);}return P[wJ(0x933)][wJ(0x4bd)]=function(){var wK=wJ,Q=this[wK(0x971)];return!(void 0x0===Q||!Q||!Q[wK(0x214)]);},P[wJ(0x933)][wJ(0x526)]=function(){var Q=this;return new Promise(function(R,S){var wL=a0b;if(Q[wL(0x4bd)]()){if(Q['db'])return void R(Q['db']);var T=Q[wL(0x971)]['indexedDB']['open'](Q[wL(0x694)],0x1);T[wL(0x83d)]=function(U){var wM=wL;Q['db']=U[wM(0x775)][wM(0x41f)],R(Q);},T[wL(0x1ff)]=function(U){var wN=wL,V=U['target'][wN(0x41f)];V[wN(0x7ab)][wN(0x603)](Q[wN(0x7a6)])||V[wN(0x310)](Q[wN(0x7a6)]);},T['onerror']=function(U){S(U);};}else S();});},P['prototype'][wJ(0x9ad)]=function(Q){var R=this;return new Promise(function(S,T){var wO=a0b;if(R['db']){var U=R['db'][wO(0xa00)](R[wO(0x7a6)])[wO(0x58d)](R[wO(0x7a6)])[wO(0x52c)](Q);U['onsuccess']=function(){var wP=wO;return S(U[wP(0x41f)]);},U[wO(0x6bb)]=function(){return T();};}else T();});},P[wJ(0x933)]['setItem']=function(Q,R){var S=this;return new Promise(function(T,U){var wQ=a0b;if(S['db']){var V=S['db'][wQ(0xa00)](S[wQ(0x7a6)],'readwrite')[wQ(0x58d)](S[wQ(0x7a6)])[wQ(0x8d9)](R,Q);V[wQ(0x83d)]=function(){return T(R);},V[wQ(0x6bb)]=function(){return U();};}else U();});},P[wJ(0x933)][wJ(0x1fc)]=function(Q){var R=this;return new Promise(function(S,T){var wR=a0b;if(R['db']){var U=R['db']['transaction'](R[wR(0x7a6)],wR(0x196))[wR(0x58d)](R[wR(0x7a6)])[wR(0x2fc)](Q);U[wR(0x83d)]=function(){return S(null);},U['onerror']=function(){return T();};}else T();});},P['prototype'][wJ(0x3be)]=function(){var Q=this;return new Promise(function(R,S){var wS=a0b;if(!Q['db'])return S();var T=Q['db'][wS(0xa00)](Q[wS(0x7a6)])[wS(0x58d)](Q['objectStoreName'])[wS(0x6c9)]();T[wS(0x83d)]=function(){var wT=wS;return R(T[wT(0x41f)]);},T['onerror']=function(){return S();};});},P['prototype']['clear']=function(){var Q=this;return new Promise(function(R,S){var wU=a0b;if(!Q['db'])return S();var T=Q['db']['transaction'](Q['objectStoreName'],wU(0x196))['objectStore'](Q['objectStoreName'])['clear']();T['onsuccess']=function(){return R(null);},T[wU(0x6bb)]=function(){return S();};});},P;}());var D=q(0x191),E=q(0x17dd),F=q(0x2700),G=function(P,Q,R,S){var wV=a0b,T,U=arguments[wV(0x6db)],V=U<0x3?Q:null===S?S=Object[wV(0x2af)](Q,R):S;if(wV(0x455)==typeof Reflect&&'function'==typeof Reflect[wV(0x9d5)])V=Reflect[wV(0x9d5)](P,Q,R,S);else{for(var W=P['length']-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[wV(0x1d6)](Q,R,V),V;},H=function(P,Q){var wW=a0b;if('object'==typeof Reflect&&'function'==typeof Reflect[wW(0x1b8)])return Reflect[wW(0x1b8)](P,Q);},I=function(P,Q,R,S){return new(R||(R=Promise))(function(T,U){var x0=a0b;function V(Y){var wX=a0b;try{X(S[wX(0x435)](Y));}catch(Z){U(Z);}}function W(Y){var wY=a0b;try{X(S[wY(0x567)](Y));}catch(Z){U(Z);}}function X(Y){var wZ=a0b,Z;Y[wZ(0x1ec)]?T(Y[wZ(0x8b5)]):(Z=Y[wZ(0x8b5)],Z instanceof R?Z:new R(function(a0){a0(Z);}))['then'](V,W);}X((S=S['apply'](P,Q||[]))[x0(0x435)]());});},J=function(P,Q){var x1=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)},'function'==typeof Symbol&&(U[Symbol[x1(0x897)]]=function(){return this;}),U;function W(X){return function(Y){return function(Z){var x2=a0b;if(R)throw new TypeError('Generator\x20is\x20already\x20executing.');for(;V;)try{if(R=0x1,S&&(T=0x2&Z[0x0]?S[x2(0x3d8)]:Z[0x0]?S[x2(0x567)]||((T=S['return'])&&T[x2(0x6e9)](S),0x0):S['next'])&&!(T=T['call'](S,Z[0x1]))['done'])return T;switch(S=0x0,T&&(Z=[0x2&Z[0x0],T[x2(0x8b5)]]),Z[0x0]){case 0x0:case 0x1:T=Z;break;case 0x4:return V[x2(0x898)]++,{'value':Z[0x1],'done':!0x1};case 0x5:V[x2(0x898)]++,S=Z[0x1],Z=[0x0];continue;case 0x7:Z=V[x2(0x843)][x2(0x85c)](),V[x2(0x1e5)][x2(0x85c)]();continue;default:if(!(T=V[x2(0x1e5)],(T=T[x2(0x6db)]>0x0&&T[T[x2(0x6db)]-0x1])||0x6!==Z[0x0]&&0x2!==Z[0x0])){V=0x0;continue;}if(0x3===Z[0x0]&&(!T||Z[0x1]>T[0x0]&&Z[0x1]<T[0x3])){V[x2(0x898)]=Z[0x1];break;}if(0x6===Z[0x0]&&V[x2(0x898)]<T[0x1]){V[x2(0x898)]=T[0x1],T=Z;break;}if(T&&V[x2(0x898)]<T[0x2]){V['label']=T[0x2],V[x2(0x843)][x2(0x607)](Z);break;}T[0x2]&&V[x2(0x843)]['pop'](),V['trys']['pop']();continue;}Z=Q[x2(0x6e9)](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 x3=a0b,Q='function'==typeof Symbol&&Symbol['iterator'],R=Q&&P[Q],S=0x0;if(R)return R[x3(0x6e9)](P);if(P&&'number'==typeof P['length'])return{'next':function(){var x4=x3;return P&&S>=P[x4(0x6db)]&&(P=void 0x0),{'value':P&&P[S++],'done':!P};}};throw new TypeError(Q?x3(0x89b):x3(0x9fa));},L=function(P,Q){var x5=a0b,R=x5(0x9d2)==typeof Symbol&&P[Symbol[x5(0x897)]];if(!R)return P;var S,T,U=R[x5(0x6e9)](P),V=[];try{for(;(void 0x0===Q||Q-->0x0)&&!(S=U['next']())[x5(0x1ec)];)V[x5(0x607)](S[x5(0x8b5)]);}catch(W){T={'error':W};}finally{try{S&&!S[x5(0x1ec)]&&(R=U['return'])&&R['call'](U);}finally{if(T)throw T['error'];}}return V;},M=function(P,Q,R){var x6=a0b;if(R||0x2===arguments[x6(0x6db)]){for(var S,T=0x0,U=Q[x6(0x6db)];T<U;T++)!S&&T in Q||(S||(S=Array[x6(0x933)][x6(0x9a1)][x6(0x6e9)](Q,0x0,T)),S[T]=Q[T]);}return P['concat'](S||Array['prototype'][x6(0x9a1)]['call'](Q));},N=(function(){var x8=a0b;function P(Q){var x7=a0b;this[x7(0x824)]=Q,this['data']=new Map();}return P[x8(0x933)]['put']=function(Q,R){var x9=x8;if(E['D4']['info'](x9(0x8d9),Q),Q[x9(0x962)](D['c9'])>-0x1&&(this[x9(0x249)]=R,this[x9(0x74b)]=Q),this[x9(0x53b)][x9(0x8a0)](Q))return this[x9(0x53b)][x9(0x2fc)](Q),void this[x9(0x53b)][x9(0x6c5)](Q,R);if(this[x9(0x53b)][x9(0x824)]>=this['size']){var S=this[x9(0x53b)]['keys']()['next']()[x9(0x8b5)];this[x9(0x53b)][x9(0x2fc)](S);}this[x9(0x53b)][x9(0x6c5)](Q,R);},P[x8(0x933)][x8(0x52c)]=function(Q){var xa=x8;if(Q[xa(0x962)](D['c9'])>-0x1)return this['common_cache'];if(!this[xa(0x53b)][xa(0x8a0)](Q))return!0x1;var R=this[xa(0x53b)][xa(0x52c)](Q);return this[xa(0x53b)][xa(0x2fc)](Q),this[xa(0x53b)]['set'](Q,R),R;},Object['defineProperty'](P['prototype'],x8(0x3be),{'get':function(){var xb=x8;return Array['from'](this[xb(0x53b)][xb(0x3be)]())[xb(0x893)]([this['common_cache_domain']]);},'enumerable':!0x1,'configurable':!0x0}),P[x8(0x933)][x8(0x2fc)]=function(Q){var xc=x8;this[xc(0x53b)][xc(0x2fc)](Q);},P['prototype'][x8(0x2ff)]=function(){var xd=x8;this[xd(0x53b)][xd(0x2ff)]();},P;}()),O=(function(){var xf=a0b;function P(Q){var xe=a0b;this[xe(0x666)]=!0x1,this[xe(0x653)]=!0x1,this[xe(0x932)]=new N(0x7),this[xe(0x368)]={},Q=Q||{},this[xe(0x534)]=Q,this[xe(0x8c0)]=new C();}return P[xf(0x933)][xf(0x526)]=function(){return I(this,void 0x0,Promise,function(){var Q=this;return J(this,function(R){var xg=a0b;return this['_inited']?[0x2,Promise[xg(0x7bd)]()]:this[xg(0x653)]?[0x2,new Promise(function(S,T){var U,V=function(){Q['_inited']?(S(),clearTimeout(U)):U=setTimeout(V,0x32);};U=setTimeout(V,0x32);})]:(this['_initing']=!0x0,this['_c']=new x['Y'](),[0x2,this['_c'][xg(0x526)]()[xg(0xa17)](function(){var xh=xg;Q['_inited']=!0x0,Q[xh(0x653)]=!0x1,setTimeout(function(){Q['checkAndClearOldFileCache']();},0x270f);})]);});});},P['prototype'][xf(0x59e)]=function(){var xi=xf,Q=this;return this[xi(0x1bd)]||(this[xi(0x1bd)]=new Worker(),this[xi(0x1bd)]['onmessage']=function(R){var xj=xi,S=R[xj(0x53b)],T=S['p1'],U=S['p2'],V=S[xj(0x6db)],W=(S['i'],S['u']),X=S[xj(0x1a6)];if(X)Q[xj(0x67a)]=new Error(X[xj(0x7f8)]);else{var Y=new Uint8Array(V);Y[xj(0x6c5)](T),Y[xj(0x6c5)](U,T['length']),Q[xj(0x5eb)](W,Y);var Z=Q['_c'],a0=Z['run'](T,'');Z['finish']('');var a1=new Uint8Array(V);a1[xj(0x6c5)](a0),a1[xj(0x6c5)](U,a0['length']);var a2=w['GZ'](a1);E['D4']['info']('preload\x20finish:',W),Q[xj(0x5fe)](a2)[xj(0xa17)](function(){var xk=xj;Q['_cache'][xk(0x8d9)](W,a2),delete Q[xk(0x368)][W];});}}),this[xi(0x1bd)];},P[xf(0x933)][xf(0x884)]=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 xl=a0b;if(this[xl(0x368)][Q])return[0x2,this[xl(0x487)](Q)];for(T in(this[xl(0x368)][Q]=!0x0,this['_loadingMap']))T!==Q&&(this[xl(0x368)][T]=!0x1);return this[xl(0x932)][xl(0x52c)](Q)?(delete this['_loadingMap'][Q],[0x2,Promise[xl(0x7bd)]()]):(U=A['Z'][xl(0x6c0)](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 xm=a0b;switch(a3[xm(0x898)]){case 0x0:return[0x4,(0x0,F['pe'])(U,Q)[xm(0x7e1)](function(a4){var xn=xm;B['N'][xn(0x275)](xn(0x1a6),a4);})];case 0x1:return a3[xm(0x8a6)](),Z=wx[xm(0x82d)](),a0={},a1=''[xm(0x893)](wx[xm(0x97a)][xm(0x49e)],xm(0x444))[xm(0x893)](U,xm(0x91e)),console['log']('zip\x20处理',a1),Z['readZipEntry']({'filePath':a1,'entries':xm(0x1ea),'success':function(a4){var xo=xm,a5=a4[xo(0x76b)];for(var a6 in a5)a0[a6]=new Uint8Array(a5[a6][xo(0x53b)]);a2['_cache'][xo(0x8d9)](Q,a0),delete a2['_loadingMap'][Q],a2[xo(0x5fe)](a0)[xo(0xa17)](function(){var xp=xo;R||Z['unlink']({'filePath':''[xp(0x893)](wx[xp(0x97a)][xp(0x49e)],'/ar/')[xp(0x893)](U,xp(0x94e)),'success':function(){},'fail':function(a7){var xq=xp;console[xq(0x8f1)]('delete\x20local\x20cache\x20fail',a7);}}),X();});},'fail':function(a4){var xr=xm;console[xr(0x8f1)](a4[xr(0x650)]);}}),[0x2];}});});})]);});});},P[xf(0x933)]['getFileFromCache']=function(Q,R){var xs=xf;if(R&&R[xs(0x6db)]){var S=proxyServerManager[xs(0x534)];S&&S[xs(0x1d4)]&&(R=proxyServerManager[xs(0x9a3)](R));}var T=this['_find'](Q,R);return{'zip':T['c'],'file':T['f']};},P[xf(0x933)]['getGroupFromCache']=function(Q){var xt=xf;return this[xt(0x932)][xt(0x52c)](Q);},P[xf(0x933)][xf(0x42f)]=function(Q,R){var xu=xf,S,T,U,V,W=this[xu(0x932)],X=Q;if(R){var Y=W[xu(0x52c)](R);return Y&&(V=Y[X]),{'c':Y,'f':V};}var Z=W[xu(0x3be)][xu(0x9a7)]();try{for(var a0=K(Z),a1=a0[xu(0x435)]();!a1[xu(0x1ec)];a1=a0[xu(0x435)]()){var a2=a1[xu(0x8b5)];if(V=(U=W[xu(0x52c)](a2))[X])break;}}catch(a3){S={'error':a3};}finally{try{a1&&!a1[xu(0x1ec)]&&(T=a0[xu(0x3d8)])&&T[xu(0x6e9)](a0);}finally{if(S)throw S['error'];}}return{'c':U,'f':V};},P['prototype']['_setConfig']=function(Q){return I(this,void 0x0,Promise,function(){return J(this,function(R){return[0x2,new Promise(function(S){var xv=a0b;if(Q['__config'])S();else{var T=Q['__config.json'];if(T){var U=JSON[xv(0x92d)](w['T8'](T));Q[xv(0x73e)]=U,S();}else S();}})];});});},P['prototype']['waitUntilPreload']=function(Q){var R=this;return new Promise(function(S,T){var U=setInterval(function(){var xw=a0b;R['_cache'][xw(0x52c)](Q)&&(clearInterval(U),S());},0x32);});},P[xf(0x933)][xf(0x99b)]=function(Q){var xx=xf;for(var R=[],S=0x1;S<arguments[xx(0x6db)];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 xy=a0b,X=T[xy(0x932)][xy(0x3be)],Y=Q[xy(0xa20)]('/')[xy(0x85c)]();X[xy(0x461)](function(Z){var xz=xy,a0=T[xz(0x932)][xz(0x52c)](Z),a1=a0[Y];if(a0[Y]){var a2=w['T8'](a1),a3=new Function(''+a2),a4=a3['call'][xz(0x821)](a3,M([null],L(R),!0x1));return V(a4);}});})];});});},P[xf(0x933)][xf(0x318)]=function(Q,R,S){var T,U=this;return void 0x0===S&&(S=!0x1),R&&'string'==typeof R&&(T=R),new Promise(function(V){var xA=a0b,W,X=U[xA(0x932)]['keys'];if(W=S?Q:Q[xA(0xa20)]('/')[xA(0x85c)](),T){var Y=U[xA(0x932)]['get'](T)[W];return Y?V(Y):V();}X['forEach'](function(Z){var xB=xA,a0=U[xB(0x932)]['get'](Z)[W];if(a0)return V(a0);});});},P[xf(0x933)][xf(0x889)]=function(Q){var xC=xf;console[xC(0x8f1)](xC(0x889),Q),this[xC(0x932)][xC(0x2fc)](Q);},P[xf(0x933)]['clearCache']=function(){var xD=xf;this['_cache']['clear'](),this[xD(0x1bd)]&&(this[xD(0x1bd)][xD(0x6fd)](),this[xD(0x1bd)]=null);},P[xf(0x933)]['clearCacheTmp']=function(Q){var xE=xf,R,S;void 0x0===Q&&(Q=[]);try{for(var T=K(this['_cache'][xE(0x3be)]),U=T[xE(0x435)]();!U[xE(0x1ec)];U=T[xE(0x435)]()){var V=U[xE(0x8b5)];-0x1===Q['indexOf'](V)&&this[xE(0x932)][xE(0x2fc)](V);}}catch(W){R={'error':W};}finally{try{U&&!U[xE(0x1ec)]&&(S=T[xE(0x3d8)])&&S[xE(0x6e9)](T);}finally{if(R)throw R[xE(0x1a6)];}}},P[xf(0x933)]['fetchWithSubPackage']=function(Q,R){return I(this,void 0x0,void 0x0,function(){var S,T,U,V,W,X;return J(this,function(Y){var xF=a0b;switch(Y['label']){case 0x0:if(!(R>0x1&&Blob[xF(0x933)][xF(0x904)]))return[0x3,0x3];for(T=0x100000,U=[],V=function(Z){var xG=xF,a0=Z*T,a1=a0+T-0x1,a2=xG(0x35c)[xG(0x893)](a0,'-')[xG(0x893)](a1),a3=new Promise(function(a4,a5){var xH=xG;fetch(''['concat'](Q,'?id=00')[xH(0x893)](Z),{'method':xH(0x819),'mode':'cors','headers':{'range':a2}})[xH(0xa17)](function(a6){var xI=xH;return a6[xI(0x904)]();})[xH(0xa17)](function(a6){a4(a6);});});U[xG(0x607)](a3);},W=0x0;W<R;W++)V(W);return[0x4,Promise[xF(0x1ea)](U)];case 0x1:return X=Y[xF(0x8a6)](),[0x4,new Blob(X)['arrayBuffer']()];case 0x2:return S=Y['sent'](),[0x3,0x6];case 0x3:return[0x4,fetch(Q,{'method':xF(0x819),'mode':'cors'})[xF(0x7e1)](function(Z){var xJ=xF;console['log'](xJ(0x361),Z);})];case 0x4:return[0x4,Y[xF(0x8a6)]()[xF(0x904)]()['catch'](function(Z){var xK=xF;console['log'](xK(0x6e1),Z);})];case 0x5:S=Y[xF(0x8a6)](),Y[xF(0x898)]=0x6;case 0x6:return[0x2,S];}});});},P['prototype'][xf(0x2bd)]=function(Q){return!!{'effect.bin':!0x0}[Q];},P['prototype'][xf(0x5eb)]=function(Q,R){var xL=xf,S=this;try{this[xL(0x8c0)][xL(0x4bd)]()&&this[xL(0x8c0)]['init']()[xL(0xa17)](function(){var xM=xL,T=Q[xM(0xa20)]('/')[xM(0x85c)]();if(!S[xM(0x2bd)](T)){var U=''[xM(0x893)](xM(0x5b8),'/')[xM(0x893)](T);S[xM(0x8c0)][xM(0x316)](U,R);}});}catch(T){}},P['prototype'][xf(0x8ca)]=function(Q){var R=this;return new Promise(function(S,T){var xN=a0b;R[xN(0x8c0)][xN(0x4bd)]()?R[xN(0x8c0)]['init']()[xN(0xa17)](function(){var xO=xN,U=Q[xO(0xa20)]('/')[xO(0x85c)](),V=''[xO(0x893)](xO(0x5b8),'/')[xO(0x893)](U);R['checkFileCacheBlackList'](U)?S(null):R[xO(0x8c0)][xO(0x9ad)](V)[xO(0xa17)](function(W){S(W||null);});})['catch'](function(){S(null);}):S(null);});},P[xf(0x933)]['checkAndClearOldFileCache']=function(){var xP=xf,Q=this;this[xP(0x8c0)]['checkSupport']()&&this['arCacheStorage']['init']()[xP(0xa17)](function(){var xQ=xP;Q[xQ(0x8c0)][xQ(0x3be)]()[xQ(0xa17)](function(R){var xR=xQ;if(R&&R['length'])for(var S=''['concat']('1.0.23-2'),T=0x0;T<R[xR(0x6db)];T++){var U=R[T];U&&U[xR(0x962)](S)<0x0&&Q['arCacheStorage'][xR(0x1fc)](U);}});})['catch'](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 xT=a0b;function k(m){var xS=a0b;void 0x0===m&&(m='zh'),this[xS(0x362)]=m;}return Object['defineProperty'](k[xT(0x933)],'lang',{'get':function(){var xU=xT;return this[xU(0x362)];},'set':function(m){var xV=xT;this[xV(0x362)]=m;},'enumerable':!0x1,'configurable':!0x0}),k[xT(0x933)]['t']=function(m){var xW=xT;return'zh'===this[xW(0x362)]?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 y0=a0b;function y(B){var xX=a0b;try{A(v[xX(0x435)](B));}catch(C){x(C);}}function z(B){var xY=a0b;try{A(v[xY(0x567)](B));}catch(C){x(C);}}function A(B){var xZ=a0b,C;B[xZ(0x1ec)]?w(B[xZ(0x8b5)]):(C=B[xZ(0x8b5)],C instanceof q?C:new q(function(D){D(C);}))[xZ(0xa17)](y,z);}A((v=v[y0(0x821)](m,p||[]))[y0(0x435)]());});},h=function(m,p){var y1=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)},y1(0x9d2)==typeof Symbol&&(x[Symbol[y1(0x897)]]=function(){return this;}),x;function z(A){return function(B){return function(C){var y2=a0b;if(q)throw new TypeError(y2(0x1a4));for(;y;)try{if(q=0x1,v&&(w=0x2&C[0x0]?v['return']:C[0x0]?v[y2(0x567)]||((w=v['return'])&&w['call'](v),0x0):v[y2(0x435)])&&!(w=w[y2(0x6e9)](v,C[0x1]))['done'])return w;switch(v=0x0,w&&(C=[0x2&C[0x0],w[y2(0x8b5)]]),C[0x0]){case 0x0:case 0x1:w=C;break;case 0x4:return y['label']++,{'value':C[0x1],'done':!0x1};case 0x5:y['label']++,v=C[0x1],C=[0x0];continue;case 0x7:C=y[y2(0x843)][y2(0x85c)](),y[y2(0x1e5)]['pop']();continue;default:if(!(w=y[y2(0x1e5)],(w=w['length']>0x0&&w[w[y2(0x6db)]-0x1])||0x6!==C[0x0]&&0x2!==C[0x0])){y=0x0;continue;}if(0x3===C[0x0]&&(!w||C[0x1]>w[0x0]&&C[0x1]<w[0x3])){y[y2(0x898)]=C[0x1];break;}if(0x6===C[0x0]&&y['label']<w[0x1]){y['label']=w[0x1],w=C;break;}if(w&&y[y2(0x898)]<w[0x2]){y[y2(0x898)]=w[0x2],y[y2(0x843)][y2(0x607)](C);break;}w[0x2]&&y[y2(0x843)][y2(0x85c)](),y[y2(0x1e5)][y2(0x85c)]();continue;}C=p[y2(0x6e9)](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 y3=a0b,w=v[y3(0x8b5)];return'AsyncFunction'===w[y3(0x8ac)][y3(0x667)]?v['value']=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 y4=a0b;switch(z[y4(0x898)]){case 0x0:return[0x4,w[y4(0x821)](this,x)[y4(0x7e1)](function(A){var y5=y4;console[y5(0x8f1)](''[y5(0x893)](m,'.')[y5(0x893)](q,'\x20call\x20failed'),A);})];case 0x1:return[0x2,z[y4(0x8a6)]()];}});});}:v[y3(0x8b5)]=function(){var y6=y3;for(var x=[],y=0x0;y<arguments['length'];y++)x[y]=arguments[y];try{var z=w[y6(0x821)](this,x);return z;}catch(A){console[y6(0x8f1)](''[y6(0x893)](m,'.')[y6(0x893)](q,y6(0x9a9)),A);}},v;};}function k(m){return function(p,q,v){var w=v['value'];return v['value']=function(){var y7=a0b;for(var x=[],y=0x0;y<arguments[y7(0x6db)];y++)x[y]=arguments[y];return g(this,void 0x0,void 0x0,function(){return h(this,function(z){var y8=a0b;switch(z['label']){case 0x0:return[0x4,w[y8(0x821)](this,x)[y8(0x7e1)](function(A){var y9=y8;console[y9(0x8f1)](''[y9(0x893)](m,'.')['concat'](q,'\x20call\x20failed'),A);})];case 0x1:return[0x2,z[y8(0x8a6)]()];}});});},v;};}},0x1407:(b,g,j)=>{var yi=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 ya=a0b,I,J=arguments[ya(0x6db)],K=J<0x3?F:null===H?H=Object['getOwnPropertyDescriptor'](F,G):H;if(ya(0x455)==typeof Reflect&&ya(0x9d2)==typeof Reflect[ya(0x9d5)])K=Reflect['decorate'](E,F,G,H);else{for(var L=E[ya(0x6db)]-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[ya(0x1d6)](F,G,K),K;},z=function(E,F){var yb=a0b;if(yb(0x455)==typeof Reflect&&yb(0x9d2)==typeof Reflect[yb(0x1b8)])return Reflect['metadata'](E,F);},A=function(E,F,G,H){return new(G||(G=Promise))(function(I,J){var yf=a0b;function K(N){var yc=a0b;try{M(H[yc(0x435)](N));}catch(O){J(O);}}function L(N){var yd=a0b;try{M(H[yd(0x567)](N));}catch(O){J(O);}}function M(N){var ye=a0b,O;N['done']?I(N[ye(0x8b5)]):(O=N[ye(0x8b5)],O instanceof G?O:new G(function(P){P(O);}))['then'](K,L);}M((H=H[yf(0x821)](E,F||[]))['next']());});},B=function(E,F){var yg=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)},yg(0x9d2)==typeof Symbol&&(J[Symbol['iterator']]=function(){return this;}),J;function L(M){return function(N){return function(O){var yh=a0b;if(G)throw new TypeError(yh(0x1a4));for(;K;)try{if(G=0x1,H&&(I=0x2&O[0x0]?H[yh(0x3d8)]:O[0x0]?H[yh(0x567)]||((I=H[yh(0x3d8)])&&I[yh(0x6e9)](H),0x0):H[yh(0x435)])&&!(I=I[yh(0x6e9)](H,O[0x1]))[yh(0x1ec)])return I;switch(H=0x0,I&&(O=[0x2&O[0x0],I[yh(0x8b5)]]),O[0x0]){case 0x0:case 0x1:I=O;break;case 0x4:return K[yh(0x898)]++,{'value':O[0x1],'done':!0x1};case 0x5:K[yh(0x898)]++,H=O[0x1],O=[0x0];continue;case 0x7:O=K[yh(0x843)][yh(0x85c)](),K[yh(0x1e5)][yh(0x85c)]();continue;default:if(!(I=K[yh(0x1e5)],(I=I['length']>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[yh(0x898)]=O[0x1];break;}if(0x6===O[0x0]&&K[yh(0x898)]<I[0x1]){K[yh(0x898)]=I[0x1],I=O;break;}if(I&&K[yh(0x898)]<I[0x2]){K[yh(0x898)]=I[0x2],K[yh(0x843)]['push'](O);break;}I[0x2]&&K['ops'][yh(0x85c)](),K['trys']['pop']();continue;}O=F[yh(0x6e9)](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]);};}};yi(0x490)==typeof WXWebAssembly&&m['N'][yi(0x275)](yi(0x1a6),{'code':x['U'][yi(0x570)],'message':k['Z']['t'](yi(0x7c9))});var C=WXWebAssembly,D=(function(){var yk=yi;function E(){var yj=a0b;this[yj(0x666)]=!0x1,this['_initing']=!0x1;}return E['prototype'][yk(0x526)]=function(){return A(this,void 0x0,Promise,function(){var F=this;return B(this,function(G){var yl=a0b;return this['_inited']?[0x2,Promise[yl(0x7bd)]()]:this[yl(0x653)]?[0x2,new Promise(function(H,I){var J,K=function(){var ym=a0b;F[ym(0x666)]?(H(),clearTimeout(J)):J=setTimeout(K,0x64);};J=setTimeout(K,0x64);})]:(this[yl(0x653)]=!0x0,[0x2,new Promise(function(H,I){var yn=yl;C[yn(0x617)]('/'['concat'](v['d9'],yn(0x2c9)),{})[yn(0xa17)](function(J){var yo=yn;F[yo(0x708)]=J[yo(0x635)][yo(0x87e)],F[yo(0x2a9)](),F['_inited']=!0x0,F[yo(0x653)]=!0x1,H();})[yn(0x7e1)](function(J){var yp=yn;console[yp(0x8f1)]('wasm\x20instantiate\x20error',J);});})]);});});},E[yk(0x933)]['_initWasmWrapper']=function(){var yq=yk,F,G=this[yq(0x708)],H=G['memory'],I=G['__wbindgen_malloc'],J=G[yq(0x49c)];function K(){var yr=yq;return null!=F&&F[yr(0x938)]===H[yr(0x938)]||(F=new Uint8Array(H[yr(0x938)])),F;}var L,M,N=0x0;function O(R){var ys=yq;for(var S=R[ys(0x6db)],T=I(S),U=K(),V=0x0;V<S;V++){var W=R['charCodeAt'](V);if(W>0x7f)break;U[T+V]=W;}if(V!==S){0x0!==V&&(R=R[ys(0x9a1)](V)),T=J(T,S,S=V+0x3*R['length']);var X=K()[ys(0x825)](T+V,T+S);V+=L(R,X)[ys(0x3ba)];}return N=V,T;}function P(){var yt=yq;return null!=M&&M[yt(0x938)]===H[yt(0x938)]||(M=new Int32Array(H[yt(0x938)])),M;}function Q(R,S){var yu=yq;return w['T8'](K()[yu(0x825)](R,R+S));}L=function(R,S){var yv=yq,T,U,V=new Array();T=R[yv(0x6db)];for(var W=0x0;W<T;W++)(U=R['charCodeAt'](W))>=0x10000&&U<=0x10ffff?(V[yv(0x607)](U>>0x12&0x7|0xf0),V[yv(0x607)](U>>0xc&0x3f|0x80),V[yv(0x607)](U>>0x6&0x3f|0x80),V[yv(0x607)](0x3f&U|0x80)):U>=0x800&&U<=0xffff?(V[yv(0x607)](U>>0xc&0xf|0xe0),V[yv(0x607)](U>>0x6&0x3f|0x80),V[yv(0x607)](0x3f&U|0x80)):U>=0x80&&U<=0x7ff?(V[yv(0x607)](U>>0x6&0x1f|0xc0),V[yv(0x607)](0x3f&U|0x80)):V['push'](0xff&U);var X=new Int8Array(V['length']);for(var W in V)X[W]=V[W];return S[yv(0x6c5)](X),{'read':R['length'],'written':X[yv(0x6db)]};},this[yq(0x97f)]=function(R,S){var yw=yq,T,U,V=G[(0x0,v['rR'])(v['Cb'])],W=G['__wbindgen_free'],X=(U=I(0x1*(T=R)[yw(0x6db)]),K()[yw(0x6c5)](T,U/0x1),N=T[yw(0x6db)],U),Y=N;try{V(0x8,X,Y,O(S),N);var Z=P(),a0=function(a1,a2){return K()['subarray'](a1/0x1,a1/0x1+a2);}(Z[0x2],Z[0x3])['slice']();return W(Z[0x2],0x1*Z[0x3]),a0;}finally{R['set'](K()[yw(0x825)](X/0x1,X/0x1+Y)),W(X,0x1*Y);}},this[yq(0x8fd)]=function(R){var yx=yq;(0x0,G[yx(0x8fd)])(O(R),N);},this['run2']=function(R,S,T){var yy=yq,U=G[yy(0x506)],V=(G[(0x0,v['rR'])(v['Gb'])](0x8,O(R),N,O(S),N,O(T),N),P()),W=Q(V[0x2],V[0x3])[yy(0x9a1)]();return U(V[0x2],0x1*V[0x3]),W;},this['a_de']=function(R){var yz=yq,S=G[yz(0x506)],T=(G[yz(0x913)](0x8,O(R),N),P()),U=Q(T[0x2],T[0x3])[yz(0x9a1)]();return S(T[0x2],0x1*T[0x3]),U;},this[yq(0x8de)]=function(R){var yA=yq,S=G[yA(0x506)],T=(G['a_en'](0x8,O(R),N),P()),U=Q(T[0x2],T[0x3])[yA(0x9a1)]();return S(T[0x2],0x1*T[0x3]),U;};},E=y([q['e'],z(yk(0x608),[])],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 yC=a0b;function j(){var yB=a0b;this[yB(0x738)]={};}return j[yC(0x933)][yC(0x2ff)]=function(){this['_events']={};},j[yC(0x933)]['on']=function(k,m){var yD=yC;return this[yD(0x738)][k]||(this[yD(0x738)][k]=[]),this[yD(0x738)][k][yD(0x607)](m)-0x1;},j[yC(0x933)][yC(0x275)]=function(k,m){var yE=yC,p=this;if(yE(0x1a6)!==k){var q=this[yE(0x738)][k];q&&q['length']&&q[yE(0x461)](function(v){v(m);});}else setTimeout(function(v){var yF=yE,w=p[yF(0x738)][k];w&&w[yF(0x6db)]&&w[yF(0x461)](function(x){x(m);});},0x64);},j['prototype'][yC(0x716)]=function(k,m,p){var yG=yC,q=this[yG(0x738)][k];if(q&&q[yG(0x6db)]){if(void 0x0!==p)q[yG(0x908)](p,0x1);else{var v=q[yG(0x8e0)](function(w){return w===m;});v>-0x1&&q[yG(0x908)](v,0x1);}}},j[yC(0x933)][yC(0x31f)]=function(k,m){var yH=yC,p,q=this;this[yH(0x738)][k]||(this[yH(0x738)][k]=[]);var v=function(w){var yI=yH;m(w),q[yI(0x716)](k,v,p);};p=this['on'](k,v);},j;}()),h=new g();},0x17dd:(b,d,f)=>{var yJ=a0b;f['d'](d,{'D4':()=>m,'bH':()=>p,'b_':()=>k,'jl':()=>j});var g=f(0x170d),h=f['n'](g);h()[yJ(0x24a)]();function j(q){var yK=yJ;return h()[yK(0x52c)](q);}var k=j(yJ(0x16f)),m=j('resource-load'),p=j(yJ(0x811));},0x543:(b,d,f)=>{function g(j,k){var yL=a0b;j['z']=j['z']||0x0,k['z']=k['z']||0x0;var m=Math[yL(0x672)](j['x']-k['x'],0x2)+Math[yL(0x672)](j['y']-k['y'],0x2)+Math['pow'](j['z']-k['z'],0x2);return Math[yL(0x672)](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 yM=a0b;return k[yM(0x933)]!==p[yM(0x933)]?Reflect[yM(0x38e)](k,m,p):(k[g]||(k[g]=Reflect[yM(0x38e)](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 yN=a0b,A,B=arguments[yN(0x6db)],C=B<0x3?x:null===z?z=Object['getOwnPropertyDescriptor'](x,y):z;if(yN(0x455)==typeof Reflect&&yN(0x9d2)==typeof Reflect[yN(0x9d5)])C=Reflect[yN(0x9d5)](w,x,y,z);else{for(var D=w[yN(0x6db)]-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[yN(0x1d6)](x,y,C),C;},m=function(w,x,y,z){return new(y||(y=Promise))(function(A,B){var yR=a0b;function C(F){var yO=a0b;try{E(z[yO(0x435)](F));}catch(G){B(G);}}function D(F){var yP=a0b;try{E(z[yP(0x567)](F));}catch(G){B(G);}}function E(F){var yQ=a0b,G;F[yQ(0x1ec)]?A(F[yQ(0x8b5)]):(G=F[yQ(0x8b5)],G instanceof y?G:new y(function(H){H(G);}))[yQ(0xa17)](C,D);}E((z=z[yR(0x821)](w,x||[]))[yR(0x435)]());});},p=function(w,x){var yS=a0b,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)},yS(0x9d2)==typeof Symbol&&(B[Symbol['iterator']]=function(){return this;}),B;function D(E){return function(F){return function(G){var yT=a0b;if(y)throw new TypeError(yT(0x1a4));for(;C;)try{if(y=0x1,z&&(A=0x2&G[0x0]?z[yT(0x3d8)]:G[0x0]?z[yT(0x567)]||((A=z[yT(0x3d8)])&&A[yT(0x6e9)](z),0x0):z[yT(0x435)])&&!(A=A['call'](z,G[0x1]))[yT(0x1ec)])return A;switch(z=0x0,A&&(G=[0x2&G[0x0],A[yT(0x8b5)]]),G[0x0]){case 0x0:case 0x1:A=G;break;case 0x4:return C['label']++,{'value':G[0x1],'done':!0x1};case 0x5:C['label']++,z=G[0x1],G=[0x0];continue;case 0x7:G=C[yT(0x843)][yT(0x85c)](),C[yT(0x1e5)][yT(0x85c)]();continue;default:if(!(A=C['trys'],(A=A[yT(0x6db)]>0x0&&A[A[yT(0x6db)]-0x1])||0x6!==G[0x0]&&0x2!==G[0x0])){C=0x0;continue;}if(0x3===G[0x0]&&(!A||G[0x1]>A[0x0]&&G[0x1]<A[0x3])){C[yT(0x898)]=G[0x1];break;}if(0x6===G[0x0]&&C[yT(0x898)]<A[0x1]){C[yT(0x898)]=A[0x1],A=G;break;}if(A&&C[yT(0x898)]<A[0x2]){C[yT(0x898)]=A[0x2],C[yT(0x843)][yT(0x607)](G);break;}A[0x2]&&C[yT(0x843)][yT(0x85c)](),C[yT(0x1e5)][yT(0x85c)]();continue;}G=x[yT(0x6e9)](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 yU=a0b,x=yU(0x9d2)==typeof Symbol&&Symbol[yU(0x897)],y=x&&w[x],z=0x0;if(y)return y[yU(0x6e9)](w);if(w&&yU(0x92f)==typeof w[yU(0x6db)])return{'next':function(){var yV=yU;return w&&z>=w[yV(0x6db)]&&(w=void 0x0),{'value':w&&w[z++],'done':!w};}};throw new TypeError(x?'Object\x20is\x20not\x20iterable.':yU(0x9fa));},v=(function(){var yW=a0b;function w(){}return w[yW(0x933)][yW(0x6e2)]=function(){return m(this,void 0x0,void 0x0,function(){return p(this,function(x){var yX=a0b;return[0x2,Promise[yX(0x7bd)]()];});});},w[yW(0x933)][yW(0x97b)]=function(x){return function(y){var yY=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[yY(0x85f)];case 0xa:return g[yY(0x424)];case 0xb:return g['Ed'];case 0xc:return g[yY(0x6d8)];case 0xd:return g[yY(0x6d0)];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[yW(0x933)][yW(0x1db)]=function(x){var yZ=yW,y,z,A={};try{for(var B=q(x),C=B[yZ(0x435)]();!C[yZ(0x1ec)];C=B[yZ(0x435)]()){var D=C[yZ(0x8b5)],E=h['c4'][D];A[D]=this[yZ(0x97b)](E);}}catch(F){y={'error':F};}finally{try{C&&!C[yZ(0x1ec)]&&(z=B[yZ(0x3d8)])&&z[yZ(0x6e9)](B);}finally{if(y)throw y[yZ(0x1a6)];}}return A;},w=k([j['e']],w);}());},0x12c9:(a0,a1,a2)=>{var z3=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 z0=a0b;for(var c3=c0[z0(0x6db)],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 z1=a0b;for(var c1=c0[0x0],c2=0x1;c2<c0[z1(0x6db)];++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 z2=a0b;(null==c1||c1<0x0)&&(c1=0x0),(null==c2||c2>c0[z2(0x6db)])&&(c2=c0[z2(0x6db)]);var c3=new(c0 instanceof a5?a5:c0 instanceof a6?a6:a4)(c2-c1);return c3[z2(0x6c5)](c0[z2(0x825)](c1,c2)),c3;},ay=[z3(0x550),z3(0x7e6),z3(0x83a),z3(0x9e1),'stream\x20finished',z3(0x2b2),,z3(0x713),z3(0x387),z3(0x61e),z3(0x551),z3(0x6a2),'stream\x20finishing',z3(0x695)],az=function(c0,c1,c2){var z4=z3,c3=new Error(c1||ay[c0]);if(c3[z4(0x45e)]=c0,Error['captureStackTrace']&&Error[z4(0x25f)](c3,az),!c2)throw c3;return c3;},aA=function(c0,c1,c2){var z5=z3,c3=c0[z5(0x6db)];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 z6=z5,cJ=c1[z6(0x6db)];if(cI>cJ){var cK=new a4(Math[z6(0x1b3)](0x2*cJ,cI));cK[z6(0x6c5)](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[z5(0x6c5)](c0[z5(0x825)](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[z5(0x825)](0x0,cj),cy=cm[z5(0x825)](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['length']?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 z7=z3;for(var c2=[],c3=0x0;c3<c0[z7(0x6db)];++c3)c0[c3]&&c2[z7(0x607)]({'s':c3,'f':c0[c3]});var c4=c2['length'],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[z7(0x57e)](function(cm,cn){return cm['f']-cn['f'];}),c2[z7(0x607)]({'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[z7(0x57e)](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){var z8=z3;return-0x1==c0['s']?Math[z8(0x1b3)](aE(c0['l'],c1,c2+0x1),aE(c0['r'],c1,c2+0x1)):c1[c0['s']]=c2;},aF=function(c0){var z9=z3;for(var c1=c0[z9(0x6db)];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[z9(0x825)](0x0,c3),c1];},aG=function(c0,c1){var za=z3;for(var c2=0x0,c3=0x0;c3<c1[za(0x6db)];++c3)c2+=c0[c3]*c1[c3];return c2;},aH=function(c0,c1,c2){var zb=z3,c3=c2[zb(0x6db)],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 zc=z3;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[zc(0x6db)];++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[zc(0x825)](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[zc(0x6db)];++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 zd=z3,c6=c0['length'],c7=new a4(c3+c6+0x5*(0x1+Math['ceil'](c6/0x1b58))+c4),c8=c7[zd(0x825)](c3,c7[zd(0x6db)]-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[zd(0x825)](ca,cb)):(c8[ca]=c5,c9=aH(c8,c9,c0[zd(0x825)](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[zd(0x774)](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[zd(0x7bc)](cd,cy)-0x1,cF=Math[zd(0x7bc)](0x7fff,ca),cG=Math[zd(0x7bc)](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[zd(0x7bc)](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 ze=a0b;for(var c2=c0,c3=0x0;c3<c1[ze(0x6db)];++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 zf=a0b;for(var c3=c0,c4=c1,c5=0x0|c2['length'],c6=0x0;c6!=c5;){for(var c7=Math[zf(0x7bc)](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 zg=z3;return aL(c0,null==c1[zg(0x2bc)]?0x6:c1[zg(0x2bc)],null==c1[zg(0x265)]?Math[zg(0x774)](1.5*Math[zg(0x1b3)](0x8,Math[zg(0x7bc)](0xd,Math['log'](c0[zg(0x6db)])))):0xc+c1[zg(0x265)],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 zh=z3;for(var c3=c0(),c4=c0[zh(0x4e3)](),c5=c4['slice'](c4[zh(0x962)]('[')+0x1,c4[zh(0x48e)](']'))[zh(0x175)](/ /g,'')['split'](','),c6=0x0;c6<c3[zh(0x6db)];++c6){var c7=c3[c6],c8=c5[c6];if(zh(0x9d2)==typeof c7){c1+=';'+c8+'=';var c9=c7[zh(0x4e3)]();if(c7[zh(0x933)]){if(-0x1!=c9[zh(0x962)](zh(0x5a3))){var ca=c9[zh(0x962)]('\x20',0x8)+0x1;c1+=c9[zh(0x9a1)](ca,c9['indexOf']('(',ca));}else{for(var cb in(c1+=c9,c7[zh(0x933)]))c1+=';'+c8+zh(0x98a)+cb+'='+c7[zh(0x933)][cb][zh(0x4e3)]();}}else c1+=c9;}else c2[c8]=c7;}return[c1,c2];},aS=[],aT=function(c0,c1,c2,c3){var zi=z3,c4;if(!aS[c2]){for(var c5='',c6={},c7=c0['length']-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[zi(0x23e)](aS[c2][0x0]+';onmessage=function(e){for(var\x20k\x20in\x20e.data)self[k]=e.data[k];onmessage='+c1[zi(0x4e3)]()+'}',c2,c9,function(ca){var zj=zi,cb=[];for(var cc in ca)(ca[cc]instanceof a4||ca[cc]instanceof a5||ca[cc]instanceof a6)&&cb[zj(0x607)]((ca[cc]=new ca[cc][(zj(0x8ac))](ca[cc]))[zj(0x938)]);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 zk=z3;return postMessage(c0,[c0[zk(0x938)]]);},b1=function(c0){var zl=z3;return c0&&c0[zl(0x824)]&&new a4(c0[zl(0x824)]);},b2=function(c0,c1,c2,c3,c4,c5){var zn=z3,c6=aT(c2,c3,c4,function(c7,c8){var zm=a0b;c6[zm(0x6fd)](),c5(c7,c8);});return c6[zn(0x6ac)]([c0,c1],c1[zn(0x1f9)]?[c0['buffer']]:[]),function(){var zo=zn;c6[zo(0x6fd)]();};},b3=function(c0){return c0['ondata']=function(c1,c2){var zp=a0b;return postMessage([c1,c2],[c1[zp(0x938)]]);},function(c1){var zq=a0b;return c0[zq(0x607)](c1[zq(0x53b)][0x0],c1[zq(0x53b)][0x1]);};},b4=function(c0,c1,c2,c3,c4){var zs=z3,c5,c6=aT(c0,c3,c4,function(c7,c8){var zr=a0b;c7?(c6[zr(0x6fd)](),c1[zr(0x459)][zr(0x6e9)](c1,c7)):(c8[0x1]&&c6[zr(0x6fd)](),c1[zr(0x459)]['call'](c1,c7,c8[0x0],c8[0x1]));});c6[zs(0x6ac)](c2),c1[zs(0x607)]=function(c7,c8){var zt=zs;c1[zt(0x459)]||az(0x5),c5&&c1[zt(0x459)](az(0x4,0x0,0x1),null,!!c8),c6[zt(0x6ac)]([c7,c5=c8],[c7[zt(0x938)]]);},c1[zs(0x6fd)]=function(){c6['terminate']();};},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 zu=z3,c2=c1['filename'];if(c0[0x0]=0x1f,c0[0x1]=0x8b,c0[0x2]=0x8,c0[0x8]=c1[zu(0x2bc)]<0x2?0x4:0x9==c1[zu(0x2bc)]?0x2:0x0,c0[0x9]=0x3,0x0!=c1[zu(0x5df)]&&b8(c0,0x4,Math[zu(0x646)](new Date(c1[zu(0x5df)]||Date[zu(0x8d4)]())/0x3e8)),c2){c0[0x3]=0x8;for(var c3=0x0;c3<=c2[zu(0x6db)];++c3)c0[c3+0xa]=c2[zu(0x483)](c3);}},ba=function(c0){var zv=z3;0x1f==c0[0x0]&&0x8b==c0[0x1]&&0x8==c0[0x2]||az(0x6,zv(0x5d9));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 zw=z3,c1=c0[zw(0x6db)];return(c0[c1-0x4]|c0[c1-0x3]<<0x8|c0[c1-0x2]<<0x10|c0[c1-0x1]<<0x18)>>>0x0;},bc=function(c0){var zx=z3;return 0xa+(c0[zx(0x70f)]&&c0[zx(0x70f)][zx(0x6db)]+0x1||0x0);},bd=function(c0,c1){var zy=z3,c2=c1[zy(0x2bc)],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 zz=z3;(0x8!=(0xf&c0[0x0])||c0[0x0]>>>0x4>0x7||(c0[0x0]<<0x8|c0[0x1])%0x1f)&&az(0x6,zz(0x35a)),0x20&c0[0x1]&&az(0x6,zz(0x941));};function bf(c0,c1){var zA=z3;return c1||zA(0x9d2)!=typeof c0||(c1=c0,c0={}),this[zA(0x459)]=c1,c0;}var bg=(function(){var zC=z3;function c0(c1,c2){var zB=a0b;c2||zB(0x9d2)!=typeof c1||(c2=c1,c1={}),this[zB(0x459)]=c2,this['o']=c1||{};}return c0[zC(0x933)]['p']=function(c1,c2){this['ondata'](aP(c1,this['o'],0x0,0x0,!c2),c2);},c0[zC(0x933)][zC(0x607)]=function(c1,c2){var zD=zC;this[zD(0x459)]||az(0x5),this['d']&&az(0x4),this['d']=c2,this['p'](c1,c2||!0x1);},c0;}()),bh=(function(){return function(c0,c1){var zE=a0b;b4([aV,function(){return[b3,bg];}],this,bf[zE(0x6e9)](this,c0,c1),function(c2){var zF=zE,c3=new bg(c2[zF(0x53b)]);onmessage=b3(c3);},0x6);};}());function bi(c0,c1,c2){var zG=z3;return c2||(c2=c1,c1={}),zG(0x9d2)!=typeof c2&&az(0x7),b2(c0,c1,[aV],function(c3){var zH=zG;return b0(bj(c3['data'][0x0],c3[zH(0x53b)][0x1]));},0x0,c2);}function bj(c0,c1){return aP(c0,c1||{},0x0,0x0);}var bk=(function(){var zJ=z3;function c0(c1){var zI=a0b;this['s']={},this['p']=new a4(0x0),this[zI(0x459)]=c1;}return c0[zJ(0x933)]['e']=function(c1){var zK=zJ;this[zK(0x459)]||az(0x5),this['d']&&az(0x4);var c2=this['p']['length'],c3=new a4(c2+c1[zK(0x6db)]);c3[zK(0x6c5)](this['p']),c3[zK(0x6c5)](c1,c2),this['p']=c3;},c0[zJ(0x933)]['c']=function(c1){var zL=zJ;this['d']=this['s']['i']=c1||!0x1;var c2=this['s']['b'],c3=aA(this['p'],this['o'],this['s']);this[zL(0x459)](ax(c3,c2,this['s']['b']),this['d']),this['o']=ax(c3,this['s']['b']-0x8000),this['s']['b']=this['o'][zL(0x6db)],this['p']=ax(this['p'],this['s']['p']/0x8|0x0),this['s']['p']&=0x7;},c0[zJ(0x933)][zJ(0x607)]=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){var zM=z3;return c2||(c2=c1,c1={}),zM(0x9d2)!=typeof c2&&az(0x7),b2(c0,c1,[aU],function(c3){var zN=zM;return b0(bn(c3[zN(0x53b)][0x0],b1(c3[zN(0x53b)][0x1])));},0x1,c2);}function bn(c0,c1){return aA(c0,c1);}var bo=(function(){var zP=z3;function c0(c1,c2){var zO=a0b;this['c']=aN(),this['l']=0x0,this['v']=0x1,bg[zO(0x6e9)](this,c1,c2);}return c0[zP(0x933)][zP(0x607)]=function(c1,c2){var zQ=zP;bg['prototype'][zQ(0x607)][zQ(0x6e9)](this,c1,c2);},c0[zP(0x933)]['p']=function(c1,c2){var zR=zP;this['c']['p'](c1),this['l']+=c1[zR(0x6db)];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['length']-0x8,this['c']['d']()),b8(c3,c3[zR(0x6db)]-0x4,this['l'])),this[zR(0x459)](c3,c2);},c0;}()),bp=(function(){return function(c0,c1){var zS=a0b;b4([aV,aW,function(){return[b3,bg,bo];}],this,bf[zS(0x6e9)](this,c0,c1),function(c2){var c3=new bo(c2['data']);onmessage=b3(c3);},0x8);};}());function bq(c0,c1,c2){var zT=z3;return c2||(c2=c1,c1={}),zT(0x9d2)!=typeof c2&&az(0x7),b2(c0,c1,[aV,aW,function(){return[br];}],function(c3){var zU=zT;return b0(br(c3[zU(0x53b)][0x0],c3[zU(0x53b)][0x1]));},0x2,c2);}function br(c0,c1){var zV=z3;c1||(c1={});var c2=aN(),c3=c0[zV(0x6db)];c2['p'](c0);var c4=aP(c0,c1,bc(c1),0x8),c5=c4[zV(0x6db)];return b9(c4,c1),b8(c4,c5-0x8,c2['d']()),b8(c4,c5-0x4,c3),c4;}var bs=(function(){var zX=z3;function c0(c1){var zW=a0b;this['v']=0x1,bk[zW(0x6e9)](this,c1);}return c0[zX(0x933)][zX(0x607)]=function(c1,c2){var zY=zX;if(bk['prototype']['e'][zY(0x6e9)](this,c1),this['v']){var c3=this['p'][zY(0x6db)]>0x3?ba(this['p']):0x4;if(c3>=this['p'][zY(0x6db)]&&!c2)return;this['p']=this['p'][zY(0x825)](c3),this['v']=0x0;}c2&&(this['p'][zY(0x6db)]<0x8&&az(0x6,'invalid\x20gzip\x20data'),this['p']=this['p']['subarray'](0x0,-0x8)),bk[zY(0x933)]['c'][zY(0x6e9)](this,c2);},c0;}()),bu=(function(){return function(c0){var zZ=a0b;this[zZ(0x459)]=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 A0=z3;return c2||(c2=c1,c1={}),A0(0x9d2)!=typeof c2&&az(0x7),b2(c0,c1,[aU,aX,function(){return[bw];}],function(c3){return b0(bw(c3['data'][0x0]));},0x3,c2);}function bw(c0,c1){var A1=z3;return aA(c0[A1(0x825)](ba(c0),-0x8),c1||new a4(bb(c0)));}var bx=(function(){var A4=z3;function c0(c1,c2){var A2=a0b;this['c']=aO(),this['v']=0x1,bg[A2(0x6e9)](this,c1,c2);}return c0['prototype']['push']=function(c1,c2){var A3=a0b;bg[A3(0x933)][A3(0x607)][A3(0x6e9)](this,c1,c2);},c0[A4(0x933)]['p']=function(c1,c2){var A5=A4;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[A5(0x459)](c3,c2);},c0;}());function by(c0,c1){var A6=z3;c1||(c1={});var c2=aO();c2['p'](c0);var c3=aP(c0,c1,0x2,0x4);return bd(c3,c1),b8(c3,c3[A6(0x6db)]-0x4,c2['d']()),c3;}var bz=(function(){var A7=z3;function c0(c1){this['v']=0x1,bk['call'](this,c1);}return c0['prototype'][A7(0x607)]=function(c1,c2){var A8=A7;if(bk['prototype']['e'][A8(0x6e9)](this,c1),this['v']){if(this['p'][A8(0x6db)]<0x2&&!c2)return;this['p']=this['p'][A8(0x825)](0x2),this['v']=0x0;}c2&&(this['p'][A8(0x6db)]<0x4&&az(0x6,'invalid\x20zlib\x20data'),this['p']=this['p'][A8(0x825)](0x0,-0x4)),bk[A8(0x933)]['c'][A8(0x6e9)](this,c2);},c0;}()),bA=(function(){return function(c0){var A9=a0b;this[A9(0x459)]=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){return c2||(c2=c1,c1={}),'function'!=typeof c2&&az(0x7),b2(c0,c1,[aU,aZ,function(){return[bC];}],function(c3){var Aa=a0b;return b0(bC(c3['data'][0x0],b1(c3[Aa(0x53b)][0x1])));},0x5,c2);}function bC(c0,c1){var Ab=z3;return aA((be(c0),c0[Ab(0x825)](0x2,-0x4)),c1);}var bD=(function(){var Ad=z3;function c0(c1){var Ac=a0b;this['G']=bs,this['I']=bk,this['Z']=bz,this[Ac(0x459)]=c1;}return c0[Ad(0x933)][Ad(0x607)]=function(c1,c2){var Ae=Ad;if(this[Ae(0x459)]||az(0x5),this['s'])this['s'][Ae(0x607)](c1,c2);else{if(this['p']&&this['p']['length']){var c3=new a4(this['p'][Ae(0x6db)]+c1[Ae(0x6db)]);c3[Ae(0x6c5)](this['p']),c3[Ae(0x6c5)](c1,this['p'][Ae(0x6db)]);}else this['p']=c1;if(this['p']['length']>0x2){var c4=this,c5=function(){var Af=Ae;c4['ondata'][Af(0x821)](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'][Ae(0x607)](this['p'],c2),this['p']=null;}}},c0;}()),bE=function(c0,c1,c2,c3){for(var c4 in c0){var c5=c0[c4],c6=c1+c4;c5 instanceof a4?c2[c6]=[c5,c3]:Array['isArray'](c5)?c2[c6]=[c5[0x0],aQ(c3,c5[0x1])]:bE(c5,c6+'/',c2,c3);}},bF=z3(0x490)!=typeof TextEncoder&&new TextEncoder(),bG=z3(0x490)!=typeof TextDecoder&&new TextDecoder(),bH=0x0;try{bG[z3(0x44b)](aK,{'stream':!0x0}),bH=0x1;}catch(c0){}var bI=function(c1){var Ag=z3;for(var c2='',c3=0x0;;){var c4=c1[c3++],c5=(c4>0x7f)+(c4>0xdf)+(c4>0xef);if(c3+c5>c1[Ag(0x6db)])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[Ag(0x657)](0xd800|c4>>0xa,0xdc00|0x3ff&c4)):c2+=0x1&c5?String[Ag(0x657)]((0x1f&c4)<<0x6|0x3f&c1[c3++]):String[Ag(0x657)]((0xf&c4)<<0xc|(0x3f&c1[c3++])<<0x6|0x3f&c1[c3++]):c2+=String['fromCharCode'](c4);}},bJ=(function(){var Ai=z3;function c1(c2){var Ah=a0b;this[Ah(0x459)]=c2,bH?this['t']=new TextDecoder():this['p']=aK;}return c1['prototype'][Ai(0x607)]=function(c2,c3){var Aj=Ai;if(this[Aj(0x459)]||az(0x5),c3=!!c3,this['t'])return this[Aj(0x459)](this['t'][Aj(0x44b)](c2,{'stream':!0x0}),c3),void(c3&&(this['t'][Aj(0x44b)]()['length']&&az(0x8),this['t']=null));this['p']||az(0x4);var c4=new a4(this['p'][Aj(0x6db)]+c2[Aj(0x6db)]);c4['set'](this['p']),c4[Aj(0x6c5)](c2,this['p'][Aj(0x6db)]);var c5=bI(c4),c6=c5[0x0],c7=c5[0x1];c3?(c7[Aj(0x6db)]&&az(0x8),this['p']=null):this['p']=c7,this[Aj(0x459)](c6,c3);},c1;}());function bK(c1,c2){var Ak=z3;if(c2){for(var c3=new a4(c1[Ak(0x6db)]),c4=0x0;c4<c1[Ak(0x6db)];++c4)c3[c4]=c1[Ak(0x483)](c4);return c3;}if(bF)return bF['encode'](c1);var c5=c1[Ak(0x6db)],c6=new a4(c1['length']+(c1[Ak(0x6db)]>>0x1)),c7=0x0,c8=function(cb){c6[c7++]=cb;};for(c4=0x0;c4<c5;++c4){if(c7+0x5>c6[Ak(0x6db)]){var c9=new a4(c7+0x8+(c5-c4<<0x1));c9['set'](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['charCodeAt'](++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 Al=z3;if(c2){for(var c3='',c4=0x0;c4<c1[Al(0x6db)];c4+=0x4000)c3+=String[Al(0x657)][Al(0x821)](null,c1['subarray'](c4,c4+0x4000));return c3;}if(bG)return bG[Al(0x44b)](c1);var c5=bI(c1),c6=c5[0x0];return c5[0x1][Al(0x6db)]&&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 c2=0x0;if(c1)for(var c3 in c1){var c4=c1[c3]['length'];c4>0xffff&&az(0x9),c2+=c4+0x4;}return c2;},bR=function(c1,c2,c3,c4,c5,c6,c7,c8){var Am=z3,c9=c4[Am(0x6db)],ca=c3['extra'],cb=c8&&c8[Am(0x6db)],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[Am(0x7a1)]<<0x1|(null==c6&&0x8),c1[c2++]=c5&&0x8,c1[c2++]=0xff&c3[Am(0x419)],c1[c2++]=c3[Am(0x419)]>>0x8;var cd=new Date(null==c3['mtime']?Date[Am(0x8d4)]():c3[Am(0x5df)]),cf=cd[Am(0x7ad)]()-0x7bc;if((cf<0x0||cf>0x77)&&az(0xa),b8(c1,c2,cf<<0x19|cd[Am(0x591)]()+0x1<<0x15|cd['getDate']()<<0x10|cd[Am(0x81b)]()<<0xb|cd['getMinutes']()<<0x5|cd[Am(0x2e2)]()>>>0x1),c2+=0x4,null!=c6&&(b8(c1,c2,c3[Am(0x914)]),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[Am(0x416)]),b8(c1,c2+0xa,c7),c2+=0xe),c1[Am(0x6c5)](c4,c2),c2+=c9,cc)for(var cg in ca){var ch=ca[cg],ci=ch[Am(0x6db)];b8(c1,c2,+cg),b8(c1,c2+0x2,ci),c1['set'](ch,c2+0x4),c2+=0x4+ci;}return cb&&(c1[Am(0x6c5)](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 Ao=z3;function c1(c2){var An=a0b;this['filename']=c2,this['c']=aN(),this[An(0x824)]=0x0,this[An(0x419)]=0x0;}return c1['prototype'][Ao(0x744)]=function(c2,c3){var Ap=Ao;this[Ap(0x459)](null,c2,c3);},c1[Ao(0x933)][Ao(0x607)]=function(c2,c3){var Aq=Ao;this[Aq(0x459)]||az(0x5),this['c']['p'](c2),this[Aq(0x824)]+=c2['length'],c3&&(this[Aq(0x914)]=this['c']['d']()),this[Aq(0x744)](c2,c3||!0x1);},c1;}()),bU=(function(){var As=z3;function c1(c2,c3){var Ar=a0b,c4=this;c3||(c3={}),bT['call'](this,c2),this['d']=new bh(c3,function(c5,c6,c7){c4['ondata'](c5,c6,c7);}),this[Ar(0x419)]=0x8,this[Ar(0x7a1)]=bM(c3[Ar(0x2bc)]),this[Ar(0x6fd)]=this['d'][Ar(0x6fd)];}return c1[As(0x933)]['process']=function(c2,c3){var At=As;this['d'][At(0x607)](c2,c3);},c1[As(0x933)][As(0x607)]=function(c2,c3){var Au=As;bT[Au(0x933)]['push']['call'](this,c2,c3);},c1;}()),bV=(function(){var Av=z3;function c1(c2){this['ondata']=c2,this['u']=[],this['d']=0x1;}return c1[Av(0x933)][Av(0x611)]=function(c2){var Aw=Av,c3=this;if(this[Aw(0x459)]||az(0x5),0x2&this['d'])this[Aw(0x459)](az(0x4+0x8*(0x1&this['d']),0x0,0x1),null,!0x1);else{var c4=bK(c2[Aw(0x70f)]),c5=c4[Aw(0x6db)],c6=c2[Aw(0x734)],c7=c6&&bK(c6),c8=c5!=c2[Aw(0x70f)][Aw(0x6db)]||c7&&c6[Aw(0x6db)]!=c7[Aw(0x6db)],c9=c5+bQ(c2[Aw(0x7f4)])+0x1e;c5>0xffff&&this['ondata'](az(0xb,0x0,0x1),null,!0x1);var ca=new a4(c9);bR(ca,0x0,c2,c4,c8);var cb=[ca],cc=function(){var Ax=Aw;for(var ci=0x0,cj=cb;ci<cj[Ax(0x6db)];ci++){var ck=cj[ci];c3[Ax(0x459)](null,ck,!0x1);}cb=[];},cd=this['d'];this['d']=0x0;var cf=this['u'][Aw(0x6db)],cg=aQ(c2,{'f':c4,'u':c8,'o':c7,'t':function(){var Ay=Aw;c2[Ay(0x6fd)]&&c2[Ay(0x6fd)]();},'r':function(){if(cc(),cd){var ci=c3['u'][cf+0x1];ci?ci['r']():c3['d']=0x1;}cd=0x1;}}),ch=0x0;c2['ondata']=function(ci,cj,ck){var Az=Aw;if(ci)c3[Az(0x459)](ci,cj,ck),c3['terminate']();else{if(ch+=cj[Az(0x6db)],cb[Az(0x607)](cj),ck){var cl=new a4(0x10);b8(cl,0x0,0x8074b50),b8(cl,0x4,c2[Az(0x914)]),b8(cl,0x8,ch),b8(cl,0xc,c2[Az(0x824)]),cb[Az(0x607)](cl),cg['c']=ch,cg['b']=c9+ch+0x10,cg['crc']=c2[Az(0x914)],cg[Az(0x824)]=c2['size'],cd&&cg['r'](),cd=0x1;}else cd&&cc();}},this['u']['push'](cg);}},c1[Av(0x933)][Av(0x313)]=function(){var AA=Av,c2=this;0x2&this['d']?this['ondata'](az(0x4+0x8*(0x1&this['d']),0x0,0x1),null,!0x0):(this['d']?this['e']():this['u'][AA(0x607)]({'r':function(){var AB=AA;0x1&c2['d']&&(c2['u'][AB(0x908)](-0x1,0x1),c2['e']());},'t':function(){}}),this['d']=0x3);},c1[Av(0x933)]['e']=function(){var AC=Av;for(var c2=0x0,c3=0x0,c4=0x0,c5=0x0,c6=this['u'];c5<c6[AC(0x6db)];c5++){c4+=0x2e+(ca=c6[c5])['f'][AC(0x6db)]+bQ(ca[AC(0x7f4)])+(ca['o']?ca['o'][AC(0x6db)]:0x0);}for(var c7=new a4(c4+0x16),c8=0x0,c9=this['u'];c8<c9[AC(0x6db)];c8++){var ca=c9[c8];bR(c7,c2,ca,ca['f'],ca['u'],ca['c'],c3,ca['o']),c2+=0x2e+ca['f'][AC(0x6db)]+bQ(ca['extra'])+(ca['o']?ca['o']['length']:0x0),c3+=ca['b'];}bS(c7,c2,this['u']['length'],c4,c3),this[AC(0x459)](null,c7,!0x0),this['d']=0x2;},c1[Av(0x933)][Av(0x6fd)]=function(){var AD=Av;for(var c2=0x0,c3=this['u'];c2<c3[AD(0x6db)];c2++){c3[c2]['t']();}this['d']=0x2;},c1;}());a1['Xo']=function(c1,c2){var AE=z3;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[AE(0x2bc)]?0x0:0x8,cc=(cp=bK(c7))[AE(0x6db)],cd=ca[AE(0x734)],cf=cd&&bK(cd),cg=cf&&cf[AE(0x6db)],ch=bQ(ca[AE(0x7f4)]);cc>0xffff&&az(0xb);var ci=cb?bj(c9,ca):c9,cj=ci[AE(0x6db)],ck=aN();ck['p'](c9),c4['push'](aQ(ca,{'size':c9[AE(0x6db)],'crc':ck['d'](),'c':ci,'f':cp,'m':cf,'u':cc!=c7[AE(0x6db)]||cf&&cd[AE(0x6db)]!=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[AE(0x6db)];++co){var cp=c4[co];bR(cl,cp['o'],cp,cp['f'],cp['u'],cp['c']['length']);var cq=0x1e+cp['f']['length']+bQ(cp[AE(0x7f4)]);cl['set'](cp['c'],cp['o']+cq),bR(cl,c5,cp,cp['f'],cp['u'],cp['c']['length'],cp['o'],cp['m']),c5+=0x10+cq+(cp['m']?cp['m'][AE(0x6db)]:0x0);}return bS(cl,c5,c4[AE(0x6db)],cn,cm),cl;};var bW=(function(){var AF=z3;function c1(){}return c1['prototype'][AF(0x607)]=function(c2,c3){var AG=AF;this[AG(0x459)](null,c2,c3);},c1[AF(0x419)]=0x0,c1;}()),bX=(function(){var AK=z3;function c1(c2,c3){var AJ=a0b,c4=this;c3<0x4e200?this['i']=new bk(function(c5,c6){var AH=a0b;c4[AH(0x459)](null,c5,c6);}):(this['i']=new bl(function(c5,c6,c7){var AI=a0b;c4[AI(0x459)](c5,c6,c7);}),this[AJ(0x6fd)]=this['i']['terminate']);}return c1[AK(0x933)][AK(0x607)]=function(c2,c3){var AL=AK;this['i'][AL(0x6fd)]&&(c2=ax(c2,0x0)),this['i'][AL(0x607)](c2,c3);},c1[AK(0x419)]=0x8,c1;}()),bY=(function(){var AN=z3;function c1(c2){var AM=a0b;this[AM(0x64f)]=c2,this['k']=[],this['o']={0x0:bW},this['p']=aK;}return c1[AN(0x933)][AN(0x607)]=function(c2,c3){var AO=AN,c4=this;if(this[AO(0x64f)]||az(0x5),this['p']||az(0x4),this['c']>0x0){var c5=Math[AO(0x7bc)](this['c'],c2[AO(0x6db)]),c6=c2[AO(0x825)](0x0,c5);if(this['c']-=c5,this['d']?this['d'][AO(0x607)](c6,!this['c']):this['k'][0x0][AO(0x607)](c6),(c2=c2[AO(0x825)](c5))[AO(0x6db)])return this['push'](c2,c3);}else{var c7=0x0,c8=0x0,c9=void 0x0,ca=void 0x0;this['p'][AO(0x6db)]?c2['length']?((ca=new a4(this['p']['length']+c2[AO(0x6db)]))['set'](this['p']),ca[AO(0x6c5)](c2,this['p'][AO(0x6db)])):ca=this['p']:ca=c2;for(var cb=ca[AO(0x6db)],cc=this['c'],cd=cc&&this['d'],cf=function(){var AP=AO,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'][AP(0x583)](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 AQ=AP;if(cw[AQ(0x459)]||az(0x5),cs){var cx=c4['o'][cl];cx||cw['ondata'](az(0xe,AQ(0xa1f)+cl,0x1),null,!0x1),(cr=cs<0x0?new cx(cv):new cx(cv,cs,cu))[AQ(0x459)]=function(cB,cC,cD){var AR=AQ;cw[AR(0x459)](cB,cC,cD);};for(var cy=0x0,cz=cq;cy<cz[AQ(0x6db)];cy++){var cA=cz[cy];cr['push'](cA,!0x1);}c4['k'][0x0]==cq&&c4['c']?c4['d']=cr:cr['push'](aK,!0x0);}else cw[AQ(0x459)](null,aK,!0x0);},'terminate':function(){var AS=AP;cr&&cr[AS(0x6fd)]&&cr['terminate']();}};cs>=0x0&&(cw[AP(0x824)]=cs,cw['ors']=cu),cg[AP(0x64f)](cw);}return'break';}if(cc){if(0x8074b50==cj)return c9=c8+=0xc+(-0x2==cc&&0x8),c7=0x3,cg['c']=0x0,AP(0x829);if(0x2014b50==cj)return c9=c8-=0x4,c7=0x3,cg['c']=0x0,AP(0x829);}},cg=this;c8<cb-0x4;++c8){if('break'===cf())break;}if(this['p']=aK,cc<0x0){var ch=c7?ca[AO(0x825)](0x0,c9-0xc-(-0x2==cc&&0x8)-(0x8074b50==b6(ca,c9-0x10)&&0x4)):ca[AO(0x825)](0x0,c8);cd?cd[AO(0x607)](ch,!!c7):this['k'][+(0x2==c7)][AO(0x607)](ch);}if(0x2&c7)return this['push'](ca[AO(0x825)](c8),c3);this['p']=ca[AO(0x825)](c8);}c3&&(this['c']&&az(0xd),this['p']=null);},c1[AN(0x933)][AN(0x870)]=function(c2){var AT=AN;this['o'][c2[AT(0x419)]]=c2;},c1;}()),bZ='function'==typeof queueMicrotask?queueMicrotask:'function'==typeof setTimeout?setTimeout:function(c1){c1();};a1['GZ']=function(c1,c2){var AU=z3;for(var c3={},c4=c1[AU(0x6db)]-0x16;0x6054b50!=b6(c1,c4);--c4)(!c4||c1[AU(0x6db)]-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[AU(0x59b)],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[AU(0x825)](ci,ci+cc),new a4(cd)):az(0xe,AU(0xa1f)+cb):c3[cf]=ax(c1,ci,ci+cc));}return c3;};},0x1ec0:(b,d)=>{var AV=a0b,f={};d[AV(0x23e)]=function(g,h,j,k,m){var AW=AV,p=new Worker(f[h]||(f[h]=URL[AW(0x5c3)](new Blob([g+AW(0x18f)],{'type':'text/javascript'}))));return p[AW(0x3b8)]=function(q){var AX=AW,v=q['data'],w=v[AX(0x7aa)];if(w){var x=new Error(w[0x0]);x[AX(0x45e)]=w[0x1],x[AX(0x98b)]=w[0x2],m(x,null);}else m(null,v);},p[AW(0x6ac)](j,k),p;};}},n={};function r(b){var AY=a0b,d=n[b];if(void 0x0!==d)return d[AY(0x87e)];var f=n[b]={'id':b,'loaded':!0x1,'exports':{}};return e[b]['call'](f[AY(0x87e)],f,f[AY(0x87e)],r),f['loaded']=!0x0,f[AY(0x87e)];}r['m']=e,t=[],r['O']=(b,d,f,g)=>{var AZ=a0b;if(!d){var h=0x1/0x0;for(p=0x0;p<t[AZ(0x6db)];p++){for(var [d,f,g]=t[p],j=!0x0,k=0x0;k<d[AZ(0x6db)];k++)(!0x1&g||h>=g)&&Object[AZ(0x3be)](r['O'])['every'](q=>r['O'][q](d[k]))?d[AZ(0x908)](k--,0x1):(j=!0x1,g<h&&(h=g));if(j){t['splice'](p--,0x1);var m=f();void 0x0!==m&&(b=m);}}return b;}g=g||0x0;for(var p=t['length'];p>0x0&&t[p-0x1][0x2]>g;p--)t[p]=t[p-0x1];t[p]=[d,f,g];},r['n']=b=>{var B0=a0b,d=b&&b[B0(0x788)]?()=>b[B0(0x23e)]:()=>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 B1=a0b;if('object'==typeof globalThis)return globalThis;try{return this||new Function(B1(0x57c))();}catch(b){if('object'==typeof window)return window;}}()),r['o']=(b,d)=>Object['prototype']['hasOwnProperty'][a0B2(0x6e9)](b,d),r['r']=b=>{var B3=a0B2;B3(0x490)!=typeof Symbol&&Symbol[B3(0x8e7)]&&Object['defineProperty'](b,Symbol[B3(0x8e7)],{'value':B3(0x503)}),Object[B3(0x1d6)](b,B3(0x788),{'value':!0x0});},r[a0B2(0x8ad)]=b=>(b[a0B2(0x513)]=[],b[a0B2(0x5ee)]||(b[a0B2(0x5ee)]=[]),b),((()=>{var B5=a0B2,b={0x33a:0x0};r['O']['j']=g=>0x0===b[g];var d=(g,h)=>{var B4=a0b,j,k,[m,p,q]=h,v=0x0;if(m[B4(0x571)](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['length'];v++)k=m[v],r['o'](b,k)&&b[k]&&b[k][0x0](),b[k]=0x0;return r['O'](w);},f=self[B5(0xa18)]=self[B5(0xa18)]||[];f[B5(0x461)](d[B5(0x207)](null,0x0)),f[B5(0x607)]=d['bind'](null,f[B5(0x607)][B5(0x207)](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 d(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?d(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+'":'+d(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 f,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=f=f||{}).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===f.INFO_ALL&&(t.level=f.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:f.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"),f},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:f.INFO,msg:t};1===t.length&&t[0].msg&&Object.assign(r,n({},t[0]),{level:f.INFO}),this.normalLogPipeline(r)},wt.prototype.infoAll=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r={level:f.INFO_ALL,msg:t};1===t.length&&t[0].msg&&Object.assign(r,n({},t[0]),{level:f.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:f.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:f.ERROR,msg:t};1===t.length&&t[0].msg&&Object.assign(r,n({},t[0]),{level:f.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=f,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?d(n.data):""),e.publishNormalLog({msg:r,level:f.API_RESPONSE,ctx:n}),i.ret=a,i.isErr=+s,e.publishSpeedLog(i),s&&e.publishNormalLog({msg:r,level:f.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?d(s):"")+"\n \nres status: "+r+"\n \nres retcode: "+i.ret+"\n \nres duration: "+i.duration+"ms \n \nres data: "+(t?d(o):"")+"\n ",this.publishNormalLog({msg:c,level:f.API_RESPONSE,ctx:n}),this.publishSpeedLog(i),l&&this.publishNormalLog({msg:c,level:f.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:f.ERROR})})),O("onUnhandledRejection")&&G.onUnhandledRejection((function(e){!(e=e.reason)||-1<JSON.stringify(e).indexOf("request:fail")||t.publishErrorLog({msg:e,level:f.PROMISE_ERROR})})),O("onPageNotFound")&&G.onPageNotFound((function(e){e&&t.publishErrorLog({msg:e,level:f.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:f.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:f.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:f.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:f.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:f.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))}))}})),dt=["onLaunch","onHide","onError","onLoad","onReady","onShow","onUnload"],ft=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:f.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:f.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]||dt.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?(d=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("?")?"?":"&")+d):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):(d="",c&&c.url||(d="Sending request blocked. Please handle the parameters reasonably, options.url is necessary",console.log(d)),null!=r&&r(d),s(),!1);o.requestQueue.push({options:t,success:e,fail:r})}var u,h,d};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,d,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!==f.ERROR&&t.level!==f.PROMISE_ERROR&&t.level!==f.AJAX_ERROR&&t.level!==f.SCRIPT_ERROR&&t.level!==f.IMAGE_ERROR&&t.level!==f.CSS_ERROR&&t.level!==f.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))}),(d=this,setTimeout((function(){var t=d.config.pvUrl,e=void 0===t?"":t;e&&d.sendPipeline([function(t,n){n({url:e,type:m.PV,fail:function(t){"403 forbidden"===t&&d.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!==f.INFO&&t.level!==f.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(ft),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:()=>ft,clearInterval:()=>yt,clearTimeout:()=>gt,devicePixelRatio:()=>d,focus:()=>dt,getComputedStyle:()=>ut,innerHeight:()=>p,innerWidth:()=>f,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:d}=wx.getSystemInfoSync(),f=u,p=h,g={width:u,height:h,availWidth:f,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:f+"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||f,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=f,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=f,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 dt(){}function ft(){}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),d=c.slice(1024,u);a.init().then((()=>{let e=a.run(h,"");a.finish("");const c=new Uint8Array(u);c.set(e),c.set(d,e.length);let f=`${l}/${t}.zip`;s.writeFile({filePath:f,data:c.buffer,encoding:"binary",success:t=>{n(f)},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 d=function(t){this.context=t,this.setLevel(t.filterLevel),this.log=this.info};d.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 f,p=new d({filterLevel:s.OFF});(f=s).enabledFor=l(p,p.enabledFor),f.trace=l(p,p.trace),f.debug=l(p,p.debug),f.time=l(p,p.time),f.timeEnd=l(p,p.timeEnd),f.info=l(p,p.info),f.warn=l(p,p.warn),f.error=l(p,p.error),f.log=f.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 d(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),d=n(2794);n(4775);class f 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,d=this._aIndex,f=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=f-p.start,e=r,p=u[++h],p.texArray=t,p.start=f),this.packInterleavedGeometry(n,s,c,d,f),d+=n.vertexData.length/2*l,f+=n.indices.length,p.blend=g,p.uniforms=m}e<n&&(p.size=f-p.start,++h),i._dcIndex=h,i._aIndex=d,i._iIndex=f}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:d}=o[r];s!==t&&(s=t,this.bindAndClearTexArray(t)),a!==d&&(a=d,this.syncUniforms(d),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:f,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,d=t.vertexData2d,f=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(d){let t=0;for(let e=0;e<d.length;e+=3,t+=2)s[r++]=d[e],s[r++]=d[e+1],s[r++]=d[e+2],s[r++]=l[t],s[r++]=l[t+1],a[r++]=g,s[r++]=f}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++]=f;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],d=n[2],f=n[5],p=n[8],g=(p*u-h*f)*r+(-p*s+c*f)*i+(h*s-c*u),m=(-p*l+h*d)*r+(p*o-c*d)*i+(-h*o+c*l),y=(f*l-u*d)*r+(-f*o+s*d)*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,d=c*i-o*s;let f=e*u+n*h+r*d;return f?(f=1/f,t[0]=u*f,t[1]=(-l*n+r*c)*f,t[2]=(a*n-r*o)*f,t[3]=h*f,t[4]=(l*e-r*s)*f,t[5]=(-a*e+r*i)*f,t[6]=d*f,t[7]=(-c*e+n*s)*f,t[8]=(o*e-n*i)*f,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],d=r[2],f=r[3],p=r[4],g=r[5],m=r[6],y=r[7],v=r[8];return n[0]=u*i+h*a+d*c,n[1]=u*o+h*s+d*l,n[2]=d,n[3]=f*i+p*a+g*c,n[4]=f*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],d=r[8],f=e.a,p=e.b,g=e.c,m=e.d,y=e.tx,v=e.ty;return n[0]=f*i+p*s,n[1]=f*o+p*c,n[2]=f*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+d,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],d=r[7],f=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*d,n[2]=p*s+g*u+m*f,n[3]=y*o+v*c+_*h,n[4]=y*a+v*l+_*d,n[5]=y*s+v*u+_*f,n[6]=b*o+x*c+w*h,n[7]=b*a+x*l+w*d,n[8]=b*s+x*u+w*f,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 d=(s*l-u*a)/h,f=(o*u-c*s)/h;return f<1e-6||f-1>-1e-6?-1:(i.x=t.x+d*(e.x-t.x),i.y=t.y+d*(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 d=this.matrix.mat3;d[0]=k[0].x*l,d[1]=k[0].y*l,d[2]=l,d[3]=k[n].x*u,d[4]=k[n].y*u,d[5]=u,d[6]=k[r].x*h,d[7]=k[r].y*h,d[8]=h,this.matrix.invert(),d=P.mat3,d[0]=e[0].x,d[1]=e[0].y,d[2]=1,d[3]=e[n].x,d[4]=e[n].y,d[5]=1,d[6]=e[r].x,d[7]=e[r].y,d[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,d;a?(u=a.x-c._x*s.width,l=u+a.width,d=a.y-c._y*s.height,h=d+a.height):(u=-c._x*s.width,l=u+s.width,d=-c._y*s.height,h=d+s.height),i[0]=r[0]*u+r[3]*d+r[6],i[1]=r[1]*u+r[4]*d+r[7],i[2]=r[2]*u+r[5]*d+r[8],i[3]=r[0]*l+r[3]*d+r[6],i[4]=r[1]*l+r[4]*d+r[7],i[5]=r[2]*l+r[5]*d+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,d=-c._y*s,f=d+s;let p=1/(l[2]*u+l[5]*d+l[8]);i[0]=p*(l[0]*u+l[3]*d+l[6]),i[1]=p*(l[1]*u+l[4]*d+l[7]),p=1/(l[2]*h+l[5]*d+l[8]),i[2]=p*(l[0]*h+l[3]*d+l[6]),i[3]=p*(l[1]*h+l[4]*d+l[7]),p=1/(l[2]*h+l[5]*f+l[8]),i[4]=p*(l[0]*h+l[3]*f+l[6]),i[5]=p*(l[1]*h+l[4]*f+l[7]),p=1/(l[2]*u+l[5]*f+l[8]),i[6]=p*(l[0]*u+l[3]*f+l[6]),i[7]=p*(l[1]*u+l[4]*f+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 d.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],d=c+c,f=l+l,p=u+u,g=c*d,m=c*f,y=c*p,v=l*f,_=l*p,b=u*p,x=h*d,w=h*f,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]),d=h*(n[0]*i+n[4]*o+n[8]*a+n[12]),f=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((d-c)*g+c,(f-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],d=r[2],f=r[3];return n[0]=u*i+h*a+f*c,n[1]=u*o+h*s+f*l,n[2]=d,n[3]=f,u=r[4],h=r[5],d=r[6],f=r[7],n[4]=u*i+h*a+f*c,n[5]=u*o+h*s+f*l,n[6]=d,n[7]=f,u=r[8],h=r[9],d=r[10],f=r[11],n[8]=u*i+h*a+f*c,n[9]=u*o+h*s+f*l,n[10]=d,n[11]=f,u=r[12],h=r[13],d=r[14],f=r[15],n[12]=u*i+h*a+f*c,n[13]=u*o+h*s+f*l,n[14]=d,n[15]=f,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],d=e.a,f=e.b,p=e.c,g=e.d,m=e.tx,y=e.ty;return n[0]=d*i+f*c,n[1]=d*o+f*l,n[2]=d*a+f*u,n[3]=d*s+f*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],d=e[10],f=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-d*p,k=u*y-f*p,E=h*m-d*g,P=h*y-f*g,R=d*y-f*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]=(d*w-h*T-f*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-d*b+f*_)*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-f*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*_+d*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],d=e[9],f=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*d+w*m,t[2]=_*o+b*l+x*f+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*d+w*m,t[6]=_*o+b*l+x*f+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*d+w*m,t[10]=_*o+b*l+x*f+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*d+w*m,t[14]=_*o+b*l+x*f+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,d;a?(u=a.x-c._x*s.width,l=u+a.width,d=a.y-c._y*s.height,h=d+a.height):(u=-c._x*s.width,l=u+s.width,d=-c._y*s.height,h=d+s.height);let f,p=!1;i[0]=r[0]*u+r[4]*d+r[12],i[1]=r[1]*u+r[5]*d+r[13],f=r[2]*u+r[6]*d+r[14],i[2]=r[3]*u+r[7]*d+r[15],p=p||f<0,i[3]=r[0]*l+r[4]*d+r[12],i[4]=r[1]*l+r[5]*d+r[13],f=r[2]*l+r[6]*d+r[14],i[5]=r[3]*l+r[7]*d+r[15],p=p||f<0,i[6]=r[0]*l+r[4]*h+r[12],i[7]=r[1]*l+r[5]*h+r[13],f=r[2]*l+r[6]*h+r[14],i[8]=r[3]*l+r[7]*h+r[15],p=p||f<0,i[9]=r[0]*u+r[4]*h+r[12],i[10]=r[1]*u+r[5]*h+r[13],f=r[2]*u+r[6]*h+r[14],i[11]=r[3]*u+r[7]*h+r[15],p=p||f<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 d,f=!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]),d=s[2]*c+s[6]*u+s[14],f=f||d<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]),d=s[2]*l+s[6]*u+s[14],f=f||d<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]),d=s[2]*l+s[6]*h+s[14],f=f||d<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]),d=s[2]*c+s[6]*h+s[14],f=f||d<0,this.culledByFrustrum=f}_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 d.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,dt=new a.E9;class ft extends lt{constructor(...t){super(...t),ft.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,d=e[3].y*(1-r)+e[2].y*r,f=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)+d*i,y=l*(1-i)+f*i,v=u*(1-i)+p*i,_=s*(1-a)+h*a,b=c*(1-a)+d*a,x=l*(1-a)+f*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,dt.set(x,w),T.applyInverse(dt,dt),this.distortion.set(dt.x-1,dt.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 ft||(this.surface=new ft),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 d=this.aTrans;d.set(a.width,0,0,a.height,l,h),null===this.proj._surface&&d.prepend(this.transform.worldTransform),d.invert(),d.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 d.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,d=t.aTrans,{_batchLocation:f,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]=d.a,s[r+3]=d.c,s[r+4]=d.tx,s[r+5]=d.b,s[r+6]=d.d,s[r+7]=d.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]=f,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$:()=>dt.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 d=this.getCenterOfTwoPoints(s[78],s[79]),f=1.5*(0,i.Sp)(s[44],s[49]),p=this.getSlope(d,s[49]),g=Math.atan(p),m={x:d.x-f*Math.cos(g)*(g/Math.abs(g)),y:d.y-f*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]),d=-1/h,f=a.y-a.x*h,p=(f-(u.y-u.x*d))/(d-h),g=p,m=p*h+f,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]),d=Math.atan(h),f={x:l.x-u*Math.cos(d)*(d/Math.abs(d)),y:l.y-u*Math.sin(Math.abs(d))};r.push(f);const p=r[0],g=p.y-p.x*h,m=f.y- -1/h*f.x,y=(m-g)/(h- -1/h),v={x:y,y:y*h+g},_=this.twoBezier(.14,f,v,p),b=this.twoBezier(.28,f,v,p),x=this.twoBezier(.42,f,v,p),w=this.twoBezier(.56,f,v,p),T=this.twoBezier(.7,f,v,p),C=this.twoBezier(.85,f,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,f,E,S),R=this.twoBezier(.28,f,E,S),O=this.twoBezier(.42,f,E,S),D=this.twoBezier(.56,f,E,S),A=this.twoBezier(.7,f,E,S),I=this.twoBezier(.85,f,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]),d=-1/h,f=a.y-a.x*h,p=(f-(u.y-u.x*d))/(d-h),g=p,m=p*h+f,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),d=n(337),f=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:d.Z.t("0002"),confirmText:d.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:f.U.AUTH_NEED_RELOAD_PAGE,message:d.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:d.Z.t("0002"),confirmText:d.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:f.U.AUTH_NEED_RELOAD_PAGE,message:d.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:f.U.START_REACORD_FAIL,message:d.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:f.U.STOP_REACORD_FAIL,message:d.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:f.U.START_REACORD_FAIL,message:d.Z.t("0008"),error:t})}}async start(){this.videoRecorder&&(await this.videoRecorder.start().catch((t=>{r.Nd.trigger("error",{code:f.U.START_REACORD_FAIL,message:d.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:f.U.STOP_REACORD_FAIL,message:d.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-21".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){console.log("wx set language",t),d.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){console.log("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){console.log("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"===d.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"===d.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){console.log("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:f.U.SIGNATURE_TIMEOUT,message:"Signature timeout, retry failed."}):106==p.Code?r.Nd.trigger("error",{code:f.U.AUTHORIZE_TIMEOUT,message:"Authorize timeout, retry failed."}):r.Nd.trigger("error",{code:f.U.REQUEST_FAIL,message:p.Message})),_.label=16;case 16:return 0===p.Code?(p.WeChatAppId!==this.wechatAppId&&(r.Nd.trigger("error",{code:f.U.AUTH_FAIL,message:d.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(),console.log("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=[d.Z.t("1001"),d.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(d.Z.t("1004"))>-1&&!H("effect_sticker_3d")||t.Label.indexOf(d.Z.t("1005"))>-1&&!H("avatar_vr")||t.Label.indexOf(d.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:f.U.SDK_VERSION_LOW_ERROR,message:d.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:d.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=d.Z.t("1006"),"VR"===t&&(e=d.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:f.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:f.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:f.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)(),d.Z.lang=u||"zh",n){if(!("string"==typeof n||n?.width&&n?.height))return void r.Nd.trigger("error",{message:d.Z.t("0004"),code:f.U.INPUT_ERROR});this.input_type=it}else if(o)this.input_type=nt;else{if(!i)return void r.Nd.trigger("error",{message:d.Z.t("0005"),code:f.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:f.U.AUTH_API_FAIL,message:d.Z.t("0007")})}setEffect(t,e,n){if(!H("effect_makeup")||!H("effect_sticker_2d"))return void this.trigger("error",{code:f.U.AUTH_API_FAIL,message:d.Z.t("0007")});if(!this._renderer)return void this.trigger("error",{code:f.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:f.U.AUTH_API_FAIL,message:d.Z.t("0007")}),!1))).then((t=>{}))))})).catch((e=>{console.log("set effect error",t,e),r.Nd.trigger("error",{code:f.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:f.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:f.U.SET_FILTER_ERROR,message:"no face detected"}):this.trigger("error",{code:f.U.AUTH_API_FAIL,message:d.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:d.Z.t("0002"),confirmText:d.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),dt=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 d="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 f=n(401),p=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)}}(),g=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())}))},m=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])}}},y=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}(),v=function(t){function e(e,n){var r=t.call(this,n)||this;return r.intensity=e,r}return p(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 g(this,void 0,Promise,(function(){var t;return m(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}(y),_=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 p(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(d,"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}(y),b=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 p(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(d,"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}(y),x=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 p(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}(y),w=["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"],T=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(f.c4.POINTS_MAP),r}return p(e,t),Object.defineProperty(e.prototype,"landmarks",{set:function(t){if(t.length){var e=w,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={};w.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){console.log("err",e,n[e],t)}})),r},e}(y),C=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,d=e.forehead,f=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:d,nose:f,eye:p,chin:g,darkCircle:i,nasolabialFolds:o,enable:a||s||c||l||u||h||d||p||g||o||o||f?1:0})},enumerable:!1,configurable:!0}),t.prototype.load=function(){return g(this,void 0,Promise,(function(){var t,e,n,r,i,o,a=this;return m(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:f.em,this._whiten=new v(e,this._options),n=void 0!==t.dermabrasion&&null!==t.dermabrasion?t.dermabrasion:f.Ss,this._dermabrasion=new _(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 b(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 x(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 T(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}(),S=n(6109),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,S.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 C(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 C(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,console.log("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)console.log("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)console.log("call set renderer"),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:()=>d,X_:()=>f});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",d="whiten.png",f="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[d]&&r.P6.kN[f]&&r.P6.kN[c]&&r.P6.kN[l]&&r.P6.kN[u]&&r.P6.kN[h])return i[d]=r.P6.kN[d],i[f]=r.P6.kN[f],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(d),t.add(f),t.add(c),t.add(l),t.add(u),t.add(h),t.load((function(t,n){return i[d]=r.P6.kN[d],i[f]=r.P6.kN[f],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 d(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 f(t,e){return void 0===e&&(e=1),void 0===t?null:(h[t]||(h[t]=[d(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=f(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=f(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=f(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,d=1;d<e.length;d++){var f=e[d];c=Math.min(c,f.resolution),l=this.useMaxPadding?Math.max(l,f.padding):l+f.padding,u=u&&f.autoFit,h=h||f.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(d=0;d<e.length;d++){var C=e[d].backdropUniformName;if(C){var S=e[d].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[d]._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 d=l;l=u,u=d}n[h].apply(this,l,c.renderTexture,x.yl.BLEND,e),this.returnFilterTexture(l),this.returnFilterTexture(u)}var f=!1;for(h=0;h<n.length;h++)if(n[h]._backdropActive){var p=n[h].backdropUniformName;f||(this.returnFilterTexture(n[h].uniforms[p]),f=!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),d=n.gl,f=this.getOptimalFilterTexture(u,h,1);e[1]<0&&(e[0]=h/f.height),f.filterFrame=i,f.setResolution(a),n.texture.bindForceLocation(f.baseTexture,0);new Date;return d.copyTexSubImage2D(d.TEXTURE_2D,0,0,0,s,l,u,h),f}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:()=>d,c4:()=>o,c9:()=>r,em:()=>a,gz:()=>f,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-21","/").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",d="61,6c,6c,6f,77,46,75,6e,63,4c,69,73,74",f="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:()=>f,iV:()=>d,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])}}},d={};function f(){d={}}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,d[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),d=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){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=d([o.e,f("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,d=h.run(i,"");h.finish("");var f=new Uint8Array(a);f.set(d),f.set(o,d.length);var p=(0,r.GZ)(f);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 d=h.value;if(o=(i=a.get(d))[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)}})),console.log("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){console.log("removeFromCache",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){console.log("zy fetchWithSubPackage",t)}))];case 4:return[4,c.sent().arrayBuffer().catch((function(t){console.log("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-21","/").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-21","/").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-21"),r=0;r<e.length;r++){var i=e[r];i&&i.indexOf(n)<0&&t.arCacheStorage.removeItem(i)}}))})).catch((function(){}))},t=d([o.e,f("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:()=>o,o:()=>a});var r=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())}))},i=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 o(t){return function(e,n,o){var a=o.value;return"AsyncFunction"===a.constructor.name?o.value=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return r(this,void 0,void 0,(function(){return i(this,(function(r){switch(r.label){case 0:return[4,a.apply(this,e).catch((function(e){console.log("".concat(t,".").concat(n," call failed"),e)}))];case 1:return[2,r.sent()]}}))}))}:o.value=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{var i=a.apply(this,e);return i}catch(e){console.log("".concat(t,".").concat(n," call failed"),e)}},o}}function a(t){return function(e,n,o){var a=o.value;return o.value=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return r(this,void 0,void 0,(function(){return i(this,(function(r){switch(r.label){case 0:return[4,a.apply(this,e).catch((function(e){console.log("".concat(t,".").concat(n," call failed"),e)}))];case 1:return[2,r.sent()]}}))}))},o}}},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())}))},d=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 f=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 d(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){f.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 d(){return null!=l&&l.buffer===n.buffer||(l=new Int32Array(n.buffer)),l}function f(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,f=(s=r(1*(i=t).length),o().set(i,s/1),u=i.length,s),p=u;try{c(8,f,p,h(n),u);var g=d(),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(f/1,f/1+p)),l(f,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),d()),s=f(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),d()),i=f(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),d()),i=f(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),n&&console.log("trigger????????",t),"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 console.log("获取 EventBus"),r||(r=new i),r},a=function(){console.log("清理 EventBus"),r=null}},6109:(t,e,n)=>{n.d(e,{D4:()=>s,bH:()=>c,b_:()=>a,jl:()=>o});var r=n(5901),i=n.n(r);i().useDefaults();function o(t){return i().get(t)}var a=o("set-effect"),s=o("resource-load"),c=o("debug")},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});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:()=>f,Bb:()=>d,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],d=[469,470,471,472],f=[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 d;case 8:return f;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),d=h[0],f=h[1];d[28]=258,f[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],d=c[t[i]-1]++<<h,f=d|(1<<h)-1;d<=f;++d)s[y[d]>>>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,f=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,f,1);var w=P(t,f+1,3);if(f+=3,!w){var T=t[(W=O(f)+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=f=8*S,n.f=h;continue}if(1==w)m=C,y=k,v=9,_=5;else if(2==w){var A=P(t,f,31)+257,F=P(t,f+10,15)+4,L=A+P(t,f+5,31)+1;f+=14;for(var M=new i(L),N=new i(19),j=0;j<F;++j)N[l[j]]=P(t,f+3*j,7);f+=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,f,U)];if(f+=15&V,(W=V>>>4)<16)M[j++]=W;else{var q=0,H=0;for(16==W?(H=3+P(t,f,3),f+=2,q=M[j-1]):17==W?(H=3+P(t,f,7),f+=3):18==W&&(H=11+P(t,f,127),f+=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(f>x){a&&I(0);break}}o&&u(p+131072);for(var Z=(1<<v)-1,K=(1<<_)-1,X=f;;X=f){var $=(q=m[R(t,f)&Z])>>>4;if((f+=15&q)>x){a&&I(0);break}if(q||I(2),$<256)e[p++]=$;else{if(256==$){X=f,m=null;break}var J=$-254;if($>264){var Q=s[j=$-257];J=P(t,f,(1<<Q)-1)+d[j],f+=Q}var tt=y[R(t,f)&K],et=tt>>>4;tt||I(3),f+=15&tt;Y=g[et];if(et>3){Q=c[et];Y+=R(t,f)&(1<<Q)-1,f+=Q}if(f>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,d=1,f=2;for(n[0]={s:-1,f:l.f+u.f,l,r:u};d!=a-1;)l=n[n[h].f<n[f].f?h++:f++],u=n[h!=d&&n[h].f<n[f].f?h++:f++],n[d++]={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[d-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,d,f,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=f+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(d,d+f));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,d=new i(r+h+5*(1+Math.ceil(h/7e3))+l),p=d.subarray(r,d.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|f[Y]<<18|m[Z];var ot=31&f[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(d,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,d=0;d<h;++d)l=(c=$(t[d],l,u))[0],u=c[1];J[n]=$(t[h],l,u)}var f=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,f,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}(f),s)},tt=function(){return[i,o,a,s,c,l,d,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,f,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},dt=function(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0},ft=function(t,e){return dt(t,e)+4294967296*dt(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=dt(t,e+20),s=n&&4294967295==a?ne(t,o):[a,dt(t,e+24),dt(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[ft(t,e+12),ft(t,e+4),ft(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 d=new Date(null==n.mtime?Date.now():n.mtime),f=d.getFullYear()-1980;if((f<0||f>119)&&I(10),pt(t,e,f<<25|d.getMonth()+1<<21|d.getDate()<<16|d.getHours()<<11|d.getMinutes()<<5|d.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=[]},d=this.d;this.d=0;var f=this.u.length,p=X(t,{f:n,u:s,o:a,t:function(){t.terminate&&t.terminate()},r:function(){if(h(),d){var t=e.u[f+1];t?t.r():e.d=1}d=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,d&&p.r(),d=1}else d&&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,d=(C=$t(s)).length,f=u.comment,p=f&&$t(f),g=p&&p.length,m=re(u.extra);d>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:d!=s.length||p&&f.length!=g,o,cpr:h})),o+=30+d+m+v,a+=76+2*(d+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,d=h&&this.d,f=function(){var t,e=dt(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,d=8&r,f=ht(l,s+26),g=ht(l,s+28);if(u>s+30+f+g){var m=[];p.k.unshift(m),a=2;var y,v=dt(l,s+18),_=dt(l,s+22),b=Jt(l.subarray(s+30,s+=30+f),!o);4294967295==v?(t=d?[-2]:ne(l,s),v=t[0],_=t[1]):d&&(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"===f())break}if(this.p=q,h<0){var g=a?l.subarray(0,c-12-(-2==h&&8)-(134695760==dt(l,c-16)&&4)):l.subarray(0,s);d?d.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 de="function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout?setTimeout:function(t){t()};e.GZ=function(t,e){for(var n={},r=t.length-22;101010256!=dt(t,r);--r)(!r||t.length-r>65558)&&I(13);var o=ht(t,r+8);if(!o)return{};var a=dt(t,r+16),s=4294967295==a;s&&(r=dt(t,r-12),101075792!=dt(t,r)&&I(13),o=dt(t,r+32),a=dt(t,r+48));for(var c=e&&e.filter,l=0;l<o;++l){var u=ee(t,a,s),h=u[0],d=u[1],f=u[2],p=u[3],g=u[4],m=u[5],y=te(t,m);a=g,c&&!c({name:p,size:d,ors:f,cpr:h})||(h?8==h?n[p]=Rt(t.subarray(y,y+d),new i(f)):I(14,"unknown cpr type "+h):n[p]=D(t,y,y+d))}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,d=i.aR,f=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,d as authorizeWxCamera,f as setRootPath};
|