<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">window.__require=function t(e,n,o){function i(c,s){if(!n[c]){if(!e[c]){var r=c.split("/");if(r=r[r.length-1],!e[r]){var l="function"==typeof __require&amp;&amp;__require;if(!s&amp;&amp;l)return l(r,!0);if(a)return a(r,!0);throw new Error("Cannot find module '"+c+"'")}c=r}var p=n[c]={exports:{}};e[c][0].call(p.exports,function(t){return i(e[c][1][t]||t)},p,p.exports,t,e,n,o)}return n[c].exports}for(var a="function"==typeof __require&amp;&amp;__require,c=0;c&lt;o.length;c++)i(o[c]);return i}({" Step_1":[function(t,e,n){"use strict";cc._RF.push(e,"1959emsf61DJoDDvFis2CVA"," Step_1");var o,i=this&amp;&amp;this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&amp;&amp;(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&amp;&amp;this.__decorate||function(t,e,n,o){var i,a=arguments.length,c=a&lt;3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s&gt;=0;s--)(i=t[s])&amp;&amp;(c=(a&lt;3?i(c):a&gt;3?i(e,n,c):i(e,n))||c);return a&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(e,n,c),c};Object.defineProperty(n,"__esModule",{value:!0});var c=t("../../../Aoneup-lib/Scripts/AudioManager/AudioManager"),s=t("../../../Aoneup-lib/Scripts/HelperTools/ExportHelper"),r=t("../../../Aoneup-lib/Scripts/ToolPicker/ToolPicker"),l=t("../../Common/Script/HintAnimation"),p=cc._decorator,u=p.ccclass,d=p.property,h=function(t){function e(){var e=null!==t&amp;&amp;t.apply(this,arguments)||this;return e.puppy=null,e.dummy=null,e.count=0,e.counter=0,e.counter3=1,e}return i(e,t),e.prototype.onLoad=function(){var t=this;this.schedule(function(){c.default.getInstance().play("DogSound_"+s.getRandomNumber(1,3))},5),cc.find("Canvas/Step_1/plate").children.forEach(function(e){e.setScale(.001),cc.tween(e).to(.4,{scale:.775}).call(function(){t.puppy.setAnimation(0,"idle_movement_1",!1),t.puppy.addAnimation(0,"idle_Normal",!0)}).delay(3.5).call(function(){e.getChildByName("Food").getComponent(r.default).setActive(!0),t.soundPlay("item_back_to_place"),t.node.getComponent(l.default).showArrow2(cc.find("Canvas/Step_1/plate/5/Food"))}).start()}),cc.game.on(r.TOOLPICKER.BEGAN,this.TouchBegan,this),cc.game.on(r.TOOLPICKER.FIXED,this.TouchFixed,this),cc.game.on(r.TOOLPICKER.MOVED,this.TouchMove,this),cc.game.on(r.TOOLPICKER.ENDED,this.TouchEnd,this),this.PuppySpine()},e.prototype.start=function(){},e.prototype.TouchBegan=function(t,e){this.node.getComponent(l.default).hideBlinkHand(),this.node.getComponent(l.default).hideArrow(),this.node.getComponent(l.default).hideHand(),console.log(e);var n=cc.find("Canvas/Step_1"),o=cc.find("Canvas/Step_2"),i=cc.find("Canvas/Step_3"),a=cc.find("Canvas/Step_4"),c=cc.find("Canvas/Step_1/MouthDummy");cc.game.on(r.TOOLPICKER.MOVED,this.TouchMove,this),1==e?(this.soundPlay("item_pick_up"),this.node.getComponent(l.default).showArrow2(c)):2==e?(this.soundPlay("item_pick_up"),this.node.getComponent(l.default).showArrow2(c)):0==e?(n.active=!1,o.active=!0,cc.game.off(r.TOOLPICKER.BEGAN,this.TouchBegan,this),cc.game.off(r.TOOLPICKER.FIXED,this.TouchFixed,this),cc.game.off(r.TOOLPICKER.MOVED,this.TouchMove,this),t.removeComponent(r.default)):11==e&amp;&amp;(0==this.counter?(n.active=!1,i.active=!0,cc.game.off(r.TOOLPICKER.BEGAN,this.TouchBegan,this),cc.game.off(r.TOOLPICKER.FIXED,this.TouchFixed,this),cc.game.off(r.TOOLPICKER.MOVED,this.TouchMove,this),t.getComponent(r.default).setActive(!1),this.counter=1):1==this.counter&amp;&amp;(this.counter=2,n.active=!1,a.active=!0,cc.game.off(r.TOOLPICKER.BEGAN,this.TouchBegan,this),cc.game.off(r.TOOLPICKER.FIXED,this.TouchFixed,this),cc.game.off(r.TOOLPICKER.MOVED,this.TouchMove,this)))},e.prototype.TouchFixed=function(){},e.prototype.TouchMove=function(t,e,n,o){var i=this,a=cc.find("Canvas/Step_1/MouthDummy"),c=cc.find("Canvas/Step_1/SandwichPlate"),s=cc.find("Canvas/Step_1/Bowl");if(1==e){var p=cc.find("Canvas/Step_1/plate").children;o.active=!0,a.active=!0,this.dummy.position=cc.v3(o.x,o.y);for(var u=0;u&lt;p.length;u++)if(this.dummy.getBoundingBoxToWorld().intersects(a.getBoundingBoxToWorld())){this.node.getComponent(l.default).hideArrow(),this.puppy.setAnimation(0,"idle_eating2",!1),this.puppy.addAnimation(0,"idle_Normal",!0),cc.tween(o).to(.1,{position:cc.v3(-100.336,50)}).to(1.5,{scale:.555}).to(.1,{scale:.111}).to(.01,{scale:.001}).call(function(){o.active=!1,i.toolEndParticles(a,-10,-15),i.greatingsSound();for(var t=0;t&lt;p.length;t++)0!=p[t].getChildByName("Food").active&amp;&amp;i.node.getComponent(l.default).showArrow2(p[t].getChildByName("Food"))}).start(),t.active=!1,a.active=!1,this.count++,p.forEach(function(t){t.getChildByName("Food").getComponent(r.default).setActive(!1),cc.tween(t).delay(2.600000047683716).call(function(){t.getChildByName("Food").getComponent(r.default).setActive(!0)}).start(),5==i.count&amp;&amp;(cc.tween(t).delay(2.600000047683716).to(.4,{scale:.001}).call(function(){t.active=!1}).start(),i.soundPlay("item_back_to_place",2.6),cc.tween(c).delay(3).by(.2,{x:700}).by(.3,{x:-100}).call(function(){i.node.getComponent(l.default).showArrow2(c)}).start())});break}}else 2==e&amp;&amp;(a.active=!0,this.dummy.position=cc.v3(o.x,o.y),this.dummy.getBoundingBoxToWorld().intersects(a.getBoundingBoxToWorld())&amp;&amp;(this.node.getComponent(l.default).hideArrow(),this.puppy.setAnimation(0,"idle_eating2",!1),this.puppy.addAnimation(0,"idle_Normal",!0),cc.tween(o).to(.1,{position:cc.v3(-100.336,50)}).to(1.5,{scale:.555}).to(.1,{scale:.111}).to(.01,{scale:.001}).call(function(){o.active=!1,i.toolEndParticles(a),i.greatingsSound()}).start(),t.active=!1,a.active=!1,cc.tween(c).delay(3).by(.3,{x:100}).by(.2,{x:-900}).start(),cc.tween(s).delay(3.5).by(.3,{x:700}).by(.2,{x:-100}).call(function(){i.node.getComponent(l.default).showArrow2(s)}).start()))},e.prototype.TouchEnd=function(t,e){cc.find("Canvas/Step_1/MouthDummy"),cc.find("Canvas/Step_1/SandwichPlate"),cc.find("Canvas/Step_1/Bowl");var n=cc.find("Canvas/Step_1/plate").children;if(this.node.getComponent(l.default).hideBlinkHand(),this.node.getComponent(l.default).hideArrow(),this.node.getComponent(l.default).hideHand(),1==e){this.soundPlay("item_back_to_place");for(var o=0;o&lt;n.length;o++)0!=n[o].getChildByName("Food").active&amp;&amp;this.node.getComponent(l.default).showArrow2(n[o].getChildByName("Food"))}else 2==e&amp;&amp;(this.soundPlay("item_back_to_place"),this.node.getComponent(l.default).showArrow2(t))},e.prototype.PuppySpine=function(){s.HideSlotSpine(this.puppy,"Tel"),s.HideSlotSpine(this.puppy,"body"),s.HideSlotSpine(this.puppy,"R_Leg_1"),s.HideSlotSpine(this.puppy,"R_Leg_2"),s.HideSlotSpine(this.puppy,"L_Leg_1"),s.HideSlotSpine(this.puppy,"L_Leg_2"),s.HideSlotSpine(this.puppy,"Cut_nail_Back_1"),s.HideSlotSpine(this.puppy,"Cut_nail_Back_2"),s.HideSlotSpine(this.puppy,"Cut_nail_Back_3"),s.HideSlotSpine(this.puppy,"Nail_Back_1"),s.HideSlotSpine(this.puppy,"Nail_Back_2"),s.HideSlotSpine(this.puppy,"Nail_Back_3");for(var t=1;t&lt;=8;t++)s.HideSlotSpine(this.puppy,"Dress_"+t);for(s.HideSlotSpine(this.puppy,"Dress_1_L"),s.HideSlotSpine(this.puppy,"Dress_7_L"),s.HideSlotSpine(this.puppy,"Dress_8_L"),s.HideSlotSpine(this.puppy,"Dress_1_R"),s.HideSlotSpine(this.puppy,"Dress_7_R"),s.HideSlotSpine(this.puppy,"Dress_8_R"),s.HideSlotSpine(this.puppy,"Dress_4_up"),s.HideSlotSpine(this.puppy,"Dress_5_up"),t=1;t&lt;=8;t++)s.HideSlotSpine(this.puppy,"Necklace_"+t);for(s.HideSlotSpine(this.puppy,"White_eye_part"),s.HideSlotSpine(this.puppy,"R_eyelance"),s.HideSlotSpine(this.puppy,"L_eyelance"),s.HideSlotSpine(this.puppy,"Face"),s.HideSlotSpine(this.puppy,"Tattoo"),s.HideSlotSpine(this.puppy,"Mouth"),s.HideSlotSpine(this.puppy,"Happy_lips"),s.HideSlotSpine(this.puppy,"Normal_lips"),s.HideSlotSpine(this.puppy,"Sad_lips"),s.HideSlotSpine(this.puppy,"R_ear_1"),s.HideSlotSpine(this.puppy,"R_ear_2"),s.HideSlotSpine(this.puppy,"L_ear_1"),s.HideSlotSpine(this.puppy,"L_ear_2"),s.HideSlotSpine(this.puppy,"Blink_1"),s.HideSlotSpine(this.puppy,"Blink_2"),t=1;t&lt;=2;t++)s.HideSlotSpine(this.puppy,"Nail_Left_"+t);for(t=1;t&lt;=3;t++)s.HideSlotSpine(this.puppy,"Nail_Right_"+t);for(t=1;t&lt;=3;t++)s.HideSlotSpine(this.puppy,"Cut_nail_Right_"+t);for(t=1;t&lt;=2;t++)s.HideSlotSpine(this.puppy,"Cut_nail_Left_"+t);for(t=1;t&lt;=3;t++)s.HideSlotSpine(this.puppy,"extra_skin_Back_"+t);for(t=1;t&lt;=3;t++)s.HideSlotSpine(this.puppy,"extra_skin_Right_"+t);for(t=1;t&lt;=17;t++)s.HideSlotSpine(this.puppy,"Hair_"+t);for(t=1;t&lt;=3;t++)s.HideSlotSpine(this.puppy,"RV_Tail_Hair_"+t);for(t=1;t&lt;=7;t++)s.HideSlotSpine(this.puppy,"Tongue_"+t);for(t=1;t&lt;=8;t++)s.HideSlotSpine(this.puppy,"Goggles_"+t);for(t=1;t&lt;=8;t++)s.HideSlotSpine(this.puppy,"Cap_"+t);for(s.HideSlotSpine(this.puppy,"Eating_lips"),s.ShowSlotSpine(this.puppy,"Tel"),s.ShowSlotSpine(this.puppy,"body"),s.ShowSlotSpine(this.puppy,"R_Leg_1"),s.ShowSlotSpine(this.puppy,"R_Leg_2"),s.ShowSlotSpine(this.puppy,"L_Leg_1"),s.ShowSlotSpine(this.puppy,"L_Leg_2"),s.ShowSlotSpine(this.puppy,"White_eye_part"),s.ShowSlotSpine(this.puppy,"R_eyelance"),s.ShowSlotSpine(this.puppy,"L_eyelance"),s.ShowSlotSpine(this.puppy,"Face"),s.ShowSlotSpine(this.puppy,"Mouth"),s.ShowSlotSpine(this.puppy,"Happy_lips"),s.ShowSlotSpine(this.puppy,"Normal_lips"),s.ShowSlotSpine(this.puppy,"Sad_lips"),s.ShowSlotSpine(this.puppy,"R_ear_1"),s.ShowSlotSpine(this.puppy,"R_ear_2"),s.ShowSlotSpine(this.puppy,"L_ear_1"),s.ShowSlotSpine(this.puppy,"L_ear_2"),s.ShowSlotSpine(this.puppy,"Blink_1"),s.ShowSlotSpine(this.puppy,"Blink_2"),t=1;t&lt;=7;t++)s.ShowSlotSpine(this.puppy,"Tongue_"+t)},e.prototype.Step1_TouchOn=function(){cc.game.on(r.TOOLPICKER.BEGAN,this.TouchBegan,this),cc.game.on(r.TOOLPICKER.FIXED,this.TouchFixed,this),cc.game.on(r.TOOLPICKER.MOVED,this.TouchMove,this)},e.prototype.greatingsSound=function(){1==this.counter3?(c.default.getInstance().play("Appriciation_good_job"),this.counter3=2):4==this.counter3?(c.default.getInstance().play("Appriciation_Superb"),this.counter3=5):6==this.counter3?(c.default.getInstance().play("Appriciation_Well_Done"),this.counter3=7):8==this.counter3?(c.default.getInstance().play("Appriciation_perfect"),this.counter3=1):this.counter3++},e.prototype.toolEndParticles=function(t,e,n,o){void 0===e&amp;&amp;(e=0),void 0===n&amp;&amp;(n=0),void 0===o&amp;&amp;(o=0);var i=cc.find("Canvas/Particles/Tool_Complete").children[s.getRandomNumber(0,2)],a=s.getNodePosition(i,t);i.position=cc.v3(a.x+e,a.y+n),cc.tween(i).delay(o).call(function(){i.getComponent(cc.ParticleSystem).resetSystem(),c.default.getInstance().play("Sparkle")}).start()},e.prototype.soundPlay=function(t,e,n){void 0===e&amp;&amp;(e=0),void 0===n&amp;&amp;(n=0),0==n?cc.tween(this.soundPlay).delay(e).call(function(){c.default.getInstance().play(t)}).start():cc.tween(this.soundPlay).delay(e).call(function(){c.default.getInstance().play(t,!0)}).delay(n).call(function(){c.default.getInstance().stop(t)}).start()},a([d(sp.Skeleton)],e.prototype,"puppy",void 0),a([d(cc.Node)],e.prototype,"dummy",void 0),a([u],e)}(cc.Component);n.default=h,cc._RF.pop()},{"../../../Aoneup-lib/Scripts/AudioManager/AudioManager":"AudioManager","../../../Aoneup-lib/Scripts/HelperTools/ExportHelper":"ExportHelper","../../../Aoneup-lib/Scripts/ToolPicker/ToolPicker":"ToolPicker","../../Common/Script/HintAnimation":"HintAnimation"}],AdManager:[function(t,e,n){"use strict";cc._RF.push(e,"96dfav0/OxFz7FAfAc4Ttu4","AdManager");var o,i=this&amp;&amp;this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&amp;&amp;(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&amp;&amp;this.__decorate||function(t,e,n,o){var i,a=arguments.length,c=a&lt;3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s&gt;=0;s--)(i=t[s])&amp;&amp;(c=(a&lt;3?i(c):a&gt;3?i(e,n,c):i(e,n))||c);return a&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(e,n,c),c},c=this&amp;&amp;this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))(function(i,a){function c(t){try{r(o.next(t))}catch(e){a(e)}}function s(t){try{r(o.throw(t))}catch(e){a(e)}}function r(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(c,s)}r((o=o.apply(t,e||[])).next())})},s=this&amp;&amp;this.__generator||function(t,e){var n,o,i,a,c={label:0,sent:function(){if(1&amp;i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&amp;&amp;(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return r([t,e])}}function r(a){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,o&amp;&amp;(i=2&amp;a[0]?o.return:a[0]?o.throw||((i=o.return)&amp;&amp;i.call(o),0):o.next)&amp;&amp;!(i=i.call(o,a[1])).done)return i;switch(o=0,i&amp;&amp;(a=[2&amp;a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++,o=a[1],a=[0];continue;case 7:a=c.ops.pop(),c.trys.pop();continue;default:if(!(i=(i=c.trys).length&gt;0&amp;&amp;i[i.length-1])&amp;&amp;(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&amp;&amp;(!i||a[1]&gt;i[0]&amp;&amp;a[1]&lt;i[3])){c.label=a[1];break}if(6===a[0]&amp;&amp;c.label&lt;i[1]){c.label=i[1],i=a;break}if(i&amp;&amp;c.label&lt;i[2]){c.label=i[2],c.ops.push(a);break}i[2]&amp;&amp;c.ops.pop(),c.trys.pop();continue}a=e.call(t,c)}catch(s){a=[6,s],o=0}finally{n=i=0}if(5&amp;a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}};Object.defineProperty(n,"__esModule",{value:!0}),n.DelayForAd=void 0;var r=t("../AudioManager/AudioManager"),l=t("../HelperTools/ExportHelper"),p=cc._decorator,u=p.ccclass,d=(p.property,function(t){function e(){var e=null!==t&amp;&amp;t.apply(this,arguments)||this;return e.isSwitchTab=!1,e}var n;return i(e,t),n=e,e.getInstance=function(){return n.instance||(n.instance=new n,n.instance.registerEvent()),n.instance},e.prototype.requestAds=function(){console.log("requestAds");var t=this;"undefined"!=typeof YYGGames&amp;&amp;YYGGames.showInterstitial({beforeShowAd:function(){l.GlobalData.data.isAdRunnning=!0,t.MuteSound(),cc.game.pause()},afterShowAd:function(){t.onAdComplete()}})},e.prototype.isAdRunningOrNot=function(){return l.GlobalData.data.isAdRunnning},e.prototype.removeAdsButton=function(){console.log(l.GlobalData.data.watchAdList),l.GlobalData.data.watchAdList.forEach(function(t){cc.find(t)&amp;&amp;cc.find(t).removeFromParent()})},e.prototype.requestRewardAds=function(t){return c(this,void 0,void 0,function(){var e=this;return s(this,function(){return console.log("requestRewardAds"),[2,new Promise(function(o){if("undefined"!=typeof YYGGames){var i=YYGGames.rewardReady;if(console.log("YYGGames.canShowReward(); =",i),0==i)return console.log("REWARD AD IS YET NOT READY"),e.ShowRewardFailedPopup(0),void o(!1);var a=e;YYGGames.showReward({beforeShowAd:function(){l.GlobalData.data.isAdRunnning=!0,a.MuteSound(),cc.game.pause()},afterShowAd:function(){a.onAdComplete()},rewardComplete:function(){if(t){var e=t.name;n.AdString.push(e),t.removeFromParent()}o(!0)},rewardDismissed:function(){e.ShowRewardFailedPopup(1),o(!1)}})}else console.log("sdk not init"),e.ShowRewardFailedPopup(0),o(!1)})]})})},e.prototype.onAdComplete=function(){l.GlobalData.data.isAdRunnning=!1,0==n.getInstance().isSwitchTab&amp;&amp;this.gameResume()},e.prototype.MuteSound=function(){console.log("MuteSound"),r.default.getInstance().mute(),cc.audioEngine.pauseMusic(),cc.audioEngine.pauseAllEffects()},e.prototype.StartSound=function(){n.getInstance().isSwitchTab||(console.log("StartSound"),r.default.getInstance().unMute(),cc.audioEngine.resumeMusic(),cc.audioEngine.resumeAllEffects())},e.prototype.registerEvent=function(){cc.game.on(cc.game.EVENT_SHOW,n.instance.gameResume,n.instance),cc.game.on(cc.game.EVENT_HIDE,n.instance.gamePause,n.instance)},e.prototype.gameResume=function(){n.getInstance().isSwitchTab=!1,n.getInstance().isAdRunningOrNot()?(cc.game.pause(),n.getInstance().MuteSound()):(cc.game.resume(),n.getInstance().StartSound())},e.prototype.gamePause=function(){cc.game.pause(),n.getInstance().isSwitchTab=!0,n.getInstance().MuteSound(),console.log("Game Pause")},e.prototype.ShowRewardFailedPopup=function(t){cc.find("Canvas/RewardFailPopup")&amp;&amp;cc.game.emit("RewarFailed.Open",t)},e.AdString=[],n=a([u],e)}(cc.Component));n.default=d,n.DelayForAd=function(t){return void 0===t&amp;&amp;(t=1),c(this,void 0,void 0,function(){var e,n=this;return s(this,function(){return e=!1,cc.tween(cc.director.getScene()).delay(t).call(function(){e=!0}).start(),[2,new Promise(function(o){setTimeout(function(){return c(n,void 0,void 0,function(){return s(this,function(t){switch(t.label){case 0:return d.getInstance().isAdRunningOrNot()||d.getInstance().isSwitchTab||0==e?[4,l.Delay(.1)]:[3,2];case 1:return t.sent(),[3,0];case 2:return o(),[2]}})})},1e3*t)})]})})},cc._RF.pop()},{"../AudioManager/AudioManager":"AudioManager","../HelperTools/ExportHelper":"ExportHelper"}],AudioManager:[function(t,e,n){"use strict";cc._RF.push(e,"771f1v9SgdMRoj7Bm/G8vDO","AudioManager");var o,i=this&amp;&amp;this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&amp;&amp;(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&amp;&amp;this.__decorate||function(t,e,n,o){var i,a=arguments.length,c=a&lt;3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s&gt;=0;s--)(i=t[s])&amp;&amp;(c=(a&lt;3?i(c):a&gt;3?i(e,n,c):i(e,n))||c);return a&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(e,n,c),c};Object.defineProperty(n,"__esModule",{value:!0});var c=t("../HelperTools/ExportHelper"),s=cc._decorator.ccclass,r=function(t){function e(){var e=null!==t&amp;&amp;t.apply(this,arguments)||this;return e.audioClipList=new Map,e.audioPlayingList=[],e.vocalaudioPlayingList=[],e.isMute=!1,e.volume=1,e}var n;return i(e,t),n=e,e.getInstance=function(){return n.instance||(n.instance=new n,n.instance.init()),n.instance},e.prototype.init=function(){this.schedule(this.garbageCollector,30,1/0,0);var t=this;cc.loader.loadResDir("mp3",function(e,n){for(var o=0;o&lt;n.length;o++)n[o]instanceof cc.AudioClip&amp;&amp;t.add(n[o].name,n[o])})},e.prototype.add=function(t,e){this.audioClipList.has(t)||this.audioClipList.set(t,e)},e.prototype.addAll=function(t){for(var e="",n=0,o=t;n&lt;o.length;n++){var i=o[n];e=i.name,this.audioClipList.has(e)||this.audioClipList.set(e,i)}},e.prototype.get=function(t){var e=this.audioClipList.get(t);if(e)return e},e.prototype.remove=function(t){this.audioClipList.get(t)&amp;&amp;this.audioClipList.delete(t)},e.prototype.removeAll=function(){this.stopAll(),this.audioClipList.clear()},e.prototype.play=function(t,e,n,o){if(void 0===e&amp;&amp;(e=!1),void 0===n&amp;&amp;(n=this.volume),void 0===o&amp;&amp;(o=!1),!this.isMute&amp;&amp;!c.GlobalData.data.isAdRunnning&amp;&amp;0!=cc.audioEngine.getEffectsVolume()){var i=this.audioClipList.get(t);if(o&amp;&amp;this.stopAllVocal(),e&amp;&amp;this.stop(t),i){var a=cc.audioEngine.play(i,e,cc.audioEngine.getMusicVolume()),s={audioId:a,audioName:t,audioVolume:1};return this.audioPlayingList.push(s),o&amp;&amp;this.vocalaudioPlayingList.push(s),cc.audioEngine.getDuration(a)}}},e.prototype.playVocal=function(t){if(!this.isMute&amp;&amp;!c.GlobalData.data.isAdRunnning&amp;&amp;0!=cc.audioEngine.getEffectsVolume()){var e=this.audioClipList.get(t);if(e){this.stopAllVocal();var n=cc.audioEngine.play(e,!1,cc.audioEngine.getEffectsVolume()),o={audioId:n,audioName:t,audioVolume:1};return this.vocalaudioPlayingList.push(o),cc.audioEngine.getDuration(n)}}},e.prototype.AudioDuration=function(t){var e=this.audioClipList.get(t);if(e){var n=cc.audioEngine.play(e,!1,0);return cc.audioEngine.getDuration(n)}},e.prototype.playMusic=function(t,e){void 0===e&amp;&amp;(e=!0);var n=this.audioClipList.get(t);n&amp;&amp;cc.audioEngine.playMusic(n,e)},e.prototype.stop=function(t){for(var e=-1,n="",o=0,i=this.audioPlayingList;o&lt;i.length;o++){var a=i[o];e=a.audioId,n=a.audioName,t.includes(n)&amp;&amp;cc.audioEngine.stop(e)}},e.prototype.stopAllVocal=function(){for(var t=-1,e=0,n=this.vocalaudioPlayingList;e&lt;n.length;e++){var o=n[e];t=o.audioId,o.audioName,cc.audioEngine.stop(t)}this.vocalaudioPlayingList.splice(0,this.vocalaudioPlayingList.length)},e.prototype.stopAll=function(){cc.audioEngine.stopAllEffects(),this.audioPlayingList=[]},e.prototype.pause=function(t){for(var e=-1,n=0,o=this.audioPlayingList;n&lt;o.length;n++){var i=o[n];if(e=i.audioId,i.audioName===t&amp;&amp;cc.audioEngine.getState(e)===cc.audioEngine.AudioState.PLAYING){cc.audioEngine.pause(e);break}}},e.prototype.isPlaying=function(t){for(var e=-1,n=0,o=this.audioPlayingList;n&lt;o.length;n++){var i=o[n];if(e=i.audioId,i.audioName===t&amp;&amp;cc.audioEngine.getState(e)===cc.audioEngine.AudioState.PLAYING)return!0}return!1},e.prototype.pauseAll=function(){cc.audioEngine.pauseAll()},e.prototype.resume=function(t){for(var e=-1,n=0,o=this.audioPlayingList;n&lt;o.length;n++){var i=o[n];if(e=i.audioId,i.audioName===t&amp;&amp;cc.audioEngine.getState(e)===cc.audioEngine.AudioState.PAUSED){cc.audioEngine.resume(e);break}}},e.prototype.isPause=function(t){for(var e=-1,n=0,o=this.audioPlayingList;n&lt;o.length;n++){var i=o[n];if(e=i.audioId,i.audioName===t&amp;&amp;cc.audioEngine.getState(e)===cc.audioEngine.AudioState.PAUSED)return!0}return!1},e.prototype.resumeAll=function(){cc.audioEngine.resumeAll()},e.prototype.setVolume=function(t,e){for(var n=-1,o=0,i=this.audioPlayingList;o&lt;i.length;o++){var a=i[o];if(n=a.audioId,a.audioName===t){cc.audioEngine.setVolume(n,e),a.audioVolume=e;break}}},e.prototype.setAllVolume=function(t){for(var e=-1,n=0,o=this.audioPlayingList;n&lt;o.length;n++){var i=o[n];e=i.audioId,cc.audioEngine.setVolume(e,t),i.audioVolume=t}},e.prototype.mute=function(){this.setAllMute(0),this.isMute=!0},e.prototype.unMute=function(){this.setAllMute(1),this.isMute=!1},e.prototype.setAllMute=function(t){for(var e=-1,n=0,o=this.audioPlayingList;n&lt;o.length;n++)e=o[n].audioId,cc.audioEngine.setVolume(e,t)},e.prototype.garbageCollector=function(){for(var t=null,e=this.audioPlayingList.length-1;e&gt;=0;e--)switch(t=this.audioPlayingList[e],cc.audioEngine.getState(t.audioId)){case cc.audioEngine.AudioState.STOPPED:case cc.audioEngine.AudioState.ERROR:this.audioPlayingList.splice(e,1)}},n=a([s],e)}(cc.Component);n.default=r,cc._RF.pop()},{"../HelperTools/ExportHelper":"ExportHelper"}],ExportHelper:[function(t,e,n){"use strict";cc._RF.push(e,"80d8fUX+W1Cy5lWwNSgDwQ5","ExportHelper");var o=this&amp;&amp;this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))(function(i,a){function c(t){try{r(o.next(t))}catch(e){a(e)}}function s(t){try{r(o.throw(t))}catch(e){a(e)}}function r(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(c,s)}r((o=o.apply(t,e||[])).next())})},i=this&amp;&amp;this.__generator||function(t,e){var n,o,i,a,c={label:0,sent:function(){if(1&amp;i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&amp;&amp;(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return r([t,e])}}function r(a){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,o&amp;&amp;(i=2&amp;a[0]?o.return:a[0]?o.throw||((i=o.return)&amp;&amp;i.call(o),0):o.next)&amp;&amp;!(i=i.call(o,a[1])).done)return i;switch(o=0,i&amp;&amp;(a=[2&amp;a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++,o=a[1],a=[0];continue;case 7:a=c.ops.pop(),c.trys.pop();continue;default:if(!(i=(i=c.trys).length&gt;0&amp;&amp;i[i.length-1])&amp;&amp;(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&amp;&amp;(!i||a[1]&gt;i[0]&amp;&amp;a[1]&lt;i[3])){c.label=a[1];break}if(6===a[0]&amp;&amp;c.label&lt;i[1]){c.label=i[1],i=a;break}if(i&amp;&amp;c.label&lt;i[2]){c.label=i[2],c.ops.push(a);break}i[2]&amp;&amp;c.ops.pop(),c.trys.pop();continue}a=e.call(t,c)}catch(s){a=[6,s],o=0}finally{n=i=0}if(5&amp;a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}};Object.defineProperty(n,"__esModule",{value:!0}),n.preloadScene=n.getNodePath=n.addAnimation=n.setAnimation=n.stopParticle=n.resetParticle=n.DisableButton=n.EnableButton=n.EnableSpriteComponent=n.DisableSpriteComponent=n.getNodePosition=n.getWorldPosition=n.tapEffect=n.calculateAnimationDuration=n.finalparticleSound=n.particleSound=n.putSound=n.tapSound=n.btnSound=n.appriciationSound=n.Jumpto=n.capturePhoto=n.rgbToHex=n.hexToRgb=n.ManageButton=n.addButtonEvent=n.setTexture=n.ScrollAction=n.distanceBetween2Points=n.animateProgressTo=n.NumberArray=n.RequestDeviceFullScreen=n.GetURLParameter=n.StringFormat=n.UItools=n.RoundDown=n.RoundUp=n.BeautifyNumber=n.Pad=n.Shuffle=n.SkippableDelay=n.Delay=n.AsyncTask=n.GetRandomFloat=n.GetRandomInterger=n.shuffleArray=n.getRandomFloat=n.getRandomNumber=n.Padding=n.GlobalData=void 0,n.resetSlot=n.replaceSlot=n.getTextureSize=n.getRegion=n.PrintAllRegion=n.getSpineAnimationDuration=n.PrintAllSkins=n.PrintAllAnimationNames=n.ShowSlotSpineSubStr=n.HideSlotSpineSubStr=n.ShowSlotSpine=n.HideSlotSpine=n.PrintAllAttachmentSpine=n.PrintAllSlotSpine=n.removeAttchment=n.setSpineAnimation=n.addSpineAnimation=n.PlayAnimation=n.resetchar=void 0;var a=t("../AudioManager/AudioManager");function c(t,e){return Math.floor(Math.random()*(e-t+1))+t}function s(t){return void 0===t&amp;&amp;(t=1),o(this,void 0,void 0,function(){return i(this,function(){return[2,new Promise(function(e){setTimeout(function(){e()},1e3*t)})]})})}function r(t){var e=t.toString(16);return 1==e.length?"0"+e:e}function l(t){return t?t.parent.convertToWorldSpaceAR(t.position):cc.Vec3.ZERO}n.GlobalData={data:{SelectedThumb:2,watchAdList:[],relatedThumbNo:0,isAdRunnning:!1,flags:{},Collider:null,isLevelCompleted:[!1,!1,!1,!1],levelNo:0,selectedSticker:2,stepNo:2,characterNo:1}},n.Padding=function(t,e){for(;t.length!=e;)t="0"+t;return t},n.getRandomNumber=function(t,e){return Math.floor(Math.random()*(e-t+1))+t},n.getRandomFloat=function(t,e){return Math.random()*(e-t)+t},n.shuffleArray=function(t){for(var e=t.length-1;e&gt;0;e--){var n=Math.floor(Math.random()*(e+1)),o=t[e];t[e]=t[n],t[n]=o}},n.GetRandomInterger=c,n.GetRandomFloat=function(t,e){return Math.random()*(e-t)+t},n.AsyncTask=function(t){return o(this,void 0,void 0,function(){return i(this,function(){return[2,new Promise(function(e){t(e)})]})})},n.Delay=s,n.SkippableDelay=function(t,e){return void 0===t&amp;&amp;(t=1),o(this,void 0,void 0,function(){var n=this;return i(this,function(){return t&lt;=0?[2]:[2,new Promise(function(a){setTimeout(function(){return o(n,void 0,void 0,function(){return i(this,function(){return a(),[2]})})},1e3*t),e&amp;&amp;cc.game.on(e,function(){a()})})]})})},n.Shuffle=function(t){if(null==t)return t;for(var e,n,o=t.length;0!==o;)n=Math.floor(Math.random()*o),e=t[o-=1],t[o]=t[n],t[n]=e;return t},n.Pad=function(t,e){var n="000000000"+t;return n.substr(n.length-e)},n.BeautifyNumber=function(t,e){return 0===t?t.toFixed(e):Number.isInteger(t)?t.toFixed(0):e?t.toFixed(e):t.toString()},n.RoundUp=function(t,e){void 0===e&amp;&amp;(e=2);var n=Math.pow(10,e);return Math.ceil(t*n)/n},n.RoundDown=function(t,e){void 0===e&amp;&amp;(e=2);var n=Math.pow(10,e);return Math.floor(t*n)/n},n.UItools={ChangeButtonSpriteFrame:function(t,e,n){t.normalSprite=e.getSpriteFrame(n.normalSprite),t.pressedSprite=e.getSpriteFrame(n.pressedSprite),t.hoverSprite=e.getSpriteFrame(n.hoverSprite),t.disabledSprite=e.getSpriteFrame(n.disabledSprite)}},n.StringFormat=function(t){for(var e=[],n=1;n&lt;arguments.length;n++)e[n-1]=arguments[n];return t.replace(/{(\d+)}/g,function(t,n){return e[n]||""})},n.GetURLParameter=function(t){var e,n,o=new RegExp("[?|&amp;]"+t+"=([^&amp;;]+?)(&amp;|#|;|$)").exec(location.search);return o&amp;&amp;(e=(o||[,""])[1].replace(/\+/g,"%20"),n=decodeURIComponent(e)),n||null},n.RequestDeviceFullScreen=function(){cc.view.enableAutoFullScreen(!0)},n.NumberArray=function(t,e,n,o){var i,a=[],c=!1;if((n||o)&amp;&amp;(c=!0,n||(n=""),o||(o="")),e&lt;t)for(i=t;i&gt;=e;i--)c?a.push(n+i.toString()+o):a.push(i);else for(i=t;i&lt;=e;i++)c?a.push(n+i.toString()+o):a.push(i);return a},n.animateProgressTo=function(t,e,n){void 0===n&amp;&amp;(n=1);var o=0;cc.tween(t).to(n,{fillRange:e},{progress:function(e,n,i,a){return o=cc.misc.lerp(e,n,a),t.fillRange=o,o}}).start()},n.distanceBetween2Points=function(t,e){var n=e.x-t.x,o=e.y-t.y;return Math.sqrt(Math.pow(n,2)+Math.pow(o,2))},n.ScrollAction=function(t){t.scrollToBottom(0,!1),cc.tween(t).delay(.2).call(function(){t.scrollToTop(2,!1)}).start()},n.setTexture=function(t,e){t&amp;&amp;t.getComponent(cc.Sprite)&amp;&amp;e&amp;&amp;e.getComponent(cc.Sprite)&amp;&amp;(t.getComponent(cc.Sprite).spriteFrame=e.getComponent(cc.Sprite).spriteFrame)},n.addButtonEvent=function(t,e,n,o,i,a){void 0===i&amp;&amp;(i=!0),void 0===a&amp;&amp;(a=cc.Button.Transition.SCALE),t.addComponent(cc.Button);var c=new cc.Component.EventHandler;c.target=e,c.component=n,c.handler=o,c.customEventData="";var s=t.getComponent(cc.Button);s.clickEvents.push(c),s.transition=a,s.enableAutoGrayEffect=i},n.ManageButton=function(t){t.parent.children.forEach(function(t){t.getComponent(cc.Button).interactable=!0}),t.getComponent(cc.Button).interactable=!1},n.hexToRgb=function(t){var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return cc.color(parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16))},n.rgbToHex=function(t,e,n){return"#"+r(t)+r(e)+r(n)},n.capturePhoto=function(t){t.getComponent(cc.Sprite).spriteFrame=new cc.SpriteFrame},n.Jumpto=function(t,e,n,o,i){void 0===o&amp;&amp;(o=.3),void 0===i&amp;&amp;(i=200),cc.Tween.stopAllByTarget(t),t.stopAllActions(),t.runAction(cc.jumpTo(o,cc.v2(n),i,1))},n.appriciationSound=function(){switch(c(1,4)){case 1:a.default.getInstance().playVocal("Appriciation_good_job");break;case 2:a.default.getInstance().playVocal("Appriciation_perfect");break;case 3:a.default.getInstance().playVocal("Appriciation_Superb");break;case 4:a.default.getInstance().playVocal("Appriciation_Well_Done")}},n.btnSound=function(){a.default.getInstance().play("Tap_Button")},n.tapSound=function(){a.default.getInstance().play("Button_Press")},n.putSound=function(){a.default.getInstance().play("Put_Sfx")},n.particleSound=function(){switch(c(1,2)){case 1:a.default.getInstance().play("Sparkle");break;case 2:a.default.getInstance().play("tool_particle")}},n.finalparticleSound=function(){a.default.getInstance().play("View_Done_Particle")},n.calculateAnimationDuration=function(t,e){var n=0,o=t.getComponent(cc.Animation);if(o){var i=o.getClips().find(function(t){return t.name===e});i?n=i.duration:console.error("Animation clip with name '"+e+"' not found.")}else console.error("Animation component not found on the node.");return n},n.tapEffect=function(t){if(0==t.getNumberOfRunningActions()){var e=t.scaleX,n=t.scaleY;cc.Tween.stopAllByTarget(t),cc.tween(t).to(.25,{scaleX:e-.05,scaleY:n-.05}).to(.25,{scaleX:e,scaleY:n}).start()}},n.getWorldPosition=l,n.getNodePosition=function(t,e){return e&amp;&amp;t?t.parent.convertToNodeSpaceAR(l(e)):cc.Vec3.ZERO},n.DisableSpriteComponent=function(t){t&amp;&amp;t.getComponent(cc.Sprite)&amp;&amp;(t.getComponent(cc.Sprite).enabled=!1)},n.EnableSpriteComponent=function(t){t&amp;&amp;t.getComponent(cc.Sprite)&amp;&amp;(t.getComponent(cc.Sprite).enabled=!0)},n.EnableButton=function(t){t&amp;&amp;t.getComponent(cc.Button)&amp;&amp;(t.getComponent(cc.Button).interactable=!0)},n.DisableButton=function(t){t&amp;&amp;t.getComponent(cc.Button)&amp;&amp;(t.getComponent(cc.Button).interactable=!1)},n.resetParticle=function(t){t&amp;&amp;t.getComponent(cc.ParticleSystem)&amp;&amp;(t.active=!0,t.getComponent(cc.ParticleSystem).resetSystem())},n.stopParticle=function(t){t&amp;&amp;t.getComponent(cc.ParticleSystem)&amp;&amp;t.getComponent(cc.ParticleSystem).stopSystem()},n.setAnimation=function(t,e,n){void 0===n&amp;&amp;(n=!0),t&amp;&amp;t.getComponent(sp.Skeleton)&amp;&amp;t.getComponent(sp.Skeleton).setAnimation(0,e,n)},n.addAnimation=function(t,e,n){void 0===n&amp;&amp;(n=!0),t&amp;&amp;t.getComponent(sp.Skeleton)&amp;&amp;t.getComponent(sp.Skeleton).addAnimation(0,e,n)},n.getNodePath=function(t){for(var e=t.name,n=t.parent;n&amp;&amp;n!==cc.director.getScene();)e=n.name+"/"+e,n=n.parent;return e},n.preloadScene=function t(e){var n=e,o=n.shift();cc.director.preloadScene(o,function(){console.log("Next scene preloaded",o),n.length&gt;0?t(n):console.log("loaded all")})},n.resetchar=function(t){t.clearTracks(),t.setToSetupPose()},n.PlayAnimation=function(t,e){return void 0===e&amp;&amp;(e=""),o(this,void 0,void 0,function(){var n=this;return i(this,function(){return[2,new Promise(function(a){return o(n,void 0,void 0,function(){var n;return i(this,function(o){switch(o.label){case 0:return null==t&amp;&amp;a(),null==(n=t.getComponent(cc.Animation))&amp;&amp;a(),0!=e.length?[3,2]:[4,s(n.play().duration)];case 1:return o.sent(),a(),[3,4];case 2:return[4,s(n.play(e).duration)];case 3:o.sent(),a(),o.label=4;case 4:return[2]}})})})]})})},n.addSpineAnimation=function(t,e,n){return o(this,void 0,void 0,function(){return i(this,function(){return t&amp;&amp;t.getComponent(sp.Skeleton)&amp;&amp;t.getComponent(sp.Skeleton).addAnimation(0,e,n),[2]})})},n.setSpineAnimation=function(t,e,n){return o(this,void 0,void 0,function(){return i(this,function(){return t&amp;&amp;t.getComponent(sp.Skeleton)&amp;&amp;t.getComponent(sp.Skeleton).setAnimation(0,e,n),[2]})})},n.removeAttchment=function(t,e){var n=t.findSlot(e);n&amp;&amp;n.setAttachment(null)},n.PrintAllSlotSpine=function(t){t.skeletonData.skeletonJson.slots.forEach(function(t){console.log(t.name)})},n.PrintAllAttachmentSpine=function(t,e){var n=t.findSlot(e);if(n){var o=n.data.attachments;for(var i in o)o[i],console.log(o)}},n.HideSlotSpine=function(t,e){var n=t.findSlot(e);n?n.color=cc.color(n.color.r,n.color.g,n.color.b,0):console.log("not exist",e)},n.ShowSlotSpine=function(t,e){var n=t.findSlot(e);n?n.color=cc.color(n.color.r,n.color.g,n.color.b,1):console.log("slot not found")},n.HideSlotSpineSubStr=function(t,e){t.skeletonData.skeletonJson.slots.forEach(function(n){if(n.name.includes(e)){var o=t.findSlot(n.name);o&amp;&amp;(o.color=cc.color(o.color.r,o.color.g,o.color.b,0))}})},n.ShowSlotSpineSubStr=function(t,e){t.skeletonData.skeletonJson.slots.forEach(function(n){if(n.name.includes(e)){var o=t.findSlot(n.name);o&amp;&amp;(o.color=cc.color(o.color.r,o.color.g,o.color.b,0))}})},n.PrintAllAnimationNames=function(t){t.skeletonData._skeletonCache.animations.forEach(function(t){console.log(t.name)})},n.PrintAllSkins=function(t){t.skeletonData.skeletonJson.skins.forEach(function(t){console.log(t.name)})},n.getSpineAnimationDuration=function(t,e){for(var n=t.skeletonData._skeletonCache.animations,o=0;o&lt;n.length;o++){var i=n[o];if(e===i.name)return i.duration}return 0},n.PrintAllRegion=function(t){t.skeletonData._atlasCache.regions.forEach(function(t){console.log(t.name)})},n.getRegion=function(t,e){var n=null;return t.skeletonData._atlasCache.regions.forEach(function(t){t.name==e&amp;&amp;(n=cc.rect(t.x,t.y,t.width,t.height))}),n},n.getTextureSize=function(t){return cc.size(t.skeletonData.textures[0].width,t.skeletonData.textures[0].height)},n.replaceSlot=function(t,e,n){var o=e,i=t.findSlot(o),a=t.findSlot(n);if(i&amp;&amp;a){var c=a.getAttachment();i.setAttachment(c)}else null==i&amp;&amp;alert("slot not found "+e),null==a&amp;&amp;alert("slot not found "+n)},n.resetSlot=function(t,e){var n=e,o=t.findSlot(n);o&amp;&amp;o.setAttachment(null)},cc._RF.pop()},{"../AudioManager/AudioManager":"AudioManager"}],HintAnimation:[function(t,e,n){"use strict";cc._RF.push(e,"60e377aggVH/KmgNHeQnnWF","HintAnimation");var o,i=this&amp;&amp;this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&amp;&amp;(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&amp;&amp;this.__decorate||function(t,e,n,o){var i,a=arguments.length,c=a&lt;3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s&gt;=0;s--)(i=t[s])&amp;&amp;(c=(a&lt;3?i(c):a&gt;3?i(e,n,c):i(e,n))||c);return a&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(e,n,c),c};Object.defineProperty(n,"__esModule",{value:!0});var c=t("../../../Aoneup-lib/Scripts/HelperTools/ExportHelper"),s=cc._decorator,r=s.ccclass,l=s.property,p=function(t){function e(){var e=null!==t&amp;&amp;t.apply(this,arguments)||this;return e.hand=null,e.blinkHand=null,e.arrow=null,e}return i(e,t),e.prototype.onLoad=function(){},e.prototype.showArrow=function(t,e,n){if(void 0===e&amp;&amp;(e=0),void 0===n&amp;&amp;(n=0),t){var o=c.getNodePosition(this.arrow,t);this.arrow.position=cc.v3(o.x+e,o.y+t.height+n)}cc.Tween.stopAllByTarget(this.arrow),cc.tween(this.arrow).sequence(cc.tween().by(.3,{y:-10}),cc.tween().by(.3,{y:10})).repeatForever().start(),this.arrow.active=!0},e.prototype.showArrow2=function(t,e,n){if(void 0===e&amp;&amp;(e=0),void 0===n&amp;&amp;(n=0),t){var o=c.getNodePosition(this.arrow,t);this.arrow.position=cc.v3(o.x+e,o.y+.5*t.height*t.scaleY+n)}cc.Tween.stopAllByTarget(this.arrow),cc.tween(this.arrow).sequence(cc.tween().by(.3,{y:-10}),cc.tween().by(.3,{y:10})).repeatForever().start(),this.arrow.active=!0},e.prototype.hideArrow=function(){this.arrow.active=!1},e.prototype.showHand=function(t,e){var n=c.getNodePosition(this.hand,t),o=c.getNodePosition(this.hand,e);cc.Tween.stopAllByTarget(this.hand),cc.tween(this.hand).sequence(cc.tween().to(.01,{position:cc.v3(n)}),cc.tween().to(1,{position:cc.v3(o)})).repeatForever().start(),this.hand.active=!0},e.prototype.hideHand=function(){this.hand.active=!1},e.prototype.showBlinkHand=function(t){var e=c.getNodePosition(this.blinkHand,t);this.blinkHand.position=cc.v3(e),cc.Tween.stopAllByTarget(this.blinkHand),cc.tween(this.blinkHand).sequence(cc.tween().by(.3,{y:-10}).by(.3,{scale:-.1}),cc.tween().by(.3,{y:10}).by(.3,{scale:.1})).repeatForever().start(),this.blinkHand.active=!0},e.prototype.showBlinkHand2=function(t){var e=c.getNodePosition(this.blinkHand,t);this.blinkHand.position=cc.v3(e),cc.Tween.stopAllByTarget(this.blinkHand),cc.tween(this.blinkHand).sequence(cc.tween().by(.8,{x:-50}),cc.tween().by(.8,{x:50})).repeatForever().start(),this.blinkHand.active=!0},e.prototype.hideBlinkHand=function(){this.blinkHand.active=!1},a([l(cc.Node)],e.prototype,"hand",void 0),a([l(cc.Node)],e.prototype,"blinkHand",void 0),a([l(cc.Node)],e.prototype,"arrow",void 0),a([r],e)}(cc.Component);n.default=p,cc._RF.pop()},{"../../../Aoneup-lib/Scripts/HelperTools/ExportHelper":"ExportHelper"}],MainScene:[function(t,e,n){"use strict";cc._RF.push(e,"b1231vf77hAtoIje8KRax+u","MainScene");var o,i=this&amp;&amp;this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&amp;&amp;(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&amp;&amp;this.__decorate||function(t,e,n,o){var i,a=arguments.length,c=a&lt;3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s&gt;=0;s--)(i=t[s])&amp;&amp;(c=(a&lt;3?i(c):a&gt;3?i(e,n,c):i(e,n))||c);return a&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(e,n,c),c},c=this&amp;&amp;this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))(function(i,a){function c(t){try{r(o.next(t))}catch(e){a(e)}}function s(t){try{r(o.throw(t))}catch(e){a(e)}}function r(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(c,s)}r((o=o.apply(t,e||[])).next())})},s=this&amp;&amp;this.__generator||function(t,e){var n,o,i,a,c={label:0,sent:function(){if(1&amp;i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&amp;&amp;(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return r([t,e])}}function r(a){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,o&amp;&amp;(i=2&amp;a[0]?o.return:a[0]?o.throw||((i=o.return)&amp;&amp;i.call(o),0):o.next)&amp;&amp;!(i=i.call(o,a[1])).done)return i;switch(o=0,i&amp;&amp;(a=[2&amp;a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++,o=a[1],a=[0];continue;case 7:a=c.ops.pop(),c.trys.pop();continue;default:if(!(i=(i=c.trys).length&gt;0&amp;&amp;i[i.length-1])&amp;&amp;(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&amp;&amp;(!i||a[1]&gt;i[0]&amp;&amp;a[1]&lt;i[3])){c.label=a[1];break}if(6===a[0]&amp;&amp;c.label&lt;i[1]){c.label=i[1],i=a;break}if(i&amp;&amp;c.label&lt;i[2]){c.label=i[2],c.ops.push(a);break}i[2]&amp;&amp;c.ops.pop(),c.trys.pop();continue}a=e.call(t,c)}catch(s){a=[6,s],o=0}finally{n=i=0}if(5&amp;a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}};Object.defineProperty(n,"__esModule",{value:!0});var r=t("../../../Aoneup-lib/Scripts/AudioManager/AudioManager"),l=t("../../../Aoneup-lib/Scripts/HelperTools/ExportHelper"),p=t("../../../Aoneup-lib/Scripts/Promotion/AdManager"),u=cc._decorator,d=u.ccclass,h=u.property,f=function(t){function e(){var e=null!==t&amp;&amp;t.apply(this,arguments)||this;return e.playparticle=null,e}return i(e,t),e.prototype.onLoad=function(){l.preloadScene(["LevelScene","level - 1","level - 2","level - 3","level - 4"]),r.default.getInstance().add("MainBgSound",cc.find("Canvas/MainBgSound").getComponent(cc.AudioSource).clip),r.default.getInstance().playMusic("MainBgSound")},e.prototype.start=function(){var t=cc.find("Canvas/bg/MS_BG").getComponent(cc.Animation);t.once(cc.Animation.EventType.FINISHED,function(){t.play("loop_animation")})},e.prototype.SoundAction=function(t){var e=t.target;0==cc.audioEngine.getMusicVolume()?(cc.audioEngine.setMusicVolume(1),cc.audioEngine.setEffectsVolume(1),l.setTexture(e,e.getChildByName("main_btnMusicOn"))):(cc.audioEngine.setMusicVolume(0),cc.audioEngine.setEffectsVolume(0),l.setTexture(e,e.getChildByName("main_btnMusicOff")))},e.prototype.playBtnClicked=function(){return c(this,void 0,void 0,function(){return s(this,function(t){switch(t.label){case 0:return l.DisableButton(cc.find("Canvas/bg/MS_BG/MS_Play")),this.playparticle.node.position,this.playparticle.resetSystem(),r.default.getInstance().play("Sparkle"),l.btnSound(),p.default.getInstance().requestAds(),[4,l.Delay(.5)];case 1:return t.sent(),cc.director.loadScene("LevelScene"),[2]}})})},a([h(cc.ParticleSystem)],e.prototype,"playparticle",void 0),a([d],e)}(cc.Component);n.default=f,cc._RF.pop()},{"../../../Aoneup-lib/Scripts/AudioManager/AudioManager":"AudioManager","../../../Aoneup-lib/Scripts/HelperTools/ExportHelper":"ExportHelper","../../../Aoneup-lib/Scripts/Promotion/AdManager":"AdManager"}],Promotion:[function(t,e,n){"use strict";cc._RF.push(e,"79213SsRc1IDrLGiW+oTQz4","Promotion");var o,i=this&amp;&amp;this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&amp;&amp;(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&amp;&amp;this.__decorate||function(t,e,n,o){var i,a=arguments.length,c=a&lt;3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s&gt;=0;s--)(i=t[s])&amp;&amp;(c=(a&lt;3?i(c):a&gt;3?i(e,n,c):i(e,n))||c);return a&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(e,n,c),c},c=this&amp;&amp;this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))(function(i,a){function c(t){try{r(o.next(t))}catch(e){a(e)}}function s(t){try{r(o.throw(t))}catch(e){a(e)}}function r(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(c,s)}r((o=o.apply(t,e||[])).next())})},s=this&amp;&amp;this.__generator||function(t,e){var n,o,i,a,c={label:0,sent:function(){if(1&amp;i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&amp;&amp;(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return r([t,e])}}function r(a){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,o&amp;&amp;(i=2&amp;a[0]?o.return:a[0]?o.throw||((i=o.return)&amp;&amp;i.call(o),0):o.next)&amp;&amp;!(i=i.call(o,a[1])).done)return i;switch(o=0,i&amp;&amp;(a=[2&amp;a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++,o=a[1],a=[0];continue;case 7:a=c.ops.pop(),c.trys.pop();continue;default:if(!(i=(i=c.trys).length&gt;0&amp;&amp;i[i.length-1])&amp;&amp;(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&amp;&amp;(!i||a[1]&gt;i[0]&amp;&amp;a[1]&lt;i[3])){c.label=a[1];break}if(6===a[0]&amp;&amp;c.label&lt;i[1]){c.label=i[1],i=a;break}if(i&amp;&amp;c.label&lt;i[2]){c.label=i[2],c.ops.push(a);break}i[2]&amp;&amp;c.ops.pop(),c.trys.pop();continue}a=e.call(t,c)}catch(s){a=[6,s],o=0}finally{n=i=0}if(5&amp;a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}};Object.defineProperty(n,"__esModule",{value:!0});var r=t("../HelperTools/ExportHelper"),l=t("./AdManager"),p=cc._decorator,u=p.ccclass,d=(p.property,function(t){function e(){return null!==t&amp;&amp;t.apply(this,arguments)||this}var n;return i(e,t),n=e,e.prototype.start=function(){n.self=this;var t=this;"promoBack"==t.node.name&amp;&amp;this.setPromoThumb();var e="game";"MainScene"==cc.director.getScene().name&amp;&amp;(e="mainscreen"),this.node.on(cc.Node.EventType.TOUCH_END,function(){YYGGames&amp;&amp;("promoBack"==t.node.name?255==t.node.parent.opacity&amp;&amp;YYGGames.navigate("gameoverscene","relatedgames",YYGGames.forgames[r.GlobalData.data.relatedThumbNo].id):t.node.parent&amp;&amp;"promotion"==t.node.parent.name?YYGGames.navigate("gameover",t.node.name):YYGGames.navigate(e,t.node.name))},this)},e.prototype.setPromoThumb=function(){var t=this;if("undefined"!=typeof YYGGames&amp;&amp;YYGGames.forgames.length&gt;0){r.GlobalData.data.relatedThumbNo=r.getRandomNumber(0,YYGGames.forgames.length-1);var e=this,n=YYGGames.forgames[r.GlobalData.data.relatedThumbNo].thumb;cc.assetManager.loadRemote(n,function(n,o){cc.find("tex",t.node)&amp;&amp;(e.node.parent.opacity=255,cc.find("tex",t.node).getComponent(cc.Sprite).spriteFrame=new cc.SpriteFrame(o))})}},e.prototype.onReplayClick=function(t){return c(this,void 0,void 0,function(){return s(this,function(e){switch(e.label){case 0:return t.target.getComponent(cc.Button).interactable=!1,l.default.getInstance().requestAds(),[4,r.Delay(.3)];case 1:return e.sent(),cc.director.loadScene("LevelScene"),[2]}})})},e.self=null,n=a([u],e)}(cc.Component));n.default=d,cc._RF.pop()},{"../HelperTools/ExportHelper":"ExportHelper","./AdManager":"AdManager"}],Puppy:[function(t,e,n){"use strict";cc._RF.push(e,"22ad7J600FNY5gHDu1lZ73A","Puppy");var o,i=this&amp;&amp;this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&amp;&amp;(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&amp;&amp;this.__decorate||function(t,e,n,o){var i,a=arguments.length,c=a&lt;3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s&gt;=0;s--)(i=t[s])&amp;&amp;(c=(a&lt;3?i(c):a&gt;3?i(e,n,c):i(e,n))||c);return a&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(e,n,c),c};Object.defineProperty(n,"__esModule",{value:!0});var c=t("../../../Aoneup-lib/Scripts/HelperTools/ExportHelper"),s=cc._decorator,r=s.ccclass,l=s.property,p=function(t){function e(){var e=null!==t&amp;&amp;t.apply(this,arguments)||this;return e.puppy=null,e}return i(e,t),e.prototype.onLoad=function(){},e.prototype.start=function(){for(var t=1;t&lt;=8;t++)c.HideSlotSpine(this.puppy,"Dress_"+t);for(c.HideSlotSpine(this.puppy,"Dress_1_L"),c.HideSlotSpine(this.puppy,"Dress_7_L"),c.HideSlotSpine(this.puppy,"Dress_8_L"),c.HideSlotSpine(this.puppy,"Dress_1_R"),c.HideSlotSpine(this.puppy,"Dress_7_R"),c.HideSlotSpine(this.puppy,"Dress_8_R"),c.HideSlotSpine(this.puppy,"Dress_4_up"),c.HideSlotSpine(this.puppy,"Dress_5_up"),t=1;t&lt;=8;t++)c.HideSlotSpine(this.puppy,"Necklace_"+t);for(c.HideSlotSpine(this.puppy,"Tattoo"),c.HideSlotSpine(this.puppy,"Happy_lips"),c.HideSlotSpine(this.puppy,"Normal_lips"),c.HideSlotSpine(this.puppy,"Sad_lips"),t=1;t&lt;=2;t++)c.HideSlotSpine(this.puppy,"Nail_Left_"+t);for(t=1;t&lt;=3;t++)c.HideSlotSpine(this.puppy,"Nail_Right_"+t);for(t=1;t&lt;=3;t++)c.HideSlotSpine(this.puppy,"extra_skin_Back_"+t);for(t=1;t&lt;=3;t++)c.HideSlotSpine(this.puppy,"extra_skin_Right_"+t);for(t=1;t&lt;=17;t++)c.HideSlotSpine(this.puppy,"Hair_"+t);for(t=1;t&lt;=3;t++)c.HideSlotSpine(this.puppy,"RV_Tail_Hair_"+t);for(t=2;t&lt;=8;t++)c.HideSlotSpine(this.puppy,"Goggles_"+t);for(t=2;t&lt;=8;t++)c.HideSlotSpine(this.puppy,"Cap_"+t)},a([l(sp.Skeleton)],e.prototype,"puppy",void 0),a([r],e)}(cc.Component);n.default=p,cc._RF.pop()},{"../../../Aoneup-lib/Scripts/HelperTools/ExportHelper":"ExportHelper"}],RewardFailed:[function(t,e,n){"use strict";cc._RF.push(e,"087453ce99Osp834as73pTC","RewardFailed");var o,i=this&amp;&amp;this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&amp;&amp;(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&amp;&amp;this.__decorate||function(t,e,n,o){var i,a=arguments.length,c=a&lt;3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s&gt;=0;s--)(i=t[s])&amp;&amp;(c=(a&lt;3?i(c):a&gt;3?i(e,n,c):i(e,n))||c);return a&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(e,n,c),c};Object.defineProperty(n,"__esModule",{value:!0});var c=cc._decorator,s=c.ccclass,r=(c.property,function(t){function e(){var e=null!==t&amp;&amp;t.apply(this,arguments)||this;return e.safeArea=null,e}return i(e,t),e.prototype.onLoad=function(){},e.prototype.start=function(){cc.game.on("RewarFailed.Open",this.OpenRewardFailed,this),cc.game.on("RewarFailed.Close",this.CloseRewardFailed,this),this.safeArea=this.node.children[0],cc.find("Failclose",this.safeArea).on(cc.Node.EventType.TOUCH_START,this.rewardCloseAction,this)},e.prototype.rewardCloseAction=function(){this.CloseRewardFailed()},e.prototype.OpenRewardFailed=function(t){this.safeArea.active=!0,0==t?(cc.find("SafeArea/Failpopup/pop1",this.node).active=!0,cc.find("SafeArea/Failpopup/pop2",this.node).active=!1):(cc.find("SafeArea/Failpopup/pop1",this.node).active=!1,cc.find("SafeArea/Failpopup/pop2",this.node).active=!0)},e.prototype.CloseRewardFailed=function(){this.safeArea&amp;&amp;(this.safeArea.active=!1)},a([s],e)}(cc.Component));n.default=r,cc._RF.pop()},{}],SessionStorageHelper:[function(t,e,n){"use strict";cc._RF.push(e,"7c4fbOhpSBMV7WdGp1GBJlm","SessionStorageHelper");var o,i=this&amp;&amp;this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&amp;&amp;(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&amp;&amp;this.__decorate||function(t,e,n,o){var i,a=arguments.length,c=a&lt;3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s&gt;=0;s--)(i=t[s])&amp;&amp;(c=(a&lt;3?i(c):a&gt;3?i(e,n,c):i(e,n))||c);return a&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(e,n,c),c};Object.defineProperty(n,"__esModule",{value:!0});var c=cc._decorator,s=c.ccclass,r=(c.property,function(t){function e(){var e=null!==t&amp;&amp;t.apply(this,arguments)||this;return e.Items=[],e}var n;return i(e,t),n=e,e.getInstace=function(){return null==n.instance&amp;&amp;(n.instance=new n),n.instance},e.prototype.setItem=function(t,e){for(var n=!1,o=0;o&lt;this.Items.length;o++)if(this.Items[o].Key==t){n=!0,this.Items[o].Value=e;break}0==n&amp;&amp;this.Items.push({Key:t,Value:e})},e.prototype.getItem=function(t){for(var e=0;e&lt;this.Items.length;e++)if(this.Items[e].Key==t)return this.Items[e].Value},e.prototype.removeItem=function(t){for(var e=0;e&lt;this.Items.length;e++)if(this.Items[e].Key==t){this.Items.splice(e,1);break}},e.prototype.removeAllKeys=function(){this.Items.splice(0,this.Items.length)},e.instance=null,n=a([s],e)}(cc.Component));n.default=r,cc._RF.pop()},{}],Step_2:[function(t,e,n){"use strict";cc._RF.push(e,"833cfLA+cFKe6HDmGp0IqxJ","Step_2");var o,i=this&amp;&amp;this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&amp;&amp;(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&amp;&amp;this.__decorate||function(t,e,n,o){var i,a=arguments.length,c=a&lt;3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s&gt;=0;s--)(i=t[s])&amp;&amp;(c=(a&lt;3?i(c):a&gt;3?i(e,n,c):i(e,n))||c);return a&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(e,n,c),c};Object.defineProperty(n,"__esModule",{value:!0}),n.Step1_TouchOn=void 0;var c=t("../../../Aoneup-lib/Scripts/AudioManager/AudioManager"),s=t("../../../Aoneup-lib/Scripts/HelperTools/ExportHelper"),r=t("../../../Aoneup-lib/Scripts/ToolPicker/ToolPicker"),l=t("../../Common/Script/HintAnimation"),p=t("./ Step_1"),u=cc._decorator,d=u.ccclass,h=u.property,f=function(t){function e(){var e=null!==t&amp;&amp;t.apply(this,arguments)||this;return e.PlateDummy=null,e.count=0,e.counter3=1,e}return i(e,t),e.prototype.onLoad=function(){var t=this,e=cc.find("Canvas/Step_2/SidePlate");cc.tween(e).by(.2,{x:-600}).by(.3,{x:100}).call(function(){t.node.getComponent(l.default).showArrow2(cc.find("Canvas/Step_2/SidePlate/1"))}).start(),this.soundPlay("item_back_to_place"),cc.game.on(r.TOOLPICKER.BEGAN,this.TouchBegan,this),cc.game.on(r.TOOLPICKER.FIXED,this.TouchFixed,this),cc.game.on(r.TOOLPICKER.MOVED,this.TouchMove,this),cc.game.on(r.TOOLPICKER.ENDED,this.TouchEnd,this)},e.prototype.start=function(){},e.prototype.TouchBegan=function(t,e){this.node.getComponent(l.default).hideBlinkHand(),this.node.getComponent(l.default).hideArrow(),this.node.getComponent(l.default).hideHand(),cc.game.on(r.TOOLPICKER.MOVED,this.TouchMove,this);var n=cc.find("Canvas/Step_2/SandwichPlate");1==e?(n.getChildByName("1").active=!0,this.soundPlay("item_pick_up")):2==e?(n.getChildByName("2").active=!0,this.soundPlay("item_pick_up")):3==e?(n.getChildByName("3").active=!0,this.soundPlay("item_pick_up")):4==e?(n.getChildByName("4").active=!0,this.soundPlay("item_pick_up")):6==e?(n.getChildByName("6").active?1==this.count&amp;&amp;(n.getChildByName("5").active=!0):n.getChildByName("6").active=!0,this.soundPlay("item_pick_up")):5==e&amp;&amp;(n.getChildByName("7").active=!0,this.soundPlay("item_pick_up"))},e.prototype.TouchFixed=function(){},e.prototype.TouchMove=function(t,e,n,o){var i=this,a=cc.find("Canvas/Step_2/SidePlate"),s=cc.find("Canvas/Step_2/CatchUp"),u=cc.find("Canvas/Step_2/SandwichPlate");if(1==e)o.getBoundingBoxToWorld().intersects(this.PlateDummy.getBoundingBoxToWorld())&amp;&amp;((d=cc.find("Canvas/Step_2/SandwichPlate/1/shadow")).active=!1,t.active=!1,o.active=!1,cc.tween(a).delay(.5).by(.2,{x:500}).call(function(){i.toolEndParticles(u,0,40),i.greatingsSound(),a.getChildByName("0").active=!1,a.getChildByName("5").active=!1,a.getChildByName("1").active=!1,a.getChildByName("2").active=!0}).by(.2,{x:-600}).by(.3,{x:100}).call(function(){i.node.getComponent(l.default).showArrow2(a.getChildByName("2"))}).start());else if(2==e)o.getBoundingBoxToWorld().intersects(this.PlateDummy.getBoundingBoxToWorld())&amp;&amp;((d=cc.find("Canvas/Step_2/SandwichPlate/2/shadow")).active=!1,t.active=!1,o.active=!1,cc.tween(a).delay(.5).by(.2,{x:500}).call(function(){i.toolEndParticles(u,0,50),i.greatingsSound(),a.getChildByName("2").active=!1,a.getChildByName("3").active=!0}).by(.2,{x:-600}).by(.3,{x:100}).call(function(){i.node.getComponent(l.default).showArrow2(a.getChildByName("3"))}).start());else if(3==e)o.getBoundingBoxToWorld().intersects(this.PlateDummy.getBoundingBoxToWorld())&amp;&amp;((d=cc.find("Canvas/Step_2/SandwichPlate/3/shadow")).active=!1,t.active=!1,o.active=!1,cc.tween(a).delay(.5).by(.2,{x:500}).call(function(){i.toolEndParticles(u,0,50),i.greatingsSound(),a.getChildByName("3").active=!1,a.getChildByName("4").active=!0}).by(.2,{x:-600}).by(.3,{x:100}).call(function(){i.node.getComponent(l.default).showArrow2(a.getChildByName("4"))}).start());else if(4==e){if(o.getBoundingBoxToWorld().intersects(this.PlateDummy.getBoundingBoxToWorld())){var d=cc.find("Canvas/Step_2/SandwichPlate/4/shadow"),h=cc.find("Canvas/Step_2/CatchUp");d.active=!1,t.active=!1,o.active=!1,cc.tween(a).delay(.5).by(.2,{x:500}).call(function(){i.toolEndParticles(u,0,50),i.greatingsSound(),a.getChildByName("4").active=!1}).start(),cc.tween(h).delay(.8).by(.2,{x:-500}).by(.3,{x:100}).call(function(){i.node.getComponent(l.default).showArrow2(h)}).start()}}else 6==e?o.getBoundingBoxToWorld().intersects(this.PlateDummy.getBoundingBoxToWorld())&amp;&amp;0==this.count?((d=cc.find("Canvas/Step_2/SandwichPlate/6/shadow")).active=!1,cc.game.off(r.TOOLPICKER.MOVED,this.TouchMove,this),t.getComponent(r.default).setActive(!1),o.active=!1,cc.find("Canvas/Step_2").getComponent(cc.Animation).play("Catchup"),this.soundPlay("NEW_CreamSFX",1),cc.tween(t).delay(2).call(function(){i.toolEndParticles(u,0,50),i.greatingsSound(),t.getComponent(r.default).setActive(!0),i.node.getComponent(l.default).showArrow2(t)}).start(),this.count++):o.getBoundingBoxToWorld().intersects(this.PlateDummy.getBoundingBoxToWorld())&amp;&amp;1==this.count&amp;&amp;(this.count=0,(d=cc.find("Canvas/Step_2/SandwichPlate/5/shadow")).active=!1,cc.game.off(r.TOOLPICKER.MOVED,this.TouchMove,this),t.getComponent(r.default).setActive(!1),o.active=!1,cc.find("Canvas/Step_2").getComponent(cc.Animation).play("Catchup2"),this.soundPlay("NEW_CreamSFX",.5),cc.tween(a).delay(2).call(function(){i.toolEndParticles(u,0,50),i.greatingsSound(),cc.tween(s).by(.2,{x:500}).start()}).delay(.8).call(function(){a.getChildByName("0").active=!0,a.getChildByName("5").active=!0,cc.find("Canvas/Step_2/SidePlate/5").getComponent(r.default).setActive(!0)}).by(.2,{x:-600}).by(.3,{x:100}).call(function(){i.node.getComponent(l.default).showArrow2(a.getChildByName("5"))}).start()):5==e&amp;&amp;o.getBoundingBoxToWorld().intersects(this.PlateDummy.getBoundingBoxToWorld())&amp;&amp;((d=cc.find("Canvas/Step_2/SandwichPlate/7/shadow")).active=!1,t.active=!1,o.active=!1,cc.tween(a).delay(.2).call(function(){i.toolEndParticles(u,0,55),i.greatingsSound()}).by(.2,{x:500}).delay(.8).call(function(){cc.find("Canvas/Particles/Fallingstar").getComponent(cc.ParticleSystem).resetSystem(),c.default.getInstance().play("View_Done_Particle")}).delay(1.5).call(function(){var t=cc.find("Canvas/Step_1"),e=cc.find("Canvas/Step_2"),n=cc.find("Canvas/Step_1/SandwichPlate");e.active=!1,t.getComponent(p.default).Step1_TouchOn(),cc.game.off(r.TOOLPICKER.BEGAN,i.TouchBegan,i),cc.game.off(r.TOOLPICKER.FIXED,i.TouchFixed,i),cc.game.off(r.TOOLPICKER.MOVED,i.TouchMove,i),t.active=!0,n.getChildByName("Food 6").active=!0,i.toolEndParticles(cc.find("Canvas/Step_1/SandwichPlate/Food 6")),i.greatingsSound(),i.node.getComponent(l.default).showArrow2(n.getChildByName("Food 6"))}).start())},e.prototype.TouchEnd=function(t,e){1==e?(this.soundPlay("item_back_to_place"),this.node.getComponent(l.default).showArrow2(t)):2==e?(this.soundPlay("item_back_to_place"),this.node.getComponent(l.default).showArrow2(t)):3==e?(this.soundPlay("item_back_to_place"),this.node.getComponent(l.default).showArrow2(t)):4==e?(this.soundPlay("item_back_to_place"),this.node.getComponent(l.default).showArrow2(t)):5==e?(this.soundPlay("item_back_to_place"),this.node.getComponent(l.default).showArrow2(t)):6==e&amp;&amp;(this.soundPlay("item_back_to_place"),this.node.getComponent(l.default).showArrow2(t))},e.prototype.greatingsSound=function(){1==this.counter3?(c.default.getInstance().play("Appriciation_good_job"),this.counter3=2):4==this.counter3?(c.default.getInstance().play("Appriciation_Superb"),this.counter3=5):6==this.counter3?(c.default.getInstance().play("Appriciation_Well_Done"),this.counter3=7):8==this.counter3?(c.default.getInstance().play("Appriciation_perfect"),this.counter3=1):this.counter3++},e.prototype.toolEndParticles=function(t,e,n,o){void 0===e&amp;&amp;(e=0),void 0===n&amp;&amp;(n=0),void 0===o&amp;&amp;(o=0);var i=cc.find("Canvas/Particles/Tool_Complete").children[s.getRandomNumber(0,2)],a=s.getNodePosition(i,t);i.position=cc.v3(a.x+e,a.y+n),cc.tween(i).delay(o).call(function(){i.getComponent(cc.ParticleSystem).resetSystem(),c.default.getInstance().play("Sparkle")}).start()},e.prototype.soundPlay=function(t,e,n){void 0===e&amp;&amp;(e=0),void 0===n&amp;&amp;(n=0),0==n?cc.tween(this.soundPlay).delay(e).call(function(){c.default.getInstance().play(t)}).start():cc.tween(this.soundPlay).delay(e).call(function(){c.default.getInstance().play(t,!0)}).delay(n).call(function(){c.default.getInstance().stop(t)}).start()},a([h(cc.Node)],e.prototype,"PlateDummy",void 0),a([d],e)}(cc.Component);n.default=f,n.Step1_TouchOn=function(){throw new Error("Function not implemented.")},cc._RF.pop()},{"../../../Aoneup-lib/Scripts/AudioManager/AudioManager":"AudioManager","../../../Aoneup-lib/Scripts/HelperTools/ExportHelper":"ExportHelper","../../../Aoneup-lib/Scripts/ToolPicker/ToolPicker":"ToolPicker","../../Common/Script/HintAnimation":"HintAnimation","./ Step_1":" Step_1"}],Step_3:[function(t,e,n){"use strict";cc._RF.push(e,"47966WrsN5N4qh6+30aCnAf","Step_3");var o,i=this&amp;&amp;this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&amp;&amp;(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&amp;&amp;this.__decorate||function(t,e,n,o){var i,a=arguments.length,c=a&lt;3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s&gt;=0;s--)(i=t[s])&amp;&amp;(c=(a&lt;3?i(c):a&gt;3?i(e,n,c):i(e,n))||c);return a&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(e,n,c),c};Object.defineProperty(n,"__esModule",{value:!0});var c=t("../../../Aoneup-lib/Scripts/AudioManager/AudioManager"),s=t("../../../Aoneup-lib/Scripts/HelperTools/ExportHelper"),r=t("../../../Aoneup-lib/Scripts/ToolPicker/ToolPicker"),l=t("../../Common/Script/HintAnimation"),p=t("./ Step_1"),u=cc._decorator,d=u.ccclass,h=u.property,f=function(t){function e(){var e=null!==t&amp;&amp;t.apply(this,arguments)||this;return e.PanDummy=null,e.MoveDummy=null,e.BowlDummy=null,e.puppy=null,e.count=0,e.counter3=1,e}return i(e,t),e.prototype.onLoad=function(){var t=this,e=cc.find("Canvas/Step_3/Pan_Thumb");cc.tween(e).by(.2,{x:-550}).by(.3,{x:50}).call(function(){t.node.getComponent(l.default).showArrow2(e,-80)}).start(),cc.game.on(r.TOOLPICKER.BEGAN,this.TouchBegan,this),cc.game.on(r.TOOLPICKER.MOVED,this.TouchMove,this),cc.game.on(r.TOOLPICKER.ENDED,this.TouchEnd,this)},e.prototype.start=function(){},e.prototype.TouchBegan=function(t,e){var n=this;this.node.getComponent(l.default).hideBlinkHand(),this.node.getComponent(l.default).hideArrow(),this.node.getComponent(l.default).hideHand(),cc.game.on(r.TOOLPICKER.MOVED,this.TouchMove,this);var o=cc.find("Canvas/Step_3/Stove/StoveBtn"),i=cc.find("Canvas/Step_3"),a=cc.find("Canvas/Step_3/MoveItem/Flame"),c=cc.find("Canvas/Step_3/Jug"),s=cc.find("Canvas/Step_3/Bowl_Back"),p=cc.find("Canvas/Step_3/Pan_Back");if(0==e)0==this.count?(a.active=!0,i.getComponent(cc.Animation).play("StoveFlame"),cc.tween(c).delay(1).by(.2,{x:-700}).by(.3,{x:100}).call(function(){n.node.getComponent(l.default).showArrow2(c)}).start(),o.getComponent(r.default).setActive(!1),this.count=1):1==this.count&amp;&amp;(a.active=!1,o.getComponent(r.default).setActive(!1),s.active=!0,cc.tween(s).delay(.8).by(.2,{x:-550}).by(.3,{x:50}).call(function(){n.node.getComponent(l.default).showHand(p,s)}).start(),p.getComponent(r.default).setActive(!0));else if(1==e)this.soundPlay("item_pick_up"),this.node.getComponent(l.default).showArrow2(this.PanDummy);else if(3==e)this.soundPlay("item_pick_up"),this.node.getComponent(l.default).showArrow2(this.PanDummy),t.active=!0,t.opacity=250;else if(2==e)this.soundPlay("item_pick_up"),this.node.getComponent(l.default).showArrow2(this.PanDummy);else if(4==e)this.soundPlay("item_pick_up"),this.node.getComponent(l.default).showArrow2(this.PanDummy),t.active=!0,t.opacity=250;else if(5==e)this.soundPlay("item_pick_up"),this.node.getComponent(l.default).showArrow2(this.PanDummy),t.active=!0,t.opacity=250;else if(6==e)this.soundPlay("item_pick_up"),this.node.getComponent(l.default).showArrow2(this.PanDummy),t.active=!0,t.opacity=250;else if(7==e)this.soundPlay("item_pick_up"),this.node.getComponent(l.default).showArrow2(this.PanDummy);else if(8==e)this.soundPlay("item_pick_up"),this.node.getComponent(l.default).showArrow2(this.PanDummy);else if(9==e)this.soundPlay("item_pick_up"),this.node.getComponent(l.default).showArrow2(this.PanDummy);else if(11==e){cc.find("Canvas/Step_3/Pan_Front").active=!1;for(var u=1;u&lt;10;u++)cc.find("Canvas/Step_3/Mixture_"+u).active=!1}},e.prototype.TouchMove=function(t,e,n,o){var i=this,a=cc.find("Canvas/Step_3/Pan_Front"),s=cc.find("Canvas/Step_3/Stove/StoveBtn"),u=cc.find("Canvas/Step_3"),d=cc.find("Canvas/Step_3/Tometo_Bowl"),h=cc.find("Canvas/Step_3/MoveItem/Tomato_Slice copy"),f=cc.find("Canvas/Step_3/Onion_Bowl"),g=cc.find("Canvas/Step_3/MoveItem/Onion_Slice copy"),y=cc.find("Canvas/Step_3/Garlic_Bowl"),v=cc.find("Canvas/Step_3/MoveItem/Garlic_Slice copy"),m=cc.find("Canvas/Step_3/Basil_Bowl"),_=cc.find("Canvas/Step_3/MoveItem/Basil_Leaves copy"),S=cc.find("Canvas/Step_3/Salt"),C=cc.find("Canvas/Step_3/Black_Paper"),w=cc.find("Canvas/Step_3/MoveItem/Salt_powder"),P=cc.find("Canvas/Step_3/MoveItem/BlackPaper_powder"),A=cc.find("Canvas/Step_3/Spoon"),b=cc.find("Canvas/Step_3/Spoon1");if(1==e){var T=cc.find("Canvas/Step_3/Pan_Front"),D=cc.find("Canvas/Step_3/Pan_Back");this.PanDummy.active=!0,this.MoveDummy.position=cc.v3(o.x,o.y),this.MoveDummy.getBoundingBoxToWorld().intersects(this.PanDummy.getBoundingBoxToWorld())&amp;&amp;(this.node.getComponent(l.default).hideArrow(),T.active=!0,D.active=!0,o.active=!1,t.active=!1,this.toolEndParticles(T,0,50),this.greatingsSound(0),s.getComponent(r.default).setActive(!0),this.scheduleOnce(function(){i.node.getComponent(l.default).showArrow2(s)},.5))}else if(2==e){if(this.MoveDummy.position=cc.v3(o.x,o.y),this.MoveDummy.getBoundingBoxToWorld().intersects(this.PanDummy.getBoundingBoxToWorld())){this.node.getComponent(l.default).hideArrow(),u.getComponent(cc.Animation).playAdditive("WaterJug");var O=cc.find("Canvas/Step_3/Soup_Water_Splash");cc.tween(O).delay(.5).call(function(){O.getComponent(cc.ParticleSystem).resetSystem()}).delay(1).call(function(){O.active=!1}).start(),this.toolEndParticles(a,0,50,2),this.greatingsSound(2),t.getComponent(r.default).setActive(!1),o.active=!1,d.active=!0,cc.tween(d).delay(2.4).by(.2,{x:-550}).by(.3,{x:50}).call(function(){i.node.getComponent(l.default).showArrow2(d)}).start()}}else if(3==e)o.getBoundingBoxToWorld().intersects(this.PanDummy.getBoundingBoxToWorld())&amp;&amp;(this.node.getComponent(l.default).hideArrow(),t.getComponent(r.default).setActive(!1),h.active=!0,o.active=!1,this.toolEndParticles(h,0,0,.5),this.greatingsSound(.5),cc.tween(d).delay(.5).by(.2,{x:-50}).by(.3,{x:650}).start(),f.active=!0,cc.tween(f).delay(1).by(.2,{x:-550}).by(.3,{x:50}).call(function(){i.node.getComponent(l.default).showArrow2(f)}).start());else if(4==e)o.getBoundingBoxToWorld().intersects(this.PanDummy.getBoundingBoxToWorld())&amp;&amp;(this.node.getComponent(l.default).hideArrow(),t.getComponent(r.default).setActive(!1),g.active=!0,o.active=!1,this.toolEndParticles(g,0,0,.5),this.greatingsSound(.5),cc.tween(f).delay(.5).by(.2,{x:-50}).by(.3,{x:650}).start(),y.active=!0,cc.tween(y).delay(1).by(.2,{x:-550}).by(.3,{x:50}).call(function(){i.node.getComponent(l.default).showArrow2(y)}).start());else if(5==e)o.getBoundingBoxToWorld().intersects(this.PanDummy.getBoundingBoxToWorld())&amp;&amp;(this.node.getComponent(l.default).hideArrow(),t.getComponent(r.default).setActive(!1),v.active=!0,o.active=!1,this.toolEndParticles(v,0,0,.5),this.greatingsSound(.5),cc.tween(y).delay(.5).by(.2,{x:-50}).by(.3,{x:650}).start(),m.active=!0,cc.tween(m).delay(1).by(.2,{x:-550}).by(.3,{x:50}).call(function(){i.node.getComponent(l.default).showArrow2(m)}).start());else if(6==e)o.getBoundingBoxToWorld().intersects(this.PanDummy.getBoundingBoxToWorld())&amp;&amp;(this.node.getComponent(l.default).hideArrow(),t.getComponent(r.default).setActive(!1),_.active=!0,o.active=!1,this.toolEndParticles(_,0,0,.5),this.greatingsSound(.5),cc.tween(m).delay(.5).by(.2,{x:-50}).by(.3,{x:650}).start(),S.active=!0,cc.tween(S).delay(1).by(.2,{x:-550}).by(.3,{x:50}).call(function(){i.node.getComponent(l.default).showArrow2(S)}).start());else if(7==e){if(o.getBoundingBoxToWorld().intersects(this.PanDummy.getBoundingBoxToWorld())){this.node.getComponent(l.default).hideArrow(),u.getComponent(cc.Animation).playAdditive("Salt");var B=cc.find("Canvas/Step_3/MoveItem/Salt_particle");cc.tween(B).delay(.5).call(function(){B.getComponent(cc.ParticleSystem).resetSystem()}).delay(1.2).call(function(){B.active=!1,w.active=!0,i.toolEndParticles(w,0,0,.5),i.greatingsSound(.5)}).start(),t.getComponent(r.default).setActive(!1),o.active=!1,t.active=!1,C.active=!0,cc.tween(C).delay(2.8).by(.2,{x:-550}).by(.3,{x:50}).call(function(){i.node.getComponent(l.default).showArrow2(C)}).start()}}else if(8==e){if(o.getBoundingBoxToWorld().intersects(this.PanDummy.getBoundingBoxToWorld())){this.node.getComponent(l.default).hideArrow(),u.getComponent(cc.Animation).playAdditive("BlackPaper");var x=cc.find("Canvas/Step_3/MoveItem/Salt_particle");cc.tween(x).delay(.5).call(function(){x.active=!0,x.getComponent(cc.ParticleSystem).resetSystem()}).delay(1.2).call(function(){x.active=!1,P.active=!0,i.toolEndParticles(P,0,0,.5),i.greatingsSound(.5)}).start(),t.getComponent(r.default).setActive(!1),o.active=!1,t.active=!1,A.active=!0,cc.tween(A).delay(2.8).by(.2,{x:-550}).by(.3,{x:50}).call(function(){i.node.getComponent(l.default).showArrow2(A)}).start()}}else if(9==e)o.getBoundingBoxToWorld().intersects(this.PanDummy.getBoundingBoxToWorld())&amp;&amp;(this.node.getComponent(l.default).hideArrow(),o.active=!1,t.active=!1,b.active=!0,b.position=cc.v3(-71.29,-90.178),this.scheduleOnce(function(){i.node.getComponent(l.default).showHand(b,g)},1));else if(10==e){t.x&lt;-244&amp;&amp;(t.x=-244),t.x&gt;-71&amp;&amp;(t.x=-71),t.y&lt;-90.17&amp;&amp;(t.y=-90.17),t.y&gt;-5.936&amp;&amp;(t.y=-5.936);var I=cc.find("Canvas/Step_3/Soup_View_Pan_Water"),E=cc.find("Canvas/Step_3/Mixture_1"),M=cc.find("Canvas/Step_3/Mixture_2"),k=cc.find("Canvas/Step_3/Mixture_3"),N=cc.find("Canvas/Step_3/Mixture_4"),H=cc.find("Canvas/Step_3/Mixture_5"),R=cc.find("Canvas/Step_3/Mixture_6"),L=cc.find("Canvas/Step_3/Mixture_7"),F=cc.find("Canvas/Step_3/Mixture_8"),j=cc.find("Canvas/Step_3/Mixture_9");I.opacity-=2,P.opacity-=4,w.opacity-=4,h.opacity-=4,v.opacity-=4,_.opacity-=4,g.opacity-=4,E.active=!0,E.opacity+=.5,20==E.opacity?M.active=!0:80==E.opacity?k.active=!0:110==E.opacity?N.active=!0:160==E.opacity?H.active=!0:200==E.opacity?R.active=!0:230==E.opacity?L.active=!0:240==E.opacity?F.active=!0:255==E.opacity&amp;&amp;(j.active=!0,t.active=!1,this.toolEndParticles(j,0,0,.3),this.greatingsSound(.3),s.getComponent(r.default).setActive(!0),this.node.getComponent(l.default).showArrow2(s))}else if(11==e&amp;&amp;(this.MoveDummy.position=cc.v3(o.x,o.y),this.BowlDummy.active=!0,this.MoveDummy.getBoundingBoxToWorld().intersects(this.BowlDummy.getBoundingBoxToWorld()))){u.getComponent(cc.Animation).playAdditive("FoodInBowl");var W=cc.find("Canvas/Step_3/MoveItem/Food_particle");cc.tween(W).delay(.8).call(function(){W.getComponent(cc.ParticleSystem).resetSystem()}).delay(.8).call(function(){W.active=!1,i.toolEndParticles(i.BowlDummy,0,0,0),i.greatingsSound()}).start(),t.getComponent(r.default).setActive(!1),o.active=!1,t.active=!1,cc.tween(t).delay(2.2).call(function(){cc.find("Canvas/Particles/Fallingstar").getComponent(cc.ParticleSystem).resetSystem(),c.default.getInstance().play("View_Done_Particle")}).delay(2.8).call(function(){var t=cc.find("Canvas/Step_1");u.active=!1,cc.game.off(r.TOOLPICKER.BEGAN,i.TouchBegan,i),cc.game.off(r.TOOLPICKER.MOVED,i.TouchMove,i),t.active=!0;var e=cc.find("Canvas/Step_1/Bowl"),n=cc.find("Canvas/Step_1/Bowl/Bowl_Soup");cc.tween(e).call(function(){n.active=!0,i.toolEndParticles(e),i.greatingsSound()}).delay(1).to(1,{position:cc.v3(-122.825,-291.07)}).call(function(){n.getComponent(cc.Animation).playAdditive("SoupDrink"),i.puppy.setAnimation(0,"idle_eating",!1),i.toolEndParticles(n,0,0,2.9),i.greatingsSound(2.9),i.puppy.addAnimation(0,"idle_Normal",!0)}).delay(3.2).by(.3,{x:-600}).call(function(){n.active=!1,t.getComponent(p.default).Step1_TouchOn()}).by(.1,{y:-300}).delay(.5).by(.3,{x:700}).by(.2,{x:-100}).call(function(){e.getComponent(r.default).setActive(!0),i.node.getComponent(l.default).showArrow2(e)}).start()}).start()}},e.prototype.TouchEnd=function(t,e){this.node.getComponent(l.default).hideBlinkHand(),this.node.getComponent(l.default).hideArrow(),this.node.getComponent(l.default).hideHand(),1==e?(this.soundPlay("item_back_to_place"),this.node.getComponent(l.default).showArrow2(t,-80)):2==e?(this.soundPlay("item_back_to_place"),this.node.getComponent(l.default).showArrow2(t)):3==e?(this.soundPlay("item_back_to_place"),this.node.getComponent(l.default).showArrow2(t)):4==e?(this.soundPlay("item_back_to_place"),this.node.getComponent(l.default).showArrow2(t)):5==e?(this.soundPlay("item_back_to_place"),this.node.getComponent(l.default).showArrow2(t)):6==e?(this.soundPlay("item_back_to_place"),this.node.getComponent(l.default).showArrow2(t)):7==e?(this.soundPlay("item_back_to_place"),this.node.getComponent(l.default).showArrow2(t)):8==e?(this.soundPlay("item_back_to_place"),this.node.getComponent(l.default).showArrow2(t)):9==e?(this.soundPlay("item_back_to_place"),this.node.getComponent(l.default).showArrow2(t)):11==e&amp;&amp;(this.MoveDummy.getBoundingBoxToWorld().intersects(this.BowlDummy.getBoundingBoxToWorld())||cc.tween(t).delay(.2).call(function(){cc.find("Canvas/Step_3/Pan_Front").active=!0;for(var t=1;t&lt;10;t++)cc.find("Canvas/Step_3/Mixture_"+t).active=!0}).start())},e.prototype.greatingsSound=function(t){var e=this;void 0===t&amp;&amp;(t=0),this.scheduleOnce(function(){1==e.counter3?(c.default.getInstance().play("Appriciation_good_job"),e.counter3=2):4==e.counter3?(c.default.getInstance().play("Appriciation_Superb"),e.counter3=5):6==e.counter3?(c.default.getInstance().play("Appriciation_Well_Done"),e.counter3=7):8==e.counter3?(c.default.getInstance().play("Appriciation_perfect"),e.counter3=1):e.counter3++},t)},e.prototype.soundPlay=function(t,e,n){void 0===e&amp;&amp;(e=0),void 0===n&amp;&amp;(n=0),0==n?cc.tween(this.soundPlay).delay(e).call(function(){c.default.getInstance().play(t)}).start():cc.tween(this.soundPlay).delay(e).call(function(){c.default.getInstance().play(t,!0)}).delay(n).call(function(){c.default.getInstance().stop(t)}).start()},e.prototype.toolEndParticles=function(t,e,n,o){void 0===e&amp;&amp;(e=0),void 0===n&amp;&amp;(n=0),void 0===o&amp;&amp;(o=0);var i=cc.find("Canvas/Particles/Tool_Complete").children[s.getRandomNumber(0,2)],a=s.getNodePosition(i,t);i.position=cc.v3(a.x+e,a.y+n),cc.tween(i).delay(o).call(function(){i.getComponent(cc.ParticleSystem).resetSystem(),c.default.getInstance().play("Sparkle")}).start()},a([h(cc.Node)],e.prototype,"PanDummy",void 0),a([h(cc.Node)],e.prototype,"MoveDummy",void 0),a([h(cc.Node)],e.prototype,"BowlDummy",void 0),a([h(sp.Skeleton)],e.prototype,"puppy",void 0),a([d],e)}(cc.Component);n.default=f,cc._RF.pop()},{"../../../Aoneup-lib/Scripts/AudioManager/AudioManager":"AudioManager","../../../Aoneup-lib/Scripts/HelperTools/ExportHelper":"ExportHelper","../../../Aoneup-lib/Scripts/ToolPicker/ToolPicker":"ToolPicker","../../Common/Script/HintAnimation":"HintAnimation","./ Step_1":" Step_1"}],Step_4:[function(t,e,n){"use strict";cc._RF.push(e,"74accl8ds1CBK3ecqTobm3l","Step_4");var o,i=this&amp;&amp;this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&amp;&amp;(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&amp;&amp;this.__decorate||function(t,e,n,o){var i,a=arguments.length,c=a&lt;3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s&gt;=0;s--)(i=t[s])&amp;&amp;(c=(a&lt;3?i(c):a&gt;3?i(e,n,c):i(e,n))||c);return a&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(e,n,c),c};Object.defineProperty(n,"__esModule",{value:!0});var c=t("../../../Aoneup-lib/Scripts/AudioManager/AudioManager"),s=t("../../../Aoneup-lib/Scripts/HelperTools/ExportHelper"),r=t("../../../Aoneup-lib/Scripts/ToolPicker/ToolPicker"),l=t("../../Common/Script/HintAnimation"),p=t("./ Step_1"),u=cc._decorator,d=u.ccclass,h=u.property,f=function(t){function e(){var e=null!==t&amp;&amp;t.apply(this,arguments)||this;return e.BowlDummy=null,e.MoveDummy=null,e.EggDummy=null,e.puppy=null,e.count=0,e.counter3=1,e}return i(e,t),e.prototype.onLoad=function(){var t=this,e=cc.find("Canvas/Step_4/SidePlate");cc.tween(e).delay(.5).by(.2,{x:-1050}).by(.3,{x:50}).call(function(){t.node.getComponent(l.default).showArrow2(cc.find("Canvas/Step_4/SidePlate/Egg"))}).start(),cc.game.on(r.TOOLPICKER.BEGAN,this.TouchBegan,this),cc.game.on(r.TOOLPICKER.MOVED,this.TouchMove,this),cc.game.on(r.TOOLPICKER.ENDED,this.TouchEnd,this)},e.prototype.start=function(){},e.prototype.TouchBegan=function(t,e){var n=this;this.node.getComponent(l.default).hideBlinkHand(),this.node.getComponent(l.default).hideArrow(),this.node.getComponent(l.default).hideHand();var o=cc.find("Canvas/Step_4"),i=cc.find("Canvas/Step_4/MoveItem/Mix_Bowl"),a=cc.find("Canvas/Step_4/Ovan/Door/Door1"),s=cc.find("Canvas/Step_4/Ovan/Progress"),u=cc.find("Canvas/Step_4/BowlTop"),d=cc.find("Canvas/Step_4/Ovan/Ovan_OnOffBtn"),h=cc.find("Canvas/Step_4/Ovan/Ovan_OnOffBtn/Off"),f=cc.find("Canvas/Step_4/Ovan/Ovan_OnOffBtn/On"),g=cc.find("Canvas/Step_4/Ovan/Ovan_Bowl"),y=cc.find("Canvas/Step_4/Ovan"),v=cc.find("Canvas/Step_4/Fan"),m=cc.find("Canvas/Step_4/Fan/Fan_OnOffBtn"),_=cc.find("Canvas/Step_4/Fan/Fan_OnOffBtn/Off"),S=cc.find("Canvas/Step_4/Fan/Fan_OnOffBtn/On");cc.game.on(r.TOOLPICKER.MOVED,this.TouchMove,this),1==e?(this.soundPlay("item_pick_up"),this.node.getComponent(l.default).showArrow2(this.EggDummy)):2==e?(this.soundPlay("item_pick_up"),this.node.getComponent(l.default).showArrow2(u)):3==e?(this.soundPlay("item_pick_up"),this.node.getComponent(l.default).showArrow2(u)):4==e?(this.soundPlay("item_pick_up"),this.node.getComponent(l.default).showArrow2(u)):5==e?this.soundPlay("item_pick_up"):6==e?(this.soundPlay("item_pick_up"),this.toolEndParticles(y),this.greatingsSound(),o.getComponent(cc.Animation).play("Door"),a.getComponent(r.default).setActive(!1),i.getComponent(r.default).setActive(!0),this.scheduleOnce(function(){n.node.getComponent(l.default).showArrow2(i)},1)):7==e?(this.soundPlay("item_pick_up"),o.getComponent(cc.Animation).play("MoveInOven"),cc.tween(d).delay(1.7).call(function(){d.getComponent(r.default).setActive(!0),n.node.getComponent(l.default).showArrow2(d)}).start(),t.getComponent(r.default).setActive(!1)):8==e?(this.soundPlay("item_pick_up"),0==this.count?(d.getComponent(cc.Sprite).spriteFrame=h.getComponent(cc.Sprite).spriteFrame,d.getComponent(r.default).setActive(!1),cc.tween(s).repeat(34,cc.tween(s).delay(.1).call(function(){s.getComponent(cc.Sprite).fillRange+=.03})).start(),cc.tween(d).delay(3.4).call(function(){n.soundPlay("oven_ready")}).delay(.3).call(function(){n.greatingsSound(),d.getComponent(r.default).setActive(!0),n.node.getComponent(l.default).showArrow2(d)}).start(),this.count=1):1==this.count&amp;&amp;(this.count=0,d.getComponent(cc.Sprite).spriteFrame=f.getComponent(cc.Sprite).spriteFrame,o.getComponent(cc.Animation).play("Door"),d.getComponent(r.default).setActive(!1),this.toolEndParticles(g),this.greatingsSound(),cc.tween(g).delay(1).call(function(){g.getComponent(r.default).setActive(!0),n.node.getComponent(l.default).showArrow2(g),i.position=g.position,i.getChildByName("Soup_Bowl_Particle").active=!0}).start())):9==e?(this.soundPlay("item_pick_up"),t.active=!1,i.active=!0,cc.tween(i).to(.5,{position:cc.v3(272.145,-403.316)}).delay(1.2).to(.5,{position:cc.v3(-246.273,-215.757),scale:1.352}).start(),cc.tween(y).delay(1).by(.2,{x:-1e3}).call(function(){n.soundPlay("ovan_running")}).start(),cc.tween(v).delay(2.5).by(.2,{x:-1100}).by(.2,{x:100}).call(function(){n.node.getComponent(l.default).showArrow2(m)}).start()):10==e&amp;&amp;(this.soundPlay("item_pick_up"),0==this.count?(m.getComponent(cc.Sprite).spriteFrame=S.getComponent(cc.Sprite).spriteFrame,o.getComponent(cc.Animation).play("FanOnOff"),t.getComponent(r.default).setActive(!1),cc.tween(t).delay(3).call(function(){t.getComponent(r.default).setActive(!0),n.toolEndParticles(i),i.getChildByName("Soup_Bowl_Particle").active=!1,n.greatingsSound(),n.node.getComponent(l.default).showArrow2(m)}).start(),this.count=1):1==this.count&amp;&amp;(m.getComponent(cc.Sprite).spriteFrame=_.getComponent(cc.Sprite).spriteFrame,cc.find("Canvas/Step_4/Particles/Fan_Air").active=!1,o.getComponent(cc.Animation).stop("FanOnOff"),cc.tween(v).delay(1.5).by(.2,{x:1100}).start(),cc.tween(t).delay(.8).call(function(){cc.find("Canvas/Particles/Fallingstar").getComponent(cc.ParticleSystem).resetSystem(),c.default.getInstance().play("View_Done_Particle")}).delay(1.5).call(function(){var t=cc.find("Canvas/Step_1"),e=cc.find("Canvas/Step_1/Bowl"),i=cc.find("Canvas/Step_1/Bowl/EggSoup_2");o.active=!1,cc.game.off(r.TOOLPICKER.BEGAN,n.TouchBegan,n),cc.game.off(r.TOOLPICKER.MOVED,n.TouchMove,n),t.active=!0,cc.tween(e).call(function(){i.active=!0,n.toolEndParticles(e),n.greatingsSound()}).delay(1).to(1,{position:cc.v3(-122.825,-291.07)}).call(function(){i.getComponent(cc.Animation).playAdditive("SoupDrink"),n.puppy.setAnimation(0,"idle_eating",!1),n.puppy.addAnimation(0,"idle_Normal",!0),n.toolEndParticles(e,0,0,1.9),n.greatingsSound(2)}).delay(3.2).by(.3,{x:-600}).call(function(){i.active=!1,t.getComponent(p.default).Step1_TouchOn()}).by(.1,{y:-300}).delay(1).call(function(){cc.find("Canvas/nextBtn").active=!0,n.puppy.setAnimation(0,"idle_movement_1",!1),cc.find("Canvas/Particles/Fallingstar").getComponent(cc.ParticleSystem).resetSystem(),c.default.getInstance().play("View_Done_Particle")}).start()}).start()))},e.prototype.TouchMove=function(t,e,n,o){var i=this,a=cc.find("Canvas/Step_4"),c=cc.find("Canvas/Step_4/WaterJug"),s=cc.find("Canvas/Step_4/Salt"),p=cc.find("Canvas/Step_4/SidePlate"),u=cc.find("Canvas/Step_4/Spoon"),d=cc.find("Canvas/Step_4/UseItem/Spoon"),h=cc.find("Canvas/Step_4/UseItem/Salt_powder"),f=cc.find("Canvas/Step_4/BowlBack"),g=cc.find("Canvas/Step_4/BowlTop"),y=cc.find("Canvas/Step_4/Ovan"),v=cc.find("Canvas/Step_4/MoveItem/Mix_Bowl"),m=cc.find("Canvas/Step_4/Ovan/Progress");if(1==e)this.MoveDummy.position=cc.v3(o.x,o.y-100),this.MoveDummy.getBoundingBoxToWorld().intersects(this.EggDummy.getBoundingBoxToWorld())&amp;&amp;(this.node.getComponent(l.default).hideArrow(),a.getComponent(cc.Animation).play("Egg"),o.active=!1,t.active=!1,t.getComponent(r.default).setActive(!1),this.toolEndParticles(cc.find("Canvas/Step_4/EggYolk"),0,20,2.7),this.greatingsSound(2.6),cc.tween(p).delay(1).by(.2,{x:1e3}).start(),cc.tween(c).delay(3).by(.2,{x:-1050}).by(.3,{x:50}).call(function(){i.node.getComponent(l.default).showArrow2(c)}).start());else if(2==e)this.MoveDummy.position=cc.v3(o.x,o.y),this.MoveDummy.getBoundingBoxToWorld().intersects(this.BowlDummy.getBoundingBoxToWorld())&amp;&amp;(this.node.getComponent(l.default).hideArrow(),a.getComponent(cc.Animation).play("Water"),o.active=!1,t.active=!1,t.getComponent(r.default).setActive(!1),this.toolEndParticles(f,0,0,2.7),this.greatingsSound(2.6),cc.tween(s).delay(3).by(.2,{x:-1050}).by(.3,{x:50}).call(function(){i.node.getComponent(l.default).showArrow2(s)}).start());else if(3==e)this.MoveDummy.position=cc.v3(o.x,o.y),this.MoveDummy.getBoundingBoxToWorld().intersects(this.BowlDummy.getBoundingBoxToWorld())&amp;&amp;(this.node.getComponent(l.default).hideArrow(),a.getComponent(cc.Animation).play("Salt"),t.active=!1,t.getComponent(r.default).setActive(!1),cc.tween(h).delay(1.5).call(function(){h.active=!0}).start(),this.toolEndParticles(f,0,0,2.7),this.greatingsSound(2.6),cc.tween(u).delay(3).by(.2,{x:-1050}).by(.3,{x:50}).call(function(){i.node.getComponent(l.default).showArrow2(u)}).start());else if(4==e)this.MoveDummy.position=cc.v3(o.x,o.y),this.MoveDummy.getBoundingBoxToWorld().intersects(this.BowlDummy.getBoundingBoxToWorld())&amp;&amp;(this.node.getComponent(l.default).hideArrow(),o.active=!1,t.active=!1,d.active=!0,d.position=cc.v3(-1392.622,337.124),this.scheduleOnce(function(){i.node.getComponent(l.default).showHand(d,cc.find("Canvas/Step_4/SpoonDummy"))},.8));else if(5==e){this.node.getComponent(l.default).hideHand(),t.x&lt;-1570&amp;&amp;(t.x=-1570),t.x&gt;-1350&amp;&amp;(t.x=-1350),t.y&lt;309&amp;&amp;(t.y=309),t.y&gt;395&amp;&amp;(t.y=395);var _=cc.find("Canvas/Step_4/UseItem/Water"),S=cc.find("Canvas/Step_4/UseItem/Egg"),C=cc.find("Canvas/Step_4/UseItem/Mix1"),w=cc.find("Canvas/Step_4/UseItem/Mix2"),P=cc.find("Canvas/Step_4/UseItem/Mix3"),A=cc.find("Canvas/Step_4/UseItem/Mix4");_.opacity-=5,S.opacity-=1,h.opacity-=5,150==_.opacity&amp;&amp;(C.active=!0),200==S.opacity&amp;&amp;(w.active=!0,C.active=!1),100==S.opacity&amp;&amp;(w.active=!1,P.active=!0),0==S.opacity&amp;&amp;(d.active=!1,P.active=!1,A.active=!0,this.toolEndParticles(A),this.greatingsSound(),cc.tween(v).delay(.5).call(function(){A.active=!1,f.active=!1,g.active=!1,a.getComponent(cc.Animation).play("MoveBowl")}).start(),cc.tween(y).delay(.8).by(.2,{x:1e3}).delay(.3).call(function(){i.node.getComponent(l.default).showBlinkHand(cc.find("Canvas/Step_4/Ovan/Door/Door1"))}).start(),this.soundPlay("ovan_running",.8),m.getComponent(cc.Sprite).fillRange=0)}},e.prototype.TouchEnd=function(t,e){this.node.getComponent(l.default).hideBlinkHand(),this.node.getComponent(l.default).hideArrow(),this.node.getComponent(l.default).hideHand(),1==e?(this.soundPlay("item_back_to_place"),this.node.getComponent(l.default).showArrow2(t)):2==e?(this.soundPlay("item_back_to_place"),this.node.getComponent(l.default).showArrow2(t)):3==e?(this.soundPlay("item_back_to_place"),this.node.getComponent(l.default).showArrow2(t)):4==e?(this.soundPlay("item_back_to_place"),this.node.getComponent(l.default).showArrow2(t)):5==e?this.soundPlay("item_back_to_place"):6==e?(this.soundPlay("item_back_to_place"),this.node.getComponent(l.default).showArrow2(t)):7==e?(this.soundPlay("item_back_to_place"),this.node.getComponent(l.default).showArrow2(t)):8==e?(this.soundPlay("item_back_to_place"),this.node.getComponent(l.default).showArrow2(t)):9==e?(this.soundPlay("item_back_to_place"),this.node.getComponent(l.default).showArrow2(t)):10==e&amp;&amp;(this.soundPlay("item_back_to_place"),this.node.getComponent(l.default).showArrow2(t))},e.prototype.greatingsSound=function(t){var e=this;void 0===t&amp;&amp;(t=0),this.scheduleOnce(function(){1==e.counter3?(c.default.getInstance().play("Appriciation_good_job"),e.counter3=2):4==e.counter3?(c.default.getInstance().play("Appriciation_Superb"),e.counter3=5):6==e.counter3?(c.default.getInstance().play("Appriciation_Well_Done"),e.counter3=7):8==e.counter3?(c.default.getInstance().play("Appriciation_perfect"),e.counter3=1):e.counter3++},t)},e.prototype.toolEndParticles=function(t,e,n,o){void 0===e&amp;&amp;(e=0),void 0===n&amp;&amp;(n=0),void 0===o&amp;&amp;(o=0);var i=cc.find("Canvas/Particles/Tool_Complete").children[s.getRandomNumber(0,2)],a=s.getNodePosition(i,t);i.position=cc.v3(a.x+e,a.y+n),cc.tween(i).delay(o).call(function(){i.getComponent(cc.ParticleSystem).resetSystem(),c.default.getInstance().play("Sparkle")}).start()},e.prototype.soundPlay=function(t,e,n){void 0===e&amp;&amp;(e=0),void 0===n&amp;&amp;(n=0),0==n?cc.tween(this.soundPlay).delay(e).call(function(){c.default.getInstance().play(t)}).start():cc.tween(this.soundPlay).delay(e).call(function(){c.default.getInstance().play(t,!0)}).delay(n).call(function(){c.default.getInstance().stop(t)}).start()},a([h(cc.Node)],e.prototype,"BowlDummy",void 0),a([h(cc.Node)],e.prototype,"MoveDummy",void 0),a([h(cc.Node)],e.prototype,"EggDummy",void 0),a([h(sp.Skeleton)],e.prototype,"puppy",void 0),a([d],e)}(cc.Component);n.default=f,cc._RF.pop()},{"../../../Aoneup-lib/Scripts/AudioManager/AudioManager":"AudioManager","../../../Aoneup-lib/Scripts/HelperTools/ExportHelper":"ExportHelper","../../../Aoneup-lib/Scripts/ToolPicker/ToolPicker":"ToolPicker","../../Common/Script/HintAnimation":"HintAnimation","./ Step_1":" Step_1"}],ToolPicker:[function(t,e,n){"use strict";cc._RF.push(e,"d827cHMcSBKPbc7P1L/63Wj","ToolPicker");var o,i=this&amp;&amp;this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&amp;&amp;(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&amp;&amp;this.__decorate||function(t,e,n,o){var i,a=arguments.length,c=a&lt;3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s&gt;=0;s--)(i=t[s])&amp;&amp;(c=(a&lt;3?i(c):a&gt;3?i(e,n,c):i(e,n))||c);return a&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(e,n,c),c},c=this&amp;&amp;this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))(function(i,a){function c(t){try{r(o.next(t))}catch(e){a(e)}}function s(t){try{r(o.throw(t))}catch(e){a(e)}}function r(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(c,s)}r((o=o.apply(t,e||[])).next())})},s=this&amp;&amp;this.__generator||function(t,e){var n,o,i,a,c={label:0,sent:function(){if(1&amp;i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&amp;&amp;(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return r([t,e])}}function r(a){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,o&amp;&amp;(i=2&amp;a[0]?o.return:a[0]?o.throw||((i=o.return)&amp;&amp;i.call(o),0):o.next)&amp;&amp;!(i=i.call(o,a[1])).done)return i;switch(o=0,i&amp;&amp;(a=[2&amp;a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++,o=a[1],a=[0];continue;case 7:a=c.ops.pop(),c.trys.pop();continue;default:if(!(i=(i=c.trys).length&gt;0&amp;&amp;i[i.length-1])&amp;&amp;(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&amp;&amp;(!i||a[1]&gt;i[0]&amp;&amp;a[1]&lt;i[3])){c.label=a[1];break}if(6===a[0]&amp;&amp;c.label&lt;i[1]){c.label=i[1],i=a;break}if(i&amp;&amp;c.label&lt;i[2]){c.label=i[2],c.ops.push(a);break}i[2]&amp;&amp;c.ops.pop(),c.trys.pop();continue}a=e.call(t,c)}catch(s){a=[6,s],o=0}finally{n=i=0}if(5&amp;a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}};Object.defineProperty(n,"__esModule",{value:!0}),n.SOUND_TYPE=n.TOOL_FIXED_TYPE=n.TOOLPICKER=void 0;var r,l,p=t("../AudioManager/AudioManager"),u=t("../HelperTools/ExportHelper"),d=t("../Promotion/AdManager"),h=cc._decorator,f=h.ccclass,g=h.property,y=h.disallowMultiple,v=h.requireComponent,m=h.executeInEditMode;(function(t){t.BEGAN="TOOLPICKER_TOUCH_BEGAN",t.MOVED="TOOLPICKER_TOUCH_MOVED",t.ENDED="TOOLPICKER_TOUCH_ENDED",t.FIXED="TOOLPICKER_TOUCH_FIXED"})(r=n.TOOLPICKER||(n.TOOLPICKER={})),function(t){t[t.ON_BEGAN=0]="ON_BEGAN",t[t.ON_MOVE=1]="ON_MOVE",t[t.ON_END=2]="ON_END"}(l=n.TOOL_FIXED_TYPE||(n.TOOL_FIXED_TYPE={})),n.SOUND_TYPE=cc.Enum({ON_PICK:1,ON_END:2});var _=function(t){function e(){var e=null!==t&amp;&amp;t.apply(this,arguments)||this;return e.isDrawingOn=!1,e.isSelfNodeMove=!0,e.pickSound="",e.playPickSoundOnlyOnce=!0,e.isTouchActive=!0,e.soundOnType=n.SOUND_TYPE.ON_PICK,e.ToolID=0,e.childHide=!0,e.activeAgain=!0,e.MoveItem=null,e.ToolDestinationType=l.ON_BEGAN,e.destinationNode=null,e.shouldToolMoveBackToPosition=!0,e.isPositionChanged=!1,e.initPosition=null,e.MoveinitPosition=null,e.DefaultinitPosition=null,e.DestinitPosition=null,e.TapinitPosition=null,e.isTapObject=!1,e.isExitTool=!1,e.isSwipe=!1,e.BeganPoint=1e4,e.isSoundPlayed=!1,e.startX=0,e.startY=0,e.dist=0,e.threshold=50,e.allowedTime=500,e.elapsedTime=0,e.startTime=0,e.restraint=100,e.swipedir="none",e.distance=function(t,e,n,o){return Math.hypot(n-t,o-e)},e.TapSound="",e.SwipeSound="",e.isPick=!1,e}return i(e,t),Object.defineProperty(e.prototype,"typenode",{get:function(){return this.isSelfNodeMove},set:function(t){this.isSelfNodeMove=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"moveitem",{get:function(){return this.MoveItem},set:function(t){this.MoveItem=t},enumerable:!1,configurable:!0}),e.prototype.onLoad=function(){this.initPosition=this.node.position,this.DefaultinitPosition=this.node.position,this.MoveItem&amp;&amp;(this.MoveinitPosition=this.MoveItem.position),this.registerEvents()},e.prototype.start=function(){},e.prototype.registerEvents=function(){this.node.on(cc.Node.EventType.TOUCH_START,this.TouchStart,this),this.node.on(cc.Node.EventType.TOUCH_MOVE,this.TouchMove,this),this.node.on(cc.Node.EventType.TOUCH_END,this.TouchEnd,this),this.node.on(cc.Node.EventType.TOUCH_CANCEL,this.TouchEnd,this)},e.prototype.UpdateInitPosition=function(){this.initPosition=this.node.position,this.DefaultinitPosition=this.node.position,this.MoveItem&amp;&amp;(this.MoveinitPosition=this.MoveItem.position)},e.prototype.SwipeAction=function(t){this.node.getChildByName("Ads")&amp;&amp;this.ShowAds(this.node)||(this.MoveItem?(this.childHide?this.node.children[0].opacity=0:this.node.opacity=0,this.MoveItem.opacity=255,this.MoveItem.active=!0,this.MoveItem.position=cc.v3(this.MoveItem.parent.convertToNodeSpaceAR(t.getLocation())),this.TapinitPosition=this.MoveItem.position,this.MoveinitPosition=this.MoveItem.parent.convertToNodeSpaceAR(u.getWorldPosition(this.node))):(this.node.opacity=255,this.node.active=!0,this.node.position=cc.v3(this.node.parent.convertToNodeSpaceAR(t.getLocation())),this.TapinitPosition=this.node.position,this.MoveinitPosition=this.node.position),cc.game.emit(r.BEGAN,this.node,this.ToolID,t.getLocation(),this.MoveItem,this.destinationNode),"content"==this.node.parent.name&amp;&amp;this.node.parent.parent.parent&amp;&amp;this.node.parent.parent.parent.getComponent(cc.ScrollView)&amp;&amp;(this.node.parent.parent.parent.getComponent(cc.ScrollView).enabled=!1),this.isPick=!0)},e.prototype.TouchStart=function(t){if(this.isTouchActive&amp;&amp;this.node.active&amp;&amp;255==this.node.opacity)if(this.ToolDestinationType!=l.ON_BEGAN)this.DefaultinitPosition=this.node.position,this.isPositionChanged=!0,this.isTapObject=!0,this.isSwipe=!1,this.BeganPoint=t.getLocationX(),this.dist=0,this.swipedir="none",this.startX=t.getLocationX(),this.startY=t.getLocationY(),this.startTime=(new Date).getTime(),""!=this.pickSound&amp;&amp;this.soundOnType==n.SOUND_TYPE.ON_PICK&amp;&amp;(this.isSoundPlayed&amp;&amp;this.playPickSoundOnlyOnce||(this.isSoundPlayed=!0,p.default.getInstance().play(this.pickSound,!1))),"content"!=this.node.parent.name?this.SwipeAction(t):this.isSwipe=!0;else{if(this.node.getChildByName("Ads")&amp;&amp;this.ShowAds(this.node))return;cc.game.emit(r.BEGAN,this.node,this.ToolID,t.getLocation(),this.MoveItem,this.destinationNode)}},e.prototype.TouchMove=function(t){var e=this;if(0!=this.isTapObject&amp;&amp;this.isTouchActive&amp;&amp;this.isTouchActive){if(this.isSwipe){var n=t.getLocationX()-this.startX,o=t.getLocationY()-this.startY;if((new Date).getTime()-this.startTime&lt;=this.allowedTime&amp;&amp;(Math.abs(n)&gt;=this.threshold&amp;&amp;Math.abs(o)&lt;=this.restraint?this.swipedir=n&lt;0?"left":"right":Math.abs(o)&gt;=this.threshold&amp;&amp;Math.abs(n)&lt;=this.restraint&amp;&amp;(this.swipedir=o&lt;0?"up":"down")),"left"==this.swipedir)this.isSwipe=!1,this.SwipeAction(t);else{if("right"!=this.swipedir)return;this.isSwipe=!1,this.SwipeAction(t)}}if(this.isSelfNodeMove&amp;&amp;this.MoveItem?this.MoveItem.position=cc.v3(this.MoveItem.parent.convertToNodeSpaceAR(t.getLocation())):this.node.position=cc.v3(this.node.parent.convertToNodeSpaceAR(t.getLocation())),this.destinationNode&amp;&amp;this.ToolDestinationType==l.ON_MOVE){var i=u.getWorldPosition(this.destinationNode);if(Math.sqrt(Math.pow(i.x-t.getLocationX(),2)+Math.pow(i.y-t.getLocationY(),2))&lt;.5*this.destinationNode.getContentSize().width*Math.abs(this.destinationNode.scaleX)){this.isTapObject=!1;var a=this.moveitem;null==a&amp;&amp;(a=this.node);var c=a.parent.convertToNodeSpaceAR(i);return void cc.tween(a).to(.2,{position:c}).call(function(){e.resetComponent(),e.setActive(!1),e.destinationNode.active=!0,e.node.active=!1,cc.game.emit(r.FIXED,e.node,e.ToolID,t.getLocation(),e.MoveItem,e.destinationNode)}).set({position:cc.v3(454545,454545)}).start()}}cc.game.emit(r.MOVED,this.node,this.ToolID,t.getLocation(),this.MoveItem,this.destinationNode)}},e.prototype.TouchEnd=function(t){var e=this;if(0!=this.isTapObject&amp;&amp;this.isTouchActive){if(""!=this.pickSound&amp;&amp;this.soundOnType==n.SOUND_TYPE.ON_END&amp;&amp;(this.isSoundPlayed&amp;&amp;this.playPickSoundOnlyOnce||(this.isSoundPlayed=!0,p.default.getInstance().play(this.pickSound,!1))),this.node.getChildByName("Ads")){var o=t.getLocationX()-this.startX,i=t.getLocationY()-this.startY;if(this.calculateDistance(t.getLocationX(),t.getLocationY(),this.startX,this.startY)&lt;10&amp;&amp;this.ShowAds(this.node))return}if(this.isSwipe)if(o=t.getLocationX()-this.startX,i=t.getLocationY()-this.startY,(new Date).getTime()-this.startTime&lt;=this.allowedTime&amp;&amp;(Math.abs(o)&gt;=this.threshold&amp;&amp;Math.abs(i)&lt;=this.restraint?this.swipedir=o&lt;0?"left":"right":Math.abs(i)&gt;=this.threshold&amp;&amp;Math.abs(o)&lt;=this.restraint&amp;&amp;(this.swipedir=i&lt;0?"up":"down")),"left"==this.swipedir)this.isSwipe=!1,this.SwipeAction(t);else{if("right"!=this.swipedir)return;this.isSwipe=!1,this.SwipeAction(t)}if(this.isTapObject=!1,"content"==this.node.parent.name&amp;&amp;this.node.parent.parent.parent&amp;&amp;this.node.parent.parent.parent.getComponent(cc.ScrollView)&amp;&amp;(this.node.parent.parent.parent.getComponent(cc.ScrollView).enabled=!0),this.isTouchActive&amp;&amp;this.isPositionChanged){this.isPositionChanged=!1;var a=this.MoveItem,c=this.MoveinitPosition;if(null==a&amp;&amp;(a=this.node,c=this.DefaultinitPosition),this.destinationNode&amp;&amp;this.ToolDestinationType==l.ON_END){var s=u.getWorldPosition(this.destinationNode);if(Math.sqrt(Math.pow(s.x-t.getLocationX(),2)+Math.pow(s.y-t.getLocationY(),2))&lt;.5*this.destinationNode.getContentSize().width*this.destinationNode.scaleX){this.isTapObject=!1;var d=this.moveitem;null==d&amp;&amp;(d=this.node);var h=d.parent.convertToNodeSpaceAR(s);return void cc.tween(d).to(.01,{position:h}).call(function(){e.resetComponent(),e.destinationNode.active=!0,e.activeAgain?(e.node.active=!0,e.node.opacity=255,e.childHide&amp;&amp;(e.node.children[0].opacity=255),e.setActive(!0)):(e.setActive(!1),e.node.active=!1),cc.game.emit(r.FIXED,e.node,e.ToolID,t.getLocation(),e.MoveItem,e.destinationNode)}).set({position:cc.v3(454545,454545)}).start()}}this.shouldToolMoveBackToPosition?cc.tween(a).to(.2,{position:c},{easing:cc.easing.backOut}).call(function(){e.MoveItem?(e.MoveItem.active=!1,e.MoveinitPosition&amp;&amp;(e.MoveItem.position=e.DefaultinitPosition)):e.DefaultinitPosition&amp;&amp;(e.node.position=e.DefaultinitPosition),e.node.active=!0,e.node.opacity=255,e.childHide&amp;&amp;(e.node.children[0].opacity=255)}).start():(this.node.position=cc.v3(this.node.parent.convertToNodeSpaceAR(t.getPreviousLocation())),this.MoveItem&amp;&amp;(this.MoveItem.active=!1),this.node.active=!0,this.node.opacity=255)}cc.game.emit(r.ENDED,this.node,this.ToolID,t.getLocation(),this.MoveItem,this.destinationNode)}},e.prototype.calculateDistance=function(t,e,n,o){var i=n-t,a=o-e;return Math.sqrt(i*i+a*a)},e.prototype.ShowAds=function(t){return c(this,void 0,void 0,function(){return s(this,function(e){switch(e.label){case 0:return t&amp;&amp;t.getChildByName("Ads")?(this.resetComponent(),[4,d.default.getInstance().requestRewardAds(t.getChildByName("Ads"))]):[3,2];case 1:return e.sent()&amp;&amp;t.removeComponent(cc.Button),[2,!0];case 2:return[2,!1]}})})},e.prototype.resetComponent=function(){this.MoveItem&amp;&amp;(this.MoveItem.active=!1,cc.Tween.stopAllByTarget(this.MoveItem)),cc.Tween.stopAllByTarget(this.node),this.isTapObject=!1,this.node.opacity=255,this.node.active=!0,this.node.position=this.DefaultinitPosition,this.MoveItem&amp;&amp;(this.MoveItem.position=this.MoveinitPosition),this.isTouchActive=!0},e.prototype.setActive=function(t){t?(this.node.opacity=255,this.isTouchActive=!0):(this.node.opacity=254,this.isTouchActive=!1)},a([g],e.prototype,"pickSound",void 0),a([g],e.prototype,"playPickSoundOnlyOnce",void 0),a([g()],e.prototype,"isTouchActive",void 0),a([g({type:n.SOUND_TYPE})],e.prototype,"soundOnType",void 0),a([g({type:cc.Integer})],e.prototype,"ToolID",void 0),a([g({displayName:"Move Node"})],e.prototype,"typenode",null),a([g],e.prototype,"childHide",void 0),a([g],e.prototype,"activeAgain",void 0),a([g({type:cc.Node,visible:!1})],e.prototype,"MoveItem",void 0),a([g({type:cc.Node,visible:function(){return this.isSelfNodeMove},displayName:"MoveItem"})],e.prototype,"moveitem",null),a([g({type:cc.Enum(l)})],e.prototype,"ToolDestinationType",void 0),a([g(cc.Node)],e.prototype,"destinationNode",void 0),a([g],e.prototype,"shouldToolMoveBackToPosition",void 0),a([f,y(),m(),v(cc.Sprite)],e)}(cc.Component);n.default=_,cc._RF.pop()},{"../AudioManager/AudioManager":"AudioManager","../HelperTools/ExportHelper":"ExportHelper","../Promotion/AdManager":"AdManager"}],ToolWithDrawing:[function(t,e,n){"use strict";cc._RF.push(e,"b4f36DMjAxK+5mQ98HdJgNI","ToolWithDrawing");var o,i=this&amp;&amp;this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&amp;&amp;(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&amp;&amp;this.__decorate||function(t,e,n,o){var i,a=arguments.length,c=a&lt;3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s&gt;=0;s--)(i=t[s])&amp;&amp;(c=(a&lt;3?i(c):a&gt;3?i(e,n,c):i(e,n))||c);return a&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(e,n,c),c},c=this&amp;&amp;this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))(function(i,a){function c(t){try{r(o.next(t))}catch(e){a(e)}}function s(t){try{r(o.throw(t))}catch(e){a(e)}}function r(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(c,s)}r((o=o.apply(t,e||[])).next())})},s=this&amp;&amp;this.__generator||function(t,e){var n,o,i,a,c={label:0,sent:function(){if(1&amp;i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&amp;&amp;(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return r([t,e])}}function r(a){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,o&amp;&amp;(i=2&amp;a[0]?o.return:a[0]?o.throw||((i=o.return)&amp;&amp;i.call(o),0):o.next)&amp;&amp;!(i=i.call(o,a[1])).done)return i;switch(o=0,i&amp;&amp;(a=[2&amp;a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++,o=a[1],a=[0];continue;case 7:a=c.ops.pop(),c.trys.pop();continue;default:if(!(i=(i=c.trys).length&gt;0&amp;&amp;i[i.length-1])&amp;&amp;(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&amp;&amp;(!i||a[1]&gt;i[0]&amp;&amp;a[1]&lt;i[3])){c.label=a[1];break}if(6===a[0]&amp;&amp;c.label&lt;i[1]){c.label=i[1],i=a;break}if(i&amp;&amp;c.label&lt;i[2]){c.label=i[2],c.ops.push(a);break}i[2]&amp;&amp;c.ops.pop(),c.trys.pop();continue}a=e.call(t,c)}catch(s){a=[6,s],o=0}finally{n=i=0}if(5&amp;a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}};Object.defineProperty(n,"__esModule",{value:!0}),n.TOOL_FIXED_TYPE=n.TOOLPICKER=void 0;var r,l=t("../Drawing/UserDrawing"),p=t("../HelperTools/ExportHelper"),u=t("../Promotion/AdManager"),d=cc._decorator,h=d.ccclass,f=d.property,g=d.disallowMultiple,y=d.requireComponent,v=d.executeInEditMode;(function(t){t.BEGAN="TOOLPICKER_TOUCH_BEGAN",t.MOVED="TOOLPICKER_TOUCH_MOVED",t.ENDED="TOOLPICKER_TOUCH_ENDED",t.FIXED="TOOLPICKER_TOUCH_FIXED"})(r=n.TOOLPICKER||(n.TOOLPICKER={})),function(t){t[t.ON_MOVE=1]="ON_MOVE",t[t.ON_END=2]="ON_END"}(n.TOOL_FIXED_TYPE||(n.TOOL_FIXED_TYPE={}));var m=function(t){function e(){var e=null!==t&amp;&amp;t.apply(this,arguments)||this;return e.isDrawingOn=!1,e.isSelfNodeMove=!0,e.isTouchActive=!0,e.ToolID=0,e.childHide=!1,e.MoveItem=null,e.isDrawingEnable=!1,e.drawing=[],e.isPositionChanged=!1,e.initPosition=null,e.MoveinitPosition=null,e.DefaultinitPosition=null,e.DestinitPosition=null,e.TapinitPosition=null,e.isTapObject=!1,e.isExitTool=!1,e.isSwipe=!1,e.BeganPoint=1e4,e.startX=0,e.startY=0,e.dist=0,e.threshold=50,e.allowedTime=500,e.elapsedTime=0,e.startTime=0,e.restraint=100,e.swipedir="none",e.distance=function(t,e,n,o){return Math.hypot(n-t,o-e)},e.TapSound="",e.SwipeSound="",e.isPick=!1,e}return i(e,t),Object.defineProperty(e.prototype,"typenode",{get:function(){return this.isSelfNodeMove},set:function(t){this.isSelfNodeMove=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"moveitem",{get:function(){return this.MoveItem},set:function(t){this.MoveItem=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this.isDrawingEnable},set:function(t){this.isDrawingEnable=t,this.setType(t)},enumerable:!1,configurable:!0}),e.prototype.setType=function(t){this.isDrawingOn=t},Object.defineProperty(e.prototype,"drawing1",{get:function(){return this.drawing},set:function(t){this.drawing=t},enumerable:!1,configurable:!0}),e.prototype.onLoad=function(){this.initPosition=this.node.position,this.DefaultinitPosition=this.node.position,this.MoveItem&amp;&amp;(this.MoveinitPosition=this.MoveItem.position),this.registerEvents()},e.prototype.start=function(){},e.prototype.registerEvents=function(){this.node.on(cc.Node.EventType.TOUCH_START,this.TouchStart,this),this.node.on(cc.Node.EventType.TOUCH_MOVE,this.TouchMove,this),this.node.on(cc.Node.EventType.TOUCH_END,this.TouchEnd,this),this.node.on(cc.Node.EventType.TOUCH_CANCEL,this.TouchEnd,this)},e.prototype.UpdateInitPosition=function(){this.initPosition=this.node.position,this.DefaultinitPosition=this.node.position,this.MoveItem&amp;&amp;(this.MoveinitPosition=this.MoveItem.position)},e.prototype.SwipeAction=function(t){if(!this.node.getChildByName("Ads")||!this.ShowAds(this.node)){if(this.MoveItem?(this.childHide?this.node.children[0].opacity=0:this.node.opacity=0,this.MoveItem.opacity=255,this.MoveItem.active=!0,this.MoveItem.position=cc.v3(this.MoveItem.parent.convertToNodeSpaceAR(t.getLocation())),this.TapinitPosition=this.MoveItem.position,this.MoveinitPosition=this.MoveItem.parent.convertToNodeSpaceAR(p.getWorldPosition(this.node))):(this.node.opacity=255,this.node.active=!0,this.node.position=cc.v3(this.node.parent.convertToNodeSpaceAR(t.getLocation())),this.TapinitPosition=this.node.position,this.MoveinitPosition=this.node.position),cc.Tween.stopAllByTarget(this.node),cc.game.emit(r.BEGAN,this.node,this.ToolID,t.getLocation(),this.MoveItem,null),"content"==this.node.parent.name&amp;&amp;this.node.parent.parent.parent&amp;&amp;this.node.parent.parent.parent.getComponent(cc.ScrollView)&amp;&amp;(this.node.parent.parent.parent.getComponent(cc.ScrollView).enabled=!1),this.drawing)for(var e=0;e&lt;this.drawing.length;e++)this.drawing[e].setActiveDrawing(!0),this.drawing[e].touchStart(t);this.isPick=!0}},e.prototype.TouchStart=function(t){this.isTouchActive&amp;&amp;this.node.active&amp;&amp;255==this.node.opacity&amp;&amp;(this.DefaultinitPosition=this.node.position,this.isPositionChanged=!0,this.isTapObject=!0,this.isSwipe=!1,this.BeganPoint=t.getLocationX(),this.dist=0,this.swipedir="none",this.startX=t.getLocationX(),this.startY=t.getLocationY(),this.startTime=(new Date).getTime(),"content"!=this.node.parent.name?this.SwipeAction(t):this.isSwipe=!0)},e.prototype.TouchMove=function(t){if(0!=this.isTapObject&amp;&amp;this.isTouchActive){if(this.isTouchActive){if(this.isSwipe){var e=t.getLocationX()-this.startX,n=t.getLocationY()-this.startY;if((new Date).getTime()-this.startTime&lt;=this.allowedTime&amp;&amp;(Math.abs(e)&gt;=this.threshold&amp;&amp;Math.abs(n)&lt;=this.restraint?this.swipedir=e&lt;0?"left":"right":Math.abs(n)&gt;=this.threshold&amp;&amp;Math.abs(e)&lt;=this.restraint&amp;&amp;(this.swipedir=n&lt;0?"up":"down")),"left"==this.swipedir)this.isSwipe=!1,this.SwipeAction(t);else{if("right"!=this.swipedir)return;this.isSwipe=!1,this.SwipeAction(t)}}this.isSelfNodeMove&amp;&amp;this.MoveItem?this.MoveItem.position=cc.v3(this.MoveItem.parent.convertToNodeSpaceAR(t.getLocation())):this.node.position=cc.v3(this.node.parent.convertToNodeSpaceAR(t.getLocation())),cc.game.emit(r.MOVED,this.node,this.ToolID,t.getLocation(),this.MoveItem,null)}if(this.drawing)for(var o=0;o&lt;this.drawing.length;o++)this.drawing[o].touchMove(t)}},e.prototype.TouchEnd=function(t){var e=this;if(0!=this.isTapObject&amp;&amp;this.isTouchActive){if(this.node.getChildByName("Ads")){var n=t.getLocationX()-this.startX,o=t.getLocationY()-this.startY;if(n&lt;50&amp;&amp;o&lt;50&amp;&amp;this.ShowAds(this.node))return}if(this.isSwipe)if(n=t.getLocationX()-this.startX,o=t.getLocationY()-this.startY,(new Date).getTime()-this.startTime&lt;=this.allowedTime&amp;&amp;(Math.abs(n)&gt;=this.threshold&amp;&amp;Math.abs(o)&lt;=this.restraint?this.swipedir=n&lt;0?"left":"right":Math.abs(o)&gt;=this.threshold&amp;&amp;Math.abs(n)&lt;=this.restraint&amp;&amp;(this.swipedir=o&lt;0?"up":"down")),"left"==this.swipedir)this.isSwipe=!1,this.SwipeAction(t);else{if("right"!=this.swipedir)return;this.isSwipe=!1,this.SwipeAction(t)}if(this.isTapObject=!1,"content"==this.node.parent.name&amp;&amp;this.node.parent.parent.parent&amp;&amp;this.node.parent.parent.parent.getComponent(cc.ScrollView)&amp;&amp;(this.node.parent.parent.parent.getComponent(cc.ScrollView).enabled=!0),this.drawing)for(var i=0;i&lt;this.drawing.length;i++)this.drawing[i].setActiveDrawing(!1);if(this.isTouchActive&amp;&amp;this.isPositionChanged){this.isPositionChanged=!1;var a=this.MoveItem,c=this.MoveinitPosition;null==a&amp;&amp;(a=this.node,c=this.DefaultinitPosition),cc.tween(a).to(.2,{position:c},{easing:cc.easing.backOut}).call(function(){e.MoveItem?(e.MoveItem.active=!1,e.MoveinitPosition&amp;&amp;(e.MoveItem.position=e.DefaultinitPosition)):e.DefaultinitPosition&amp;&amp;(e.node.position=e.DefaultinitPosition),e.node.active=!0,e.node.opacity=255,e.childHide&amp;&amp;(e.node.children[0].opacity=255)}).start()}cc.game.emit(r.ENDED,this.node,this.ToolID,t.getLocation(),this.MoveItem,null)}},e.prototype.ShowAds=function(t){return c(this,void 0,void 0,function(){return s(this,function(e){switch(e.label){case 0:return t&amp;&amp;t.getChildByName("Ads")?(this.resetComponent(),[4,u.default.getInstance().requestRewardAds(t.getChildByName("Ads"))]):[3,2];case 1:return e.sent()&amp;&amp;t.removeComponent(cc.Button),[2,!0];case 2:return[2,!1]}})})},e.prototype.resetComponent=function(){this.MoveItem&amp;&amp;(this.MoveItem.active=!1,cc.Tween.stopAllByTarget(this.MoveItem)),cc.Tween.stopAllByTarget(this.node),this.isTapObject=!1,this.node.opacity=255,this.node.active=!0,this.node.position=this.DefaultinitPosition,this.MoveItem&amp;&amp;(this.MoveItem.position=this.MoveinitPosition),this.isTouchActive=!0},e.prototype.setActive=function(t){t?(this.node.opacity=255,this.isTouchActive=!0):(this.node.opacity=254,this.isTouchActive=!1)},e.prototype.isToolDone=function(){if(this.drawing.length&gt;0){for(var t=!0,e=0;e&lt;this.drawing.length;e++){var n=this.drawing[e].getDrawingPercentage();if(console.log("per",n),this.drawing[e].isErase){if(n&lt;this.drawing[e].ErasePercentage){t=!1;break}}else if(n&lt;this.drawing[e].DrawingPercentage){t=!1;break}}return t}return!1},e.prototype.ToolDoneAction=function(){if(this.drawing.length&gt;0)for(var t=0;t&lt;this.drawing.length;t++)this.drawing[t].isErase?this.drawing[t].clearPicture():(this.drawing[t].FillFullTexture(),this.drawing[0].node.getComponent(cc.Sprite).spriteFrame=this.drawing[t].DrawingTexture[this.drawing[t].selectedPattern-1])},a([f()],e.prototype,"isTouchActive",void 0),a([f({type:cc.Integer})],e.prototype,"ToolID",void 0),a([f({displayName:"Move Node"})],e.prototype,"typenode",null),a([f],e.prototype,"childHide",void 0),a([f({type:cc.Node,visible:!1})],e.prototype,"MoveItem",void 0),a([f({type:cc.Node,visible:function(){return this.isSelfNodeMove},displayName:"MoveItem"})],e.prototype,"moveitem",null),a([f({visible:!1})],e.prototype,"isDrawingEnable",void 0),a([f({displayName:"isEnable Drawing"})],e.prototype,"type",null),a([f({type:l.default,visible:!1})],e.prototype,"drawing",void 0),a([f({type:l.default,visible:function(){return this.isDrawingOn},displayName:"Item"})],e.prototype,"drawing1",null),a([h,g(),v(),y(cc.Sprite)],e)}(cc.Component);n.default=m,cc._RF.pop()},{"../Drawing/UserDrawing":"UserDrawing","../HelperTools/ExportHelper":"ExportHelper","../Promotion/AdManager":"AdManager"}],UserDrawing:[function(t,e,n){"use strict";function o(){o=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function r(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{r({},"")}catch(D){r=function(t,e,n){return t[e]=n}}function l(t,e,n,o){var i=e&amp;&amp;e.prototype instanceof d?e:d,a=Object.create(i.prototype),c=new A(o||[]);return a._invoke=function(t,e,n){var o="suspendedStart";return function(i,a){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===i)throw a;return{value:void 0,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var s=C(c,n);if(s){if(s===u)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&amp;&amp;n.abrupt("return",n.arg);o="executing";var r=p(t,e,n);if("normal"===r.type){if(o=n.done?"completed":"suspendedYield",r.arg===u)continue;return{value:r.arg,done:n.done}}"throw"===r.type&amp;&amp;(o="completed",n.method="throw",n.arg=r.arg)}}}(t,n,c),a}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(D){return{type:"throw",arg:D}}}t.wrap=l;var u={};function d(){}function h(){}function f(){}var g={};r(g,a,function(){return this});var y=Object.getPrototypeOf,v=y&amp;&amp;y(y(b([])));v&amp;&amp;v!==e&amp;&amp;n.call(v,a)&amp;&amp;(g=v);var m=f.prototype=d.prototype=Object.create(g);function _(t){["next","throw","return"].forEach(function(e){r(t,e,function(t){return this._invoke(e,t)})})}function S(t,e){function o(i,a,c,s){var r=p(t[i],t,a);if("throw"!==r.type){var l=r.arg,u=l.value;return u&amp;&amp;"object"==typeof u&amp;&amp;n.call(u,"__await")?e.resolve(u.__await).then(function(t){o("next",t,c,s)},function(t){o("throw",t,c,s)}):e.resolve(u).then(function(t){l.value=t,c(l)},function(t){return o("throw",t,c,s)})}s(r.arg)}var i;this._invoke=function(t,n){function a(){return new e(function(e,i){o(t,n,e,i)})}return i=i?i.then(a,a):a()}}function C(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&amp;&amp;(e.method="return",e.arg=void 0,C(t,e),"throw"===e.method))return u;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var o=p(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,u;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&amp;&amp;(e.method="next",e.arg=void 0),e.delegate=null,u):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}function w(t){var e={tryLoc:t[0]};1 in t&amp;&amp;(e.catchLoc=t[1]),2 in t&amp;&amp;(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function b(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function e(){for(;++o&lt;t.length;)if(n.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:T}}function T(){return{value:void 0,done:!0}}return h.prototype=f,r(m,"constructor",f),r(f,"constructor",h),h.displayName=r(f,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&amp;&amp;t.constructor;return!!e&amp;&amp;(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,r(t,s,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},_(S.prototype),r(S.prototype,c,function(){return this}),t.AsyncIterator=S,t.async=function(e,n,o,i,a){void 0===a&amp;&amp;(a=Promise);var c=new S(l(e,n,o,i),a);return t.isGeneratorFunction(n)?c:c.next().then(function(t){return t.done?t.value:c.next()})},_(m),r(m,s,"Generator"),r(m,a,function(){return this}),r(m,"toString",function(){return"[object Generator]"}),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var o=e.pop();if(o in t)return n.value=o,n.done=!1,n}return n.done=!0,n}},t.values=b,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!t)for(var e in this)"t"===e.charAt(0)&amp;&amp;n.call(this,e)&amp;&amp;!isNaN(+e.slice(1))&amp;&amp;(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function o(n,o){return c.type="throw",c.arg=t,e.next=n,o&amp;&amp;(e.method="next",e.arg=void 0),!!o}for(var i=this.tryEntries.length-1;i&gt;=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc&lt;=this.prev){var s=n.call(a,"catchLoc"),r=n.call(a,"finallyLoc");if(s&amp;&amp;r){if(this.prev&lt;a.catchLoc)return o(a.catchLoc,!0);if(this.prev&lt;a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev&lt;a.catchLoc)return o(a.catchLoc,!0)}else{if(!r)throw new Error("try statement without catch or finally");if(this.prev&lt;a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var o=this.tryEntries.length-1;o&gt;=0;--o){var i=this.tryEntries[o];if(i.tryLoc&lt;=this.prev&amp;&amp;n.call(i,"finallyLoc")&amp;&amp;this.prev&lt;i.finallyLoc){var a=i;break}}a&amp;&amp;("break"===t||"continue"===t)&amp;&amp;a.tryLoc&lt;=e&amp;&amp;e&lt;=a.finallyLoc&amp;&amp;(a=null);var c=a?a.completion:{};return c.type=t,c.arg=e,a?(this.method="next",this.next=a.finallyLoc,u):this.complete(c)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&amp;&amp;e&amp;&amp;(this.next=e),u},finish:function(t){for(var e=this.tryEntries.length-1;e&gt;=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),u}},catch:function(t){for(var e=this.tryEntries.length-1;e&gt;=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var i=o.arg;P(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:b(t),resultName:e,nextLoc:n},"next"===this.method&amp;&amp;(this.arg=void 0),u}},t}function i(t,e){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}cc._RF.push(e,"e424bI1D/FOOJfF3eulvAOc","UserDrawing");var a=_;(function(){for(var t=_,e=I();;)try{if(163140==-parseInt(t(493))/1*(parseInt(t(609))/2)+-parseInt(t(571))/3*(parseInt(t(406))/4)+-parseInt(t(576))/5+-parseInt(t(437))/6*(-parseInt(t(352))/7)+-parseInt(t(349))/8+-parseInt(t(449))/9*(parseInt(t(490))/10)+parseInt(t(506))/11*(parseInt(t(511))/12))break;e.push(e.shift())}catch(n){e.push(e.shift())}})();var c=function(t,e,n,o){var i,c=a,s=arguments.length,r=s&lt;3?e:null===o?o=Object[c(421)](e,n):o;if(typeof Reflect===c(484)&amp;&amp;typeof Reflect.decorate===c(354))r=Reflect.decorate(t,e,n,o);else for(var l=t.length-1;l&gt;=0;l--)(i=t[l])&amp;&amp;(r=(s&lt;3?i(r):s&gt;3?i(e,n,r):i(e,n))||r);return s&gt;3&amp;&amp;r&amp;&amp;Object[c(427)](e,n,r),r},s=function(t,e,n,o){return new(n||(n=Promise))(function(i,a){var c=_;function s(t){var e=_;try{l(o[e(549)](t))}catch(n){a(n)}}function r(t){try{l(o.throw(t))}catch(e){a(e)}}function l(t){var e,o=_;t[o(463)]?i(t[o(422)]):(e=t[o(422)],e instanceof n?e:new n(function(t){t(e)}))[o(487)](s,r)}l((o=o[c(370)](t,e||[]))[c(549)]())})};Object[a(427)](n,a(603),{value:!0}),n[a(482)]=n[a(358)]=n[a(461)]=n.checkStickerExist=n[a(567)]=n.LoadSticker=n[a(550)]=n[a(399)]=n[a(610)]=n[a(473)]=n[a(409)]=n[a(581)]=n[a(428)]=void 0;var r,l,p,u,d,h,f=cc[a(380)],g=f.ccclass,y=f.property;(l=r||(n.DRAWING_TYPE=r={}))[l[(p=a)(379)]=1]=p(379),l[l.FILL=2]=p(534),l[l[p(504)]=3]=p(504),d=u||(n.SCENE_TYPE=u={}),h=a,d[d.FILL=1]=h(534),d[d[h(379)]=2]=h(379),d[d[h(530)]=3]="FILL_AND_DRAWING";var v={data:{flags:{StickerPath:[],PatternData:[],TextureData:[]}}},m=function(t,e,n,o,c,s,l,p,d,h,f,g,y,v,m,_,P,A,b,T,D,B,x,I,E,M){var k,N;function H(){var e,n=a;return(e=t.apply(this,arguments)||this)[n(541)]=!0,e[n(465)]=u[n(379)],e[n(374)]=r.DRAWING,e.DrawingBrush=null,e.brushsize=10,e[n(564)]=!1,e[n(373)]=!0,e[n(483)]=!0,e[n(434)]=cc.v2(0,0),e[n(608)]=0,e[n(559)]=[],e.DrawingPercentage=90,e.ErasePercentage=10,e[n(466)]=null,e.MaskFrame=null,e.floodfillcolor=null,e[n(351)]=cc[n(435)][n(548)],e[n(566)]=0,e[n(448)]=0,e[n(353)]=0,e[n(423)]=0,e[n(595)]=1e3,e[n(375)]=1e3,e[n(377)]=0,e[n(459)]=cc[n(447)][n(548)],e[n(452)]=0,e[n(472)]=null,e[n(601)]=cc[n(441)].RED,e[n(612)]=!1,e.StickerScale=1,e[n(531)]=[],e.isUpdateDrawing=!1,e[n(412)]=cc.Vec2[n(548)],e[n(577)]=cc[n(447)].ZERO,e[n(408)]=5,e[n(429)]=null,e}N=t,(k=H).prototype=Object.create(N.prototype),k.prototype.constructor=k,i(k,N);var R=H.prototype;return R[e]=function(){var t=a;this[t(489)](),cc.game.on("AddStickerOnUndo",this[t(425)],this),this[t(459)]=this[t(393)].getContentSize(),this[t(387)]=this.node,this[t(472)]=new S,this.CanvasManagerObj[t(545)](this[t(393)],this),this[t(393)][t(388)](cc[t(565)])[t(430)]instanceof cc.SpriteFrame?(this.CanvasManagerObj[t(552)](this[t(393)][t(388)](cc[t(565)])[t(430)][t(555)]()[t(450)],0,!0),this[t(393)][t(388)](cc[t(565)])[t(430)]=this[t(393)].getComponent(cc.Sprite)[t(430)]):this.CanvasManagerObj[t(514)](0);for(var e=0;e&lt;this[t(559)][t(501)];e++)this[t(472)].LoadTexture(this[t(559)][e][t(555)]()[t(450)],e+1,!0);this[t(533)](this[t(564)])},R[n]=function(t){var e=a;t&amp;&amp;(console.log(e(481),t[e(515)]),this[e(472)][e(552)](t.getTexture()[e(450)],100,!1))},R[o]=function(){var t=a;!this[t(373)]&amp;&amp;this[t(608)]&gt;=0&amp;&amp;this[t(454)](this[t(608)])},R[c]=function(){var t=a;this.DrawNode=this[t(393)],this[t(382)]=document[t(395)]("canvas"),this[t(424)]=this[t(382)][t(543)]("2d"),this[t(382)][t(508)]=this.node.width,this[t(382)][t(569)]=this[t(393)].height,this[t(579)]=this[t(393)].width,this[t(588)]=this[t(393)][t(569)],this[t(424)][t(486)](0,0,this.ScreenWidth,this[t(588)]),this[t(483)]&amp;&amp;(this[t(424)][t(404)]=t(367),this[t(424)][t(404)]=t(524)),this[t(577)]=this[t(387)][t(496)](),this[t(412)]=cc.v2(this[t(577)][t(508)]*this[t(393)][t(369)]().x,this[t(577)][t(569)]*this[t(393)][t(369)]().y),this.Data=this[t(424)][t(474)](0,0,this[t(579)],this[t(588)])},R[s]=function(){var t=a;this[t(420)](this[t(541)])},R.initFloodFill=function(t){this[a(477)]=new C(t,null)},R[l]=function(t){var e=a;if(this[e(351)]=cc.v3(t[e(397)]()),this[e(374)]!=r[e(534)]){if(this.floodfillcolor&amp;&amp;this[e(465)]!=u[e(379)]){var n=this[e(387)][e(478)](t[e(397)]()),o=this.DrawNode[e(496)]();n=cc.v2(n.x+o.width/2,o[e(569)]-(n.y+o[e(569)]/2)),this.floodfillcolor[e(513)](this.getRandomColor(),Math[e(594)](n.x),Math[e(594)](n.y),0),this[e(472)][e(398)]=this[e(477)].ColorMatrix}var i=this[e(542)](t)[e(485)],c=cc.v2(Math[e(594)](i.x),Math.floor(i.y));this[e(475)](c,!0),this[e(465)]==u.FILL_AND_DRAWING&amp;&amp;this[e(586)](c),this[e(429)]=this[e(424)][e(474)](0,0,this[e(579)],this.ScreenHeight),this[e(384)]()}},R[p]=function(t){var e=a;if(this.DrawingType==r.DRAWING){for(var n=this[e(542)](t),o=n.Start,i=n[e(471)],c=n[e(537)],s=0;s&lt;c;s+=this[e(408)]){var l=i.x-o.x,p=i.y-o.y,d=s/c,h=cc.v2(o.x+l*d,o.y+p*d);this[e(475)](h),this.SceneType==u[e(530)]&amp;&amp;this[e(586)](h)}this[e(558)]=!0}},R[d]=function(t){var e=a;if(this[e(374)]===r[e(379)]&amp;&amp;this.CanvasManagerObj&amp;&amp;this.CanvasManagerObj.UpdateContext(),this.UpdateData(),this.isUpdateDrawing=!1,this[e(374)]==r[e(534)]&amp;&amp;this[e(387)][e(371)]&amp;&amp;this[e(387)][e(494)].active){if(Math[e(444)](this.BeganPoint.x-t[e(546)]())&gt;10)return;if(Math[e(444)](this[e(351)].y-t[e(509)]())&gt;10)return;var n=this.DrawNode.convertToNodeSpaceAR(t[e(397)]());n=cc.v2(n.x+this[e(577)][e(508)]/2,this[e(577)].height-(n.y+this[e(577)][e(569)]/2)),this[e(574)](Math[e(594)](n.x),Math[e(594)](n.y),this[e(356)]())}},R[h]=function(t,e,n){var o=a;this.Particle&amp;&amp;(this.Particle.startColor=cc[o(470)](t,e,n),this.Particle[o(500)]=cc[o(470)](t,e,n))},R[f]=function(t,e){void 0===e&amp;&amp;(e=!1);var n=a;if(e)if(this[n(373)])this[n(424)].fillStyle=O(this[n(601)].r,this[n(601)].g,this[n(601)].b);else{if(!this[n(472)][n(401)](this[n(608)]))return;this.UserContext[n(522)]=this[n(424)][n(460)](this[n(472)].getPattern(this[n(608)]),"repeat")}this[n(424)][n(455)](),this[n(424)][n(457)](t.x,t.y,this[n(520)],0,5*Math.PI),this[n(424)][n(513)](),this[n(424)][n(553)]()},R[g]=function(){var t=a;this[t(465)]==u[t(530)]?this[t(472)]&amp;&amp;(this.CanvasManagerObj[t(426)](this[t(474)](),this[t(595)],this[t(375)],this.Maxx,this[t(423)]),this[t(558)]=!1,this.Minx=this[t(579)],this[t(375)]=this[t(588)],this[t(353)]=0,this[t(423)]=0):this[t(472)]&amp;&amp;(this[t(472)][t(600)](this[t(474)]()),this[t(558)]=!1)},R[y]=function(){var t=a;this[t(558)]&amp;&amp;(this[t(429)]=this[t(424)][t(474)](0,0,this[t(579)],this[t(588)]),this[t(384)]())},R[v]=function(t){var e=a;this.startx=Math[e(594)](t.x),this[e(448)]=Math[e(594)](t.y),this[e(595)]&gt;this[e(566)]&amp;&amp;(this.Minx=this[e(566)]),this[e(353)]&lt;this[e(566)]+this.brushsize&amp;&amp;(this[e(353)]=this[e(566)]+this[e(520)]),this.Miny&gt;this[e(448)]&amp;&amp;(this[e(375)]=this[e(448)]),this[e(423)]&lt;this[e(448)]+this[e(520)]&amp;&amp;(this[e(423)]=this[e(448)]+this[e(520)])},R.getDistance=function(t){var e=a,n=t.getLocation(),o=t[e(383)]();this[e(564)]?(n.x=n.x,o.x=o.x,n.y=n.y,o.y=o.y):(n.x=n.x+this[e(434)].x,o.x=o.x+this[e(434)].x,n.y=n.y+this[e(434)].y,o.y=o.y+this.DrawingOffset.y);var i=this[e(387)][e(478)](n);n=cc.v2(i.x+this[e(412)].x,this[e(577)][e(569)]-(i.y+this[e(412)].y));var c=this[e(387)][e(478)](o);return{Start:n,End:o=cc.v2(c.x+this[e(412)].x,this[e(577)][e(569)]-(c.y+this[e(412)].y)),Distance:Math[e(495)](Math[e(529)](o.x-n.x,2)+Math[e(529)](o.y-n.y,2))}},R.FillPointAt=function(t,e,n){var o=a;t&lt;0||e&lt;0||t&gt;=this[o(387)][o(508)]||e&gt;=this[o(387)].height||this[o(477)]&amp;&amp;(this.floodfillcolor[o(464)]=!1,this[o(477)][o(513)](n,t,e,0),this.floodfillcolor[o(606)]&gt;0&amp;&amp;this.CanvasManagerObj&amp;&amp;this.CanvasManagerObj.UpdatePatternDrawingFloodFill(this[o(608)],this[o(477)][o(476)],this[o(477)][o(512)]))},R.setFillColor=function(t){var e=a;this[e(601)]=t,this[e(373)]=!0,this.UserContext[e(522)]=O(this[e(601)].r,this[e(601)].g,this[e(601)].b)},R[m]=function(t){var e=a;this[e(541)]=t,this[e(541)]?(this[e(393)].on(cc.Node[e(510)][e(440)],this.touchMove,this),this[e(393)].on(cc.Node[e(510)][e(538)],this.touchStart,this),this.node.on(cc[e(525)][e(510)][e(364)],this[e(443)],this),this[e(393)].on(cc[e(525)][e(510)][e(532)],this[e(443)],this)):(this.node[e(389)](cc.Node.EventType[e(440)],this[e(438)],this),this[e(393)][e(389)](cc.Node[e(510)][e(538)],this[e(350)],this),this[e(393)].off(cc.Node[e(510)][e(364)],this[e(443)],this),this[e(393)][e(389)](cc[e(525)][e(510)].TOUCH_CANCEL,this[e(443)],this))},R[_]=function(t){var e=a;this[e(472)][e(562)][e(517)]({data:null,sticker:t}),this[e(472)][e(593)]()},R[P]=function(){var t=a;if(this[t(472)]&amp;&amp;this[t(472)].UndoData&amp;&amp;this[t(472)][t(562)][t(501)]&gt;0){var e=this.CanvasManagerObj.UndoData[t(501)]-1;if(this[t(472)].UndoData[e][t(568)]&amp;&amp;(this[t(472)][t(562)][e].sticker[t(527)](),this[t(472)].UndoData.splice(this.CanvasManagerObj[t(562)][t(501)]-1,1)),this.CanvasManagerObj.UndoData[t(502)](this.CanvasManagerObj[t(562)].length-1,1),0==this[t(472)].UndoData[t(501)])this[t(575)]();else{e=this[t(472)][t(562)][t(501)]-1;var n=this[t(472)][t(562)][e].data,o=this.CanvasManagerObj[t(562)][e][t(568)];o&amp;&amp;o.isValid&amp;&amp;o.removeFromParent(),n&amp;&amp;(this.CanvasManagerObj[t(587)]=n,this.CanvasManagerObj[t(405)](n))}return this[t(472)].UndoData[t(501)]&gt;0||(this[t(575)](),!1)}return!1},R.clearPicture=function(){var t=a;this.CanvasManagerObj&amp;&amp;this[t(472)][t(575)](),this[t(424)][t(486)](0,0,this[t(579)],this[t(588)]),this[t(429)]=this[t(424)].getImageData(0,0,this[t(579)],this[t(588)]),this[t(472)]&amp;&amp;(this[t(472)][t(587)]=this[t(429)],this.CanvasManagerObj[t(593)]())},R[A]=function(t){var e=a;this[e(424)].putImageData(t,0,0),this[e(429)]=t},R[b]=function(){var t=a;this[t(472)]&amp;&amp;this[t(472)].FillTexture(this[t(608)])},R.resetPicture=function(){var t=a;this[t(472)]&amp;&amp;this.CanvasManagerObj[t(432)]()},R[T]=function(t,e){this.DrawingOffset=cc.v2(t,e)},R[D]=function(){return this[a(429)]},R[B]=function(t){var e=a;this[e(520)]=t,this[e(408)]=parseInt((this.brushsize/2)[e(498)]())},R[x]=function(t){var e=a;this[e(472)]&amp;&amp;this[e(472)][e(533)](t),this[e(564)]=t,t?this.UserContext[e(499)]=e(518):this[e(424)].globalCompositeOperation=e(544)},R[I]=function(t){var e=a;-1!=t&amp;&amp;(t&gt;this[e(559)][e(501)]?alert(e(563)):(this.isEnableColor=!1,this[e(608)]=t,this[e(472)]&amp;&amp;this[e(472)].setPatternData(this[e(608)])))},R.getRandomColor=function(){return cc[a(470)](w(10,255),w(10,255),w(10,255))},R[E]=function(){var t=a;return this[t(472)]?this[t(472)][t(507)](this[t(608)]):0},R[M]=function(){var t=a;return this.getDrawingPercentage()&gt;=this[t(554)]},H}(cc[a(479)],a(584),a(402),a(582),a(489),a(528),a(350),a(438),a(443),a(436),a(475),a(384),a(410),a(586),a(420),a(425),a(456),a(368),a(570),a(551),a(474),a(417),a(533),a(454),a(507),a(418));function _(t,e){var n=I();return(_=function(t){return n[t-=349]})(t,e)}c([y()],m[a(592)],a(541),void 0),c([y({type:cc[a(526)](u)})],m[a(592)],a(465),void 0),c([y({type:cc[a(526)](r)})],m[a(592)],"DrawingType",void 0),c([y(cc[a(611)])],m[a(592)],a(376),void 0),c([y()],m.prototype,"brushsize",void 0),c([y()],m.prototype,a(564),void 0),c([y()],m[a(592)],a(373),void 0),c([y()],m[a(592)],"isApplyFilter",void 0),c([y(cc[a(366)])],m[a(592)],a(434),void 0),c([y({type:cc[a(378)]})],m.prototype,a(608),void 0),c([y([cc[a(611)]])],m[a(592)],a(559),void 0),c([y({type:cc.Integer})],m[a(592)],a(554),void 0),c([y({type:cc[a(378)]})],m[a(592)],"ErasePercentage",void 0),c([y(cc.ParticleSystem)],m.prototype,a(466),void 0),c([y(cc[a(611)])],m[a(592)],"MaskFrame",void 0),m=c([g],m),n[a(365)]=m;var S=function(t,e,n,o,i,c,s,r,l,p,d,h,f,g,y,v,m,_){function S(){var t=a;this[t(385)]=null,this.PatternData=[],this[t(442)]=null,this[t(607)]=null,this.ScreenWidth=0,this[t(588)]=0,this[t(505)]=!1,this.userDrawingObj=null,this[t(414)]=null,this[t(605)]=null,this.OriginalData=null,this[t(556)]=null,this[t(596)]=null,this[t(390)]=null,this[t(604)]=null,this[t(469)]=null,this[t(597)]=null,this[t(491)]=null,this[t(419)]=!1,this[t(562)]=[],this[t(557)]=null,this.Matrix=[],this[t(535)]=null}var C=S.prototype;return C[t]=function(t,e){var n=a;this[n(579)]=t[n(508)],this[n(588)]=t[n(569)];var o=document[n(395)](n(578)),i=o[n(543)]("2d");o[n(508)]=this.ScreenWidth,o[n(569)]=this[n(588)],this[n(385)]={UserScreen:o,UserContext:i,DrawNode:t,ScreenWidth:this.ScreenWidth,ScreenHeight:this[n(588)],ID:0},this[n(372)]=e,this[n(605)]=new Image,this.sframe=new(cc[n(611)]),this.texture=new cc.Texture2D,this[n(604)]=document[n(395)](n(578)),this[n(469)]=o[n(543)]("2d"),this[n(597)]=document[n(395)](n(578)),this[n(491)]=o[n(543)]("2d"),this.sframe[n(583)](this.texture)},C[e]=function(){var t=a;this[t(390)].initWithData(this[t(587)],cc[t(503)].PixelFormat[t(451)],this.ScreenWidth,this[t(588)]),this.userDrawingObj[t(387)][t(388)](cc[t(565)]).spriteFrame=this.sframe},C[n]=function(t){var e=a;null!=t&amp;&amp;(this[e(363)]().UserContext[e(560)](t,0,0),this[e(453)](),this[e(372)].FilterupdateData(this.OriginalData))},C.setEraseOn=function(t){this.IsEraseData=t},C.getImageData=function(){var t=a,e=this[t(363)]();return null==e?null:e[t(424)][t(474)](0,0,e[t(579)],e.ScreenHeight)},C[o]=function(){return this[a(385)]},C[i]=function(){var t=a;this[t(587)]=this[t(442)],this.UpdateTexture()},C[c]=function(){var t=a;null!=this.DefaultData&amp;&amp;(this[t(491)].putImageData(this[t(442)],0,0),this[t(587)]=this[t(491)][t(474)](0,0,this[t(579)],this[t(588)]),this[t(587)]=this[t(411)](this[t(587)]),this[t(372)][t(368)](this.OriginalData),this[t(453)](),this[t(562)][t(502)](0,this.UndoData.length))},C[s]=function(t){var e=a,n=this.getPatternDataUsingIndex(t),o=this[e(587)].data,i=null;this[e(535)]&amp;&amp;(i=this.MaskData[e(519)]);for(var c=0;c&lt;o[e(501)];c+=4)o[c+0]=n[e(519)][c],o[c+1]=n[e(519)][c+1],o[c+2]=n[e(519)][c+2],o[c+3]&gt;0&amp;&amp;i?o[c+3]=i[c+3]:o[c+3]&gt;0&amp;&amp;(o[c+3]=n[e(519)][c+3]);this.userDrawingObj[e(368)](this.OriginalData),this[e(453)]()},C[r]=function(t,e,n,o){var i=this;void 0===o&amp;&amp;(o=!1);var c=a,s=x(t);if(s)this[c(561)](s,t,e,n,o);else{var r=new Image;r[c(446)]=function(){i[c(561)](r,t,e,n,o)},r[c(407)]=t,0==e&amp;&amp;this.userDrawingObj[c(528)]()}},C[l]=function(t,e,n,o,i){void 0===i&amp;&amp;(i=!1);var c=a;this[c(469)][c(486)](0,0,this[c(579)],this[c(588)]);var s=t[c(508)],r=t[c(569)];if(o&amp;&amp;(s=this[c(579)],r=this[c(588)]),this[c(604)][c(508)]=s,this.TextureUserCanvas.height=r,0==n&amp;&amp;(this[c(597)][c(508)]=s,this.DefaultTextureUserCanvas.height=r),i)this[c(469)][c(521)](t,0,0,this.ScreenWidth,this.ScreenHeight),0==n&amp;&amp;this[c(491)].drawImage(t,s/2-t[c(508)]/2,r/2-t[c(569)]/2);else if(o){var l=this[c(469)].createPattern(t,c(396));this[c(469)][c(439)](0,0,this[c(604)][c(508)],this.TextureUserCanvas[c(569)]),this[c(469)].fillStyle=l,this[c(469)].fill()}else this.TextureUserContext[c(521)](t,s/2-t[c(508)]/2,r/2-t.height/2),0==n&amp;&amp;this.DefaultTextureUserContext[c(521)](t,s/2-t[c(508)]/2,r/2-t[c(569)]/2);if(0==n)if(this[c(605)]=t,this[c(419)]=!0,this[c(372)][c(465)]===u[c(534)]||this[c(372)].SceneType===u.FILL_AND_DRAWING){var p=this.filterData(this[c(469)][c(474)](0,0,s,r));this[c(433)][c(517)]({PatternData:p,Image:t,ID:n}),this[c(442)]=this.DefaultTextureUserContext[c(474)](0,0,s,r),this[c(607)]=this.filterData(this[c(469)].getImageData(0,0,s,r)),(this[c(372)][c(465)]==u[c(534)]||this.userDrawingObj[c(465)]==u[c(530)])&amp;&amp;this[c(372)][c(413)](this[c(607)]),this[c(587)]=p,this[c(405)](p),this.DefaultTextureUserContext[c(560)](this[c(587)],0,0)}else{var d=this.TextureUserContext[c(474)](0,0,s,r);this[c(433)][c(517)]({PatternData:d,Image:t,ID:n}),this[c(587)]=d,this[c(405)](d),this.FillData=this[c(491)][c(474)](0,0,s,r),this[c(372)][c(413)](this[c(607)]),this[c(491)].putImageData(this[c(587)],0,0),this[c(442)]=this[c(491)].getImageData(0,0,s,r)}else this[c(433)][c(517)]({PatternData:this.TextureUserContext[c(474)](0,0,s,r),Image:t,ID:n}),100==n&amp;&amp;(this[c(535)]=this[c(469)].getImageData(0,0,s,r))},C[p]=function(t){var e=a;this[e(419)]=!1,this[e(469)].clearRect(0,0,this.ScreenWidth,this[e(588)]);var n=this[e(579)],o=this[e(588)];this[e(604)].width=n,this[e(604)][e(569)]=o,this.DefaultTextureUserCanvas[e(508)]=n,this[e(597)][e(569)]=o;var i=this[e(469)].getImageData(0,0,n,o);this[e(433)][e(517)]({PatternData:i,Image:null,ID:t}),this[e(587)]=i,this.setImageData(i),this[e(607)]=this.DefaultTextureUserContext[e(474)](0,0,n,o),this[e(372)].initFloodFill(this[e(607)]),this[e(491)][e(560)](this[e(587)],0,0),this[e(442)]=this.DefaultTextureUserContext.getImageData(0,0,n,o),this[e(372)][e(528)]()},C[d]=function(t){var e=a;if(this[e(372)].SceneType===u.FILL||this[e(372)][e(465)]===u[e(530)]){for(var n=t,o=t.data,i=0;i&lt;o[e(501)];i+=4)o[i]&lt;80&amp;&amp;o[i+1]&lt;80&amp;&amp;o[i+2]&lt;80?(o[i+0]=0,o[i+1]=0,o[i+2]=0,o[i+3]=255):(o[i+0]=255,o[i+1]=255,o[i+2]=255,o[i+3]=255);return n}return t},C[h]=function(t){for(var e=a,n=0;n&lt;this[e(433)][e(501)];n++)if(this[e(433)][n].ID==t)return this[e(556)]=this[e(433)][n][e(433)],this[e(557)]=this[e(556)][e(519)],this.SelectedPatternData},C.getPattern=function(t){for(var e=a,n=0;n&lt;this[e(433)].length;n++)if(this[e(433)][n].ID==t)return this.PatternData[n][e(488)];return null},C.getPatternDataUsingIndex=function(t){var e=a;if(null==this[e(433)])return null;for(var n=0;n&lt;this[e(433)][e(501)];n++)if(this[e(433)][n].ID==t)return this[e(433)][n][e(433)];return null},C[f]=function(t){var e=a;if(this[e(372)][e(368)](t),this[e(587)]=t,0==this[e(372)][e(373)]&amp;&amp;(null==this[e(556)]&amp;&amp;this[e(468)](this[e(372)][e(608)]),this[e(556)])){var n=this[e(587)][e(519)],o=this.SelectedPatternData[e(519)],i=null;this[e(535)]&amp;&amp;(i=this[e(535)][e(519)]);for(var c=0;c&lt;o.length;c+=4)n[c+3]&gt;0&amp;&amp;i?n[c+3]=i[c+3]:n[c+3]&gt;0&amp;&amp;(n[c+3]=o[c+3])}this[e(390)][e(545)](this[e(587)],cc[e(503)][e(360)].RGBA8888,this[e(579)],this[e(588)]),this[e(372)][e(387)][e(388)](cc[e(565)])[e(430)]=this[e(596)]},C[g]=function(t,e,n,o,i){var c=a;if(null!=this[c(587)]){if(this[c(398)]){var s=this[c(587)].data,r=t.width,l=t.data;n-=50,o+=50,i+=50;for(var p=e-=50;p&lt;o;p++)for(var u=n;u&lt;i;u++)if(!(u&lt;0||p&lt;0||u&gt;i||p&gt;o||p&gt;this[c(398)].length||p&lt;0||null==this.Matrix[p]||u&gt;this[c(398)][p][c(501)]||u&lt;0||this[c(398)][p][u])){var d=4*(u*r+p);l[d+3]&gt;0&amp;&amp;(l[d]=s[d],l[d+1]=s[d+1],l[d+2]=s[d+2],l[d+3]=s[d+3])}}this[c(372)][c(368)](t),this.OriginalData=t,this[c(390)][c(545)](this[c(587)],cc.Texture2D[c(360)].RGBA8888,this[c(579)],this[c(588)]),this[c(372)][c(387)][c(388)](cc.Sprite)[c(430)]=this[c(596)]}},C[y]=function(){var t=a;this[t(405)](this[t(587)]),this.UndoData[t(517)]({data:this[t(363)]()[t(424)][t(474)](0,0,this.ScreenWidth,this.ScreenHeight),sticker:null}),cc[t(540)][t(467)](t(458))},C[v]=function(){var t=a,e=0;if(this[t(505)]){var n=this.OriginalData.data;if(null==n)return 1;for(var o=0;o&lt;n[t(501)];o+=4)n[o+3]&gt;0&amp;&amp;e++}else if(this[t(419)]){var i=this[t(442)][t(519)];if(null==i)return 1;for(var c=0;c&lt;i[t(501)];c+=4)i[c+3]&gt;0&amp;&amp;e++}else{var s=this[t(587)];if(null==s)return 1;for(var r=0;r&lt;s[t(519)][t(501)];r+=4)s[t(519)][r+3]&amp;&amp;s[t(519)][r+3]&gt;0&amp;&amp;e++}return e},C.getTotalPixels=function(t){var e=a,n=0;if(this[e(505)]||-1==t){var o=this.OriginalData;if(null==o)return 1;n=o[e(519)][e(501)]/4}else{var i=this.getPatternDataUsingIndex(t);if(null==i)return 1;for(var c=0;c&lt;i[e(519)].length;c+=4)i[e(519)][c+3]&amp;&amp;i[e(519)][c+3]&gt;0&amp;&amp;n++}return n},C[m]=function(t){void 0===t&amp;&amp;(t=1);var e=a,n=this.getTotalPixels(t),o=this.getDrawingPixels();return this[e(505)]?(n-o)/n*100:this.isDefault?n/o*100:100*(1-(n-o)/n)},C[_]=function(t){var e=a;null==this[e(556)]&amp;&amp;(this[e(556)]=this.getPatternDataUsingIndex(t),this[e(556)]&amp;&amp;(this.selectedPData=this[e(556)][e(519)])),cc.game.emit(e(589));var n,o=this[e(587)],i=o.width,c=o.data,s=o.height,r=this.userDrawingObj[e(373)];r&amp;&amp;(n=this[e(372)][e(601)]);for(var l=this[e(372)].floodfillcolor[e(386)],p=0;p&lt;i;p++)for(var d=0;d&lt;s;d++)if(l[p][d]){var h=4*(d*i+p);r?(c[h]=n.r,c[h+1]=n.g,c[h+2]=n.b,c[h+3]=255):(c[h]=this[e(557)][h],c[h+1]=this.selectedPData[h+1],c[h+2]=this[e(557)][h+2],c[h+3]=this[e(557)][h+3])}this.userDrawingObj[e(465)]!=u[e(379)]?this.UpdateContext():this[e(405)](this[e(587)])},S}(a(545),a(453),a(405),a(363),a(432),a(575),a(547),a(552),a(561),a(514),a(411),a(468),a(600),a(426),a(593),a(591),a(507),a(536));n.CanvasManager=S,n[a(409)]=S=c([g],S);var C=function(t,e,n,o,i,c,s,r){function l(t,e){var n=a;this[n(391)]=!1,this.modifiedPixelsCount=0,this[n(572)]=new Set,this[n(464)]=!1,this[n(580)]=0,this[n(590)]=[],this[n(476)]=[],this[n(386)]=[],this[n(403)]=t,this[n(523)]=e,this.isSameColor=P,this[n(610)]=D,this[n(399)]=A;for(var o=this[n(403)],i=o.width,c=o.height,s=0;s&lt;i;s++){this[n(386)][s]=[];for(var r=0;r&lt;c;r++)this.ColorMatrix[s][r]=!1}}var p=l.prototype;return p[t]=function(t,e,n,o){var i=a;if(this[i(512)]=t,!(e&lt;0||n&lt;0||this[i(386)][i(501)]&lt;=e||this[i(386)][e][i(501)]&lt;=n||(this[i(400)]=this[i(399)](this[i(403)],e,n),this[i(400)].r&lt;1&amp;&amp;this[i(400)].g&lt;1&amp;&amp;this[i(400)].b&lt;1||(this._tolerance=o,this[i(606)]=0,this[i(473)](this[i(400)],this[i(512)],this[i(580)]))))){for(var c=this.imageData,s=c.width,r=c.height,l=0;l&lt;s;l++){this[i(386)][l]=[];for(var p=0;p&lt;r;p++)this[i(386)][l][p]=!1}this[i(516)]([e,e,n,-1]),this[i(585)](),this[i(606)]=1}},p[e]=function(t,e,n){var o=a;return this[o(400)]=this.getColorAtPixel(this[o(403)],e,n),!!this[o(473)](this[o(400)],t,this[o(580)])},p[n]=function(t){var e=a;this[e(590)][e(517)](t)},p[o]=function(){var t=a;return this._queue.length?this._queue[t(462)]():null},p[i]=function(t){var e=a;if(null!==t){var n=this[e(399)](this[e(403)],t.x,t.y);return this.isSameColor(this[e(400)],n,this[e(580)])}},p.fillLineAt=function(t,e){var n=a;if(!this.isValidTarget({x:t,y:e}))return[-1,-1];this[n(392)](this[n(512)],{x:t,y:e});for(var o=t,i=t,c=this[n(431)]("left",o,e);c&amp;&amp;this[n(573)](c);)this[n(392)](this._newColor,c),o=c.x,c=this.getPixelNeighbour(n(599),o,e);for(c=this[n(431)](n(602),i,e);c&amp;&amp;this[n(573)](c);)this.setPixelColor(this[n(512)],c),i=c.x,c=this[n(431)](n(602),i,e);return[o,i]},p[c]=function(){for(var t=a,e=this[t(445)]();e;){for(var n=e,o=n[0],i=n[1],c=n[2],s=n[3],r=o;-1!==r&amp;&amp;r&lt;=i;){var l=this[t(492)](r,c),p=l[0],u=l[1];-1!==p&amp;&amp;(p&gt;=o&amp;&amp;u&lt;=i&amp;&amp;-1!==s?(s&lt;c&amp;&amp;c+1&lt;this[t(403)][t(569)]&amp;&amp;this[t(516)]([p,u,c+1,c]),s&gt;c&amp;&amp;c&gt;0&amp;&amp;this[t(516)]([p,u,c-1,c])):(c&gt;0&amp;&amp;this[t(516)]([p,u,c-1,c]),c+1&lt;this[t(403)][t(569)]&amp;&amp;this[t(516)]([p,u,c+1,c]))),-1===u&amp;&amp;r&lt;=i?r+=1:r=u+1}e=this[t(445)]()}},p[s]=function(t,e){var n=a;this.setColorAtPixel(this[n(403)],t,e.x,e.y),this[n(386)][n(501)]&gt;e.x&amp;&amp;this[n(386)][e.x].length&gt;e.y&amp;&amp;(this[n(386)][e.x][e.y]=!0)},p[r]=function(t,e,n){var o,i=a;switch(e|=0,n|=0,t){case i(602):o={x:e+1|0,y:n};break;case i(599):o={x:e-1|0,y:n}}return o.x&gt;=0&amp;&amp;o.x&lt;this[i(403)][i(508)]?o:null},l}(a(513),a(381),a(516),a(445),a(573),a(585),a(392),a(431));function w(t,e){var n=a;return Math[n(594)](Math[n(497)]()*(e-t+1))+t}function P(t,e,n){void 0===n&amp;&amp;(n=0);var o=a;return!(Math.abs(t.r-e.r)&gt;n||Math[o(444)](t.g-e.g)&gt;n||Math.abs(t.b-e.b)&gt;n||Math[o(444)](t.a-e.a)&gt;n)}function A(t,e,n){var o=a,i=t.width,c=t.data,s=4*(n*i+e);if(void 0===c[s+3])throw new Error(o(357)+e+o(355)+n);return cc[o(470)](c[s],c[s+1],c[s+2],c[s+3])}function b(t,e){for(var n=a,o=0;o&lt;v.data.flags[n(416)][n(501)];o++)if(v[n(519)][n(539)][n(416)][o][n(480)]==t){v[n(519)][n(539)][n(416)][o][n(362)]=e;break}}function T(t){return new Promise(function(e){var n=_,o=new Image;o[n(446)]=function(){e(o)},o[n(407)]=t})}function D(t,e,n,o){var i=t.width,a=t.data,c=4*(o*i+n);a[c+0]=255&amp;e.r,a[c+1]=255&amp;e.g,a[c+2]=255&amp;e.b,a[c+3]=255&amp;e.a}function O(t,e,n){return"#"+B(t)+B(e)+B(n)}function B(t){var e=a,n=t.toString(16);return 1==n[e(501)]?"0"+n:n}function x(t){for(var e=a,n=0;n&lt;v[e(519)][e(539)].StickerPath[e(501)];n++)if(null!=v[e(519)].flags[e(416)][n][e(362)]&amp;&amp;v[e(519)].flags[e(416)][n][e(480)]==t)return v[e(519)].flags[e(416)][n].img;for(var o=0;o&lt;v.data[e(539)][e(359)][e(501)];o++)if(null!=v[e(519)].flags[e(359)][o].img&amp;&amp;v[e(519)].flags[e(359)][o][e(480)]==t)return v[e(519)][e(539)][e(359)][o].img;return null}function I(){var t=["IsEraseData","11GIVdal","getDrawingPercentage","width","getLocationY","EventType","7242780qzMLvS","_newColor","fill","LoadEmptyTexture","name","addToQueue","push","destination-out","data","brushsize","drawImage","fillStyle","PatternimageData","brightness(50%)","Node","Enum","removeFromParent","StartDrawingAfterLoading","pow","FILL_AND_DRAWING","BunchURL","TOUCH_CANCEL","setEraseOn","FILL","MaskData","UpdatePatternDrawingFloodFill","Distance","TOUCH_START","flags","game","isActiveDrawing","getDistance","getContext","source-over","initWithData","getLocationX","FillTexture","ZERO","next","FloodFill","setDrawingOffset","LoadTexture","closePath","DrawingPercentage","getTexture","SelectedPatternData","selectedPData","isUpdateDrawing","DrawingTexture","putImageData","ActionAfterLoaded","UndoData","Index must spriteframe Range","isErase","Sprite","startx","UpdateSticker","sticker","height","FillFullTexture","1503lAmgLt","modifiedPixels","isValidTarget","FillPointAt","clearPicture","1434890DzSWZk","DrawNodeSize","canvas","ScreenWidth","_tolerance","SCENE_TYPE","start","setTexture","onLoad","fillQueue","UpdateMinMax","OriginalData","ScreenHeight","EnableUndo","_queue","getDrawingPixels","prototype","UpdateContext","floor","Minx","sframe","DefaultTextureUserCanvas","checkStickerExist","left","UpdatePatternDrawingUsingPosition","selectedFillColor","right","__esModule","TextureUserCanvas","DefaultImage","modifiedPixelsCount","FillData","selectedPattern","1850QvDGrc","setColorAtPixel","SpriteFrame","isPickColor","2035664Zgesdu","touchStart","BeganPoint","2208416jlIPeS","Maxx","function","; y=","getRandomColor","Invalid pixel coordinates: x=","LoadImage","TextureData","PixelFormat","__awaiter","img","getCanvasData","TOUCH_END","default","Vec2","blur(1px)","FilterupdateData","getAnchorPoint","apply","active","userDrawingObj","isEnableColor","DrawingType","Miny","DrawingBrush","DefaultTextureIndex","Integer","DRAWING","_decorator","isMatchedColor","UserScreen","getPreviousLocation","UpdateData","canvasdata","ColorMatrix","DrawNode","getComponent","off","texture","collectModifiedPixels","setPixelColor","node","LoadSticker","createElement","repeat","getLocation","Matrix","getColorAtPixel","_replacedColor","getPattern","loadMask","imageData","filter","setImageData","1192bsCwxl","src","Increment","CanvasManager","update","filterData","AnchorOffset","initFloodFill","filterdata","__decorate","StickerPath","setBrushSize","isToolDone","isDefault","setActiveDrawing","getOwnPropertyDescriptor","value","Maxy","UserContext","addUndoSticker","UpdatePatternDrawingInBoundry","defineProperty","DRAWING_TYPE","Data","spriteFrame","getPixelNeighbour","resetTexture","PatternData","DrawingOffset","Vec3","UpdateParticleColor","6pWcdgQ","touchMove","rect","TOUCH_MOVE","Color","DefaultData","TouchEnd","abs","popFromQueue","onload","Size","starty","7056lWrBzs","nativeUrl","RGBA8888","SelectedColorID","UpdateTexture","setPatternIndex","beginPath","UndoItems","arc","Enable.Undo","TextureSize","createPattern","LoadTextures","pop","done","isEnabledPattern","SceneType","Particle","emit","setPatternData","TextureUserContext","color","End","CanvasManagerObj","isSameColor","getImageData","DrawPixelAt","modifiedPixelsIndex","floodfillcolor","convertToNodeSpaceAR","Component","nativeurl","frame.getTexture().nativeUrl","getImageElement","isApplyFilter","object","Start","clearRect","then","Image","init","560LbVVCH","DefaultTextureUserContext","fillLineAt","23RcAnSG","parent","sqrt","getContentSize","random","toString","globalCompositeOperation","endColor","length","splice","Texture2D","STICKER"];return(I=function(){return t})()}n[a(550)]=C,n.isSameColor=P,n[a(399)]=A,n[a(394)]=function(t,e){return s(this,void 0,void 0,o().mark(function n(){var i;return o().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(null==t){n.next=7;break}if(!this.checkStickerExist(t,e)){n.next=3;break}return n.abrupt("return");case 3:return n.next=5,T(t);case 5:i=n.sent,b(t,i);case 7:case"end":return n.stop()}},n,this)}))},n[a(567)]=b,n[a(598)]=function(t){for(var e=a,n=0;n&lt;v[e(519)].flags[e(416)].length;n++)if(null!=v[e(519)][e(539)][e(416)][n][e(362)]&amp;&amp;v[e(519)].flags[e(416)][n][e(480)]==t)return v[e(519)][e(539)].StickerPath[n][e(362)],!0;return!1},n.LoadTextures=function(t){return s(this,void 0,void 0,o().mark(function e(){var n,i,a,c;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=_,i=0;i&lt;t[n(501)];i++)v[n(519)][n(539)].TextureData[n(517)]({name:t[i][n(515)],nativeurl:t[i][n(388)](cc[n(565)]).spriteFrame[n(555)]().nativeUrl,img:null});a=0;case 3:if(!(a&lt;t[n(501)])){e.next=11;break}return e.next=6,T(v[n(519)][n(539)][n(359)][a][n(480)]);case 6:c=e.sent,v[n(519)].flags.TextureData[a][n(362)]=c;case 8:a++,e.next=3;break;case 11:case"end":return e.stop()}},e)}))},n[a(358)]=T,n[a(610)]=D,n[a(482)]=x,cc._RF.pop()},{}],"level - 1":[function(t,e,n){"use strict";cc._RF.push(e,"64210yqbh5FkZVcCpQkCj/A","level - 1");var o,i=this&amp;&amp;this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&amp;&amp;(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&amp;&amp;this.__decorate||function(t,e,n,o){var i,a=arguments.length,c=a&lt;3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s&gt;=0;s--)(i=t[s])&amp;&amp;(c=(a&lt;3?i(c):a&gt;3?i(e,n,c):i(e,n))||c);return a&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(e,n,c),c};Object.defineProperty(n,"__esModule",{value:!0});var c=t("../../../Aoneup-lib/Scripts/AudioManager/AudioManager"),s=t("../../../Aoneup-lib/Scripts/HelperTools/ExportHelper"),r=t("../../../Aoneup-lib/Scripts/ToolPicker/ToolPicker"),l=t("../../Common/Script/HintAnimation"),p=cc._decorator,u=p.ccclass,d=p.property,h=function(t){function e(){var e=null!==t&amp;&amp;t.apply(this,arguments)||this;return e.puppy=null,e.dummy=null,e.counter=0,e.counter2=0,e.plackBug=0,e.counter3=1,e}return i(e,t),e.prototype.onLoad=function(){},e.prototype.start=function(){this.schedule(function(){c.default.getInstance().play("DogSound_"+s.getRandomNumber(1,3))},8),cc.game.on(r.TOOLPICKER.BEGAN,this.TouchBegan,this),cc.game.on(r.TOOLPICKER.FIXED,this.TouchFixed,this),cc.game.on(r.TOOLPICKER.MOVED,this.TouchMove,this),cc.game.on(r.TOOLPICKER.ENDED,this.TouchEnd,this),this.node.getComponent(l.default).showBlinkHand(cc.find("Canvas/Bucket"))},e.prototype.TouchBegan=function(t,e,n,o,i){var a=this,p=cc.find("Canvas/Bucket"),u=cc.find("Canvas/Elements"),d=cc.find("Canvas/Trash").children,h=cc.find("Canvas/Elements/Dirt").children,f=cc.find("Canvas/Elements/Cuts").children,g=cc.find("Canvas/Elements/Injury").children,y=cc.find("Canvas/Dustbin_Back"),v=cc.find("Canvas/Dustbin_Front"),m=cc.find("Canvas/Progress_bar"),_=cc.find("Canvas/UseIteam/Use_Bandage"),S=cc.find("Canvas/Nail_Popup"),C=cc.find("Canvas/Nail_Dummy 1"),w=cc.find("Canvas/Side_Panel"),P=cc.find("Canvas/Nail_Dummy 2"),A=cc.find("Canvas/EarDrop_dummy"),b=cc.find("Canvas/Nail_Popup/Full nail").children,T=cc.find("Canvas/Nail_Popup/Half cut nail").children,D=cc.find("Canvas/Nail_Popup/Nail_Extraskin").children,O=cc.find("Canvas/Temp_Dummy"),B=cc.find("Canvas/Ear_Popup"),x=cc.find("Canvas/Ear_dummy"),I=cc.find("Canvas/Ear_Popup/Bug"),E=cc.find("Canvas/Particles/Tool_Complete").children,M=cc.find("Canvas/Use_FoodBowl"),k=cc.find("Canvas/Elements/Nosedrop"),N=cc.find("Canvas/Tail_dummy");if(cc.game.on(r.TOOLPICKER.MOVED,this.TouchMove,this),this.node.getComponent(l.default).hideBlinkHand(),this.node.getComponent(l.default).hideArrow(),this.node.getComponent(l.default).hideHand(),11==e)t.getComponent(r.default).setActive(!1),this.node.getComponent(l.default).hideBlinkHand(),c.default.getInstance().play("Tool_Exit"),this.scheduleOnce(function(){c.default.getInstance().play("Tool_Exit")},.3),cc.tween(p).to(.2,{position:cc.v3(-89.704,121.836)}).to(.2,{position:cc.v3(-89.704,81.668)}).to(1,{position:cc.v3(-89.704,1429.096)}).start(),cc.tween(u).delay(.6).call(function(){cc.find("Canvas/Start_puppy").active=!1,cc.find("Canvas/Elements/Cuts").active=!0,a.puppy.node.active=!0,a.PuppySpine(),cc.find("Canvas/Particles/Tool_Complete/Tool_Complete_3").position=cc.v3(-77.14,-29.868),cc.find("Canvas/Particles/Tool_Complete/Tool_Complete_3").getComponent(cc.ParticleSystem).resetSystem(),c.default.getInstance().play("Sparkle"),a.greatingsSound(),u.active=!0}).start(),d.forEach(function(t){cc.tween(t).delay(2).call(function(){t.getComponent(r.default).setActive(!0),t.getComponent(cc.Animation).play("TrashScaleInOut"),a.node.getComponent(l.default).showArrow2(d[6])}).start()}),cc.tween(y).delay(2).to(.2,{position:cc.v3(-250.053,-545.972)}).to(.2,{position:cc.v3(-308.053,-545.972)}).start(),cc.tween(v).delay(2).to(.2,{position:cc.v3(-250.33201,-735.93762)}).to(.2,{position:cc.v3(-308.33201,-735.93762)}).start();else if(1==e)c.default.getInstance().play("item_pick_up"),this.node.getComponent(l.default).showArrow2(i);else if(2==e)cc.find("Canvas/UseIteam/Use_roomfrshner/Roomfreshner_Particle").getComponent(cc.ParticleSystem).resetSystem(),cc.find("Canvas/Particles/fregnace_particles").getComponent(cc.ParticleSystem).resetSystem(),c.default.getInstance().play("item_pick_up"),c.default.getInstance().play("Spray",!0),cc.tween(m).to(.3,{position:cc.v3(474.12,-12.671)}).start();else if(3==e){cc.tween(m).to(.3,{position:cc.v3(474.12,-12.671)}).start(),c.default.getInstance().play("item_pick_up"),c.default.getInstance().play("spongerub",!0),cc.find("Canvas/UseIteam/Use_sponge/Dust_Particle").getComponent(cc.ParticleSystem).resetSystem();for(var H=0;H&lt;h.length;H++)0!=h[H].opacity&amp;&amp;this.node.getComponent(l.default).showBlinkHand2(h[H])}else if(4==e)for(c.default.getInstance().play("item_pick_up"),H=0;H&lt;g.length;H++)255==g[H].opacity&amp;&amp;this.node.getComponent(l.default).showBlinkHand(g[H]);else if(5==e)for(c.default.getInstance().play("item_pick_up"),c.default.getInstance().play("Towel_RUB",!0),cc.tween(m).to(.3,{position:cc.v3(474.12,-12.671)}).start(),H=0;H&lt;g.length;H++)0!=g[H].opacity&amp;&amp;this.node.getComponent(l.default).showBlinkHand(g[H]);else if(6==e)for(c.default.getInstance().play("item_pick_up"),t.active=!0,t.opacity=250,H=0;H&lt;f.length;H++)255==f[H].opacity&amp;&amp;this.node.getComponent(l.default).showBlinkHand(f[H]);else if(18==e){var R=s.getNodePosition(_,t);c.default.getInstance().play("Sparkle"),t.parent.active=!1,t.parent.opacity=253,_.position=cc.v3(R),_.active=!0,cc.tween(_).call(function(){E.forEach(function(e){e.position=t.parent.position}),E[s.getRandomNumber(0,2)].getComponent(cc.ParticleSystem).resetSystem()}).to(.8,{position:cc.v3(R.x,-1641.109)}).start(),this.counter++;for(var L=0;L&lt;=3;L++)g[L].opacity&gt;=254&amp;&amp;this.node.getComponent(l.default).showArrow2(g[L]);3==this.counter&amp;&amp;(this.counter=0,C.active=!0,C.getComponent(r.default).setActive(!0),this.node.getComponent(l.default).showArrow2(C))}else if(111==e)c.default.getInstance().play("item_pick_up"),S.active=!0,C.active=!1,cc.tween(S).to(.6,{scale:1}).start(),cc.tween(w).delay(.8).call(function(){w.getChildByName("Cutnail").active=!0}).to(.2,{position:cc.v3(200,-748.975)}).delay(.2).call(function(){a.node.getComponent(l.default).showArrow2(cc.find("Canvas/Side_Panel/Cutnail"))}).start();else if(7==e){for(H=0;H&lt;b.length;H++)b[H].opacity&gt;254&amp;&amp;this.node.getComponent(l.default).showArrow2(b[H]);c.default.getInstance().play("item_pick_up")}else if(8==e)for(c.default.getInstance().play("Nail_Filer",!0),c.default.getInstance().play("item_pick_up"),cc.tween(m).to(.3,{position:cc.v3(474.12,-12.671)}).start(),H=0;H&lt;T.length;H++)0!=T[H].opacity&amp;&amp;this.node.getComponent(l.default).showArrow2(T[H]);else if(9==e)for(c.default.getInstance().play("item_pick_up"),H=0;H&lt;D.length;H++)D[H].opacity&gt;254&amp;&amp;this.node.getComponent(l.default).showArrow2(D[H]);else if(10==e)c.default.getInstance().play("item_pick_up");else if(12==e)c.default.getInstance().play("item_pick_up"),this.node.getComponent(l.default).showArrow2(A,0,-200);else if(112==e){for(c.default.getInstance().play("item_pick_up"),S.active=!0,P.active=!1,H=0;H&lt;b.length;H++)b[H].active=!0,b[H].opacity=255,T[H].active=!0,T[H].opacity=255,D[H].active=!0,D[H].opacity=255;cc.tween(S).to(.6,{scale:1}).start(),cc.tween(w).delay(.8).call(function(){w.getChildByName("Cutnail").active=!0,w.getChildByName("Cutnail").getComponent(r.default).setActive(!0),w.getChildByName("Trimnail").getComponent(r.default).setActive(!0),w.getChildByName("Cutskin").getComponent(r.default).setActive(!0)}).to(.2,{position:cc.v3(200,-748.975)}).delay(.2).call(function(){a.node.getComponent(l.default).showArrow2(cc.find("Canvas/Side_Panel/Cutnail"))}).start()}else 113==e?(c.default.getInstance().play("item_pick_up"),B.active=!0,x.active=!1,I.getComponent(cc.Animation).play("Animation"),cc.tween(B).to(.6,{scale:1}).start(),cc.tween(w).delay(.8).call(function(){w.getChildByName("BugsTool").active=!0}).to(.2,{position:cc.v3(200,-748.975)}).delay(.2).call(function(){a.node.getComponent(l.default).showArrow2(cc.find("Canvas/Side_Panel/BugsTool"))}).start()):13==e?(c.default.getInstance().play("Towel_RUB",!0),c.default.getInstance().play("item_pick_up"),cc.tween(m).to(.3,{position:cc.v3(474.12,-12.671)}).start(),this.node.getComponent(l.default).showArrow2(k)):14==e?(c.default.getInstance().play("item_pick_up"),this.node.getComponent(l.default).showArrow2(O)):15==e?(c.default.getInstance().play("item_pick_up"),this.node.getComponent(l.default).showArrow2(M)):16==e?(c.default.getInstance().play("item_pick_up"),this.node.getComponent(l.default).showArrow2(M)):17==e&amp;&amp;(c.default.getInstance().play("item_pick_up"),this.node.getComponent(l.default).showArrow2(N))},e.prototype.TouchFixed=function(t,e,n,o){var i=this,a=cc.find("Canvas/Particles/Tool_Complete").children,p=cc.find("Canvas/Trash").children,u=0,d=cc.find("Canvas/Dustbin_Back"),h=cc.find("Canvas/Dustbin_Front"),f=cc.find("Canvas/Side_Panel"),g=cc.find("Canvas/Use_FoodBowl");if(this.node.getComponent(l.default).hideBlinkHand(),this.node.getComponent(l.default).hideArrow(),this.node.getComponent(l.default).hideHand(),p.forEach(function(t){0==t.active&amp;&amp;u++}),u&lt;7&amp;&amp;1==e){for(var y=0;y&lt;p.length;y++)p[y].active&amp;&amp;this.node.getComponent(l.default).showArrow2(p[y]);c.default.getInstance().play("Sparkle"),a[0].position=cc.v3(-311.427,-545.972),a[1].position=cc.v3(-311.427,-545.972),a[2].position=cc.v3(-311.427,-545.972),a[s.getRandomNumber(0,2)].getComponent(cc.ParticleSystem).resetSystem()}else if(7==u&amp;&amp;1==e){for(y=0;y&lt;p.length;y++)p[y].active&amp;&amp;this.node.getComponent(l.default).showArrow2(p[y]);c.default.getInstance().play("Sparkle"),this.greatingsSound(),a[0].position=cc.v3(-311.427,-545.972),a[1].position=cc.v3(-311.427,-545.972),a[2].position=cc.v3(-311.427,-545.972),a[s.getRandomNumber(0,2)].getComponent(cc.ParticleSystem).resetSystem(),cc.tween(d).delay(.3).to(.3,{position:cc.v3(-861.42,-545.972)}).start(),cc.tween(h).delay(.3).to(.3,{position:cc.v3(-861.699,-735.93762)}).start(),cc.tween(f).delay(1).to(.2,{position:cc.v3(200,-748.975)}).delay(.2).call(function(){i.node.getComponent(l.default).showArrow2(cc.find("Canvas/Side_Panel/Roomfrshner"))}).start()}15==e?(o.active=!0,o.getComponent(cc.Animation).play("DogFood"),cc.game.off(r.TOOLPICKER.MOVED,this.TouchMove,this),t.active=!1,this.scheduleOnce(function(){cc.find("Canvas/Particles/Tool_Complete/Tool_Complete_3").position=cc.v3(-311.427,-627.367),cc.find("Canvas/Particles/Tool_Complete/Tool_Complete_3").getComponent(cc.ParticleSystem).resetSystem(),c.default.getInstance().play("Sparkle")},2.54),cc.tween(g).delay(1).call(function(){g.getChildByName("1").active=!0}).delay(.27).call(function(){g.getChildByName("2").active=!0}).delay(.27).call(function(){g.getChildByName("3").active=!0}).delay(1).to(.4,{position:cc.v3(-210.404,-490.369)}).call(function(){i.puppy.setAnimation(0,"idle_eating",!1),i.greatingsSound(),cc.tween(g).delay(1.6).call(function(){g.getChildByName("3").active=!1}).delay(1).call(function(){g.getChildByName("2").active=!1}).delay(1).call(function(){g.getChildByName("1").active=!1}).start()}).delay(4.2).by(.2,{x:-800}).by(0,{y:-200}).delay(1).to(.4,{position:cc.v3(-312.7,-648.994)}).start(),cc.tween(o).delay(3.5).to(.3,{position:cc.v3(1084.259,0)}).start(),cc.tween(f).delay(3.5).to(.3,{position:cc.v3(1084.259,-748.975)}).call(function(){f.getChildByName("DogFood").active=!1,f.getChildByName("Waterjug").active=!0}).delay(5).to(.2,{position:cc.v3(200,-748.975)}).call(function(){i.node.getComponent(l.default).showArrow2(f.getChildByName("Waterjug"))}).start()):16==e&amp;&amp;(o.active=!0,o.getComponent(cc.Animation).play("WaterJug"),cc.game.off(r.TOOLPICKER.MOVED,this.TouchMove,this),t.active=!1,this.scheduleOnce(function(){c.default.getInstance().play("add_water",!0)},1),this.scheduleOnce(function(){c.default.getInstance().stop("add_water")},3.1),this.scheduleOnce(function(){cc.find("Canvas/Particles/Tool_Complete/Tool_Complete_2").position=cc.v3(-311.427,-627.367),cc.find("Canvas/Particles/Tool_Complete/Tool_Complete_2").getComponent(cc.ParticleSystem).resetSystem(),c.default.getInstance().play("Sparkle")},3.2),cc.tween(g).delay(1.06).call(function(){g.getChildByName("4").active=!0}).delay(.3).call(function(){g.getChildByName("5").active=!0}).delay(.3).call(function(){g.getChildByName("6").active=!0}).delay(.3).call(function(){g.getChildByName("7").active=!0}).delay(.3).call(function(){g.getChildByName("8").active=!0}).delay(.3).call(function(){g.getChildByName("9").active=!0}).delay(.8).to(.4,{position:cc.v3(-210.404,-490.369)}).call(function(){i.puppy.setAnimation(0,"idle_eating",!1),i.greatingsSound(),cc.tween(g).delay(1.2).call(function(){g.getChildByName("9").active=!1}).delay(.8).call(function(){g.getChildByName("8").active=!1}).delay(.8).call(function(){g.getChildByName("7").active=!1,g.getChildByName("6").active=!1}).delay(.8).call(function(){g.getChildByName("5").active=!1,g.getChildByName("4").active=!1}).start()}).delay(4.2).by(.2,{x:-800}).start(),cc.tween(o).delay(3.5).to(.3,{position:cc.v3(1084.259,-748.975)}).start(),cc.tween(f).delay(3.5).to(.3,{position:cc.v3(1084.259,-748.975)}).call(function(){f.getChildByName("Waterjug").active=!1,f.getChildByName("Scissor").active=!0}).delay(5).to(.2,{position:cc.v3(200,-748.975)}).call(function(){i.node.getComponent(l.default).showArrow2(cc.find("Canvas/Side_Panel/Scissor"))}).start())},e.prototype.TouchMove=function(t,e,n,o){var i=this,a=cc.find("Canvas/Particles/Tool_Complete").children,p=cc.find("Canvas/Side_Panel"),u=cc.find("Canvas/Progress_bar"),d=cc.find("Canvas/Progress_bar/Bar"),h=cc.find("Canvas/Elements/Dirt").children,f=cc.find("Canvas/Elements/Cuts").children,g=cc.find("Canvas/Elements/Injury").children,y=cc.find("Canvas/Nail_Popup/Full nail").children,v=cc.find("Canvas/UseIteam/Cut_Nail-fall"),m=cc.find("Canvas/Nail_Popup/Half cut nail").children,_=cc.find("Canvas/Nail_Popup/Nail_Extraskin").children,S=cc.find("Canvas/UseIteam/extraSkinFall"),C=cc.find("Canvas/Nail_Popup"),w=cc.find("Canvas/Nail_Dummy 2"),P=cc.find("Canvas/Ear_dummy"),A=cc.find("Canvas/Ear_Popup/Bug").children,b=cc.find("Canvas/UseIteam/Use_BugTool2"),T=cc.find("Canvas/UseIteam/Use_BugTool1"),D=cc.find("Canvas/EarDrop_dummy"),O=cc.find("Canvas/Ear_Popup"),B=cc.find("Canvas/Elements/Nosedrop"),x=cc.find("Canvas/Temp_Dummy"),I=cc.find("Canvas/Use_FoodBowl"),E=cc.find("Canvas/Tail_dummy"),M=cc.find("Canvas/Tail_dummy/Tail_Particle");if(2==e)d.getComponent(cc.Sprite).fillRange+=.0018,1==d.getComponent(cc.Sprite).fillRange&amp;&amp;255==o.opacity&amp;&amp;(o.opacity=254,c.default.getInstance().stop("Spray"),this.greatingsSound(),cc.find("Canvas/Particles/fregnace_particles").getComponent(cc.ParticleSystem).stopSystem(),cc.tween(o).to(.2,{position:cc.v3(-1157.87,7.103)}).call(function(){c.default.getInstance().play("item_back_to_place"),o.active=!1,t.getComponent(r.default).setActive(!1)}).start(),cc.tween(u).delay(.5).to(.2,{position:cc.v3(634.903,-12.671)}).start(),cc.tween(p).delay(.5).to(.2,{position:cc.v3(1084.259,-748.975)}).call(function(){p.getChildByName("Roomfrshner").active=!1,p.getChildByName("Spounge").active=!0,d.getComponent(cc.Sprite).fillRange=0}).to(.2,{position:cc.v3(200,-748.975)}).delay(.2).call(function(){i.node.getComponent(l.default).showArrow2(cc.find("Canvas/Side_Panel/Spounge"))}).start());else if(3==e)h.forEach(function(e){if(o.getBoundingBoxToWorld().intersects(e.getBoundingBoxToWorld())&amp;&amp;e.opacity&gt;0){i.node.getComponent(l.default).hideBlinkHand(),i.node.getComponent(l.default).hideArrow(),i.node.getComponent(l.default).hideHand(),e.opacity-=2.5;for(var n=0;n&lt;h.length;n++)0==h[n].opacity&amp;&amp;i.node.getComponent(l.default).hideBlinkHand();d.getComponent(cc.Sprite).fillRange+=.001244,1==d.getComponent(cc.Sprite).fillRange&amp;&amp;0==e.opacity&amp;&amp;(e.opacity=0,i.node.getComponent(l.default).hideBlinkHand(),cc.find("Canvas/UseIteam/Use_sponge/Dust_Particle").getComponent(cc.ParticleSystem).stopSystem(),c.default.getInstance().stop("spongerub"),cc.tween(o).to(.2,{position:cc.v3(-1157.87,7.103)}).call(function(){o.active=!1,cc.find("Canvas/Particles/Tool_Complete/Tool_Complete_3").position=cc.v3(45.458,-248.412),cc.find("Canvas/Particles/Tool_Complete/Tool_Complete_3").getComponent(cc.ParticleSystem).resetSystem(),c.default.getInstance().play("Sparkle"),c.default.getInstance().play("item_back_to_place"),t.getComponent(r.default).setActive(!1)}).start(),cc.tween(u).delay(.5).to(.2,{position:cc.v3(634.903,-12.671)}).start(),cc.tween(p).delay(.5).to(.2,{position:cc.v3(1084.259,-748.975)}).call(function(){p.getChildByName("Spounge").active=!1,p.getChildByName("AntisepticCream").active=!0,d.getComponent(cc.Sprite).fillRange=0}).to(.2,{position:cc.v3(200,-748.975)}).delay(.2).call(function(){i.node.getComponent(l.default).showArrow2(cc.find("Canvas/Side_Panel/AntisepticCream"))}).start())}});else if(4==e){this.dummy.position=cc.v3(o.x+150,o.y-50);for(var k=function(e){if(N.dummy.getBoundingBoxToWorld().intersects(g[e].getBoundingBoxToWorld())&amp;&amp;255==g[e].opacity)return N.node.getComponent(l.default).hideBlinkHand(),N.node.getComponent(l.default).hideArrow(),N.node.getComponent(l.default).hideHand(),g[e].opacity=254,g[e].children[0].active=!0,g[e].children[1].active=!0,g[e].getComponent(cc.Animation).play("Cream"+(e+1)),t.getComponent(r.default).setActive(!1),c.default.getInstance().play("NEW_CreamSFX"),cc.game.off(r.TOOLPICKER.MOVED,N.TouchMove,N),o.active=!1,t.active=!1,cc.tween(t).delay(1.5).call(function(){c.default.getInstance().play("Sparkle"),a.forEach(function(n){n.position=g[e].position,i.node.getComponent(l.default).showArrow2(t)}),a[s.getRandomNumber(0,2)].getComponent(cc.ParticleSystem).resetSystem(),i.greatingsSound(),c.default.getInstance().play("item_back_to_place"),t.getComponent(r.default).setActive(!0),t.active=!0,g[e].children[1].active=!1,i.counter++,i.node.getComponent(l.default).hideBlinkHand(),4==i.counter&amp;&amp;(t.getComponent(r.default).setActive(!1),o.active=!1,i.counter=0,i.node.getComponent(l.default).hideBlinkHand(),i.node.getComponent(l.default).hideArrow(),i.node.getComponent(l.default).hideHand(),cc.tween(p).delay(.5).to(.2,{position:cc.v3(1084.259,-748.975)}).call(function(){p.getChildByName("AntisepticCream").active=!1,p.getChildByName("Cotton").active=!0}).to(.2,{position:cc.v3(200,-748.975)}).call(function(){i.node.getComponent(l.default).showArrow2(cc.find("Canvas/Side_Panel/Cotton"))}).start())}).start(),"break"},N=this,H=0;H&lt;g.length&amp;&amp;"break"!==k(H);H++);}else if(5==e)g.forEach(function(e){o.getBoundingBoxToWorld().intersects(e.getBoundingBoxToWorld())&amp;&amp;e.opacity&gt;0&amp;&amp;(i.node.getComponent(l.default).hideBlinkHand(),i.node.getComponent(l.default).hideArrow(),i.node.getComponent(l.default).hideHand(),e.opacity-=1.6,d.getComponent(cc.Sprite).fillRange+=.0018,console.log(d.getComponent(cc.Sprite).fillRange),0==e.opacity&amp;&amp;(i.node.getComponent(l.default).hideBlinkHand(),c.default.getInstance().play("Sparkle"),a.forEach(function(t){t.position=e.position}),a[s.getRandomNumber(0,2)].getComponent(cc.ParticleSystem).resetSystem()),1==d.getComponent(cc.Sprite).fillRange&amp;&amp;(c.default.getInstance().stop("Towel_RUB"),e.opacity=0,cc.tween(o).to(.2,{position:cc.v3(-1157.87,7.103)}).call(function(){i.greatingsSound(),c.default.getInstance().play("item_back_to_place"),o.active=!1,t.getComponent(r.default).setActive(!1)}).start(),cc.tween(u).delay(.5).to(.2,{position:cc.v3(634.903,-12.671)}).start(),cc.tween(p).delay(.5).to(.2,{position:cc.v3(1084.259,-748.975)}).call(function(){p.getChildByName("Cotton").active=!1,p.getChildByName("Bandage").active=!0,d.getComponent(cc.Sprite).fillRange=0}).to(.2,{position:cc.v3(200,-748.975)}).call(function(){i.node.getComponent(l.default).showArrow2(cc.find("Canvas/Side_Panel/Bandage"))}).start()))});else if(6==e){this.dummy.position=cc.v3(o.x,o.y);var R=function(e){if(L.dummy.getBoundingBoxToWorld().intersects(f[e].getBoundingBoxToWorld())&amp;&amp;255==f[e].opacity)return f[e].opacity=254,L.node.getComponent(l.default).hideBlinkHand(),f[e].children[0].active=!0,L.node.getComponent(l.default).showArrow2(t),c.default.getInstance().play("Sparkle"),a.forEach(function(t){t.position=f[e].position}),a[s.getRandomNumber(0,2)].getComponent(cc.ParticleSystem).resetSystem(),t.getComponent(r.default).setActive(!1),o.active=!1,cc.game.off(r.TOOLPICKER.MOVED,L.TouchMove,L),cc.tween(t).delay(.5).call(function(){t.getComponent(r.default).setActive(!0),i.counter++,3==i.counter&amp;&amp;(i.counter=0,i.node.getComponent(l.default).hideBlinkHand(),i.node.getComponent(l.default).hideArrow(),i.node.getComponent(l.default).hideHand(),i.greatingsSound(),t.getComponent(r.default).setActive(!1),cc.tween(p).delay(.5).to(.2,{position:cc.v3(1084.259,-748.975)}).delay(.5).call(function(){c.default.getInstance().play("ClockSound",!0),cc.find("Canvas/WatchBg").active=!0;var t=cc.find("Canvas/Watch");t.active=!0,t.getComponent(cc.Animation).play("Clock")}).delay(2.32).call(function(){c.default.getInstance().stop("ClockSound"),cc.find("Canvas/WatchBg").active=!1,cc.find("Canvas/Watch").active=!1,p.getChildByName("Bandage").active=!1;for(var t=0;t&lt;=2;t++)f[t].children[0].getComponent(r.default).setActive(!0),i.node.getComponent(l.default).showArrow2(f[t])}).start())}).start(),"break"},L=this;for(H=0;H&lt;f.length&amp;&amp;"break"!==R(H);H++);}else if(7==e){for(this.dummy.position=cc.v3(o.x-150,o.y+50),H=0;H&lt;y.length;H++)if(this.dummy.getBoundingBoxToWorld().intersects(y[H].getBoundingBoxToWorld())&amp;&amp;255==y[H].opacity){y[H].opacity=254,this.node.getComponent(l.default).hideArrow(),c.default.getInstance().play("nail_clipper");var F=s.getNodePosition(v,y[H]);v.position=cc.v3(F),y[H].active=!1,cc.tween(v).to(.8,{position:cc.v3(F.x,-1641.109)}).start(),this.counter++,3==this.counter&amp;&amp;(c.default.getInstance().play("item_back_to_place"),this.counter=0,o.active=!1,t.getComponent(r.default).setActive(!1),cc.tween(p).call(function(){i.greatingsSound()}).delay(.5).to(.2,{position:cc.v3(1084.259,-748.975)}).call(function(){p.getChildByName("Cutnail").active=!1,p.getChildByName("Trimnail").active=!0,d.getComponent(cc.Sprite).fillRange=0}).to(.2,{position:cc.v3(200,-748.975)}).call(function(){i.node.getComponent(l.default).showArrow2(cc.find("Canvas/Side_Panel/Trimnail"))}).start())}}else if(8==e){var j=function(e){if(o.getBoundingBoxToWorld().intersects(m[e].getBoundingBoxToWorld())&amp;&amp;0!=m[e].opacity)return m[e].opacity&gt;5?(m[e].opacity-=2.5,W.node.getComponent(l.default).hideArrow(),d.getComponent(cc.Sprite).fillRange+=.00344):(m[e].opacity=0,c.default.getInstance().play("Sparkle"),a.forEach(function(t){var n=s.getNodePosition(t,m[e]);t.position=cc.v3(n.x,n.y)}),a[s.getRandomNumber(0,2)].getComponent(cc.ParticleSystem).resetSystem(),W.counter++,console.log("p4...-"+W.counter),3==W.counter&amp;&amp;(W.counter=0,console.log("p3...-"+W.counter+"-p3"),t.getComponent(r.default).setActive(!1),d.getComponent(cc.Sprite).fillRange=1,c.default.getInstance().stop("Nail_Filer"),cc.tween(o).to(.2,{position:cc.v3(-1157.87,7.103)}).call(function(){c.default.getInstance().play("item_back_to_place"),o.active=!1}).start(),cc.tween(u).delay(.5).to(.2,{position:cc.v3(634.903,-12.671)}).start(),cc.tween(p).delay(.5).to(.2,{position:cc.v3(1084.259,-748.975)}).call(function(){i.greatingsSound(),p.getChildByName("Trimnail").active=!1,p.getChildByName("Cutskin").active=!0,d.getComponent(cc.Sprite).fillRange=0}).to(.2,{position:cc.v3(200,-748.975)}).delay(.2).call(function(){i.node.getComponent(l.default).showArrow2(cc.find("Canvas/Side_Panel/Cutskin"))}).start())),"break"},W=this;for(H=0;H&lt;m.length&amp;&amp;"break"!==j(H);H++);}else if(9==e)for(this.dummy.position=cc.v3(o.x-130,o.y+140),H=0;H&lt;_.length;H++)this.dummy.getBoundingBoxToWorld().intersects(_[H].getBoundingBoxToWorld())&amp;&amp;255==_[H].opacity&amp;&amp;(_[H].opacity=254,this.node.getComponent(l.default).hideArrow(),c.default.getInstance().play("nail_clipper"),F=s.getNodePosition(S,_[H]),S.position=cc.v3(F),_[H].active=!1,cc.tween(S).to(.8,{position:cc.v3(F.x,-1641.109)}).start(),this.counter++,3==this.counter&amp;&amp;(this.counter=0,c.default.getInstance().play("item_back_to_place"),o.active=!1,t.getComponent(r.default).setActive(!1),cc.tween(p).delay(.5).call(function(){i.greatingsSound()}).to(.2,{position:cc.v3(1084.259,-748.975)}).call(function(){if(p.getChildByName("Cutskin").active=!1,cc.tween(C).to(.6,{scale:1e-6}).start(),0==i.counter2){w.active=!0;for(var t=1;t&lt;=3;t++)s.ShowSlotSpine(i.puppy,"Cut_nail_Right_"+t),s.HideSlotSpine(i.puppy,"Nail_Right_"+t),s.HideSlotSpine(i.puppy,"extra_skin_Right_"+t),cc.tween(C).delay(.3).call(function(){i.node.getComponent(l.default).showArrow2(w)}).start();i.counter2++}else if(1==i.counter2){for(var e=1;e&lt;=3;e++)s.ShowSlotSpine(i.puppy,"Cut_nail_Back_"+e),s.HideSlotSpine(i.puppy,"extra_skin_Back_"+e),s.HideSlotSpine(i.puppy,"Nail_Back_"+e);P.active=!0,P.getComponent(r.default).setActive(!0),i.node.getComponent(l.default).showArrow2(P,0,-50)}}).start()));else if(10==e)for(this.dummy.position=cc.v3(o.x-220,o.y-100),H=0;H&lt;A.length;H++)this.dummy.getBoundingBoxToWorld().intersects(A[H].getBoundingBoxToWorld())&amp;&amp;255==A[H].opacity&amp;&amp;0==this.plackBug?(this.node.getComponent(l.default).hideBlinkHand(),this.node.getComponent(l.default).hideArrow(),this.node.getComponent(l.default).hideHand(),A[H].opacity=254,A[H].active=!1,o.getComponent(cc.Sprite).spriteFrame=b.getComponent(cc.Sprite).spriteFrame,this.plackBug=1,c.default.getInstance().play("Germ_kill_4")):this.dummy.getBoundingBoxToWorld().intersects(p.getBoundingBoxToWorld())&amp;&amp;1==this.plackBug?(this.plackBug=0,this.node.getComponent(l.default).hideArrow(),o.getComponent(cc.Sprite).spriteFrame=T.getComponent(cc.Sprite).spriteFrame,p.getChildByName("Bug_1").active?p.getChildByName("Bug_2").active||(p.getChildByName("Bug_2").active=!0):p.getChildByName("Bug_1").active=!0,this.counter++):2==this.counter&amp;&amp;(this.counter=0,o.active=!1,t.getComponent(r.default).setActive(!1),cc.tween(p).delay(.5).call(function(){i.greatingsSound()}).to(.2,{position:cc.v3(1084.259,-748.975)}).call(function(){p.getChildByName("BugsTool").active=!1,p.getChildByName("Eardrop").active=!0,p.getChildByName("Bug_1").active=!1,p.getChildByName("Bug_2").active=!1,D.active=!1}).to(.2,{position:cc.v3(200,-748.975)}).delay(.2).call(function(){i.node.getComponent(l.default).showArrow2(cc.find("Canvas/Side_Panel/Eardrop"))}).start());else 12==e?o.getBoundingBoxToWorld().intersects(D.getBoundingBoxToWorld())&amp;&amp;(this.node.getComponent(l.default).hideBlinkHand(),this.node.getComponent(l.default).hideArrow(),this.node.getComponent(l.default).hideHand(),o.getComponent(cc.Animation).play("EarDrop"),this.scheduleOnce(function(){c.default.getInstance().play("Key_Drop_IN_Water2")},.9),this.scheduleOnce(function(){cc.find("Canvas/Particles/Tool_Complete/Tool_Complete_2").position=cc.v3(0,0),cc.find("Canvas/Particles/Tool_Complete/Tool_Complete_2").getComponent(cc.ParticleSystem).resetSystem(),c.default.getInstance().play("Sparkle"),i.greatingsSound()},1.2),cc.game.off(r.TOOLPICKER.MOVED,this.TouchMove,this),t.active=!1,this.scheduleOnce(function(){cc.tween(o).by(.5,{x:1e3}).start(),cc.tween(p).by(.5,{x:1e3}).call(function(){D.active=!1,i.node.getComponent(l.default).hideArrow()}).start()},s.calculateAnimationDuration(o,"EarDrop")),cc.tween(O).delay(2.5).to(.6,{scale:1e-4}).start,cc.tween(p).delay(3.5).call(function(){p.getChildByName("Tissue").active=!0,p.getChildByName("Tissue copy").active=!0,O.active=!1}).to(.2,{position:cc.v3(200,-748.975)}).delay(.2).call(function(){i.node.getComponent(l.default).showArrow2(cc.find("Canvas/Side_Panel/Tissue"))}).start()):13==e?o.getBoundingBoxToWorld().intersects(B.getBoundingBoxToWorld())&amp;&amp;(this.node.getComponent(l.default).hideArrow(),B.opacity-=1,d.getComponent(cc.Sprite).fillRange+=.004,1==d.getComponent(cc.Sprite).fillRange&amp;&amp;255==o.opacity&amp;&amp;(o.opacity=254,B.opacity=0,c.default.getInstance().stop("Towel_RUB"),cc.tween(o).to(.2,{position:cc.v3(-1157.87,7.103)}).call(function(){o.active=!1,cc.find("Canvas/Particles/Tool_Complete/Tool_Complete_1").position=cc.v3(-126.376,-54.161),cc.find("Canvas/Particles/Tool_Complete/Tool_Complete_1").getComponent(cc.ParticleSystem).resetSystem(),c.default.getInstance().play("Sparkle"),c.default.getInstance().play("item_back_to_place"),t.getComponent(r.default).setActive(!1)}).start(),cc.tween(u).delay(.5).to(.2,{position:cc.v3(634.903,-12.671)}).start(),cc.tween(p).delay(.5).to(.2,{position:cc.v3(1084.259,-748.975)}).call(function(){i.greatingsSound(),p.getChildByName("Tissue").active=!1,p.getChildByName("Tissue copy").active=!1,p.getChildByName("Temprature").active=!0,d.getComponent(cc.Sprite).fillRange=0}).to(.2,{position:cc.v3(200,-748.975)}).call(function(){i.node.getComponent(l.default).showArrow2(cc.find("Canvas/Side_Panel/Temprature"))}).start())):14==e?(x.active=!0,o.getBoundingBoxToWorld().intersects(x.getBoundingBoxToWorld())&amp;&amp;(this.node.getComponent(l.default).hideArrow(),o.getComponent(cc.Animation).play("Temp"),this.scheduleOnce(function(){c.default.getInstance().play("beep_01",!0)},1),this.scheduleOnce(function(){c.default.getInstance().stop("beep_01")},2.5),this.scheduleOnce(function(){cc.find("Canvas/Particles/Tool_Complete/Tool_Complete_1").position=cc.v3(-117.349,-139.916),cc.find("Canvas/Particles/Tool_Complete/Tool_Complete_1").getComponent(cc.ParticleSystem).resetSystem(),i.greatingsSound(),c.default.getInstance().play("Sparkle")},3.5),cc.game.off(r.TOOLPICKER.MOVED,this.TouchMove,this),t.active=!1,o.getChildByName("label").active=!0,x.active=!1,cc.tween(o).delay(4.5).to(.2,{position:cc.v3(1084.259,-748.975)}).call(function(){o.active=!1}).start(),cc.tween(p).delay(4.5).to(.2,{position:cc.v3(1084.259,-748.975)}).call(function(){p.getChildByName("Temprature").active=!1,o.active=!1,p.getChildByName("DogFood").active=!0}).to(.2,{position:cc.v3(200,-748.975)}).call(function(){i.node.getComponent(l.default).showArrow2(cc.find("Canvas/Side_Panel/DogFood"))}).start(),cc.tween(I).delay(5).to(.2,{position:cc.v3(-312.8,-648.994)}).start())):17==e&amp;&amp;(this.dummy.position=cc.v3(o.x+150,o.y+100),E.active=!0,this.dummy.getBoundingBoxToWorld().intersects(E.getBoundingBoxToWorld())&amp;&amp;(M.getComponent(cc.ParticleSystem).resetSystem(),this.node.getComponent(l.default).hideArrow(),t.getComponent(r.default).setActive(!1),t.active=!1,this.scheduleOnce(function(){c.default.getInstance().play("snd_scissor_cut",!0)},.5),this.scheduleOnce(function(){c.default.getInstance().stop("snd_scissor_cut")},2.8),cc.tween(p).delay(3).call(function(){M.active=!1,t.active=!0,o.active=!1,cc.find("Canvas/Particles/Tool_Complete/Tool_Complete_2").position=cc.v3(243.726,-352.047),cc.find("Canvas/Particles/Tool_Complete/Tool_Complete_2").getComponent(cc.ParticleSystem).resetSystem(),c.default.getInstance().play("Sparkle");for(var e=1;e&lt;=3;e++)s.HideSlotSpine(i.puppy,"RV_Tail_Hair_"+e)}).delay(1).to(.2,{position:cc.v3(1084.259,-748.975)}).call(function(){p.getChildByName("Scissor").active=!1,i.greatingsSound()}).delay(1).call(function(){cc.find("Canvas/nextBtn").active=!0,cc.find("Canvas/Particles/Level_complete").getComponent(cc.ParticleSystem).resetSystem(),c.default.getInstance().play("View_Done_Particle")}).start()))},e.prototype.TouchEnd=function(t,e,n,o){var i=this,a=cc.find("Canvas/Trash").children,s=cc.find("Canvas/Nail_Popup/Full nail").children,p=cc.find("Canvas/Progress_bar/Bar"),u=cc.find("Canvas/Elements/Cuts").children,d=cc.find("Canvas/Side_Panel"),h=cc.find("Canvas/UseIteam/Use_BugTool1"),f=cc.find("Canvas/EarDrop_dummy"),g=cc.find("Canvas/Nail_Popup/Half cut nail").children,y=cc.find("Canvas/Nail_Popup/Nail_Extraskin").children,v=cc.find("Canvas/Elements/Injury").children;if(this.node.getComponent(l.default).hideBlinkHand(),this.node.getComponent(l.default).hideArrow(),this.node.getComponent(l.default).hideHand(),1==e){c.default.getInstance().play("item_back_to_place");for(var m=0;m&lt;a.length;m++)a[m].active&amp;&amp;this.node.getComponent(l.default).showArrow2(a[m])}else if(2==e)cc.find("Canvas/Particles/fregnace_particles").getComponent(cc.ParticleSystem).stopSystem(),c.default.getInstance().stop("Spray"),c.default.getInstance().play("item_back_to_place"),1!=p.getComponent(cc.Sprite).fillRange&amp;&amp;this.node.getComponent(l.default).showArrow2(cc.find("Canvas/Side_Panel/Roomfrshner"));else if(3==e)cc.find("Canvas/UseIteam/Use_sponge/Dust_Particle").getComponent(cc.ParticleSystem).stopSystem(),1!=p.getComponent(cc.Sprite).fillRange&amp;&amp;this.node.getComponent(l.default).showArrow2(t),c.default.getInstance().stop("spongerub"),c.default.getInstance().play("item_back_to_place");else if(4==e)for(c.default.getInstance().play("item_back_to_place"),m=0;m&lt;v.length;m++)255==v[m].opacity&amp;&amp;this.node.getComponent(l.default).showArrow2(t);else if(5==e)c.default.getInstance().play("item_back_to_place"),c.default.getInstance().stop("Towel_RUB"),1!=p.getComponent(cc.Sprite).fillRange&amp;&amp;this.node.getComponent(l.default).showArrow2(t);else if(6==e)for(c.default.getInstance().play("item_back_to_place"),m=0;m&lt;u.length;m++)255==u[m].opacity&amp;&amp;this.node.getComponent(l.default).showBlinkHand(t);else if(7==e)for(c.default.getInstance().play("item_back_to_place"),m=0;m&lt;s.length;m++)s[m].opacity&gt;254&amp;&amp;this.node.getComponent(l.default).showArrow2(s[m]);else if(8==e)for(c.default.getInstance().stop("Nail_Filer"),c.default.getInstance().play("item_back_to_place"),this.scheduleOnce(function(){t.getComponent(r.default).setActive(!0)},.25),m=0;m&lt;g.length;m++)0!=g[m].opacity&amp;&amp;this.node.getComponent(l.default).showArrow2(g[m]);else if(9==e)for(c.default.getInstance().play("item_back_to_place"),m=0;m&lt;y.length;m++)y[m].opacity&gt;254&amp;&amp;this.node.getComponent(l.default).showArrow2(y[m]);else 10==e?(c.default.getInstance().play("item_back_to_place"),this.node.getComponent(l.default).showArrow2(cc.find("Canvas/Side_Panel/BugsTool")),1==this.plackBug&amp;&amp;(o.getComponent(cc.Sprite).spriteFrame=h.getComponent(cc.Sprite).spriteFrame,d.getChildByName("Bug_1").active?d.getChildByName("Bug_2").active||(d.getChildByName("Bug_2").active=!0):d.getChildByName("Bug_1").active=!0,this.plackBug=0,this.counter++,2==this.counter&amp;&amp;(this.counter=0,o.active=!1,t.getComponent(r.default).setActive(!1),cc.tween(d).delay(.5).to(.2,{position:cc.v3(1084.259,-748.975)}).call(function(){d.getChildByName("BugsTool").active=!1,d.getChildByName("Eardrop").active=!0,d.getChildByName("Bug_1").active=!1,d.getChildByName("Bug_2").active=!1,f.active=!1,i.node.getComponent(l.default).hideArrow()}).to(.2,{position:cc.v3(200,-748.975)}).start()))):12==e?(c.default.getInstance().play("item_back_to_place"),this.node.getComponent(l.default).showArrow2(cc.find("Canvas/Side_Panel/Eardrop"))):13==e?(c.default.getInstance().play("item_back_to_place"),c.default.getInstance().stop("Towel_RUB"),this.node.getComponent(l.default).showArrow2(cc.find("Canvas/Side_Panel/Tissue"))):14==e?(c.default.getInstance().play("item_back_to_place"),this.node.getComponent(l.default).showArrow2(cc.find("Canvas/Side_Panel/Temprature"))):15==e?(c.default.getInstance().play("item_back_to_place"),this.node.getComponent(l.default).showArrow2(cc.find("Canvas/Side_Panel/DogFood"))):16==e?(c.default.getInstance().play("item_back_to_place"),this.node.getComponent(l.default).showArrow2(cc.find("Canvas/Side_Panel/Waterjug"))):17==e&amp;&amp;(c.default.getInstance().play("item_back_to_place"),this.node.getComponent(l.default).showArrow2(cc.find("Canvas/Side_Panel/Scissor")))},e.prototype.greatingsSound=function(){1==this.counter3?(c.default.getInstance().play("Appriciation_good_job"),this.counter3=2):2==this.counter3?(c.default.getInstance().play("Appriciation_Superb"),this.counter3=3):3==this.counter3?(c.default.getInstance().play("Appriciation_Well_Done"),this.counter3=4):4==this.counter3&amp;&amp;(c.default.getInstance().play("Appriciation_perfect"),this.counter3=1)},e.prototype.PuppySpine=function(){s.HideSlotSpine(this.puppy,"Tel"),s.HideSlotSpine(this.puppy,"body"),s.HideSlotSpine(this.puppy,"R_Leg_1"),s.HideSlotSpine(this.puppy,"R_Leg_2"),s.HideSlotSpine(this.puppy,"L_Leg_1"),s.HideSlotSpine(this.puppy,"L_Leg_2"),s.HideSlotSpine(this.puppy,"Cut_nail_Back_1"),s.HideSlotSpine(this.puppy,"Cut_nail_Back_2"),s.HideSlotSpine(this.puppy,"Cut_nail_Back_3"),s.HideSlotSpine(this.puppy,"Nail_Back_1"),s.HideSlotSpine(this.puppy,"Nail_Back_2"),s.HideSlotSpine(this.puppy,"Nail_Back_3");for(var t=1;t&lt;=8;t++)s.HideSlotSpine(this.puppy,"Dress_"+t);for(s.HideSlotSpine(this.puppy,"Dress_1_L"),s.HideSlotSpine(this.puppy,"Dress_7_L"),s.HideSlotSpine(this.puppy,"Dress_8_L"),s.HideSlotSpine(this.puppy,"Dress_1_R"),s.HideSlotSpine(this.puppy,"Dress_7_R"),s.HideSlotSpine(this.puppy,"Dress_8_R"),s.HideSlotSpine(this.puppy,"Dress_4_up"),s.HideSlotSpine(this.puppy,"Dress_5_up"),t=1;t&lt;=8;t++)s.HideSlotSpine(this.puppy,"Necklace_"+t);for(s.HideSlotSpine(this.puppy,"White_eye_part"),s.HideSlotSpine(this.puppy,"R_eyelance"),s.HideSlotSpine(this.puppy,"L_eyelance"),s.HideSlotSpine(this.puppy,"Face"),s.HideSlotSpine(this.puppy,"Tattoo"),s.HideSlotSpine(this.puppy,"Mouth"),s.HideSlotSpine(this.puppy,"Happy_lips"),s.HideSlotSpine(this.puppy,"Normal_lips"),s.HideSlotSpine(this.puppy,"Sad_lips"),s.HideSlotSpine(this.puppy,"R_ear_1"),s.HideSlotSpine(this.puppy,"R_ear_2"),s.HideSlotSpine(this.puppy,"L_ear_1"),s.HideSlotSpine(this.puppy,"L_ear_2"),s.HideSlotSpine(this.puppy,"Blink_1"),s.HideSlotSpine(this.puppy,"Blink_2"),t=1;t&lt;=2;t++)s.HideSlotSpine(this.puppy,"Nail_Left_"+t);for(t=1;t&lt;=3;t++)s.HideSlotSpine(this.puppy,"Nail_Right_"+t);for(t=1;t&lt;=3;t++)s.HideSlotSpine(this.puppy,"Cut_nail_Right_"+t);for(t=1;t&lt;=2;t++)s.HideSlotSpine(this.puppy,"Cut_nail_Left_"+t);for(t=1;t&lt;=3;t++)s.HideSlotSpine(this.puppy,"extra_skin_Back_"+t);for(t=1;t&lt;=3;t++)s.HideSlotSpine(this.puppy,"extra_skin_Right_"+t);for(t=1;t&lt;=17;t++)s.HideSlotSpine(this.puppy,"Hair_"+t);for(t=1;t&lt;=3;t++)s.HideSlotSpine(this.puppy,"RV_Tail_Hair_"+t);for(t=1;t&lt;=7;t++)s.HideSlotSpine(this.puppy,"Tongue_"+t);for(t=1;t&lt;=8;t++)s.HideSlotSpine(this.puppy,"Goggles_"+t);for(t=1;t&lt;=8;t++)s.HideSlotSpine(this.puppy,"Cap_"+t);for(s.HideSlotSpine(this.puppy,"Eating_lips"),s.ShowSlotSpine(this.puppy,"Tel"),s.ShowSlotSpine(this.puppy,"body"),s.ShowSlotSpine(this.puppy,"R_Leg_1"),s.ShowSlotSpine(this.puppy,"R_Leg_2"),s.ShowSlotSpine(this.puppy,"L_Leg_1"),s.ShowSlotSpine(this.puppy,"L_Leg_2"),s.ShowSlotSpine(this.puppy,"Nail_Back_1"),s.ShowSlotSpine(this.puppy,"Nail_Back_2"),s.ShowSlotSpine(this.puppy,"Nail_Back_3"),s.ShowSlotSpine(this.puppy,"White_eye_part"),s.ShowSlotSpine(this.puppy,"R_eyelance"),s.ShowSlotSpine(this.puppy,"L_eyelance"),s.ShowSlotSpine(this.puppy,"Face"),s.ShowSlotSpine(this.puppy,"Mouth"),s.ShowSlotSpine(this.puppy,"Happy_lips"),s.ShowSlotSpine(this.puppy,"Normal_lips"),s.ShowSlotSpine(this.puppy,"Sad_lips"),s.ShowSlotSpine(this.puppy,"R_ear_1"),s.ShowSlotSpine(this.puppy,"R_ear_2"),s.ShowSlotSpine(this.puppy,"L_ear_1"),s.ShowSlotSpine(this.puppy,"L_ear_2"),s.ShowSlotSpine(this.puppy,"Blink_1"),s.ShowSlotSpine(this.puppy,"Blink_2"),t=1;t&lt;=2;t++)s.ShowSlotSpine(this.puppy,"Cut_nail_Left_"+t);for(t=1;t&lt;=3;t++)s.ShowSlotSpine(this.puppy,"Nail_Right_"+t);for(t=1;t&lt;=3;t++)s.ShowSlotSpine(this.puppy,"extra_skin_Back_"+t);for(t=1;t&lt;=3;t++)s.ShowSlotSpine(this.puppy,"extra_skin_Right_"+t);for(t=1;t&lt;=3;t++)s.ShowSlotSpine(this.puppy,"RV_Tail_Hair_"+t);for(t=1;t&lt;=7;t++)s.ShowSlotSpine(this.puppy,"Tongue_"+t)},a([d(sp.Skeleton)],e.prototype,"puppy",void 0),a([d(cc.Node)],e.prototype,"dummy",void 0),a([u],e)}(cc.Component);n.default=h,cc._RF.pop()},{"../../../Aoneup-lib/Scripts/AudioManager/AudioManager":"AudioManager","../../../Aoneup-lib/Scripts/HelperTools/ExportHelper":"ExportHelper","../../../Aoneup-lib/Scripts/ToolPicker/ToolPicker":"ToolPicker","../../Common/Script/HintAnimation":"HintAnimation"}],"level - 4":[function(t,e,n){"use strict";cc._RF.push(e,"34daezLpWJFUq+2KI7EzWM0","level - 4");var o,i=this&amp;&amp;this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&amp;&amp;(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&amp;&amp;this.__decorate||function(t,e,n,o){var i,a=arguments.length,c=a&lt;3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s&gt;=0;s--)(i=t[s])&amp;&amp;(c=(a&lt;3?i(c):a&gt;3?i(e,n,c):i(e,n))||c);return a&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(e,n,c),c},c=this&amp;&amp;this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))(function(i,a){function c(t){try{r(o.next(t))}catch(e){a(e)}}function s(t){try{r(o.throw(t))}catch(e){a(e)}}function r(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(c,s)}r((o=o.apply(t,e||[])).next())})},s=this&amp;&amp;this.__generator||function(t,e){var n,o,i,a,c={label:0,sent:function(){if(1&amp;i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&amp;&amp;(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return r([t,e])}}function r(a){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,o&amp;&amp;(i=2&amp;a[0]?o.return:a[0]?o.throw||((i=o.return)&amp;&amp;i.call(o),0):o.next)&amp;&amp;!(i=i.call(o,a[1])).done)return i;switch(o=0,i&amp;&amp;(a=[2&amp;a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++,o=a[1],a=[0];continue;case 7:a=c.ops.pop(),c.trys.pop();continue;default:if(!(i=(i=c.trys).length&gt;0&amp;&amp;i[i.length-1])&amp;&amp;(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&amp;&amp;(!i||a[1]&gt;i[0]&amp;&amp;a[1]&lt;i[3])){c.label=a[1];break}if(6===a[0]&amp;&amp;c.label&lt;i[1]){c.label=i[1],i=a;break}if(i&amp;&amp;c.label&lt;i[2]){c.label=i[2],c.ops.push(a);break}i[2]&amp;&amp;c.ops.pop(),c.trys.pop();continue}a=e.call(t,c)}catch(s){a=[6,s],o=0}finally{n=i=0}if(5&amp;a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}};Object.defineProperty(n,"__esModule",{value:!0});var r=t("../../../Aoneup-lib/Scripts/AudioManager/AudioManager"),l=t("../../../Aoneup-lib/Scripts/HelperTools/ExportHelper"),p=t("../../../Aoneup-lib/Scripts/Promotion/AdManager"),u=cc._decorator,d=u.ccclass,h=u.property,f=function(t){function e(){var e=null!==t&amp;&amp;t.apply(this,arguments)||this;return e.puppy=null,e.thumb=null,e.pause=!0,e.done=[1,2,3,4,5,6],e.counter=1,e}return i(e,t),e.prototype.onLoad=function(){l.HideSlotSpine(this.puppy,"Tel"),l.HideSlotSpine(this.puppy,"body"),l.HideSlotSpine(this.puppy,"R_Leg_1"),l.HideSlotSpine(this.puppy,"R_Leg_2"),l.HideSlotSpine(this.puppy,"L_Leg_1"),l.HideSlotSpine(this.puppy,"L_Leg_2"),l.HideSlotSpine(this.puppy,"Cut_nail_Back_1"),l.HideSlotSpine(this.puppy,"Cut_nail_Back_2"),l.HideSlotSpine(this.puppy,"Cut_nail_Back_3"),l.HideSlotSpine(this.puppy,"Nail_Back_1"),l.HideSlotSpine(this.puppy,"Nail_Back_2"),l.HideSlotSpine(this.puppy,"Nail_Back_3");for(var t=1;t&lt;=8;t++)l.HideSlotSpine(this.puppy,"Dress_"+t);for(l.HideSlotSpine(this.puppy,"Dress_1_L"),l.HideSlotSpine(this.puppy,"Dress_7_L"),l.HideSlotSpine(this.puppy,"Dress_8_L"),l.HideSlotSpine(this.puppy,"Dress_1_R"),l.HideSlotSpine(this.puppy,"Dress_7_R"),l.HideSlotSpine(this.puppy,"Dress_8_R"),l.HideSlotSpine(this.puppy,"Dress_4_up"),l.HideSlotSpine(this.puppy,"Dress_5_up"),t=1;t&lt;=8;t++)l.HideSlotSpine(this.puppy,"Necklace_"+t);for(l.HideSlotSpine(this.puppy,"White_eye_part"),l.HideSlotSpine(this.puppy,"R_eyelance"),l.HideSlotSpine(this.puppy,"L_eyelance"),l.HideSlotSpine(this.puppy,"Face"),l.HideSlotSpine(this.puppy,"Tattoo"),l.HideSlotSpine(this.puppy,"Mouth"),l.HideSlotSpine(this.puppy,"Happy_lips"),l.HideSlotSpine(this.puppy,"Normal_lips"),l.HideSlotSpine(this.puppy,"Sad_lips"),l.HideSlotSpine(this.puppy,"R_ear_1"),l.HideSlotSpine(this.puppy,"R_ear_2"),l.HideSlotSpine(this.puppy,"L_ear_1"),l.HideSlotSpine(this.puppy,"L_ear_2"),l.HideSlotSpine(this.puppy,"Blink_1"),l.HideSlotSpine(this.puppy,"Blink_2"),t=1;t&lt;=2;t++)l.HideSlotSpine(this.puppy,"Nail_Left_"+t);for(t=1;t&lt;=3;t++)l.HideSlotSpine(this.puppy,"Nail_Right_"+t);for(t=1;t&lt;=3;t++)l.HideSlotSpine(this.puppy,"Cut_nail_Right_"+t);for(t=1;t&lt;=2;t++)l.HideSlotSpine(this.puppy,"Cut_nail_Left_"+t);for(t=1;t&lt;=3;t++)l.HideSlotSpine(this.puppy,"extra_skin_Back_"+t);for(t=1;t&lt;=3;t++)l.HideSlotSpine(this.puppy,"extra_skin_Right_"+t);for(t=1;t&lt;=17;t++)l.HideSlotSpine(this.puppy,"Hair_"+t);for(t=1;t&lt;=3;t++)l.HideSlotSpine(this.puppy,"RV_Tail_Hair_"+t);for(t=1;t&lt;=7;t++)l.HideSlotSpine(this.puppy,"Tongue_"+t);for(t=1;t&lt;=8;t++)l.HideSlotSpine(this.puppy,"Goggles_"+t);for(t=1;t&lt;=8;t++)l.HideSlotSpine(this.puppy,"Cap_"+t);for(l.HideSlotSpine(this.puppy,"Eating_lips"),l.ShowSlotSpine(this.puppy,"White_eye_part"),l.ShowSlotSpine(this.puppy,"Mouth"),l.ShowSlotSpine(this.puppy,"Face"),l.ShowSlotSpine(this.puppy,"Tel"),l.ShowSlotSpine(this.puppy,"body"),l.ShowSlotSpine(this.puppy,"R_Leg_1"),l.ShowSlotSpine(this.puppy,"R_Leg_2"),l.ShowSlotSpine(this.puppy,"L_Leg_1"),l.ShowSlotSpine(this.puppy,"L_Leg_2"),l.ShowSlotSpine(this.puppy,"R_ear_1"),l.ShowSlotSpine(this.puppy,"R_ear_2"),l.ShowSlotSpine(this.puppy,"L_ear_1"),l.ShowSlotSpine(this.puppy,"L_ear_2"),l.ShowSlotSpine(this.puppy,"R_eyelance"),l.ShowSlotSpine(this.puppy,"L_eyelance"),l.ShowSlotSpine(this.puppy,"Blink_1"),l.ShowSlotSpine(this.puppy,"Blink_2"),l.ShowSlotSpine(this.puppy,"Happy_lips"),l.ShowSlotSpine(this.puppy,"Normal_lips"),l.ShowSlotSpine(this.puppy,"Sad_lips"),t=1;t&lt;=7;t++)l.ShowSlotSpine(this.puppy,"Tongue_"+t);this.puppy.getComponent(sp.Skeleton).setAnimation(0,"idle_Normal",!0);var e=cc.find("Canvas/Bottom_Panel").children;e[0].scale=0,e[1].scale=0,e[2].scale=0,e[3].scale=0,e[4].scale=0,e[5].scale=0,cc.tween(e[0]).delay(.3).to(.3,{scale:.92059}).call(function(){r.default.getInstance().play("Button_Scale")}).start(),cc.tween(e[1]).delay(.6).to(.3,{scale:.92059}).call(function(){r.default.getInstance().play("Button_Scale")}).start(),cc.tween(e[2]).delay(.9).to(.3,{scale:.92059}).call(function(){r.default.getInstance().play("Button_Scale")}).start(),cc.tween(e[3]).delay(1.2).to(.3,{scale:.92059}).call(function(){r.default.getInstance().play("Button_Scale")}).start(),cc.tween(e[4]).delay(1.5).to(.3,{scale:.92059}).call(function(){r.default.getInstance().play("Button_Scale")}).start(),cc.tween(e[5]).delay(1.8).to(.3,{scale:.92059}).call(function(){r.default.getInstance().play("Button_Scale")}).start(),this.schedule(function(){r.default.getInstance().play("DogSound_"+l.getRandomNumber(1,3))},8)},e.prototype.start=function(){},e.prototype.sidePanel_cliks=function(t){return c(this,void 0,void 0,function(){var e,n,o,i,a,c,u,d,h,f,g,y,v,m=this;return s(this,function(s){switch(s.label){case 0:return(e=t.target).getChildByName("Ads")?[4,p.default.getInstance().requestRewardAds(e.getChildByName("Ads"))]:[3,2];case 1:if(!s.sent())return[2];s.label=2;case 2:for(n=cc.find("Canvas/Particles/Tool_Complete").children,r.default.getInstance().play("Tap_Button"),y=1;y&lt;7;y++){for(o=cc.find("Canvas/Side panel/"+y+"/view/content").children,i=0;i&lt;o.length;i++)o[i].getChildByName("glow").active=!1;e.getChildByName("glow").active=!0}switch(a=e.name,this.thumb){case"1":for(c=["Dress_8","Dress_7","Dress_6","Dress_5","Dress_4","Dress_7_L","Dress_8_L","Dress_7_R","Dress_8_R","Dress_4_up","Dress_5_up"],y=0;y&lt;c.length;y++)l.HideSlotSpine(this.puppy,c[y]);"1"==a?(l.ShowSlotSpine(this.puppy,c[0]),l.ShowSlotSpine(this.puppy,c[6]),l.ShowSlotSpine(this.puppy,c[8])):"2"==a?(l.ShowSlotSpine(this.puppy,c[1]),l.ShowSlotSpine(this.puppy,c[5]),l.ShowSlotSpine(this.puppy,c[7])):"3"==a?l.ShowSlotSpine(this.puppy,c[2]):"4"==a?(l.ShowSlotSpine(this.puppy,c[3]),l.ShowSlotSpine(this.puppy,c[10])):"5"==a&amp;&amp;(l.ShowSlotSpine(this.puppy,c[4]),l.ShowSlotSpine(this.puppy,c[9])),this.done=this.done.filter(function(t){return 1!==t}),this.greatingsSound(),r.default.getInstance().play("Sparkle"),n[0].position=cc.v3(14.038,-284.643),n[1].position=cc.v3(14.038,-284.643),n[2].position=cc.v3(14.038,-284.643),n[l.getRandomNumber(0,2)].getComponent(cc.ParticleSystem).resetSystem();break;case"2":for(u=cc.find("Canvas/Bowl").children,y=0;y&lt;u.length;y++)u[y].active=!1;u[parseInt(a)-1].active=!0,0==u[parseInt(a)-1].getNumberOfRunningActions()&amp;&amp;cc.tween(u[parseInt(a)-1]).to(.3,{scaleX:.655,scaleY:.765}).to(.3,{scaleX:.765,scaleY:.765}).start(),this.done=this.done.filter(function(t){return 2!==t}),this.greatingsSound(),r.default.getInstance().play("Sparkle"),n[0].position=cc.v3(-292.196,-524.252),n[1].position=cc.v3(-292.196,-524.252),n[2].position=cc.v3(-292.196,-524.252),n[l.getRandomNumber(0,2)].getComponent(cc.ParticleSystem).resetSystem();break;case"3":for(d=["Necklace_8","Necklace_7","Necklace_6","Necklace_5","Necklace_4"],y=0;y&lt;d.length;y++)l.HideSlotSpine(this.puppy,d[y]);l.ShowSlotSpine(this.puppy,d[parseInt(a)-1]),this.done=this.done.filter(function(t){return 3!==t}),this.greatingsSound(),r.default.getInstance().play("Sparkle"),n[0].position=cc.v3(-97.086,-249.187),n[1].position=cc.v3(-97.086,-249.187),n[2].position=cc.v3(-97.086,-249.187),n[l.getRandomNumber(0,2)].getComponent(cc.ParticleSystem).resetSystem();break;case"4":for(h=["Goggles_5","Goggles_4","Goggles_3","Goggles_2","Goggles_1"],y=0;y&lt;h.length;y++)l.HideSlotSpine(this.puppy,h[y]);l.ShowSlotSpine(this.puppy,h[parseInt(a)-1]),this.done=this.done.filter(function(t){return 4!==t}),this.greatingsSound(),r.default.getInstance().play("Sparkle"),n[0].position=cc.v3(-100.322,-29.126),n[1].position=cc.v3(-100.322,-29.126),n[2].position=cc.v3(-100.322,-29.126),n[l.getRandomNumber(0,2)].getComponent(cc.ParticleSystem).resetSystem();break;case"5":for(f=["Cap_8","Cap_6","Cap_5","Cap_4","Cap_3"],y=0;y&lt;f.length;y++)l.HideSlotSpine(this.puppy,f[y]);l.ShowSlotSpine(this.puppy,f[parseInt(a)-1]),this.done=this.done.filter(function(t){return 5!==t}),this.greatingsSound(),r.default.getInstance().play("Sparkle"),n[0].position=cc.v3(-74.432,200.644),n[1].position=cc.v3(-74.432,200.644),n[2].position=cc.v3(-74.432,200.644),n[l.getRandomNumber(0,2)].getComponent(cc.ParticleSystem).resetSystem();break;case"6":for(g=cc.find("Canvas/Toy").children,y=0;y&lt;g.length;y++)g[y].active=!1;g[parseInt(a)-1].active=!0,0==g[parseInt(a)-1].getNumberOfRunningActions()&amp;&amp;cc.tween(g[parseInt(a)-1]).to(.2566,{position:cc.v3(220.34,-400.36)}).to(.3,{position:cc.v3(220.34,-503.66)}).start(),this.done=this.done.filter(function(t){return 6!==t}),this.greatingsSound(),r.default.getInstance().play("Sparkle"),n[0].position=cc.v3(220.342,-545.316),n[1].position=cc.v3(220.342,-545.316),n[2].position=cc.v3(220.342,-545.316),n[l.getRandomNumber(0,2)].getComponent(cc.ParticleSystem).resetSystem()}return v=this.puppy.getComponent(sp.Skeleton),1==this.pause&amp;&amp;(v.setAnimation(0,"idle_movement_1",!1),v.addAnimation(0,"idle_Normal",!0),this.pause=!1,cc.tween(this.node).delay(4).call(function(){m.pause=!0}).start()),0==this.done.length&amp;&amp;(cc.find("Canvas/nextBtn").active=!0,cc.find("Canvas/Particles/Level_complete").getComponent(cc.ParticleSystem).resetSystem(),r.default.getInstance().play("View_Done_Particle")),[2]}})})},e.prototype.mainPanel_clicks=function(t){var e=this;this.scheduleOnce(function(){r.default.getInstance().play("Tool_Exit")},.3),r.default.getInstance().play("Tap_Button");for(var n=t.target,o=cc.find("Canvas/Side panel").children,i=0;i&lt;o.length;i++)o[i].active=!1;var a=n.name-1;o[a].active=!0,cc.tween(o[a]).to(.4,{position:cc.v3(382.433,83.732)}).start();var c=o[a];o.filter(function(t){return t!==c}).forEach(function(t){cc.tween(t).to(0,{position:cc.v3(862.398,83.732)}).start()});var s=this.puppy.getComponent(sp.Skeleton);1==this.pause&amp;&amp;(s.setAnimation(0,"idle_happy",!1),s.addAnimation(0,"idle_Normal",!0),this.pause=!1,cc.tween(this.node).delay(2).call(function(){e.pause=!0}).start()),this.thumb=n.name},e.prototype.greatingsSound=function(){1==this.counter?(r.default.getInstance().play("Appriciation_good_job"),this.counter=2):4==this.counter?(r.default.getInstance().play("Appriciation_Superb"),this.counter=5):8==this.counter?(r.default.getInstance().play("Appriciation_Well_Done"),this.counter=9):13==this.counter?(r.default.getInstance().play("Appriciation_perfect"),this.counter=14):15==this.counter?this.counter=1:this.counter++},e.prototype.gameOver=function(){cc.find("Canvas/logo").active=!1,cc.find("Canvas/more").active=!1,cc.find("Canvas/Side panel").active=!1,cc.find("Canvas/Bottom_Panel").active=!1,cc.find("Canvas/promotion").position=cc.v3(0,0)},a([h(sp.Skeleton)],e.prototype,"puppy",void 0),a([d],e)}(cc.Component);n.default=f,cc._RF.pop()},{"../../../Aoneup-lib/Scripts/AudioManager/AudioManager":"AudioManager","../../../Aoneup-lib/Scripts/HelperTools/ExportHelper":"ExportHelper","../../../Aoneup-lib/Scripts/Promotion/AdManager":"AdManager"}],level2:[function(t,e,n){"use strict";cc._RF.push(e,"0461a7V7WRDnZqD33THOQUh","level2");var o,i=this&amp;&amp;this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&amp;&amp;(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&amp;&amp;this.__decorate||function(t,e,n,o){var i,a=arguments.length,c=a&lt;3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s&gt;=0;s--)(i=t[s])&amp;&amp;(c=(a&lt;3?i(c):a&gt;3?i(e,n,c):i(e,n))||c);return a&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(e,n,c),c};Object.defineProperty(n,"__esModule",{value:!0});var c,s=t("../../../Aoneup-lib/Scripts/AudioManager/AudioManager"),r=t("../../../Aoneup-lib/Scripts/HelperTools/ExportHelper"),l=t("../../../Aoneup-lib/Scripts/ToolPicker/ToolPicker"),p=t("../../Common/Script/HintAnimation"),u=cc._decorator,d=u.ccclass,h=u.property;(function(t){t[t.DustBin=0]="DustBin",t[t.LeafTool=1]="LeafTool",t[t.DustPan=2]="DustPan",t[t.MobTool=3]="MobTool",t[t.FlowerJug=4]="FlowerJug",t[t.FoodCan=5]="FoodCan",t[t.WaterJug=6]="WaterJug",t[t.Decoration=7]="Decoration",t[t.None=8]="None"})(c||(c={}));var f=function(t){function e(){var e=null!==t&amp;&amp;t.apply(this,arguments)||this;return e.loader=null,e.dummy=null,e.tool=[],e.hint=null,e.selectedtool=c.None,e.counter=0,e.plate=null,e.puppy=null,e.puppy2=null,e.isPicked=!1,e.dirt=[],e}return i(e,t),e.prototype.onLoad=function(){var t=this;this.hint=cc.find("Canvas/hint"),this.tool=cc.find("Canvas/tools").children,this.dirt=cc.find("Canvas/dustbinDirts").children,this.plate=cc.find("plate",this.node),this.puppy=cc.find("Canvas/setItems/Puppy").getComponent(sp.Skeleton),this.puppy2=cc.find("Canvas/setItems/Puppy2").getComponent(sp.Skeleton),this.scheduleOnce(function(){t.toolEntery(0)},1)},e.prototype.TouchBegan=function(t,e){r.tapSound(),this.node.getComponent(p.default).hideArrow(),this.selectedtool==c.Decoration?cc.find("Canvas/setItems").getChildByName(e.toString()).active=!0:this.selectedtool==c.FlowerJug?(cc.find("progressNode",this.node).active||(cc.find("progressNode",this.node).active=!0),this.node.getComponent(p.default).showArrow(cc.find("Canvas/setItems/22"),-60,-200)):this.selectedtool==c.FoodCan?this.node.getComponent(p.default).showArrow(cc.find("Canvas/setItems/21"),0,-100):this.selectedtool==c.WaterJug?this.node.getComponent(p.default).showArrow(cc.find("Canvas/setItems/21"),0,-100):this.selectedtool==c.DustBin?this.node.getComponent(p.default).showArrow(this.tool[0],0,-60):this.selectedtool==c.DustPan&amp;&amp;(this.isPicked?this.node.getComponent(p.default).showArrow(this.tool[0],0,-60):this.node.getComponent(p.default).showArrow(cc.find("Canvas/dustPanDummy")))},e.prototype.TouchMoved=function(t,e,n,o){var i=this;if(this.selectedtool==c.LeafTool){for(var a=cc.find("Canvas/leafDirts").children,l=o.getChildByName("dummy"),u=0;u&lt;a.length;u++)if(a[u].getBoundingBoxToWorld().intersects(l.getBoundingBoxToWorld())&amp;&amp;255==a[u].opacity){a[u].x&gt;5?a[u].x-=10:a[u].x&lt;-10&amp;&amp;(a[u].x+=10),a[u].y&gt;-220?a[u].y-=10:a[u].y&lt;-235&amp;&amp;(a[u].y+=10),s.default.getInstance().isPlaying("Dust_Remove")||s.default.getInstance().play("Dust_Remove"),a[u].x&gt;-10&amp;&amp;a[u].x&lt;5&amp;&amp;a[u].y&lt;-220&amp;&amp;a[u].y&gt;-235&amp;&amp;(a[u].opacity=254,this.counter++,11==this.counter&amp;&amp;(s.default.getInstance().stop("Dust_Remove"),this.starParticle(cc.find("Canvas/dustPanDummy")),this.toolcomplete(1)));break}}else if(this.selectedtool==c.MobTool){var d=cc.find("Canvas/mobDirts").children;for(l=o.getChildByName("dummy"),u=0;u&lt;d.length;u++)if(d[u].getBoundingBoxToWorld().intersects(l.getBoundingBoxToWorld())&amp;&amp;0!=d[u].opacity){d[u].opacity&gt;10?(d[u].opacity-=5,s.default.getInstance().isPlaying("WaterClean")||s.default.getInstance().play("WaterClean")):(s.default.getInstance().stop("WaterClean"),d[u].opacity=0,this.counter++,3==this.counter&amp;&amp;(this.starParticle(cc.find("Canvas/dustPanDummy")),this.toolcomplete(3)));break}}else if(this.selectedtool==c.DustPan){var h=cc.find("Canvas/dustPanDummy");l=o.getChildByName("dummy"),this.isPicked?l.getBoundingBoxToWorld().intersects(this.tool[0].getBoundingBoxToWorld())&amp;&amp;254==h.opacity&amp;&amp;(this.node.getComponent(p.default).hideArrow(),r.putSound(),h.opacity=0,this.isPicked=!0,o.getComponent(cc.Sprite).spriteFrame=cc.find("dustpan1",this.loader).getComponent(cc.Sprite).spriteFrame,this.starParticle(this.tool[0]),this.scheduleOnce(function(){i.toolcomplete(2)},.3)):h.getBoundingBoxToWorld().intersects(l.getBoundingBoxToWorld())&amp;&amp;255==h.opacity&amp;&amp;(r.putSound(),h.opacity=254,this.isPicked=!0,this.node.getComponent(p.default).showArrow(this.tool[0],0,-60),cc.find("Canvas/leafDirts").active=!1,o.getComponent(cc.Sprite).spriteFrame=cc.find("dustpan2",this.loader).getComponent(cc.Sprite).spriteFrame,t.getComponent(cc.Sprite).spriteFrame=cc.find("dustpan2",this.loader).getComponent(cc.Sprite).spriteFrame)}else this.selectedtool==c.FlowerJug&amp;&amp;(l=o.getChildByName("dummy")).getBoundingBoxToWorld().intersects(cc.find("Canvas/plantDummy").getBoundingBoxToWorld())&amp;&amp;0!=l.opacity&amp;&amp;(this.node.getComponent(p.default).hideArrow(),l.opacity&gt;5?(l.opacity-=2,cc.find("Canvas/progressNode/progress").getComponent(cc.Sprite).fillRange+=.008):(cc.find("Canvas/progressNode/progress").getComponent(cc.Sprite).fillRange=1,this.starParticle(cc.find("Canvas/setItems/22")),l.opacity=0,cc.find("progressNode",this.node).active=!1,this.toolcomplete(4)))},e.prototype.TouchEnded=function(t,e){this.node.getComponent(p.default).hideArrow(),s.default.getInstance().stop("WaterClean"),s.default.getInstance().stop("Dust_Remove"),s.default.getInstance().play("Tool_Exit"),this.selectedtool!=c.Decoration||(cc.find("Canvas/setItems").getChildByName(e.toString()).active=!1)},e.prototype.TouchFixed=function(t,e,n,o,i){var a=this;if(this.selectedtool==c.DustBin){if(this.node.getComponent(p.default).hideArrow(),s.default.getInstance().play("Trash_Object"),this.counter++,this.scheduleOnce(function(){a.starParticle(a.tool[0])},.3),8==this.counter)this.scheduleOnce(function(){a.toolEntery(1)},1);else for(var l=0;l&lt;this.dirt.length;l++)if(this.dirt[l].active){this.node.getComponent(p.default).showArrow(this.dirt[l]);break}}else this.selectedtool==c.Decoration?(r.putSound(),this.starParticle(i),cc.find("Canvas/setItems").getChildByName(e.toString()).getChildByName("shadow").active=!1,this.plateEntery(0),this.scheduleOnce(function(){19==e?a.dogEntery():e&lt;22?a.plateEntery(e+1):a.toolEntery(4)},.5)):this.selectedtool==c.FoodCan?(this.node.getComponent(p.default).hideArrow(),this.node.getComponent(cc.Animation).play("bonesFalling"),this.scheduleOnce(function(){a.starParticle(cc.find("Canvas/setItems/21"))},r.calculateAnimationDuration(this.node,"bonesFalling")),this.scheduleOnce(function(){a.node.getComponent(cc.Animation).play("bonesEating"),a.puppy.setAnimation(0,"idle_eating",!0),a.scheduleOnce(function(){a.puppy.setAnimation(0,"idle_Normal",!0),a.toolEntery(6)},r.calculateAnimationDuration(a.node,"bonesEating")+2)},r.calculateAnimationDuration(this.node,"bonesFalling")+.3)):this.selectedtool==c.WaterJug&amp;&amp;(this.node.getComponent(p.default).hideArrow(),o.active=!0,this.node.getComponent(cc.Animation).play("waterJug"),this.scheduleOnce(function(){s.default.getInstance().play("pour_liquid",!0)},.5),this.scheduleOnce(function(){a.starParticle(cc.find("Canvas/setItems/21")),s.default.getInstance().stop("pour_liquid")},r.calculateAnimationDuration(this.node,"waterJug")),this.scheduleOnce(function(){a.node.getComponent(cc.Animation).play("waterDrinking"),a.puppy.setAnimation(0,"idle_eating",!0),a.scheduleOnce(function(){a.puppy.setAnimation(0,"idle_Normal",!0),a.scheduleOnce(function(){a.viewComplete()},1)},r.calculateAnimationDuration(a.node,"waterDrinking")+2)},r.calculateAnimationDuration(this.node,"waterJug")+.3))},e.prototype.toolEntery=function(t){var e=this;this.counter=0,1==t||2==t?cc.tween(this.tool[t]).by(.3,{x:-500}).call(function(){switch(t){case 1:e.selectedtool=c.LeafTool,e.node.getComponent(p.default).showArrow(e.tool[t],45,-400);break;case 2:e.selectedtool=c.DustPan,e.node.getComponent(p.default).showArrow(e.tool[t],0,-50)}}).start():4==t?cc.tween(this.tool[t]).by(.3,{x:800}).call(function(){e.node.getComponent(p.default).showArrow(e.tool[t],80,-165),e.selectedtool=c.FlowerJug}).start():cc.tween(this.tool[t]).by(.3,{x:500}).call(function(){switch(t){case 0:e.selectedtool=c.DustBin,e.node.getComponent(p.default).showArrow(e.dirt[0]);break;case 3:e.selectedtool=c.MobTool,e.node.getComponent(p.default).showArrow(e.tool[t],-30,-450);break;case 5:e.selectedtool=c.FoodCan,e.node.getComponent(p.default).showArrow(e.tool[t],0,-170);break;case 6:e.selectedtool=c.WaterJug,e.node.getComponent(p.default).showArrow(e.tool[t],-25,-170)}}).start()},e.prototype.toolcomplete=function(t){var e=this;this.tool[t].getComponent(l.default).setActive(!1),this.tool[t].getComponent(l.default).MoveItem.position=cc.v3(1e5,0),this.tool[t].active=!1,s.default.getInstance().play("item_back_to_place"),this.tool[t].active=!1,this.scheduleOnce(function(){switch(t){case 2:cc.tween(e.tool[0]).by(.3,{x:-500}).start(),e.toolEntery(3);break;case 3:e.selectedtool=c.Decoration,e.plateEntery(1);break;default:e.toolEntery(t+1)}},.3)},e.prototype.dogEntery=function(){var t=this;cc.tween(this.puppy2.node).by(.5,{x:-1e3}).call(function(){t.puppy2.node.active=!1,t.puppy.node.opacity=255}).start(),this.scheduleOnce(function(){t.plateEntery(20)},.5)},e.prototype.plateEntery=function(t){var e=this;0!=t?(2==t||3==t||8==t||14==t||18==t||19==t?(this.plate.scaleX=-1,this.plate.position=cc.v3(1178,-751),cc.tween(this.plate).by(.3,{x:-1e3}).call(function(){e.node.getComponent(p.default).showArrow(e.plate,-150,-170)}).start()):(this.plate.scaleX=1,this.plate.position=cc.v3(-1154,-751),cc.tween(this.plate).by(.3,{x:1e3}).call(function(){e.node.getComponent(p.default).showArrow(e.plate,150,-170)}).start()),this.plate.getChildByName(t.toString()).active=!0):this.plate.x&gt;0?cc.tween(this.plate).by(.3,{x:1e3}).start():cc.tween(this.plate).by(.3,{x:-1e3}).start()},e.prototype.touchOn=function(t){void 0===t&amp;&amp;(t=!0),t?(cc.game.on(l.TOOLPICKER.BEGAN,this.TouchBegan,this),cc.game.on(l.TOOLPICKER.ENDED,this.TouchEnded,this),cc.game.on(l.TOOLPICKER.MOVED,this.TouchMoved,this),cc.game.on(l.TOOLPICKER.FIXED,this.TouchFixed,this)):(cc.game.off(l.TOOLPICKER.BEGAN,this.TouchBegan,this),cc.game.off(l.TOOLPICKER.ENDED,this.TouchEnded,this),cc.game.off(l.TOOLPICKER.MOVED,this.TouchMoved,this),cc.game.off(l.TOOLPICKER.FIXED,this.TouchFixed,this))},e.prototype.viewComplete=function(){cc.find("Canvas/nextBtn").active=!0,cc.find("Canvas/particles/finalStar").active=!0,r.finalparticleSound()},e.prototype.start=function(){this.touchOn(),this.hideAll(this.puppy),this.hideAll(this.puppy2)},e.prototype.starParticle=function(t){var e=cc.find("Canvas/particles/toolComplete").children[r.getRandomNumber(0,2)];e.position=cc.v3(r.getNodePosition(e,t)),e.getComponent(cc.ParticleSystem).resetSystem(),r.particleSound(),r.appriciationSound()},e.prototype.hideAll=function(t){r.HideSlotSpine(t,"Cut_nail_Back_1"),r.HideSlotSpine(t,"Cut_nail_Back_2"),r.HideSlotSpine(t,"Cut_nail_Back_3");for(var e=1;e&lt;=8;e++)r.HideSlotSpine(t,"Dress_"+e);for(r.HideSlotSpine(t,"Dress_1_L"),r.HideSlotSpine(t,"Dress_7_L"),r.HideSlotSpine(t,"Dress_8_L"),r.HideSlotSpine(t,"Dress_1_R"),r.HideSlotSpine(t,"Dress_7_R"),r.HideSlotSpine(t,"Dress_8_R"),r.HideSlotSpine(t,"Dress_4_up"),r.HideSlotSpine(t,"Dress_5_up"),e=1;e&lt;=8;e++)r.HideSlotSpine(t,"Necklace_"+e);for(r.HideSlotSpine(t,"Tattoo"),e=1;e&lt;=2;e++)r.HideSlotSpine(t,"Nail_Left_"+e);for(e=1;e&lt;=3;e++)r.HideSlotSpine(t,"Cut_nail_Right_"+e);for(e=1;e&lt;=17;e++)r.HideSlotSpine(t,"Hair_"+e);for(e=1;e&lt;=3;e++)r.HideSlotSpine(t,"RV_Tail_Hair_"+e);for(e=1;e&lt;=8;e++)r.HideSlotSpine(t,"Goggles_"+e);for(e=1;e&lt;=8;e++)r.HideSlotSpine(t,"Cap_"+e)},a([h(cc.Node)],e.prototype,"loader",void 0),a([h(cc.Node)],e.prototype,"dummy",void 0),a([d],e)}(cc.Component);n.default=f,cc._RF.pop()},{"../../../Aoneup-lib/Scripts/AudioManager/AudioManager":"AudioManager","../../../Aoneup-lib/Scripts/HelperTools/ExportHelper":"ExportHelper","../../../Aoneup-lib/Scripts/ToolPicker/ToolPicker":"ToolPicker","../../Common/Script/HintAnimation":"HintAnimation"}],levelSelection:[function(t,e,n){"use strict";cc._RF.push(e,"350d2i6KZ1N9bShGO3aUb90","levelSelection");var o,i=this&amp;&amp;this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&amp;&amp;(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&amp;&amp;this.__decorate||function(t,e,n,o){var i,a=arguments.length,c=a&lt;3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s&gt;=0;s--)(i=t[s])&amp;&amp;(c=(a&lt;3?i(c):a&gt;3?i(e,n,c):i(e,n))||c);return a&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(e,n,c),c},c=this&amp;&amp;this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))(function(i,a){function c(t){try{r(o.next(t))}catch(e){a(e)}}function s(t){try{r(o.throw(t))}catch(e){a(e)}}function r(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(c,s)}r((o=o.apply(t,e||[])).next())})},s=this&amp;&amp;this.__generator||function(t,e){var n,o,i,a,c={label:0,sent:function(){if(1&amp;i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&amp;&amp;(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return r([t,e])}}function r(a){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,o&amp;&amp;(i=2&amp;a[0]?o.return:a[0]?o.throw||((i=o.return)&amp;&amp;i.call(o),0):o.next)&amp;&amp;!(i=i.call(o,a[1])).done)return i;switch(o=0,i&amp;&amp;(a=[2&amp;a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++,o=a[1],a=[0];continue;case 7:a=c.ops.pop(),c.trys.pop();continue;default:if(!(i=(i=c.trys).length&gt;0&amp;&amp;i[i.length-1])&amp;&amp;(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&amp;&amp;(!i||a[1]&gt;i[0]&amp;&amp;a[1]&lt;i[3])){c.label=a[1];break}if(6===a[0]&amp;&amp;c.label&lt;i[1]){c.label=i[1],i=a;break}if(i&amp;&amp;c.label&lt;i[2]){c.label=i[2],c.ops.push(a);break}i[2]&amp;&amp;c.ops.pop(),c.trys.pop();continue}a=e.call(t,c)}catch(s){a=[6,s],o=0}finally{n=i=0}if(5&amp;a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}};Object.defineProperty(n,"__esModule",{value:!0});var r=t("../../../Aoneup-lib/Scripts/AudioManager/AudioManager"),l=t("../../../Aoneup-lib/Scripts/HelperTools/ExportHelper"),p=t("../../../Aoneup-lib/Scripts/Promotion/AdManager"),u=cc._decorator,d=u.ccclass,h=u.property,f=function(t){function e(){var e=null!==t&amp;&amp;t.apply(this,arguments)||this;return e.LevelClk_particle=null,e}return i(e,t),e.prototype.onLoad=function(){this.LevelClick()},e.prototype.start=function(){var t=cc.find("Canvas/Bg/Levels").children;l.EnableButton(t[l.GlobalData.data.levelNo])},e.prototype.DoneAction=function(t){return c(this,void 0,void 0,function(){return s(this,function(e){switch(e.label){case 0:return t.target.active=!1,p.default.getInstance().requestAds(),[4,l.Delay(.5)];case 1:return e.sent(),cc.find("Canvas/logo").active=!1,cc.find("Canvas/more").active=!1,cc.find("Canvas/promotion").position=cc.Vec3.ZERO,l.GlobalData.data.isLevelCompleted[0]=!1,l.GlobalData.data.isLevelCompleted[1]=!1,l.GlobalData.data.isLevelCompleted[2]=!1,l.GlobalData.data.isLevelCompleted[3]=!1,[2]}})})},e.prototype.LevelClick=function(){var t=cc.find("Canvas/Bg/Levels/level - 1"),e=cc.find("Canvas/Bg/Levels/level - 2"),n=cc.find("Canvas/Bg/Levels/level - 3"),o=cc.find("Canvas/Bg/Levels/level - 4");t.scale=0,e.scale=0,n.scale=0,o.scale=0,cc.tween(t).to(.3,{scale:.85}).call(function(){r.default.getInstance().play("Button_Scale")}).start(),cc.tween(e).delay(.3).to(.3,{scale:.85}).call(function(){r.default.getInstance().play("Button_Scale")}).start(),cc.tween(n).delay(.6).to(.3,{scale:.85}).call(function(){r.default.getInstance().play("Button_Scale")}).start(),cc.tween(o).delay(.9).to(.3,{scale:.85}).call(function(){r.default.getInstance().play("Button_Scale")}).start(),cc.find("Canvas").getComponent(cc.Animation).play("levelSceneAni")},e.prototype.BtnClicked=function(t){return c(this,void 0,void 0,function(){var e,n,o;return s(this,function(i){switch(i.label){case 0:for(e=t.target,n=e.name,o=1;o&lt;=4;o++)n=="level - "+o&amp;&amp;(l.GlobalData.data.isLevelCompleted[o-1]=!0);return cc.find("Canvas/BlockInput").active=!0,this.LevelClk_particle.node.position=cc.v3(t.target.x,t.target.y-150),this.LevelClk_particle.resetSystem(),r.default.getInstance().play("Button_Press"),p.default.getInstance().requestAds(),[4,l.Delay(.5)];case 1:return i.sent(),cc.director.loadScene(n),[2]}})})},a([h(cc.ParticleSystem)],e.prototype,"LevelClk_particle",void 0),a([d],e)}(cc.Component);n.default=f,cc._RF.pop()},{"../../../Aoneup-lib/Scripts/AudioManager/AudioManager":"AudioManager","../../../Aoneup-lib/Scripts/HelperTools/ExportHelper":"ExportHelper","../../../Aoneup-lib/Scripts/Promotion/AdManager":"AdManager"}],nextBtn:[function(t,e,n){"use strict";cc._RF.push(e,"27d2eC47eFPo5Q/bVwVG/3L","nextBtn");var o,i=this&amp;&amp;this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&amp;&amp;(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&amp;&amp;this.__decorate||function(t,e,n,o){var i,a=arguments.length,c=a&lt;3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s&gt;=0;s--)(i=t[s])&amp;&amp;(c=(a&lt;3?i(c):a&gt;3?i(e,n,c):i(e,n))||c);return a&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(e,n,c),c},c=this&amp;&amp;this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))(function(i,a){function c(t){try{r(o.next(t))}catch(e){a(e)}}function s(t){try{r(o.throw(t))}catch(e){a(e)}}function r(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(c,s)}r((o=o.apply(t,e||[])).next())})},s=this&amp;&amp;this.__generator||function(t,e){var n,o,i,a,c={label:0,sent:function(){if(1&amp;i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&amp;&amp;(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return r([t,e])}}function r(a){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,o&amp;&amp;(i=2&amp;a[0]?o.return:a[0]?o.throw||((i=o.return)&amp;&amp;i.call(o),0):o.next)&amp;&amp;!(i=i.call(o,a[1])).done)return i;switch(o=0,i&amp;&amp;(a=[2&amp;a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++,o=a[1],a=[0];continue;case 7:a=c.ops.pop(),c.trys.pop();continue;default:if(!(i=(i=c.trys).length&gt;0&amp;&amp;i[i.length-1])&amp;&amp;(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&amp;&amp;(!i||a[1]&gt;i[0]&amp;&amp;a[1]&lt;i[3])){c.label=a[1];break}if(6===a[0]&amp;&amp;c.label&lt;i[1]){c.label=i[1],i=a;break}if(i&amp;&amp;c.label&lt;i[2]){c.label=i[2],c.ops.push(a);break}i[2]&amp;&amp;c.ops.pop(),c.trys.pop();continue}a=e.call(t,c)}catch(s){a=[6,s],o=0}finally{n=i=0}if(5&amp;a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}};Object.defineProperty(n,"__esModule",{value:!0});var r=t("../../../Aoneup-lib/Scripts/AudioManager/AudioManager"),l=t("../../../Aoneup-lib/Scripts/HelperTools/ExportHelper"),p=t("../../../Aoneup-lib/Scripts/Promotion/AdManager"),u=t("../../Level - 4 Dressup/Script/level - 4"),d=cc._decorator,h=d.ccclass,f=(d.property,function(t){function e(){return null!==t&amp;&amp;t.apply(this,arguments)||this}return i(e,t),e.prototype.onLoad=function(){},e.prototype.nextButtonClicked=function(t){return c(this,void 0,void 0,function(){var e;return s(this,function(n){switch(n.label){case 0:return e=t.target,r.default.getInstance().stopAll(),e.active=!1,l.btnSound(),l.GlobalData.data.stepNo,l.GlobalData.data.stepNo++,p.default.getInstance().requestAds(),[4,l.Delay(.3)];case 1:return n.sent(),l.GlobalData.data.levelNo++,l.GlobalData.data.levelNo&gt;3?(l.GlobalData.data.levelNo=0,this.node.parent.getComponent(u.default)&amp;&amp;this.node.parent.getComponent(u.default).gameOver()):cc.director.loadScene("LevelScene"),[2]}})})},e.prototype.start=function(){},a([h],e)}(cc.Component));n.default=f,cc._RF.pop()},{"../../../Aoneup-lib/Scripts/AudioManager/AudioManager":"AudioManager","../../../Aoneup-lib/Scripts/HelperTools/ExportHelper":"ExportHelper","../../../Aoneup-lib/Scripts/Promotion/AdManager":"AdManager","../../Level - 4 Dressup/Script/level - 4":"level - 4"}]},{},["AudioManager","UserDrawing","ExportHelper","AdManager","Promotion","RewardFailed","SessionStorageHelper","ToolPicker","ToolWithDrawing","HintAnimation","Puppy","nextBtn","level - 1","level2"," Step_1","Step_2","Step_3","Step_4","level - 4","levelSelection","MainScene"]);</pre></body></html>