<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(c, s) {
        if (!o[c]) {
            if (!t[c]) {
                var r = c.split("/");
                if (r = r[r.length - 1], !t[r]) {
                    var l = "function" == typeof __require &amp;&amp; __require;
                    if (!s &amp;&amp; l)
                        return l(r, !0);
                    if (i)
                        return i(r, !0);
                    throw new Error("Cannot find module '" + c + "'")
                }
                c = r
            }
            var h = o[c] = {
                exports: {}
            };
            t[c][0].call(h.exports, function (e) {
                return n(t[c][1][e] || e)
            }, h, h.exports, e, t, o, a)
        }
        return o[c].exports
    }
    for (var i = "function" == typeof __require &amp;&amp; __require, c = 0; c &lt; a.length; c++)
        n(a[c]);
    return n
}({
    Drawing: [function (e, t, o) {
        "use strict";
        cc._RF.push(t, "3ea83C+8ClPM4hZJiH+HYLc", "Drawing");
        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)
            }
        ),
            i = this &amp;&amp; this.__decorate || function (e, t, o, a) {
                var n, i = arguments.length,
                    c = i &lt; 3 ? t : null === a ? a = Object.getOwnPropertyDescriptor(t, o) : a;
                if ("object" == typeof Reflect &amp;&amp; "function" == typeof Reflect.decorate)
                    c = Reflect.decorate(e, t, o, a);
                else
                    for (var s = e.length - 1; s &gt;= 0; s--)
                        (n = e[s]) &amp;&amp; (c = (i &lt; 3 ? n(c) : i &gt; 3 ? n(t, o, c) : n(t, o)) || c);
                return i &gt; 3 &amp;&amp; c &amp;&amp; Object.defineProperty(t, o, c),
                    c
            };
        Object.defineProperty(o, "__esModule", {
            value: !0
        });
        var c = cc._decorator,
            s = c.ccclass,
            r = (c.property,
                function (e) {
                    function t() {
                        var t = null !== e &amp;&amp; e.apply(this, arguments) || this;
                        return t.brushFrames = null,
                            t.brushFrameErase = null,
                            t.DrawTexture = [],
                            t.isDrawOnInit = !1,
                            t.DrawNode = null,
                            t.isLoadDataFromInit = !1,
                            t.DrawingPixel = null,
                            t.BrushCotton = null,
                            t.BrushCottonEraser = null,
                            t.OrigionalImage = [],
                            t.OrigionalTexture = null,
                            t.OrigionalCanvas = null,
                            t.OrigionalSpriteFrame = null,
                            t.OrigionalContext = null,
                            t.OrigionalImgData = null,
                            t.EraseImage = null,
                            t.EraseTexture = null,
                            t.EraseCanvas = null,
                            t.EraseSpriteFrame = null,
                            t.EraseContext = null,
                            t.EraseImgData = null,
                            t.UserImage = null,
                            t.UserTexture = null,
                            t.UserCanvas = null,
                            t.UserSpriteFrame = null,
                            t.UserContext = null,
                            t.UserImgData = null,
                            t.SwitchImage = null,
                            t.SwitchTexture = null,
                            t.SwitchCanvas = null,
                            t.SwitchSpriteFrame = null,
                            t.SwitchContext = null,
                            t.SwitchImgData = null,
                            t.WidthSize = 800,
                            t.HeightSize = 504,
                            t.XPLUS = 0,
                            t.YPLUS = 0,
                            t.isErase = !1,
                            t.selectedTexture = -1,
                            t.BrushSizeNew = 0,
                            t.TotalPixel = 0,
                            t.DrawPixel = 0,
                            t.isSwitchData = !0,
                            t.ImgDataUser = null,
                            t.ImgDataSwitch = null,
                            t.ImgDataErase = null,
                            t.DrawIndex = 0,
                            t
                    }
                    return n(t, e),
                        t.prototype.onloadCalled = function () {
                            this.BrushCottonEraser = new Image,
                                this.BrushCotton = new Image,
                                this.UserSpriteFrame = new cc.SpriteFrame,
                                this.EraseSpriteFrame = new cc.SpriteFrame,
                                this.OrigionalSpriteFrame = new cc.SpriteFrame,
                                this.SwitchSpriteFrame = new cc.SpriteFrame,
                                this.UserTexture = new cc.Texture2D,
                                this.EraseTexture = new cc.Texture2D,
                                this.OrigionalTexture = new cc.Texture2D,
                                this.SwitchTexture = new cc.Texture2D
                        },
                        t.prototype.LoadDrawingTextureUsingName = function (e, t) {
                            var o = this;
                            this.OrigionalImage[t] = new Image,
                                this.OrigionalImage[t].src = e.getTexture().nativeUrl,
                                this.OrigionalImage[t].onload = function () {
                                    0 == t &amp;&amp; o.loadInitCalled()
                                }
                        },
                        t.prototype.LoadBrushTexture = function (e) {
                            this.BrushSizeNew = e.getTexture().width,
                                this.brushFrames = e,
                                this.BrushCotton.src = e.getTexture().nativeUrl
                        },
                        t.prototype.LoadEraserBrushTexture = function (e) {
                            this.brushFrameErase = e,
                                this.BrushCottonEraser.src = e.getTexture().nativeUrl
                        },
                        t.prototype.ClearAll = function () {
                            -1 == this.selectedTexture &amp;&amp; (this.selectedTexture = 0),
                                this.UserContext.clearRect(0, 0, this.WidthSize, this.HeightSize),
                                this.SwitchContext.clearRect(0, 0, this.WidthSize, this.HeightSize),
                                this.EraseContext.globalCompositeOperation = "source-over",
                                this.EraseContext.drawImage(this.OrigionalImage[this.selectedTexture], 0, 0),
                                this.EraseContext.globalCompositeOperation = "destination-out";
                            var e = this.EraseContext.getImageData(0, 0, this.WidthSize, this.HeightSize);
                            this.EraseImgData = e.data,
                                this.UserTexture.initWithData(this.UserContext.getImageData(0, 0, this.WidthSize, this.HeightSize), cc.Texture2D.PixelFormat.RGBA8888, this.WidthSize, this.HeightSize),
                                this.UserSpriteFrame.setTexture(this.UserTexture),
                                this.DrawNode.getComponent(cc.Sprite).spriteFrame = this.UserSpriteFrame
                        },
                        t.prototype.FillFullTexture = function () {
                            this.EraseContext.clearRect(0, 0, this.WidthSize, this.HeightSize),
                                this.ImgDataErase = this.EraseContext.getImageData(0, 0, this.WidthSize, this.HeightSize),
                                this.EraseImgData = this.ImgDataErase.data,
                                this.UserImgData = this.ImgDataUser.data,
                                this.isSwitchData &amp;&amp; (this.ImgDataSwitch = this.SwitchContext.getImageData(0, 0, this.WidthSize, this.HeightSize),
                                    this.SwitchImgData = this.ImgDataSwitch.data);
                            for (var e = 0; e &lt; this.OrigionalImgData.length; e += 4)
                                this.EraseImgData[e + 3] &lt;= 0 &amp;&amp; this.SwitchImgData[e + 3] &lt;= 0 ? (this.UserImgData[e] = this.OrigionalImgData[e],
                                    this.UserImgData[e + 1] = this.OrigionalImgData[e + 1],
                                    this.UserImgData[e + 2] = this.OrigionalImgData[e + 2],
                                    this.UserImgData[e + 3] = this.OrigionalImgData[e + 3]) : this.isSwitchData &amp;&amp; (this.UserImgData[e] = this.SwitchImgData[e],
                                        this.UserImgData[e + 1] = this.SwitchImgData[e + 1],
                                        this.UserImgData[e + 2] = this.SwitchImgData[e + 2],
                                        this.UserImgData[e + 3] = this.SwitchImgData[e + 3]);
                            this.UserContext.putImageData(this.ImgDataUser, 0, 0),
                                this.isSwitchData &amp;&amp; this.SwitchContext.putImageData(this.ImgDataSwitch, 0, 0),
                                this.UserTexture.initWithData(this.UserContext.getImageData(0, 0, this.WidthSize, this.HeightSize), cc.Texture2D.PixelFormat.RGBA8888, this.WidthSize, this.HeightSize),
                                this.UserSpriteFrame.setTexture(this.UserTexture),
                                this.DrawNode.getComponent(cc.Sprite).spriteFrame = this.UserSpriteFrame
                        },
                        t.prototype.isCompleteDrawing = function () {
                            this.DrawPixel = 0,
                                this.TotalPixel = 0;
                            var e = this.OrigionalContext.getImageData(0, 0, this.WidthSize, this.HeightSize);
                            this.OrigionalImgData = e.data;
                            var t = this.UserContext.getImageData(0, 0, this.WidthSize, this.HeightSize);
                            this.UserImgData = t.data;
                            for (var o = 0; o &lt; this.OrigionalImgData.length; o += 4)
                                this.UserImgData[o + 3] &gt; 0 &amp;&amp; this.DrawPixel++,
                                    this.OrigionalImgData[o + 3] &gt; 0 &amp;&amp; this.TotalPixel++;
                            if (this.isErase) {
                                if (.1 * this.TotalPixel &gt;= this.DrawPixel)
                                    return !0
                            } else if (.9 * this.TotalPixel &lt; this.DrawPixel)
                                return !0;
                            return !1
                        },
                        t.prototype.setBrushSize = function (e) {
                            this.BrushSizeNew = e
                        },
                        t.prototype.setDrawOnInit = function (e) {
                            this.isDrawOnInit = e
                        },
                        t.prototype.setEraserOn = function (e) {
                            0 == this.isLoadDataFromInit &amp;&amp; this.loadInitCalled(),
                                this.isErase = e,
                                this.SwitchContext.globalCompositeOperation = "destination-out",
                                this.isErase ? (this.UserContext.globalCompositeOperation = "destination-out",
                                    this.EraseContext.globalCompositeOperation = "source-over") : (this.EraseContext.globalCompositeOperation = "destination-out",
                                        this.UserContext.globalCompositeOperation = "source-over",
                                        this.SwitchContext.globalCompositeOperation = "destination-out")
                        },
                        t.prototype.initDrawNodeMakeUp = function (e) {
                            this.onloadCalled(),
                                this.DrawNode = e,
                                this.XPLUS = 0,
                                this.YPLUS = 0
                        },
                        t.prototype.initDrawNode = function (e) {
                            this.onloadCalled(),
                                this.DrawNode = e,
                                e.position.y &lt; 0 ? (this.XPLUS = 1.5 * Math.abs(e.position.x),
                                    this.YPLUS = 2 * Math.abs(e.position.y)) : (this.XPLUS = 1.5 * Math.abs(e.position.x),
                                        this.YPLUS = 2 * -Math.abs(e.position.y))
                        },
                        t.prototype.setWidthAndHeight = function (e, t) {
                            this.WidthSize = e,
                                this.HeightSize = t,
                                this.OrigionalCanvas = document.createElement("canvas"),
                                this.OrigionalContext = this.OrigionalCanvas.getContext("2d"),
                                this.OrigionalCanvas.width = this.WidthSize,
                                this.OrigionalCanvas.height = this.HeightSize,
                                this.EraseCanvas = document.createElement("canvas"),
                                this.EraseContext = this.EraseCanvas.getContext("2d"),
                                this.EraseCanvas.width = this.WidthSize,
                                this.EraseCanvas.height = this.HeightSize,
                                this.UserCanvas = document.createElement("canvas"),
                                this.UserContext = this.UserCanvas.getContext("2d"),
                                this.UserCanvas.width = this.WidthSize,
                                this.UserCanvas.height = this.HeightSize,
                                this.SwitchCanvas = document.createElement("canvas"),
                                this.SwitchContext = this.SwitchCanvas.getContext("2d"),
                                this.SwitchCanvas.width = this.WidthSize,
                                this.SwitchCanvas.height = this.HeightSize
                        },
                        t.prototype.DrawImage = function (e) {
                            if (this.DrawIndex = e,
                                this.isDrawOnInit = !0,
                                null != this.OrigionalImage[e]) {
                                this.UserContext.globalCompositeOperation = "source-over",
                                    this.OrigionalContext.globalCompositeOperation = "source-over",
                                    this.UserContext.globalCompositeOperation = "source-over",
                                    this.SwitchContext.globalCompositeOperation = "source-over",
                                    this.OrigionalContext.drawImage(this.OrigionalImage[e], 0, 0),
                                    this.EraseContext.drawImage(this.OrigionalImage[e], 0, 0),
                                    this.UserContext.drawImage(this.OrigionalImage[e], 0, 0),
                                    this.SwitchContext.drawImage(this.OrigionalImage[e], 0, 0);
                                var t = this.OrigionalContext.getImageData(0, 0, this.WidthSize, this.HeightSize);
                                this.OrigionalImgData = t.data,
                                    this.UserTexture.initWithData(this.UserContext.getImageData(0, 0, this.WidthSize, this.HeightSize), cc.Texture2D.PixelFormat.RGBA8888, this.WidthSize, this.HeightSize),
                                    this.UserSpriteFrame.setTexture(this.UserTexture),
                                    this.DrawNode.getComponent(cc.Sprite).spriteFrame = this.UserSpriteFrame;
                                var o = this.UserContext.getImageData(0, 0, this.WidthSize, this.HeightSize);
                                this.UserImgData = o.data,
                                    this.EraseContext.clearRect(0, 0, this.WidthSize, this.HeightSize);
                                var a = this.EraseContext.getImageData(0, 0, this.WidthSize, this.HeightSize);
                                this.EraseImgData = a.data;
                                var n = this.SwitchContext.getImageData(0, 0, this.WidthSize, this.HeightSize);
                                this.SwitchImgData = n.data
                            }
                        },
                        t.prototype.loadInitCalled = function () {
                            if (!this.isLoadDataFromInit) {
                                this.UserContext.globalCompositeOperation = "source-over",
                                    this.OrigionalContext.globalCompositeOperation = "source-over",
                                    this.UserContext.globalCompositeOperation = "source-over",
                                    this.SwitchContext.globalCompositeOperation = "source-over",
                                    this.OrigionalContext.drawImage(this.OrigionalImage[0], 0, 0),
                                    this.EraseContext.drawImage(this.OrigionalImage[0], 0, 0),
                                    this.UserContext.drawImage(this.OrigionalImage[0], 0, 0),
                                    this.SwitchContext.drawImage(this.OrigionalImage[0], 0, 0);
                                var e = this.OrigionalContext.getImageData(0, 0, this.WidthSize, this.HeightSize);
                                this.OrigionalImgData = e.data,
                                    this.DrawNode ? (this.isDrawOnInit ? (console.log("this.isDrawOnInit"),
                                        this.UserTexture.initWithData(this.UserContext.getImageData(0, 0, this.WidthSize, this.HeightSize), cc.Texture2D.PixelFormat.RGBA8888, this.WidthSize, this.HeightSize),
                                        this.UserSpriteFrame.setTexture(this.UserTexture),
                                        this.DrawNode.getComponent(cc.Sprite).spriteFrame = this.UserSpriteFrame) : this.UserContext.clearRect(0, 0, this.WidthSize, this.HeightSize),
                                        this.EraseContext.clearRect(0, 0, this.WidthSize, this.HeightSize)) : this.UserContext.clearRect(0, 0, this.WidthSize, this.HeightSize);
                                var t = this.UserContext.getImageData(0, 0, this.WidthSize, this.HeightSize);
                                this.UserImgData = t.data;
                                var o = this.EraseContext.getImageData(0, 0, this.WidthSize, this.HeightSize);
                                this.EraseImgData = o.data;
                                var a = this.SwitchContext.getImageData(0, 0, this.WidthSize, this.HeightSize);
                                this.SwitchImgData = a.data,
                                    this.isLoadDataFromInit = !0,
                                    0 == this.isDrawOnInit ? this.ChangeTexture(0, !1) : this.DrawImage(this.DrawIndex)
                            }
                        },
                        t.prototype.ChangeTexture = function (e, t) {
                            if (this.selectedTexture != e)
                                if (0 == this.isLoadDataFromInit &amp;&amp; this.loadInitCalled(),
                                    console.log("TextureIndex- " + e),
                                    this.isErase = t,
                                    this.selectedTexture = e,
                                    this.SwitchContext.globalCompositeOperation = "destination-out",
                                    this.isErase)
                                    this.UserContext.globalCompositeOperation = "destination-out",
                                        this.EraseContext.globalCompositeOperation = "source-over";
                                else {
                                    this.SwitchContext.clearRect(0, 0, this.WidthSize, this.HeightSize);
                                    var o = this.UserContext.getImageData(0, 0, this.WidthSize, this.HeightSize);
                                    this.SwitchImgData = o.data,
                                        this.SwitchContext.putImageData(o, 0, 0),
                                        this.OrigionalContext.clearRect(0, 0, this.WidthSize, this.HeightSize),
                                        this.EraseContext.globalCompositeOperation = "source-over",
                                        this.UserContext.globalCompositeOperation = "source-over",
                                        this.OrigionalContext.globalCompositeOperation = "source-over",
                                        this.OrigionalContext.drawImage(this.OrigionalImage[this.selectedTexture], 0, 0);
                                    var a = this.OrigionalContext.getImageData(0, 0, this.WidthSize, this.HeightSize);
                                    this.OrigionalImgData = a.data,
                                        this.EraseContext.drawImage(this.OrigionalImage[this.selectedTexture], 0, 0);
                                    var n = this.EraseContext.getImageData(0, 0, this.WidthSize, this.HeightSize);
                                    this.EraseImgData = n.data,
                                        this.EraseContext.globalCompositeOperation = "destination-out",
                                        this.UserContext.globalCompositeOperation = "source-over",
                                        this.OrigionalContext.globalCompositeOperation = "destination-out",
                                        this.SwitchContext.globalCompositeOperation = "destination-out",
                                        this.TotalPixel = 0;
                                    for (var i = 0; i &lt; this.OrigionalImgData.length; i += 4)
                                        this.SwitchImgData[i + 3] &gt; 0 &amp;&amp; (this.EraseImgData[i + 3] = 0);
                                    this.EraseContext.putImageData(n, 0, 0),
                                        this.finalProcess()
                                }
                        },
                        t.prototype.finalProcess = function () {
                            var e = this.UserContext.getImageData(0, 0, this.WidthSize, this.HeightSize);
                            this.UserImgData = e.data;
                            for (var t = 0; t &lt; this.OrigionalImgData.length; t += 4)
                                this.EraseImgData[t + 3] &lt;= 0 &amp;&amp; this.SwitchImgData[t + 3] &lt;= 0 ? (this.UserImgData[t] = this.OrigionalImgData[t],
                                    this.UserImgData[t + 1] = this.OrigionalImgData[t + 1],
                                    this.UserImgData[t + 2] = this.OrigionalImgData[t + 2],
                                    this.UserImgData[t + 3] = this.OrigionalImgData[t + 3]) : (this.UserImgData[t] = this.SwitchImgData[t],
                                        this.UserImgData[t + 1] = this.SwitchImgData[t + 1],
                                        this.UserImgData[t + 2] = this.SwitchImgData[t + 2],
                                        this.UserImgData[t + 3] = this.SwitchImgData[t + 3]);
                            this.UserContext.putImageData(e, 0, 0),
                                this.UserTexture.initWithData(e, cc.Texture2D.PixelFormat.RGBA8888, this.WidthSize, this.HeightSize),
                                this.UserSpriteFrame.setTexture(this.UserTexture),
                                this.DrawNode.getComponent(cc.Sprite).spriteFrame = this.UserSpriteFrame
                        },
                        t.prototype.touchMove = function (e, t, o) {
                            var a = e.getLocation(),
                                n = e.getPreviousLocation();
                            a.y = a.y + o.y - 2 * this.BrushSizeNew,
                                n.y = n.y + o.y - 2 * this.BrushSizeNew,
                                a.y = 800 - a.y,
                                n.y = 800 - n.y,
                                a.x = a.x - o.x,
                                n.x = n.x - o.x;
                            for (var i = Math.sqrt(Math.pow(n.x - a.x, 2) + Math.pow(n.y - a.y, 2)), c = 0; c &lt; i; c += 4) {
                                var s = n.x - a.x,
                                    r = n.y - a.y,
                                    l = c / i,
                                    h = cc.v2(a.x + s * l, a.y + r * l);
                                0 == this.isErase ? (this.EraseContext.drawImage(this.BrushCotton, h.x, h.y, this.BrushSizeNew, this.BrushSizeNew),
                                    this.BrushSizeNew,
                                    this.isSwitchData &amp;&amp; (this.UserContext.drawImage(this.BrushCotton, h.x, h.y, this.BrushSizeNew, this.BrushSizeNew),
                                        this.SwitchContext.drawImage(this.BrushCotton, h.x, h.y, this.BrushSizeNew, this.BrushSizeNew))) : (this.EraseContext.drawImage(this.BrushCottonEraser, h.x - this.BrushSizeNew / 2, h.y - this.BrushSizeNew / 2, this.BrushSizeNew, this.BrushSizeNew),
                                            this.UserContext.drawImage(this.BrushCottonEraser, h.x - this.BrushSizeNew / 2, h.y - this.BrushSizeNew / 2, this.BrushSizeNew, this.BrushSizeNew),
                                            this.isSwitchData &amp;&amp; this.SwitchContext.drawImage(this.BrushCottonEraser, h.x - this.BrushSizeNew / 2, h.y - this.BrushSizeNew / 2, this.BrushSizeNew, this.BrushSizeNew))
                            }
                            this.isSwitchData ? this.UpdateData() : 0 == this.DrawNode.getNumberOfRunningActions() &amp;&amp; (this.DrawNode.runAction(cc.delayTime(.1)),
                                this.UpdateData())
                        },
                        t.prototype.UpdateData = function () {
                            if (this.ImgDataUser = this.UserContext.getImageData(0, 0, this.WidthSize, this.HeightSize),
                                0 == this.isErase) {
                                this.ImgDataErase = this.EraseContext.getImageData(0, 0, this.WidthSize, this.HeightSize),
                                    this.EraseImgData = this.ImgDataErase.data,
                                    this.UserImgData = this.ImgDataUser.data,
                                    this.isSwitchData &amp;&amp; (this.ImgDataSwitch = this.SwitchContext.getImageData(0, 0, this.WidthSize, this.HeightSize),
                                        this.SwitchImgData = this.ImgDataSwitch.data);
                                for (var e = 0; e &lt; this.OrigionalImgData.length; e += 4)
                                    this.EraseImgData[e + 3] &lt;= 0 &amp;&amp; this.SwitchImgData[e + 3] &lt;= 0 ? (this.UserImgData[e] = this.OrigionalImgData[e],
                                        this.UserImgData[e + 1] = this.OrigionalImgData[e + 1],
                                        this.UserImgData[e + 2] = this.OrigionalImgData[e + 2],
                                        this.UserImgData[e + 3] = this.OrigionalImgData[e + 3]) : this.isSwitchData &amp;&amp; (this.UserImgData[e] = this.SwitchImgData[e],
                                            this.UserImgData[e + 1] = this.SwitchImgData[e + 1],
                                            this.UserImgData[e + 2] = this.SwitchImgData[e + 2],
                                            this.UserImgData[e + 3] = this.SwitchImgData[e + 3]);
                                this.UserContext.putImageData(this.ImgDataUser, 0, 0),
                                    this.isSwitchData &amp;&amp; this.SwitchContext.putImageData(this.ImgDataSwitch, 0, 0)
                            }
                            this.UserTexture.initWithData(this.ImgDataUser, cc.Texture2D.PixelFormat.RGBA8888, this.WidthSize, this.HeightSize),
                                this.UserSpriteFrame.setTexture(this.UserTexture),
                                this.DrawNode.getComponent(cc.Sprite).spriteFrame = this.UserSpriteFrame
                        },
                        t.prototype.touchEnd = function () { },
                        i([s], t)
                }(cc.Component));
        o.default = r,
            cc._RF.pop()
    }, {}],
    DressUp: [function (e, t, o) {
        "use strict";
        cc._RF.push(t, "03285KOCydAe5rjdhoPXrju", "DressUp");
        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)
            }
        ),
            i = this &amp;&amp; this.__decorate || function (e, t, o, a) {
                var n, i = arguments.length,
                    c = i &lt; 3 ? t : null === a ? a = Object.getOwnPropertyDescriptor(t, o) : a;
                if ("object" == typeof Reflect &amp;&amp; "function" == typeof Reflect.decorate)
                    c = Reflect.decorate(e, t, o, a);
                else
                    for (var s = e.length - 1; s &gt;= 0; s--)
                        (n = e[s]) &amp;&amp; (c = (i &lt; 3 ? n(c) : i &gt; 3 ? n(t, o, c) : n(t, o)) || c);
                return i &gt; 3 &amp;&amp; c &amp;&amp; Object.defineProperty(t, o, c),
                    c
            };
        Object.defineProperty(o, "__esModule", {
            value: !0
        });
        var c = e("./Promotion"),
            s = cc._decorator,
            r = s.ccclass,
            l = (s.property,
                function (e) {
                    function t() {
                        var t = null !== e &amp;&amp; e.apply(this, arguments) || this;
                        return t.EarringL = null,
                            t.EarringR = null,
                            t.Hair = null,
                            t.Necklase = null,
                            t.Glove = null,
                            t.Crown = null,
                            t.Shoes = null,
                            t.Dress = null,
                            t.DressLong = null,
                            t.Flower = null,
                            t.HairBack = null,
                            t.Blush = null,
                            t.EyeLiner = null,
                            t.Eyelash = null,
                            t.Eyeshadow = null,
                            t.EyeballL = null,
                            t.EyeballR = null,
                            t.Lips = null,
                            t.Tatto = null,
                            t
                    }
                    return n(t, e),
                        t.prototype.onLoad = function () {
                            this.AddEvent(),
                                cc.director.preloadScene("FinalScene"),
                                this.Dress = cc.find("Canvas/Character/BottomBody/Dress"),
                                this.DressLong = cc.find("Canvas/Character/BottomBody/LongDress"),
                                this.EarringL = cc.find("Canvas/Character/BottomBody/EarringL"),
                                this.EarringR = cc.find("Canvas/Character/BottomBody/EarringR"),
                                this.Hair = cc.find("Canvas/Character/BottomBody/Hair"),
                                this.Necklase = cc.find("Canvas/Character/BottomBody/Necklash"),
                                this.Glove = cc.find("Canvas/Character/BottomBody/Gloves"),
                                this.Crown = cc.find("Canvas/Character/BottomBody/Crown"),
                                this.Shoes = cc.find("Canvas/Character/BottomBody/Shoes"),
                                this.Flower = cc.find("Canvas/Character/BottomBody/Bookay"),
                                this.HairBack = cc.find("Canvas/Character/HairBack"),
                                this.Blush = cc.find("Canvas/Character/BottomBody/Face/Blush"),
                                this.EyeLiner = cc.find("Canvas/Character/BottomBody/Face/EyeLiner"),
                                this.Eyelash = cc.find("Canvas/Character/BottomBody/Face/Eyelash"),
                                this.Eyeshadow = cc.find("Canvas/Character/BottomBody/Face/EyeShadow"),
                                this.EyeballL = cc.find("Canvas/Character/BottomBody/Eyeball_L"),
                                this.EyeballR = cc.find("Canvas/Character/BottomBody/Eyeball_R"),
                                this.Lips = cc.find("Canvas/Character/BottomBody/Face/Lips"),
                                this.Tatto = cc.find("Canvas/Character/BottomBody/Face/Tatto"),
                                cc.sys.localStorage.setItem("Dress", 0),
                                cc.sys.localStorage.setItem("DressLong", 0),
                                cc.sys.localStorage.setItem("Necklace", 0),
                                cc.sys.localStorage.setItem("Crown", 0),
                                cc.sys.localStorage.setItem("Glove", 0),
                                cc.sys.localStorage.setItem("Shoes", 1),
                                cc.sys.localStorage.setItem("Flower", 0),
                                cc.sys.localStorage.setItem("Hairback", 0),
                                this.setFrame(cc.find("Canvas/Character/BottomBody"), "Canvas/Loader/person_girl0" + cc.sys.localStorage.getItem("SelectedCharacter")),
                                this.setFrame(cc.find("Canvas/Character/BottomBody/Face"), "Canvas/Loader/model-" + cc.sys.localStorage.getItem("SelectedCharacter")),
                                this.setFrame(cc.find("Canvas/Character/BottomBody/Face/EB"), "Canvas/Loader/EB" + cc.sys.localStorage.getItem("SelectedCharacter"))
                        },
                        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.PlayAppreciation = function () {
                            var e = this.getRandomInt(1, 5),
                                t = cc.find("Canvas/bg");
                            0 == t.getNumberOfRunningActions() &amp;&amp; (t.runAction(cc.delayTime(4)),
                                1 == e ? this.PlaySound("8 - awesome") : 2 == e ? this.PlaySound("9 - thats cool!") : 3 == e ? this.PlaySound("10 - that amazing") : 4 == e ? this.PlaySound("11 - gorgious") : 5 == e &amp;&amp; this.PlaySound("12 - Perfect!"))
                        },
                        t.prototype.start = function () {
                            if (null != cc.sys.localStorage.getItem("Pupils") &amp;&amp; (this.setFrame(this.EyeballL, "Canvas/Loader/Eyeball/makeup_eye0" + cc.sys.localStorage.getItem("Pupils")),
                                this.setFrame(this.EyeballR, "Canvas/Loader/Eyeball/makeup_eye0" + cc.sys.localStorage.getItem("Pupils"))),
                                null != cc.sys.localStorage.getItem("EyeLiner") &amp;&amp; "0" !== cc.sys.localStorage.getItem("EyeLiner") &amp;&amp; (this.setFrame(this.EyeLiner, "Canvas/Loader/EyeLiner/makeup_monster_yanxian0" + cc.sys.localStorage.getItem("EyeLiner")),
                                    this.EyeLiner.active = !0),
                                null != cc.sys.localStorage.getItem("EyeShadow") &amp;&amp; "0" !== cc.sys.localStorage.getItem("EyeShadow") &amp;&amp; (this.setFrame(this.Eyeshadow, "Canvas/Loader/Eyeshadow/makeup_monster_yanying0" + cc.sys.localStorage.getItem("EyeShadow")),
                                    this.Eyeshadow.active = !0),
                                null != cc.sys.localStorage.getItem("Eyelash") &amp;&amp; "0" !== cc.sys.localStorage.getItem("Eyelash")) {
                                this.Eyelash.active = !0;
                                var e = parseInt(cc.sys.localStorage.getItem("Eyelash"));
                                console.log("temp" + e),
                                    e &lt;= 5 ? this.setFrame(this.Eyelash, "Canvas/Loader/Eyelash/makeup_monster_jiemao01_0" + e) : e &lt;= 10 ? this.setFrame(this.Eyelash, "Canvas/Loader/Eyelash/makeup_monster_jiemao02_0" + (e - 5)) : e &lt;= 15 &amp;&amp; this.setFrame(this.Eyelash, "Canvas/Loader/Eyelash/makeup_monster_jiemao02_0" + (e - 10))
                            }
                            if (null != cc.sys.localStorage.getItem("Blush") &amp;&amp; "0" !== cc.sys.localStorage.getItem("Blush") &amp;&amp; (this.setFrame(this.Blush, "Canvas/Loader/Blush/makeup_monster_saihong0" + cc.sys.localStorage.getItem("Blush")),
                                this.Blush.active = !0),
                                null != cc.sys.localStorage.getItem("Lips")) {
                                var t = parseInt(cc.sys.localStorage.getItem("SelectedCharacter"));
                                3 == t ? (this.Lips.setContentSize(83, 43),
                                    this.Lips.position = cc.v3(this.Lips.position.x + 1, this.Lips.position.y + 3, 0)) : 1 != t &amp;&amp; 2 != t || (this.Lips.position = cc.v3(this.Lips.position.x + 1, this.Lips.position.y + 2, 0)),
                                    "0" !== cc.sys.localStorage.getItem("Lips") &amp;&amp; (this.setFrame(this.Lips, "Canvas/Loader/Lips/makeup_monster_girl0" + t + "_zuiba0" + cc.sys.localStorage.getItem("Lips")),
                                        this.Lips.active = !0)
                            }
                            null != cc.sys.localStorage.getItem("Hair") &amp;&amp; "0" != cc.sys.localStorage.getItem("Hair") &amp;&amp; (this.Hair.active = !0,
                                this.setFrame(this.Hair, "Canvas/Loader/Hair/makeup_hair0" + cc.sys.localStorage.getItem("Hair"))),
                                null != cc.sys.localStorage.getItem("Earring") &amp;&amp; "0" != cc.sys.localStorage.getItem("Earring") &amp;&amp; (this.EarringL.active = !0,
                                    this.EarringR.active = !0,
                                    this.setFrame(this.EarringL, "Canvas/Loader/Earring/makeup_monster_erhuan0" + cc.sys.localStorage.getItem("Earring")),
                                    this.setFrame(this.EarringR, "Canvas/Loader/Earring/makeup_monster_erhuan0" + cc.sys.localStorage.getItem("Earring"))),
                                null != cc.sys.localStorage.getItem("Tatto") &amp;&amp; "0" != cc.sys.localStorage.getItem("Tatto") &amp;&amp; (this.Tatto.active = !0,
                                    this.setFrame(this.Tatto, "Canvas/Loader/Tatto/makeup_monster_huawen0" + cc.sys.localStorage.getItem("Tatto"))),
                                "6" == cc.sys.localStorage.getItem("Hair") ? this.EarringL.active = !1 : this.EarringL.active = !0
                        },
                        t.prototype.NextAction = function (e) {
                            e.target.getComponent(cc.Button).interactable = !1,
                                c.default.self.requestAds(),
                                this.PlaySound("Tap"),
                                this.node.runAction(cc.sequence(cc.delayTime(.5), cc.callFunc(function () {
                                    cc.director.loadScene("FinalScene")
                                })))
                        },
                        t.prototype.addStarParticle = function (e, t, o) {
                            var a = cc.instantiate(cc.find("Canvas/" + e));
                            o.addChild(a),
                                a.active = !0,
                                a.position = t,
                                this.PlaySound("ToolParticle"),
                                2 == this.getRandomInt(1, 3) &amp;&amp; this.PlayAppreciation(),
                                a.zIndex = 100
                        },
                        t.prototype.setFrame = function (e, t) {
                            e &amp;&amp; e.getComponent(cc.Sprite) &amp;&amp; cc.find(t) &amp;&amp; cc.find(t).getComponent(cc.Sprite) &amp;&amp; (e.getComponent(cc.Sprite).spriteFrame = cc.find(t).getComponent(cc.Sprite).spriteFrame)
                        },
                        t.prototype.DressLongAction = function (e) {
                            this.DressLong.active = !0,
                                this.Dress.active = !1,
                                this.PlaySound("Tap"),
                                this.setFrame(this.DressLong, "Canvas/Loader/LongDress/Dress_monster_taozhuang_0" + e.target.name),
                                this.addStarParticle("littlestar", this.DressLong.position, this.DressLong.parent),
                                cc.sys.localStorage.setItem("DressLong", e.target.name),
                                cc.sys.localStorage.setItem("Dress", "0"),
                                this.PlaySound("MainPanelSelection")
                        },
                        t.prototype.DressAction = function (e) {
                            this.Dress.active = !0,
                                this.PlaySound("Tap"),
                                this.DressLong.active = !1,
                                this.setFrame(this.Dress, "Canvas/Loader/DressUsed/Dress_monster_duanqun_0" + e.target.name),
                                this.addStarParticle("dressblink", this.Dress.position, this.Dress.parent),
                                cc.sys.localStorage.setItem("Dress", e.target.name),
                                cc.sys.localStorage.setItem("DressLong", "0"),
                                this.PlaySound("MainPanelSelection")
                        },
                        t.prototype.FlowerAction = function (e) {
                            this.Flower.active = !0,
                                this.PlaySound("Tap"),
                                this.setFrame(this.Flower, "Canvas/Loader/Bookay/Dress_monster_penghua0" + e.target.name),
                                this.addStarParticle("littlestar", this.Flower.position, this.Flower.parent),
                                cc.sys.localStorage.setItem("Flower", e.target.name),
                                this.PlaySound("MainPanelSelection")
                        },
                        t.prototype.GloveAction = function (e) {
                            this.Glove.active = !0,
                                this.PlaySound("Tap"),
                                this.setFrame(this.Glove, "Canvas/Loader/Glooves/Dress_monster_shoutao0" + e.target.name),
                                this.addStarParticle("littlestar", this.Glove.position, this.Glove.parent),
                                cc.sys.localStorage.setItem("Glove", e.target.name),
                                this.PlaySound("MainPanelSelection")
                        },
                        t.prototype.CrownAction = function (e) {
                            this.Crown.active = !0,
                                this.PlaySound("Tap"),
                                this.setFrame(this.Crown, "Canvas/Loader/Crown/Dress_monster_toushi0" + e.target.name),
                                this.addStarParticle("littlestar", this.Crown.position, this.Crown.parent),
                                cc.sys.localStorage.setItem("Crown", e.target.name),
                                this.PlaySound("MainPanelSelection")
                        },
                        t.prototype.NecklaseAction = function (e) {
                            this.Necklase.active = !0,
                                this.PlaySound("Tap"),
                                this.setFrame(this.Necklase, "Canvas/Loader/Necklash/makeup_monster_xianglian" + e.target.name),
                                this.addStarParticle("littlestar", this.Necklase.position, this.Necklase.parent),
                                cc.sys.localStorage.setItem("Necklace", e.target.name),
                                this.PlaySound("MainPanelSelection")
                        },
                        t.prototype.ShoesAction = function (e) {
                            this.Shoes.active = !0,
                                this.PlaySound("Tap"),
                                this.setFrame(this.Shoes, "Canvas/Loader/Shoes/monster_shoes" + e.target.name),
                                this.addStarParticle("littlestar", this.Shoes.position, this.Shoes.parent),
                                cc.sys.localStorage.setItem("Shoes", e.target.name),
                                this.PlaySound("MainPanelSelection")
                        },
                        t.prototype.HairBackAction = function (e) {
                            this.HairBack.active = !0,
                                this.PlaySound("Tap"),
                                this.setFrame(this.HairBack, "Canvas/Loader/HairBack/Dress_tousha_0" + e.target.name),
                                this.addStarParticle("littlestar", cc.v3(this.HairBack.position.x, this.HairBack.position.y + 400, 0), this.HairBack.parent),
                                cc.sys.localStorage.setItem("Hairback", e.target.name),
                                this.PlaySound("MainPanelSelection")
                        },
                        t.prototype.HideAllPanel = function () {
                            cc.find("Canvas/SidePanel").children.forEach(function (e) {
                                e.position.x &lt; 215 &amp;&amp; (e.stopAllActions(),
                                    e.runAction(cc.moveTo(.3, cc.v2(353, 0))))
                            })
                        },
                        t.prototype.MainPanelAction = function (e) {
                            var t = e.target;
                            this.HideAllPanel();
                            var o = "";
                            t.opacity = 254,
                                this.PlaySound("MainPanelSelection"),
                                "Dress" == t.name ? (o = "Canvas/SidePanel/Dress",
                                    this.PlaySound("Put"),
                                    this.node.getComponent(cc.Animation).play("DefaultCharacter")) : "HairBack" == t.name ? (o = "Canvas/SidePanel/HairBack",
                                        this.PlaySound("Put"),
                                        this.node.getComponent(cc.Animation).play("DefaultCharacter")) : "DressLong" == t.name ? (o = "Canvas/SidePanel/DressLong",
                                            this.PlaySound("Put"),
                                            this.node.getComponent(cc.Animation).play("DefaultCharacter")) : "Necklash" == t.name ? (o = "Canvas/SidePanel/Necklash",
                                                this.PlaySound("Put"),
                                                this.node.getComponent(cc.Animation).play("Face")) : "Glooves" == t.name ? (o = "Canvas/SidePanel/Glooves",
                                                    this.PlaySound("Put"),
                                                    this.node.getComponent(cc.Animation).play("Gloves")) : "HandItem" == t.name ? (o = "Canvas/SidePanel/Bookay",
                                                        this.PlaySound("Put"),
                                                        this.node.getComponent(cc.Animation).play("DefaultCharacter")) : "Shoes" == t.name &amp;&amp; (o = "Canvas/SidePanel/Shoes",
                                                            this.PlaySound("Put"),
                                                            this.node.getComponent(cc.Animation).play("Shoes"));
                            var a = cc.find(o);
                            if (a &amp;&amp; (a.stopAllActions(),
                                a.runAction(cc.moveTo(.3, cc.v2(204, 0)))),
                                0 == cc.find("Canvas/Next").active) {
                                var n = !0;
                                cc.find("Canvas/BottomPanel/MainPanel/view/content").children.forEach(function (e) {
                                    255 == e.opacity &amp;&amp; (n = !1)
                                }),
                                    n &amp;&amp; (cc.find("Canvas/Next").active = !0)
                            }
                        },
                        t.prototype.PanelHideShowAction = function () {
                            this.PlaySound("Tap"),
                                255 == cc.find("Canvas/BottomPanel/MainPanel").opacity ? (cc.find("Canvas/BottomPanel/MainPanel").stopAllActions(),
                                    cc.find("Canvas/BottomPanel/MainPanel").opacity = 254,
                                    cc.find("Canvas/BottomPanel/MainPanel").runAction(cc.moveTo(.5, cc.v2(0, -600)))) : (cc.find("Canvas/BottomPanel/MainPanel").stopAllActions(),
                                        cc.find("Canvas/BottomPanel/MainPanel").opacity = 255,
                                        cc.find("Canvas/BottomPanel/MainPanel").runAction(cc.moveTo(.5, cc.v2(0, -346))))
                        },
                        t.prototype.AddEvent = function () {
                            cc.find("Canvas/BottomPanel/MainPanel/view/content").children.forEach(function (e) {
                                e.addComponent(cc.Button);
                                var t = new cc.Component.EventHandler;
                                t.target = cc.find("Canvas"),
                                    t.component = "DressUp",
                                    t.handler = "MainPanelAction",
                                    t.customEventData = "";
                                var o = e.getComponent(cc.Button);
                                o.clickEvents.push(t),
                                    o.transition = cc.Button.Transition.SCALE
                            }),
                                cc.find("Canvas/SidePanel/Dress/view/content").children.forEach(function (e) {
                                    e.addComponent(cc.Button);
                                    var t = new cc.Component.EventHandler;
                                    t.target = cc.find("Canvas"),
                                        t.component = "DressUp",
                                        t.handler = "DressAction",
                                        t.customEventData = "";
                                    var o = e.getComponent(cc.Button);
                                    o.clickEvents.push(t),
                                        o.transition = cc.Button.Transition.SCALE
                                }),
                                cc.find("Canvas/SidePanel/DressLong/view/content").children.forEach(function (e) {
                                    e.addComponent(cc.Button);
                                    var t = new cc.Component.EventHandler;
                                    t.target = cc.find("Canvas"),
                                        t.component = "DressUp",
                                        t.handler = "DressLongAction",
                                        t.customEventData = "";
                                    var o = e.getComponent(cc.Button);
                                    o.clickEvents.push(t),
                                        o.transition = cc.Button.Transition.SCALE
                                }),
                                cc.find("Canvas/SidePanel/Bookay/view/content").children.forEach(function (e) {
                                    e.addComponent(cc.Button);
                                    var t = new cc.Component.EventHandler;
                                    t.target = cc.find("Canvas"),
                                        t.component = "DressUp",
                                        t.handler = "FlowerAction",
                                        t.customEventData = "";
                                    var o = e.getComponent(cc.Button);
                                    o.clickEvents.push(t),
                                        o.transition = cc.Button.Transition.SCALE
                                }),
                                cc.find("Canvas/SidePanel/Crown/view/content").children.forEach(function (e) {
                                    e.addComponent(cc.Button);
                                    var t = new cc.Component.EventHandler;
                                    t.target = cc.find("Canvas"),
                                        t.component = "DressUp",
                                        t.handler = "CrownAction",
                                        t.customEventData = "";
                                    var o = e.getComponent(cc.Button);
                                    o.clickEvents.push(t),
                                        o.transition = cc.Button.Transition.SCALE
                                }),
                                cc.find("Canvas/SidePanel/Glooves/view/content").children.forEach(function (e) {
                                    e.addComponent(cc.Button);
                                    var t = new cc.Component.EventHandler;
                                    t.target = cc.find("Canvas"),
                                        t.component = "DressUp",
                                        t.handler = "GloveAction",
                                        t.customEventData = "";
                                    var o = e.getComponent(cc.Button);
                                    o.clickEvents.push(t),
                                        o.transition = cc.Button.Transition.SCALE
                                }),
                                cc.find("Canvas/SidePanel/HairBack/view/content").children.forEach(function (e) {
                                    e.addComponent(cc.Button);
                                    var t = new cc.Component.EventHandler;
                                    t.target = cc.find("Canvas"),
                                        t.component = "DressUp",
                                        t.handler = "HairBackAction",
                                        t.customEventData = "";
                                    var o = e.getComponent(cc.Button);
                                    o.clickEvents.push(t),
                                        o.transition = cc.Button.Transition.SCALE
                                }),
                                cc.find("Canvas/SidePanel/Shoes/view/content").children.forEach(function (e) {
                                    e.addComponent(cc.Button);
                                    var t = new cc.Component.EventHandler;
                                    t.target = cc.find("Canvas"),
                                        t.component = "DressUp",
                                        t.handler = "ShoesAction",
                                        t.customEventData = "";
                                    var o = e.getComponent(cc.Button);
                                    o.clickEvents.push(t),
                                        o.transition = cc.Button.Transition.SCALE
                                }),
                                cc.find("Canvas/SidePanel/Necklash/view/content").children.forEach(function (e) {
                                    e.addComponent(cc.Button);
                                    var t = new cc.Component.EventHandler;
                                    t.target = cc.find("Canvas"),
                                        t.component = "DressUp",
                                        t.handler = "NecklaseAction",
                                        t.customEventData = "";
                                    var o = e.getComponent(cc.Button);
                                    o.clickEvents.push(t),
                                        o.transition = cc.Button.Transition.SCALE
                                })
                        },
                        t.prototype.PlaySound = function (e) {
                            cc.find("Canvas/SoundNode/" + e) &amp;&amp; cc.find("Canvas/SoundNode/" + e).getComponent(cc.AudioSource).play()
                        },
                        t.prototype.StopSound = function (e) {
                            cc.find("Canvas/SoundNode/" + e) &amp;&amp; cc.find("Canvas/SoundNode/" + e).getComponent(cc.AudioSource).stop()
                        },
                        t.prototype.isPlaySound = function (e) {
                            return !!cc.find("Canvas/SoundNode/" + e) &amp;&amp; cc.find("Canvas/SoundNode/" + e).getComponent(cc.AudioSource).isPlaying
                        },
                        t.self = null,
                        i([r], t)
                }(cc.Component));
        o.default = l,
            cc._RF.pop()
    }, {
        "./Promotion": "Promotion"
    }],
    FinalScreen: [function (e, t, o) {
        "use strict";
        cc._RF.push(t, "d5cd1FgV3pGnobyr9EBCSVD", "FinalScreen");
        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)
            }
        ),
            i = this &amp;&amp; this.__decorate || function (e, t, o, a) {
                var n, i = arguments.length,
                    c = i &lt; 3 ? t : null === a ? a = Object.getOwnPropertyDescriptor(t, o) : a;
                if ("object" == typeof Reflect &amp;&amp; "function" == typeof Reflect.decorate)
                    c = Reflect.decorate(e, t, o, a);
                else
                    for (var s = e.length - 1; s &gt;= 0; s--)
                        (n = e[s]) &amp;&amp; (c = (i &lt; 3 ? n(c) : i &gt; 3 ? n(t, o, c) : n(t, o)) || c);
                return i &gt; 3 &amp;&amp; c &amp;&amp; Object.defineProperty(t, o, c),
                    c
            };
        Object.defineProperty(o, "__esModule", {
            value: !0
        });
        var c = e("./Promotion"),
            s = cc._decorator,
            r = s.ccclass,
            l = (s.property,
                function (e) {
                    function t() {
                        var t = null !== e &amp;&amp; e.apply(this, arguments) || this;
                        return t.BgCounter = 1,
                            t.EarringL = null,
                            t.EarringR = null,
                            t.Hair = null,
                            t.Necklase = null,
                            t.Glove = null,
                            t.Crown = null,
                            t.Shoes = null,
                            t.Dress = null,
                            t.DressLong = null,
                            t.Flower = null,
                            t.HairBack = null,
                            t.Blush = null,
                            t.EyeLiner = null,
                            t.Eyelash = null,
                            t.Eyeshadow = null,
                            t.EyeballL = null,
                            t.EyeballR = null,
                            t.Lips = null,
                            t.Tatto = null,
                            t
                    }
                    var o;
                    return n(t, e),
                        o = t,
                        t.prototype.onLoad = function () {
                            o.self = this,
                                this.Dress = cc.find("Canvas/Character/BottomBody/Dress"),
                                this.DressLong = cc.find("Canvas/Character/BottomBody/LongDress"),
                                this.EarringL = cc.find("Canvas/Character/BottomBody/EarringL"),
                                this.EarringR = cc.find("Canvas/Character/BottomBody/EarringR"),
                                this.Hair = cc.find("Canvas/Character/BottomBody/Hair"),
                                this.Necklase = cc.find("Canvas/Character/BottomBody/Necklash"),
                                this.Glove = cc.find("Canvas/Character/BottomBody/Gloves"),
                                this.Crown = cc.find("Canvas/Character/BottomBody/Crown"),
                                this.Shoes = cc.find("Canvas/Character/BottomBody/Shoes"),
                                this.Flower = cc.find("Canvas/Character/BottomBody/Bookay"),
                                this.HairBack = cc.find("Canvas/Character/HairBack"),
                                this.Blush = cc.find("Canvas/Character/BottomBody/Face/Blush"),
                                this.EyeLiner = cc.find("Canvas/Character/BottomBody/Face/EyeLiner"),
                                this.Eyelash = cc.find("Canvas/Character/BottomBody/Face/Eyelash"),
                                this.Eyeshadow = cc.find("Canvas/Character/BottomBody/Face/EyeShadow"),
                                this.EyeballL = cc.find("Canvas/Character/BottomBody/Eyeball_L"),
                                this.EyeballR = cc.find("Canvas/Character/BottomBody/Eyeball_R"),
                                this.Lips = cc.find("Canvas/Character/BottomBody/Face/Lips"),
                                this.Tatto = cc.find("Canvas/Character/BottomBody/Face/Tatto"),
                                this.setFrame(cc.find("Canvas/Character/BottomBody"), "Canvas/Loader/person_girl0" + cc.sys.localStorage.getItem("SelectedCharacter")),
                                this.setFrame(cc.find("Canvas/Character/BottomBody/Face"), "Canvas/Loader/model-" + cc.sys.localStorage.getItem("SelectedCharacter")),
                                this.setFrame(cc.find("Canvas/Character/BottomBody/Face/EB"), "Canvas/Loader/EB" + cc.sys.localStorage.getItem("SelectedCharacter"))
                        },
                        t.prototype.start = function () {
                            if (null != cc.sys.localStorage.getItem("Pupils") &amp;&amp; (this.setFrame(this.EyeballL, "Canvas/Loader/Eyeball/makeup_eye0" + cc.sys.localStorage.getItem("Pupils")),
                                this.setFrame(this.EyeballR, "Canvas/Loader/Eyeball/makeup_eye0" + cc.sys.localStorage.getItem("Pupils"))),
                                null != cc.sys.localStorage.getItem("EyeLiner") &amp;&amp; "0" !== cc.sys.localStorage.getItem("EyeLiner") &amp;&amp; (this.setFrame(this.EyeLiner, "Canvas/Loader/EyeLiner/makeup_monster_yanxian0" + cc.sys.localStorage.getItem("EyeLiner")),
                                    this.EyeLiner.active = !0),
                                null != cc.sys.localStorage.getItem("EyeShadow") &amp;&amp; "0" !== cc.sys.localStorage.getItem("EyeShadow") &amp;&amp; (this.setFrame(this.Eyeshadow, "Canvas/Loader/Eyeshadow/makeup_monster_yanying0" + cc.sys.localStorage.getItem("EyeShadow")),
                                    this.Eyeshadow.active = !0),
                                null != cc.sys.localStorage.getItem("Eyelash") &amp;&amp; "0" !== cc.sys.localStorage.getItem("Eyelash")) {
                                this.Eyelash.active = !0;
                                var e = parseInt(cc.sys.localStorage.getItem("Eyelash"));
                                e &lt;= 5 ? this.setFrame(this.Eyelash, "Canvas/Loader/Eyelash/makeup_monster_jiemao01_0" + e) : e &lt;= 10 ? this.setFrame(this.Eyelash, "Canvas/Loader/Eyelash/makeup_monster_jiemao02_0" + (e - 5)) : e &lt;= 15 &amp;&amp; this.setFrame(this.Eyelash, "Canvas/Loader/Eyelash/makeup_monster_jiemao02_0" + (e - 10))
                            }
                            if (null != cc.sys.localStorage.getItem("Blush") &amp;&amp; "0" !== cc.sys.localStorage.getItem("Blush") &amp;&amp; (this.setFrame(this.Blush, "Canvas/Loader/Blush/makeup_monster_saihong0" + cc.sys.localStorage.getItem("Blush")),
                                this.Blush.active = !0),
                                null != cc.sys.localStorage.getItem("Lips")) {
                                var t = parseInt(cc.sys.localStorage.getItem("SelectedCharacter"));
                                3 == t ? (this.Lips.setContentSize(83, 43),
                                    this.Lips.position = cc.v3(this.Lips.position.x + 1, this.Lips.position.y + 3, 0)) : 1 != t &amp;&amp; 2 != t || (this.Lips.position = cc.v3(this.Lips.position.x + 1, this.Lips.position.y + 2, 0)),
                                    "0" !== cc.sys.localStorage.getItem("Lips") &amp;&amp; (this.setFrame(this.Lips, "Canvas/Loader/Lips/makeup_monster_girl0" + t + "_zuiba0" + cc.sys.localStorage.getItem("Lips")),
                                        this.Lips.active = !0)
                            }
                            null != cc.sys.localStorage.getItem("Hair") &amp;&amp; "0" != cc.sys.localStorage.getItem("Hair") &amp;&amp; (this.Hair.active = !0,
                                this.setFrame(this.Hair, "Canvas/Loader/Hair/makeup_hair0" + cc.sys.localStorage.getItem("Hair"))),
                                null != cc.sys.localStorage.getItem("Earring") &amp;&amp; "0" != cc.sys.localStorage.getItem("Earring") &amp;&amp; (this.EarringL.active = !0,
                                    this.EarringR.active = !0,
                                    this.setFrame(this.EarringL, "Canvas/Loader/Earring/makeup_monster_erhuan0" + cc.sys.localStorage.getItem("Earring")),
                                    this.setFrame(this.EarringR, "Canvas/Loader/Earring/makeup_monster_erhuan0" + cc.sys.localStorage.getItem("Earring"))),
                                null != cc.sys.localStorage.getItem("Hairback") &amp;&amp; "0" != cc.sys.localStorage.getItem("Hairback") &amp;&amp; (this.HairBack.active = !0,
                                    this.setFrame(this.HairBack, "Canvas/Loader/HairBack/Dress_tousha_0" + cc.sys.localStorage.getItem("Hairback"))),
                                null != cc.sys.localStorage.getItem("Tatto") &amp;&amp; "0" != cc.sys.localStorage.getItem("Tatto") &amp;&amp; (this.Tatto.active = !0,
                                    this.setFrame(this.Tatto, "Canvas/Loader/Tatto/makeup_monster_huawen0" + cc.sys.localStorage.getItem("Tatto"))),
                                null != cc.sys.localStorage.getItem("Dress") &amp;&amp; "0" != cc.sys.localStorage.getItem("Dress") &amp;&amp; (this.Dress.active = !0,
                                    this.DressLong.active = !1,
                                    this.setFrame(this.Dress, "Canvas/Loader/DressUsed/Dress_monster_duanqun_0" + cc.sys.localStorage.getItem("Dress"))),
                                null != cc.sys.localStorage.getItem("DressLong") &amp;&amp; "0" != cc.sys.localStorage.getItem("DressLong") &amp;&amp; (this.Dress.active = !1,
                                    this.DressLong.active = !0,
                                    this.setFrame(this.DressLong, "Canvas/Loader/LongDress/Dress_monster_taozhuang_0" + cc.sys.localStorage.getItem("DressLong"))),
                                null != cc.sys.localStorage.getItem("Necklace") &amp;&amp; "0" != cc.sys.localStorage.getItem("Necklace") &amp;&amp; (this.Necklase.active = !0,
                                    this.setFrame(this.Necklase, "Canvas/Loader/Necklash/makeup_monster_xianglian" + cc.sys.localStorage.getItem("Necklace"))),
                                null != cc.sys.localStorage.getItem("Crown") &amp;&amp; "0" != cc.sys.localStorage.getItem("Crown") &amp;&amp; (this.Crown.active = !0,
                                    this.setFrame(this.Crown, "Canvas/Loader/Crown/Dress_monster_toushi0" + cc.sys.localStorage.getItem("Crown"))),
                                null != cc.sys.localStorage.getItem("Glove") &amp;&amp; "0" != cc.sys.localStorage.getItem("Glove") &amp;&amp; (this.Glove.active = !0,
                                    this.setFrame(this.Glove, "Canvas/Loader/Glooves/Dress_monster_shoutao0" + cc.sys.localStorage.getItem("Glove"))),
                                null != cc.sys.localStorage.getItem("Shoes") &amp;&amp; "0" != cc.sys.localStorage.getItem("Shoes") &amp;&amp; (this.Shoes.active = !0,
                                    this.setFrame(this.Shoes, "Canvas/Loader/Shoes/monster_shoes" + cc.sys.localStorage.getItem("Shoes"))),
                                null != cc.sys.localStorage.getItem("Flower") &amp;&amp; "0" != cc.sys.localStorage.getItem("Flower") &amp;&amp; (this.Flower.active = !0,
                                    this.setFrame(this.Flower, "Canvas/Loader/Bookay/Dress_monster_penghua0" + cc.sys.localStorage.getItem("Flower")));
                            var o = cc.instantiate(cc.find("Canvas/Character"));
                            cc.find("Canvas/poster/mask").addChild(o),
                                o.position = cc.v3(0, 313, 0),
                                o.scale = .7,
                                "6" == cc.sys.localStorage.getItem("Hair") ? this.EarringL.active = !1 : this.EarringL.active = !0,
                                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_END, this.TouchEnd),
                                this.node.on(cc.Node.EventType.TOUCH_CANCEL, this.TouchEnd)
                        },
                        t.prototype.TouchBegan = function (e) {
                            var t = e.getLocation();
                            cc.v3(o.self.node.convertToNodeSpaceAR(t))
                        },
                        t.prototype.TouchMove = function (e) {
                            var t = e.getLocation(),
                                a = (cc.v3(o.self.node.convertToNodeSpaceAR(t)),
                                    cc.find("Canvas/OpenCamera/camera_bg_paizhao_button_jiaoju01/Mask/camera_bg_paizhao_button_jiaoju02"));
                            if (a.parent.getBoundingBoxToWorld().contains(t)) {
                                var n = cc.v3(a.position.x, a.position.y + e.getDeltaY(), 0);
                                if (n.y &gt; 64 &amp;&amp; n.y &lt; 207) {
                                    cc.find("Canvas/OpenCamera/Hand").active = !1,
                                        a.position = n;
                                    var i = n.y / 143 - .44;
                                    cc.find("Canvas/Character").scale = .7 + i,
                                        cc.find("Canvas/bg").scale = 1 + .2 * i
                                }
                            }
                        },
                        t.prototype.TouchEnd = function (e) {
                            var t = e.getLocation();
                            cc.v3(o.self.node.convertToNodeSpaceAR(t))
                        },
                        t.prototype.setFrame = function (e, t) {
                            e &amp;&amp; e.getComponent(cc.Sprite) &amp;&amp; cc.find(t) &amp;&amp; cc.find(t).getComponent(cc.Sprite) &amp;&amp; (e.getComponent(cc.Sprite).spriteFrame = cc.find(t).getComponent(cc.Sprite).spriteFrame)
                        },
                        t.prototype.addStarParticle = function () {
                            var e = cc.instantiate(cc.find("Canvas/star"));
                            cc.find("Canvas/Character").addChild(e),
                                e.active = !0,
                                e.position = cc.Vec3.ZERO,
                                this.PlaySound("star1")
                        },
                        t.prototype.ChangeBgAction = function (e) {
                            this.PlaySound("Tap"),
                                cc.find("Canvas/bg").getComponent(cc.Sprite).spriteFrame = cc.find("Canvas/Loader/camera_bg0" + e.target.name).getComponent(cc.Sprite).spriteFrame,
                                cc.find("Canvas/poster/mask/bg").getComponent(cc.Sprite).spriteFrame = cc.find("Canvas/Loader/camera_bg0" + e.target.name).getComponent(cc.Sprite).spriteFrame
                        },
                        t.prototype.MainCamaraAction = function (e) {
                            e.target.active = !1,
                                this.PlaySound("Tap"),
                                cc.find("Canvas/OpenCamera").active = !0,
                                cc.find("Canvas/OpenCamera/Capture").active = !0,
                                cc.find("Canvas/OpenCamera/camera_bg_paizhao_button_jiaoju01/Mask/camera_bg_paizhao_button_jiaoju02").position = cc.v3(0, 63, 0),
                                cc.find("Canvas/OpenCamera/Hand").active = !0
                        },
                        t.prototype.ClosePopup = function () {
                            this.PlaySound("Tap"),
                                cc.find("Canvas/poster").active = !1,
                                cc.find("Canvas/Character").scale = .7,
                                cc.find("Canvas/bg").scale = 1,
                                cc.find("Canvas/MainCamera").active = !0
                        },
                        t.prototype.CaptureAction = function (e) {
                            e.target.active = !1,
                                this.PlaySound("Camera"),
                                cc.find("Canvas/OpenCamera").active = !1,
                                cc.find("Canvas/poster").active = !0,
                                cc.find("Canvas/poster/mask/Character").scale = cc.find("Canvas/Character").scale,
                                cc.find("Canvas/poster/mask/bg").scale = cc.find("Canvas/bg").scale
                        },
                        t.prototype.DoneAction = function (e) {
                            e.target.active = !1,
                                this.PlaySound("Tap"),
                                cc.find("Canvas/promotion").position = cc.Vec3.ZERO,
                                cc.find("Canvas/promotion").opacity = 255,
                                cc.find("Canvas/more").active = !1,
                                cc.find("Canvas/logo").active = !1,
                                c.default.self.requestAds()
                        },
                        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 = i([r], t)
                }(cc.Component));
        o.default = l,
            cc._RF.pop()
    }, {
        "./Promotion": "Promotion"
    }],
    LevelScene: [function (e, t, o) {
        "use strict";
        cc._RF.push(t, "dec99xB8NJKkoQuqfAGYxjr", "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)
            }
        ),
            i = this &amp;&amp; this.__decorate || function (e, t, o, a) {
                var n, i = arguments.length,
                    c = i &lt; 3 ? t : null === a ? a = Object.getOwnPropertyDescriptor(t, o) : a;
                if ("object" == typeof Reflect &amp;&amp; "function" == typeof Reflect.decorate)
                    c = Reflect.decorate(e, t, o, a);
                else
                    for (var s = e.length - 1; s &gt;= 0; s--)
                        (n = e[s]) &amp;&amp; (c = (i &lt; 3 ? n(c) : i &gt; 3 ? n(t, o, c) : n(t, o)) || c);
                return i &gt; 3 &amp;&amp; c &amp;&amp; Object.defineProperty(t, o, c),
                    c
            };
        Object.defineProperty(o, "__esModule", {
            value: !0
        });
        var c = e("./Promotion"),
            s = cc._decorator,
            r = s.ccclass,
            l = (s.property,
                function (e) {
                    function t() {
                        var t = null !== e &amp;&amp; e.apply(this, arguments) || this;
                        return t.Character = [],
                            t.CharacterPosition = [],
                            t.CharacterScale = [],
                            t.Counter = 0,
                            t
                    }
                    var o;
                    return n(t, e),
                        o = t,
                        t.prototype.onLoad = function () {
                            o.self = this,
                                cc.director.preloadScene("SpaView"),
                                cc.sys.localStorage.setItem("SelectedCharacter", "1"),
                                this.Character[0] = cc.find("Canvas/Character/1a"),
                                this.Character[1] = cc.find("Canvas/Character/2a"),
                                this.Character[2] = cc.find("Canvas/Character/3a"),
                                this.CharacterPosition[0] = cc.v2(this.Character[0].position),
                                this.CharacterPosition[1] = cc.v2(this.Character[1].position),
                                this.CharacterPosition[2] = cc.v2(this.Character[2].position),
                                this.CharacterScale[0] = this.Character[0].scale,
                                this.CharacterScale[1] = this.Character[1].scale,
                                this.CharacterScale[2] = this.Character[2].scale
                        },
                        t.prototype.start = function () { },
                        t.prototype.CharacterSelection = function (e) {
                            var t = e.target;
                            t.name == this.Character[0].name ? (cc.sys.localStorage.setItem("SelectedCharacter", "1"),
                                t.parent.getComponent(cc.Animation).play("LevelChar1")) : t.name == this.Character[1].name ? (cc.sys.localStorage.setItem("SelectedCharacter", "2"),
                                    t.parent.getComponent(cc.Animation).play("LevelChar2")) : t.name == this.Character[2].name &amp;&amp; (cc.sys.localStorage.setItem("SelectedCharacter", "3"),
                                        t.parent.getComponent(cc.Animation).play("LevelChar3")),
                                this.Character[0].getComponent(cc.Button).interactable = !1,
                                this.Character[1].getComponent(cc.Button).interactable = !1,
                                this.Character[2].getComponent(cc.Button).interactable = !1,
                                c.default.self.requestAds(),
                                this.PlaySound("CharacterSelect"),
                                t.parent.getComponent(cc.Animation).on("finished", function () {
                                    cc.director.loadScene("SpaView")
                                })
                        },
                        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 = i([r], t)
                }(cc.Component));
        o.default = l,
            cc._RF.pop()
    }, {
        "./Promotion": "Promotion"
    }],
    MainScene: [function (e, t, o) {
        "use strict";
        cc._RF.push(t, "feb0fmbMrhCboV1i6lOZFRd", "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)
            }
        ),
            i = this &amp;&amp; this.__decorate || function (e, t, o, a) {
                var n, i = arguments.length,
                    c = i &lt; 3 ? t : null === a ? a = Object.getOwnPropertyDescriptor(t, o) : a;
                if ("object" == typeof Reflect &amp;&amp; "function" == typeof Reflect.decorate)
                    c = Reflect.decorate(e, t, o, a);
                else
                    for (var s = e.length - 1; s &gt;= 0; s--)
                        (n = e[s]) &amp;&amp; (c = (i &lt; 3 ? n(c) : i &gt; 3 ? n(t, o, c) : n(t, o)) || c);
                return i &gt; 3 &amp;&amp; c &amp;&amp; Object.defineProperty(t, o, c),
                    c
            };
        Object.defineProperty(o, "__esModule", {
            value: !0
        });
        var c = e("./Promotion"),
            s = cc._decorator,
            r = s.ccclass,
            l = (s.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 () {
                            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),
                                cc.assetManager.loadBundle("Graphics", function () {
                                    console.log("Bundle Loaded Graphics")
                                })
                        },
                        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"),
                                cc.find("Canvas/Play/playbutton").active = !0,
                                e.target.getComponent(cc.Button).interactable = !1,
                                this.node.runAction(cc.sequence(cc.delayTime(1), cc.callFunc(function () {
                                    cc.director.loadScene("LevelScene")
                                }, this))),
                                c.default.self.requestAds()
                        },
                        t.prototype.onSoundOffBtnClick = function () {
                            this.PlaySound("Tap"),
                                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("Tap"),
                                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 = i([r], t)
                }(cc.Component));
        o.default = l,
            cc._RF.pop()
    }, {
        "./Promotion": "Promotion"
    }],
    MakeUp: [function (e, t, o) {
        "use strict";
        cc._RF.push(t, "86b7fHKNWRId4nTU/kC56f9", "MakeUp");
        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)
            }
        ),
            i = this &amp;&amp; this.__decorate || function (e, t, o, a) {
                var n, i = arguments.length,
                    c = i &lt; 3 ? t : null === a ? a = Object.getOwnPropertyDescriptor(t, o) : a;
                if ("object" == typeof Reflect &amp;&amp; "function" == typeof Reflect.decorate)
                    c = Reflect.decorate(e, t, o, a);
                else
                    for (var s = e.length - 1; s &gt;= 0; s--)
                        (n = e[s]) &amp;&amp; (c = (i &lt; 3 ? n(c) : i &gt; 3 ? n(t, o, c) : n(t, o)) || c);
                return i &gt; 3 &amp;&amp; c &amp;&amp; Object.defineProperty(t, o, c),
                    c
            };
        Object.defineProperty(o, "__esModule", {
            value: !0
        });
        var c, s = e("./Drawing"),
            r = e("./Promotion"),
            l = cc._decorator,
            h = l.ccclass;
        l.property,
            function (e) {
                e[e.Eyeliner = 0] = "Eyeliner",
                    e[e.EyeShadow = 1] = "EyeShadow",
                    e[e.Eyelash_1 = 2] = "Eyelash_1",
                    e[e.Eyelash_2 = 3] = "Eyelash_2",
                    e[e.Eyelash_3 = 4] = "Eyelash_3",
                    e[e.Blush = 5] = "Blush",
                    e[e.LipStick = 6] = "LipStick",
                    e[e.Tatto = 7] = "Tatto"
            }(c || (c = {}));
        var d = function (e) {
            function t() {
                var t = null !== e &amp;&amp; e.apply(this, arguments) || this;
                return t.PanelCounter = 0,
                    t.ToolPick = [],
                    t.ToolMove = [],
                    t.SelectedTool = -1,
                    t.CanMove = !1,
                    t.SelectedToolToMove = null,
                    t.BeganPoint = null,
                    t.isToolDone = [],
                    t.Hair = null,
                    t.EyeShadow = null,
                    t.EyeLiner = null,
                    t.Eyelash = null,
                    t.Blush = null,
                    t.EyeballL = null,
                    t.EyeballR = null,
                    t.Eyebrow = null,
                    t.Lips = null,
                    t.Tatto = null,
                    t.EarringL = null,
                    t.EarringR = null,
                    t.DrawEyeLiner = null,
                    t.DrawEyeShadow = null,
                    t.DrawEyelash = null,
                    t.DrawBlush = null,
                    t.DrawTatto = null,
                    t.DrawLips = null,
                    t.SelectedColorEyeLiner = 1,
                    t.SelectedColorEyeShadow = 1,
                    t.SelectedColorEyeLash = 1,
                    t.SelectedColorBlush = 1,
                    t.SelectedColorLipstick = 1,
                    t.HintBlush = null,
                    t.HintLips = null,
                    t.HintLiner = null,
                    t.HintTatto = null,
                    t.SelectedCharacter = 0,
                    t
            }
            var o;
            return n(t, e),
                o = t,
                t.prototype.onLoad = function () {
                    for (var e = 0; e &lt;= c.Tatto; e++)
                        this.isToolDone[e] = !1;
                    for (this.HintBlush = cc.find("Canvas/Character/person_girl01_yuwei/Hint/BlushHint"),
                        this.HintLips = cc.find("Canvas/Character/person_girl01_yuwei/Hint/LipsHint"),
                        this.HintLiner = cc.find("Canvas/Character/person_girl01_yuwei/Hint/EyelashHint"),
                        this.HintTatto = cc.find("Canvas/Character/person_girl01_yuwei/Hint/tattoo"),
                        this.SelectedCharacter = 1,
                        this.SelectedCharacter = parseInt(cc.sys.localStorage.getItem("SelectedCharacter")),
                        o.self = this,
                        cc.director.preloadScene("DressUp"),
                        this.addEvent(),
                        this.ToolPick[c.Eyeliner] = cc.find("Canvas/Panel/Scroll/Panel2/Liner/EyeLiner"),
                        this.ToolPick[c.EyeShadow] = cc.find("Canvas/Panel/Scroll/Panel2/Eyeshadow/Brush"),
                        this.ToolPick[c.Eyelash_1] = cc.find("Canvas/Panel/Scroll/Panel3/eyelash/eyelash1"),
                        this.ToolPick[c.Eyelash_2] = cc.find("Canvas/Panel/Scroll/Panel3/eyelash/eyelash2"),
                        this.ToolPick[c.Eyelash_3] = cc.find("Canvas/Panel/Scroll/Panel3/eyelash/eyelash3"),
                        this.ToolPick[c.Blush] = cc.find("Canvas/Panel/Scroll/Panel4/blush/Blush"),
                        this.ToolPick[c.LipStick] = cc.find("Canvas/Panel/Scroll/Panel4/Lipstic"),
                        this.ToolPick[c.Tatto] = cc.find("Canvas/Panel/Scroll/Panel3/mask/makeup_huawen"),
                        this.ToolMove[c.Eyeliner] = cc.find("Canvas/Panel/Scroll/Panel2/Liner/EyeLiner"),
                        this.ToolMove[c.EyeShadow] = cc.find("Canvas/Panel/Scroll/Panel2/Eyeshadow/Brush"),
                        this.ToolMove[c.Eyelash_1] = cc.find("Canvas/Panel/Scroll/Panel3/eyelash/eyelash1"),
                        this.ToolMove[c.Eyelash_2] = cc.find("Canvas/Panel/Scroll/Panel3/eyelash/eyelash2"),
                        this.ToolMove[c.Eyelash_3] = cc.find("Canvas/Panel/Scroll/Panel3/eyelash/eyelash3"),
                        this.ToolMove[c.Blush] = cc.find("Canvas/Panel/Scroll/Panel4/blush/Blush"),
                        this.ToolMove[c.LipStick] = cc.find("Canvas/Panel/Scroll/Panel4/Lipstic"),
                        this.ToolMove[c.Tatto] = cc.find("Canvas/Panel/Scroll/Panel3/mask/makeup_huawen"),
                        this.Hair = cc.find("Canvas/Character/person_girl01_yuwei/model-1/Hair"),
                        this.EyeShadow = cc.find("Canvas/Character/person_girl01_yuwei/model-1/EyeShadow"),
                        this.EyeLiner = cc.find("Canvas/Character/person_girl01_yuwei/model-1/EyeLiner"),
                        this.Eyelash = cc.find("Canvas/Character/person_girl01_yuwei/model-1/Eyelash"),
                        this.Blush = cc.find("Canvas/Character/person_girl01_yuwei/model-1/Blush"),
                        this.EyeballL = cc.find("Canvas/Character/person_girl01_yuwei/Eyeball_L"),
                        this.EyeballR = cc.find("Canvas/Character/person_girl01_yuwei/Eyeball_R"),
                        this.Lips = cc.find("Canvas/Character/person_girl01_yuwei/model-1/Lips"),
                        this.Tatto = cc.find("Canvas/Character/person_girl01_yuwei/model-1/Tatto"),
                        this.EarringL = cc.find("Canvas/Character/person_girl01_yuwei/model-1/EarringL"),
                        this.EarringR = cc.find("Canvas/Character/person_girl01_yuwei/model-1/EarringR"),
                        this.DrawEyeLiner = new s.default,
                        this.DrawEyeLiner.isDrawOnInit = !1,
                        this.DrawEyeLiner.initDrawNodeMakeUp(this.EyeLiner),
                        this.DrawEyeLiner.setWidthAndHeight(this.EyeLiner.getContentSize().width, this.EyeLiner.getContentSize().height),
                        e = 0; e &lt; 8; e++)
                        this.DrawEyeLiner.LoadDrawingTextureUsingName(cc.find("Canvas/Loader/EyeLiner/makeup_monster_yanxian0" + (e + 1)).getComponent(cc.Sprite).spriteFrame, e);
                    for (this.DrawEyeLiner.LoadBrushTexture(cc.find("Canvas/Loader/dot-small").getComponent(cc.Sprite).spriteFrame),
                        this.DrawEyeLiner.LoadEraserBrushTexture(cc.find("Canvas/Loader/dot-small").getComponent(cc.Sprite).spriteFrame),
                        this.DrawEyeLiner.setBrushSize(20),
                        this.DrawEyeShadow = new s.default,
                        this.DrawEyeShadow.isDrawOnInit = !1,
                        this.DrawEyeShadow.initDrawNodeMakeUp(this.EyeShadow),
                        this.DrawEyeShadow.setWidthAndHeight(this.EyeShadow.getContentSize().width, this.EyeShadow.getContentSize().height),
                        e = 0; e &lt; 8; e++)
                        this.DrawEyeShadow.LoadDrawingTextureUsingName(cc.find("Canvas/Loader/Eyeshadow/makeup_monster_yanying0" + (e + 1)).getComponent(cc.Sprite).spriteFrame, e);
                    for (this.DrawEyeShadow.LoadBrushTexture(cc.find("Canvas/Loader/dot-small").getComponent(cc.Sprite).spriteFrame),
                        this.DrawEyeShadow.LoadEraserBrushTexture(cc.find("Canvas/Loader/dot-small").getComponent(cc.Sprite).spriteFrame),
                        this.DrawEyeShadow.setBrushSize(30),
                        this.DrawEyelash = new s.default,
                        this.DrawEyelash.isDrawOnInit = !1,
                        this.DrawEyelash.initDrawNodeMakeUp(this.Eyelash),
                        this.DrawEyelash.setWidthAndHeight(this.Eyelash.getContentSize().width, this.Eyelash.getContentSize().height),
                        e = 0; e &lt; 5; e++)
                        this.DrawEyelash.LoadDrawingTextureUsingName(cc.find("Canvas/Loader/Eyelash/makeup_monster_jiemao01_0" + (e + 1)).getComponent(cc.Sprite).spriteFrame, e);
                    for (e = 0; e &lt; 5; e++)
                        this.DrawEyelash.LoadDrawingTextureUsingName(cc.find("Canvas/Loader/Eyelash/makeup_monster_jiemao02_0" + (e + 1)).getComponent(cc.Sprite).spriteFrame, e + 5);
                    for (e = 0; e &lt; 5; e++)
                        this.DrawEyelash.LoadDrawingTextureUsingName(cc.find("Canvas/Loader/Eyelash/makeup_monster_jiemao03_0" + (e + 1)).getComponent(cc.Sprite).spriteFrame, e + 10);
                    for (this.DrawEyelash.LoadBrushTexture(cc.find("Canvas/Loader/dot-small").getComponent(cc.Sprite).spriteFrame),
                        this.DrawEyelash.LoadEraserBrushTexture(cc.find("Canvas/Loader/dot-small").getComponent(cc.Sprite).spriteFrame),
                        this.DrawEyelash.setBrushSize(20),
                        this.DrawBlush = new s.default,
                        this.DrawBlush.isDrawOnInit = !1,
                        this.DrawBlush.initDrawNodeMakeUp(this.Blush),
                        this.DrawBlush.setWidthAndHeight(this.Blush.getContentSize().width, this.Blush.getContentSize().height),
                        e = 0; e &lt; 6; e++)
                        this.DrawBlush.LoadDrawingTextureUsingName(cc.find("Canvas/Loader/Blush/makeup_monster_saihong0" + (e + 1)).getComponent(cc.Sprite).spriteFrame, e);
                    for (this.DrawBlush.LoadBrushTexture(cc.find("Canvas/Loader/dot-small").getComponent(cc.Sprite).spriteFrame),
                        this.DrawBlush.LoadEraserBrushTexture(cc.find("Canvas/Loader/dot-small").getComponent(cc.Sprite).spriteFrame),
                        this.DrawBlush.setBrushSize(20),
                        this.DrawTatto = new s.default,
                        this.DrawTatto.isDrawOnInit = !1,
                        this.DrawTatto.initDrawNodeMakeUp(this.Tatto),
                        this.DrawTatto.setWidthAndHeight(this.Tatto.getContentSize().width, this.Tatto.getContentSize().height),
                        e = 0; e &lt; 9; e++)
                        this.DrawTatto.LoadDrawingTextureUsingName(cc.find("Canvas/Loader/Tatto/makeup_monster_huawen0" + e).getComponent(cc.Sprite).spriteFrame, e);
                    for (this.DrawTatto.LoadBrushTexture(cc.find("Canvas/Loader/dot-small").getComponent(cc.Sprite).spriteFrame),
                        this.DrawTatto.LoadEraserBrushTexture(cc.find("Canvas/Loader/dot-small").getComponent(cc.Sprite).spriteFrame),
                        this.DrawTatto.setBrushSize(20),
                        this.DrawLips = new s.default,
                        this.DrawLips.isDrawOnInit = !1,
                        this.DrawLips.initDrawNodeMakeUp(this.Lips),
                        console.log("this.SelectedCharacter" + this.SelectedCharacter),
                        3 == this.SelectedCharacter ? (console.log("33333"),
                            this.Lips.setContentSize(83, 43),
                            this.Lips.position = cc.v3(this.Lips.position.x + 1, this.Lips.position.y + 3, 0)) : 1 != this.SelectedCharacter &amp;&amp; 2 != this.SelectedCharacter || (console.log("1111"),
                                this.Lips.position = cc.v3(this.Lips.position.x + 1, this.Lips.position.y + 2, 0)),
                        this.DrawLips.setWidthAndHeight(this.Lips.getContentSize().width, this.Lips.getContentSize().height),
                        e = 0; e &lt; 8; e++)
                        this.DrawLips.LoadDrawingTextureUsingName(cc.find("Canvas/Loader/Lips/makeup_monster_girl0" + this.SelectedCharacter + "_zuiba0" + (e + 1)).getComponent(cc.Sprite).spriteFrame, e);
                    this.DrawLips.LoadBrushTexture(cc.find("Canvas/Loader/dot-small").getComponent(cc.Sprite).spriteFrame),
                        this.DrawLips.LoadEraserBrushTexture(cc.find("Canvas/Loader/dot-small").getComponent(cc.Sprite).spriteFrame),
                        this.DrawLips.setBrushSize(20)
                },
                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_END, this.TouchEnd),
                        this.node.on(cc.Node.EventType.TOUCH_CANCEL, this.TouchEnd),
                        cc.sys.localStorage.setItem("Pupils", 1),
                        cc.sys.localStorage.setItem("EyeLiner", 0),
                        cc.sys.localStorage.setItem("Eyelash", 0),
                        cc.sys.localStorage.setItem("Blush", 0),
                        cc.sys.localStorage.setItem("Lips", 0),
                        cc.sys.localStorage.setItem("Hair", 0),
                        cc.sys.localStorage.setItem("EyeShadow", 0),
                        cc.sys.localStorage.setItem("Tatto", 0),
                        cc.sys.localStorage.setItem("Earring", 0),
                        this.setFrame(cc.find("Canvas/Character/person_girl01_yuwei/model-1"), "Canvas/Loader/model-" + cc.sys.localStorage.getItem("SelectedCharacter"))
                },
                t.prototype.TouchBegan = function (e) {
                    var t = e.getLocation(),
                        a = cc.v3(o.self.node.convertToNodeSpaceAR(t));
                    o.self.isPick(o.self.ToolPick[c.Eyeliner], t) ? (o.self.ToolPickBegan(c.Eyeliner, a),
                        o.self.DrawEyeLiner.setBrushSize(20),
                        o.self.DrawEyeLiner.ChangeTexture(o.self.SelectedColorEyeLiner - 1, !1),
                        o.self.ShowPanel("Eyeliner"),
                        cc.sys.localStorage.setItem("EyeLiner", o.self.SelectedColorEyeLiner),
                        o.self.HintLiner.active = !0) : o.self.isPick(o.self.ToolPick[c.EyeShadow], t) ? (o.self.ToolPickBegan(c.EyeShadow, a),
                            o.self.ShowPanel("EyeShadow"),
                            o.self.DrawEyeShadow.setBrushSize(20),
                            cc.sys.localStorage.setItem("EyeShadow", o.self.SelectedColorEyeShadow),
                            o.self.HintLiner.active = !0) : o.self.isPick(o.self.ToolPick[c.Tatto], t) ? (o.self.ToolPickBegan(c.Tatto, a),
                                o.self.HideAllPanel(),
                                o.self.DrawTatto.setBrushSize(20),
                                o.self.ShowPanel("Tatto"),
                                o.self.HintTatto.active = !0) : o.self.isPick(o.self.ToolPick[c.Eyelash_1], t) ? (o.self.ToolPickBegan(c.Eyelash_1, a),
                                    o.self.DrawEyelash.ChangeTexture(o.self.SelectedColorEyeLash - 1, !1),
                                    o.self.ShowPanel("Eyelash"),
                                    o.self.DrawEyelash.setBrushSize(20),
                                    o.self.SelectedToolToMove.runAction(cc.rotateBy(.3, -90)),
                                    cc.sys.localStorage.setItem("Eyelash", o.self.SelectedColorEyeLash),
                                    o.self.HintLiner.active = !0) : o.self.isPick(o.self.ToolPick[c.Eyelash_2], t) ? (o.self.ToolPickBegan(c.Eyelash_2, a),
                                        o.self.DrawEyelash.ChangeTexture(5 + o.self.SelectedColorEyeLash - 1, !1),
                                        o.self.ShowPanel("Eyelash"),
                                        o.self.DrawEyelash.setBrushSize(20),
                                        o.self.SelectedToolToMove.runAction(cc.rotateBy(.3, -90)),
                                        cc.sys.localStorage.setItem("Eyelash", o.self.SelectedColorEyeLash + 5),
                                        o.self.HintLiner.active = !0) : o.self.isPick(o.self.ToolPick[c.Eyelash_3], t) ? (o.self.ToolPickBegan(c.Eyelash_3, a),
                                            o.self.DrawEyelash.ChangeTexture(10 + o.self.SelectedColorEyeLash - 1, !1),
                                            o.self.ShowPanel("Eyelash"),
                                            o.self.DrawEyelash.setBrushSize(20),
                                            o.self.SelectedToolToMove.runAction(cc.rotateBy(.3, -90)),
                                            cc.sys.localStorage.setItem("Eyelash", o.self.SelectedColorEyeLash + 10),
                                            o.self.HintLiner.active = !0) : o.self.isPick(o.self.ToolPick[c.Blush], t) ? (o.self.ToolPickBegan(c.Blush, a),
                                                o.self.ShowPanel("Blush"),
                                                o.self.DrawBlush.setBrushSize(20),
                                                o.self.HintBlush.active = !0) : o.self.isPick(o.self.ToolPick[c.LipStick], t) &amp;&amp; (o.self.ToolPickBegan(c.LipStick, a),
                                                    o.self.DrawLips.ChangeTexture(o.self.SelectedColorLipstick - 1, !1),
                                                    o.self.ShowPanel("LIpsStick1"),
                                                    cc.sys.localStorage.setItem("Lips", o.self.SelectedColorLipstick),
                                                    o.self.HintLips.active = !0)
                },
                t.prototype.TouchMove = function (e, t) {
                    var a = e.getLocation(),
                        n = cc.v3(o.self.node.convertToNodeSpaceAR(a));
                    if (0 != o.self.CanMove)
                        if (c.Eyeliner == o.self.SelectedTool) {
                            o.self.SelectedToolToMove.position = n;
                            var i = cc.v2(o.self.EyeLiner.getBoundingBoxToWorld().xMin + 90, 800 - o.self.EyeLiner.getBoundingBoxToWorld().y + 30);
                            o.self.DrawEyeLiner.touchMove(e, t, i)
                        } else
                            c.EyeShadow == o.self.SelectedTool ? (o.self.SelectedToolToMove.position = n,
                                i = cc.v2(o.self.EyeShadow.getBoundingBoxToWorld().xMin + 60, 800 - o.self.EyeShadow.getBoundingBoxToWorld().y),
                                o.self.DrawEyeShadow.touchMove(e, t, i)) : c.Tatto == o.self.SelectedTool ? (o.self.SelectedToolToMove.position = n,
                                    i = cc.v2(o.self.Tatto.getBoundingBoxToWorld().xMin + 70, 800 - o.self.Tatto.getBoundingBoxToWorld().y - 80),
                                    o.self.DrawTatto.touchMove(e, t, i)) : c.Eyelash_1 == o.self.SelectedTool || c.Eyelash_2 == o.self.SelectedTool || c.Eyelash_3 == o.self.SelectedTool || c.Eyelash_4 == o.self.SelectedTool ? (o.self.SelectedToolToMove.position = n,
                                        i = cc.v2(o.self.Eyelash.getBoundingBoxToWorld().xMin + 90, 800 - o.self.Eyelash.getBoundingBoxToWorld().y - 15),
                                        o.self.DrawEyelash.touchMove(e, t, i)) : c.Blush == o.self.SelectedTool ? (o.self.SelectedToolToMove.position = n,
                                            i = cc.v2(o.self.Blush.getBoundingBoxToWorld().xMin + 30, 800 - o.self.Blush.getBoundingBoxToWorld().y - 60),
                                            o.self.DrawBlush.touchMove(e, t, i)) : c.LipStick == o.self.SelectedTool &amp;&amp; (o.self.SelectedToolToMove.position = n,
                                                i = cc.v2(o.self.Lips.getBoundingBoxToWorld().xMin, 800 - o.self.Lips.getBoundingBoxToWorld().y + 85),
                                                o.self.DrawLips.touchMove(e, t, i))
                },
                t.prototype.TouchEnd = function () {
                    0 != o.self.CanMove &amp;&amp; (o.self.CanMove = !1,
                        c.Eyeliner == o.self.SelectedTool ? (o.self.HintLiner.active = !1,
                            o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2, o.self.BeganPoint, 50, 1), cc.callFunc(function () {
                                o.self.ToolPick[o.self.SelectedTool].active = !0
                            }), cc.removeSelf())),
                            o.self.DrawEyeLiner.isCompleteDrawing() &amp;&amp; !o.self.isToolDone[c.Eyeliner] &amp;&amp; (o.self.isToolDone[c.Eyeliner] = !0,
                                o.self.addParticle())) : c.EyeShadow == o.self.SelectedTool ? (o.self.HintLiner.active = !1,
                                    o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2, o.self.BeganPoint, 50, 1), cc.callFunc(function () {
                                        o.self.ToolPick[o.self.SelectedTool].active = !0
                                    }), cc.removeSelf())),
                                    o.self.DrawEyeShadow.isCompleteDrawing() &amp;&amp; !o.self.isToolDone[c.EyeShadow] &amp;&amp; (o.self.isToolDone[c.EyeShadow] = !0,
                                        o.self.addParticle())) : c.Tatto == o.self.SelectedTool ? (o.self.HintTatto.active = !1,
                                            o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2, o.self.BeganPoint, 50, 1), cc.callFunc(function () {
                                                o.self.ToolPick[o.self.SelectedTool].active = !0
                                            }), cc.removeSelf())),
                                            o.self.DrawTatto.isCompleteDrawing() &amp;&amp; !o.self.isToolDone[c.Tatto] &amp;&amp; (o.self.isToolDone[c.Tatto] = !0,
                                                o.self.addParticle())) : c.Eyelash_1 == o.self.SelectedTool || c.Eyelash_2 == o.self.SelectedTool || c.Eyelash_3 == o.self.SelectedTool || c.Eyelash_4 == o.self.SelectedTool ? (o.self.HintLiner.active = !1,
                                                    o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2, o.self.BeganPoint, 50, 1), cc.callFunc(function () {
                                                        o.self.ToolPick[o.self.SelectedTool].active = !0
                                                    }), cc.removeSelf())),
                                                    o.self.DrawEyelash.isCompleteDrawing() &amp;&amp; !o.self.isToolDone[c.Eyelash_1] &amp;&amp; (o.self.isToolDone[c.Eyelash_1] = !0,
                                                        o.self.isToolDone[c.Eyelash_2] = !0,
                                                        o.self.isToolDone[c.Eyelash_3] = !0,
                                                        o.self.addParticle())) : c.Blush == o.self.SelectedTool ? (o.self.HintBlush.active = !1,
                                                            o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2, o.self.BeganPoint, 50, 1), cc.callFunc(function () {
                                                                o.self.ToolPick[o.self.SelectedTool].active = !0
                                                            }), cc.removeSelf())),
                                                            o.self.DrawBlush.isCompleteDrawing() &amp;&amp; !o.self.isToolDone[c.Blush] &amp;&amp; (o.self.isToolDone[c.Blush] = !0,
                                                                o.self.addParticle())) : c.LipStick == o.self.SelectedTool &amp;&amp; (o.self.HintLips.active = !1,
                                                                    o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2, o.self.BeganPoint, 50, 1), cc.callFunc(function () {
                                                                        o.self.ToolPick[o.self.SelectedTool].active = !0
                                                                    }), cc.removeSelf())),
                                                                    o.self.DrawLips.isCompleteDrawing() &amp;&amp; !o.self.isToolDone[c.LipStick] &amp;&amp; (o.self.isToolDone[c.LipStick] = !0,
                                                                        o.self.addParticle())))
                },
                t.prototype.addParticle = function () {
                    var e = cc.instantiate(cc.find("Canvas/star"));
                    this.node.addChild(e),
                        e.active = !0,
                        this.PlaySound("ToolParticle")
                },
                t.prototype.ToolPickBegan = function (e, t) {
                    o.self.CanMove = !0,
                        o.self.SelectedTool = e,
                        o.self.ToolPick[o.self.SelectedTool].active = !1;
                    var a = cc.instantiate(o.self.ToolMove[o.self.SelectedTool]);
                    cc.find("Canvas/MoveTool").addChild(a),
                        a.active = !0,
                        a.getComponent(cc.Button) &amp;&amp; a.removeComponent(cc.Button),
                        o.self.SelectedToolToMove = a,
                        o.self.SelectedToolToMove.position = t,
                        o.self.SelectedToolToMove.opacity = 255,
                        o.self.BeganPoint = cc.v2(t),
                        this.PlaySound("Tap")
                },
                t.prototype.isPick = function (e, t) {
                    return 0 != e.active &amp;&amp; !!e.getBoundingBoxToWorld().contains(t)
                },
                t.prototype.HideAllPanel = function () {
                    cc.find("Canvas/SidePanel").children.forEach(function (e) {
                        e.position.x &lt;= 250 &amp;&amp; (e.stopAllActions(),
                            e.runAction(cc.moveTo(.3, cc.v2(400, 38))))
                    }),
                        this.EnableAllPanelButton()
                },
                t.prototype.EnableAllPanelButton = function () {
                    for (var e = 1; e &lt;= 5; e++)
                        cc.find("Canvas/Panel/Scroll/Panel" + e).children.forEach(function (e) {
                            e.getComponent(cc.Button) &amp;&amp; (e.getComponent(cc.Button).interactable = !0)
                        })
                },
                t.prototype.ShowPanel = function (e) {
                    this.HideAllPanel(),
                        this.EnableAllPanelButton(),
                        "Hair" == e ? (cc.find("Canvas/SidePanel/Hair").stopAllActions(),
                            cc.find("Canvas/SidePanel/Hair").runAction(cc.moveTo(.5, cc.v2(210, 38)))) : "Eyeball" == e ? (cc.find("Canvas/SidePanel/Eyeball").stopAllActions(),
                                cc.find("Canvas/SidePanel/Eyeball").runAction(cc.moveTo(.5, cc.v2(210, 38)))) : "Blush" == e ? (cc.find("Canvas/SidePanel/Blush").stopAllActions(),
                                    cc.find("Canvas/SidePanel/Blush").runAction(cc.moveTo(.5, cc.v2(210, 38)))) : "Eyeliner" == e ? (cc.find("Canvas/SidePanel/Eyeliner").stopAllActions(),
                                        cc.find("Canvas/SidePanel/Eyeliner").runAction(cc.moveTo(.5, cc.v2(210, 38)))) : "EyeShadow" == e ? (cc.find("Canvas/SidePanel/Eyeshadow").stopAllActions(),
                                            cc.find("Canvas/SidePanel/Eyeshadow").runAction(cc.moveTo(.5, cc.v2(210, 38)))) : "Eyelash" == e ? (cc.find("Canvas/SidePanel/Eyelash").stopAllActions(),
                                                cc.find("Canvas/SidePanel/Eyelash").runAction(cc.moveTo(.5, cc.v2(210, 38)))) : "LIpsStick1" == e ? (cc.find("Canvas/SidePanel/Lips").stopAllActions(),
                                                    cc.find("Canvas/SidePanel/Lips").runAction(cc.moveTo(.5, cc.v2(210, 38)))) : "Earring" == e ? (cc.find("Canvas/SidePanel/Earring").stopAllActions(),
                                                        cc.find("Canvas/SidePanel/Earring").runAction(cc.moveTo(.5, cc.v2(210, 38)))) : "Tatto" == e &amp;&amp; (cc.find("Canvas/SidePanel/Tatto").stopAllActions(),
                                                            cc.find("Canvas/SidePanel/Tatto").runAction(cc.moveTo(.5, cc.v2(210, 38))))
                },
                t.prototype.MainPanelButtonAction = function (e) {
                    this.HideAllPanel();
                    var t = e.target;
                    "Hair" == t.name ? (this.ShowPanel(t.name),
                        this.PlaySound("Put"),
                        t.getComponent(cc.Button).interactable = !1) : "Eyeball" == t.name ? (this.ShowPanel(t.name),
                            this.PlaySound("Put"),
                            t.getComponent(cc.Button).interactable = !1) : "BlushColorPanelButton" == t.name ? (this.ShowPanel(t.name),
                                this.PlaySound("Put"),
                                t.getComponent(cc.Button).interactable = !1) : "EyeLiner" == t.name ? (this.ShowPanel(t.name),
                                    this.PlaySound("Put")) : "EyeShadow" == t.name ? (this.ShowPanel(t.name),
                                        this.PlaySound("Put"),
                                        t.getComponent(cc.Button).interactable = !1) : "EyelashColorButton" == t.name ? (this.ShowPanel(t.name),
                                            this.PlaySound("Put"),
                                            t.getComponent(cc.Button).interactable = !1) : "LIpsStick1" == t.name ? (this.ShowPanel(t.name),
                                                this.PlaySound("Put"),
                                                t.getComponent(cc.Button).interactable = !1) : "Earring" == t.name &amp;&amp; (this.ShowPanel(t.name),
                                                    this.PlaySound("Put"),
                                                    t.getComponent(cc.Button).interactable = !1)
                },
                t.prototype.ScrollNext = function () {
                    this.PlaySound("ScrollNext"),
                        this.HideAllPanel();
                    var e = cc.find("Canvas/Panel/Scroll");
                    0 == e.getNumberOfRunningActions() &amp;&amp; (e.runAction(cc.moveBy(.3, cc.v2(-504, 0))),
                        this.PanelCounter++,
                        cc.find("Canvas/Panel/PreviousPanel").getComponent(cc.Button).interactable = !0,
                        4 == this.PanelCounter &amp;&amp; (cc.find("Canvas/Panel/NextPanel").getComponent(cc.Button).interactable = !1,
                            cc.find("Canvas/Next").active = !0))
                },
                t.prototype.ScrollPrevious = function () {
                    this.PlaySound("ScrollNext"),
                        this.HideAllPanel();
                    var e = cc.find("Canvas/Panel/Scroll");
                    0 == e.getNumberOfRunningActions() &amp;&amp; (e.runAction(cc.moveBy(.3, cc.v2(504, 0))),
                        this.PanelCounter--,
                        0 == this.PanelCounter &amp;&amp; (cc.find("Canvas/Panel/PreviousPanel").getComponent(cc.Button).interactable = !1),
                        cc.find("Canvas/Panel/NextPanel").getComponent(cc.Button).interactable = !0)
                },
                t.prototype.NextAction = function (e) {
                    this.PlaySound("Tap"),
                        e.target.getComponent(cc.Button).interactable = !1,
                        r.default.self.requestAds(),
                        this.node.runAction(cc.sequence(cc.delayTime(.5), cc.callFunc(function () {
                            cc.director.loadScene("DressUp")
                        })))
                },
                t.prototype.EnableAll = function (e) {
                    e.children.forEach(function (e) {
                        e.getComponent(cc.Button) &amp;&amp; (e.getComponent(cc.Button).interactable = !0)
                    })
                },
                t.prototype.setFrame = function (e, t) {
                    e &amp;&amp; e.getComponent(cc.Sprite) &amp;&amp; cc.find(t) &amp;&amp; cc.find(t).getComponent(cc.Sprite) &amp;&amp; (e.getComponent(cc.Sprite).spriteFrame = cc.find(t).getComponent(cc.Sprite).spriteFrame)
                },
                t.prototype.HairAction = function (e) {
                    var t = e.target;
                    this.EnableAll(t.parent),
                        console.log(t.name),
                        t.getComponent(cc.Button).interactable = !1,
                        this.setFrame(this.Hair, "Canvas/Loader/Hair/" + e.target.name),
                        cc.sys.localStorage.setItem("Hair", e.target.name),
                        this.addParticle(),
                        this.PlaySound("Tap"),
                        "0" != cc.sys.localStorage.getItem("Earring") &amp;&amp; ("6" == cc.sys.localStorage.getItem("Hair") ? this.EarringL.active = !1 : this.EarringL.active = !0)
                },
                t.prototype.BlushAction = function (e) {
                    var t = e.target;
                    this.EnableAll(t.parent),
                        t.getComponent(cc.Button).interactable = !1,
                        this.SelectedColorBlush = parseInt(e.target.name),
                        console.log("this.SelectedColorBlush" + this.SelectedColorBlush),
                        this.PlaySound("Tap"),
                        o.self.DrawBlush.ChangeTexture(o.self.SelectedColorBlush - 1, !1),
                        cc.sys.localStorage.setItem("Blush", o.self.SelectedColorBlush + 0),
                        this.setFrame(this.ToolPick[c.Blush], "Canvas/Loader/Tool/makeup_saihongshua_" + this.SelectedColorBlush)
                },
                t.prototype.EyelashAction = function (e) {
                    this.SelectedColorEyeLash = parseInt(e.target.name),
                        this.PlaySound("Tap"),
                        console.log("this.SelectedColorEyeLash " + this.SelectedColorEyeLash),
                        this.setFrame(this.ToolPick[c.Eyelash_1], "Canvas/Loader/Tool/makeup_jiemaoshua01_" + this.SelectedColorEyeLash),
                        this.setFrame(this.ToolPick[c.Eyelash_2], "Canvas/Loader/Tool/makeup_jiemaoshua02_" + this.SelectedColorEyeLash),
                        this.setFrame(this.ToolPick[c.Eyelash_3], "Canvas/Loader/Tool/makeup_jiemaoshua03_" + this.SelectedColorEyeLash)
                },
                t.prototype.EyelinerAction = function (e) {
                    this.SelectedColorEyeLiner = parseInt(e.target.name),
                        this.PlaySound("Tap"),
                        this.setFrame(this.ToolPick[c.Eyeliner], "Canvas/Loader/Tool/makeup_yanxianbi_" + this.SelectedColorEyeLiner)
                },
                t.prototype.EyeShadowAction = function (e) {
                    var t = parseInt(e.target.name) - 1;
                    o.self.DrawEyeShadow.ChangeTexture(t, !1),
                        this.PlaySound("Tap"),
                        this.setFrame(this.ToolPick[c.EyeShadow], "Canvas/Loader/Tool/makeup_yanyingshua" + (t + 1))
                },
                t.prototype.LipStickAction = function (e) {
                    this.SelectedColorLipstick = parseInt(e.target.name),
                        this.PlaySound("Tap"),
                        this.ToolPick[c.LipStick].runAction(cc.repeat(cc.sequence(cc.jumpBy(.3, cc.Vec2.ZERO, 50, 1), cc.delayTime(1)), 2)),
                        this.setFrame(this.ToolPick[c.LipStick], "Canvas/Loader/Tool/makeup_kouhong_" + this.SelectedColorLipstick)
                },
                t.prototype.PupilAction = function (e) {
                    var t = e.target;
                    this.EnableAll(t.parent),
                        this.PlaySound("Tap"),
                        t.getComponent(cc.Button).interactable = !1,
                        this.setFrame(this.EyeballL, "Canvas/Loader/Eyeball/makeup_eye0" + e.target.name),
                        this.setFrame(this.EyeballR, "Canvas/Loader/Eyeball/makeup_eye0" + e.target.name),
                        cc.sys.localStorage.setItem("Pupils", e.target.name),
                        this.addParticle()
                },
                t.prototype.EarRingAction = function (e) {
                    var t = e.target;
                    this.EnableAll(t.parent),
                        this.PlaySound("Tap"),
                        this.EarringR.active = !0,
                        this.EarringL.active = !0,
                        t.getComponent(cc.Button).interactable = !1,
                        this.setFrame(this.EarringL, "Canvas/Loader/Earring/makeup_monster_erhuan0" + e.target.name),
                        this.setFrame(this.EarringR, "Canvas/Loader/Earring/makeup_monster_erhuan0" + e.target.name),
                        "6" == cc.sys.localStorage.getItem("Hair") ? this.EarringL.active = !1 : this.EarringL.active = !0,
                        cc.sys.localStorage.setItem("Earring", e.target.name),
                        this.addParticle()
                },
                t.prototype.TattoAction = function (e) {
                    var t = e.target;
                    this.EnableAll(t.parent),
                        this.PlaySound("Tap"),
                        t.getComponent(cc.Button).interactable = !1;
                    var o = parseInt(e.target.name);
                    this.DrawTatto.ChangeTexture(o - 1, !1),
                        cc.sys.localStorage.setItem("Tatto", o - 1)
                },
                t.prototype.addEvent = function () {
                    cc.find("Canvas/SidePanel/Tatto/view/content").children.forEach(function (e) {
                        e.addComponent(cc.Button);
                        var t = new cc.Component.EventHandler;
                        t.target = cc.find("Canvas"),
                            t.component = "MakeUp",
                            t.handler = "TattoAction",
                            t.customEventData = "";
                        var o = e.getComponent(cc.Button);
                        o.clickEvents.push(t),
                            o.transition = cc.Button.Transition.SCALE
                    }),
                        cc.find("Canvas/SidePanel/Earring/view/content").children.forEach(function (e) {
                            e.addComponent(cc.Button);
                            var t = new cc.Component.EventHandler;
                            t.target = cc.find("Canvas"),
                                t.component = "MakeUp",
                                t.handler = "EarRingAction",
                                t.customEventData = "";
                            var o = e.getComponent(cc.Button);
                            o.clickEvents.push(t),
                                o.transition = cc.Button.Transition.SCALE
                        }),
                        cc.find("Canvas/SidePanel/Eyelash/view/content").children.forEach(function (e) {
                            e.addComponent(cc.Button);
                            var t = new cc.Component.EventHandler;
                            t.target = cc.find("Canvas"),
                                t.component = "MakeUp",
                                t.handler = "EyelashAction",
                                t.customEventData = "";
                            var o = e.getComponent(cc.Button);
                            o.clickEvents.push(t),
                                o.transition = cc.Button.Transition.SCALE
                        }),
                        cc.find("Canvas/SidePanel/Eyeball/view/content").children.forEach(function (e) {
                            e.addComponent(cc.Button);
                            var t = new cc.Component.EventHandler;
                            t.target = cc.find("Canvas"),
                                t.component = "MakeUp",
                                t.handler = "PupilAction",
                                t.customEventData = "";
                            var o = e.getComponent(cc.Button);
                            o.clickEvents.push(t),
                                o.transition = cc.Button.Transition.SCALE
                        }),
                        cc.find("Canvas/SidePanel/Lips/view/content").children.forEach(function (e) {
                            e.addComponent(cc.Button);
                            var t = new cc.Component.EventHandler;
                            t.target = cc.find("Canvas"),
                                t.component = "MakeUp",
                                t.handler = "LipStickAction",
                                t.customEventData = "";
                            var o = e.getComponent(cc.Button);
                            o.clickEvents.push(t),
                                o.transition = cc.Button.Transition.SCALE
                        }),
                        cc.find("Canvas/SidePanel/Eyeshadow/view/content").children.forEach(function (e) {
                            e.addComponent(cc.Button);
                            var t = new cc.Component.EventHandler;
                            t.target = cc.find("Canvas"),
                                t.component = "MakeUp",
                                t.handler = "EyeShadowAction",
                                t.customEventData = "";
                            var o = e.getComponent(cc.Button);
                            o.clickEvents.push(t),
                                o.transition = cc.Button.Transition.SCALE
                        }),
                        cc.find("Canvas/SidePanel/Eyeliner/view/content").children.forEach(function (e) {
                            e.addComponent(cc.Button);
                            var t = new cc.Component.EventHandler;
                            t.target = cc.find("Canvas"),
                                t.component = "MakeUp",
                                t.handler = "EyelinerAction",
                                t.customEventData = "";
                            var o = e.getComponent(cc.Button);
                            o.clickEvents.push(t),
                                o.transition = cc.Button.Transition.SCALE
                        }),
                        cc.find("Canvas/SidePanel/Hair/view/content").children.forEach(function (e) {
                            e.addComponent(cc.Button);
                            var t = new cc.Component.EventHandler;
                            t.target = cc.find("Canvas"),
                                t.component = "MakeUp",
                                t.handler = "HairAction",
                                t.customEventData = "";
                            var o = e.getComponent(cc.Button);
                            o.clickEvents.push(t),
                                o.transition = cc.Button.Transition.SCALE
                        }),
                        cc.find("Canvas/SidePanel/Blush/view/content").children.forEach(function (e) {
                            e.addComponent(cc.Button);
                            var t = new cc.Component.EventHandler;
                            t.target = cc.find("Canvas"),
                                t.component = "MakeUp",
                                t.handler = "BlushAction",
                                t.customEventData = "";
                            var o = e.getComponent(cc.Button);
                            o.clickEvents.push(t),
                                o.transition = cc.Button.Transition.SCALE
                        })
                },
                t.prototype.PlaySound = function (e) {
                    cc.find("Canvas/SoundNode/" + e) &amp;&amp; cc.find("Canvas/SoundNode/" + e).getComponent(cc.AudioSource).play()
                },
                t.prototype.StopSound = function (e) {
                    cc.find("Canvas/SoundNode/" + e) &amp;&amp; cc.find("Canvas/SoundNode/" + e).getComponent(cc.AudioSource).stop()
                },
                t.prototype.isPlaySound = function (e) {
                    return !!cc.find("Canvas/SoundNode/" + e) &amp;&amp; cc.find("Canvas/SoundNode/" + e).getComponent(cc.AudioSource).isPlaying
                },
                t.self = null,
                o = i([h], t)
        }(cc.Component);
        o.default = d,
            cc._RF.pop()
    }, {
        "./Drawing": "Drawing",
        "./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)
            }
        ),
            i = this &amp;&amp; this.__decorate || function (e, t, o, a) {
                var n, i = arguments.length,
                    c = i &lt; 3 ? t : null === a ? a = Object.getOwnPropertyDescriptor(t, o) : a;
                if ("object" == typeof Reflect &amp;&amp; "function" == typeof Reflect.decorate)
                    c = Reflect.decorate(e, t, o, a);
                else
                    for (var s = e.length - 1; s &gt;= 0; s--)
                        (n = e[s]) &amp;&amp; (c = (i &lt; 3 ? n(c) : i &gt; 3 ? n(t, o, c) : n(t, o)) || c);
                return i &gt; 3 &amp;&amp; c &amp;&amp; Object.defineProperty(t, o, c),
                    c
            };
        Object.defineProperty(o, "__esModule", {
            value: !0
        });
        var c = cc._decorator,
            s = c.ccclass,
            r = (c.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 () {
                                    "promoBack" == e.node.name ? 255 == e.node.parent.opacity &amp;&amp; window.adsGameCon.moreGame() : 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.newads = true;
                            o.self.isAdRunnning = !1,
                                0 == o.self.isSwitchTab &amp;&amp; o.self.gameResume()
                            window.adsGameCon.showAd({
                                beforeShowAd: () =&gt; {
                            
                                },
                                afterShowAd: () =&gt; {
                                  
                                }
                            });
                        },
                        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,
                                o.self.requestAds(),
                                o.self.node.runAction(cc.sequence(cc.delayTime(.6), cc.callFunc(function () {
                                    cc.director.loadScene("LevelScene")
                                })))
                        },
                        t.self = null,
                        o = i([s], t)
                }(cc.Component));
        o.default = r,
            cc._RF.pop()
    }, {}],
    SpaView: [function (e, t, o) {
        "use strict";
        cc._RF.push(t, "3a34797y8RN6qiEpX0BMaKf", "SpaView");
        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)
            }
        ),
            i = this &amp;&amp; this.__decorate || function (e, t, o, a) {
                var n, i = arguments.length,
                    c = i &lt; 3 ? t : null === a ? a = Object.getOwnPropertyDescriptor(t, o) : a;
                if ("object" == typeof Reflect &amp;&amp; "function" == typeof Reflect.decorate)
                    c = Reflect.decorate(e, t, o, a);
                else
                    for (var s = e.length - 1; s &gt;= 0; s--)
                        (n = e[s]) &amp;&amp; (c = (i &lt; 3 ? n(c) : i &gt; 3 ? n(t, o, c) : n(t, o)) || c);
                return i &gt; 3 &amp;&amp; c &amp;&amp; Object.defineProperty(t, o, c),
                    c
            };
        Object.defineProperty(o, "__esModule", {
            value: !0
        });
        var c, s = e("./Drawing"),
            r = e("./Promotion"),
            l = cc._decorator,
            h = l.ccclass;
        l.property,
            function (e) {
                e[e.SHAMPOO = 0] = "SHAMPOO",
                    e[e.SHOWER = 1] = "SHOWER",
                    e[e.CONDITIONER = 2] = "CONDITIONER",
                    e[e.SHOWER2 = 3] = "SHOWER2",
                    e[e.DRYER = 4] = "DRYER",
                    e[e.HAIRBAND = 5] = "HAIRBAND",
                    e[e.FASHWASH = 6] = "FASHWASH",
                    e[e.SPONGE = 7] = "SPONGE",
                    e[e.TOWEL = 8] = "TOWEL",
                    e[e.STEAM = 9] = "STEAM",
                    e[e.PIMPLE = 10] = "PIMPLE",
                    e[e.PIMPLE_CREAM = 11] = "PIMPLE_CREAM",
                    e[e.FACEPACK = 12] = "FACEPACK",
                    e[e.LEMON1 = 13] = "LEMON1",
                    e[e.LEMON2 = 14] = "LEMON2",
                    e[e.SHOWER3 = 15] = "SHOWER3",
                    e[e.DARKCIRCLE = 16] = "DARKCIRCLE",
                    e[e.PLUCKER = 17] = "PLUCKER",
                    e[e.SPARKLE = 18] = "SPARKLE",
                    e[e.SPARKLE2 = 19] = "SPARKLE2"
            }(c || (c = {}));
        var d = function (e) {
            function t() {
                var t = null !== e &amp;&amp; e.apply(this, arguments) || this;
                return t.PanelCounter = 0,
                    t.ToolPick = [],
                    t.ToolMove = [],
                    t.SelectedTool = -1,
                    t.CanMove = !1,
                    t.SelectedToolToMove = null,
                    t.BeganPoint = null,
                    t.isToolDone = [],
                    t.DrawSoap = null,
                    t.FaceDirt = null,
                    t.HairConditioner = null,
                    t.EB = null,
                    t
            }
            var o;
            return n(t, e),
                o = t,
                t.prototype.onLoad = function () {
                    o.self = this;
                    for (var e = 0; e &lt;= c.SPARKLE2; e++)
                        this.isToolDone[e] = !1;
                    this.EB = cc.find("Canvas/Character/EB"),
                        cc.director.preloadScene("MakeUp"),
                        this.ToolPick[c.SHAMPOO] = cc.find("Canvas/Panel/Scroll/Panel1/2"),
                        this.ToolPick[c.SHOWER] = cc.find("Canvas/Panel/Scroll/Panel1/Shower"),
                        this.ToolPick[c.CONDITIONER] = cc.find("Canvas/Panel/Scroll/Panel2/4"),
                        this.ToolPick[c.SHOWER2] = cc.find("Canvas/Panel/Scroll/Panel2/Shower"),
                        this.ToolPick[c.DRYER] = cc.find("Canvas/Panel/Scroll/Panel3/7a"),
                        this.ToolPick[c.HAIRBAND] = cc.find("Canvas/Panel/Scroll/Panel3/8a"),
                        this.ToolPick[c.FASHWASH] = cc.find("Canvas/Panel/Scroll/Panel4/9a"),
                        this.ToolPick[c.SPONGE] = cc.find("Canvas/Panel/Scroll/Panel4/10"),
                        this.ToolPick[c.TOWEL] = cc.find("Canvas/Panel/Scroll/Panel4/11"),
                        this.ToolPick[c.STEAM] = cc.find("Canvas/Panel/Scroll/Panel5/11"),
                        this.ToolPick[c.PIMPLE] = cc.find("Canvas/Panel/Scroll/Panel5/pimple"),
                        this.ToolPick[c.PIMPLE_CREAM] = cc.find("Canvas/Panel/Scroll/Panel5/14a/spa_daoju_mianqian"),
                        this.ToolPick[c.FACEPACK] = cc.find("Canvas/Panel/Scroll/Panel6/15/16a"),
                        this.ToolPick[c.LEMON1] = cc.find("Canvas/Panel/Scroll/Panel6/11a/12b1"),
                        this.ToolPick[c.LEMON2] = cc.find("Canvas/Panel/Scroll/Panel6/11a/12b2"),
                        this.ToolPick[c.SHOWER3] = cc.find("Canvas/Panel/Scroll/Panel6/Shower"),
                        this.ToolPick[c.DARKCIRCLE] = cc.find("Canvas/Panel/Scroll/Panel7/17"),
                        this.ToolPick[c.PLUCKER] = cc.find("Canvas/Panel/Scroll/Panel7/plucker"),
                        this.ToolPick[c.SPARKLE] = cc.find("Canvas/Panel/Scroll/Panel8/11a/12b1"),
                        this.ToolPick[c.SPARKLE2] = cc.find("Canvas/Panel/Scroll/Panel8/17/18a"),
                        this.ToolMove[c.SHAMPOO] = cc.find("Canvas/Panel/Scroll/Panel1/2/3a"),
                        this.ToolMove[c.SHOWER] = cc.find("Canvas/Loader/Shower"),
                        this.ToolMove[c.CONDITIONER] = cc.find("Canvas/Panel/Scroll/Panel2/4/5"),
                        this.ToolMove[c.SHOWER2] = cc.find("Canvas/Loader/Shower"),
                        this.ToolMove[c.DRYER] = cc.find("Canvas/Loader/Dryer"),
                        this.ToolMove[c.HAIRBAND] = cc.find("Canvas/Panel/Scroll/Panel3/8a"),
                        this.ToolMove[c.FASHWASH] = cc.find("Canvas/Panel/Scroll/Panel4/9a/5"),
                        this.ToolMove[c.SPONGE] = cc.find("Canvas/Panel/Scroll/Panel4/10/spa_daoju_haimian_up"),
                        this.ToolMove[c.TOWEL] = cc.find("Canvas/Panel/Scroll/Panel4/11/Towel"),
                        this.ToolMove[c.STEAM] = cc.find("Canvas/Loader/Steamer"),
                        this.ToolMove[c.PIMPLE] = cc.find("Canvas/Loader/PimpleRemover"),
                        this.ToolMove[c.PIMPLE_CREAM] = cc.find("Canvas/Loader/PimpleDirt"),
                        this.ToolMove[c.FACEPACK] = cc.find("Canvas/Panel/Scroll/Panel6/15/16a"),
                        this.ToolMove[c.LEMON1] = cc.find("Canvas/Panel/Scroll/Panel6/11a/12b1/Move"),
                        this.ToolMove[c.LEMON2] = cc.find("Canvas/Panel/Scroll/Panel6/11a/12b2/Move"),
                        this.ToolMove[c.SHOWER3] = cc.find("Canvas/Loader/Shower"),
                        this.ToolMove[c.DARKCIRCLE] = cc.find("Canvas/Panel/Scroll/Panel7/17/18a"),
                        this.ToolMove[c.PLUCKER] = cc.find("Canvas/Loader/Plucker"),
                        this.ToolMove[c.SPARKLE] = cc.find("Canvas/Loader/Sparkle1"),
                        this.ToolMove[c.SPARKLE2] = cc.find("Canvas/Loader/Sparkle2"),
                        this.DrawSoap = new s.default,
                        this.DrawSoap.isDrawOnInit = !1,
                        this.DrawSoap.initDrawNode(cc.find("Canvas/Character/SpaBubble")),
                        this.DrawSoap.setWidthAndHeight(238, 305),
                        this.DrawSoap.LoadDrawingTextureUsingName(cc.find("Canvas/Loader/SpaBubble").getComponent(cc.Sprite).spriteFrame, 0),
                        this.DrawSoap.LoadBrushTexture(cc.find("Canvas/Loader/dot-medium").getComponent(cc.Sprite).spriteFrame),
                        this.DrawSoap.LoadEraserBrushTexture(cc.find("Canvas/Loader/dot-medium").getComponent(cc.Sprite).spriteFrame),
                        this.DrawSoap.setBrushSize(40),
                        this.DrawSoap.isSwitchData = !1,
                        this.FaceDirt = new s.default,
                        this.FaceDirt.isDrawOnInit = !0,
                        this.FaceDirt.initDrawNode(cc.find("Canvas/Character/spa-dirty")),
                        this.FaceDirt.setWidthAndHeight(268, 356),
                        this.FaceDirt.LoadDrawingTextureUsingName(cc.find("Canvas/Loader/spa-dirty").getComponent(cc.Sprite).spriteFrame, 0),
                        this.FaceDirt.LoadBrushTexture(cc.find("Canvas/Loader/dot-medium").getComponent(cc.Sprite).spriteFrame),
                        this.FaceDirt.LoadEraserBrushTexture(cc.find("Canvas/Loader/dot-medium").getComponent(cc.Sprite).spriteFrame),
                        this.FaceDirt.setBrushSize(100),
                        this.FaceDirt.isSwitchData = !1,
                        this.HairConditioner = new s.default,
                        this.HairConditioner.isDrawOnInit = !1,
                        this.HairConditioner.initDrawNode(cc.find("Canvas/Character/HairLiq")),
                        this.HairConditioner.setWidthAndHeight(366, 555),
                        this.HairConditioner.LoadDrawingTextureUsingName(cc.find("Canvas/Loader/HairLiq").getComponent(cc.Sprite).spriteFrame, 0),
                        this.HairConditioner.LoadBrushTexture(cc.find("Canvas/Loader/dot-medium").getComponent(cc.Sprite).spriteFrame),
                        this.HairConditioner.LoadEraserBrushTexture(cc.find("Canvas/Loader/dot-medium").getComponent(cc.Sprite).spriteFrame),
                        this.HairConditioner.setBrushSize(70),
                        this.HairConditioner.isSwitchData = !1,
                        this.setFrame(cc.find("Canvas/Character/Body"), "Canvas/Loader/model-" + cc.sys.localStorage.getItem("SelectedCharacter")),
                        this.setFrame(this.EB, "Canvas/Loader/EB" + cc.sys.localStorage.getItem("SelectedCharacter"))
                },
                t.prototype.setFrame = function (e, t) {
                    e &amp;&amp; e.getComponent(cc.Sprite) &amp;&amp; cc.find(t) &amp;&amp; cc.find(t).getComponent(cc.Sprite) &amp;&amp; (e.getComponent(cc.Sprite).spriteFrame = cc.find(t).getComponent(cc.Sprite).spriteFrame)
                },
                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_END, this.TouchEnd),
                        this.node.on(cc.Node.EventType.TOUCH_CANCEL, this.TouchEnd);
                    var e = 0;
                    cc.find("Canvas/Character/HairBubble").children.forEach(function (t) {
                        t.name = e + "",
                            e++
                    }),
                        e = 0,
                        cc.find("Canvas/Character/FaceBubble").children.forEach(function (t) {
                            t.name = e + "",
                                e++
                        }),
                        cc.find("Canvas/Character/WaterDrop").children.forEach(function (e) {
                            e.runAction(cc.repeatForever(cc.sequence(cc.place(cc.v2(e.position)), cc.moveBy(1.5, cc.v2(0, -30)), cc.hide(), cc.delayTime(2 + 2 * Math.random()), cc.show())))
                        }),
                        cc.find("Canvas/Character/WaterDropFace").children.forEach(function (e) {
                            e.runAction(cc.repeatForever(cc.sequence(cc.place(cc.v2(e.position)), cc.moveBy(1.5, cc.v2(0, -30)), cc.hide(), cc.delayTime(2 + 2 * Math.random()), cc.show())))
                        })
                },
                t.prototype.TouchBegan = function (e) {
                    var t = e.getLocation(),
                        a = cc.v3(o.self.node.convertToNodeSpaceAR(t));
                    o.self.isPick(o.self.ToolPick[c.SHAMPOO], t) ? (o.self.ToolPickBegan(c.SHAMPOO, a),
                        o.self.ToolPick[c.SHAMPOO].active = !0,
                        o.self.EB.active = !0) : o.self.isPick(o.self.ToolPick[c.SHOWER], t) ? (o.self.ToolPickBegan(c.SHOWER, a),
                            o.self.EB.active = !0,
                            cc.find("Canvas/Character/HairHint").active = !0) : o.self.isPick(o.self.ToolPick[c.CONDITIONER], t) ? (o.self.ToolPickBegan(c.CONDITIONER, a),
                                o.self.ToolPick[c.CONDITIONER].active = !0,
                                o.self.EB.active = !0,
                                o.self.HairConditioner.setEraserOn(!1),
                                o.self.HairConditioner.setBrushSize(70)) : o.self.isPick(o.self.ToolPick[c.SHOWER2], t) ? (o.self.ToolPickBegan(c.SHOWER2, a),
                                    cc.find("Canvas/Character/HairHint").active = !0,
                                    o.self.EB.active = !0,
                                    o.self.HairConditioner.setEraserOn(!0),
                                    o.self.HairConditioner.setBrushSize(120)) : o.self.isPick(o.self.ToolPick[c.DRYER], t) ? (o.self.ToolPickBegan(c.DRYER, a),
                                        o.self.EB.active = !0) : o.self.isPick(o.self.ToolPick[c.HAIRBAND], t) ? o.self.ToolPickBegan(c.HAIRBAND, a) : o.self.isPick(o.self.ToolPick[c.FASHWASH], t) ? (o.self.ToolPickBegan(c.FASHWASH, a),
                                            o.self.ToolPick[c.FASHWASH].active = !0,
                                            o.self.EB.active = !0) : o.self.isPick(o.self.ToolPick[c.SPONGE], t) ? (o.self.ToolPickBegan(c.SPONGE, a),
                                                o.self.FaceDirt.setEraserOn(!0),
                                                o.self.FaceDirt.setBrushSize(70),
                                                o.self.EB.active = !0) : o.self.isPick(o.self.ToolPick[c.TOWEL], t) ? (o.self.ToolPickBegan(c.TOWEL, a),
                                                    o.self.EB.active = !0) : o.self.isPick(o.self.ToolPick[c.STEAM], t) ? (o.self.ToolPickBegan(c.STEAM, a),
                                                        o.self.EB.active = !0) : o.self.isPick(o.self.ToolPick[c.PIMPLE], t) ? o.self.ToolPickBegan(c.PIMPLE, a) : o.self.isPick(o.self.ToolPick[c.PIMPLE_CREAM], t) ? o.self.ToolPickBegan(c.PIMPLE_CREAM, a) : o.self.isPick(o.self.ToolPick[c.FACEPACK], t) ? (o.self.ToolPickBegan(c.FACEPACK, a),
                                                            o.self.DrawSoap.setBrushSize(40),
                                                            o.self.DrawSoap.setEraserOn(!1),
                                                            o.self.HidePanel(),
                                                            o.self.EB.active = !0) : o.self.isPick(o.self.ToolPick[c.LEMON1], t) ? (o.self.ToolPickBegan(c.LEMON1, a),
                                                                o.self.ShowPanel()) : o.self.isPick(o.self.ToolPick[c.LEMON2], t) ? (o.self.ToolPickBegan(c.LEMON2, a),
                                                                    o.self.ShowPanel()) : o.self.isPick(o.self.ToolPick[c.SHOWER3], t) ? (o.self.ToolPickBegan(c.SHOWER3, a),
                                                                        o.self.DrawSoap.setBrushSize(60),
                                                                        o.self.DrawSoap.setEraserOn(!0),
                                                                        o.self.HidePanel(),
                                                                        o.self.EB.active = !0) : o.self.isPick(o.self.ToolPick[c.DARKCIRCLE], t) ? (o.self.ToolPickBegan(c.DARKCIRCLE, a),
                                                                            o.self.ToolPick[c.DARKCIRCLE].active = !0,
                                                                            o.self.EB.active = !0) : o.self.isPick(o.self.ToolPick[c.PLUCKER], t) ? (o.self.ToolPickBegan(c.PLUCKER, a),
                                                                                o.self.EB.active = !0) : o.self.isPick(o.self.ToolPick[c.SPARKLE], t) ? (o.self.ToolPickBegan(c.SPARKLE, a),
                                                                                    o.self.EB.active = !0) : o.self.isPick(o.self.ToolPick[c.SPARKLE2], t) &amp;&amp; (o.self.ToolPickBegan(c.SPARKLE2, a),
                                                                                        o.self.EB.active = !0)
                },
                t.prototype.TouchMove = function (e, t) {
                    var a = e.getLocation(),
                        n = cc.v3(o.self.node.convertToNodeSpaceAR(a));
                    if (0 != o.self.CanMove)
                        if (c.SHAMPOO == o.self.SelectedTool)
                            o.self.SelectedToolToMove.position = n,
                                cc.find("Canvas/Character/HairBubble").children.forEach(function (e) {
                                    if (255 == e.opacity &amp;&amp; e.getBoundingBoxToWorld().contains(a)) {
                                        e.opacity = 254;
                                        var t = cc.instantiate(e);
                                        cc.find("Canvas/Character/UserHairBubble").addChild(t),
                                            t.scale = 0,
                                            t.runAction(cc.scaleTo(.2, e.scale)),
                                            0 == o.self.isPlaySound("Bubble") &amp;&amp; o.self.PlaySound("Bubble")
                                    }
                                });
                        else if (c.SHOWER == o.self.SelectedTool)
                            o.self.SelectedToolToMove.position = n,
                                0 == o.self.isPlaySound("Shower") &amp;&amp; o.self.PlaySound("Shower"),
                                cc.find("Canvas/Character/UserHairBubble").children.forEach(function (e) {
                                    254 == e.opacity &amp;&amp; e.getBoundingBoxToWorld().intersects(o.self.SelectedToolToMove.getChildByName("Intersect").getBoundingBoxToWorld()) &amp;&amp; (e.opacity = 253,
                                        cc.find("Canvas/Character/HairBubble").getChildByName(e.name) &amp;&amp; (cc.find("Canvas/Character/HairBubble").getChildByName(e.name).opacity = 255),
                                        e.runAction(cc.sequence(cc.moveBy(.3, cc.v2(0, -50)), cc.removeSelf())))
                                });
                        else if (c.CONDITIONER == o.self.SelectedTool) {
                            o.self.SelectedToolToMove.position = n;
                            var i = cc.v2(o.self.HairConditioner.DrawNode.getBoundingBoxToWorld().xMin, 800 - o.self.HairConditioner.DrawNode.getBoundingBoxToWorld().yMax + 150);
                            o.self.HairConditioner.touchMove(e, t, i),
                                0 == o.self.isPlaySound("HairScrub") &amp;&amp; o.self.PlaySound("HairScrub")
                        } else if (c.SHOWER2 == o.self.SelectedTool)
                            0 == o.self.isPlaySound("Shower") &amp;&amp; o.self.PlaySound("Shower"),
                                o.self.SelectedToolToMove.position = n,
                                i = cc.v2(o.self.HairConditioner.DrawNode.getBoundingBoxToWorld().xMin + 150, 800 - o.self.HairConditioner.DrawNode.getBoundingBoxToWorld().yMax + 150),
                                o.self.HairConditioner.touchMove(e, t, i);
                        else if (c.DRYER == o.self.SelectedTool)
                            o.self.SelectedToolToMove.position = n,
                                0 == o.self.isPlaySound("Dryer") &amp;&amp; o.self.PlaySound("Dryer"),
                                cc.find("Canvas/Character/WaterDrop").children.forEach(function (e) {
                                    255 == e.opacity &amp;&amp; e.getBoundingBoxToWorld().intersects(o.self.SelectedToolToMove.getChildByName("Intersect").getBoundingBoxToWorld()) &amp;&amp; (e.opacity = 254,
                                        e.getComponent(sp.Skeleton).setAnimation(0, "animation", !1),
                                        e.runAction(cc.sequence(cc.delayTime(1.5), cc.fadeTo(0, 0))))
                                });
                        else if (c.HAIRBAND == o.self.SelectedTool)
                            o.self.SelectedToolToMove.position = n,
                                n.y &gt; 50 &amp;&amp; (o.self.CanMove = !1,
                                    o.self.SelectedToolToMove.removeFromParent(),
                                    o.self.setFrame(cc.find("Canvas/Character/Hair"), "Canvas/Loader/makeup_toufa03"),
                                    o.self.EB.active = !1,
                                    o.self.ToolPick[c.HAIRBAND].active = !0,
                                    0 == o.self.isToolDone[c.HAIRBAND] &amp;&amp; (o.self.isToolDone[c.HAIRBAND] = !0,
                                        o.self.addParticle(),
                                        cc.find("Canvas/Character/WaterDrop").children.forEach(function (e) {
                                            e.opacity = 0
                                        })));
                        else if (c.FASHWASH == o.self.SelectedTool)
                            o.self.SelectedToolToMove.position = n,
                                cc.find("Canvas/Character/FaceBubble").children.forEach(function (e) {
                                    if (255 == e.opacity &amp;&amp; e.getBoundingBoxToWorld().contains(a)) {
                                        e.opacity = 254;
                                        var t = cc.instantiate(e);
                                        cc.find("Canvas/Character/UserFaceBubble").addChild(t),
                                            t.scale = 0,
                                            t.runAction(cc.scaleTo(.2, e.scale)),
                                            0 == o.self.isPlaySound("Bubble") &amp;&amp; o.self.PlaySound("Bubble")
                                    }
                                });
                        else if (c.SPONGE == o.self.SelectedTool)
                            o.self.SelectedToolToMove.position = n,
                                i = cc.v2(o.self.FaceDirt.DrawNode.getBoundingBoxToWorld().xMin, 800 - o.self.FaceDirt.DrawNode.getBoundingBoxToWorld().yMax + 150),
                                o.self.FaceDirt.touchMove(e, t, i),
                                cc.find("Canvas/Character/UserFaceBubble").children.forEach(function (e) {
                                    e.getBoundingBoxToWorld().intersects(o.self.SelectedToolToMove.getChildByName("Intersect").getBoundingBoxToWorld()) &amp;&amp; (e.opacity &lt; 100 ? (cc.find("Canvas/Character/FaceBubble").getChildByName(e.name) &amp;&amp; (cc.find("Canvas/Character/FaceBubble").getChildByName(e.name).opacity = 255),
                                        e.runAction(cc.sequence(cc.spawn(cc.moveBy(.3, cc.v2(0, -10)), cc.scaleTo(.3, 0)), cc.removeSelf())),
                                        0 == o.self.isPlaySound("Towel") &amp;&amp; o.self.PlaySound("Towel")) : e.opacity -= 5)
                                }),
                                cc.find("Canvas/Character/WaterDropFace").children.forEach(function (e) {
                                    e.getBoundingBoxToWorld().intersects(o.self.SelectedToolToMove.getChildByName("Intersect").getBoundingBoxToWorld()) &amp;&amp; (e.opacity = 255)
                                });
                        else if (c.TOWEL == o.self.SelectedTool)
                            o.self.SelectedToolToMove.position = n,
                                cc.find("Canvas/Character/WaterDropFace").children.forEach(function (e) {
                                    e.getBoundingBoxToWorld().intersects(o.self.SelectedToolToMove.getChildByName("Intersect").getBoundingBoxToWorld()) &amp;&amp; (e.opacity -= 5,
                                        0 == o.self.isPlaySound("Towel") &amp;&amp; o.self.PlaySound("Towel"),
                                        e.opacity &lt; 100 &amp;&amp; (e.opacity = 0))
                                });
                        else if (c.STEAM == o.self.SelectedTool)
                            o.self.SelectedToolToMove.position = n,
                                (h = cc.find("Canvas/Loader/dot-small")).opacity &gt; 0 &amp;&amp; (h.opacity -= 1),
                                0 == o.self.isPlaySound("Steamer") &amp;&amp; o.self.PlaySound("Steamer");
                        else if (c.PIMPLE == o.self.SelectedTool)
                            o.self.SelectedToolToMove.position = n,
                                cc.find("Canvas/Character/Pimple").children.forEach(function (e) {
                                    255 == e.opacity &amp;&amp; e.getBoundingBoxToWorld().intersects(o.self.SelectedToolToMove.getChildByName("Intersect").getBoundingBoxToWorld()) &amp;&amp; (o.self.setFrame(e, "Canvas/Loader/monster_doudou02"),
                                        e.opacity = 254,
                                        o.self.PlaySound("Plucker"))
                                });
                        else if (c.PIMPLE_CREAM == o.self.SelectedTool)
                            o.self.SelectedToolToMove.position = n,
                                cc.find("Canvas/Character/Pimple").children.forEach(function (e) {
                                    255 != e.opacity &amp;&amp; e.getBoundingBoxToWorld().intersects(o.self.SelectedToolToMove.getChildByName("Intersect").getBoundingBoxToWorld()) &amp;&amp; (e.opacity &gt;= 5 &amp;&amp; (e.opacity -= 5),
                                        e.opacity &lt; 50 &amp;&amp; (e.opacity = 0))
                                });
                        else if (c.FACEPACK == o.self.SelectedTool)
                            o.self.SelectedToolToMove.position = n,
                                i = cc.v2(o.self.DrawSoap.DrawNode.getBoundingBoxToWorld().xMin + 50, 800 - o.self.DrawSoap.DrawNode.getBoundingBoxToWorld().y - 165),
                                o.self.DrawSoap.touchMove(e, t, i),
                                0 == o.self.isPlaySound("CreamRub") &amp;&amp; o.self.PlaySound("CreamRub");
                        else if (c.LEMON1 == o.self.SelectedTool)
                            o.self.SelectedToolToMove.position = n,
                                cc.find("Canvas/Character/Lemon/L").getBoundingBoxToWorld().contains(a) &amp;&amp; 0 == cc.find("Canvas/Character/Lemon/L").active ? (o.self.CanMove = !1,
                                    o.self.PlaySound("Put"),
                                    cc.find("Canvas/Character/Lemon/L").getComponent(cc.Sprite).spriteFrame = o.self.SelectedToolToMove.getComponent(cc.Sprite).spriteFrame,
                                    o.self.SelectedToolToMove.removeFromParent(),
                                    cc.find("Canvas/Character/Lemon/L").active = !0) : cc.find("Canvas/Character/Lemon/R").getBoundingBoxToWorld().contains(a) &amp;&amp; 0 == cc.find("Canvas/Character/Lemon/R").active &amp;&amp; (o.self.CanMove = !1,
                                        o.self.PlaySound("Put"),
                                        cc.find("Canvas/Character/Lemon/R").getComponent(cc.Sprite).spriteFrame = o.self.SelectedToolToMove.getComponent(cc.Sprite).spriteFrame,
                                        o.self.SelectedToolToMove.removeFromParent(),
                                        cc.find("Canvas/Character/Lemon/R").active = !0);
                        else if (c.LEMON2 == o.self.SelectedTool)
                            o.self.SelectedToolToMove.position = n,
                                cc.find("Canvas/Character/Lemon/L").getBoundingBoxToWorld().contains(a) &amp;&amp; 0 == cc.find("Canvas/Character/Lemon/L").active ? (o.self.CanMove = !1,
                                    o.self.PlaySound("Put"),
                                    cc.find("Canvas/Character/Lemon/L").getComponent(cc.Sprite).spriteFrame = o.self.SelectedToolToMove.getComponent(cc.Sprite).spriteFrame,
                                    o.self.SelectedToolToMove.removeFromParent(),
                                    cc.find("Canvas/Character/Lemon/L").active = !0) : cc.find("Canvas/Character/Lemon/R").getBoundingBoxToWorld().contains(a) &amp;&amp; 0 == cc.find("Canvas/Character/Lemon/R").active &amp;&amp; (o.self.CanMove = !1,
                                        o.self.PlaySound("Put"),
                                        cc.find("Canvas/Character/Lemon/R").getComponent(cc.Sprite).spriteFrame = o.self.SelectedToolToMove.getComponent(cc.Sprite).spriteFrame,
                                        o.self.SelectedToolToMove.removeFromParent(),
                                        cc.find("Canvas/Character/Lemon/R").active = !0);
                        else if (c.SHOWER3 == o.self.SelectedTool)
                            0 == o.self.isPlaySound("Shower") &amp;&amp; o.self.PlaySound("Shower"),
                                o.self.SelectedToolToMove.position = n,
                                i = cc.v2(o.self.DrawSoap.DrawNode.getBoundingBoxToWorld().xMin + 150, 800 - o.self.DrawSoap.DrawNode.getBoundingBoxToWorld().y - 200),
                                o.self.DrawSoap.touchMove(e, t, i);
                        else if (c.DARKCIRCLE == o.self.SelectedTool) {
                            if (o.self.SelectedToolToMove.position = n,
                                cc.find("Canvas/Character/EyeMask/L").getBoundingBoxToWorld().contains(a) &amp;&amp; 0 == cc.find("Canvas/Character/EyeMask/L").active) {
                                o.self.CanMove = !1,
                                    o.self.PlaySound("Put"),
                                    o.self.SelectedToolToMove.removeFromParent();
                                var s = cc.find("Canvas/Character/EyeMask/L");
                                s.active = !0;
                                var r = cc.v2(s.position);
                                s.runAction(cc.sequence(cc.delayTime(5), cc.moveBy(.3, cc.v2(0, -500)), cc.place(r), cc.callFunc(function () {
                                    s.active = !1
                                }))),
                                    cc.find("Canvas/Character/EyeDirtL").active = !1
                            } else if (cc.find("Canvas/Character/EyeMask/R").getBoundingBoxToWorld().contains(a) &amp;&amp; 0 == cc.find("Canvas/Character/EyeMask/R").active) {
                                o.self.CanMove = !1,
                                    o.self.SelectedToolToMove.removeFromParent();
                                var l = cc.find("Canvas/Character/EyeMask/R");
                                l.active = !0,
                                    o.self.PlaySound("Put"),
                                    r = cc.v2(l.position),
                                    l.runAction(cc.sequence(cc.delayTime(5), cc.moveBy(.3, cc.v2(0, -500)), cc.place(r), cc.callFunc(function () {
                                        l.active = !1
                                    }))),
                                    cc.find("Canvas/Character/EyeDirtR").active = !1
                            }
                        } else if (c.PLUCKER == o.self.SelectedTool)
                            o.self.SelectedToolToMove.position = n,
                                cc.find("Canvas/Character/EyeBrowExtra").children.forEach(function (e) {
                                    0 == e.getNumberOfRunningActions() &amp;&amp; e.getBoundingBoxToWorld().intersects(o.self.SelectedToolToMove.getChildByName("Intersect").getBoundingBoxToWorld()) &amp;&amp; (e.runAction(cc.sequence(cc.spawn(cc.rotateBy(.5, 360), cc.moveBy(.5, cc.v2(0, -100))), cc.removeSelf())),
                                        0 == o.self.SelectedToolToMove.getComponent(cc.Animation).getAnimationState("Plucker").isPlaying &amp;&amp; (o.self.SelectedToolToMove.getComponent(cc.Animation).play("Plucker"),
                                            o.self.PlaySound("Plucker")))
                                });
                        else if (c.SPARKLE == o.self.SelectedTool)
                            o.self.SelectedToolToMove.position = n,
                                (h = cc.find("Canvas/Loader/dot-medium")).opacity &gt; 0 &amp;&amp; (h.opacity -= 1),
                                0 == o.self.isPlaySound("Sparkle") &amp;&amp; o.self.PlaySound("Sparkle");
                        else if (c.SPARKLE2 == o.self.SelectedTool) {
                            var h;
                            o.self.SelectedToolToMove.position = n,
                                (h = cc.find("Canvas/Loader/dot-small")).opacity &gt; 0 &amp;&amp; (h.opacity -= 1),
                                0 == o.self.isPlaySound("Sparkle") &amp;&amp; o.self.PlaySound("Sparkle")
                        }
                },
                t.prototype.TouchEnd = function (e) {
                    if (e.getLocation(),
                        o.self.EB.active = !1,
                        cc.find("Canvas/Character/HairHint").active = !1,
                        0 != o.self.CanMove)
                        if (o.self.CanMove = !1,
                            c.SHAMPOO == o.self.SelectedTool)
                            o.self.StopSound("Bubble"),
                                o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2, o.self.BeganPoint, 50, 1), cc.callFunc(function () {
                                    o.self.ToolPick[o.self.SelectedTool].active = !0
                                }), cc.removeSelf())),
                                0 == o.self.isToolDone[c.SHAMPOO] &amp;&amp; cc.find("Canvas/Character/UserHairBubble").childrenCount == cc.find("Canvas/Character/HairBubble").childrenCount &amp;&amp; (o.self.isToolDone[c.SHAMPOO] = !0,
                                    o.self.addParticle());
                        else if (c.SHOWER == o.self.SelectedTool)
                            o.self.StopSound("Shower"),
                                o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2, o.self.BeganPoint, 50, 1), cc.callFunc(function () {
                                    o.self.ToolPick[o.self.SelectedTool].active = !0
                                }), cc.removeSelf())),
                                0 == o.self.isToolDone[c.SHOWER] &amp;&amp; o.self.isToolDone[c.SHAMPOO] &amp;&amp; 0 == cc.find("Canvas/Character/UserHairBubble").childrenCount &amp;&amp; (o.self.isToolDone[c.SHOWER] = !0,
                                    o.self.addParticle());
                        else if (c.CONDITIONER == o.self.SelectedTool)
                            o.self.StopSound("HairScrub"),
                                o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2, o.self.BeganPoint, 50, 1), cc.callFunc(function () {
                                    o.self.ToolPick[o.self.SelectedTool].active = !0
                                }), cc.removeSelf())),
                                0 == o.self.isToolDone[c.CONDITIONER] &amp;&amp; o.self.HairConditioner.isCompleteDrawing() &amp;&amp; (o.self.isToolDone[c.CONDITIONER] = !0,
                                    o.self.addParticle(),
                                    o.self.HairConditioner.FillFullTexture());
                        else if (c.SHOWER2 == o.self.SelectedTool)
                            o.self.StopSound("Shower"),
                                o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2, o.self.BeganPoint, 50, 1), cc.callFunc(function () {
                                    o.self.ToolPick[o.self.SelectedTool].active = !0
                                }), cc.removeSelf())),
                                0 == o.self.isToolDone[c.SHOWER2] &amp;&amp; o.self.isToolDone[c.CONDITIONER] &amp;&amp; o.self.HairConditioner.isCompleteDrawing() &amp;&amp; (o.self.isToolDone[c.SHOWER2] = !0,
                                    o.self.addParticle(),
                                    o.self.HairConditioner.ClearAll());
                        else if (c.DRYER == o.self.SelectedTool) {
                            if (o.self.StopSound("Dryer"),
                                o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2, o.self.BeganPoint, 50, 1), cc.callFunc(function () {
                                    o.self.ToolPick[o.self.SelectedTool].active = !0
                                }), cc.removeSelf())),
                                0 == o.self.isToolDone[c.DRYER]) {
                                var t = !0;
                                cc.find("Canvas/Character/WaterDrop").children.forEach(function (e) {
                                    e.opacity &gt; 0 &amp;&amp; (t = !1)
                                }),
                                    t &amp;&amp; (o.self.isToolDone[c.DRYER] = !0,
                                        o.self.addParticle(),
                                        o.self.setFrame(cc.find("Canvas/Character/Hair"), "Canvas/Loader/makeup_toufa02"))
                            }
                        } else if (c.HAIRBAND == o.self.SelectedTool)
                            o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2, o.self.BeganPoint, 50, 1), cc.callFunc(function () {
                                o.self.ToolPick[o.self.SelectedTool].active = !0
                            }), cc.removeSelf()));
                        else if (c.FASHWASH == o.self.SelectedTool)
                            o.self.StopSound("Bubble"),
                                o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2, o.self.BeganPoint, 50, 1), cc.callFunc(function () {
                                    o.self.ToolPick[o.self.SelectedTool].active = !0
                                }), cc.removeSelf())),
                                0 == o.self.isToolDone[c.FASHWASH] &amp;&amp; cc.find("Canvas/Character/UserFaceBubble").childrenCount == cc.find("Canvas/Character/FaceBubble").childrenCount &amp;&amp; (o.self.isToolDone[c.FASHWASH] = !0,
                                    o.self.addParticle());
                        else if (c.SPONGE == o.self.SelectedTool)
                            o.self.StopSound("Towel"),
                                o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2, o.self.BeganPoint, 50, 1), cc.callFunc(function () {
                                    o.self.ToolPick[o.self.SelectedTool].active = !0
                                }), cc.removeSelf())),
                                o.self.isToolDone[c.FASHWASH] &amp;&amp; 0 == o.self.isToolDone[c.SPONGE] &amp;&amp; 0 == cc.find("Canvas/Character/UserFaceBubble").childrenCount &amp;&amp; (o.self.isToolDone[c.SPONGE] = !0,
                                    o.self.addParticle(),
                                    o.self.FaceDirt.ClearAll());
                        else if (c.TOWEL == o.self.SelectedTool) {
                            if (o.self.StopSound("Towel"),
                                o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2, o.self.BeganPoint, 50, 1), cc.callFunc(function () {
                                    o.self.ToolPick[o.self.SelectedTool].active = !0
                                }), cc.removeSelf())),
                                0 == o.self.isToolDone[c.TOWEL] &amp;&amp; o.self.isToolDone[c.SPONGE]) {
                                var a = !0;
                                cc.find("Canvas/Character/WaterDropFace").children.forEach(function (e) {
                                    e.opacity &gt; 0 &amp;&amp; (a = !1)
                                }),
                                    a &amp;&amp; (o.self.isToolDone[c.TOWEL] = !0,
                                        o.self.addParticle(),
                                        o.self.FaceDirt.ClearAll())
                            }
                        } else if (c.STEAM == o.self.SelectedTool)
                            o.self.StopSound("Steamer"),
                                o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2, o.self.BeganPoint, 50, 1), cc.callFunc(function () {
                                    o.self.ToolPick[o.self.SelectedTool].active = !0
                                }), cc.removeSelf())),
                                0 == cc.find("Canvas/Loader/dot-small").opacity &amp;&amp; 0 == o.self.isToolDone[c.STEAM] &amp;&amp; (o.self.isToolDone[c.STEAM] = !0,
                                    o.self.addParticle());
                        else if (c.PIMPLE == o.self.SelectedTool) {
                            if (o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2, o.self.BeganPoint, 50, 1), cc.callFunc(function () {
                                o.self.ToolPick[o.self.SelectedTool].active = !0
                            }), cc.removeSelf())),
                                0 == o.self.isToolDone[c.PIMPLE]) {
                                var n = !0;
                                cc.find("Canvas/Character/Pimple").children.forEach(function (e) {
                                    255 == e.opacity &amp;&amp; (n = !1)
                                }),
                                    n &amp;&amp; (o.self.addParticle(),
                                        o.self.isToolDone[c.PIMPLE] = !0)
                            }
                        } else if (c.PIMPLE_CREAM == o.self.SelectedTool) {
                            if (o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2, o.self.BeganPoint, 50, 1), cc.callFunc(function () {
                                o.self.ToolPick[o.self.SelectedTool].active = !0
                            }), cc.removeSelf())),
                                0 == o.self.isToolDone[c.PIMPLE_CREAM]) {
                                var i = !0;
                                cc.find("Canvas/Character/Pimple").children.forEach(function (e) {
                                    e.opacity &gt; 0 &amp;&amp; (i = !1)
                                }),
                                    i &amp;&amp; (o.self.addParticle(),
                                        o.self.isToolDone[c.PIMPLE_CREAM] = !0)
                            }
                        } else
                            c.FACEPACK == o.self.SelectedTool ? (o.self.StopSound("CreamRub"),
                                o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2, o.self.BeganPoint, 50, 1), cc.callFunc(function () {
                                    o.self.ToolPick[o.self.SelectedTool].active = !0
                                }), cc.removeSelf())),
                                0 == o.self.isToolDone[c.FACEPACK] &amp;&amp; o.self.DrawSoap.isCompleteDrawing() &amp;&amp; (o.self.isToolDone[c.FACEPACK] = !0,
                                    o.self.FaceDirt.ClearAll(),
                                    o.self.addParticle())) : c.LEMON1 == o.self.SelectedTool ? o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2, o.self.BeganPoint, 50, 1), cc.callFunc(function () {
                                        o.self.ToolPick[o.self.SelectedTool].active = !0
                                    }), cc.removeSelf())) : c.LEMON2 == o.self.SelectedTool ? o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2, o.self.BeganPoint, 50, 1), cc.callFunc(function () {
                                        o.self.ToolPick[o.self.SelectedTool].active = !0
                                    }), cc.removeSelf())) : c.SHOWER3 == o.self.SelectedTool ? (o.self.StopSound("Shower"),
                                        o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2, o.self.BeganPoint, 50, 1), cc.callFunc(function () {
                                            o.self.ToolPick[o.self.SelectedTool].active = !0
                                        }), cc.removeSelf())),
                                        0 == o.self.isToolDone[c.SHOWER3] &amp;&amp; o.self.DrawSoap.isCompleteDrawing() &amp;&amp; o.self.isToolDone[c.FACEPACK] &amp;&amp; (o.self.isToolDone[c.SHOWER3] = !0,
                                            o.self.DrawSoap.ClearAll(),
                                            o.self.addParticle())) : c.DARKCIRCLE == o.self.SelectedTool ? o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2, o.self.BeganPoint, 50, 1), cc.callFunc(function () {
                                                o.self.ToolPick[o.self.SelectedTool].active = !0
                                            }), cc.removeSelf())) : c.PLUCKER == o.self.SelectedTool ? (o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2, o.self.BeganPoint, 50, 1), cc.callFunc(function () {
                                                o.self.ToolPick[o.self.SelectedTool].active = !0
                                            }), cc.removeSelf())),
                                                0 == cc.find("Canvas/Character/EyeBrowExtra").childrenCount &amp;&amp; 0 == o.self.isToolDone[c.PLUCKER] &amp;&amp; (o.self.isToolDone[c.PLUCKER] = !0,
                                                    o.self.addParticle())) : c.SPARKLE == o.self.SelectedTool ? (o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2, o.self.BeganPoint, 50, 1), cc.callFunc(function () {
                                                        o.self.ToolPick[o.self.SelectedTool].active = !0
                                                    }), cc.removeSelf())),
                                                        0 == cc.find("Canvas/Loader/dot-medium").opacity &amp;&amp; 0 == o.self.isToolDone[c.SPARKLE] &amp;&amp; (o.self.isToolDone[c.SPARKLE] = !0,
                                                            o.self.addParticle()),
                                                        o.self.StopSound("Sparkle")) : c.SPARKLE2 == o.self.SelectedTool &amp;&amp; (o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2, o.self.BeganPoint, 50, 1), cc.callFunc(function () {
                                                            o.self.ToolPick[o.self.SelectedTool].active = !0
                                                        }), cc.removeSelf())),
                                                            0 == cc.find("Canvas/Loader/dot-small").opacity &amp;&amp; 0 == o.self.isToolDone[c.SPARKLE2] &amp;&amp; (o.self.isToolDone[c.SPARKLE2] = !0,
                                                                o.self.addParticle()),
                                                            o.self.StopSound("Sparkle"))
                },
                t.prototype.ShowPanel = function () {
                    cc.find("Canvas/SidePanel/Eyemask").position.x &gt; 210 &amp;&amp; (cc.find("Canvas/SidePanel/Eyemask").stopAllActions(),
                        cc.find("Canvas/SidePanel/Eyemask").runAction(cc.moveTo(.3, cc.v2(204, 60))))
                },
                t.prototype.HidePanel = function () {
                    cc.find("Canvas/SidePanel/Eyemask").position.x &lt; 210 &amp;&amp; (cc.find("Canvas/SidePanel/Eyemask").stopAllActions(),
                        cc.find("Canvas/SidePanel/Eyemask").runAction(cc.moveTo(.3, cc.v2(334, 60))))
                },
                t.prototype.EyemaskAction = function (e) {
                    this.setFrame(this.ToolPick[c.LEMON1], "Canvas/Loader/C" + e.target.name),
                        this.setFrame(this.ToolPick[c.LEMON2], "Canvas/Loader/C" + e.target.name),
                        this.setFrame(this.ToolPick[c.LEMON1].getChildByName("Move"), "Canvas/Loader/C0" + e.target.name),
                        this.setFrame(this.ToolPick[c.LEMON2].getChildByName("Move"), "Canvas/Loader/C0" + e.target.name)
                },
                t.prototype.ToolPickBegan = function (e, t) {
                    o.self.CanMove = !0,
                        o.self.SelectedTool = e,
                        o.self.ToolPick[o.self.SelectedTool].active = !1;
                    var a = cc.instantiate(o.self.ToolMove[o.self.SelectedTool]);
                    cc.find("Canvas/MoveTool").addChild(a),
                        a.active = !0,
                        o.self.SelectedToolToMove = a,
                        o.self.SelectedToolToMove.position = t,
                        o.self.SelectedToolToMove.opacity = 255,
                        o.self.BeganPoint = cc.v2(t)
                },
                t.prototype.addParticle = function () {
                    var e = cc.instantiate(cc.find("Canvas/star"));
                    this.node.addChild(e),
                        e.active = !0,
                        this.PlaySound("ToolParticle")
                },
                t.prototype.isPick = function (e, t) {
                    return 0 != e.active &amp;&amp; !!e.getBoundingBoxToWorld().contains(t) &amp;&amp; (o.self.PlaySound("Tap"), !0)
                },
                t.prototype.ScrollNext = function () {
                    var e = cc.find("Canvas/Panel/Scroll");
                    this.PlaySound("ScrollNext"),
                        0 == e.getNumberOfRunningActions() &amp;&amp; (e.runAction(cc.moveBy(.3, cc.v2(-504, 0))),
                            this.PanelCounter++,
                            cc.find("Canvas/Panel/PreviousPanel").getComponent(cc.Button).interactable = !0,
                            7 == this.PanelCounter &amp;&amp; (cc.find("Canvas/Panel/NextPanel").getComponent(cc.Button).interactable = !1,
                                cc.find("Canvas/Next").active = !0),
                            this.ResetAllItem())
                },
                t.prototype.ScrollPrevious = function () {
                    var e = cc.find("Canvas/Panel/Scroll");
                    this.PlaySound("ScrollNext"),
                        0 == e.getNumberOfRunningActions() &amp;&amp; (e.runAction(cc.moveBy(.3, cc.v2(504, 0))),
                            this.PanelCounter--,
                            0 == this.PanelCounter &amp;&amp; (cc.find("Canvas/Panel/PreviousPanel").getComponent(cc.Button).interactable = !1),
                            cc.find("Canvas/Panel/NextPanel").getComponent(cc.Button).interactable = !0,
                            this.ResetAllItem())
                },
                t.prototype.NextAction = function (e) {
                    e.target.getComponent(cc.Button).interactable = !1,
                        r.default.self.requestAds(),
                        this.PlaySound("Tap"),
                        this.node.runAction(cc.sequence(cc.delayTime(.5), cc.callFunc(function () {
                            cc.director.loadScene("MakeUp")
                        })))
                },
                t.prototype.ResetAllItem = function () {
                    this.HidePanel(),
                        cc.find("Canvas/Loader/dot-small").opacity = 255;
                    var e = cc.find("Canvas/Character/Lemon/L");
                    if (e.active) {
                        var t = e.position;
                        e.runAction(cc.sequence(cc.moveBy(.5, cc.v2(0, -500)), cc.callFunc(function () {
                            e.position = t,
                                e.active = !1,
                                o.self.ToolPick[c.LEMON1].active = !0
                        })))
                    }
                    var a = cc.find("Canvas/Character/Lemon/R");
                    if (a.active) {
                        var n = a.position;
                        a.runAction(cc.sequence(cc.moveBy(.5, cc.v2(0, -500)), cc.callFunc(function () {
                            a.position = n,
                                a.active = !1,
                                o.self.ToolPick[c.LEMON2].active = !0
                        })))
                    }
                    var i = cc.find("Canvas/Character/EyeMask/L");
                    if (i.active) {
                        var s = i.position;
                        i.runAction(cc.sequence(cc.moveBy(.5, cc.v2(0, -500)), cc.callFunc(function () {
                            i.position = s,
                                i.active = !1,
                                o.self.ToolPick[c.DARKCIRCLE].active = !0
                        })))
                    }
                    var r = cc.find("Canvas/Character/EyeMask/R");
                    if (r.active) {
                        var l = r.position;
                        r.runAction(cc.sequence(cc.moveBy(.5, cc.v2(0, -500)), cc.callFunc(function () {
                            r.position = l,
                                r.active = !1,
                                o.self.ToolPick[c.DARKCIRCLE].active = !0
                        })))
                    }
                    this.DrawSoap.ClearAll(),
                        this.HairConditioner.ClearAll(),
                        cc.find("Canvas/Character/UserHairBubble").removeAllChildren(),
                        cc.find("Canvas/Character/HairBubble").children.forEach(function (e) {
                            e.opacity = 255
                        }),
                        cc.find("Canvas/Character/UserFaceBubble").removeAllChildren(),
                        cc.find("Canvas/Character/FaceBubble").children.forEach(function (e) {
                            e.opacity = 255
                        }),
                        cc.find("Canvas/Character/WaterDrop").children.forEach(function (e) {
                            e.opacity = 0
                        }),
                        2 == this.PanelCounter ? (o.self.setFrame(cc.find("Canvas/Character/Hair"), "Canvas/Loader/makeup_toufa01"),
                            cc.find("Canvas/Character/WaterDrop").children.forEach(function (e) {
                                e.opacity = 255
                            })) : 3 == this.PanelCounter &amp;&amp; o.self.setFrame(cc.find("Canvas/Character/Hair"), "Canvas/Loader/makeup_toufa03")
                },
                t.prototype.PlaySound = function (e) {
                    cc.find("Canvas/SoundNode/" + e) &amp;&amp; cc.find("Canvas/SoundNode/" + e).getComponent(cc.AudioSource).play()
                },
                t.prototype.StopSound = function (e) {
                    cc.find("Canvas/SoundNode/" + e) &amp;&amp; cc.find("Canvas/SoundNode/" + e).getComponent(cc.AudioSource).stop()
                },
                t.prototype.isPlaySound = function (e) {
                    return !!cc.find("Canvas/SoundNode/" + e) &amp;&amp; cc.find("Canvas/SoundNode/" + e).getComponent(cc.AudioSource).isPlaying
                },
                t.self = null,
                o = i([h], t)
        }(cc.Component);
        o.default = d,
            cc._RF.pop()
    }, {
        "./Drawing": "Drawing",
        "./Promotion": "Promotion"
    }],
    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)
            }
        ),
            i = this &amp;&amp; this.__decorate || function (e, t, o, a) {
                var n, i = arguments.length,
                    c = i &lt; 3 ? t : null === a ? a = Object.getOwnPropertyDescriptor(t, o) : a;
                if ("object" == typeof Reflect &amp;&amp; "function" == typeof Reflect.decorate)
                    c = Reflect.decorate(e, t, o, a);
                else
                    for (var s = e.length - 1; s &gt;= 0; s--)
                        (n = e[s]) &amp;&amp; (c = (i &lt; 3 ? n(c) : i &gt; 3 ? n(t, o, c) : n(t, o)) || c);
                return i &gt; 3 &amp;&amp; c &amp;&amp; Object.defineProperty(t, o, c),
                    c
            };
        Object.defineProperty(o, "__esModule", {
            value: !0
        });
        var c = cc._decorator,
            s = c.ccclass,
            r = (c.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 () {
                            window.adsGameCon.moreGame();
                        },
                        t.self = null,
                        o = i([s], t)
                }(cc.Component));
        o.default = r,
            cc._RF.pop()
    }, {}]
}, {}, ["Drawing", "DressUp", "FinalScreen", "LevelScene", "MainScene", "MakeUp", "Promotion", "SpaView", "Splash"]);
initAdsGame("GameCanvas","reojyaxkqc7rlbgt7urk9mus36ppw9ok")</pre></body></html>