<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">window.__require = function e(t, o, a) {
    function n(i, r) {
        if (!o[i]) {
            if (!t[i]) {
                var s = i.split("/");
                if (s = s[s.length - 1], !t[s]) {
                    var l = "function" == typeof __require &amp;&amp; __require;
                    if (!r &amp;&amp; l)
                        return l(s, !0);
                    if (c)
                        return c(s, !0);
                    throw new Error("Cannot find module '" + i + "'")
                }
                i = s
            }
            var d = o[i] = {
                exports: {}
            };
            t[i][0].call(d.exports, function(e) {
                return n(t[i][1][e] || e)
            }, d, d.exports, e, t, o, a)
        }
        return o[i].exports
    }
    for (var c = "function" == typeof __require &amp;&amp; __require, i = 0; i &lt; a.length; i++)
        n(a[i]);
    return n
}({
    BathPopup: [function(e, t, o) {
        "use strict";
        cc._RF.push(t, "674fdoOBeFA6psWtUbDANhS", "BathPopup");
        var a, n = this &amp;&amp; this.__extends || (a = function(e, t) {
                    return (a = Object.setPrototypeOf || {
                            __proto__: []
                        }
                        instanceof Array &amp;&amp; function(e, t) {
                            e.__proto__ = t
                        } ||
                        function(e, t) {
                            for (var o in t)
                                t.hasOwnProperty(o) &amp;&amp; (e[o] = t[o])
                        }
                    )(e, t)
                },
                function(e, t) {
                    function o() {
                        this.constructor = e
                    }
                    a(e, t),
                        e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype,
                            new o)
                }
            ),
            c = this &amp;&amp; this.__decorate || function(e, t, o, a) {
                var n, c = arguments.length,
                    i = c &lt; 3 ? t : null === a ? a = Object.getOwnPropertyDescriptor(t, o) : a;
                if ("object" == typeof Reflect &amp;&amp; "function" == typeof Reflect.decorate)
                    i = Reflect.decorate(e, t, o, a);
                else
                    for (var r = e.length - 1; r &gt;= 0; r--)
                        (n = e[r]) &amp;&amp; (i = (c &lt; 3 ? n(i) : c &gt; 3 ? n(t, o, i) : n(t, o)) || i);
                return c &gt; 3 &amp;&amp; i &amp;&amp; Object.defineProperty(t, o, i),
                    i
            };
        Object.defineProperty(o, "__esModule", {
            value: !0
        });
        var i = e("./Playarea"),
            r = cc._decorator,
            s = r.ccclass,
            l = (r.property,
                function(e) {
                    function t() {
                        var t = null !== e &amp;&amp; e.apply(this, arguments) || this;
                        return t.Brush = null,
                            t.CanMove = !1,
                            t
                    }
                    var o;
                    return n(t, e),
                        o = t,
                        t.prototype.onLoad = function() {
                            o.self = this,
                                this.Brush = this.node.getChildByName("WashPet_3")
                        },
                        t.prototype.start = function() {
                            this.node.on(cc.Node.EventType.TOUCH_START, this.TouchBegan),
                                this.node.on(cc.Node.EventType.TOUCH_MOVE, this.TouchMove),
                                this.node.on(cc.Node.EventType.TOUCH_CANCEL, this.TouchEnded),
                                this.node.on(cc.Node.EventType.TOUCH_END, this.TouchEnded)
                        },
                        t.prototype.TouchBegan = function(e) {
                            var t = e.getLocation(),
                                a = o.self.node.convertToNodeSpaceAR(t);
                            o.self.Brush.getBoundingBoxToWorld().contains(t) &amp;&amp; (o.self.CanMove = !0,
                                o.self.Brush.position = cc.v3(a),
                                o.self.Brush.getComponent(cc.Animation).stop(),
                                o.self.Brush.scale = 1)
                        },
                        t.prototype.TouchMove = function(e) {
                            var t = e.getLocation(),
                                a = o.self.node.convertToNodeSpaceAR(t);
                            o.self.CanMove &amp;&amp; (o.self.Brush.position = cc.v3(a),
                                o.self.Brush.getBoundingBoxToWorld().intersects(o.self.node.getChildByName("Character1_1").getBoundingBoxToWorld()) &amp;&amp; o.self.node.getChildByName("Bubble").childrenCount &lt; 50 &amp;&amp; (o.self.addBubble(cc.v3(a)),
                                    0 == cc.find("Canvas/SoundNode/Bath").getComponent(cc.AudioSource).isPlaying &amp;&amp; o.self.PlaySound("Bath"),
                                    o.self.node.getChildByName("Character1_1").getChildByName("Mask").getChildByName("Dirt_1").opacity -= 1,
                                    0 == o.self.node.getChildByName("Character1_1").getChildByName("Mask").getChildByName("Dirt_1").opacity &amp;&amp; (o.self.CanMove = !1,
                                        cc.find("Canvas/SoundNode/Bath").getComponent(cc.AudioSource).stop(),
                                        o.self.Brush.position = cc.v3(140, -86, 0),
                                        o.self.Brush.getComponent(cc.Animation).play(),
                                        o.self.node.parent.getComponent(i.default).BathDoneAction(),
                                        o.self.node.active = !1,
                                        o.self.node.getChildByName("Character1_1").getChildByName("Mask").getChildByName("Dirt_1").opacity = 255,
                                        o.self.node.getChildByName("Bubble").removeAllChildren())))
                        },
                        t.prototype.TouchEnded = function(e) {
                            var t = e.getLocation();
                            o.self.node.convertToNodeSpaceAR(t),
                                o.self.CanMove &amp;&amp; (cc.find("Canvas/SoundNode/Bath").getComponent(cc.AudioSource).stop(),
                                    o.self.CanMove = !1,
                                    o.self.Brush.position = cc.v3(140, -86, 0),
                                    o.self.Brush.getComponent(cc.Animation).play())
                        },
                        t.prototype.addBubble = function(e) {
                            var t = cc.instantiate(this.node.getChildByName("WashPet_2"));
                            this.node.getChildByName("Bubble").addChild(t),
                                t.position = e,
                                t.scale = Math.random() + .1;
                            var o = cc.v2(this.getRandomInt(-50, 50), this.getRandomInt(-50, 50));
                            t.runAction(cc.sequence(cc.moveBy(.3, o), cc.removeSelf()))
                        },
                        t.prototype.getRandomInt = function(e, t) {
                            return e = Math.ceil(e),
                                t = Math.floor(t) + 1,
                                Math.floor(Math.random() * (t - e)) + e
                        },
                        t.prototype.PlaySound = function(e) {
                            cc.find("Canvas/SoundNode/" + e) &amp;&amp; cc.find("Canvas/SoundNode/" + e).getComponent(cc.AudioSource).play()
                        },
                        t.self = null,
                        o = c([s], t)
                }(cc.Component));
        o.default = l,
            cc._RF.pop()
    }, {
        "./Playarea": "Playarea"
    }],
    HairPopup: [function(e, t, o) {
        "use strict";
        cc._RF.push(t, "66085yBfjFMqZUtj1uKhBHX", "HairPopup");
        var a, n = this &amp;&amp; this.__extends || (a = function(e, t) {
                    return (a = Object.setPrototypeOf || {
                            __proto__: []
                        }
                        instanceof Array &amp;&amp; function(e, t) {
                            e.__proto__ = t
                        } ||
                        function(e, t) {
                            for (var o in t)
                                t.hasOwnProperty(o) &amp;&amp; (e[o] = t[o])
                        }
                    )(e, t)
                },
                function(e, t) {
                    function o() {
                        this.constructor = e
                    }
                    a(e, t),
                        e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype,
                            new o)
                }
            ),
            c = this &amp;&amp; this.__decorate || function(e, t, o, a) {
                var n, c = arguments.length,
                    i = c &lt; 3 ? t : null === a ? a = Object.getOwnPropertyDescriptor(t, o) : a;
                if ("object" == typeof Reflect &amp;&amp; "function" == typeof Reflect.decorate)
                    i = Reflect.decorate(e, t, o, a);
                else
                    for (var r = e.length - 1; r &gt;= 0; r--)
                        (n = e[r]) &amp;&amp; (i = (c &lt; 3 ? n(i) : c &gt; 3 ? n(t, o, i) : n(t, o)) || i);
                return c &gt; 3 &amp;&amp; i &amp;&amp; Object.defineProperty(t, o, i),
                    i
            };
        Object.defineProperty(o, "__esModule", {
            value: !0
        });
        var i = e("./Playarea"),
            r = cc._decorator,
            s = r.ccclass,
            l = (r.property,
                function(e) {
                    function t() {
                        return null !== e &amp;&amp; e.apply(this, arguments) || this
                    }
                    var o;
                    return n(t, e),
                        o = t,
                        t.prototype.onLoad = function() {
                            o.self = this,
                                o.self.node.getChildByName("Germs").children.forEach(function(e) {
                                    e.active = !0,
                                        e.scale = 0,
                                        e.runAction(cc.scaleTo(.3, 1))
                                })
                        },
                        t.prototype.start = function() {
                            this.node.on(cc.Node.EventType.TOUCH_START, this.TouchBegan),
                                this.node.on(cc.Node.EventType.TOUCH_MOVE, this.TouchMove),
                                this.node.on(cc.Node.EventType.TOUCH_CANCEL, this.TouchEnded),
                                this.node.on(cc.Node.EventType.TOUCH_END, this.TouchEnded)
                        },
                        t.prototype.TouchBegan = function(e) {
                            var t = e.getLocation();
                            o.self.node.convertToNodeSpaceAR(t),
                                o.self.node.getChildByName("Germs").children.forEach(function(e) {
                                    e.getBoundingBoxToWorld().contains(t) &amp;&amp; 255 == e.opacity &amp;&amp; (e.opacity = 254,
                                        e.zIndex = 1,
                                        e.getComponent(cc.Sprite).spriteFrame = cc.find("Canvas/HairPopup/Germ_2").getComponent(cc.Sprite).spriteFrame,
                                        e.position.x &lt; 0 ? (o.self.PlaySound("fleax" + o.self.getRandomInt(1, 5)),
                                            e.runAction(cc.sequence(cc.jumpBy(.5, cc.v2(-500, 0), 100, 1), cc.callFunc(function() {
                                                e.active = !1
                                            }), cc.removeSelf()))) : (o.self.PlaySound("fleax" + o.self.getRandomInt(1, 5)),
                                            e.runAction(cc.sequence(cc.jumpBy(.5, cc.v2(500, 0), 100, 1), cc.callFunc(function() {
                                                e.active = !1
                                            }), cc.removeSelf()))))
                                })
                        },
                        t.prototype.TouchMove = function(e) {
                            var t = e.getLocation();
                            o.self.node.convertToNodeSpaceAR(t)
                        },
                        t.prototype.TouchEnded = function(e) {
                            var t = e.getLocation();
                            o.self.node.convertToNodeSpaceAR(t)
                        },
                        t.prototype.update = function() {
                            0 == o.self.node.getChildByName("Germs").childrenCount &amp;&amp; (this.node.parent.parent.getComponent(i.default).BathDoneAction(),
                                this.node.removeFromParent())
                        },
                        t.prototype.PlaySound = function(e) {
                            cc.find("Canvas/SoundNode/" + e) &amp;&amp; cc.find("Canvas/SoundNode/" + e).getComponent(cc.AudioSource).play()
                        },
                        t.prototype.getRandomInt = function(e, t) {
                            return e = Math.ceil(e),
                                t = Math.floor(t) + 1,
                                Math.floor(Math.random() * (t - e)) + e
                        },
                        t.self = null,
                        o = c([s], t)
                }(cc.Component));
        o.default = l,
            cc._RF.pop()
    }, {
        "./Playarea": "Playarea"
    }],
    HintScreen: [function(e, t, o) {
        "use strict";
        cc._RF.push(t, "6b574Amp8lIx5rq1iB5tqKe", "HintScreen");
        var a, n = this &amp;&amp; this.__extends || (a = function(e, t) {
                    return (a = Object.setPrototypeOf || {
                            __proto__: []
                        }
                        instanceof Array &amp;&amp; function(e, t) {
                            e.__proto__ = t
                        } ||
                        function(e, t) {
                            for (var o in t)
                                t.hasOwnProperty(o) &amp;&amp; (e[o] = t[o])
                        }
                    )(e, t)
                },
                function(e, t) {
                    function o() {
                        this.constructor = e
                    }
                    a(e, t),
                        e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype,
                            new o)
                }
            ),
            c = this &amp;&amp; this.__decorate || function(e, t, o, a) {
                var n, c = arguments.length,
                    i = c &lt; 3 ? t : null === a ? a = Object.getOwnPropertyDescriptor(t, o) : a;
                if ("object" == typeof Reflect &amp;&amp; "function" == typeof Reflect.decorate)
                    i = Reflect.decorate(e, t, o, a);
                else
                    for (var r = e.length - 1; r &gt;= 0; r--)
                        (n = e[r]) &amp;&amp; (i = (c &lt; 3 ? n(i) : c &gt; 3 ? n(t, o, i) : n(t, o)) || i);
                return c &gt; 3 &amp;&amp; i &amp;&amp; Object.defineProperty(t, o, i),
                    i
            };
        Object.defineProperty(o, "__esModule", {
            value: !0
        });
        var i = e("./Promotion"),
            r = cc._decorator,
            s = r.ccclass,
            l = (r.property,
                function(e) {
                    function t() {
                        var t = null !== e &amp;&amp; e.apply(this, arguments) || this;
                        return t.HintCounter = 1,
                            t
                    }
                    var o;
                    return n(t, e),
                        o = t,
                        t.prototype.onLoad = function() {
                            o.self = this,
                                cc.director.preloadScene("Playarea")
                        },
                        t.prototype.start = function() {
                            this.node.on(cc.Node.EventType.TOUCH_START, this.TouchBegan),
                                this.node.on(cc.Node.EventType.TOUCH_MOVE, this.TouchMove),
                                this.node.on(cc.Node.EventType.TOUCH_CANCEL, this.TouchEnded),
                                this.node.on(cc.Node.EventType.TOUCH_END, this.TouchEnded)
                        },
                        t.prototype.TouchBegan = function(e) {
                            var t = e.getLocation();
                            o.self.node.convertToNodeSpaceAR(t),
                                o.self.HintCounter++,
                                o.self.HintCounter &lt;= 4 ? (o.self.PlaySound("Button"),
                                    cc.find("Canvas/HintPopup").children.forEach(function(e) {
                                        e.active = !1
                                    }),
                                    cc.find("Canvas/HintPopup/" + o.self.HintCounter).active = !0) : (o.self.PlaySound("Button"),
                                    o.self.node.off(cc.Node.EventType.TOUCH_START, o.self.TouchBegan),
                                    i.default.self.requestAds(),
                                    o.self.node.runAction(cc.sequence(cc.delayTime(.3), cc.callFunc(function() {
                                        cc.director.loadScene("Playarea")
                                    }))))
                        },
                        t.prototype.TouchMove = function(e) {
                            var t = e.getLocation();
                            o.self.node.convertToNodeSpaceAR(t)
                        },
                        t.prototype.TouchEnded = function(e) {
                            var t = e.getLocation();
                            o.self.node.convertToNodeSpaceAR(t)
                        },
                        t.prototype.PlaySound = function(e) {
                            cc.find("Canvas/SoundNode/" + e) &amp;&amp; cc.find("Canvas/SoundNode/" + e).getComponent(cc.AudioSource).play()
                        },
                        t.self = null,
                        o = c([s], t)
                }(cc.Component));
        o.default = l,
            cc._RF.pop()
    }, {
        "./Promotion": "Promotion"
    }],
    LevelScene: [function(e, t, o) {
        "use strict";
        cc._RF.push(t, "aa014gY7HBCK7qG13srzjtQ", "LevelScene");
        var a, n = this &amp;&amp; this.__extends || (a = function(e, t) {
                    return (a = Object.setPrototypeOf || {
                            __proto__: []
                        }
                        instanceof Array &amp;&amp; function(e, t) {
                            e.__proto__ = t
                        } ||
                        function(e, t) {
                            for (var o in t)
                                t.hasOwnProperty(o) &amp;&amp; (e[o] = t[o])
                        }
                    )(e, t)
                },
                function(e, t) {
                    function o() {
                        this.constructor = e
                    }
                    a(e, t),
                        e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype,
                            new o)
                }
            ),
            c = this &amp;&amp; this.__decorate || function(e, t, o, a) {
                var n, c = arguments.length,
                    i = c &lt; 3 ? t : null === a ? a = Object.getOwnPropertyDescriptor(t, o) : a;
                if ("object" == typeof Reflect &amp;&amp; "function" == typeof Reflect.decorate)
                    i = Reflect.decorate(e, t, o, a);
                else
                    for (var r = e.length - 1; r &gt;= 0; r--)
                        (n = e[r]) &amp;&amp; (i = (c &lt; 3 ? n(i) : c &gt; 3 ? n(t, o, i) : n(t, o)) || i);
                return c &gt; 3 &amp;&amp; i &amp;&amp; Object.defineProperty(t, o, i),
                    i
            };
        Object.defineProperty(o, "__esModule", {
            value: !0
        });
        var i = e("./Promotion"),
            r = cc._decorator,
            s = r.ccclass,
            l = (r.property,
                function(e) {
                    function t() {
                        var t = null !== e &amp;&amp; e.apply(this, arguments) || this;
                        return t.WhichLevel = 1,
                            t
                    }
                    var o;
                    return n(t, e),
                        o = t,
                        t.prototype.onLoad = function() {
                            o.self = this,
                                cc.director.preloadScene("HintScreen"),
                                cc.director.preloadScene("Playarea")
                        },
                        t.prototype.start = function() {
                            this.WhichLevel = parseInt(cc.sys.localStorage.getItem("WhichLevel"));
                            for (var e = 1; e &lt;= 10; e++) {
                                var t = cc.find("Canvas/DaySelection/view/content/Day" + e);
                                e &lt;= this.WhichLevel ? (t.getComponent(cc.Button).interactable = !0,
                                        t.getChildByName("Done").active = !0) : t.getComponent(cc.Button).interactable = !1,
                                    e == this.WhichLevel &amp;&amp; (t.getChildByName("Done").active = !1)
                            }
                            cc.find("Canvas/Cloud").children.forEach(function(e) {
                                    e.runAction(cc.sequence(cc.moveBy(20, cc.v2(-1e3, 0)), cc.removeSelf()))
                                }),
                                this.node.runAction(cc.repeatForever(cc.sequence(cc.delayTime(3), cc.callFunc(this.addCloud, this)))),
                                this.node.on(cc.Node.EventType.TOUCH_START, this.TouchBegan),
                                this.node.on(cc.Node.EventType.TOUCH_MOVE, this.TouchMove),
                                this.node.on(cc.Node.EventType.TOUCH_CANCEL, this.TouchEnded),
                                this.node.on(cc.Node.EventType.TOUCH_END, this.TouchEnded)
                        },
                        t.prototype.TouchBegan = function(e) {
                            var t = e.getLocation();
                            o.self.node.convertToNodeSpaceAR(t)
                        },
                        t.prototype.TouchMove = function(e) {
                            var t = e.getLocation();
                            o.self.node.convertToNodeSpaceAR(t)
                        },
                        t.prototype.TouchEnded = function(e) {
                            var t = e.getLocation();
                            o.self.node.convertToNodeSpaceAR(t)
                        },
                        t.prototype.DayAction = function(e) {
                            this.PlaySound("DayStart");
                            var t = e.target;
                            t.parent.children.forEach(function(e) {
                                e.getComponent(cc.Button).interactable &amp;&amp; (e.getComponent(cc.Button).enableAutoGrayEffect = !1),
                                    e.getComponent(cc.Button).interactable = !1
                            });
                            for (var o = 1, a = 1; a &lt; 11; a++)
                                if (t.name == "Day" + a) {
                                    o = a;
                                    break
                                }
                            cc.sys.localStorage.setItem("SelectedLevel", o),
                                i.default.self.requestAds(),
                                this.node.runAction(cc.sequence(cc.delayTime(.3), cc.callFunc(function() {
                                    null == cc.sys.localStorage.getItem("isHint") ? (cc.sys.localStorage.setItem("isHint", !0),
                                        cc.director.loadScene("HintScreen")) : cc.director.loadScene("Playarea")
                                })))
                        },
                        t.prototype.addCloud = function() {
                            var e = cc.instantiate(cc.find("Canvas/Loader/Cloud"));
                            cc.find("Canvas/Cloud").addChild(e),
                                e.position = cc.v3(256, -this.getRandomInt(0, 167)),
                                e.runAction(cc.sequence(cc.moveBy(20, cc.v2(-1e3, 0)), cc.removeSelf()))
                        },
                        t.prototype.getRandomInt = function(e, t) {
                            return e = Math.ceil(e),
                                t = Math.floor(t) + 1,
                                Math.floor(Math.random() * (t - e)) + e
                        },
                        t.prototype.PlaySound = function(e) {
                            cc.find("Canvas/SoundNode/" + e) &amp;&amp; cc.find("Canvas/SoundNode/" + e).getComponent(cc.AudioSource).play()
                        },
                        t.self = null,
                        o = c([s], t)
                }(cc.Component));
        o.default = l,
            cc._RF.pop()
    }, {
        "./Promotion": "Promotion"
    }],
    MainScene: [function(e, t, o) {
        "use strict";
        cc._RF.push(t, "af408kYXW5CSalx5zrMA8CY", "MainScene");
        var a, n = this &amp;&amp; this.__extends || (a = function(e, t) {
                    return (a = Object.setPrototypeOf || {
                            __proto__: []
                        }
                        instanceof Array &amp;&amp; function(e, t) {
                            e.__proto__ = t
                        } ||
                        function(e, t) {
                            for (var o in t)
                                t.hasOwnProperty(o) &amp;&amp; (e[o] = t[o])
                        }
                    )(e, t)
                },
                function(e, t) {
                    function o() {
                        this.constructor = e
                    }
                    a(e, t),
                        e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype,
                            new o)
                }
            ),
            c = this &amp;&amp; this.__decorate || function(e, t, o, a) {
                var n, c = arguments.length,
                    i = c &lt; 3 ? t : null === a ? a = Object.getOwnPropertyDescriptor(t, o) : a;
                if ("object" == typeof Reflect &amp;&amp; "function" == typeof Reflect.decorate)
                    i = Reflect.decorate(e, t, o, a);
                else
                    for (var r = e.length - 1; r &gt;= 0; r--)
                        (n = e[r]) &amp;&amp; (i = (c &lt; 3 ? n(i) : c &gt; 3 ? n(t, o, i) : n(t, o)) || i);
                return c &gt; 3 &amp;&amp; i &amp;&amp; Object.defineProperty(t, o, i),
                    i
            };
        Object.defineProperty(o, "__esModule", {
            value: !0
        });
        var i = e("./Promotion"),
            r = cc._decorator,
            s = r.ccclass,
            l = (r.property,
                function(e) {
                    function t() {
                        return null !== e &amp;&amp; e.apply(this, arguments) || this
                    }
                    var o;
                    return n(t, e),
                        o = t,
                        t.prototype.onLoad = function() {
                            o.self = this,
                                cc.director.preloadScene("LevelScene"),
                                cc.debug.setDisplayStats(!1)
                        },
                        t.prototype.start = function() {
                            0 == cc.audioEngine.getMusicVolume() &amp;&amp; (cc.find("Canvas/SoundOn").active = !1,
                                cc.find("Canvas/SoundOff").active = !0)
                        },
                        t.prototype.getRandomInt = function(e, t) {
                            return e = Math.ceil(e),
                                t = Math.floor(t) + 1,
                                Math.floor(Math.random() * (t - e)) + e
                        },
                        t.prototype.playBTNClicked = function(e) {
                            this.PlaySound("Play"),
                                e.target.getComponent(cc.Button).interactable = !1,
                                this.node.runAction(cc.sequence(cc.delayTime(1), cc.callFunc(function() {
                                    cc.director.loadScene("LevelScene")
                                }, this))),
                                cc.sys.localStorage.setItem("WhichLevel", 1),
                                i.default.self.requestAds()
                        },
                        t.prototype.onSoundOffBtnClick = function() {
                            this.PlaySound("Button"),
                                cc.find("Canvas/SoundOn").active = !0,
                                cc.find("Canvas/SoundOff").active = !1,
                                cc.audioEngine.setMusicVolume(1),
                                cc.audioEngine.setEffectsVolume(1),
                                document.getElementById("bgsound") &amp;&amp; document.getElementById("bgsound").play()
                        },
                        t.prototype.onSoundOnBtnClick = function() {
                            this.PlaySound("Button"),
                                cc.find("Canvas/SoundOn").active = !1,
                                cc.find("Canvas/SoundOff").active = !0,
                                cc.audioEngine.setMusicVolume(0),
                                cc.audioEngine.setEffectsVolume(0),
                                document.getElementById("bgsound") &amp;&amp; document.getElementById("bgsound").pause()
                        },
                        t.prototype.PlaySound = function(e) {
                            cc.find("Canvas/SoundNode/" + e) &amp;&amp; cc.find("Canvas/SoundNode/" + e).getComponent(cc.AudioSource).play()
                        },
                        t.self = null,
                        o = c([s], t)
                }(cc.Component));
        o.default = l,
            cc._RF.pop()
    }, {
        "./Promotion": "Promotion"
    }],
    Playarea: [function(e, t, o) {
        "use strict";
        cc._RF.push(t, "be953CexYNBQL2WUTPG0Sq5", "Playarea");
        var a, n = this &amp;&amp; this.__extends || (a = function(e, t) {
                    return (a = Object.setPrototypeOf || {
                            __proto__: []
                        }
                        instanceof Array &amp;&amp; function(e, t) {
                            e.__proto__ = t
                        } ||
                        function(e, t) {
                            for (var o in t)
                                t.hasOwnProperty(o) &amp;&amp; (e[o] = t[o])
                        }
                    )(e, t)
                },
                function(e, t) {
                    function o() {
                        this.constructor = e
                    }
                    a(e, t),
                        e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype,
                            new o)
                }
            ),
            c = this &amp;&amp; this.__decorate || function(e, t, o, a) {
                var n, c = arguments.length,
                    i = c &lt; 3 ? t : null === a ? a = Object.getOwnPropertyDescriptor(t, o) : a;
                if ("object" == typeof Reflect &amp;&amp; "function" == typeof Reflect.decorate)
                    i = Reflect.decorate(e, t, o, a);
                else
                    for (var r = e.length - 1; r &gt;= 0; r--)
                        (n = e[r]) &amp;&amp; (i = (c &lt; 3 ? n(i) : c &gt; 3 ? n(t, o, i) : n(t, o)) || i);
                return c &gt; 3 &amp;&amp; i &amp;&amp; Object.defineProperty(t, o, i),
                    i
            };
        Object.defineProperty(o, "__esModule", {
            value: !0
        });
        var i, r = e("./Promotion"),
            s = cc._decorator,
            l = s.ccclass;
        s.property,
            function(e) {
                e[e.STAND = 0] = "STAND",
                    e[e.BATH = 1] = "BATH",
                    e[e.HOSPITAL = 2] = "HOSPITAL",
                    e[e.SALON = 3] = "SALON",
                    e[e.PLAYGROUND = 4] = "PLAYGROUND",
                    e[e.EXIT = 5] = "EXIT"
            }(i || (i = {}));
        var d = function(e) {
            function t() {
                var t = null !== e &amp;&amp; e.apply(this, arguments) || this;
                return t.SelectedLevel = 1,
                    t.Stand = [],
                    t.Bath = [],
                    t.Hospital = [],
                    t.Salon = [],
                    t.Playground = null,
                    t.TotalPets = 8,
                    t.Progress = null,
                    t.Timer = null,
                    t.TotalSecond = 540,
                    t.SkinColor = [],
                    t.HairColor = [],
                    t.DressColor = [],
                    t.CharacterCounter = 1,
                    t.CharacterColorCounter = 0,
                    t.PetCounter = 1,
                    t.TotalCharacter = 1,
                    t.SourceNode = null,
                    t.BeganPoint = null,
                    t.CanMove = !1,
                    t.SelectedBath = 0,
                    t.CharacterIndex = [],
                    t
            }
            var o;
            return n(t, e),
                o = t,
                t.prototype.onLoad = function() {
                    this.InitCode(),
                        o.self = this,
                        this.Stand[0] = cc.find("Canvas/Stand/StandM/1"),
                        this.Stand[1] = cc.find("Canvas/Stand/StandM/2"),
                        this.Stand[2] = cc.find("Canvas/Stand/StandM/3"),
                        this.Bath[0] = cc.find("Canvas/Chair/Bath1"),
                        this.Bath[1] = cc.find("Canvas/Chair/Bath2"),
                        this.Hospital[0] = cc.find("Canvas/Chair/Hospital1"),
                        this.Hospital[1] = cc.find("Canvas/Chair/Hospital2"),
                        this.Salon[0] = cc.find("Canvas/Chair/Salon1"),
                        this.Salon[1] = cc.find("Canvas/Chair/Salon2"),
                        this.Playground = cc.find("Canvas/Chair/Playground"),
                        this.SelectedLevel = parseInt(cc.sys.localStorage.getItem("SelectedLevel")),
                        cc.find("Canvas/TopPanel/Day/Text").getComponent(cc.Label).string = "" + this.SelectedLevel,
                        cc.find("Canvas/GetReady/Day").getComponent(cc.Label).string = "Day " + this.SelectedLevel,
                        this.Progress = cc.find("Canvas/TopPanel/ProgressFill").getComponent(cc.Sprite),
                        this.Timer = cc.find("Canvas/TopPanel/Timer/Text").getComponent(cc.Label),
                        1 == this.SelectedLevel ? (this.Stand[1].active = !1,
                            this.Stand[2].active = !1,
                            this.Bath[1].active = !1,
                            this.Salon[1].active = !1,
                            this.Hospital[0].active = !1,
                            this.Hospital[1].active = !1,
                            this.TotalPets = 8) : 2 == this.SelectedLevel ? (this.Stand[1].active = !1,
                            this.Stand[2].active = !1,
                            this.Bath[1].active = !1,
                            this.Salon[1].active = !1,
                            this.Hospital[0].active = !1,
                            this.Hospital[1].active = !1,
                            this.TotalPets = 9) : 3 == this.SelectedLevel ? (this.Stand[1].active = !1,
                            this.Stand[2].active = !1,
                            this.Hospital[0].active = !1,
                            this.Hospital[1].active = !1,
                            this.TotalPets = 10) : 4 == this.SelectedLevel ? (this.Stand[2].active = !1,
                            this.Hospital[0].active = !1,
                            this.Hospital[1].active = !1,
                            this.setSpriteFrame(this.Bath[0], "Canvas/Loader/Tool/Bath2"),
                            this.setSpriteFrame(this.Bath[0].getChildByName("Top"), "Canvas/Loader/Tool/BathTop2"),
                            this.TotalPets = 11) : 5 == this.SelectedLevel ? (this.Stand[2].active = !1,
                            this.Hospital[1].active = !1,
                            this.setSpriteFrame(this.Bath[0], "Canvas/Loader/Tool/Bath2"),
                            this.setSpriteFrame(this.Bath[0].getChildByName("Top"), "Canvas/Loader/Tool/BathTop2"),
                            this.setSpriteFrame(this.Bath[1], "Canvas/Loader/Tool/Bath2"),
                            this.setSpriteFrame(this.Bath[1].getChildByName("Top"), "Canvas/Loader/Tool/BathTop2"),
                            this.TotalPets = 11) : 6 == this.SelectedLevel ? (this.Stand[2].active = !1,
                            this.Hospital[1].active = !1,
                            this.setSpriteFrame(this.Bath[0], "Canvas/Loader/Tool/Bath2"),
                            this.setSpriteFrame(this.Bath[0].getChildByName("Top"), "Canvas/Loader/Tool/BathTop2"),
                            this.setSpriteFrame(this.Bath[1], "Canvas/Loader/Tool/Bath2"),
                            this.setSpriteFrame(this.Bath[1].getChildByName("Top"), "Canvas/Loader/Tool/BathTop2"),
                            this.TotalPets = 11) : 7 == this.SelectedLevel ? (this.Stand[2].active = !1,
                            this.Hospital[1].active = !1,
                            this.setSpriteFrame(this.Bath[0], "Canvas/Loader/Tool/Bath2"),
                            this.setSpriteFrame(this.Bath[0].getChildByName("Top"), "Canvas/Loader/Tool/BathTop2"),
                            this.setSpriteFrame(this.Bath[1], "Canvas/Loader/Tool/Bath2"),
                            this.setSpriteFrame(this.Bath[1].getChildByName("Top"), "Canvas/Loader/Tool/BathTop2"),
                            this.TotalPets = 10) : 8 == this.SelectedLevel ? (this.Hospital[1].active = !1,
                            this.setSpriteFrame(this.Bath[0], "Canvas/Loader/Tool/Bath2"),
                            this.setSpriteFrame(this.Bath[0].getChildByName("Top"), "Canvas/Loader/Tool/BathTop2"),
                            this.setSpriteFrame(this.Bath[1], "Canvas/Loader/Tool/Bath2"),
                            this.setSpriteFrame(this.Bath[1].getChildByName("Top"), "Canvas/Loader/Tool/BathTop2"),
                            this.setSpriteFrame(this.Salon[0], "Canvas/Loader/Tool/SalonChair2"),
                            this.TotalPets = 10) : 9 == this.SelectedLevel ? (this.Hospital[1].active = !1,
                            this.setSpriteFrame(this.Bath[0], "Canvas/Loader/Tool/Bath2"),
                            this.setSpriteFrame(this.Bath[0].getChildByName("Top"), "Canvas/Loader/Tool/BathTop2"),
                            this.setSpriteFrame(this.Bath[1], "Canvas/Loader/Tool/Bath2"),
                            this.setSpriteFrame(this.Bath[1].getChildByName("Top"), "Canvas/Loader/Tool/BathTop2"),
                            this.setSpriteFrame(this.Salon[0], "Canvas/Loader/Tool/SalonChair2"),
                            this.setSpriteFrame(this.Salon[1], "Canvas/Loader/Tool/SalonChair2"),
                            this.TotalPets = 11) : 10 == this.SelectedLevel &amp;&amp; (this.setSpriteFrame(this.Bath[0], "Canvas/Loader/Tool/Bath2"),
                            this.setSpriteFrame(this.Bath[0].getChildByName("Top"), "Canvas/Loader/Tool/BathTop2"),
                            this.setSpriteFrame(this.Bath[1], "Canvas/Loader/Tool/Bath2"),
                            this.setSpriteFrame(this.Bath[1].getChildByName("Top"), "Canvas/Loader/Tool/BathTop2"),
                            this.setSpriteFrame(this.Salon[0], "Canvas/Loader/Tool/SalonChair2"),
                            this.setSpriteFrame(this.Salon[1], "Canvas/Loader/Tool/SalonChair2"),
                            this.setSpriteFrame(this.Hospital[0], "Canvas/Loader/Tool/Hospital4"),
                            this.TotalPets = 12);
                    for (var e = 1; e &lt;= 13; e++)
                        this.CharacterIndex.push(e);
                    this.shuffleArray(this.CharacterIndex),
                        this.TotalSecond = 15 * this.TotalPets,
                        this.UpdateTimer(),
                        cc.find("Canvas/StartScreen").active = !0
                },
                t.prototype.shuffleArray = function(e) {
                    for (var t, o = e.length - 1; o &gt; 0; o--) {
                        var a = Math.floor(Math.random() * (o + 1));
                        t = [e[a], e[o]],
                            e[o] = t[0],
                            e[a] = t[1]
                    }
                },
                t.prototype.start = function() {
                    this.node.on(cc.Node.EventType.TOUCH_START, this.TouchBegan),
                        this.node.on(cc.Node.EventType.TOUCH_MOVE, this.TouchMove),
                        this.node.on(cc.Node.EventType.TOUCH_CANCEL, this.TouchEnded),
                        this.node.on(cc.Node.EventType.TOUCH_END, this.TouchEnded)
                },
                t.prototype.OpenReadyScreen = function() {
                    this.PlaySound("Button"),
                        cc.find("Canvas/StartScreen").active = !1,
                        cc.find("Canvas/GetReady").active = !0
                },
                t.prototype.StartGame = function() {
                    this.PlaySound("Button"),
                        cc.find("Canvas/GetReady").active = !1,
                        this.Timer.node.runAction(cc.repeatForever(cc.sequence(cc.delayTime(1), cc.callFunc(function() {
                            o.self.TotalSecond--,
                                o.self.UpdateTimer()
                        })))),
                        o.self.CharacterEntry();
                    var e = 6;
                    this.SelectedLevel &gt;= 4 &amp;&amp; (e = 4),
                        o.self.node.runAction(cc.repeatForever(cc.sequence(cc.delayTime(e), cc.callFunc(function() {
                            o.self.CharacterEntry()
                        }))))
                },
                t.prototype.UpdateTimer = function() {
                    if (0 == o.self.TotalSecond) {
                        this.StopTimer(),
                            cc.find("Canvas/TimeOver").active = !0;
                        var e = cc.find("Canvas/TimeOver/HintPopup/ProgressFill").getComponent(cc.Sprite);
                        e.fillRange = 0,
                            cc.tween(e).to(2, {
                                fillRange: this.Progress.getComponent(cc.Sprite).fillRange
                            }).start(),
                            this.PlaySound("Timeup");
                        var t = ((a = parseInt(this.TotalSecond / 60 + "")) &gt;= 10 ? a : "0" + a) + ":" + ((n = parseInt(this.TotalSecond % 60 + "")) &gt;= 10 ? n : "0" + n);
                        this.Timer.string = t
                    } else {
                        var a, n;
                        t = ((a = parseInt(this.TotalSecond / 60 + "")) &gt;= 10 ? a : "0" + a) + ":" + ((n = parseInt(this.TotalSecond % 60 + "")) &gt;= 10 ? n : "0" + n),
                            this.Timer.string = t
                    }
                },
                t.prototype.StopTimer = function() {
                    this.Timer.node.stopAllActions()
                },
                t.prototype.CharacterEntry = function() {
                    if (console.log(this.TotalCharacter),
                        console.log(this.TotalPets), !(this.TotalCharacter &gt; this.TotalPets))
                        if (this.Stand[0].active &amp;&amp; 255 == this.Stand[0].opacity &amp;&amp; 0 == this.Stand[0].childrenCount) {
                            var e = cc.instantiate(cc.find("Canvas/Loader/Customer/" + this.CharacterCounter));
                            cc.find("Canvas/Character").addChild(e),
                                e.zIndex = 1,
                                e.position = cc.v3(470, 100, 0),
                                e.name = "A" + this.TotalCharacter;
                            var t = this.TotalCharacter;
                            this.TotalCharacter++,
                                e.getChildByName("Body_1").color = this.SkinColor[this.CharacterColorCounter],
                                e.getChildByName("Body_1").getChildByName("GDress_1").color = this.DressColor[this.CharacterColorCounter],
                                e.getChildByName("Body_1").getChildByName("GHair_1").color = this.HairColor[this.CharacterColorCounter],
                                this.Stand[0].opacity = 254,
                                e.runAction(cc.sequence(cc.spawn(cc.jumpBy(1, cc.v2(0, 10), 10, 5), cc.moveTo(1, cc.v2(70, 100))), cc.callFunc(function() {
                                    o.self.addPetAtStand(0, t),
                                        o.self.Stand[0].opacity = 255
                                }), cc.delayTime(.3), cc.spawn(cc.jumpBy(1, cc.v2(0, 10), 10, 5), cc.moveTo(1, cc.v2(470, 100))))),
                                this.CharacterCounter++,
                                this.CharacterColorCounter++,
                                this.CharacterColorCounter &gt;= this.SkinColor.length &amp;&amp; (this.CharacterColorCounter = 0),
                                this.CharacterCounter &gt; 6 &amp;&amp; (this.CharacterCounter = 1)
                        } else if (this.Stand[1].active &amp;&amp; 255 == this.Stand[1].opacity &amp;&amp; 0 == this.Stand[1].childrenCount) {
                        e = cc.instantiate(cc.find("Canvas/Loader/Customer/" + this.CharacterCounter)),
                            cc.find("Canvas/Character").addChild(e),
                            e.zIndex = 1,
                            e.position = cc.v3(470, 100, 0),
                            e.name = "A" + this.TotalCharacter;
                        var a = this.TotalCharacter;
                        this.TotalCharacter++,
                            e.getChildByName("Body_1").color = this.SkinColor[this.CharacterColorCounter],
                            e.getChildByName("Body_1").getChildByName("GDress_1").color = this.DressColor[this.CharacterColorCounter],
                            e.getChildByName("Body_1").getChildByName("GHair_1").color = this.HairColor[this.CharacterColorCounter],
                            this.Stand[1].opacity = 254,
                            e.runAction(cc.sequence(cc.spawn(cc.jumpBy(.6, cc.v2(0, 10), 10, 5), cc.moveTo(.6, cc.v2(204, 100))), cc.callFunc(function() {
                                o.self.addPetAtStand(1, a),
                                    o.self.Stand[1].opacity = 255
                            }), cc.delayTime(.3), cc.spawn(cc.jumpBy(.6, cc.v2(0, 10), 10, 5), cc.moveTo(.6, cc.v2(470, 100))))),
                            this.CharacterCounter++,
                            this.CharacterColorCounter++,
                            this.CharacterColorCounter &gt;= this.SkinColor.length &amp;&amp; (this.CharacterColorCounter = 0),
                            this.CharacterCounter &gt; 6 &amp;&amp; (this.CharacterCounter = 1)
                    } else if (this.Stand[2].active &amp;&amp; 255 == this.Stand[2].opacity &amp;&amp; 0 == this.Stand[2].childrenCount) {
                        e = cc.instantiate(cc.find("Canvas/Loader/Customer/" + this.CharacterCounter)),
                            cc.find("Canvas/Character").addChild(e),
                            e.zIndex = 1,
                            e.position = cc.v3(470, 100, 0),
                            e.name = "A" + this.TotalCharacter;
                        var n = this.TotalCharacter;
                        this.TotalCharacter++,
                            e.getChildByName("Body_1").color = this.SkinColor[this.CharacterColorCounter],
                            e.getChildByName("Body_1").getChildByName("GDress_1").color = this.DressColor[this.CharacterColorCounter],
                            e.getChildByName("Body_1").getChildByName("GHair_1").color = this.HairColor[this.CharacterColorCounter],
                            this.Stand[2].opacity = 254,
                            e.runAction(cc.sequence(cc.spawn(cc.jumpBy(.4, cc.v2(0, 10), 10, 5), cc.moveTo(.4, cc.v2(323, 100))), cc.callFunc(function() {
                                o.self.addPetAtStand(2, n),
                                    o.self.Stand[2].opacity = 255
                            }), cc.delayTime(.3), cc.spawn(cc.jumpBy(.4, cc.v2(0, 10), 10, 5), cc.moveTo(.4, cc.v2(470, 100))))),
                            this.CharacterCounter++,
                            this.CharacterColorCounter++,
                            this.CharacterColorCounter &gt;= this.SkinColor.length &amp;&amp; (this.CharacterColorCounter = 0),
                            this.CharacterCounter &gt; 6 &amp;&amp; (this.CharacterCounter = 1)
                    }
                },
                t.prototype.addPetAtStand = function(e, t) {
                    var o = cc.instantiate(cc.find("Canvas/Loader/Character/" + this.CharacterIndex[this.PetCounter - 1]));
                    this.Stand[e].addChild(o),
                        this.PetCounter++,
                        o.groupIndex = t,
                        this.generateActivity(o),
                        o.position = cc.v3(0, -10, 0),
                        this.PetCounter &gt; 13 &amp;&amp; (this.PetCounter = 1),
                        this.ShowPopup(o)
                },
                t.prototype.setSpriteFrame = function(e, t) {
                    e &amp;&amp; cc.find(t) &amp;&amp; (e.getComponent(cc.Sprite).spriteFrame = cc.find(t).getComponent(cc.Sprite).spriteFrame)
                },
                t.prototype.TouchBegan = function(e) {
                    var t = e.getLocation(),
                        a = o.self.node.convertToNodeSpaceAR(t);
                    if (!(cc.find("Canvas/MoveNode").childrenCount &gt; 0)) {
                        for (var n = 0; n &lt; 3; n++)
                            if (o.self.Stand[n].childrenCount &gt; 0 &amp;&amp; o.self.Stand[n].children[0].getBoundingBoxToWorld().contains(t)) {
                                o.self.SourceNode = o.self.Stand[n].children[0],
                                    o.self.BeganPoint = a,
                                    o.self.PlaySound("sfx_ingame_pick_pet"),
                                    o.self.CanMove = !0;
                                var c = cc.instantiate(o.self.Stand[n].children[0]);
                                cc.find("Canvas/MoveNode").addChild(c),
                                    c.position = cc.v3(a),
                                    c.getComponent(cc.Animation).play("MoveCharacter"),
                                    o.self.setSpriteFrame(c, "Canvas/Loader/LoadCharacterFrame/Character" + c.name + "_0"),
                                    o.self.SourceNode.active = !1
                            }
                        o.self.CanMove || (o.self.Bath[0].getChildByName("Character").childrenCount &gt; 0 &amp;&amp; o.self.Bath[0].getChildByName("Character").children[0].getBoundingBoxToWorld().contains(t) &amp;&amp; 0 == o.self.Bath[0].getChildByName("Anim").active ? (o.self.SourceNode = o.self.Bath[0].getChildByName("Character").children[0],
                            o.self.BeganPoint = a,
                            o.self.CanMove = !0,
                            o.self.PlaySound("sfx_ingame_pick_pet"),
                            c = cc.instantiate(o.self.SourceNode),
                            cc.find("Canvas/MoveNode").addChild(c),
                            c.position = cc.v3(a),
                            c.getComponent(cc.Animation).play("MoveCharacter"),
                            o.self.setSpriteFrame(c, "Canvas/Loader/LoadCharacterFrame/Character" + c.name + "_0"),
                            o.self.SourceNode.active = !1) : o.self.Bath[1].getChildByName("Character").childrenCount &gt; 0 &amp;&amp; o.self.Bath[1].getChildByName("Character").children[0].getBoundingBoxToWorld().contains(t) &amp;&amp; 0 == o.self.Bath[1].getChildByName("Anim").active ? (o.self.SourceNode = o.self.Bath[1].getChildByName("Character").children[0],
                            o.self.BeganPoint = a,
                            o.self.CanMove = !0,
                            o.self.PlaySound("sfx_ingame_pick_pet"),
                            c = cc.instantiate(o.self.SourceNode),
                            cc.find("Canvas/MoveNode").addChild(c),
                            c.position = cc.v3(a),
                            c.getComponent(cc.Animation).play("MoveCharacter"),
                            o.self.setSpriteFrame(c, "Canvas/Loader/LoadCharacterFrame/Character" + c.name + "_0"),
                            o.self.SourceNode.active = !1) : o.self.Salon[0].getChildByName("Character").childrenCount &gt; 0 &amp;&amp; o.self.Salon[0].getChildByName("Character").children[0].getBoundingBoxToWorld().contains(t) &amp;&amp; 0 == o.self.Salon[0].getChildByName("Anim").active ? (o.self.SourceNode = o.self.Salon[0].getChildByName("Character").children[0],
                            o.self.BeganPoint = a,
                            o.self.CanMove = !0,
                            o.self.PlaySound("sfx_ingame_pick_pet"),
                            c = cc.instantiate(o.self.SourceNode),
                            cc.find("Canvas/MoveNode").addChild(c),
                            c.position = cc.v3(a),
                            c.getComponent(cc.Animation).play("MoveCharacter"),
                            o.self.setSpriteFrame(c, "Canvas/Loader/LoadCharacterFrame/Character" + c.name + "_0"),
                            o.self.SourceNode.active = !1) : o.self.Salon[1].getChildByName("Character").childrenCount &gt; 0 &amp;&amp; o.self.Salon[1].getChildByName("Character").children[0].getBoundingBoxToWorld().contains(t) &amp;&amp; 0 == o.self.Salon[1].getChildByName("Anim").active ? (o.self.SourceNode = o.self.Salon[1].getChildByName("Character").children[0],
                            o.self.BeganPoint = a,
                            o.self.CanMove = !0,
                            o.self.PlaySound("sfx_ingame_pick_pet"),
                            c = cc.instantiate(o.self.SourceNode),
                            cc.find("Canvas/MoveNode").addChild(c),
                            c.position = cc.v3(a),
                            c.getComponent(cc.Animation).play("MoveCharacter"),
                            o.self.setSpriteFrame(c, "Canvas/Loader/LoadCharacterFrame/Character" + c.name + "_0"),
                            o.self.SourceNode.active = !1) : o.self.Hospital[0].getChildByName("Character").childrenCount &gt; 0 &amp;&amp; o.self.Hospital[0].getChildByName("Character").children[0].getBoundingBoxToWorld().contains(t) &amp;&amp; 0 == o.self.Hospital[0].getChildByName("Anim").active ? (o.self.SourceNode = o.self.Hospital[0].getChildByName("Character").children[0],
                            o.self.BeganPoint = a,
                            o.self.CanMove = !0,
                            o.self.PlaySound("sfx_ingame_pick_pet"),
                            c = cc.instantiate(o.self.SourceNode),
                            cc.find("Canvas/MoveNode").addChild(c),
                            c.position = cc.v3(a),
                            c.getComponent(cc.Animation).play("MoveCharacter"),
                            o.self.setSpriteFrame(c, "Canvas/Loader/LoadCharacterFrame/Character" + c.name + "_0"),
                            o.self.SourceNode.active = !1) : o.self.Hospital[1].getChildByName("Character").childrenCount &gt; 0 &amp;&amp; o.self.Hospital[1].getChildByName("Character").children[0].getBoundingBoxToWorld().contains(t) &amp;&amp; 0 == o.self.Hospital[1].getChildByName("Anim").active &amp;&amp; (o.self.SourceNode = o.self.Hospital[1].getChildByName("Character").children[0],
                            o.self.BeganPoint = a,
                            o.self.CanMove = !0,
                            o.self.PlaySound("sfx_ingame_pick_pet"),
                            c = cc.instantiate(o.self.SourceNode),
                            cc.find("Canvas/MoveNode").addChild(c),
                            c.position = cc.v3(a),
                            c.getComponent(cc.Animation).play("MoveCharacter"),
                            o.self.setSpriteFrame(c, "Canvas/Loader/LoadCharacterFrame/Character" + c.name + "_0"),
                            o.self.SourceNode.active = !1))
                    }
                },
                t.prototype.TouchMove = function(e) {
                    var t = e.getLocation(),
                        a = o.self.node.convertToNodeSpaceAR(t);
                    o.self.CanMove &amp;&amp; (cc.find("Canvas/MoveNode").children[0].position = cc.v3(a))
                },
                t.prototype.TouchEnded = function(e) {
                    var t = e.getLocation();
                    if (o.self.node.convertToNodeSpaceAR(t),
                        o.self.CanMove) {
                        var a = cc.find("Canvas/MoveNode").children[0];
                        o.self.CanMove = !1;
                        var n = o.self.getActivity(a);
                        o.self.Bath[0].active &amp;&amp; o.self.isIntersect(o.self.Bath[0], t) &amp;&amp; n == i.BATH &amp;&amp; 0 == o.self.Bath[0].getChildByName("Character").childrenCount ? (o.self.SourceNode.removeFromParent(),
                            a.parent = o.self.Bath[0].getChildByName("Character"),
                            a.position = cc.v3(0, -20, 0),
                            a.getComponent(cc.Animation).play("Breathing"),
                            o.self.HidePopup(a),
                            o.self.PlaySound("BathPut"),
                            o.self.setSpriteFrame(a, "Canvas/Loader/LoadCharacterFrame/Character" + a.name + "_1"),
                            1 == o.self.getRandomInt(1, 3) ? (o.self.SelectedBath = 0,
                                o.self.ShowBathPopup(a)) : 1 == o.self.getRandomInt(1, 3) ? (o.self.SelectedBath = 0,
                                o.self.ShowHairPopup(a)) : o.self.StartAction(o.self.Bath[0], a)) : o.self.Bath[1].active &amp;&amp; o.self.isIntersect(o.self.Bath[1], t) &amp;&amp; n == i.BATH &amp;&amp; 0 == o.self.Bath[1].getChildByName("Character").childrenCount ? (o.self.SourceNode.removeFromParent(),
                            a.parent = o.self.Bath[1].getChildByName("Character"),
                            a.position = cc.v3(0, -20, 0),
                            o.self.PlaySound("BathPut"),
                            a.getComponent(cc.Animation).play("Breathing"),
                            o.self.HidePopup(a),
                            o.self.setSpriteFrame(a, "Canvas/Loader/LoadCharacterFrame/Character" + a.name + "_1"),
                            1 == o.self.getRandomInt(1, 3) ? (o.self.SelectedBath = 1,
                                o.self.ShowBathPopup(a)) : 1 == o.self.getRandomInt(1, 3) ? (o.self.SelectedBath = 1,
                                o.self.ShowHairPopup(a)) : o.self.StartAction(o.self.Bath[1], a)) : o.self.Salon[0].active &amp;&amp; o.self.isIntersect(o.self.Salon[0], t) &amp;&amp; n == i.SALON &amp;&amp; 0 == o.self.Salon[0].getChildByName("Character").childrenCount ? (o.self.SourceNode.removeFromParent(),
                            a.parent = o.self.Salon[0].getChildByName("Character"),
                            a.position = cc.v3(0, -20, 0),
                            o.self.PlaySound("Salon"),
                            a.getComponent(cc.Animation).play("Breathing"),
                            o.self.HidePopup(a),
                            o.self.PlaySound("put sound"),
                            o.self.StartAction(o.self.Salon[0], a),
                            o.self.setSpriteFrame(a, "Canvas/Loader/LoadCharacterFrame/Character" + a.name + "_1")) : o.self.Salon[1].active &amp;&amp; o.self.isIntersect(o.self.Salon[1], t) &amp;&amp; n == i.SALON &amp;&amp; 0 == o.self.Salon[1].getChildByName("Character").childrenCount ? (o.self.SourceNode.removeFromParent(),
                            a.parent = o.self.Salon[1].getChildByName("Character"),
                            a.position = cc.v3(0, -20, 0),
                            o.self.PlaySound("Salon"),
                            a.getComponent(cc.Animation).play("Breathing"),
                            o.self.HidePopup(a),
                            o.self.PlaySound("put sound"),
                            o.self.StartAction(o.self.Salon[1], a),
                            o.self.setSpriteFrame(a, "Canvas/Loader/LoadCharacterFrame/Character" + a.name + "_1")) : o.self.Hospital[0].active &amp;&amp; o.self.isIntersect(o.self.Hospital[0], t) &amp;&amp; n == i.HOSPITAL &amp;&amp; 0 == o.self.Hospital[0].getChildByName("Character").childrenCount ? (o.self.SourceNode.removeFromParent(),
                            a.parent = o.self.Hospital[0].getChildByName("Character"),
                            a.position = cc.v3(0, 0, 0),
                            o.self.PlaySound("Hospital"),
                            o.self.PlaySound("put sound"),
                            a.getComponent(cc.Animation).play("Breathing"),
                            o.self.HidePopup(a),
                            o.self.StartAction(o.self.Hospital[0], a),
                            o.self.setSpriteFrame(a, "Canvas/Loader/LoadCharacterFrame/Character" + a.name + "_1")) : o.self.Hospital[1].active &amp;&amp; o.self.isIntersect(o.self.Hospital[1], t) &amp;&amp; n == i.HOSPITAL &amp;&amp; 0 == o.self.Hospital[1].getChildByName("Character").childrenCount ? (o.self.SourceNode.removeFromParent(),
                            a.parent = o.self.Hospital[1].getChildByName("Character"),
                            a.position = cc.v3(0, 0, 0),
                            o.self.PlaySound("Hospital"),
                            o.self.PlaySound("put sound"),
                            a.getComponent(cc.Animation).play("Breathing"),
                            o.self.HidePopup(a),
                            o.self.StartAction(o.self.Hospital[1], a),
                            o.self.setSpriteFrame(a, "Canvas/Loader/LoadCharacterFrame/Character" + a.name + "_1")) : o.self.Playground.active &amp;&amp; o.self.Playground.getBoundingBoxToWorld().contains(t) &amp;&amp; n == i.PLAYGROUND &amp;&amp; (0 == o.self.Playground.getChildByName("Character1").childrenCount || 0 == o.self.Playground.getChildByName("Character2").childrenCount) ? (o.self.SourceNode.removeFromParent(),
                            0 == o.self.Playground.getChildByName("Character1").childrenCount ? a.parent = o.self.Playground.getChildByName("Character1") : a.parent = o.self.Playground.getChildByName("Character2"),
                            a.position = cc.v3(0, 0, 0),
                            o.self.PlaySound("put sound"),
                            a.getComponent(cc.Animation).play("Breathing"),
                            o.self.HidePopup(a),
                            o.self.StartAction(o.self.Playground, a),
                            o.self.setSpriteFrame(a, "Canvas/Loader/LoadCharacterFrame/Character" + a.name + "_1")) : (o.self.PlaySound("swipeback"),
                            cc.find("Canvas/MoveNode").children[0].runAction(cc.sequence(cc.jumpTo(.3, o.self.BeganPoint, 30, 1), cc.callFunc(function() {
                                o.self.SourceNode.active = !0
                            }), cc.removeSelf())))
                    }
                },
                t.prototype.StartAction = function(e, t) {
                    e.getChildByName("Anim") ? (e.getChildByName("Anim").active = !0,
                        e.runAction(cc.sequence(cc.delayTime(6), cc.callFunc(function() {
                            "Salon1" != e.name &amp;&amp; "Salon2" != e.name || 2 != o.self.getRandomInt(1, 3) ? o.self.setActivity(t, i.PLAYGROUND) : o.self.setActivity(t, i.BATH),
                                e.getChildByName("Anim").active = !1,
                                o.self.ShowPopup(t),
                                o.self.addBlast(e)
                        })))) : e.runAction(cc.sequence(cc.delayTime(3), cc.callFunc(function() {
                        o.self.CharacterExit(t.groupIndex, t)
                    })))
                },
                t.prototype.BathDoneAction = function() {
                    var e = o.self.Bath[o.self.SelectedBath].getChildByName("Character").children[0];
                    o.self.setActivity(e, i.PLAYGROUND),
                        o.self.ShowPopup(e),
                        o.self.addBlast(o.self.Bath[o.self.SelectedBath])
                },
                t.prototype.CharacterExit = function(e, t) {
                    var a = cc.find("Canvas/Character").getChildByName("A" + e);
                    a.zIndex = 0,
                        this.PlaySound("CharacterExit"),
                        a.position = cc.v3(470, 100, 0),
                        a.runAction(cc.sequence(cc.spawn(cc.jumpBy(1, cc.v2(0, 10), 10, 5), cc.moveTo(1, cc.v2(10, 100))), cc.callFunc(function() {
                            t.removeFromParent(),
                                o.self.addProgress()
                        }), cc.delayTime(.3), cc.spawn(cc.jumpBy(1, cc.v2(0, 10), 10, 5), cc.moveTo(1, cc.v2(470, 100))), cc.removeSelf()))
                },
                t.prototype.addBlast = function(e) {
                    this.PlaySound("blast");
                    var t = cc.instantiate(cc.find("Canvas/Loader/Blast"));
                    e.addChild(t),
                        t.position = cc.Vec3.ZERO,
                        t.active = !0,
                        t.getComponent(cc.Animation).on("finished", function() {
                            t.removeFromParent()
                        })
                },
                t.prototype.ShowBathPopup = function(e) {
                    cc.find("Canvas/BathPopup").active = !0,
                        cc.find("Canvas/BathPopup/Character1_1").getComponent(cc.Sprite).spriteFrame = e.getComponent(cc.Sprite).spriteFrame,
                        cc.find("Canvas/BathPopup/Character1_1/Mask").getComponent(cc.Mask).spriteFrame = e.getComponent(cc.Sprite).spriteFrame,
                        cc.find("Canvas/BathPopup/Character1_1/Mask").setContentSize(cc.find("Canvas/BathPopup/Character1_1").getContentSize())
                },
                t.prototype.ShowHairPopup = function(e) {
                    "1" == e.name ? cc.find("Canvas/HairPopup/Hair").color = cc.color(105, 23, 100) : "2" == e.name ? cc.find("Canvas/HairPopup/Hair").color = cc.color(205, 110, 85) : "3" == e.name ? cc.find("Canvas/HairPopup/Hair").color = cc.color(255, 155, 125) : "4" == e.name ? cc.find("Canvas/HairPopup/Hair").color = cc.color(190, 80, 25) : "5" == e.name ? cc.find("Canvas/HairPopup/Hair").color = cc.color(255, 125, 60) : "6" == e.name ? cc.find("Canvas/HairPopup/Hair").color = cc.color(238, 238, 238) : "7" == e.name ? cc.find("Canvas/HairPopup/Hair").color = cc.color(30, 30, 30) : "8" == e.name ? cc.find("Canvas/HairPopup/Hair").color = cc.color(60, 60, 50) : "9" == e.name ? cc.find("Canvas/HairPopup/Hair").color = cc.color(188, 188, 188) : "10" == e.name ? cc.find("Canvas/HairPopup/Hair").color = cc.color(250, 200, 150) : "11" == e.name ? cc.find("Canvas/HairPopup/Hair").color = cc.color(255, 235, 215) : "12" == e.name ? cc.find("Canvas/HairPopup/Hair").color = cc.color(255, 140, 75) : "13" == e.name &amp;&amp; (cc.find("Canvas/HairPopup/Hair").color = cc.color(255, 150, 130));
                    var t = cc.instantiate(cc.find("Canvas/HairPopup"));
                    t.active = !0,
                        cc.find("Canvas/POpup").addChild(t),
                        t.position = cc.Vec3.ZERO
                },
                t.prototype.addProgress = function() {
                    var e = this.Progress.fillRange + 1 / this.TotalPets;
                    console.log("progress" + e),
                        cc.tween(this.Progress).to(.01, {
                            fillRange: e
                        }).start(),
                        this.isViewDone()
                },
                t.prototype.HidePopup = function(e) {
                    e.getChildByName("Popup") &amp;&amp; (e.getChildByName("Popup").active = !1)
                },
                t.prototype.ShowPopup = function(e) {
                    e.getChildByName("Popup") &amp;&amp; (e.getChildByName("Popup").active = !0,
                        e.getChildByName("Popup").getChildByName("Exp").active = !0,
                        e.getChildByName("Popup").stopAllActions(),
                        o.self.setSpriteFrame(e.getChildByName("Popup").getChildByName("Exp"), "Canvas/Loader/Exp/1"),
                        e.getChildByName("Popup").runAction(cc.sequence(cc.delayTime(5), cc.callFunc(function() {
                            o.self.setSpriteFrame(e.getChildByName("Popup").getChildByName("Exp"), "Canvas/Loader/Exp/2")
                        }), cc.delayTime(5), cc.callFunc(function() {
                            o.self.setSpriteFrame(e.getChildByName("Popup").getChildByName("Exp"), "Canvas/Loader/Exp/3"),
                                o.self.setSpriteFrame(e, "Canvas/Loader/LoadCharacterFrame/Character" + e.name + "_2")
                        }), cc.delayTime(5), cc.callFunc(function() {
                            o.self.setSpriteFrame(e.getChildByName("Popup").getChildByName("Exp"), "Canvas/Loader/Exp/4"),
                                o.self.setSpriteFrame(e, "Canvas/Loader/LoadCharacterFrame/Character" + e.name + "_3")
                        }), cc.delayTime(5), cc.callFunc(function() {
                            o.self.setSpriteFrame(e.getChildByName("Popup").getChildByName("Exp"), "Canvas/Loader/Exp/5")
                        }), cc.delayTime(5), cc.callFunc(function() {
                            o.self.setSpriteFrame(e.getChildByName("Popup").getChildByName("Exp"), "Canvas/Loader/Exp/6")
                        }))))
                },
                t.prototype.isIntersect = function(e, t) {
                    return !!cc.v2(e.getBoundingBoxToWorld().xMin + e.getContentSize().width / 2, e.getBoundingBoxToWorld().yMin + e.getContentSize().height / 2).fuzzyEquals(cc.v2(t.x, t.y - e.getContentSize().height / 2), 40)
                },
                t.prototype.generateActivity = function(e) {
                    this.Bath[0].active &amp;&amp; 1 == this.getRandomInt(0, 1) &amp;&amp; this.getActivity(e) != i.BATH &amp;&amp; this.isEmpty(i.BATH) ? this.setActivity(e, i.BATH) : this.Hospital[0].active &amp;&amp; 1 == this.getRandomInt(0, 1) &amp;&amp; this.getActivity(e) != i.HOSPITAL &amp;&amp; this.isEmpty(i.HOSPITAL) ? this.setActivity(e, i.HOSPITAL) : this.Salon[0].active &amp;&amp; this.getActivity(e) != i.SALON &amp;&amp; this.isEmpty(i.SALON) ? this.setActivity(e, i.SALON) : this.Hospital[0].active &amp;&amp; 1 == this.getRandomInt(1, 2) ? this.setActivity(e, i.HOSPITAL) : this.Salon[0].active ? this.setActivity(e, i.SALON) : this.Bath[0].active &amp;&amp; this.setActivity(e, i.BATH)
                },
                t.prototype.isEmpty = function(e) {
                    if (e == i.BATH) {
                        if (this.Bath[0].active &amp;&amp; 0 == this.Bath[0].getChildByName("Character").childrenCount)
                            return !0;
                        if (this.Bath[1].active &amp;&amp; 0 == this.Bath[1].getChildByName("Character").childrenCount)
                            return !0
                    } else if (e == i.SALON) {
                        if (this.Salon[0].active &amp;&amp; 0 == this.Salon[0].getChildByName("Character").childrenCount)
                            return !0;
                        if (this.Salon[1].active &amp;&amp; 0 == this.Salon[1].getChildByName("Character").childrenCount)
                            return !0
                    } else if (e == i.HOSPITAL) {
                        if (this.Hospital[0].active &amp;&amp; 0 == this.Hospital[0].getChildByName("Character").childrenCount)
                            return !0;
                        if (this.Hospital[1].active &amp;&amp; 0 == this.Hospital[1].getChildByName("Character").childrenCount)
                            return !0
                    }
                    return !1
                },
                t.prototype.setActivity = function(e, t) {
                    var o = e.getChildByName("Popup").getChildByName("Item");
                    t == i.PLAYGROUND ? this.setSpriteFrame(o, "Canvas/Loader/ICON/Playground") : t == i.BATH ? this.setSpriteFrame(o, "Canvas/Loader/ICON/Bath") : t == i.HOSPITAL ? this.setSpriteFrame(o, "Canvas/Loader/ICON/Hospital") : t == i.SALON ? this.setSpriteFrame(o, "Canvas/Loader/ICON/Salon") : t == i.EXIT &amp;&amp; (e.scale = 0)
                },
                t.prototype.getActivity = function(e) {
                    var t = e.getChildByName("Popup").getChildByName("Item").getComponent(cc.Sprite).spriteFrame.name;
                    return "Playground" == t ? i.PLAYGROUND : "Bath" == t ? i.BATH : "Hospital" == t ? i.HOSPITAL : "Salon" == t ? i.SALON : i.EXIT
                },
                t.prototype.getRandomInt = function(e, t) {
                    return e = Math.ceil(e),
                        t = Math.floor(t) + 1,
                        Math.floor(Math.random() * (t - e)) + e
                },
                t.prototype.InitCode = function() {
                    this.SkinColor.push(cc.color(222, 122, 93)),
                        this.SkinColor.push(cc.color(255, 232, 185)),
                        this.SkinColor.push(cc.color(255, 190, 134)),
                        this.SkinColor.push(cc.color(255, 190, 134)),
                        this.SkinColor.push(cc.color(255, 210, 168)),
                        this.SkinColor.push(cc.color(255, 190, 134)),
                        this.SkinColor.push(cc.color(255, 190, 134)),
                        this.SkinColor.push(cc.color(225, 125, 100)),
                        this.SkinColor.push(cc.color(255, 210, 165)),
                        this.HairColor.push(cc.color(255, 200, 63)),
                        this.HairColor.push(cc.color(180, 175, 160)),
                        this.HairColor.push(cc.color(80, 40, 26)),
                        this.HairColor.push(cc.color(255, 200, 60)),
                        this.HairColor.push(cc.color(180, 90, 90)),
                        this.HairColor.push(cc.color(80, 50, 57)),
                        this.HairColor.push(cc.color(255, 170, 80)),
                        this.HairColor.push(cc.color(255, 200, 60)),
                        this.HairColor.push(cc.color(70, 50, 53)),
                        this.DressColor.push(cc.color(255, 255, 255)),
                        this.DressColor.push(cc.color(200, 125, 80)),
                        this.DressColor.push(cc.color(0, 205, 235)),
                        this.DressColor.push(cc.color(255, 90, 220)),
                        this.DressColor.push(cc.color(40, 140, 223)),
                        this.DressColor.push(cc.color(255, 90, 120)),
                        this.DressColor.push(cc.color(70, 70, 70)),
                        this.DressColor.push(cc.color(255, 255, 255)),
                        this.DressColor.push(cc.color(73, 130, 77))
                },
                t.prototype.isViewDone = function() {
                    if (this.TotalPets &lt;= this.TotalCharacter &amp;&amp; 0 == this.Bath[0].getChildByName("Character").childrenCount &amp;&amp; 0 == this.Bath[1].getChildByName("Character").childrenCount &amp;&amp; 0 == this.Salon[0].getChildByName("Character").childrenCount &amp;&amp; 0 == this.Salon[1].getChildByName("Character").childrenCount &amp;&amp; 0 == this.Hospital[0].getChildByName("Character").childrenCount &amp;&amp; 0 == this.Hospital[1].getChildByName("Character").childrenCount &amp;&amp; 0 == this.Playground.getChildByName("Character1").childrenCount &amp;&amp; 0 == this.Playground.getChildByName("Character2").childrenCount) {
                        this.PlaySound("ProgressFinished"),
                            cc.find("Canvas/LevelUpScene").active = !0,
                            cc.find("Canvas/logo").active = !1,
                            cc.find("Canvas/more").active = !1,
                            cc.find("Canvas/promotion").position = cc.Vec3.ZERO;
                        var e = cc.find("Canvas/LevelUpScene/HintPopup/ProgressFill").getComponent(cc.Sprite);
                        e.fillRange = 0,
                            cc.tween(e).to(2, {
                                fillRange: 1
                            }).start(),
                            this.StopTimer(),
                            10 == this.SelectedLevel ? cc.find("Canvas/LevelUpScene/HintPopup/Next").active = !1 : cc.find("Canvas/promotion/replay").active = !1
                    }
                },
                t.prototype.NextAction = function(e) {
                    this.PlaySound("Button"),
                        e.target.getComponent(cc.Button).interactable = !1,
                        cc.sys.localStorage.setItem("SelectedLevel", this.SelectedLevel + 1),
                        parseInt(cc.sys.localStorage.getItem("WhichLevel")) &lt; this.SelectedLevel + 1 &amp;&amp; cc.sys.localStorage.setItem("WhichLevel", this.SelectedLevel + 1),
                        r.default.self.requestAds(),
                        this.node.runAction(cc.sequence(cc.delayTime(.3), cc.callFunc(function() {
                            cc.director.loadScene("Playarea")
                        })))
                },
                t.prototype.RetryAction = function(e) {
                    this.PlaySound("Button"),
                        e.target.getComponent(cc.Button).interactable = !1,
                        r.default.self.requestAds(),
                        this.node.runAction(cc.sequence(cc.delayTime(.3), cc.callFunc(function() {
                            cc.director.loadScene("Playarea")
                        })))
                },
                t.prototype.PlaySound = function(e) {
                    cc.find("Canvas/SoundNode/" + e) &amp;&amp; cc.find("Canvas/SoundNode/" + e).getComponent(cc.AudioSource).play()
                },
                t.self = null,
                o = c([l], t)
        }(cc.Component);
        o.default = d,
            cc._RF.pop()
    }, {
        "./Promotion": "Promotion"
    }],
    Promotion: [function(e, t, o) {
        "use strict";
        cc._RF.push(t, "45505tGjflKcZ+9FIVkGumJ", "Promotion");
        var a, n = this &amp;&amp; this.__extends || (a = function(e, t) {
                    return (a = Object.setPrototypeOf || {
                            __proto__: []
                        }
                        instanceof Array &amp;&amp; function(e, t) {
                            e.__proto__ = t
                        } ||
                        function(e, t) {
                            for (var o in t)
                                t.hasOwnProperty(o) &amp;&amp; (e[o] = t[o])
                        }
                    )(e, t)
                },
                function(e, t) {
                    function o() {
                        this.constructor = e
                    }
                    a(e, t),
                        e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype,
                            new o)
                }
            ),
            c = this &amp;&amp; this.__decorate || function(e, t, o, a) {
                var n, c = arguments.length,
                    i = c &lt; 3 ? t : null === a ? a = Object.getOwnPropertyDescriptor(t, o) : a;
                if ("object" == typeof Reflect &amp;&amp; "function" == typeof Reflect.decorate)
                    i = Reflect.decorate(e, t, o, a);
                else
                    for (var r = e.length - 1; r &gt;= 0; r--)
                        (n = e[r]) &amp;&amp; (i = (c &lt; 3 ? n(i) : c &gt; 3 ? n(t, o, i) : n(t, o)) || i);
                return c &gt; 3 &amp;&amp; i &amp;&amp; Object.defineProperty(t, o, i),
                    i
            };
        Object.defineProperty(o, "__esModule", {
            value: !0
        });
        var i = cc._decorator,
            r = i.ccclass,
            s = (i.property,
                function(e) {
                    function t() {
                        var t = null !== e &amp;&amp; e.apply(this, arguments) || this;
                        return t.isAdRunnning = !1,
                            t.isSwitchTab = !1,
                            t
                    }
                    var o;
                    return n(t, e),
                        o = t,
                        t.prototype.start = function() {
                            o.self = this;
                            var e = this;
                            "promoBack" == e.node.name &amp;&amp; this.setPromoThumb();
                            var t = "game";
                            "MainScene" == cc.director.getScene().name &amp;&amp; (t = "mainscreen"),
                                this.node.on(cc.Node.EventType.TOUCH_START, function() {
                                     (console.log(e.node.name),
                                        "promoBack" == e.node.name ? (255 == e.node.parent.opacity &amp;&amp; window.adsGameCon.moreGame(),
                                            console.log("on tap " + window.relatedThumbNo)) : cc.find("Canvas/promotion") &amp;&amp; 255 == cc.find("Canvas/promotion").opacity &amp;&amp; 0 == cc.find("Canvas/promotion").position.x &amp;&amp; 0 == cc.find("Canvas/promotion").position.y ?
                                            window.adsGameCon.moreGame() :
                                            window.adsGameCon.moreGame())
                                }),
                                cc.game.on(cc.game.EVENT_SHOW, this.gameResume, !1),
                                cc.game.on(cc.game.EVENT_HIDE, this.gamePause, !1)
                        },
                        t.prototype.playSound = function(e) {
                            cc.loader.loadRes(e, cc.AudioClip, function(e, t) {
                                cc.audioEngine.playEffect(t, !1)
                            })
                        },
                        t.prototype.setPromoThumb = function() {

                        },
                        t.prototype.requestAds = function() {
                            window.adsGameCon.showAd({
                                beforeShowAd: ()=&gt; {
                                    // o.self.isAdRunnning = !0
                                    // o.self.MuteSound()
                                },
                                afterShowAd: ()=&gt; {

                                }
                            })
                            window.newads = true;
                            o.self.isAdRunnning = !1,
                            0 == o.self.isSwitchTab &amp;&amp; o.self.gameResume()
                        },
                        t.prototype.gameResume = function() {
                            o.self.isSwitchTab = !1,
                                o.self.isAdRunnning ? (cc.game.pause(),
                                    o.self.MuteSound()) : (cc.game.resume(),
                                    o.self.StartSound())
                        },
                        t.prototype.gamePause = function() {
                            console.log("Pause Game"),
                                cc.game.pause(),
                                o.self.MuteSound(),
                                o.self.isSwitchTab = !0
                        },
                        t.prototype.MuteSound = function() {
                            document.getElementById("bgsound") &amp;&amp; (document.getElementById("bgsound").muted = !0),
                                cc.find("Canvas/SoundNode") &amp;&amp; cc.find("Canvas/SoundNode").children.forEach(function(e) {
                                    e.getComponent(cc.AudioSource) &amp;&amp; (e.getComponent(cc.AudioSource).mute = !0)
                                })
                        },
                        t.prototype.StartSound = function() {
                            document.getElementById("bgsound") &amp;&amp; (document.getElementById("bgsound").muted = !1),
                                cc.find("Canvas/SoundNode") &amp;&amp; cc.find("Canvas/SoundNode").children.forEach(function(e) {
                                    e.getComponent(cc.AudioSource) &amp;&amp; e.getComponent(cc.AudioSource).mute &amp;&amp; (e.getComponent(cc.AudioSource).mute = !1)
                                })
                        },
                        t.prototype.onSuccessCallback = function() {
                            o.self.isAdRunnning = !1,
                                0 == o.self.isSwitchTab &amp;&amp; o.self.gameResume(),
                                console.log("onSuccessCallback")
                        },
                        t.prototype.onFailCallback = function() {
                            this.isAdRunnning = !1,
                                0 == o.self.isSwitchTab &amp;&amp; o.self.gameResume(),
                                console.log("onFailCallback")
                        },
                        t.prototype.getRandomInt = function(e, t) {
                            return e = Math.ceil(e),
                                t = Math.floor(t) + 1,
                                Math.floor(Math.random() * (t - e)) + e
                        },
                        t.prototype.onReplayClick = function(e) {
                            e.target.getComponent(cc.Button).interactable = !1,
                                cc.sys.localStorage.setItem("WhichLevel", 1),
                                o.self.requestAds(),
                                o.self.node.runAction(cc.sequence(cc.delayTime(.6), cc.callFunc(function() {
                                    cc.director.loadScene("LevelScene")
                                })))
                        },
                        t.self = null,
                        o = c([r], t)
                }(cc.Component));
        o.default = s,
            cc._RF.pop()
    }, {}],
    Splash: [function(e, t, o) {
        "use strict";
        cc._RF.push(t, "c6bf7WCiyhLBp1EjaRYWXtR", "Splash");
        var a, n = this &amp;&amp; this.__extends || (a = function(e, t) {
                    return (a = Object.setPrototypeOf || {
                            __proto__: []
                        }
                        instanceof Array &amp;&amp; function(e, t) {
                            e.__proto__ = t
                        } ||
                        function(e, t) {
                            for (var o in t)
                                t.hasOwnProperty(o) &amp;&amp; (e[o] = t[o])
                        }
                    )(e, t)
                },
                function(e, t) {
                    function o() {
                        this.constructor = e
                    }
                    a(e, t),
                        e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype,
                            new o)
                }
            ),
            c = this &amp;&amp; this.__decorate || function(e, t, o, a) {
                var n, c = arguments.length,
                    i = c &lt; 3 ? t : null === a ? a = Object.getOwnPropertyDescriptor(t, o) : a;
                if ("object" == typeof Reflect &amp;&amp; "function" == typeof Reflect.decorate)
                    i = Reflect.decorate(e, t, o, a);
                else
                    for (var r = e.length - 1; r &gt;= 0; r--)
                        (n = e[r]) &amp;&amp; (i = (c &lt; 3 ? n(i) : c &gt; 3 ? n(t, o, i) : n(t, o)) || i);
                return c &gt; 3 &amp;&amp; i &amp;&amp; Object.defineProperty(t, o, i),
                    i
            };
        Object.defineProperty(o, "__esModule", {
            value: !0
        });
        var i = cc._decorator,
            r = i.ccclass,
            s = (i.property,
                function(e) {
                    function t() {
                        var t = null !== e &amp;&amp; e.apply(this, arguments) || this;
                        return t.bgsoundElement = null,
                            t
                    }
                    var o;
                    return n(t, e),
                        o = t,
                        t.prototype.onLoad = function() {
                            cc.debug.setDisplayStats(!1),
                                cc.director.preloadScene("MainScene"),
                                o.self = this,
                                this.bgsoundElement = document.createElement("AUDIO"),
                                this.bgsoundElement.id = "bgsound",
                                this.bgsoundElement.loop = !0,
                                this.bgsoundElement.setAttribute("src", cc.find("Canvas/music").getComponent(cc.AudioSource).clip.url)
                        },
                        t.prototype.start = function() {},
                        t.prototype.PlayAction = function(e) {
                            document.body.appendChild(this.bgsoundElement);
                            var t = e.target;
                            t &amp;&amp; (t.getComponent(cc.Button).interactable = !1),
                                document.getElementById("bgsound") &amp;&amp; document.getElementById("bgsound").play(),
                                cc.director.loadScene("MainScene")
                        },
                        t.prototype.OpenUrl = function() {
                            cc.sys.openURL("https://www.yiv.com/?utm_source=unknown&amp;utm_medium=Loading-logo&amp;utm_campaign=game-" + document.title.replace(/ /g, "-"))
                        },
                        t.self = null,
                        o = c([r], t)
                }(cc.Component));
        o.default = s,
            cc._RF.pop()
    }, {}]
}, {}, ["BathPopup", "HairPopup", "HintScreen", "LevelScene", "MainScene", "Playarea", "Promotion", "Splash"]);initAdsGame("GameCanvas","k47d8gw3b8dk4dsm9ab1nufeblcyx80y");</pre></body></html>