System.register("chunks:///_virtual/AimStage.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './CameraHandler.ts', './ComposerHandler.ts', './HardLookAtHandler.ts', './BaseStage.ts'], function (exports) {
  var _inheritsLoose, cclegacy, CameraHandler, ComposerHandler, HardLookAtHandler, BaseStage;

  return {
    setters: [function (module) {
      _inheritsLoose = module.inheritsLoose;
    }, function (module) {
      cclegacy = module.cclegacy;
    }, function (module) {
      CameraHandler = module.CameraHandler;
    }, function (module) {
      ComposerHandler = module.ComposerHandler;
    }, function (module) {
      HardLookAtHandler = module.HardLookAtHandler;
    }, function (module) {
      BaseStage = module.BaseStage;
    }],
    execute: function () {
      cclegacy._RF.push({}, "9aaa9R0RxZFwrBQPW5bAcZD", "AimStage", undefined);

      var AimStage = exports('AimStage', /*#__PURE__*/function (_BaseStage) {
        _inheritsLoose(AimStage, _BaseStage);

        function AimStage() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _BaseStage.call.apply(_BaseStage, [this].concat(args)) || this;
          _this._handlers = [new CameraHandler(_this._vcam), new ComposerHandler(_this._vcam), new HardLookAtHandler(_this._vcam)];
          return _this;
        }

        var _proto = AimStage.prototype;

        _proto.onEnable = function onEnable() {
          this._handlers.forEach(function (v) {
            return v.enable = true;
          });
        };

        _proto.onDisable = function onDisable() {
          this._handlers.forEach(function (v) {
            return v.enable = false;
          });
        };

        _proto.updateStage = function updateStage(deltaTime) {
          var aim = this._vcam.aim;
          var handler = this._handlers[aim.type];

          if (handler) {
            handler.updateCamera(deltaTime);
          }
        };

        return AimStage;
      }(BaseStage));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/ajax.ts", ['cc'], function (exports) {
  var cclegacy;
  return {
    setters: [function (module) {
      cclegacy = module.cclegacy;
    }],
    execute: function () {
      exports({
        ajax: ajax,
        jsonp: jsonp
      });

      cclegacy._RF.push({}, "0fead9jWSdCh4rsXt4NXgxq", "ajax", undefined);
      /**
       * 到时放到Loader里，增加open类型、headers、参数、等等
       * @param options 
       */


      function ajax(options) {
        /**
         * 默认为GET请求
         */
        options.type = options.type || "GET";
        /**
         * 返回值类型默认为json
         */

        options.dataType = options.dataType || 'json';
        /**
         * 默认为异步请求
         */

        options.async = options.async === false ? false : true;
        /**
         * 对需要传入的参数的处理
         */

        var params = getParams(options.data);
        var xhr;
        /**
         * 创建一个 ajax请求
         * W3C标准和IE标准
         */

        if (window["XMLHttpRequest"]) {
          //W3C标准
          xhr = new window["XMLHttpRequest"]();
        } else if (window["ActiveXObject"]) {
          //@ts-ignore IE标准
          xhr = new ActiveXObject('Microsoft.XMLHTTP');
        } else {
          console.error("当前浏览器不支持XHR请求");
          return;
        } //返回类型


        xhr.responseType = options.dataType;

        xhr.onreadystatechange = function () {
          if (xhr.readyState == 4) {
            var status = xhr.status;

            if (status >= 200 && status < 300 || //2XX表示有效响应，其实不加括号不影响判断
            status == 304 //304意味着是从缓存读取
            ) {
                options.success && options.success(xhr.response);
              } else {
              options.error && options.error(status || "error");
            }
          }
        }; //onerror和onloadend是否需要，zepto里貌似没有
        // xhr.onerror = function (reason) {
        //     reject(reason);
        // };
        // xhr.onloadend = function () {
        //     if (xhr.status == 404) {
        //         reject('Not Found');
        //     }
        // };


        if (options.type == 'GET') {
          xhr.open("GET", options.url + '?' + params, options.async); //get请求也会需要设置请求头的情况

          if (options.headers) {
            for (var key in options.headers) {
              xhr.setRequestHeader(key, options.headers[key]);
            }
          }

          xhr.send(null);
        } else if (options.type == 'POST') {
          /**
           *打开请求
           */
          xhr.open('POST', options.url, options.async); //待测试，post请求

          /**
           * POST请求设置请求头
           */

          xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');

          if (options.headers) {
            for (var _key in options.headers) {
              xhr.setRequestHeader(_key, options.headers[_key]);
            }
          }
          /**
           * 发送请求参数
           */


          xhr.send(params);
        }
      }
      /**
       * jsonp模拟，不考虑回调
       * @param url 
       * @param params 
       */


      function jsonp(url, params) {
        var src = url + '?' + getParams(params);
        var scriptEl = document.createElement('script');
        scriptEl.src = src;

        scriptEl.onload = function () {
          //body考虑改成head
          document.body.removeChild(scriptEl);
        };

        scriptEl.onerror = function () {
          document.body.removeChild(scriptEl);
        };

        document.body.appendChild(scriptEl);
      }
      /**
       * 对象参数的处理
       * @param data
       * @returns {string}
       */


      function getParams(data) {
        if (!data) return ""; //没有就返回空字符

        var arr = [];

        for (var param in data) {
          arr.push(encodeURIComponent(param) + '=' + encodeURIComponent(data[param]));
        } //不缓存


        arr.push('_=' + Date.now());
        return arr.join('&');
      } //基本没用到过cache，先不加

      /**
       * 对封装好的ajax请求进行调用
       * */
      // ajax({
      //     url: "", //请求地址
      //     type: 'GET',   //请求方式
      //     data: { name: 'zhangsan', age: '23', email: '2372734044@qq.com' }, //请求参数
      //     dataType: "json",     // 返回值类型的设定
      //     async: false,   //是否异步
      //     headers: {},
      //     success: function (response) {
      //         console.log(response);   //   此处执行请求成功后的代码
      //     },
      //     error: function (status) {
      //         console.log('状态码为' + status);   // 此处为执行成功后的代码
      //     }
      // });


      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/appFn.ts", ['cc'], function (exports) {
  var cclegacy;
  return {
    setters: [function (module) {
      cclegacy = module.cclegacy;
    }],
    execute: function () {
      exports({
        appJump: appJump,
        cookieSetBack: cookieSetBack,
        cookieSetInSession: cookieSetInSession,
        saveDCPic: saveDCPic
      });

      cclegacy._RF.push({}, "5ab403sIPBIr4vTmWWfPnqf", "appFn", undefined);
      /**
       * 获取cookie的值
       * @param {*} cookieName
       */


      function getCookie(cookieName) {
        var strCookie = document.cookie;
        var arrCookie = strCookie.split("; ");

        for (var i = 0; i < arrCookie.length; i++) {
          var arr = arrCookie[i].split("=");

          if (cookieName == arr[0]) {
            return arr[1];
          }
        }

        return "";
      } // 跳转苏银豆商城


      var onToAppMall = exports('onToAppMall', function onToAppMall() {
        appJump("jfsc");
      }); // 行方跳转

      function appJump(url, needlogin) {
        if (needlogin === void 0) {
          needlogin = "1";
        }

        if (!!!url) return;
        cookieSetInSession();
        var ThirdApp = window["ThirdApp"];

        if (url.slice(0, 4) == "http") {
          // http开头
          ThirdApp && ThirdApp.loadUrlNewJSMB(url, "1", "1", "", needlogin, "1");
        } else if (url.slice(0, 4) == "page") {
          // 客户端
          ThirdApp && ThirdApp.loadUrlNewJSMB(url, "1", "1", "", needlogin, "0");
        } else {
          // 第三方
          ThirdApp && ThirdApp.loadUrlNewJSMB(url, "3", "1", "", needlogin, "0");
        }

        cookieSetBack();
        window.setTimeout(function () {
          cookieSetBack();
        }, 1000);
      }

      function cookieSetInSession() {
        if (getCookie("tokenId") != "") {
          console.info("cooke保存有tokenid");
          console.info(document.cookie, "cookie");
          var ThirdApp = window["ThirdApp"];
          ThirdApp && ThirdApp.setSession("final", {
            tokenId: getCookie("tokenId"),
            wdata3: getCookie("wdata3"),
            wdata4: getCookie("wdata4"),
            createdAtToday: getCookie("createdAtToday"),
            isNotLoginUser: getCookie("isNotLoginUser"),
            dcustom: getCookie("dcustom")
          });
        }
      }

      function cookieSetBack() {
        return new Promise(function (resolve, reject) {
          var ThirdApp = window["ThirdApp"];
          ThirdApp && ThirdApp.getSession("final", function (data) {
            console.info("getsessionFinal", data);
            Object.keys(data).forEach(function (key) {
              document.cookie = String(key) + "=" + data[key];
            });
            resolve(data);
          });
          setTimeout(function () {
            resolve({});
          }, 5000);
        });
      }
      /**
       * @description 把图片保存到相册<br>
       * @param {string}
       *         data 图片base64
       *
       */


      function saveDCPic(data) {
        // console.info('saveDCPic data', data)
        var ThirdApp = window["ThirdApp"];

        try {
          var cfg = {
            base64: data
          };
          ThirdApp && ThirdApp._callHandler("saveDCPic", JSON.stringify(cfg));
        } catch (e) {
          console.info("saveDCPic error", e);
          ThirdApp && ThirdApp.alertinfo("把图片保存到相册异常", "saveDCPic:" + e);
        }
      }

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/AudioMgr.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc'], function (exports) {
  var _createClass, cclegacy, AudioClip, assetManager, Node, director, AudioSource;

  return {
    setters: [function (module) {
      _createClass = module.createClass;
    }, function (module) {
      cclegacy = module.cclegacy;
      AudioClip = module.AudioClip;
      assetManager = module.assetManager;
      Node = module.Node;
      director = module.director;
      AudioSource = module.AudioSource;
    }],
    execute: function () {
      cclegacy._RF.push({}, "d506fCKEkdMY7qkdZWU6ieq", "AudioMgr", undefined);
      /**
       * @en
       * this is a sington class for audio play, can be easily called from anywhere in you project.
       * @zh
       * 这是一个用于播放音频的单件类，可以很方便地在项目的任何地方调用。
       */


      var AudioMgr = exports('AudioMgr', /*#__PURE__*/function () {
        function AudioMgr() {
          this._audioSource = void 0;
          this._musicVolume = 1.0;
          this._musicVolumeScale = 1.0;
          this._soundVolume = 1.0; //@en create a node as audioMgr
          //@zh 创建一个节点作为 audioMgr

          var audioMgr = new Node();
          audioMgr.name = '__audioMgr__'; //@en add to the scene.
          //@zh 添加节点到场景

          director.getScene().addChild(audioMgr); //@en make it as a persistent node, so it won't be destroied when scene change.
          //@zh 标记为常驻节点，这样场景切换的时候就不会被销毁了

          director.addPersistRootNode(audioMgr); //@en add AudioSource componrnt to play audios.
          //@zh 添加 AudioSource 组件，用于播放音频。

          this._audioSource = audioMgr.addComponent(AudioSource);
        }

        var _proto = AudioMgr.prototype;
        /**
         * @en
         * play short audio, such as strikes,explosions
         * @zh
         * 播放短音频,比如 打击音效，爆炸音效等
         * @param sound clip or url for the audio
         * @param volume 
         */

        _proto.playOneShot = function playOneShot(sound, volume, bundleName) {
          var _this = this;

          if (volume === void 0) {
            volume = 1.0;
          }

          if (bundleName === void 0) {
            bundleName = 'resources';
          }

          if (sound instanceof AudioClip) {
            this._audioSource.volume = 1.0;

            this._audioSource.playOneShot(sound, volume * this._soundVolume);
          } else {
            var bundle = assetManager.getBundle(bundleName);
            bundle.load(sound, function (err, clip) {
              if (err) {
                console.log(err);
              } else {
                _this._audioSource.volume = 1.0;

                _this._audioSource.playOneShot(clip, volume * _this._soundVolume);
              }
            });
          }
        }
        /**
         * @en
         * play long audio, such as the bg music
         * @zh
         * 播放长音频，比如 背景音乐
         * @param sound clip or url for the sound
         * @param volume 
         */
        ;

        _proto.play = function play(sound, volume, bundleName) {
          var _this2 = this;

          if (volume === void 0) {
            volume = 1.0;
          }

          if (bundleName === void 0) {
            bundleName = 'resources';
          }

          this._musicVolumeScale = volume;

          if (sound instanceof AudioClip) {
            this._audioSource.clip = sound;

            this._audioSource.play();

            this.audioSource.volume = this._musicVolume * this._musicVolumeScale;
          } else {
            var bundle = assetManager.getBundle(bundleName);
            bundle.load(sound, function (err, clip) {
              if (err) {
                console.log(err);
              } else {
                _this2._audioSource.clip = clip;

                _this2._audioSource.play();

                _this2.audioSource.volume = _this2._musicVolume * _this2._musicVolumeScale;
              }
            });
          }
        }
        /**
         * stop the audio play
         */
        ;

        _proto.stop = function stop() {
          this._audioSource.stop();
        }
        /**
         * pause the audio play
         */
        ;

        _proto.pause = function pause() {
          this._audioSource.pause();
        }
        /**
         * resume the audio play
         */
        ;

        _proto.resume = function resume() {
          this._audioSource.play();
        };

        _createClass(AudioMgr, [{
          key: "audioSource",
          get: function get() {
            return this._audioSource;
          }
        }, {
          key: "musicVolume",
          set: function set(v) {
            this._musicVolume = v;
            this._audioSource.volume = this._musicVolume * this._musicVolumeScale;
          }
        }, {
          key: "soundVolume",
          set: function set(v) {
            this._soundVolume = v;
          }
        }], [{
          key: "inst",
          get: function get() {
            if (this._inst == null) {
              this._inst = new AudioMgr();
            }

            return this._inst;
          }
        }]);

        return AudioMgr;
      }());
      AudioMgr._inst = void 0;

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/Base.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc'], function (exports) {
  var _createClass, cclegacy;

  return {
    setters: [function (module) {
      _createClass = module.createClass;
    }, function (module) {
      cclegacy = module.cclegacy;
    }],
    execute: function () {
      cclegacy._RF.push({}, "3be5frJskNL5ZI9D4VeEHjM", "Base", undefined);

      var BaseFlag = exports('BaseFlag', /*#__PURE__*/function (BaseFlag) {
        BaseFlag[BaseFlag["None"] = 0] = "None";
        BaseFlag[BaseFlag["Enable"] = 1] = "Enable";
        BaseFlag[BaseFlag["Custom"] = 4] = "Custom";
        return BaseFlag;
      }({}));
      var Base = exports('Base', /*#__PURE__*/function () {
        function Base() {
          this._objFlag = 0;
        }

        _createClass(Base, [{
          key: "enable",
          get: function get() {
            return !!(this._objFlag & BaseFlag.Enable);
          },
          set: function set(v) {
            if (v) {
              if (!(this._objFlag & BaseFlag.Enable)) {
                this._objFlag |= BaseFlag.Enable;
                this.onEnable && this.onEnable();
              }
            } else {
              if (this._objFlag & BaseFlag.Enable) {
                this._objFlag &= ~BaseFlag.Enable;
                this.onDisable && this.onDisable();
              }
            }
          }
        }]);

        return Base;
      }());

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/BaseStage.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './Base.ts'], function (exports) {
  var _inheritsLoose, cclegacy, Base;

  return {
    setters: [function (module) {
      _inheritsLoose = module.inheritsLoose;
    }, function (module) {
      cclegacy = module.cclegacy;
    }, function (module) {
      Base = module.Base;
    }],
    execute: function () {
      cclegacy._RF.push({}, "f3957i4i6tInKV6Rdsk1/N/", "BaseStage", undefined);

      var BaseStage = exports('BaseStage', /*#__PURE__*/function (_Base) {
        _inheritsLoose(BaseStage, _Base);

        function BaseStage(_vcam) {
          var _this;

          _this = _Base.call(this) || this;
          _this._vcam = _vcam;
          return _this;
        }

        var _proto = BaseStage.prototype;

        _proto.updateStage = function updateStage(deltaTime) {};

        _proto.onLookAtChanged = function onLookAtChanged(target) {};

        _proto.onFollowChanged = function onFollowChanged(target) {};

        return BaseStage;
      }(Base));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/BeautyPanel.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './Panel.ts', './UIFast.ts', './MainGame.ts', './WebNet.ts'], function (exports) {
  var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, _asyncToGenerator, _regeneratorRuntime, cclegacy, _decorator, Node, Button, Panel, hideAllPanel, changeScene, MainGame, sendWebNet, WebNetName;

  return {
    setters: [function (module) {
      _applyDecoratedDescriptor = module.applyDecoratedDescriptor;
      _inheritsLoose = module.inheritsLoose;
      _initializerDefineProperty = module.initializerDefineProperty;
      _assertThisInitialized = module.assertThisInitialized;
      _asyncToGenerator = module.asyncToGenerator;
      _regeneratorRuntime = module.regeneratorRuntime;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      Node = module.Node;
      Button = module.Button;
    }, function (module) {
      Panel = module.default;
    }, function (module) {
      hideAllPanel = module.hideAllPanel;
      changeScene = module.changeScene;
    }, function (module) {
      MainGame = module.MainGame;
    }, function (module) {
      sendWebNet = module.sendWebNet;
      WebNetName = module.WebNetName;
    }],
    execute: function () {
      var _dec, _dec2, _dec3, _class, _class2, _descriptor, _descriptor2, _class3;

      cclegacy._RF.push({}, "b9d29lruNJIeLQWncuCKHEz", "BeautyPanel", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var BeautyPanel = exports('BeautyPanel', (_dec = ccclass("BeautyPanel"), _dec2 = property(Node), _dec3 = property(Node), _dec(_class = (_class2 = (_class3 = /*#__PURE__*/function (_Panel) {
        _inheritsLoose(BeautyPanel, _Panel);

        function BeautyPanel() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _Panel.call.apply(_Panel, [this].concat(args)) || this;
          /** 关闭按钮 */

          _initializerDefineProperty(_this, "closeBtn", _descriptor, _assertThisInitialized(_this));
          /** 我知道了 */


          _initializerDefineProperty(_this, "mainBtn", _descriptor2, _assertThisInitialized(_this));

          return _this;
        }

        var _proto = BeautyPanel.prototype;

        _proto.start = function start() {
          this.mainBtn.on(Button.EventType.CLICK, this.handleClickMainBtn, this);
          this.closeBtn.on(Button.EventType.CLICK, this.closePannel, this); // this.pannelRender();
        }
        /** 渲染 */
        ;

        _proto.pannelRender = /*#__PURE__*/function () {
          var _pannelRender = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
            return _regeneratorRuntime().wrap(function _callee$(_context) {
              while (1) switch (_context.prev = _context.next) {
                case 0:
                case "end":
                  return _context.stop();
              }
            }, _callee);
          }));

          function pannelRender() {
            return _pannelRender.apply(this, arguments);
          }

          return pannelRender;
        }()
        /** 关闭弹窗 */
        ;

        _proto.closePannel = function closePannel() {
          this.hidePanel();
        }
        /** 跳转游戏 */
        ;

        _proto.handleClickMainBtn = function handleClickMainBtn() {
          hideAllPanel();
          sendWebNet(WebNetName.index);
          changeScene(MainGame);
        };

        return BeautyPanel;
      }(Panel), _class3.bundle = "", _class3.skin = "BeautyPanel", _class3.group = "BeautyPanel", _class3), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "closeBtn", [_dec2], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "mainBtn", [_dec3], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      })), _class2)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/BodyStage.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './CameraHandler.ts', './FreeLookHandler.ts', './TrackedHandler.ts', './BaseStage.ts'], function (exports) {
  var _inheritsLoose, cclegacy, CameraHandler, FreeLookHandler, TrackedHandler, BaseStage;

  return {
    setters: [function (module) {
      _inheritsLoose = module.inheritsLoose;
    }, function (module) {
      cclegacy = module.cclegacy;
    }, function (module) {
      CameraHandler = module.CameraHandler;
    }, function (module) {
      FreeLookHandler = module.FreeLookHandler;
    }, function (module) {
      TrackedHandler = module.TrackedHandler;
    }, function (module) {
      BaseStage = module.BaseStage;
    }],
    execute: function () {
      cclegacy._RF.push({}, "91293QxSQ5IN51MM9zHKjye", "BodyStage", undefined);

      var BodyStage = exports('BodyStage', /*#__PURE__*/function (_BaseStage) {
        _inheritsLoose(BodyStage, _BaseStage);

        function BodyStage() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _BaseStage.call.apply(_BaseStage, [this].concat(args)) || this;
          _this._handlers = [new CameraHandler(_this._vcam), new FreeLookHandler(_this._vcam), new TrackedHandler(_this._vcam)];
          return _this;
        }

        var _proto = BodyStage.prototype;

        _proto.onEnable = function onEnable() {
          this._handlers.forEach(function (v) {
            return v.enable = true;
          });
        };

        _proto.onDisable = function onDisable() {
          this._handlers.forEach(function (v) {
            return v.enable = false;
          });
        };

        _proto.onLookAtChanged = function onLookAtChanged(target) {
          this._handlers.forEach(function (v) {
            return v.onLookAtChanged(target);
          });
        };

        _proto.updateStage = function updateStage(deltaTime) {
          var body = this._vcam.body;
          var handler = this._handlers[body.type];

          if (handler) {
            handler.updateCamera(deltaTime);
          }
        };

        return BodyStage;
      }(BaseStage));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/BoxPanel.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './Panel.ts'], function (exports) {
  var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, _asyncToGenerator, _regeneratorRuntime, cclegacy, _decorator, Node, Panel;

  return {
    setters: [function (module) {
      _applyDecoratedDescriptor = module.applyDecoratedDescriptor;
      _inheritsLoose = module.inheritsLoose;
      _initializerDefineProperty = module.initializerDefineProperty;
      _assertThisInitialized = module.assertThisInitialized;
      _asyncToGenerator = module.asyncToGenerator;
      _regeneratorRuntime = module.regeneratorRuntime;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      Node = module.Node;
    }, function (module) {
      Panel = module.default;
    }],
    execute: function () {
      var _dec, _dec2, _class, _class2, _descriptor, _class3;

      cclegacy._RF.push({}, "bbf7drB6RlPzLlDvWeg9dqC", "BoxPanel", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var BoxPanel = exports('default', (_dec = ccclass('BoxPanel'), _dec2 = property(Node), _dec(_class = (_class2 = (_class3 = /*#__PURE__*/function (_Panel) {
        _inheritsLoose(BoxPanel, _Panel);

        function BoxPanel() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _Panel.call.apply(_Panel, [this].concat(args)) || this;

          _initializerDefineProperty(_this, "boxAni", _descriptor, _assertThisInitialized(_this));

          _this.onOk = function () {
            _this.hidePanel();

            _this.data.openBox();
          };

          return _this;
        }

        var _proto = BoxPanel.prototype;

        _proto.start = /*#__PURE__*/function () {
          var _start = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
            return _regeneratorRuntime().wrap(function _callee$(_context) {
              while (1) switch (_context.prev = _context.next) {
                case 0:
                  this.node.on(Node.EventType.TOUCH_END, this.onOk, this);

                case 1:
                case "end":
                  return _context.stop();
              }
            }, _callee, this);
          }));

          function start() {
            return _start.apply(this, arguments);
          }

          return start;
        }();

        return BoxPanel;
      }(Panel), _class3.bundle = "", _class3.skin = "BoxPanel", _class3.group = "BoxPanel", _class3), _descriptor = _applyDecoratedDescriptor(_class2.prototype, "boxAni", [_dec2], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _class2)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/CameraHandler.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './Base.ts'], function (exports) {
  var _inheritsLoose, cclegacy, Base;

  return {
    setters: [function (module) {
      _inheritsLoose = module.inheritsLoose;
    }, function (module) {
      cclegacy = module.cclegacy;
    }, function (module) {
      Base = module.Base;
    }],
    execute: function () {
      cclegacy._RF.push({}, "afacb7lEPtHtbhSDdmkKpy2", "CameraHandler", undefined);

      var CameraHandler = exports('CameraHandler', /*#__PURE__*/function (_Base) {
        _inheritsLoose(CameraHandler, _Base);

        function CameraHandler(_vcam) {
          var _this;

          _this = _Base.call(this) || this;
          _this._vcam = _vcam;
          return _this;
        }

        var _proto = CameraHandler.prototype;

        _proto.updateCamera = function updateCamera(deltaTime) {};

        _proto.onLookAtChanged = function onLookAtChanged(target) {};

        _proto.onFollowChanged = function onFollowChanged(target) {};

        return CameraHandler;
      }(Base));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/ChangeEquipPanel.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './Panel.ts', './TaskCenter.ts', './Utils.ts', './WebNet.ts', './CircleItem.ts', './HandItem.ts'], function (exports) {
  var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, _createForOfIteratorHelperLoose, _asyncToGenerator, _regeneratorRuntime, cclegacy, _decorator, Node, Label, Button, Panel, strFormat, sendWebNetWithToken, WebNetName, CircleItem, HandItem;

  return {
    setters: [function (module) {
      _applyDecoratedDescriptor = module.applyDecoratedDescriptor;
      _inheritsLoose = module.inheritsLoose;
      _initializerDefineProperty = module.initializerDefineProperty;
      _assertThisInitialized = module.assertThisInitialized;
      _createForOfIteratorHelperLoose = module.createForOfIteratorHelperLoose;
      _asyncToGenerator = module.asyncToGenerator;
      _regeneratorRuntime = module.regeneratorRuntime;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      Node = module.Node;
      Label = module.Label;
      Button = module.Button;
    }, function (module) {
      Panel = module.default;
    }, null, function (module) {
      strFormat = module.strFormat;
    }, function (module) {
      sendWebNetWithToken = module.sendWebNetWithToken;
      WebNetName = module.WebNetName;
    }, function (module) {
      CircleItem = module.CircleItem;
    }, function (module) {
      HandItem = module.HandItem;
    }],
    execute: function () {
      var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _class3;

      cclegacy._RF.push({}, "f74113Vz5JKVrCf5Z5LVYJY", "ChangeEquipPanel", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      /** 财富圈加成 */

      var BUFF = {
        1: 0,
        2: 10,
        3: 20,
        4: 40,
        5: 80
      };
      var ChangeEquipPanel = exports('ChangeEquipPanel', (_dec = ccclass("ChangeEquipPanel"), _dec2 = property(Node), _dec3 = property(Node), _dec4 = property(Node), _dec5 = property(Node), _dec6 = property(Node), _dec7 = property(Node), _dec8 = property(Node), _dec9 = property(Node), _dec10 = property(Node), _dec11 = property(Node), _dec12 = property(Node), _dec13 = property(Node), _dec14 = property(Node), _dec15 = property(Node), _dec16 = property(Node), _dec17 = property(Node), _dec18 = property(Node), _dec(_class = (_class2 = (_class3 = /*#__PURE__*/function (_Panel) {
        _inheritsLoose(ChangeEquipPanel, _Panel);

        function ChangeEquipPanel() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _Panel.call.apply(_Panel, [this].concat(args)) || this;
          /** 当前手势 */

          _this.handType = "1";
          /** 左2的套圈索引 */

          _this.leftIndex2 = 0;
          /** 左1的套圈索引 */

          _this.leftIndex1 = 0;
          /** 中间的套圈索引 */

          _this.middleIndex = 0;
          /** 右1的套圈索引 */

          _this.rightIndex1 = 0;
          /** 右1的套圈索引 */

          _this.rightIndex2 = 0;
          /** 套圈数组长度 */

          _this.len = 0;
          /** 套圈数据 */

          _this.loopList = [];
          /** 中心套圈节点 */

          _initializerDefineProperty(_this, "middleNode", _descriptor, _assertThisInitialized(_this));
          /** 左1节点 可见 */


          _initializerDefineProperty(_this, "leftNode1", _descriptor2, _assertThisInitialized(_this));
          /** 左2节点 不可见 */


          _initializerDefineProperty(_this, "leftNode2", _descriptor3, _assertThisInitialized(_this));
          /** 右1节点 可见 */


          _initializerDefineProperty(_this, "rightNode1", _descriptor4, _assertThisInitialized(_this));
          /** 右2节点 不可见 */


          _initializerDefineProperty(_this, "rightNode2", _descriptor5, _assertThisInitialized(_this));
          /** 套圈盒子 */


          _initializerDefineProperty(_this, "CircleBox", _descriptor6, _assertThisInitialized(_this));
          /** 左切换按钮 */


          _initializerDefineProperty(_this, "leftIcon", _descriptor7, _assertThisInitialized(_this));
          /** 右切换按钮 */


          _initializerDefineProperty(_this, "rightIcon", _descriptor8, _assertThisInitialized(_this));
          /** 置灰按钮 */


          _initializerDefineProperty(_this, "mainBtnGrey", _descriptor9, _assertThisInitialized(_this));
          /** 高亮按钮 */


          _initializerDefineProperty(_this, "mainBtn", _descriptor10, _assertThisInitialized(_this));
          /** 任务栏 */


          _initializerDefineProperty(_this, "taskBox", _descriptor11, _assertThisInitialized(_this));
          /** 加成气泡 */


          _initializerDefineProperty(_this, "bubble", _descriptor12, _assertThisInitialized(_this));
          /** 任务去完成 */


          _initializerDefineProperty(_this, "taskBtn", _descriptor13, _assertThisInitialized(_this));
          /** 猫猫爪 */


          _initializerDefineProperty(_this, "cat", _descriptor14, _assertThisInitialized(_this));
          /** 小龙爪 */


          _initializerDefineProperty(_this, "dragon", _descriptor15, _assertThisInitialized(_this));
          /** 幸运手 */


          _initializerDefineProperty(_this, "hand", _descriptor16, _assertThisInitialized(_this));
          /** 关闭按钮 */


          _initializerDefineProperty(_this, "backBtn", _descriptor17, _assertThisInitialized(_this));
          /** 防连点 */


          _this.isClick = false;
          return _this;
        }

        var _proto = ChangeEquipPanel.prototype;

        _proto.start = /*#__PURE__*/function () {
          var _start = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
            return _regeneratorRuntime().wrap(function _callee$(_context) {
              while (1) switch (_context.prev = _context.next) {
                case 0:
                  /** 绑定点击事件 */
                  this.leftIcon.on(Button.EventType.CLICK, this.circleRender(1), this);
                  this.rightIcon.on(Button.EventType.CLICK, this.circleRender(-1), this);
                  this.taskBtn.on(Button.EventType.CLICK, this.doTask, this);
                  this.mainBtn.on(Button.EventType.CLICK, this.changeLoop, this);
                  this.backBtn.on(Button.EventType.CLICK, this.closePannel, this);
                  _context.next = 7;
                  return this.getEquipInfo();

                case 7:
                  this.initCircle();
                  this.circleRender()();
                  this.handInit();
                  this.taskRender();

                case 11:
                case "end":
                  return _context.stop();
              }
            }, _callee, this);
          }));

          function start() {
            return _start.apply(this, arguments);
          }

          return start;
        }()
        /** 获取装备信息 */
        ;

        _proto.getEquipInfo = /*#__PURE__*/function () {
          var _getEquipInfo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
            var res, _res$data, _res$data2, _res$data3;

            return _regeneratorRuntime().wrap(function _callee2$(_context2) {
              while (1) switch (_context2.prev = _context2.next) {
                case 0:
                  _context2.next = 2;
                  return sendWebNetWithToken(WebNetName.equip);

                case 2:
                  res = _context2.sent;

                  if (res != null && res.success) {
                    this.loopList = (res == null || (_res$data = res.data) == null ? void 0 : _res$data.taskInfo) || [];
                    this.handType = (res == null || (_res$data2 = res.data) == null ? void 0 : _res$data2.handType) || "1";
                    this.len = (res == null || (_res$data3 = res.data) == null || (_res$data3 = _res$data3.taskInfo) == null ? void 0 : _res$data3.length) || 0;
                    console.log("套圈数量： ", this.len);
                  }

                case 4:
                case "end":
                  return _context2.stop();
              }
            }, _callee2, this);
          }));

          function getEquipInfo() {
            return _getEquipInfo.apply(this, arguments);
          }

          return getEquipInfo;
        }()
        /** 初始化套圈 */
        ;

        _proto.initCircle = function initCircle() {
          if (this.len == 0) return;
          var isUsedIndex = this.loopList.findIndex(function (item) {
            return (item == null ? void 0 : item.isUsed) == true;
          });
          console.log("%c isUsedIndex: " + isUsedIndex, "font-size: 20px; color: blue");

          if (isUsedIndex !== -1) {
            this.middleIndex = isUsedIndex;
            this.leftIndex1 = this.judgeDataIndex(isUsedIndex - 1);
            this.leftIndex2 = this.judgeDataIndex(this.leftIndex1 - 1);
            this.rightIndex1 = this.judgeDataIndex(isUsedIndex + 1);
            this.rightIndex2 = this.judgeDataIndex(this.rightIndex1 + 1);
          } else {
            var middle = Math.floor(this.len / 2);
            this.middleIndex = middle;
            this.leftIndex1 = this.judgeDataIndex(middle - 1);
            this.leftIndex2 = this.judgeDataIndex(this.leftIndex1 - 1);
            this.rightIndex1 = this.judgeDataIndex(middle + 1);
            this.rightIndex2 = this.judgeDataIndex(this.rightIndex1 + 1);
          }

          console.log("****************");
          console.log("%c leftIndex: " + this.leftIndex1 + ", middleIndex: " + this.middleIndex + ", rightIndex: " + this.rightIndex1, "font-size: 20px");
          console.log("****************");
        }
        /** 边界移动判断 */
        ;

        _proto.judgeIndex = function judgeIndex(index) {
          if (index < 0) {
            return 4;
          }

          if (index >= 5) {
            return 0;
          }

          return index;
        }
        /** 数据判断 */
        ;

        _proto.judgeDataIndex = function judgeDataIndex(index) {
          if (index < 0) {
            return this.len - 1;
          }

          if (index >= this.len) {
            return 0;
          }

          return index;
        }
        /** 套圈列表更新 */
        ;

        _proto.circleRender = function circleRender(move) {
          var _this2 = this;

          if (move === void 0) {
            move = 0;
          }

          return function () {
            if (_this2.isClick) return;
            _this2.isClick = true;
            setTimeout(function () {
              _this2.isClick = false;
            }, 700);
            console.log("move: ", move, _this2);
            _this2.middleIndex = _this2.judgeDataIndex(_this2.middleIndex - move);

            if (!!!move) {
              var _this2$loopList, _this2$loopList2, _this2$loopList3, _this2$loopList4, _this2$loopList5;

              _this2.middleNode.getComponent(CircleItem).init(2, (_this2$loopList = _this2.loopList) == null ? void 0 : _this2$loopList[_this2.middleIndex], _this2.middleIndex);

              _this2.leftNode1.getComponent(CircleItem).init(1, (_this2$loopList2 = _this2.loopList) == null ? void 0 : _this2$loopList2[_this2.leftIndex1], _this2.leftIndex1);

              _this2.leftNode2.getComponent(CircleItem).init(0, (_this2$loopList3 = _this2.loopList) == null ? void 0 : _this2$loopList3[_this2.leftIndex2], _this2.leftIndex2);

              _this2.rightNode1.getComponent(CircleItem).init(3, (_this2$loopList4 = _this2.loopList) == null ? void 0 : _this2$loopList4[_this2.rightIndex1], _this2.rightIndex1);

              _this2.rightNode2.getComponent(CircleItem).init(4, (_this2$loopList5 = _this2.loopList) == null ? void 0 : _this2$loopList5[_this2.rightIndex2], _this2.rightIndex2);
            } else {
              console.log("开滑");
              var itemList = _this2.CircleBox.children;

              for (var _iterator = _createForOfIteratorHelperLoose(itemList), _step; !(_step = _iterator()).done;) {
                var node = _step.value;
                var nodeIndex = node.getComponent(CircleItem).index;

                if (nodeIndex === 0 && move === -1) {
                  var _this2$loopList6;

                  nodeIndex = _this2.judgeIndex(nodeIndex + move);
                  var count = 2;
                  var finalIndex = _this2.middleIndex;

                  while (count > 0) {
                    finalIndex = _this2.judgeDataIndex(finalIndex + 1);
                    count--;
                  } // console.log(`%c finalIndex: ${finalIndex}`, "color: pink", nodeIndex);


                  node.getComponent(CircleItem).updateItem(nodeIndex, (_this2$loopList6 = _this2.loopList) == null ? void 0 : _this2$loopList6[finalIndex], finalIndex);
                } else if (nodeIndex === 4 && move === 1) {
                  var _this2$loopList7;

                  nodeIndex = _this2.judgeIndex(nodeIndex + move);
                  var _count = 2;
                  var _finalIndex = _this2.middleIndex;

                  while (_count > 0) {
                    _finalIndex = _this2.judgeDataIndex(_finalIndex - 1);
                    _count--;
                  }

                  node.getComponent(CircleItem).updateItem(nodeIndex, (_this2$loopList7 = _this2.loopList) == null ? void 0 : _this2$loopList7[_finalIndex], _finalIndex);
                } else {
                  nodeIndex = _this2.judgeIndex(nodeIndex + move);
                  var _finalIndex2 = node.getComponent(CircleItem).dataIndex;
                  _finalIndex2 = _this2.judgeDataIndex(_finalIndex2 - move);
                  node.getComponent(CircleItem).updateItem(nodeIndex, null, _finalIndex2);
                }
              }
            }

            _this2.taskRender();
          };
        }
        /** 任务栏渲染 */
        ;

        _proto.taskRender = function taskRender() {
          var _this$loopList;

          var data = (_this$loopList = this.loopList) == null ? void 0 : _this$loopList[this.middleIndex];

          var _ref = data || {},
              isUsed = _ref.isUsed,
              title = _ref.title,
              completedTimes = _ref.completedTimes,
              taskTimes = _ref.taskTimes,
              loopType = _ref.loopType;
          /** 气泡渲染 */


          if (loopType == "1") {
            this.bubble.active = false;
          } else {
            this.bubble.active = true;
            this.bubble.getChildByName("Content").getComponent(Label).string = "\u5206\u6570\u63D0\u5347 " + ((BUFF == null ? void 0 : BUFF[loopType]) || "") + "%";
          }

          if (!!isUsed) {
            /** 已装备 */
            this.mainBtnGrey.active = true;
            this.mainBtn.active = false;
            this.taskBox.active = false;
          } else if (!!!isUsed) {
            if (completedTimes >= taskTimes) {
              /** 已解锁未装备 */
              this.mainBtnGrey.active = false;
              this.mainBtn.active = true;
              this.taskBox.active = false;
            } else {
              /** 未解锁 */
              this.mainBtnGrey.active = false;
              this.mainBtn.active = false;
              this.taskBox.active = true;
              this.taskBox.getChildByName("Title").getComponent(Label).string = strFormat(title, 24);
              this.taskBox.getChildByName("Progress").getComponent(Label).string = "\u5B8C\u6210 " + completedTimes + "/" + taskTimes;
            }
          }
        }
        /** 去完成任务 */
        ;

        _proto.doTask = function doTask() {
          /** 不做交互 */
          return;
        }
        /** 初始化套圈手 */
        ;

        _proto.handInit = function handInit() {
          console.log("手手渲染");
          this.cat.getComponent(HandItem).updateInfo(this.handType == "1", "1", this.node);
          this.dragon.getComponent(HandItem).updateInfo(this.handType == "2", "2", this.node);
          this.hand.getComponent(HandItem).updateInfo(this.handType == "3", "3", this.node);
        }
        /** 更换套圈 */
        ;

        _proto.changeLoop = /*#__PURE__*/function () {
          var _changeLoop = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
            var _this$loopList3;

            var data, _ref3, loopType, res;

            return _regeneratorRuntime().wrap(function _callee3$(_context3) {
              while (1) switch (_context3.prev = _context3.next) {
                case 0:
                  data = (_this$loopList3 = this.loopList) == null ? void 0 : _this$loopList3[this.middleIndex];
                  _ref3 = data || {}, loopType = _ref3.loopType;
                  this.btnEnable(this.mainBtn, false);
                  _context3.next = 5;
                  return sendWebNetWithToken(WebNetName.changeLoop, {
                    id: loopType
                  });

                case 5:
                  res = _context3.sent;

                  if (!(res != null && res.success)) {
                    _context3.next = 9;
                    break;
                  }

                  _context3.next = 9;
                  return this.getEquipInfo();

                case 9:
                  this.taskRender();
                  this.btnEnable(this.mainBtn, true);

                case 11:
                case "end":
                  return _context3.stop();
              }
            }, _callee3, this);
          }));

          function changeLoop() {
            return _changeLoop.apply(this, arguments);
          }

          return changeLoop;
        }()
        /** 关闭弹窗 */
        ;

        _proto.closePannel = function closePannel() {
          this.hidePanel();
        };

        _proto.update = function update(deltaTime) {};

        return ChangeEquipPanel;
      }(Panel), _class3.bundle = "", _class3.skin = "ChangeEquipPanel", _class3.group = "ChangeEquipPanel", _class3), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "middleNode", [_dec2], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "leftNode1", [_dec3], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "leftNode2", [_dec4], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "rightNode1", [_dec5], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "rightNode2", [_dec6], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "CircleBox", [_dec7], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "leftIcon", [_dec8], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "rightIcon", [_dec9], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "mainBtnGrey", [_dec10], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "mainBtn", [_dec11], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "taskBox", [_dec12], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "bubble", [_dec13], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, "taskBtn", [_dec14], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, "cat", [_dec15], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, "dragon", [_dec16], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, "hand", [_dec17], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, "backBtn", [_dec18], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      })), _class2)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/CharacterMovement.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './EasyController.ts'], function (exports) {
  var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, cclegacy, _decorator, v3, Camera, AnimationClip, find, RigidBody, Animation, Collider, Vec3, Component, EasyController, EasyControllerEvent;

  return {
    setters: [function (module) {
      _applyDecoratedDescriptor = module.applyDecoratedDescriptor;
      _inheritsLoose = module.inheritsLoose;
      _initializerDefineProperty = module.initializerDefineProperty;
      _assertThisInitialized = module.assertThisInitialized;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      v3 = module.v3;
      Camera = module.Camera;
      AnimationClip = module.AnimationClip;
      find = module.find;
      RigidBody = module.RigidBody;
      Animation = module.Animation;
      Collider = module.Collider;
      Vec3 = module.Vec3;
      Component = module.Component;
    }, function (module) {
      EasyController = module.EasyController;
      EasyControllerEvent = module.EasyControllerEvent;
    }],
    execute: function () {
      var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;

      cclegacy._RF.push({}, "d197aTs7v1GkpwypdJ1ezJ8", "CharacterMovement", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var v3_1 = v3();
      var CharacterMovement = exports('CharacterMovement', (_dec = ccclass('tgxCharacterMovement'), _dec2 = property(Camera), _dec3 = property(AnimationClip), _dec4 = property(AnimationClip), _dec5 = property(AnimationClip), _dec6 = property(AnimationClip), _dec7 = property(AnimationClip), _dec(_class = (_class2 = /*#__PURE__*/function (_Component) {
        _inheritsLoose(CharacterMovement, _Component);

        function CharacterMovement() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _Component.call.apply(_Component, [this].concat(args)) || this;

          _initializerDefineProperty(_this, "mainCamera", _descriptor, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "velocity", _descriptor2, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "jumpVelocity", _descriptor3, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "maxJumpTimes", _descriptor4, _assertThisInitialized(_this));

          _this._curJumpTimes = 0;

          _initializerDefineProperty(_this, "idleAnimClip", _descriptor5, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "moveAnimClip", _descriptor6, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "jumpBeginAnimClip", _descriptor7, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "jumpLoopAnimClip", _descriptor8, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "jumpLandAnimClip", _descriptor9, _assertThisInitialized(_this));

          _this._rigidBody = void 0;
          _this._isMoving = false;
          _this._velocityScale = 1.0;
          _this._isInTheAir = false;
          _this._currentVerticalVelocity = 0.0;
          _this._anim = void 0;
          _this._tmp = v3();
          return _this;
        }

        var _proto = CharacterMovement.prototype;

        _proto.start = function start() {
          var _this2 = this;

          if (!this.mainCamera) {
            var _find;

            this.mainCamera = (_find = find('Main Camera')) == null ? void 0 : _find.getComponent(Camera);
          }

          this._rigidBody = this.node.getComponent(RigidBody);
          this._anim = this.node.getComponent(Animation);

          if (this._anim) {
            var clipArr = [this.idleAnimClip, this.moveAnimClip, this.jumpBeginAnimClip, this.jumpLoopAnimClip, this.jumpLandAnimClip];

            for (var i = 0; i < clipArr.length; ++i) {
              var clip = clipArr[i];

              if (clip) {
                if (!this._anim.getState(clip.name)) {
                  this._anim.addClip(clip);
                }
              }
            }

            if (this.idleAnimClip) {
              this._anim.play(this.idleAnimClip.name);
            }
          }

          EasyController.on(EasyControllerEvent.MOVEMENT, this.onMovement, this);
          EasyController.on(EasyControllerEvent.MOVEMENT_STOP, this.onMovementRelease, this);
          EasyController.on(EasyControllerEvent.BUTTON, this.onJump, this);
          var myCollider = this.getComponent(Collider);
          myCollider == null ? void 0 : myCollider.on('onCollisionEnter', function (target) {
            if (target.otherCollider != target.selfCollider) {
              _this2.onLand();
            }
          });
        };

        _proto.onDestroy = function onDestroy() {
          EasyController.off(EasyControllerEvent.MOVEMENT, this.onMovement, this);
          EasyController.off(EasyControllerEvent.MOVEMENT_STOP, this.onMovementRelease, this);
          EasyController.off(EasyControllerEvent.MOVEMENT_STOP, this.onJump, this);
        };

        _proto.update = function update(deltaTime) {
          if (this._isMoving) {
            this._tmp.set(this.node.forward);

            this._tmp.multiplyScalar(-1.0);

            this._tmp.multiplyScalar(this.velocity * this._velocityScale);

            if (this._rigidBody) {
              this._rigidBody.getLinearVelocity(v3_1);

              this._tmp.y = v3_1.y;

              this._rigidBody.setLinearVelocity(this._tmp);
            } else {
              this._tmp.multiplyScalar(deltaTime);

              this._tmp.add(this.node.position);

              this.node.setPosition(this._tmp);
            }
          }

          if (this._isInTheAir) {
            if (this.jumpBeginAnimClip && this._anim) {
              var state = this._anim.getState(this.jumpBeginAnimClip.name);

              if (state.isPlaying && state.current >= state.duration) {
                if (this.jumpLoopAnimClip) {
                  this._anim.crossFade(this.jumpLoopAnimClip.name);
                }
              }
            }

            if (!this._rigidBody) {
              this._currentVerticalVelocity -= 9.8 * deltaTime;
              var oldPos = this.node.position;
              var nextY = oldPos.y + this._currentVerticalVelocity * deltaTime;

              if (nextY <= 0) {
                this.onLand();
                nextY = 0.0;
              }

              this.node.setPosition(oldPos.x, nextY, oldPos.z);
            }
          }
        };

        _proto.onLand = function onLand() {
          this._isInTheAir = false;
          this._currentVerticalVelocity = 0.0;
          this._curJumpTimes = 0;

          if (this.moveAnimClip) {
            if (this._isMoving) {
              this._anim.crossFade(this.moveAnimClip.name, 0.5);
            } else {
              this._anim.crossFade(this.idleAnimClip.name, 0.5);
            }
          }
        };

        _proto.onMovement = function onMovement(degree, offset) {
          var cameraRotationY = 0;

          if (this.mainCamera) {
            cameraRotationY = this.mainCamera.node.eulerAngles.y;
          }

          this._velocityScale = offset; //2D界面是 正X 为 0， 3D场景是 正前方为0，所以需要 - 90 度。（顺时针转90度）

          this._tmp.set(0, cameraRotationY + degree - 90 + 180, 0);

          this.node.setRotationFromEuler(this._tmp);

          if (this._anim) {
            if (!this._isMoving && !this._isInTheAir) {
              if (this.moveAnimClip) {
                this._anim.crossFade(this.moveAnimClip.name, 0.1);
              }
            }

            if (this.moveAnimClip) {
              this._anim.getState(this.moveAnimClip.name).speed = this._velocityScale;
            }
          }

          this._isMoving = true;
        };

        _proto.onMovementRelease = function onMovementRelease() {
          if (!this._isInTheAir && this.idleAnimClip) {
            var _this$_anim;

            (_this$_anim = this._anim) == null ? void 0 : _this$_anim.crossFade(this.idleAnimClip.name, 0.5);
          }

          this._isMoving = false;

          if (this._rigidBody) {
            this._rigidBody.setLinearVelocity(Vec3.ZERO);
          }
        };

        _proto.onJump = function onJump(btnName) {
          console.log(btnName);

          if (btnName != 'btn_slot_0') {
            return;
          }

          if (this._curJumpTimes >= this.maxJumpTimes) {
            return;
          }

          if (this._curJumpTimes == 0 || true) {
            if (this.jumpBeginAnimClip) {
              var _this$_anim2;

              (_this$_anim2 = this._anim) == null ? void 0 : _this$_anim2.crossFade(this.jumpBeginAnimClip.name);
            }
          }

          this._curJumpTimes++;

          if (this._rigidBody) {
            this._rigidBody.getLinearVelocity(v3_1);

            v3_1.y = this.jumpVelocity;

            this._rigidBody.setLinearVelocity(v3_1);
          } else {
            this._currentVerticalVelocity = this.jumpVelocity;
          }

          this._isInTheAir = true;
        };

        return CharacterMovement;
      }(Component), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "mainCamera", [_dec2], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: null
      }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "velocity", [property], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 1.0;
        }
      }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "jumpVelocity", [property], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 1.0;
        }
      }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "maxJumpTimes", [property], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 0;
        }
      }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "idleAnimClip", [_dec3], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: null
      }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "moveAnimClip", [_dec4], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: null
      }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "jumpBeginAnimClip", [_dec5], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: null
      }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "jumpLoopAnimClip", [_dec6], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: null
      }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "jumpLandAnimClip", [_dec7], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: null
      })), _class2)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/CharacterMovement2D.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './EasyController.ts'], function (exports) {
  var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, _createClass, cclegacy, _decorator, v2, Vec2, Component, EasyController, EasyControllerEvent;

  return {
    setters: [function (module) {
      _applyDecoratedDescriptor = module.applyDecoratedDescriptor;
      _inheritsLoose = module.inheritsLoose;
      _initializerDefineProperty = module.initializerDefineProperty;
      _assertThisInitialized = module.assertThisInitialized;
      _createClass = module.createClass;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      v2 = module.v2;
      Vec2 = module.Vec2;
      Component = module.Component;
    }, function (module) {
      EasyController = module.EasyController;
      EasyControllerEvent = module.EasyControllerEvent;
    }],
    execute: function () {
      var _dec, _class, _class2, _descriptor, _descriptor2;

      cclegacy._RF.push({}, "6bdfa3YMw1PwobXdjV+aWTX", "CharacterMovement2D", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var tempV2 = v2();
      var CharacterMovement2D = exports('CharacterMovement2D', (_dec = ccclass('tgxCharacterMovement2D'), _dec(_class = (_class2 = /*#__PURE__*/function (_Component) {
        _inheritsLoose(CharacterMovement2D, _Component);

        function CharacterMovement2D() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _Component.call.apply(_Component, [this].concat(args)) || this;

          _initializerDefineProperty(_this, "moveSpeed", _descriptor, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "needRotation", _descriptor2, _assertThisInitialized(_this));

          _this._moveFactor = 0;
          _this._moveDir = v2(1, 0);
          return _this;
        }

        var _proto = CharacterMovement2D.prototype;

        _proto.start = function start() {
          EasyController.on(EasyControllerEvent.MOVEMENT, this.onMovement, this);
          EasyController.on(EasyControllerEvent.MOVEMENT_STOP, this.onMovementStop, this);
        };

        _proto.getRealSpeed = function getRealSpeed() {
          return this.moveSpeed * this._moveFactor;
        };

        _proto.onMovement = function onMovement(degree, strengthen) {
          var angle = degree / 180 * Math.PI;

          if (this.needRotation) {
            this.node.setRotationFromEuler(0, 0, degree);
          }

          this._moveDir.set(Math.cos(angle), Math.sin(angle));

          this._moveDir.normalize();

          this._moveFactor = strengthen;
        };

        _proto.onMovementStop = function onMovementStop() {
          this._moveFactor = 0;
        };

        _proto.onDestroy = function onDestroy() {
          EasyController.off(EasyControllerEvent.MOVEMENT, this.onMovement, this);
          EasyController.off(EasyControllerEvent.MOVEMENT_STOP, this.onMovementStop, this);
        };

        _proto.update = function update(deltaTime) {
          if (this._moveFactor) {
            Vec2.multiplyScalar(tempV2, this._moveDir, this.getRealSpeed() * deltaTime);
            var pos = this.node.position;
            this.node.setPosition(pos.x + tempV2.x, pos.y + tempV2.y, pos.z);
          }
        };

        _createClass(CharacterMovement2D, [{
          key: "moveDir",
          get: function get() {
            return this._moveDir;
          }
        }]);

        return CharacterMovement2D;
      }(Component), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "moveSpeed", [property], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 100;
        }
      }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "needRotation", [property], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return false;
        }
      })), _class2)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/CinestaionImpulseSource.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './CinestationData.ts', './CinestationMath.ts', './VCamNoise.ts', './NoiseGenerator.ts'], function (exports) {
  var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, cclegacy, _decorator, Component, cinestation, EPSILON, quarticDamp, VCamNoise, NoiseType, NoiseGenerator, NoiseProfile;

  return {
    setters: [function (module) {
      _applyDecoratedDescriptor = module.applyDecoratedDescriptor;
      _inheritsLoose = module.inheritsLoose;
      _initializerDefineProperty = module.initializerDefineProperty;
      _assertThisInitialized = module.assertThisInitialized;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      Component = module.Component;
    }, function (module) {
      cinestation = module.cinestation;
    }, function (module) {
      EPSILON = module.EPSILON;
      quarticDamp = module.quarticDamp;
    }, function (module) {
      VCamNoise = module.VCamNoise;
      NoiseType = module.NoiseType;
    }, function (module) {
      NoiseGenerator = module.NoiseGenerator;
      NoiseProfile = module.NoiseProfile;
    }],
    execute: function () {
      var _dec, _dec2, _dec3, _class, _class2, _descriptor, _descriptor2;

      cclegacy._RF.push({}, "a2054HVIkhGUYOxTPABQa7g", "CinestaionImpulseSource", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property,
          menu = _decorator.menu;

      function createImpulseNoise() {
        var noise = new VCamNoise();
        noise.type = NoiseType.Perlin;
        noise.profile = NoiseProfile.Shake_6D;
        noise.amplitudeGain = 0.5;
        noise.frequncyGain = 4;
        return noise;
      }

      var CinestaionImpulseSource = exports('CinestaionImpulseSource', (_dec = ccclass('CinestaionImpulseSource'), _dec2 = menu('Cinestation/CinestaionImpulseSource'), _dec3 = property({
        type: VCamNoise
      }), _dec(_class = _dec2(_class = (_class2 = /*#__PURE__*/function (_Component) {
        _inheritsLoose(CinestaionImpulseSource, _Component);

        function CinestaionImpulseSource() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _Component.call.apply(_Component, [this].concat(args)) || this;
          _this._generator = new NoiseGenerator();
          _this._impluseDecay = 0;

          _initializerDefineProperty(_this, "noise", _descriptor, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "decayTime", _descriptor2, _assertThisInitialized(_this));

          return _this;
        }

        var _proto = CinestaionImpulseSource.prototype;

        _proto.onLoad = function onLoad() {
          this.node.on("setImpulse", this._setImpulse, this);
        };

        _proto._setImpulse = function _setImpulse(v) {
          if (v === void 0) {
            v = 1;
          }

          this._impluseDecay = v;
        };

        _proto.onEnable = function onEnable() {
          cinestation.addImpulseSource(this);
        };

        _proto.onDisable = function onDisable() {
          cinestation.removeImpulseSource(this);
        };

        _proto.generateImpulse = function generateImpulse(deltaTime) {
          if (this._impluseDecay <= EPSILON) {
            return null;
          }

          this._impluseDecay = quarticDamp(this._impluseDecay, 0, this.decayTime, deltaTime);

          var values = this._generator.fractalNoise(this.noise, deltaTime);

          for (var i = 0; i < values.length; i++) {
            values[i] *= this._impluseDecay;
          }

          return values;
        };

        return CinestaionImpulseSource;
      }(Component), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "noise", [_dec3], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return createImpulseNoise();
        }
      }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "decayTime", [property], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 0.3;
        }
      })), _class2)) || _class) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/CinestationBlendDefinition.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './CinestationEasing.ts'], function (exports) {
  var _applyDecoratedDescriptor, _initializerDefineProperty, cclegacy, _decorator, Enum, LinearNone, QuadraticIn, QuadraticOut, QuadraticInOut, CubicIn, CubicOut, CubicInOut, QuarticIn, QuarticOut, QuarticInOut, QuinticIn, QuinticOut, QuinticInOut, SinusoidalIn, SinusoidalOut, SinusoidalInOut, ExponentialIn, ExponentialOut, ExponentialInOut, CircularIn, CircularOut, CircularInOut, ElasticIn, ElasticOut, ElasticInOut, BackIn, BackOut, BackInOut, BounceIn, BounceOut, BounceInOut;

  return {
    setters: [function (module) {
      _applyDecoratedDescriptor = module.applyDecoratedDescriptor;
      _initializerDefineProperty = module.initializerDefineProperty;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      Enum = module.Enum;
    }, function (module) {
      LinearNone = module.LinearNone;
      QuadraticIn = module.QuadraticIn;
      QuadraticOut = module.QuadraticOut;
      QuadraticInOut = module.QuadraticInOut;
      CubicIn = module.CubicIn;
      CubicOut = module.CubicOut;
      CubicInOut = module.CubicInOut;
      QuarticIn = module.QuarticIn;
      QuarticOut = module.QuarticOut;
      QuarticInOut = module.QuarticInOut;
      QuinticIn = module.QuinticIn;
      QuinticOut = module.QuinticOut;
      QuinticInOut = module.QuinticInOut;
      SinusoidalIn = module.SinusoidalIn;
      SinusoidalOut = module.SinusoidalOut;
      SinusoidalInOut = module.SinusoidalInOut;
      ExponentialIn = module.ExponentialIn;
      ExponentialOut = module.ExponentialOut;
      ExponentialInOut = module.ExponentialInOut;
      CircularIn = module.CircularIn;
      CircularOut = module.CircularOut;
      CircularInOut = module.CircularInOut;
      ElasticIn = module.ElasticIn;
      ElasticOut = module.ElasticOut;
      ElasticInOut = module.ElasticInOut;
      BackIn = module.BackIn;
      BackOut = module.BackOut;
      BackInOut = module.BackInOut;
      BounceIn = module.BounceIn;
      BounceOut = module.BounceOut;
      BounceInOut = module.BounceInOut;
    }],
    execute: function () {
      var _dec, _dec2, _dec3, _class, _class2, _descriptor, _descriptor2;

      cclegacy._RF.push({}, "cba4dde1xRHC72ACnFBatq1", "CinestationBlendDefinition", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var CinestationBlendStyle = exports('CinestationBlendStyle', /*#__PURE__*/function (CinestationBlendStyle) {
        CinestationBlendStyle[CinestationBlendStyle["Linear"] = 0] = "Linear";
        CinestationBlendStyle[CinestationBlendStyle["QuadraticIn"] = 1] = "QuadraticIn";
        CinestationBlendStyle[CinestationBlendStyle["QuadraticOut"] = 2] = "QuadraticOut";
        CinestationBlendStyle[CinestationBlendStyle["QuadraticInOut"] = 3] = "QuadraticInOut";
        CinestationBlendStyle[CinestationBlendStyle["CubicIn"] = 4] = "CubicIn";
        CinestationBlendStyle[CinestationBlendStyle["CubicOut"] = 5] = "CubicOut";
        CinestationBlendStyle[CinestationBlendStyle["CubicInOut"] = 6] = "CubicInOut";
        CinestationBlendStyle[CinestationBlendStyle["QuarticIn"] = 7] = "QuarticIn";
        CinestationBlendStyle[CinestationBlendStyle["QuarticOut"] = 8] = "QuarticOut";
        CinestationBlendStyle[CinestationBlendStyle["QuarticInOut"] = 9] = "QuarticInOut";
        CinestationBlendStyle[CinestationBlendStyle["QuinticIn"] = 10] = "QuinticIn";
        CinestationBlendStyle[CinestationBlendStyle["QuinticOut"] = 11] = "QuinticOut";
        CinestationBlendStyle[CinestationBlendStyle["QuinticInOut"] = 12] = "QuinticInOut";
        CinestationBlendStyle[CinestationBlendStyle["SinusoidalIn"] = 13] = "SinusoidalIn";
        CinestationBlendStyle[CinestationBlendStyle["SinusoidalOut"] = 14] = "SinusoidalOut";
        CinestationBlendStyle[CinestationBlendStyle["SinusoidalInOut"] = 15] = "SinusoidalInOut";
        CinestationBlendStyle[CinestationBlendStyle["ExponentialIn"] = 16] = "ExponentialIn";
        CinestationBlendStyle[CinestationBlendStyle["ExponentialOut"] = 17] = "ExponentialOut";
        CinestationBlendStyle[CinestationBlendStyle["ExponentialInOut"] = 18] = "ExponentialInOut";
        CinestationBlendStyle[CinestationBlendStyle["CircularIn"] = 19] = "CircularIn";
        CinestationBlendStyle[CinestationBlendStyle["CircularOut"] = 20] = "CircularOut";
        CinestationBlendStyle[CinestationBlendStyle["CircularInOut"] = 21] = "CircularInOut";
        CinestationBlendStyle[CinestationBlendStyle["ElasticIn"] = 22] = "ElasticIn";
        CinestationBlendStyle[CinestationBlendStyle["ElasticOut"] = 23] = "ElasticOut";
        CinestationBlendStyle[CinestationBlendStyle["ElasticInOut"] = 24] = "ElasticInOut";
        CinestationBlendStyle[CinestationBlendStyle["BackIn"] = 25] = "BackIn";
        CinestationBlendStyle[CinestationBlendStyle["BackOut"] = 26] = "BackOut";
        CinestationBlendStyle[CinestationBlendStyle["BackInOut"] = 27] = "BackInOut";
        CinestationBlendStyle[CinestationBlendStyle["BounceIn"] = 28] = "BounceIn";
        CinestationBlendStyle[CinestationBlendStyle["BounceOut"] = 29] = "BounceOut";
        CinestationBlendStyle[CinestationBlendStyle["BounceInOut"] = 30] = "BounceInOut";
        return CinestationBlendStyle;
      }({}));
      var CinestationBlendFunc = exports('CinestationBlendFunc', [LinearNone, QuadraticIn, QuadraticOut, QuadraticInOut, CubicIn, CubicOut, CubicInOut, QuarticIn, QuarticOut, QuarticInOut, QuinticIn, QuinticOut, QuinticInOut, SinusoidalIn, SinusoidalOut, SinusoidalInOut, ExponentialIn, ExponentialOut, ExponentialInOut, CircularIn, CircularOut, CircularInOut, ElasticIn, ElasticOut, ElasticInOut, BackIn, BackOut, BackInOut, BounceIn, BounceOut, BounceInOut]);
      var CinestationBlendDefinition = exports('CinestationBlendDefinition', (_dec = ccclass('CinestationBlendDefinition'), _dec2 = property({
        tooltip: "i18n:cinestation.CinestationBlendDefinition.style",
        type: Enum(CinestationBlendStyle)
      }), _dec3 = property({
        tooltip: "i18n:cinestation.CinestationBlendDefinition.time。"
      }), _dec(_class = (_class2 = function CinestationBlendDefinition() {
        _initializerDefineProperty(this, "style", _descriptor, this);

        _initializerDefineProperty(this, "time", _descriptor2, this);
      }, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "style", [_dec2], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return CinestationBlendStyle.QuarticInOut;
        }
      }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "time", [_dec3], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 4;
        }
      })), _class2)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/CinestationBrain.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './CinestationBlendDefinition.ts', './CinestationData.ts', './Visualization.ts'], function (exports) {
  var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, cclegacy, _decorator, Vec2, Material, Camera, utils, primitives, clamp01, lerp, CinestationBlendDefinition, CinestationBlendFunc, cinestation, Visualization;

  return {
    setters: [function (module) {
      _applyDecoratedDescriptor = module.applyDecoratedDescriptor;
      _inheritsLoose = module.inheritsLoose;
      _initializerDefineProperty = module.initializerDefineProperty;
      _assertThisInitialized = module.assertThisInitialized;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      Vec2 = module.Vec2;
      Material = module.Material;
      Camera = module.Camera;
      utils = module.utils;
      primitives = module.primitives;
      clamp01 = module.clamp01;
      lerp = module.lerp;
    }, function (module) {
      CinestationBlendDefinition = module.CinestationBlendDefinition;
      CinestationBlendFunc = module.CinestationBlendFunc;
    }, function (module) {
      cinestation = module.cinestation;
    }, function (module) {
      Visualization = module.Visualization;
    }],
    execute: function () {
      var _dec, _dec2, _dec3, _dec4, _class, _class2, _descriptor, _descriptor2;

      cclegacy._RF.push({}, "74f8188NbxO264ejP51X1vr", "CinestationBrain", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property,
          executionOrder = _decorator.executionOrder,
          executeInEditMode = _decorator.executeInEditMode;

      var __point = new Vec2();

      var CinestationBrain = exports('CinestationBrain', (_dec = ccclass('CinestationBrain'), _dec2 = executionOrder(-1), _dec3 = property(CinestationBlendDefinition), _dec4 = property(Material), _dec(_class = executeInEditMode(_class = _dec2(_class = (_class2 = /*#__PURE__*/function (_Visualization) {
        _inheritsLoose(CinestationBrain, _Visualization);

        function CinestationBrain() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _Visualization.call.apply(_Visualization, [this].concat(args)) || this;
          _this.__selectedCamera = null;
          _this._visibleInRuntime = true;

          _initializerDefineProperty(_this, "brainBlend", _descriptor, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "debugMaterial", _descriptor2, _assertThisInitialized(_this));

          return _this;
        }

        var _proto = CinestationBrain.prototype;

        _proto.onLoad = function onLoad() {
          cinestation.mainCamera = this.getComponent(Camera);
          cinestation.lerpTime = this.brainBlend.time;
          this._material = this.debugMaterial;
        };

        _proto._updateMesh = function _updateMesh(mesh) {
          return utils.createMesh(primitives.quad(), mesh);
        };

        _proto.update = function update(dt) {
          _Visualization.prototype.update.call(this, dt);

          var vcam = this._getActiveCamera();

          if (vcam == null) return;
          vcam.updateCamera(dt);
          var blendTime = cinestation.blendTime > -1 ? cinestation.blendTime : this.brainBlend.time;

          if (cinestation.lerpTime < blendTime) {
            cinestation.lerpTime += dt;
            var t = clamp01(cinestation.lerpTime / blendTime);
            var blendFunc = CinestationBlendFunc[this.brainBlend.style];

            if (blendFunc) {
              t = blendFunc(t);
            }

            this._lerpToMainCamera(vcam, t);
          } else {
            this._lerpToMainCamera(vcam, 1);
          }
        };

        _proto._getActiveCamera = function _getActiveCamera() {
          var vcam = cinestation.vcam = cinestation.getPriorCamera();
          this.visible = CC_EDITOR ? !!this.__selectedCamera : vcam && vcam.debug;

          this._setDebugProperties(CC_EDITOR ? this.__selectedCamera : vcam);

          return vcam;
        };

        _proto._setDebugProperties = function _setDebugProperties(vcam) {
          if (!this.debugMaterial) return;

          if (vcam && (CC_EDITOR || vcam.debug)) {
            if (vcam._composerChanged) {
              vcam._composerChanged = false;
              var composer = vcam.aim.composer;
              this.debugMaterial.setProperty("deadZoneWidth", composer.deadZoneWidth);
              this.debugMaterial.setProperty("deadZoneWidth", composer.deadZoneWidth);
              this.debugMaterial.setProperty("deadZoneHeight", composer.deadZoneHeight);
              this.debugMaterial.setProperty("softZoneWidth", composer.softZoneWidth);
              this.debugMaterial.setProperty("softZoneHeight", composer.softZoneHeight);
            }

            if (vcam.lookAt) {
              this.debugMaterial.setProperty("lookatPoint", cinestation.worldToScreen(__point, vcam.lookaheadPosition));
            }
          }
        };

        _proto._lerpToMainCamera = function _lerpToMainCamera(vcam, t) {
          if (CC_EDITOR) return;
          if (!cinestation.mainCamera) return;
          var from = cinestation.mainCamera,
              to = vcam;
          from.node.worldPosition = from.node.worldPosition.lerp(to.finalPosition, t);
          from.node.worldRotation = from.node.worldRotation.lerp(to.finalRotation, t);
          from.fov = lerp(from.fov, to.lens.fov, t);
          from.near = lerp(from.near, to.lens.near, t);
          from.far = lerp(from.far, to.lens.far, t);
        };

        return CinestationBrain;
      }(Visualization), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "brainBlend", [_dec3], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return new CinestationBlendDefinition();
        }
      }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "debugMaterial", [_dec4], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      })), _class2)) || _class) || _class) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/CinestationData.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc'], function (exports) {
  var _createClass, _createForOfIteratorHelperLoose, cclegacy, Vec3, director;

  return {
    setters: [function (module) {
      _createClass = module.createClass;
      _createForOfIteratorHelperLoose = module.createForOfIteratorHelperLoose;
    }, function (module) {
      cclegacy = module.cclegacy;
      Vec3 = module.Vec3;
      director = module.director;
    }],
    execute: function () {
      cclegacy._RF.push({}, "8557eOKYVBCHKKtG3JMOZtJ", "CinestationData", undefined);

      var __ndc = new Vec3();

      var CinestationData = /*#__PURE__*/function () {
        function CinestationData() {
          this._brain = null;
          this._vcam = null;
          this._vcamSolo = null;
          this._virtualCameras = [];
          this._impulseSources = [];
          this._input = true;
          this.lerpTime = 0;
          this.blendTime = -1;
          this.mainCamera = null;
        }

        var _proto = CinestationData.prototype;

        _proto.activeCamera = function activeCamera(vcam, blendTime) {
          if (blendTime === void 0) {
            blendTime = -1;
          }

          if (this._vcamSolo !== vcam) {
            this._vcamSolo = vcam;
            this.lerpTime = 0;
            this.blendTime = blendTime;
          }
        };

        _proto.addCamera = function addCamera(vcam) {
          var index = this._virtualCameras.indexOf(vcam);

          if (index === -1) {
            this._virtualCameras.push(vcam);
          }
        };

        _proto.removeCamera = function removeCamera(vcam) {
          var index = this._virtualCameras.indexOf(vcam);

          if (index !== -1) {
            this._virtualCameras.splice(index, 1);
          }

          if (this._vcamSolo === vcam) {
            this._vcamSolo = null;
          }
        };

        _proto.addImpulseSource = function addImpulseSource(source) {
          var index = this._impulseSources.indexOf(source);

          if (index === -1) {
            this._impulseSources.push(source);
          }
        };

        _proto.removeImpulseSource = function removeImpulseSource(source) {
          var index = this._impulseSources.indexOf(source);

          if (index !== -1) {
            this._impulseSources.splice(index, 1);
          }
        };

        _proto.getPriorCamera = function getPriorCamera() {
          return this._vcamSolo || this._virtualCameras.filter(function (v) {
            return v.isValid && v.enabled;
          }).sort(function (a, b) {
            return b.priority - a.priority;
          })[0];
        };

        _proto.worldToScreen = function worldToScreen(out, wpos) {
          if (this.mainCamera) {
            var camera = CC_EDITOR ? cce.Camera.camera.camera : this.mainCamera.camera;
            var ndc = Vec3.transformMat4(__ndc, wpos, camera.matViewProj);
            var uv = ndc.add(Vec3.ONE).multiplyScalar(0.5);
            out.set(uv.x, uv.y);
          }

          return out;
        };

        _createClass(CinestationData, [{
          key: "input",
          get: function get() {
            return this._input;
          },
          set: function set(v) {
            if (this._input !== v) {
              this._input = v;
              director.emit("VCam.enableInput", v);
            }
          }
        }, {
          key: "brain",
          get: function get() {
            return this._brain;
          },
          set: function set(v) {
            this._brain = v;
          }
        }, {
          key: "vcam",
          get: function get() {
            if (this._vcam === null) {
              this._vcam = this.getPriorCamera();
            }

            return this._vcam;
          },
          set: function set(v) {
            if (this._vcam !== v) {
              this._vcam = v;

              for (var _iterator = _createForOfIteratorHelperLoose(this._virtualCameras), _step; !(_step = _iterator()).done;) {
                var vcam = _step.value;
                if (vcam === v) vcam.onActive();else vcam.onDeActive();
              }
            }
          }
        }, {
          key: "vcams",
          get: function get() {
            return this._virtualCameras;
          }
        }, {
          key: "impulseSources",
          get: function get() {
            return this._impulseSources;
          }
        }]);

        return CinestationData;
      }();

      var cinestation = exports('cinestation', new CinestationData());

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/CinestationEasing.ts", ['cc'], function (exports) {
  var cclegacy;
  return {
    setters: [function (module) {
      cclegacy = module.cclegacy;
    }],
    execute: function () {
      exports({
        BackIn: BackIn,
        BackInOut: BackInOut,
        BackOut: BackOut,
        BounceIn: BounceIn,
        BounceInOut: BounceInOut,
        BounceOut: BounceOut,
        CircularIn: CircularIn,
        CircularInOut: CircularInOut,
        CircularOut: CircularOut,
        CubicIn: CubicIn,
        CubicInOut: CubicInOut,
        CubicOut: CubicOut,
        ElasticIn: ElasticIn,
        ElasticInOut: ElasticInOut,
        ElasticOut: ElasticOut,
        ExponentialIn: ExponentialIn,
        ExponentialInOut: ExponentialInOut,
        ExponentialOut: ExponentialOut,
        LinearNone: LinearNone,
        QuadraticIn: QuadraticIn,
        QuadraticInOut: QuadraticInOut,
        QuadraticOut: QuadraticOut,
        QuarticIn: QuarticIn,
        QuarticInOut: QuarticInOut,
        QuarticOut: QuarticOut,
        QuinticIn: QuinticIn,
        QuinticInOut: QuinticInOut,
        QuinticOut: QuinticOut,
        SinusoidalIn: SinusoidalIn,
        SinusoidalInOut: SinusoidalInOut,
        SinusoidalOut: SinusoidalOut
      });

      cclegacy._RF.push({}, "ac89cJg7jNAToTCRvLAJisF", "CinestationEasing", undefined);

      var PI = Math.PI,
          cos = Math.cos,
          sin = Math.sin,
          pow = Math.pow,
          sqrt = Math.sqrt;

      function LinearNone(k) {
        return k;
      }

      function QuadraticIn(k) {
        return k * k;
      }

      function QuadraticOut(k) {
        return k * (2 - k);
      }

      function QuadraticInOut(k) {
        if ((k *= 2) < 1) {
          return 0.5 * k * k;
        }

        return -0.5 * (--k * (k - 2) - 1);
      }

      function CubicIn(k) {
        return k * k * k;
      }

      function CubicOut(k) {
        return --k * k * k + 1;
      }

      function CubicInOut(k) {
        if ((k *= 2) < 1) {
          return 0.5 * k * k * k;
        }

        return 0.5 * ((k -= 2) * k * k + 2);
      }

      function QuarticIn(k) {
        return k * k * k * k;
      }

      function QuarticOut(k) {
        return 1 - --k * k * k * k;
      }

      function QuarticInOut(k) {
        if ((k *= 2) < 1) {
          return 0.5 * k * k * k * k;
        }

        return -0.5 * ((k -= 2) * k * k * k - 2);
      }

      function QuinticIn(k) {
        return k * k * k * k * k;
      }

      function QuinticOut(k) {
        return --k * k * k * k * k + 1;
      }

      function QuinticInOut(k) {
        if ((k *= 2) < 1) {
          return 0.5 * k * k * k * k * k;
        }

        return 0.5 * ((k -= 2) * k * k * k * k + 2);
      }

      function SinusoidalIn(k) {
        return 1 - cos(k * PI / 2);
      }

      function SinusoidalOut(k) {
        return sin(k * PI / 2);
      }

      function SinusoidalInOut(k) {
        return 0.5 * (1 - cos(PI * k));
      }

      function ExponentialIn(k) {
        return k === 0 ? 0 : pow(1024, k - 1);
      }

      function ExponentialOut(k) {
        return k === 1 ? 1 : 1 - pow(2, -10 * k);
      }

      function ExponentialInOut(k) {
        if (k === 0) {
          return 0;
        }

        if (k === 1) {
          return 1;
        }

        if ((k *= 2) < 1) {
          return 0.5 * pow(1024, k - 1);
        }

        return 0.5 * (-pow(2, -10 * (k - 1)) + 2);
      }

      function CircularIn(k) {
        return 1 - sqrt(1 - k * k);
      }

      function CircularOut(k) {
        return sqrt(1 - --k * k);
      }

      function CircularInOut(k) {
        if ((k *= 2) < 1) {
          return -0.5 * (sqrt(1 - k * k) - 1);
        }

        return 0.5 * (sqrt(1 - (k -= 2) * k) + 1);
      }

      function ElasticIn(k) {
        if (k === 0) {
          return 0;
        }

        if (k === 1) {
          return 1;
        }

        return -pow(2, 10 * (k - 1)) * sin((k - 1.1) * 5 * PI);
      }

      function ElasticOut(k) {
        if (k === 0) {
          return 0;
        }

        if (k === 1) {
          return 1;
        }

        return pow(2, -10 * k) * sin((k - 0.1) * 5 * PI) + 1;
      }

      function ElasticInOut(k) {
        if (k === 0) {
          return 0;
        }

        if (k === 1) {
          return 1;
        }

        k *= 2;

        if (k < 1) {
          return -0.5 * pow(2, 10 * (k - 1)) * sin((k - 1.1) * 5 * PI);
        }

        return 0.5 * pow(2, -10 * (k - 1)) * sin((k - 1.1) * 5 * PI) + 1;
      }

      function BackIn(k) {
        var s = 1.70158;
        return k * k * ((s + 1) * k - s);
      }

      function BackOut(k) {
        var s = 1.70158;
        return --k * k * ((s + 1) * k + s) + 1;
      }

      function BackInOut(k) {
        var s = 1.70158 * 1.525;

        if ((k *= 2) < 1) {
          return 0.5 * (k * k * ((s + 1) * k - s));
        }

        return 0.5 * ((k -= 2) * k * ((s + 1) * k + s) + 2);
      }

      function BounceIn(k) {
        return 1 - BounceOut(1 - k);
      }

      function BounceOut(k) {
        if (k < 1 / 2.75) {
          return 7.5625 * k * k;
        } else if (k < 2 / 2.75) {
          return 7.5625 * (k -= 1.5 / 2.75) * k + 0.75;
        } else if (k < 2.5 / 2.75) {
          return 7.5625 * (k -= 2.25 / 2.75) * k + 0.9375;
        } else {
          return 7.5625 * (k -= 2.625 / 2.75) * k + 0.984375;
        }
      }

      function BounceInOut(k) {
        if (k < 0.5) {
          return BounceIn(k * 2) * 0.5;
        }

        return BounceOut(k * 2 - 1) * 0.5 + 0.5;
      }

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/CinestationMath.ts", ['cc'], function (exports) {
  var cclegacy, Quat, clamp01, Mat4, Vec3, clamp, Vec2, Vec4;
  return {
    setters: [function (module) {
      cclegacy = module.cclegacy;
      Quat = module.Quat;
      clamp01 = module.clamp01;
      Mat4 = module.Mat4;
      Vec3 = module.Vec3;
      clamp = module.clamp;
      Vec2 = module.Vec2;
      Vec4 = module.Vec4;
    }],
    execute: function () {
      exports({
        FInterpConstantTo: FInterpConstantTo,
        FInterpTo: FInterpTo,
        QInterpConstantTo: QInterpConstantTo,
        QInterpTo: QInterpTo,
        Quat_exponentialDamp: Quat_exponentialDamp,
        Quat_quarticDamp: Quat_quarticDamp,
        Quat_smoothDamp: Quat_smoothDamp,
        VInterpConstantTo: VInterpConstantTo,
        VInterpTo: VInterpTo,
        Vec3_closeTo: Vec3_closeTo,
        Vec3_closestPointOnSegment: Vec3_closestPointOnSegment,
        Vec3_setFromMatrixColumn: Vec3_setFromMatrixColumn,
        Vec3_setFromSpherical: Vec3_setFromSpherical,
        Vec3_smoothDamp: Vec3_smoothDamp,
        Vec4_closeTo: Vec4_closeTo,
        closeTo: closeTo,
        exponentialDamp: exponentialDamp,
        quarticDamp: quarticDamp
      });

      cclegacy._RF.push({}, "7ff71Qvm1lPXa04xQGPtXd/", "CinestationMath", undefined);

      var sqrt = Math.sqrt,
          atan2 = Math.atan2,
          acos = Math.acos,
          sin = Math.sin,
          cos = Math.cos,
          floor = Math.floor,
          max = Math.max,
          min = Math.min,
          abs = Math.abs;

      Quat.lerp = function (out, a, b, t) {
        if (Quat.dot(a, b) < 0) {
          Quat.set(b, -b.x, -b.y, -b.z, -b.w);
        }

        t = clamp01(t);
        out.x = a.x + t * (b.x - a.x);
        out.y = a.y + t * (b.y - a.y);
        out.z = a.z + t * (b.z - a.z);
        out.w = a.w + t * (b.w - a.w);
        Quat.normalize(out, out);
        return out;
      };

      Quat.prototype.lerp = function (b, t) {
        return Quat.lerp(this, this, b, t);
      };

      Mat4.prototype.makeRotationAxis = function (axis, angle) {
        var c = Math.cos(angle);
        var s = Math.sin(angle);
        var t = 1 - c;
        var x = axis.x,
            y = axis.y,
            z = axis.z;
        var tx = t * x,
            ty = t * y;
        this.set(tx * x + c, tx * y - s * z, tx * z + s * y, 0, tx * y + s * z, ty * y + c, ty * z - s * x, 0, tx * z - s * y, ty * z + s * x, t * z * z + c, 0, 0, 0, 0, 1);
        return this;
      };

      var __delta = new Vec3();

      function VInterpTo(current, target, deltaTime, speed, out) {
        if (out === void 0) {
          out = current;
        }

        if (speed <= 0) {
          return out.set(target);
        }

        var dist = Vec3.subtract(__delta, target, current);

        if (dist.lengthSqr() < 1.e-4) {
          return out.set(target);
        }

        return out.set(current).add(dist.multiplyScalar(clamp01(deltaTime * speed)));
      }

      function VInterpConstantTo(current, target, deltaTime, speed, out) {
        if (out === void 0) {
          out = current;
        }

        var delta = Vec3.subtract(__delta, target, current);
        var deltaM = delta.length();
        var maxStep = speed * deltaTime;

        if (deltaM > maxStep) {
          if (maxStep > 0) {
            var deltaN = delta.multiplyScalar(1 / deltaM);
            return out.set(current).add(deltaN);
          } else {
            return out.set(current);
          }
        }

        return out.set(target);
      }

      function QInterpTo(current, target, deltaTime, speed, out) {
        if (out === void 0) {
          out = current;
        }

        if (speed <= 0) {
          return out.set(target);
        }

        if (current.equals(target, 1.e-4)) {
          return out.set(target);
        }

        return Quat.lerp(out, current, target, clamp01(speed * deltaTime));
      }

      function Quat_AngularDistance(a, b) {
        var innerProd = a.x * b.x + a.y * b.y + a.z * b.z + a.w * b.w;
        return acos(2 * innerProd * innerProd - 1);
      }

      function QInterpConstantTo(current, target, deltaTime, speed, out) {
        if (out === void 0) {
          out = current;
        }

        if (speed <= 0) {
          return out.set(target);
        }

        if (current.equals(target, 1.e-4)) {
          return out.set(target);
        }

        var deltaSpeed = clamp01(speed * deltaTime);
        var angularDist = max(Quat_AngularDistance(current, target), 1.e-4);
        return Quat.lerp(out, current, target, clamp01(deltaSpeed / angularDist));
      }

      function FInterpTo(current, target, deltaTime, speed) {
        if (speed <= 0) {
          return target;
        }

        var dist = target - current;

        if (abs(dist) < 1.e-4) {
          return target;
        }

        return current + clamp01(speed * deltaTime);
      }

      function FInterpConstantTo(current, target, deltaTime, speed) {
        var dist = target - current;

        if (abs(dist) < 1.e-4) {
          return target;
        }

        var step = speed * deltaTime;
        return current + clamp(dist, -step, step);
      }

      var EPSILON = exports('EPSILON', 1.e-4);
      var v3_1 = new Vec3();
      var v3_2 = new Vec3();

      function closeTo(a, b) {
        return abs(a - b) <= EPSILON;
      }

      function Vec4_closeTo(a, b) {
        return abs(a.x - b.x) + abs(a.y - b.y) + abs(a.z - b.z) + abs(a.w - b.w) <= EPSILON;
      }

      function Vec3_closeTo(a, b) {
        return abs(a.x - b.x) + abs(a.y - b.y) + abs(a.z - b.z) <= EPSILON;
      }

      function Vec3_closestPointOnSegment(p, s0, s1) {
        var s = Vec3.subtract(v3_1, s1, s0);
        var dd = Vec3.lengthSqr(s);

        if (dd < EPSILON) {
          return 0;
        }

        return clamp01(Vec3.dot(Vec3.subtract(v3_2, p, s0), s) / dd); //use sqrt(dd)?
      }

      function Vec3_setFromSpherical(out, s) {
        var radius = s.radius,
            phi = s.phi,
            theta = s.theta;
        var sinPhiRadius = sin(phi) * radius;
        out.x = sinPhiRadius * sin(theta);
        out.y = cos(phi) * radius;
        out.z = sinPhiRadius * cos(theta);
        return out;
      }

      function Vec3_setFromMatrixColumn(out, m, col) {
        switch (col) {
          case 0:
            out.x = m.m00;
            out.y = m.m01;
            out.z = m.m02;
            break;

          case 1:
            out.x = m.m04;
            out.y = m.m05;
            out.z = m.m06;
            break;

          case 2:
            out.x = m.m08;
            out.y = m.m09;
            out.z = m.m10;
            break;
        }

        return out;
      }

      var kNegligibleResidual = 0.01;
      var kLogNegligibleResidual = Math.log(kNegligibleResidual); // -4.605170186;

      function exponentialDamp(current, target, dampTime, deltaTime) {
        var k = -kLogNegligibleResidual / dampTime;
        return current + (target - current) * (1 - Math.exp(-k * deltaTime));
      }

      function quarticDamp(current, target, dampTime, deltaTime) {
        // cuve like exponentialDecay but cost less
        var t = 1 - min(deltaTime, dampTime) / dampTime;
        var tt = t * t;
        return current + (target - current) * (1 - tt * tt);
      }

      function Quat_exponentialDamp(out, current, target, dampTime, deltaTime) {
        return Quat.lerp(out, current, target, exponentialDamp(0, 1, dampTime, deltaTime));
      }

      function Quat_quarticDamp(out, current, target, dampTime, deltaTime) {
        return Quat.lerp(out, current, target, quarticDamp(0, 1, dampTime, deltaTime));
      }

      function smoothDamp(state, current, target, smoothTime, maxSpeed, deltaTime) {
        if (state.velocity === undefined) {
          state.velocity = 0;
        }

        smoothTime = Math.max(0.0001, smoothTime);
        var num = 2 / smoothTime;
        var num2 = num * deltaTime;
        var num3 = 1 / (1 + num2 + 0.48 * num2 * num2 + 0.235 * num2 * num2 * num2);
        var num4 = current - target;
        var num5 = target;
        var num6 = maxSpeed * smoothTime;
        num4 = clamp(num4, -num6, num6);
        target = current - num4;
        var num7 = (state.velocity + num * num4) * deltaTime;
        state.velocity = (state.velocity - num * num7) * num3;
        var num8 = target + (num4 + num7) * num3;

        if (num5 - current > 0 == num8 > num5) {
          num8 = num5;
          state.velocity = (num8 - num5) / deltaTime;
        }

        return num8;
      }

      function Vec3_smoothDamp(out, current, target, dampTime, deltaTime) {
        return Vec3.lerp(out, current, target, smoothDamp(out, 0, 1, dampTime, Infinity, deltaTime));
      }

      function Quat_smoothDamp(out, current, target, dampTime, deltaTime) {
        return Quat.lerp(out, current, target, smoothDamp(out, 0, 1, dampTime, Infinity, deltaTime));
      }

      var Spherical = exports('Spherical', /*#__PURE__*/function () {
        //水平旋转角度
        function Spherical(radius, phi, theta) {
          if (radius === void 0) {
            radius = 1;
          }

          if (phi === void 0) {
            phi = 0;
          }

          if (theta === void 0) {
            theta = 0;
          }

          this.radius = void 0;
          this.phi = void 0; //垂直旋转角度

          this.theta = void 0;
          this.radius = radius;
          this.phi = phi;
          this.theta = theta;
        }

        var _proto = Spherical.prototype;

        _proto.setFromVec3 = function setFromVec3(v) {
          return this.setFromCartesianCoords(v.x, v.y, v.z);
        };

        _proto.setFromCartesianCoords = function setFromCartesianCoords(x, y, z) {
          this.radius = sqrt(x * x + y * y + z * z);

          if (this.radius === 0) {
            this.theta = 0;
            this.phi = 0;
          } else {
            this.theta = atan2(x, z);
            this.phi = acos(clamp(y / this.radius, -1, 1));
          }

          return this;
        };

        return Spherical;
      }()); // Copyright (C) 2016 Keijiro Takahashi
      // https://mrl.cs.nyu.edu/~perlin/noise/

      var Perlin = exports('Perlin', /*#__PURE__*/function () {
        function Perlin() {}

        Perlin.Noise = function Noise(x, y, z) {
          var fade = Perlin._Fade;
          var grad = Perlin._Grad;
          var lerp = Perlin._Lerp;
          var p = Perlin._Permutation;

          if (y !== undefined && z !== undefined) {
            var xi = floor(x);
            var yi = floor(y);
            var zi = floor(z);
            var X = xi & 0xff; // FIND UNIT CUBE THAT

            var Y = yi & 0xff; // CONTAINS POINT.

            var Z = zi & 0xff;
            x -= xi; // FIND RELATIVE X,Y,Z

            y -= yi; // OF POINT IN CUBE.

            z -= zi;
            var u = fade(x); // COMPUTE FADE CURVES

            var v = fade(y); // FOR EACH OF X,Y,Z.

            var w = fade(z);
            var A = p[X] + Y,
                AA = p[A] + Z,
                AB = p[A + 1] + Z; // HASH COORDINATES OF

            var B = p[X + 1] + Y,
                BA = p[B] + Z,
                BB = p[B + 1] + Z; // THE 8 CUBE CORNERS,

            return lerp(w, lerp(v, lerp(u, grad(p[AA], x, y, z), // AND ADD
            grad(p[BA], x - 1, y, z)), // BLENDED
            lerp(u, grad(p[AB], x, y - 1, z), // RESULTS
            grad(p[BB], x - 1, y - 1, z))), // FROM  8
            lerp(v, lerp(u, grad(p[AA + 1], x, y, z - 1), // CORNERS
            grad(p[BA + 1], x - 1, y, z - 1)), // OF CUBE
            lerp(u, grad(p[AB + 1], x, y - 1, z - 1), grad(p[BB + 1], x - 1, y - 1, z - 1))));
          } else if (y !== undefined) {
            var _xi = floor(x);

            var _yi = floor(y);

            var _X = _xi & 0xff;

            var _Y = _yi & 0xff;

            x -= _xi;
            y -= _yi;

            var _u = fade(x);

            var _v = fade(y);

            var _A = p[_X] + _Y & 0xff;

            var _B = p[_X + 1] + _Y & 0xff;

            return lerp(_v, lerp(_u, grad(p[_A], x, y), grad(p[_B], x - 1, y)), lerp(_u, grad(p[_A + 1], x, y - 1), grad(p[_B + 1], x - 1, y - 1)));
          } else {
            var _xi2 = floor(x);

            var _X2 = _xi2 & 0xff;

            x -= _xi2;

            var _u2 = fade(x);

            return lerp(_u2, grad(p[_X2], x), grad(p[_X2 + 1], x - 1));
          }
        };

        Perlin.Fbm = function Fbm(octave, x, y, z) {
          var f = 0;
          var w = 0.5;
          var noise = Perlin.Noise;

          if (y !== undefined && z !== undefined) {
            for (var i = 0; i < octave; i++) {
              f += w * noise(x, y, z);
              x *= 2.0;
              y *= 2.0;
              z *= 2.0;
              w *= 0.5;
            }
          } else if (y !== undefined) {
            for (var _i = 0; _i < octave; _i++) {
              f += w * noise(x, y);
              x *= 2.0;
              y *= 2.0;
              w *= 0.5;
            }
          } else {
            for (var _i2 = 0; _i2 < octave; _i2++) {
              f += w * noise(x);
              x *= 2.0;
              w *= 0.5;
            }
          }

          return f;
        };

        Perlin._Fade = function _Fade(t) {
          return t * t * t * (t * (t * 6 - 15) + 10);
        };

        Perlin._Lerp = function _Lerp(t, a, b) {
          return a + t * (b - a);
        };

        Perlin._Grad = function _Grad(hash, x, y, z) {
          if (y !== undefined && z !== undefined) {
            var h = hash & 15; // CONVERT LO 4 BITS OF HASH CODE

            var u = h < 8 ? x : y,
                // INTO 12 GRADIENT DIRECTIONS.
            v = h < 4 ? y : h == 12 || h == 14 ? x : z;
            return ((h & 1) == 0 ? u : -u) + ((h & 2) == 0 ? v : -v);
          } else if (y !== undefined) {
            return ((hash & 1) == 0 ? x : -x) + ((hash & 2) == 0 ? y : -y);
          } else {
            return (hash & 1) == 0 ? x : -x;
          }
        };

        return Perlin;
      }());
      Perlin._Permutation = [151, 160, 137, 91, 90, 15, 131, 13, 201, 95, 96, 53, 194, 233, 7, 225, 140, 36, 103, 30, 69, 142, 8, 99, 37, 240, 21, 10, 23, 190, 6, 148, 247, 120, 234, 75, 0, 26, 197, 62, 94, 252, 219, 203, 117, 35, 11, 32, 57, 177, 33, 88, 237, 149, 56, 87, 174, 20, 125, 136, 171, 168, 68, 175, 74, 165, 71, 134, 139, 48, 27, 166, 77, 146, 158, 231, 83, 111, 229, 122, 60, 211, 133, 230, 220, 105, 92, 41, 55, 46, 245, 40, 244, 102, 143, 54, 65, 25, 63, 161, 1, 216, 80, 73, 209, 76, 132, 187, 208, 89, 18, 169, 200, 196, 135, 130, 116, 188, 159, 86, 164, 100, 109, 198, 173, 186, 3, 64, 52, 217, 226, 250, 124, 123, 5, 202, 38, 147, 118, 126, 255, 82, 85, 212, 207, 206, 59, 227, 47, 16, 58, 17, 182, 189, 28, 42, 223, 183, 170, 213, 119, 248, 152, 2, 44, 154, 163, 70, 221, 153, 101, 155, 167, 43, 172, 9, 129, 22, 39, 253, 19, 98, 108, 110, 79, 113, 224, 232, 178, 185, 112, 104, 218, 246, 97, 228, 251, 34, 242, 193, 238, 210, 144, 12, 191, 179, 162, 241, 81, 51, 145, 235, 249, 14, 239, 107, 49, 192, 214, 31, 181, 199, 106, 157, 184, 84, 204, 176, 115, 121, 50, 45, 127, 4, 150, 254, 138, 236, 205, 93, 222, 114, 67, 29, 24, 72, 243, 141, 128, 195, 78, 66, 215, 61, 156, 180, 151];
      var Spline = exports('Spline', /*#__PURE__*/function () {
        function Spline() {}
        /**
         * Compute the tangent of a 4-point 1-dimensional bezier spline
         * @param out 
         * @param t  How far along the spline (0...1)
         * @param p0 First point
         * @param p1 First tangent
         * @param p2 Second point
         * @param p3 Second tangent
         * @returns 
         */


        Spline.Bezier3 = function Bezier3(out, t, p0, p1, p2, p3) {
          t = clamp01(t);
          var d = 1 - t;
          var k0 = d * d * d;
          var k1 = 3 * d * d * t;
          var k2 = 3 * d * t * t;
          var k3 = t * t * t;
          return out.set(k0 * p0.x + k1 * p1.x + k2 * p2.x + k3 * p3.x, k0 * p0.y + k1 * p1.y + k2 * p2.y + k3 * p3.y, k0 * p0.z + k1 * p1.z + k2 * p2.z + k3 * p3.z);
        } // Use the Thomas algorithm to compute smooth tangent values for a spline.  
        // Resultant tangents guarantee second-order smoothness of the curve.
        ;

        Spline.ComputeSmoothControlPoints = function ComputeSmoothControlPoints(knot, ctrl1, ctrl2) {
          var numPoints = knot.length;

          if (numPoints <= 2) {
            if (numPoints == 2) {
              Vec4.lerp(ctrl1[0], knot[0], knot[1], 0.33333);
              Vec4.lerp(ctrl2[0], knot[0], knot[1], 0.66666);
            } else if (numPoints == 1) {
              ctrl1[0] = ctrl2[0] = knot[0];
            }

            return;
          }

          var a = new Array(numPoints);
          var b = new Array(numPoints);
          var c = new Array(numPoints);
          var r = new Array(numPoints);
          var knot_any = knot;
          var ctrl1_any = ctrl1;
          var ctrl2_any = ctrl2;
          var axis_list = ["x", "y", "z", "w"];

          for (var k = 0; k < 4; ++k) {
            var _axis = axis_list[k];
            var n = numPoints - 1; // Linear into the first segment

            a[0] = 0;
            b[0] = 2;
            c[0] = 1;
            r[0] = knot_any[0][_axis] + 2 * knot_any[1][_axis]; // Internal segments

            for (var i = 1; i < n - 1; ++i) {
              a[i] = 1;
              b[i] = 4;
              c[i] = 1;
              r[i] = 4 * knot_any[i][_axis] + 2 * knot_any[i + 1][_axis];
            } // Linear out of the last segment


            a[n - 1] = 2;
            b[n - 1] = 7;
            c[n - 1] = 0;
            r[n - 1] = 8 * knot_any[n - 1][_axis] + knot_any[n][_axis]; // Solve with Thomas algorithm

            for (var _i3 = 1; _i3 < n; ++_i3) {
              var m = a[_i3] / b[_i3 - 1];
              b[_i3] = b[_i3] - m * c[_i3 - 1];
              r[_i3] = r[_i3] - m * r[_i3 - 1];
            } // Compute ctrl1


            ctrl1_any[n - 1][_axis] = r[n - 1] / b[n - 1];

            for (var _i4 = n - 2; _i4 >= 0; --_i4) {
              ctrl1_any[_i4][_axis] = (r[_i4] - c[_i4] * ctrl1_any[_i4 + 1][_axis]) / b[_i4];
            } // Compute ctrl2 from ctrl1


            for (var _i5 = 0; _i5 < n; _i5++) {
              ctrl2_any[_i5][_axis] = 2 * knot_any[_i5 + 1][_axis] - ctrl1_any[_i5 + 1][_axis];
            }

            ctrl2_any[n - 1][_axis] = 0.5 * (knot_any[n][_axis] + ctrl1_any[n - 1][_axis]);
          }
        };

        Spline.ComputeSmoothControlPointsLooped = function ComputeSmoothControlPointsLooped(knot, ctrl1, ctrl2) {
          var numPoints = knot.length;

          if (numPoints < 2) {
            if (numPoints == 1) ctrl1[0] = ctrl2[0] = knot[0];
            return;
          }

          var margin = Math.min(4, numPoints - 1);
          var length = numPoints + 2 * margin;
          var knotLooped = new Array(length);
          var ctrl1Looped = new Array(length);
          var ctrl2Looped = new Array(length);

          for (var i = 0; i < margin; ++i) {
            knotLooped[i] = knot[numPoints - (margin - i)];
            knotLooped[numPoints + margin + i] = knot[i];
          }

          for (var _i6 = 0; _i6 < numPoints; ++_i6) {
            knotLooped[_i6 + margin] = knot[_i6];
          }

          for (var _i7 = 0; _i7 < length; ++_i7) {
            ctrl1Looped[_i7] = new Vec4();
            ctrl2Looped[_i7] = new Vec4();
          }

          Spline.ComputeSmoothControlPoints(knotLooped, ctrl1Looped, ctrl2Looped);

          for (var _i8 = 0; _i8 < numPoints; ++_i8) {
            ctrl1[_i8] = ctrl1Looped[_i8 + margin];
            ctrl2[_i8] = ctrl2Looped[_i8 + margin];
          }
        };

        return Spline;
      }());
      var Curve = exports('Curve', /*#__PURE__*/function () {
        function Curve() {
          this.type = "Curve";
          this.arcLengthDivisions = 200;
          this.cacheArcLengths = [];
          this.needsUpdate = false;
        }

        var _proto2 = Curve.prototype; // Virtual base class method to overwrite and implement in subclasses
        //	- t [0 .. 1]

        _proto2.getPoint = function getPoint(t, optionalTarget) {
          console.warn('THREE.Curve: .getPoint() not implemented.');
          return null;
        } // Get point at relative position in curve according to arc length
        // - u [0 .. 1]
        ;

        _proto2.getPointAt = function getPointAt(u, optionalTarget) {
          var t = this.getUtoTmapping(u);
          return this.getPoint(t, optionalTarget);
        } // Get sequence of points using getPoint( t )
        ;

        _proto2.getPoints = function getPoints(divisions) {
          if (divisions === void 0) {
            divisions = 5;
          }

          var points = [];

          for (var d = 0; d <= divisions; d++) {
            points.push(this.getPoint(d / divisions));
          }

          return points;
        } // Get sequence of points using getPointAt( u )
        ;

        _proto2.getSpacedPoints = function getSpacedPoints(divisions) {
          if (divisions === void 0) {
            divisions = 5;
          }

          var points = [];

          for (var d = 0; d <= divisions; d++) {
            points.push(this.getPointAt(d / divisions));
          }

          return points;
        } // Get total curve arc length
        ;

        _proto2.getLength = function getLength() {
          var lengths = this.getLengths();
          return lengths[lengths.length - 1];
        } // Get list of cumulative segment lengths
        ;

        _proto2.getLengths = function getLengths(divisions) {
          if (divisions === void 0) {
            divisions = this.arcLengthDivisions;
          }

          if (this.cacheArcLengths && this.cacheArcLengths.length === divisions + 1 && !this.needsUpdate) {
            return this.cacheArcLengths;
          }

          this.needsUpdate = false;
          var cache = [];
          var current,
              last = this.getPoint(0);
          var sum = 0;
          cache.push(0);

          for (var p = 1; p <= divisions; p++) {
            current = this.getPoint(p / divisions);
            sum += Vec3.distance(current, last);
            cache.push(sum);
            last = current;
          }

          this.cacheArcLengths = cache;
          return cache; // { sums: cache, sum: sum }; Sum is in the last element.
        };

        _proto2.updateArcLengths = function updateArcLengths() {
          this.needsUpdate = true;
          this.getLengths();
        } // Given u ( 0 .. 1 ), get a t to find p. This gives you points which are equidistant
        ;

        _proto2.getUtoTmapping = function getUtoTmapping(u, distance) {
          var arcLengths = this.getLengths();
          var i = 0;
          var il = arcLengths.length;
          var targetArcLength; // The targeted u distance value to get

          if (distance) {
            targetArcLength = distance;
          } else {
            targetArcLength = u * arcLengths[il - 1];
          } // binary search for the index with largest value smaller than target u distance


          var low = 0,
              high = il - 1,
              comparison;

          while (low <= high) {
            i = Math.floor(low + (high - low) / 2); // less likely to overflow, though probably not issue here, JS doesn't really have integers, all numbers are floats

            comparison = arcLengths[i] - targetArcLength;

            if (comparison < 0) {
              low = i + 1;
            } else if (comparison > 0) {
              high = i - 1;
            } else {
              high = i;
              break; // DONE
            }
          }

          i = high;

          if (arcLengths[i] === targetArcLength) {
            return i / (il - 1);
          } // we could get finer grain at lengths, or use simple interpolation between two points


          var lengthBefore = arcLengths[i];
          var lengthAfter = arcLengths[i + 1];
          var segmentLength = lengthAfter - lengthBefore; // determine where we are between the 'before' and 'after' points

          var segmentFraction = (targetArcLength - lengthBefore) / segmentLength; // add that fractional amount to t

          var t = (i + segmentFraction) / (il - 1);
          return t;
        } // Returns a unit vector tangent at t
        // In case any sub curve does not implement its tangent derivation,
        // 2 points a small delta apart will be used to find its gradient
        // which seems to give a reasonable approximation
        ;

        _proto2.getTangent = function getTangent(t, optionalTarget) {
          var delta = 0.0001;
          var t1 = t - delta;
          var t2 = t + delta; // Capping in case of danger

          if (t1 < 0) t1 = 0;
          if (t2 > 1) t2 = 1;
          var pt1 = this.getPoint(t1);
          var pt2 = this.getPoint(t2);
          var tangent = optionalTarget || (pt1 instanceof Vec2 ? new Vec2() : new Vec3());
          tangent.set(pt2).subtract(pt1).normalize();
          return tangent;
        };

        _proto2.getTangentAt = function getTangentAt(u, optionalTarget) {
          var t = this.getUtoTmapping(u);
          return this.getTangent(t, optionalTarget);
        };

        _proto2.computeFrenetFrames = function computeFrenetFrames(segments, closed) {
          // see http://www.cs.indiana.edu/pub/techreports/TR425.pdf
          var normal = new Vec3();
          var tangents = [];
          var normals = [];
          var binormals = [];
          var vec = new Vec3();
          var mat = new Mat4(); // compute the tangent vectors for each segment on the curve

          for (var i = 0; i <= segments; i++) {
            var u = i / segments;
            tangents[i] = this.getTangentAt(u, new Vec3());
          } // select an initial normal vector perpendicular to the first tangent vector,
          // and in the direction of the minimum tangent xyz component


          normals[0] = new Vec3();
          binormals[0] = new Vec3();
          var min = Number.MAX_VALUE;
          var tx = Math.abs(tangents[0].x);
          var ty = Math.abs(tangents[0].y);
          var tz = Math.abs(tangents[0].z);

          if (tx <= min) {
            min = tx;
            normal.set(1, 0, 0);
          }

          if (ty <= min) {
            min = ty;
            normal.set(0, 1, 0);
          }

          if (tz <= min) {
            normal.set(0, 0, 1);
          }

          Vec3.cross(vec, tangents[0], normal).normalize();
          Vec3.cross(normals[0], tangents[0], vec);
          Vec3.cross(binormals[0], tangents[0], normals[0]); // compute the slowly-varying normal and binormal vectors for each segment on the curve

          for (var _i9 = 1; _i9 <= segments; _i9++) {
            normals[_i9] = normals[_i9 - 1].clone();
            binormals[_i9] = binormals[_i9 - 1].clone();
            Vec3.cross(vec, tangents[_i9 - 1], tangents[_i9]);

            if (vec.length() > Number.EPSILON) {
              vec.normalize();
              var theta = Math.acos(clamp(tangents[_i9 - 1].dot(tangents[_i9]), -1, 1)); // clamp for floating pt errors

              normals[_i9].transformMat4(mat.makeRotationAxis(vec, theta));
            }

            Vec3.cross(binormals[_i9], tangents[_i9], normals[_i9]);
          } // if the curve is closed, postprocess the vectors so the first and last normal vectors are the same


          if (closed === true) {
            var _theta = Math.acos(clamp(normals[0].dot(normals[segments]), -1, 1));

            _theta /= segments;

            if (tangents[0].dot(Vec3.cross(vec, normals[0], normals[segments])) > 0) {
              _theta = -_theta;
            }

            for (var _i10 = 1; _i10 <= segments; _i10++) {
              // twist a little...
              normals[_i10].transformMat4(mat.makeRotationAxis(tangents[_i10], _theta * _i10));

              Vec3.cross(binormals[_i10], tangents[_i10], normals[_i10]);
            }
          }

          return {
            tangents: tangents,
            normals: normals,
            binormals: binormals
          };
        };

        _proto2.clone = function clone() {
          return new Curve().copy(this);
        };

        _proto2.copy = function copy(source) {
          this.arcLengthDivisions = source.arcLengthDivisions;
          return this;
        };

        return Curve;
      }());

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/CinestationShareAssets.ts", ['cc'], function (exports) {
  var cclegacy, Material, game, Game, gfx;
  return {
    setters: [function (module) {
      cclegacy = module.cclegacy;
      Material = module.Material;
      game = module.game;
      Game = module.Game;
      gfx = module.gfx;
    }],
    execute: function () {
      cclegacy._RF.push({}, "53319txRnNOJ7hdwo/uO++u", "CinestationShareAssets", undefined);

      var CinestationShareAssets = /*#__PURE__*/function () {
        function CinestationShareAssets() {
          this.lineMaterial = void 0;
          this.lineMaterial = new Material();
          this.lineMaterial._uuid = "cinestation-line-material";
          game.on(Game.EVENT_GAME_INITED, this._compile, this);
        }

        var _proto = CinestationShareAssets.prototype;

        _proto._compile = function _compile() {
          this.lineMaterial.initialize({
            effectName: "builtin-unlit",
            defines: {
              USE_VERTEX_COLOR: true
            },
            states: {
              primitive: gfx.PrimitiveMode.LINE_LIST
            }
          });
          this.lineMaterial.passes.forEach(function (v) {
            return v.tryCompile();
          });
        };

        return CinestationShareAssets;
      }();

      var cinestationShareAssets = exports('cinestationShareAssets', new CinestationShareAssets());

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/CinestationSmoothPath.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './CinestationMath.ts', './Visualization.ts'], function (exports) {
  var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, _createForOfIteratorHelperLoose, _createClass, cclegacy, _decorator, Vec3, Vec2, Quat, Node, clamp, Vec4, Color, utils, Spline, Vec3_closestPointOnSegment, Visualization;

  return {
    setters: [function (module) {
      _applyDecoratedDescriptor = module.applyDecoratedDescriptor;
      _inheritsLoose = module.inheritsLoose;
      _initializerDefineProperty = module.initializerDefineProperty;
      _assertThisInitialized = module.assertThisInitialized;
      _createForOfIteratorHelperLoose = module.createForOfIteratorHelperLoose;
      _createClass = module.createClass;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      Vec3 = module.Vec3;
      Vec2 = module.Vec2;
      Quat = module.Quat;
      Node = module.Node;
      clamp = module.clamp;
      Vec4 = module.Vec4;
      Color = module.Color;
      utils = module.utils;
    }, function (module) {
      Spline = module.Spline;
      Vec3_closestPointOnSegment = module.Vec3_closestPointOnSegment;
    }, function (module) {
      Visualization = module.Visualization;
    }],
    execute: function () {
      var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;

      cclegacy._RF.push({}, "234b1QMPE9PjaikyMraAdcc", "CinestationSmoothPath", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property,
          menu = _decorator.menu,
          executeInEditMode = _decorator.executeInEditMode;

      var __v0 = new Vec3();

      var __v1 = new Vec3();

      var __dis = new Vec3();

      var __indices = new Vec2();

      var __rotation = new Quat();

      var CinestationSmoothPath = exports('CinestationSmoothPath', (_dec = ccclass('CinestationSmoothPath'), _dec2 = menu('Cinestation/CinestationSmoothPath'), _dec3 = property({
        visible: false
      }), _dec4 = property({
        visible: false
      }), _dec5 = property({
        visible: false
      }), _dec6 = property({
        visible: false
      }), _dec7 = property({
        visible: false
      }), _dec8 = property({
        range: [2, 100],
        step: 5,
        slide: true
      }), _dec(_class = _dec2(_class = executeInEditMode(_class = (_class2 = /*#__PURE__*/function (_Visualization) {
        _inheritsLoose(CinestationSmoothPath, _Visualization);

        function CinestationSmoothPath() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _Visualization.call.apply(_Visualization, [this].concat(args)) || this;

          _initializerDefineProperty(_this, "_resolution", _descriptor, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "_looped", _descriptor2, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "_localControlPoints1", _descriptor3, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "_localControlPoints2", _descriptor4, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "_localUpVectors", _descriptor5, _assertThisInitialized(_this));

          return _this;
        }

        var _proto = CinestationSmoothPath.prototype;

        _proto.onLoad = function onLoad() {
          if (CC_EDITOR) {
            this.node.on(Node.EventType.CHILD_ADDED, this._onChildAdded, this);
            this.node.on(Node.EventType.CHILD_REMOVED, this._onNodeChanged, this);

            for (var _iterator = _createForOfIteratorHelperLoose(this.node.children), _step; !(_step = _iterator()).done;) {
              var child = _step.value;

              this._onNodeChanged(child);
            }
          }
        };

        _proto._onChildAdded = function _onChildAdded(node) {
          var children = this.node.children;
          var length = children.length;

          if (length === 2) {
            node.position = new Vec3(children[0].position).add3f(0, 0, 5);
          } else if (length > 2) {
            var p0 = children[length - 3].position;
            var p1 = children[length - 2].position;
            var offset = new Vec3(p1).subtract(p0).normalize().multiplyScalar(5);
            node.position = offset.add(p1);
          }

          this._onNodeChanged(node);
        };

        _proto._onNodeChanged = function _onNodeChanged(node) {
          var _this2 = this;

          node.on(Node.EventType.TRANSFORM_CHANGED, function () {
            _this2._modelChanged = true;
          });
          this._modelChanged = true;
        };

        _proto._getBoundingIndices = function _getBoundingIndices(t, out) {
          t = this._clampProgress(t);
          var children = this.node.children;
          var numWaypoints = children.length;

          if (numWaypoints < 2) {
            out.x = out.y = 0;
          } else {
            out.x = Math.floor(t);

            if (out.x >= numWaypoints) {
              // Only true if looped
              t -= this._maxProgress;
              out.x = 0;
            }

            out.y = out.x + 1;

            if (out.y == numWaypoints) {
              if (this.looped) {
                out.y = 0;
              } else {
                --out.y;
                --out.x;
              }
            }
          }

          return t;
        };

        _proto._clampProgress = function _clampProgress(t) {
          var maxPos = this._maxProgress;

          if (this._looped && maxPos > 0) {
            t = t % maxPos;

            if (t < 0) {
              t += maxPos;
            }

            return t;
          }

          return clamp(t, 0, maxPos);
        };

        _proto.evaluatePosition = function evaluatePosition(out, t) {
          return Vec3.transformMat4(out, this.evaluateLocalPosition(out, t), this.node.worldMatrix);
        };

        _proto.evaluteUp = function evaluteUp(out, t) {
          return Vec3.transformQuat(out, this.evaluteLocalUp(out, t), this.node.worldRotation);
        };

        _proto.evaluateLocalPosition = function evaluateLocalPosition(out, t) {
          var children = this.node.children;

          if (children.length === 0) {
            return out.set(this.node.position);
          }

          var indices = __indices.set(0, 0);

          t = this._getBoundingIndices(t, indices);

          if (indices.x === indices.y) {
            return out.set(children[indices.x].position);
          } else {
            return Spline.Bezier3(out, t - indices.x, children[indices.x].position, this._localControlPoints1[indices.x], this._localControlPoints2[indices.x], children[indices.y].position);
          }
        };

        _proto.evaluateLocalRotation = function evaluateLocalRotation(out, t) {
          var children = this.node.children;

          if (children.length === 0) {
            return out.set(this.node.rotation);
          }

          var indices = __indices.set(0, 0);

          t = this._getBoundingIndices(t, indices);

          if (indices.x === indices.y) {
            return out.set(children[indices.x].rotation);
          } else {
            return out.set(children[indices.x].rotation).lerp(children[indices.y].rotation, t - indices.x);
          }
        };

        _proto.evaluteLocalUp = function evaluteLocalUp(out, t) {
          var children = this.node.children;

          if (children.length === 0) {
            return out.set(Vec3.UP);
          }

          var indices = __indices.set(0, 0);

          t = this._getBoundingIndices(t, indices);

          if (indices.x === indices.y) {
            return out.set(this._localUpVectors[indices.x]);
          } else {
            return out.set(this._localUpVectors[indices.x]).lerp(this._localUpVectors[indices.y], t - indices.x);
          }
        };

        _proto.findClosestPoint = function findClosestPoint(p, startSegment, searchRadius, stepPerSegment) {
          var start = this._minProgress,
              end = this._maxProgress;

          if (searchRadius >= 0) {
            var r = Math.floor(Math.min(searchRadius, Math.max(1, (end - start) / 2)));
            start = startSegment - r;
            end = startSegment + r + 1;

            if (!this.looped) {
              start = Math.max(start, this._minProgress);
              end = Math.min(end, this._maxProgress);
            }
          }

          var bestPos = startSegment,
              bestDistance = Infinity;
          var stepSize = 1 / clamp(stepPerSegment, 1, 100);
          var v0 = this.evaluatePosition(__v0, 0);

          for (var f = start + stepSize; f <= end; f += stepSize) {
            var v1 = this.evaluatePosition(__v1, f);
            var t = Vec3_closestPointOnSegment(p, v0, v1);
            var d = Vec3.squaredDistance(p, Vec3.lerp(__dis, v0, v1, t));

            if (d < bestDistance) {
              bestDistance = d;
              bestPos = f - (1 - t) * stepSize;
            }

            v0.set(v1);
          }

          return bestPos;
        };

        _proto._updateControlPoints = function _updateControlPoints() {
          var children = this.node.children;
          var numPoints = children.length;

          if (numPoints > 1) {
            var p1 = new Array(numPoints);
            var p2 = new Array(numPoints);
            var K = new Array(numPoints);

            for (var i = 0; i < numPoints; i++) {
              p1[i] = new Vec4();
              p2[i] = new Vec4();
              var p = children[i].position;
              K[i] = new Vec4(p.x, p.y, p.z, 0);
            }

            if (this.looped) {
              Spline.ComputeSmoothControlPointsLooped(K, p1, p2);
            } else {
              Spline.ComputeSmoothControlPoints(K, p1, p2);
            }

            this._localControlPoints1.length = numPoints;
            this._localControlPoints2.length = numPoints;

            for (var _i = 0; _i < numPoints; _i++) {
              this._localControlPoints1[_i] = new Vec3(p1[_i].x, p1[_i].y, p1[_i].z);
              this._localControlPoints2[_i] = new Vec3(p2[_i].x, p2[_i].y, p2[_i].z);
            }
          }
        };

        _proto._updateUpVectors = function _updateUpVectors() {
          this._localUpVectors = [];
          var children = this.node.children,
              n = children.length;

          for (var i = 0; i + 1 < n; i++) {
            var v = Vec3.subtract(new Vec3(), children[i + 1].position, children[i].position);
            var bn = Vec3.cross(new Vec3(), v, Vec3.UP);
            var up = bn.cross(v);
            Vec3.transformQuat(up, up, children[i].rotation);
            this._localUpVectors[i] = up.normalize();
          }

          if (n >= 2) {
            var _up = new Vec3().set(this._localUpVectors[n - 2]);

            Vec3.transformQuat(_up, _up, children[n - 1].rotation);
            this._localUpVectors[n - 1] = _up.normalize();
          }
        };

        _proto._updateMesh = function _updateMesh(mesh) {
          this._updateControlPoints();

          this._updateUpVectors();

          var vertices = [];
          var binormals = [];
          var children = this.node.children;
          var step = 1 / Math.max(2, this._resolution);

          for (var t = 0; t < children.length; t += step) {
            vertices.push(this.evaluateLocalPosition(new Vec3(), t));

            if (vertices.length >= 2) {
              var p0 = vertices[vertices.length - 2];
              var p1 = vertices[vertices.length - 1];
              var v0 = Vec3.subtract(new Vec3(), p1, p0);
              var bn = v0.cross(Vec3.UP).normalize();
              Vec3.transformQuat(bn, bn, this.evaluateLocalRotation(__rotation, t));
              binormals.push(bn);
            }
          }

          var positions = [],
              colors = [];
          var point0s = [],
              point1s = [];
          var greenColor = new Color(0, 1, 0, 1);
          var grayColor = new Color(0.3, 0.3, 0.3, 1);

          function linkPoints(p0, p1, col) {
            if (!(p0 && p1)) return;
            Vec3.toArray(positions, p0, positions.length);
            Vec3.toArray(positions, p1, positions.length);
            colors.push(col.r, col.g, col.b, col.a);
            colors.push(col.r, col.g, col.b, col.a);
          }

          for (var i = 0; i + 1 < vertices.length; i++) {
            var _p = vertices[i];
            var _p2 = vertices[i + 1];
            var _bn = binormals[i];
            var offset = new Vec3().set(_bn).multiplyScalar(0.1);

            if (i === 0) {
              point0s.push(new Vec3(_p).subtract(offset));
              point1s.push(new Vec3(_p).add(offset));
            }

            point0s.push(new Vec3(_p2).subtract(offset));
            point1s.push(new Vec3(_p2).add(offset));
            linkPoints(new Vec3(_p).subtract(offset), new Vec3(_p).add(offset), greenColor);
            linkPoints(_p, _p2, grayColor);
          }

          if (this._looped) {
            linkPoints(vertices[vertices.length - 1], vertices[0], grayColor);
          }

          for (var _i2 = 0; _i2 + 1 < point0s.length; _i2++) {
            linkPoints(point0s[_i2], point0s[_i2 + 1], greenColor);
          }

          if (this._looped) {
            linkPoints(point0s[point0s.length - 1], point0s[0], greenColor);
          }

          for (var _i3 = 0; _i3 + 1 < point1s.length; _i3++) {
            linkPoints(point1s[_i3], point1s[_i3 + 1], greenColor);
          }

          if (this._looped) {
            linkPoints(point1s[point1s.length - 1], point1s[0], greenColor);
          }

          return utils.createMesh({
            positions: positions,
            colors: colors
          }, mesh);
        };

        _createClass(CinestationSmoothPath, [{
          key: "resolution",
          get: function get() {
            return this._resolution;
          },
          set: function set(v) {
            this._resolution = v;
            this._modelChanged = true;
          }
        }, {
          key: "looped",
          get: function get() {
            return this._looped;
          },
          set: function set(v) {
            if (this._looped !== v) {
              this._looped = v;
              this._modelChanged = true;
            }
          }
        }, {
          key: "_minProgress",
          get: function get() {
            return 0;
          }
        }, {
          key: "_maxProgress",
          get: function get() {
            var count = this.node.children.length - 1;
            if (count < 1) return 0;
            return this.looped ? count + 1 : count;
          }
        }]);

        return CinestationSmoothPath;
      }(Visualization), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "_resolution", [_dec3], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 10;
        }
      }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "_looped", [_dec4], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return false;
        }
      }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "_localControlPoints1", [_dec5], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return [];
        }
      }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "_localControlPoints2", [_dec6], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return [];
        }
      }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "_localUpVectors", [_dec7], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return [];
        }
      }), _applyDecoratedDescriptor(_class2.prototype, "resolution", [_dec8], Object.getOwnPropertyDescriptor(_class2.prototype, "resolution"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "looped", [property], Object.getOwnPropertyDescriptor(_class2.prototype, "looped"), _class2.prototype)), _class2)) || _class) || _class) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/CircleItem.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './Utils.ts'], function (exports) {
  var _inheritsLoose, _asyncToGenerator, _regeneratorRuntime, cclegacy, _decorator, Vec3, tween, Component, Sprite, UITransform, Label, loadImg;

  return {
    setters: [function (module) {
      _inheritsLoose = module.inheritsLoose;
      _asyncToGenerator = module.asyncToGenerator;
      _regeneratorRuntime = module.regeneratorRuntime;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      Vec3 = module.Vec3;
      tween = module.tween;
      Component = module.Component;
      Sprite = module.Sprite;
      UITransform = module.UITransform;
      Label = module.Label;
    }, function (module) {
      loadImg = module.loadImg;
    }],
    execute: function () {
      var _dec, _class;

      cclegacy._RF.push({}, "d9d46cMy2RF4YWSXbMwyveR", "CircleItem", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var LOOP_TYPE_MAP = {
        1: {
          img: "https://yun.duiba.com.cn/polaris/circle_tong.4eef1ace6c6a56dcbcb3dc256bac08305078b864.png",
          name: "青铜财富圈"
        },
        2: {
          img: "https://yun.duiba.com.cn/polaris/circle_yin.230648fcd45b29a6b69c9d793edf3af61734802e.png",
          name: "白银财富圈"
        },
        3: {
          img: "https://yun.duiba.com.cn/polaris/circle_jin.3107e335d2bcceb028cd4d2d6dbabff200091b32.png",
          name: "黄金财富圈"
        },
        4: {
          img: "https://yun.duiba.com.cn/polaris/circle_feicui.c9c20fc9012881379ae5a5c864286cf2e005ac99.png",
          name: "翡翠财富圈"
        },
        5: {
          img: "https://yun.duiba.com.cn/polaris/circle_zhaocai.a149f14ed4c30b4471faa0c72d0da8a5756d0fd0.png",
          name: "财神财富圈"
        }
      };
      var POSITION = {
        0: {
          x: -840,
          scale: 0.7
        },
        1: {
          x: -420,
          scale: 0.7
        },
        2: {
          x: 0,
          scale: 1
        },
        3: {
          x: 420,
          scale: 0.7
        },
        4: {
          x: 840,
          scale: 0.7
        }
      };
      var CircleItem = exports('CircleItem', (_dec = ccclass('CircleItem'), _dec(_class = /*#__PURE__*/function (_Component) {
        _inheritsLoose(CircleItem, _Component);

        function CircleItem() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _Component.call.apply(_Component, [this].concat(args)) || this;
          /** 当前索引 */

          _this.index = 0;
          /** 数据索引 */

          _this.dataIndex = 0;
          /** 数据项 */

          _this.data = {};
          return _this;
        }

        var _proto = CircleItem.prototype;

        _proto.start = function start() {};

        _proto.update = function update(deltaTime) {};
        /** 更新信息 */


        _proto.updateInfo = /*#__PURE__*/function () {
          var _updateInfo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
            var _LOOP_TYPE_MAP$data$l, _data, _LOOP_TYPE_MAP$data$l2, _data2;

            var circle, res;
            return _regeneratorRuntime().wrap(function _callee$(_context) {
              while (1) switch (_context.prev = _context.next) {
                case 0:
                  if (data === void 0) {
                    data = {};
                  }

                  this.data = data;
                  circle = this.node.getChildByName("Circle");
                  _context.next = 5;
                  return loadImg(LOOP_TYPE_MAP == null || (_LOOP_TYPE_MAP$data$l = LOOP_TYPE_MAP[(_data = data) == null ? void 0 : _data.loopType]) == null ? void 0 : _LOOP_TYPE_MAP$data$l.img, circle.getComponent(UITransform).width);

                case 5:
                  res = _context.sent;
                  circle.getComponent(Sprite).spriteFrame = res == null ? void 0 : res.spriteFrame;
                  circle.getComponent(UITransform).width /= (res == null ? void 0 : res.scale) || 1;
                  circle.getComponent(UITransform).height /= (res == null ? void 0 : res.scale) || 1;
                  this.node.getChildByName("Name").getComponent(Label).string = LOOP_TYPE_MAP == null || (_LOOP_TYPE_MAP$data$l2 = LOOP_TYPE_MAP[(_data2 = data) == null ? void 0 : _data2.loopType]) == null ? void 0 : _LOOP_TYPE_MAP$data$l2.name;

                case 10:
                case "end":
                  return _context.stop();
              }
            }, _callee, this);
          }));

          function updateInfo(_x) {
            return _updateInfo.apply(this, arguments);
          }

          return updateInfo;
        }()
        /** 更新位置 */
        ;

        _proto.updateItem = function updateItem(targetIndex, data, dataIndex) {
          if (data === void 0) {
            data = null;
          }

          console.log("******* targetIndex: ", targetIndex, data);

          if (!!data) {
            if (targetIndex === 4) {
              this.node.setPosition(new Vec3(POSITION[4].x, 0, 0));
              this.updateInfo(data);
            } else if (targetIndex === 0) {
              this.node.setPosition(new Vec3(POSITION[0].x, 0, 0));
              this.updateInfo(data);
            }
          } else {
            var obj = (POSITION == null ? void 0 : POSITION[targetIndex]) || {};
            console.log("node", this.node);
            console.log("obj", obj);
            tween(this.node).to(0.5, {
              position: new Vec3(obj.x, 0, 0),
              scale: new Vec3(obj.scale, obj.scale, obj.scale)
            }, {
              easing: "linear"
            }).start();
          }

          this.index = targetIndex;
        }
        /** 初始化 */
        ;

        _proto.init = function init(index, data, dataIndex) {
          if (data === void 0) {
            data = {};
          }

          this.index = index;
          this.dataIndex = dataIndex;

          if (index !== 2) {
            var _POSITION$index;

            var scale = POSITION == null || (_POSITION$index = POSITION[index]) == null ? void 0 : _POSITION$index.scale;
            this.node.setScale(new Vec3(scale, scale, scale));
          }

          this.updateInfo(data);
          console.log("%c 初始化", "font-size: 20px", this.node, this.index);
        };

        return CircleItem;
      }(Component)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/CirculatePageView.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc'], function (exports) {
  var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, cclegacy, _decorator, CCBoolean, Vec2, PageView;

  return {
    setters: [function (module) {
      _applyDecoratedDescriptor = module.applyDecoratedDescriptor;
      _inheritsLoose = module.inheritsLoose;
      _initializerDefineProperty = module.initializerDefineProperty;
      _assertThisInitialized = module.assertThisInitialized;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      CCBoolean = module.CCBoolean;
      Vec2 = module.Vec2;
      PageView = module.PageView;
    }],
    execute: function () {
      var _dec, _dec2, _dec3, _class, _class2, _descriptor;

      cclegacy._RF.push({}, "1563enYGZRGPL27FbANH5mO", "CirculatePageView", undefined);

      var icon = _decorator.icon,
          ccclass = _decorator.ccclass,
          property = _decorator.property,
          disallowMultiple = _decorator.disallowMultiple,
          menu = _decorator.menu;
      var CirculatePageView = exports('CirculatePageView', (_dec = ccclass('CirculatePageView'), _dec2 = menu('自定义组件/CirculatePageView'), _dec3 = property({
        type: CCBoolean,
        displayName: '循环滚动',
        tooltip: "是否循环"
      }), _dec(_class = disallowMultiple(_class = _dec2(_class = (_class2 = /*#__PURE__*/function (_PageView) {
        _inheritsLoose(CirculatePageView, _PageView);

        function CirculatePageView() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _PageView.call.apply(_PageView, [this].concat(args)) || this;

          _initializerDefineProperty(_this, "circulate", _descriptor, _assertThisInitialized(_this));

          return _this;
        }

        var _proto = CirculatePageView.prototype;

        _proto._autoScrollToPage = function _autoScrollToPage() {
          var bounceBackStarted = this._startBounceBackIfNeeded();

          if (!this.circulate && bounceBackStarted) {
            var bounceBackAmount = this._getHowMuchOutOfBoundary();

            this._clampDelta(bounceBackAmount);

            if (bounceBackAmount.x > 0 || bounceBackAmount.y < 0) {
              this._curPageIdx = this._pages.length === 0 ? 0 : this._pages.length - 1;
            }

            if (bounceBackAmount.x < 0 || bounceBackAmount.y > 0) {
              this._curPageIdx = 0;
            }

            if (this.indicator) {
              this.indicator._changedState();
            }
          } else {
            var moveOffset = new Vec2();
            Vec2.subtract(moveOffset, this._touchBeganPosition, this._touchEndPosition);
            var index = this._curPageIdx;

            var nextIndex = index + this._getDragDirection(moveOffset);

            var timeInSecond = this.pageTurningSpeed * Math.abs(index - nextIndex);

            if (this.circulate) {
              if (nextIndex >= this._pages.length) {
                this.scrollToPage(0, timeInSecond);
                return;
              }

              if (nextIndex < 0) {
                this.scrollToPage(this._pages.length - 1, timeInSecond);
                return;
              }
            }

            if (nextIndex < this._pages.length) {
              if (this._isScrollable(moveOffset, index, nextIndex)) {
                this.scrollToPage(nextIndex, timeInSecond);
                return;
              } else {
                var touchMoveVelocity = this._calculateTouchMoveVelocity();

                if (this._isQuicklyScrollable(touchMoveVelocity)) {
                  this.scrollToPage(nextIndex, timeInSecond);
                  return;
                }
              }
            }

            this.scrollToPage(index, timeInSecond);
          }
        };

        return CirculatePageView;
      }(PageView), _descriptor = _applyDecoratedDescriptor(_class2.prototype, "circulate", [_dec3], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return true;
        }
      }), _class2)) || _class) || _class) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/ComposerHandler.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './CinestationData.ts', './CinestationMath.ts', './Predictor.ts', './CameraHandler.ts'], function (exports) {
  var _inheritsLoose, cclegacy, Vec3, Quat, cinestation, Quat_smoothDamp, Vec4_closeTo, Predictor, CameraHandler;

  return {
    setters: [function (module) {
      _inheritsLoose = module.inheritsLoose;
    }, function (module) {
      cclegacy = module.cclegacy;
      Vec3 = module.Vec3;
      Quat = module.Quat;
    }, function (module) {
      cinestation = module.cinestation;
    }, function (module) {
      Quat_smoothDamp = module.Quat_smoothDamp;
      Vec4_closeTo = module.Vec4_closeTo;
    }, function (module) {
      Predictor = module.Predictor;
    }, function (module) {
      CameraHandler = module.CameraHandler;
    }],
    execute: function () {
      cclegacy._RF.push({}, "ed040GtNkhPZ5yR4yNDSf5W", "ComposerHandler", undefined);

      var __ndc = new Vec3();

      var __worldPos = new Vec3();

      var __rotation = new Quat();

      var ComposerHandler = exports('ComposerHandler', /*#__PURE__*/function (_CameraHandler) {
        _inheritsLoose(ComposerHandler, _CameraHandler);

        function ComposerHandler() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _CameraHandler.call.apply(_CameraHandler, [this].concat(args)) || this;
          _this._predictor = new Predictor();
          _this._rotation = new Quat();
          return _this;
        }

        var _proto = ComposerHandler.prototype;

        _proto.updateCamera = function updateCamera(deltaTime) {
          var vcam = this._vcam;

          if (vcam.lookAt) {
            var composer = vcam.aim.composer;
            Vec3.add(__worldPos, vcam.lookAt.position, vcam.aim.trackedObjectOffset);

            if (vcam.lookAt.parent) {
              __worldPos.add(vcam.lookAt.parent.worldPosition);
            }

            this._predictor.predictPosition(vcam.lookaheadPosition, __worldPos, composer.lookaheadDamping, composer.lookaheadTime, deltaTime);

            this._clampWithDeadZone(__worldPos, vcam.lookaheadPosition);

            Quat.fromViewUp(this._rotation, Vec3.subtract(__worldPos, vcam.node.worldPosition, __worldPos).normalize());
            Quat_smoothDamp(__rotation, vcam.node.worldRotation, this._rotation, composer.lookatDamping, deltaTime);

            if (!Vec4_closeTo(__rotation, vcam.node.worldRotation)) {
              vcam.node.worldRotation = __rotation;
            }
          }
        };

        _proto._clampWithDeadZone = function _clampWithDeadZone(out, wpos) {
          var composer = this._vcam.aim.composer;
          var mainCamera = cinestation.mainCamera;

          if (mainCamera) {
            var camera = mainCamera.camera;
            var ndc = Vec3.transformMat4(__ndc, wpos, camera.matViewProj);
            var uv = ndc.add(Vec3.ONE).multiplyScalar(0.5);
            var hw = composer.deadZoneWidth / 2;
            var hh = composer.deadZoneHeight / 2;
            out.set(0.5, 0.5, uv.z);

            if (uv.x < 0.5 - hw) {
              out.x += uv.x - 0.5 + hw;
            }

            if (uv.x > 0.5 + hw) {
              out.x += uv.x - 0.5 - hw;
            }

            if (uv.y < 0.5 - hh) {
              out.y += uv.y - 0.5 + hh;
            }

            if (uv.y > 0.5 + hh) {
              out.y += uv.y - 0.5 - hh;
            }

            out.multiplyScalar(2).subtract(Vec3.ONE);
            out.transformMat4(camera.matViewProjInv);
          }

          return out;
        };

        return ComposerHandler;
      }(CameraHandler));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/const.ts", ['cc'], function (exports) {
  var cclegacy;
  return {
    setters: [function (module) {
      cclegacy = module.cclegacy;
    }],
    execute: function () {
      var _LoopBuff;

      cclegacy._RF.push({}, "0c75fS7JaZJOqLb+TuL2VDq", "const", undefined);

      var HAND_TYPE = exports('HAND_TYPE', /*#__PURE__*/function (HAND_TYPE) {
        HAND_TYPE["CAT"] = "1";
        HAND_TYPE["DRAGON"] = "2";
        HAND_TYPE["HUMAN"] = "3";
        return HAND_TYPE;
      }({}));
      var LOOP_TYPE = exports('LOOP_TYPE', /*#__PURE__*/function (LOOP_TYPE) {
        LOOP_TYPE["CU"] = "1";
        LOOP_TYPE["AG"] = "2";
        LOOP_TYPE["AU"] = "3";
        LOOP_TYPE["JADEITE"] = "4";
        LOOP_TYPE["GOD"] = "5";
        return LOOP_TYPE;
      }({})); // 财神

      var LoopBuff = exports('LoopBuff', (_LoopBuff = {}, _LoopBuff[LOOP_TYPE.CU] = 0, _LoopBuff[LOOP_TYPE.AG] = 0.1, _LoopBuff[LOOP_TYPE.AU] = 0.2, _LoopBuff[LOOP_TYPE.JADEITE] = 0.4, _LoopBuff[LOOP_TYPE.GOD] = 0.8, _LoopBuff));
      /**
       * 套中一个的基础分数
       */

      var BaseScore = exports('BaseScore', 10);
      /**
       * 分享类型
       */

      var SHARE_TYPE = exports('SHARE_TYPE', /*#__PURE__*/function (SHARE_TYPE) {
        SHARE_TYPE["INVITE"] = "1";
        SHARE_TYPE["SURPRISE"] = "2";
        SHARE_TYPE["FLAUNT"] = "3";
        return SHARE_TYPE;
      }({}));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/debug-view-runtime-control.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc'], function (exports) {
  var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, cclegacy, _decorator, Node, Color, Canvas, UITransform, instantiate, Label, RichText, Toggle, Button, director, Component;

  return {
    setters: [function (module) {
      _applyDecoratedDescriptor = module.applyDecoratedDescriptor;
      _inheritsLoose = module.inheritsLoose;
      _initializerDefineProperty = module.initializerDefineProperty;
      _assertThisInitialized = module.assertThisInitialized;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      Node = module.Node;
      Color = module.Color;
      Canvas = module.Canvas;
      UITransform = module.UITransform;
      instantiate = module.instantiate;
      Label = module.Label;
      RichText = module.RichText;
      Toggle = module.Toggle;
      Button = module.Button;
      director = module.director;
      Component = module.Component;
    }],
    execute: function () {
      var _dec, _dec2, _dec3, _dec4, _class, _class2, _descriptor, _descriptor2, _descriptor3;

      cclegacy._RF.push({}, "b2bd1+njXxJxaFY3ymm06WU", "debug-view-runtime-control", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var DebugViewRuntimeControl = exports('DebugViewRuntimeControl', (_dec = ccclass('internal.DebugViewRuntimeControl'), _dec2 = property(Node), _dec3 = property(Node), _dec4 = property(Node), _dec(_class = (_class2 = /*#__PURE__*/function (_Component) {
        _inheritsLoose(DebugViewRuntimeControl, _Component);

        function DebugViewRuntimeControl() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _Component.call.apply(_Component, [this].concat(args)) || this;

          _initializerDefineProperty(_this, "compositeModeToggle", _descriptor, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "singleModeToggle", _descriptor2, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "EnableAllCompositeModeButton", _descriptor3, _assertThisInitialized(_this));

          _this._single = 0;
          _this.strSingle = ['No Single Debug', 'Vertex Color', 'Vertex Normal', 'Vertex Tangent', 'World Position', 'Vertex Mirror', 'Face Side', 'UV0', 'UV1', 'UV Lightmap', 'Project Depth', 'Linear Depth', 'Fragment Normal', 'Fragment Tangent', 'Fragment Binormal', 'Base Color', 'Diffuse Color', 'Specular Color', 'Transparency', 'Metallic', 'Roughness', 'Specular Intensity', 'IOR', 'Direct Diffuse', 'Direct Specular', 'Direct All', 'Env Diffuse', 'Env Specular', 'Env All', 'Emissive', 'Light Map', 'Shadow', 'AO', 'Fresnel', 'Direct Transmit Diffuse', 'Direct Transmit Specular', 'Env Transmit Diffuse', 'Env Transmit Specular', 'Transmit All', 'Direct Internal Specular', 'Env Internal Specular', 'Internal All', 'Fog'];
          _this.strComposite = ['Direct Diffuse', 'Direct Specular', 'Env Diffuse', 'Env Specular', 'Emissive', 'Light Map', 'Shadow', 'AO', 'Normal Map', 'Fog', 'Tone Mapping', 'Gamma Correction', 'Fresnel', 'Transmit Diffuse', 'Transmit Specular', 'Internal Specular', 'TT'];
          _this.strMisc = ['CSM Layer Coloration', 'Lighting With Albedo'];
          _this.compositeModeToggleList = [];
          _this.singleModeToggleList = [];
          _this.miscModeToggleList = [];
          _this.textComponentList = [];
          _this.labelComponentList = [];
          _this.textContentList = [];
          _this.hideButtonLabel = void 0;
          _this._currentColorIndex = 0;
          _this.strColor = ['<color=#ffffff>', '<color=#000000>', '<color=#ff0000>', '<color=#00ff00>', '<color=#0000ff>'];
          _this.color = [Color.WHITE, Color.BLACK, Color.RED, Color.GREEN, Color.BLUE];
          return _this;
        }

        var _proto = DebugViewRuntimeControl.prototype;

        _proto.start = function start() {
          // get canvas resolution
          var canvas = this.node.parent.getComponent(Canvas);

          if (!canvas) {
            console.error('debug-view-runtime-control should be child of Canvas');
            return;
          }

          var uiTransform = this.node.parent.getComponent(UITransform);
          var halfScreenWidth = uiTransform.width * 0.5;
          var halfScreenHeight = uiTransform.height * 0.5;
          var x = -halfScreenWidth + halfScreenWidth * 0.1,
              y = halfScreenHeight - halfScreenHeight * 0.1;
          var width = 200,
              height = 20; // new nodes

          var miscNode = this.node.getChildByName('MiscMode');
          var buttonNode = instantiate(miscNode);
          buttonNode.parent = this.node;
          buttonNode.name = 'Buttons';
          var titleNode = instantiate(miscNode);
          titleNode.parent = this.node;
          titleNode.name = 'Titles'; // title

          for (var i = 0; i < 2; i++) {
            var newLabel = instantiate(this.EnableAllCompositeModeButton.getChildByName('Label'));
            newLabel.setPosition(x + (i > 0 ? 50 + width * 2 : 150), y, 0.0);
            newLabel.setScale(0.75, 0.75, 0.75);
            newLabel.parent = titleNode;

            var _labelComponent = newLabel.getComponent(Label);

            _labelComponent.string = i ? '----------Composite Mode----------' : '----------Single Mode----------';
            _labelComponent.color = Color.WHITE;
            _labelComponent.overflow = 0;
            this.labelComponentList[this.labelComponentList.length] = _labelComponent;
          }

          y -= height; // single

          var currentRow = 0;

          for (var _i = 0; _i < this.strSingle.length; _i++, currentRow++) {
            if (_i === this.strSingle.length >> 1) {
              x += width;
              currentRow = 0;
            }

            var newNode = _i ? instantiate(this.singleModeToggle) : this.singleModeToggle;
            newNode.setPosition(x, y - height * currentRow, 0.0);
            newNode.setScale(0.5, 0.5, 0.5);
            newNode.parent = this.singleModeToggle.parent;
            var textComponent = newNode.getComponentInChildren(RichText);
            textComponent.string = this.strSingle[_i];
            this.textComponentList[this.textComponentList.length] = textComponent;
            this.textContentList[this.textContentList.length] = textComponent.string;
            newNode.on(Toggle.EventType.TOGGLE, this.toggleSingleMode, this);
            this.singleModeToggleList[_i] = newNode;
          }

          x += width; // buttons

          this.EnableAllCompositeModeButton.setPosition(x + 15, y, 0.0);
          this.EnableAllCompositeModeButton.setScale(0.5, 0.5, 0.5);
          this.EnableAllCompositeModeButton.on(Button.EventType.CLICK, this.enableAllCompositeMode, this);
          this.EnableAllCompositeModeButton.parent = buttonNode;
          var labelComponent = this.EnableAllCompositeModeButton.getComponentInChildren(Label);
          this.labelComponentList[this.labelComponentList.length] = labelComponent;
          var changeColorButton = instantiate(this.EnableAllCompositeModeButton);
          changeColorButton.setPosition(x + 90, y, 0.0);
          changeColorButton.setScale(0.5, 0.5, 0.5);
          changeColorButton.on(Button.EventType.CLICK, this.changeTextColor, this);
          changeColorButton.parent = buttonNode;
          labelComponent = changeColorButton.getComponentInChildren(Label);
          labelComponent.string = 'TextColor';
          this.labelComponentList[this.labelComponentList.length] = labelComponent;
          var HideButton = instantiate(this.EnableAllCompositeModeButton);
          HideButton.setPosition(x + 200, y, 0.0);
          HideButton.setScale(0.5, 0.5, 0.5);
          HideButton.on(Button.EventType.CLICK, this.hideUI, this);
          HideButton.parent = this.node.parent;
          labelComponent = HideButton.getComponentInChildren(Label);
          labelComponent.string = 'Hide UI';
          this.labelComponentList[this.labelComponentList.length] = labelComponent;
          this.hideButtonLabel = labelComponent; // misc

          y -= 40;

          for (var _i2 = 0; _i2 < this.strMisc.length; _i2++) {
            var _newNode = instantiate(this.compositeModeToggle);

            _newNode.setPosition(x, y - height * _i2, 0.0);

            _newNode.setScale(0.5, 0.5, 0.5);

            _newNode.parent = miscNode;

            var _textComponent = _newNode.getComponentInChildren(RichText);

            _textComponent.string = this.strMisc[_i2];
            this.textComponentList[this.textComponentList.length] = _textComponent;
            this.textContentList[this.textContentList.length] = _textComponent.string;

            var toggleComponent = _newNode.getComponent(Toggle);

            toggleComponent.isChecked = _i2 ? true : false;

            _newNode.on(Toggle.EventType.TOGGLE, _i2 ? this.toggleLightingWithAlbedo : this.toggleCSMColoration, this);

            this.miscModeToggleList[_i2] = _newNode;
          } // composite


          y -= 150;

          for (var _i3 = 0; _i3 < this.strComposite.length; _i3++) {
            var _newNode2 = _i3 ? instantiate(this.compositeModeToggle) : this.compositeModeToggle;

            _newNode2.setPosition(x, y - height * _i3, 0.0);

            _newNode2.setScale(0.5, 0.5, 0.5);

            _newNode2.parent = this.compositeModeToggle.parent;

            var _textComponent2 = _newNode2.getComponentInChildren(RichText);

            _textComponent2.string = this.strComposite[_i3];
            this.textComponentList[this.textComponentList.length] = _textComponent2;
            this.textContentList[this.textContentList.length] = _textComponent2.string;

            _newNode2.on(Toggle.EventType.TOGGLE, this.toggleCompositeMode, this);

            this.compositeModeToggleList[_i3] = _newNode2;
          }
        };

        _proto.isTextMatched = function isTextMatched(textUI, textDescription) {
          var tempText = new String(textUI);
          var findIndex = tempText.search('>');

          if (findIndex === -1) {
            return textUI === textDescription;
          } else {
            tempText = tempText.substr(findIndex + 1);
            tempText = tempText.substr(0, tempText.search('<'));
            return tempText === textDescription;
          }
        };

        _proto.toggleSingleMode = function toggleSingleMode(toggle) {
          var debugView = director.root.debugView;
          var textComponent = toggle.getComponentInChildren(RichText);

          for (var i = 0; i < this.strSingle.length; i++) {
            if (this.isTextMatched(textComponent.string, this.strSingle[i])) {
              debugView.singleMode = i;
            }
          }
        };

        _proto.toggleCompositeMode = function toggleCompositeMode(toggle) {
          var debugView = director.root.debugView;
          var textComponent = toggle.getComponentInChildren(RichText);

          for (var i = 0; i < this.strComposite.length; i++) {
            if (this.isTextMatched(textComponent.string, this.strComposite[i])) {
              debugView.enableCompositeMode(i, toggle.isChecked);
            }
          }
        };

        _proto.toggleLightingWithAlbedo = function toggleLightingWithAlbedo(toggle) {
          var debugView = director.root.debugView;
          debugView.lightingWithAlbedo = toggle.isChecked;
        };

        _proto.toggleCSMColoration = function toggleCSMColoration(toggle) {
          var debugView = director.root.debugView;
          debugView.csmLayerColoration = toggle.isChecked;
        };

        _proto.enableAllCompositeMode = function enableAllCompositeMode(button) {
          var debugView = director.root.debugView;
          debugView.enableAllCompositeMode(true);

          for (var i = 0; i < this.compositeModeToggleList.length; i++) {
            var _toggleComponent = this.compositeModeToggleList[i].getComponent(Toggle);

            _toggleComponent.isChecked = true;
          }

          var toggleComponent = this.miscModeToggleList[0].getComponent(Toggle);
          toggleComponent.isChecked = false;
          debugView.csmLayerColoration = false;
          toggleComponent = this.miscModeToggleList[1].getComponent(Toggle);
          toggleComponent.isChecked = true;
          debugView.lightingWithAlbedo = true;
        };

        _proto.hideUI = function hideUI(button) {
          var titleNode = this.node.getChildByName('Titles');
          var activeValue = !titleNode.active;
          this.singleModeToggleList[0].parent.active = activeValue;
          this.miscModeToggleList[0].parent.active = activeValue;
          this.compositeModeToggleList[0].parent.active = activeValue;
          this.EnableAllCompositeModeButton.parent.active = activeValue;
          titleNode.active = activeValue;
          this.hideButtonLabel.string = activeValue ? 'Hide UI' : 'Show UI';
        };

        _proto.changeTextColor = function changeTextColor(button) {
          this._currentColorIndex++;

          if (this._currentColorIndex >= this.strColor.length) {
            this._currentColorIndex = 0;
          }

          for (var i = 0; i < this.textComponentList.length; i++) {
            this.textComponentList[i].string = this.strColor[this._currentColorIndex] + this.textContentList[i] + '</color>';
          }

          for (var _i4 = 0; _i4 < this.labelComponentList.length; _i4++) {
            this.labelComponentList[_i4].color = this.color[this._currentColorIndex];
          }
        };

        _proto.onLoad = function onLoad() {};

        _proto.update = function update(deltaTime) {};

        return DebugViewRuntimeControl;
      }(Component), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "compositeModeToggle", [_dec2], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "singleModeToggle", [_dec3], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "EnableAllCompositeModeButton", [_dec4], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      })), _class2)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/EasyController.ts", ['cc'], function (exports) {
  var cclegacy, director;
  return {
    setters: [function (module) {
      cclegacy = module.cclegacy;
      director = module.director;
    }],
    execute: function () {
      cclegacy._RF.push({}, "cc933ijiadBG47GZ61xXA52", "EasyController", undefined);

      var EasyControllerEvent = exports('EasyControllerEvent', function EasyControllerEvent() {});
      /**
      * Dispatched when camera rotating
      * @params rx: horizontal rotation
      * @params ry: vertical rotation.
      */

      EasyControllerEvent.CAMERA_ROTATE = 'EasyControllerEvent.CAMERA_ROTATE';
      /**
       * Dispatched when camera zooming
       * @params delta: amount of camera zoom
      */

      EasyControllerEvent.CAMERA_ZOOM = 'EasyControllerEvent.CAMERA_ZOOM';
      /**
       * Dispatched when the movement controller is moving
       * @param degree: direction in degrees, with positive X-axis as 0, increasing in a counter-clockwise direction.
       * @param strength: movement strength, [0.0, 1.0], can be used for fine-tuning the movement speed.
       */

      EasyControllerEvent.MOVEMENT = 'EasyControllerEvent.MOVEMENT';
      /**
       * Dispatched when the movement controller stops moving
       */

      EasyControllerEvent.MOVEMENT_STOP = 'EasyControllerEvent.MOVEMENT_STOP';
      /**
       * Dispatched when one of the buttons is pressed.
       * @param buttonName: string, indicates which button is pressed. 
       */

      EasyControllerEvent.BUTTON = 'EasyControllerEvent.BUTTON';
      /**
       * Dispatched when screen is touched.
       */

      EasyControllerEvent.SCREEN_TOUCH_START = 'EasyControllerEvent.SCREEN_TOUCH_START';
      /**
       * Dispatched when screen is touched end.
       */

      EasyControllerEvent.SCREEN_TOUCH_END = 'EasyControllerEvent.SCREEN_TOUCH_END';
      var EasyController = exports('EasyController', /*#__PURE__*/function () {
        function EasyController() {}

        EasyController.on = function on(type, callback, target) {
          director.getScene().on(type, callback, target);
        };

        EasyController.off = function off(type, callback, target) {
          var _director$getScene;

          (_director$getScene = director.getScene()) == null ? void 0 : _director$getScene.off(type, callback, target);
        };

        return EasyController;
      }());

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/ecaptcha.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './Utils.ts', './ajax.ts'], function (exports) {
  var _asyncToGenerator, _regeneratorRuntime, cclegacy, parseHtml, jsonp;

  return {
    setters: [function (module) {
      _asyncToGenerator = module.asyncToGenerator;
      _regeneratorRuntime = module.regeneratorRuntime;
    }, function (module) {
      cclegacy = module.cclegacy;
    }, function (module) {
      parseHtml = module.parseHtml;
    }, function (module) {
      jsonp = module.jsonp;
    }],
    execute: function () {
      exports('startNecCaptcha', startNecCaptcha);

      cclegacy._RF.push({}, "12f68qSPBFC6LqmOsOf2w13", "ecaptcha", undefined);

      var inited = false;
      var captchaEl;
      var initNecSuccess = false;
      var captchaIns;
      /**
       * 滑块验证
       * @ctype PROCESS
       * @description 极验的滑块验证
       * @param {string} captchaId - 验证id
       * @param {number} [limitTimes=1] - 次数上限(≤0:无限次数直到成功)
       * @param {string} [mode='embed'] - 模式
       * @returns
       * validate string 验证字符串
       * @example 一般用法
       * const validate = await startNecCaptcha('a869bfdfb9bd4cdf88e1ff2f8667a114').catch(e=>{
       *   console.log('验证失败，错误:', e)
       * })
       * if(validate){
       *   console.log('验证成功，验证串:', validate)
       * }
       */

      function startNecCaptcha(_x, _x2, _x3) {
        return _startNecCaptcha.apply(this, arguments);
      }

      function _startNecCaptcha() {
        _startNecCaptcha = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(captchaId, limitTimes, mode) {
          var times, validate, i;
          return _regeneratorRuntime().wrap(function _callee$(_context) {
            while (1) switch (_context.prev = _context.next) {
              case 0:
                if (limitTimes === void 0) {
                  limitTimes = 1;
                }

                if (mode === void 0) {
                  mode = 'embed';
                }

                times = limitTimes <= 0 ? Number.MAX_VALUE : limitTimes;
                i = 0;

              case 4:
                if (!(i < times)) {
                  _context.next = 13;
                  break;
                }

                _context.next = 7;
                return showNecCaptcha(captchaId, mode)["catch"](console.info);

              case 7:
                validate = _context.sent;

                if (!validate) {
                  _context.next = 10;
                  break;
                }

                return _context.abrupt("return", validate);

              case 10:
                i++;
                _context.next = 4;
                break;

              case 13:
                return _context.abrupt("return", Promise.reject('out of times'));

              case 14:
              case "end":
                return _context.stop();
            }
          }, _callee);
        }));
        return _startNecCaptcha.apply(this, arguments);
      }

      function showNecCaptcha(_x4, _x5) {
        return _showNecCaptcha.apply(this, arguments);
      }

      function _showNecCaptcha() {
        _showNecCaptcha = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(captchaId, mode) {
          var onClickCaptcha, removeCaptcha;
          return _regeneratorRuntime().wrap(function _callee2$(_context2) {
            while (1) switch (_context2.prev = _context2.next) {
              case 0:
                removeCaptcha = function _removeCaptcha() {
                  captchaEl.removeEventListener('click', onClickCaptcha);
                  document.body.removeChild(captchaEl);
                };

                onClickCaptcha = function _onClickCaptcha(e) {
                  if (initNecSuccess) {
                    if (e.target == captchaEl) {
                      if (captchaIns) captchaIns.refresh();
                    }
                  } else {
                    removeCaptcha();
                    showNecCaptcha(captchaId, mode);
                  }
                };

                if (mode === void 0) {
                  mode = 'embed';
                }

                _context2.next = 5;
                return init();

              case 5:
                return _context2.abrupt("return", new Promise(function (resolve, reject) {
                  document.body.appendChild(captchaEl);
                  var wrapper = captchaEl.children[0];
                  wrapper.innerHTML = null;
                  wrapper.style.visibility = 'hidden';
                  var opts = {
                    element: wrapper,
                    captchaId: captchaId,
                    width: '100%',
                    mode: mode,
                    onVerify: function onVerify(err, data) {
                      removeCaptcha();

                      if (err) {
                        reject(err);
                      } else {
                        resolve(data.validate);
                      }
                    }
                  };
                  window['initNECaptcha'](opts, function (instance) {
                    captchaIns = instance;
                    initNecSuccess = true;
                    wrapper.style.visibility = 'visible';
                    captchaEl.addEventListener('click', onClickCaptcha);
                  }, function (err) {
                    initNecSuccess = false;
                    captchaEl.addEventListener('click', onClickCaptcha);
                  });
                  captchaEl.style.visibility = 'visible';
                }));

              case 6:
              case "end":
                return _context2.stop();
            }
          }, _callee2);
        }));
        return _showNecCaptcha.apply(this, arguments);
      }

      function init() {
        return _init.apply(this, arguments);
      }

      function _init() {
        _init = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
          return _regeneratorRuntime().wrap(function _callee3$(_context3) {
            while (1) switch (_context3.prev = _context3.next) {
              case 0:
                if (inited) {
                  _context3.next = 12;
                  break;
                }

                _context3.next = 3;
                return jsonp('//cstaticdun.126.net/load.min.js', null);

              case 3:
                captchaEl = parseHtml("<div class=\"sui-captcha\"><div class=\"neCaptcha-dialog\"></div></div>");

              case 4:
                _context3.next = 7;
                return new Promise(function (resolve) {
                  return setTimeout(resolve, 100);
                });

              case 7:
                if (!window['initNECaptcha']) {
                  _context3.next = 9;
                  break;
                }

                return _context3.abrupt("break", 11);

              case 9:
                _context3.next = 4;
                break;

              case 11:
                inited = true;

              case 12:
              case "end":
                return _context3.stop();
            }
          }, _callee3);
        }));
        return _init.apply(this, arguments);
      }

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/Events.ts", ['cc'], function (exports) {
  var cclegacy;
  return {
    setters: [function (module) {
      cclegacy = module.cclegacy;
    }],
    execute: function () {
      cclegacy._RF.push({}, "47855R5MFhELIl5drKNn+/P", "Events", undefined);

      var CinestationEvent = exports('CinestationEvent', {
        EDITOR_CHANGED: "cinestation-editor-changed",
        COMPOSER_CHANGED: "cinestation-composer-changed",
        LENS_CHANGED: "cinestation-lens-changed"
      });

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/FollowCamera2D.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc'], function (exports) {
  var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, cclegacy, _decorator, v3, Node, Camera, Component;

  return {
    setters: [function (module) {
      _applyDecoratedDescriptor = module.applyDecoratedDescriptor;
      _inheritsLoose = module.inheritsLoose;
      _initializerDefineProperty = module.initializerDefineProperty;
      _assertThisInitialized = module.assertThisInitialized;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      v3 = module.v3;
      Node = module.Node;
      Camera = module.Camera;
      Component = module.Component;
    }],
    execute: function () {
      var _dec, _dec2, _class, _class2, _descriptor, _descriptor2;

      cclegacy._RF.push({}, "901c88RzPNC+KzYY4c1byNp", "FollowCamera2D", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var tmpV3 = v3();
      var FollowCamera2D = exports('FollowCamera2D', (_dec = ccclass('tgxFollowCamera2D'), _dec2 = property(Node), _dec(_class = (_class2 = /*#__PURE__*/function (_Component) {
        _inheritsLoose(FollowCamera2D, _Component);

        function FollowCamera2D() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _Component.call.apply(_Component, [this].concat(args)) || this;

          _initializerDefineProperty(_this, "target", _descriptor, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "offset", _descriptor2, _assertThisInitialized(_this));

          _this._camera = void 0;
          return _this;
        }

        var _proto = FollowCamera2D.prototype;

        _proto.start = function start() {
          this._camera = this.node.getComponent(Camera);
        };

        _proto.lateUpdate = function lateUpdate(deltaTime) {
          this.target.getWorldPosition(tmpV3);
          tmpV3.add(this.offset);
          this.node.worldPosition = tmpV3;
        };

        return FollowCamera2D;
      }(Component), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "target", [_dec2], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: null
      }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "offset", [property], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return v3();
        }
      })), _class2)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/FPSCamera.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc'], function (exports) {
  var _inheritsLoose, cclegacy, _decorator, Component;

  return {
    setters: [function (module) {
      _inheritsLoose = module.inheritsLoose;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      Component = module.Component;
    }],
    execute: function () {
      var _dec, _class;

      cclegacy._RF.push({}, "35e79Dy4FRKopwoxbqfPUBI", "FPSCamera", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var FPSCamera = exports('FPSCamera', (_dec = ccclass('tgxFPSCamera'), _dec(_class = /*#__PURE__*/function (_Component) {
        _inheritsLoose(FPSCamera, _Component);

        function FPSCamera() {
          return _Component.apply(this, arguments) || this;
        }

        var _proto = FPSCamera.prototype;

        _proto.start = function start() {};

        _proto.update = function update(deltaTime) {};

        return FPSCamera;
      }(Component)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/FreeCamera.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc'], function (exports) {
  var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, cclegacy, _decorator, Vec2, Vec3, Quat, input, Input, game, KeyCode, v2, Component;

  return {
    setters: [function (module) {
      _applyDecoratedDescriptor = module.applyDecoratedDescriptor;
      _inheritsLoose = module.inheritsLoose;
      _initializerDefineProperty = module.initializerDefineProperty;
      _assertThisInitialized = module.assertThisInitialized;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      Vec2 = module.Vec2;
      Vec3 = module.Vec3;
      Quat = module.Quat;
      input = module.input;
      Input = module.Input;
      game = module.game;
      KeyCode = module.KeyCode;
      v2 = module.v2;
      Component = module.Component;
    }],
    execute: function () {
      var _dec, _dec2, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;

      cclegacy._RF.push({}, "9cfdbEnosdDcIV51/qKNoBS", "FreeCamera", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var v2_1 = new Vec2();
      var v2_2 = new Vec2();
      var v3_1 = new Vec3();
      var qt_1 = new Quat();
      var forward = new Vec3();
      var right = new Vec3();
      var FreeCamera = exports('FreeCamera', (_dec = ccclass('tgxFreeCamera'), _dec2 = property({
        slide: true,
        range: [0.05, 0.5, 0.01]
      }), _dec(_class = (_class2 = /*#__PURE__*/function (_Component) {
        _inheritsLoose(FreeCamera, _Component);

        function FreeCamera() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _Component.call.apply(_Component, [this].concat(args)) || this;

          _initializerDefineProperty(_this, "moveSpeed", _descriptor, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "moveSpeedShiftScale", _descriptor2, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "damp", _descriptor3, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "rotateSpeed", _descriptor4, _assertThisInitialized(_this));

          _this._euler = new Vec3();
          _this._velocity = new Vec3();
          _this._position = new Vec3();
          _this._speedScale = 1;
          _this._eulerP = new Vec3();
          _this.keys = []; // x  -1 left, +1 right   y -1 backword, +1 forward

          _this.moveDir = new Vec3();
          _this.key2dirMap = null;
          return _this;
        }

        var _proto = FreeCamera.prototype;

        _proto.onLoad = function onLoad() {
          input.on(Input.EventType.MOUSE_WHEEL, this.onMouseWheel, this);
          input.on(Input.EventType.TOUCH_START, this.onTouchStart, this);
          input.on(Input.EventType.TOUCH_MOVE, this.onTouchMove, this);
          input.on(Input.EventType.TOUCH_END, this.onTouchEnd, this);
          Vec3.copy(this._euler, this.node.eulerAngles);
          Vec3.copy(this._position, this.node.getPosition());
          Vec3.copy(this._eulerP, this.node.eulerAngles);
          input.on(Input.EventType.KEY_DOWN, this.onKeyDown, this);
          input.on(Input.EventType.KEY_UP, this.onKeyUp, this);
        };

        _proto.onDestroy = function onDestroy() {
          input.off(Input.EventType.MOUSE_WHEEL, this.onMouseWheel, this);
          input.off(Input.EventType.TOUCH_START, this.onTouchStart, this);
          input.off(Input.EventType.TOUCH_MOVE, this.onTouchMove, this);
          input.off(Input.EventType.TOUCH_END, this.onTouchEnd, this);
          input.off(Input.EventType.KEY_DOWN, this.onKeyDown, this);
          input.off(Input.EventType.KEY_UP, this.onKeyUp, this);
        };

        _proto.update = function update(dt) {
          var t = Math.min(dt / this.damp, 1); // position

          Vec3.transformQuat(v3_1, this._velocity, this.node.rotation);
          Vec3.scaleAndAdd(this._position, this._position, v3_1, this.moveSpeed * this._speedScale);
          Vec3.lerp(v3_1, this.node.getPosition(), this._position, t);
          this.node.setPosition(v3_1);

          if (this.moveDir.lengthSqr()) {
            Vec3.transformQuat(forward, Vec3.FORWARD, this.node.rotation);
            forward.normalize();
            Vec3.cross(right, forward, Vec3.UP);
            right.normalize();
            Vec3.scaleAndAdd(this._position, this._position, forward, this.moveSpeed * this._speedScale * this.moveDir.z);
            Vec3.lerp(v3_1, this.node.getPosition(), this._position, t);
            this.node.setPosition(v3_1);
            Vec3.scaleAndAdd(this._position, this._position, right, this.moveSpeed * this._speedScale * this.moveDir.x);
            Vec3.lerp(v3_1, this.node.getPosition(), this._position, t);
            this.node.setPosition(v3_1);
            Vec3.scaleAndAdd(this._position, this._position, Vec3.UP, this.moveSpeed * this._speedScale * this.moveDir.y);
            Vec3.lerp(v3_1, this.node.getPosition(), this._position, t);
            this.node.setPosition(v3_1);
          } // rotation


          Quat.fromEuler(qt_1, this._eulerP.x, this._eulerP.y, this._eulerP.z);
          Quat.slerp(qt_1, this.node.rotation, qt_1, t);
          this.node.setWorldRotationFromEuler(this._eulerP.x, this._eulerP.y, this._eulerP.z);
        };

        _proto.onMouseWheel = function onMouseWheel(e) {
          var delta = -e.getScrollY() * this.moveSpeed * 0.1; // delta is positive when scroll down

          Vec3.transformQuat(v3_1, Vec3.UNIT_Z, this.node.rotation);
          Vec3.scaleAndAdd(this._position, this.node.position, v3_1, delta);
        };

        _proto.onTouchStart = function onTouchStart(e) {
          if (game.canvas.requestPointerLock) {
            game.canvas.requestPointerLock();
          }
        };

        _proto.onTouchMove = function onTouchMove(e) {
          e.getStartLocation(v2_1);

          if (v2_1.x > game.canvas.width * 0.4) {
            // rotation
            e.getDelta(v2_2);
            this._eulerP.y -= v2_2.x * this.rotateSpeed * 0.1;
            this._eulerP.x += v2_2.y * this.rotateSpeed * 0.1;
          } else {
            // position
            e.getDelta(v2_2);
            this._eulerP.y -= v2_2.x * this.rotateSpeed * 0.1;
            this._eulerP.x += v2_2.y * this.rotateSpeed * 0.1;
          }
        };

        _proto.onTouchEnd = function onTouchEnd(e) {
          if (document.exitPointerLock) {
            document.exitPointerLock();
          }

          e.getStartLocation(v2_1);

          if (v2_1.x < game.canvas.width * 0.4) {
            // position
            this._velocity.x = 0;
            this._velocity.z = 0;
          }
        };

        _proto.onKeyDown = function onKeyDown(event) {
          var keyCode = event.keyCode;

          if (keyCode == KeyCode.KEY_A || keyCode == KeyCode.KEY_S || keyCode == KeyCode.KEY_D || keyCode == KeyCode.KEY_W) {
            if (this.keys.indexOf(keyCode) == -1) {
              this.keys.push(keyCode);
              this.updateDirection();
            }
          }

          if (keyCode == KeyCode.KEY_Q) {
            this.moveDir.y = -1;
          } else if (keyCode == KeyCode.KEY_E) {
            this.moveDir.y = 1;
          }
        };

        _proto.onKeyUp = function onKeyUp(event) {
          var keyCode = event.keyCode;

          if (keyCode == KeyCode.KEY_A || keyCode == KeyCode.KEY_S || keyCode == KeyCode.KEY_D || keyCode == KeyCode.KEY_W) {
            var index = this.keys.indexOf(keyCode);

            if (index != -1) {
              this.keys.splice(index, 1);
              this.updateDirection();
            }
          }

          if (keyCode == KeyCode.KEY_Q || keyCode == KeyCode.KEY_E) {
            this.moveDir.y = 0;
          }
        };

        _proto.updateDirection = function updateDirection() {
          if (this.key2dirMap == null) {
            this.key2dirMap = {};
            this.key2dirMap[0] = v2(0, 0);
            this.key2dirMap[KeyCode.KEY_A] = v2(-1, 0);
            this.key2dirMap[KeyCode.KEY_D] = v2(1, 0);
            this.key2dirMap[KeyCode.KEY_W] = v2(0, 1);
            this.key2dirMap[KeyCode.KEY_S] = v2(0, -1);
            this.key2dirMap[KeyCode.KEY_A * 1000 + KeyCode.KEY_W] = this.key2dirMap[KeyCode.KEY_W * 1000 + KeyCode.KEY_A] = v2(-1, 1);
            this.key2dirMap[KeyCode.KEY_D * 1000 + KeyCode.KEY_W] = this.key2dirMap[KeyCode.KEY_W * 1000 + KeyCode.KEY_D] = v2(1, 1);
            this.key2dirMap[KeyCode.KEY_A * 1000 + KeyCode.KEY_S] = this.key2dirMap[KeyCode.KEY_S * 1000 + KeyCode.KEY_A] = v2(-1, -1);
            this.key2dirMap[KeyCode.KEY_D * 1000 + KeyCode.KEY_S] = this.key2dirMap[KeyCode.KEY_S * 1000 + KeyCode.KEY_D] = v2(1, -1);
            this.key2dirMap[KeyCode.KEY_A * 1000 + KeyCode.KEY_D] = this.key2dirMap[KeyCode.KEY_D];
            this.key2dirMap[KeyCode.KEY_D * 1000 + KeyCode.KEY_A] = this.key2dirMap[KeyCode.KEY_A];
            this.key2dirMap[KeyCode.KEY_W * 1000 + KeyCode.KEY_S] = this.key2dirMap[KeyCode.KEY_S];
            this.key2dirMap[KeyCode.KEY_S * 1000 + KeyCode.KEY_W] = this.key2dirMap[KeyCode.KEY_W];
          }

          var keyCode0 = this.keys[this.keys.length - 1] || 0;
          var keyCode1 = this.keys[this.keys.length - 2] || 0;
          var dir = this.key2dirMap[keyCode1 * 1000 + keyCode0];
          this.moveDir.x = dir.x;
          this.moveDir.z = dir.y;
        };

        return FreeCamera;
      }(Component), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "moveSpeed", [property], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 1;
        }
      }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "moveSpeedShiftScale", [property], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 5;
        }
      }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "damp", [_dec2], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 0.2;
        }
      }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "rotateSpeed", [property], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 1;
        }
      })), _class2)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/FreeLookHandler.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './CinestationData.ts', './CinestationMath.ts', './CameraHandler.ts'], function (exports) {
  var _inheritsLoose, cclegacy, Vec3, Vec2, director, input, Input, sys, EventMouse, view, isValid, clamp, toRadian, cinestation, quarticDamp, Vec3_setFromSpherical, Vec3_setFromMatrixColumn, Vec3_smoothDamp, Vec3_closeTo, Spherical, CameraHandler;

  return {
    setters: [function (module) {
      _inheritsLoose = module.inheritsLoose;
    }, function (module) {
      cclegacy = module.cclegacy;
      Vec3 = module.Vec3;
      Vec2 = module.Vec2;
      director = module.director;
      input = module.input;
      Input = module.Input;
      sys = module.sys;
      EventMouse = module.EventMouse;
      view = module.view;
      isValid = module.isValid;
      clamp = module.clamp;
      toRadian = module.toRadian;
    }, function (module) {
      cinestation = module.cinestation;
    }, function (module) {
      quarticDamp = module.quarticDamp;
      Vec3_setFromSpherical = module.Vec3_setFromSpherical;
      Vec3_setFromMatrixColumn = module.Vec3_setFromMatrixColumn;
      Vec3_smoothDamp = module.Vec3_smoothDamp;
      Vec3_closeTo = module.Vec3_closeTo;
      Spherical = module.Spherical;
    }, function (module) {
      CameraHandler = module.CameraHandler;
    }],
    execute: function () {
      cclegacy._RF.push({}, "1d097iHg4pBDLtSMsYjfxFc", "FreeLookHandler", undefined);

      var abs = Math.abs,
          tan = Math.tan;

      var __worldPos = new Vec3();

      var __posDelta = new Vec3();

      var __moveDelta = new Vec2();

      var __armDelta = new Vec3();

      var __xAxis = new Vec3();

      var __yAxis = new Vec3();

      var __loc0 = new Vec2();

      var __loc1 = new Vec2();

      var __preLoc0 = new Vec2();

      var __preLoc1 = new Vec2();

      var FreeLookHandler = exports('FreeLookHandler', /*#__PURE__*/function (_CameraHandler) {
        _inheritsLoose(FreeLookHandler, _CameraHandler);

        function FreeLookHandler() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _CameraHandler.call.apply(_CameraHandler, [this].concat(args)) || this;
          _this._button = -1;
          _this._needUpdateRotate = false;
          _this._rotateDelta = new Vec2();
          _this._panDelta = new Vec2();
          _this._distanceScale = 1;
          _this._spherical = new Spherical();
          return _this;
        }

        var _proto = FreeLookHandler.prototype;

        _proto.onEnable = function onEnable() {
          if (cinestation.input) this._registInputEvents();
          director.on("VCam.enableInput", this._onEnableInput, this);
        };

        _proto.onDisable = function onDisable() {
          if (cinestation.input) this._clearInputEvents();
          director.off("VCam.enableInput", this._onEnableInput, this);
        };

        _proto.onLookAtChanged = function onLookAtChanged(target) {
          this._needUpdateRotate = true;
        };

        _proto._registInputEvents = function _registInputEvents() {
          input.on(Input.EventType.MOUSE_DOWN, this._onMouseDown, this);
          input.on(Input.EventType.MOUSE_UP, this._onMouseUp, this);
          input.on(Input.EventType.MOUSE_MOVE, this._onMouseMove, this);
          input.on(Input.EventType.MOUSE_WHEEL, this._onMouseWheel, this);
          input.on(Input.EventType.TOUCH_MOVE, this._onTouchMove, this);
          input.on(Input.EventType.TOUCH_END, this._onTouchEnd, this);
        };

        _proto._clearInputEvents = function _clearInputEvents() {
          input.off(Input.EventType.MOUSE_DOWN, this._onMouseDown, this);
          input.off(Input.EventType.MOUSE_UP, this._onMouseUp, this);
          input.off(Input.EventType.MOUSE_MOVE, this._onMouseMove, this);
          input.off(Input.EventType.MOUSE_WHEEL, this._onMouseWheel, this);
          input.off(Input.EventType.TOUCH_MOVE, this._onTouchMove, this);
          input.off(Input.EventType.TOUCH_END, this._onTouchEnd, this);
        };

        _proto._onEnableInput = function _onEnableInput(v) {
          if (v) this._registInputEvents();else this._clearInputEvents();
        };

        _proto._getPreviousLocation = function _getPreviousLocation(e, out) {
          return e.getPreviousLocation(out);
        };

        _proto._getLocation = function _getLocation(e, out) {
          return e.getLocation(out);
        };

        _proto._onTouchMove = function _onTouchMove(e) {
          if (!sys.isMobile) return;
          var freelook = this._vcam.body.freelook;
          var rotateTouchID = freelook.rotateTouchID;
          var touchs = e.getAllTouches();

          if (touchs.length > rotateTouchID + 1) {
            this._getPreviousLocation(touchs[rotateTouchID], __preLoc0);

            this._getPreviousLocation(touchs[rotateTouchID + 1], __preLoc1);

            this._getLocation(touchs[rotateTouchID], __loc0);

            this._getLocation(touchs[rotateTouchID + 1], __loc1);

            this._distanceScale *= this._calculateDistanceScale(Vec2.distance(__preLoc0, __preLoc1) / Vec2.distance(__loc0, __loc1));

            __preLoc0.add(__preLoc1).multiplyScalar(0.5);

            __loc0.add(__loc1).multiplyScalar(0.5);

            this._setPanDelta(this._calculatePanDelta(__moveDelta, __preLoc0, __loc0));
          } else if (touchs.length > rotateTouchID) {
            this._rotateDelta.add(this._calculateRotateDelta(__moveDelta, this._getPreviousLocation(touchs[rotateTouchID], __loc0), this._getLocation(touchs[rotateTouchID], __loc1)));
          }
        };

        _proto._onTouchEnd = function _onTouchEnd(e) {};

        _proto._onMouseDown = function _onMouseDown(e) {
          this._button = e.getButton();
        };

        _proto._onMouseUp = function _onMouseUp(e) {
          this._button = -1;
        };

        _proto._onMouseWheel = function _onMouseWheel(e) {
          if (e.getScrollY() > 0) {
            this._distanceScale *= this._calculateDistanceScale(0.95);
          } else if (e.getScrollY() < 0) {
            this._distanceScale *= this._calculateDistanceScale(1 / 0.95);
          }
        };

        _proto._onMouseMove = function _onMouseMove(e) {
          switch (this._button) {
            case EventMouse.BUTTON_LEFT:
              this._rotateDelta.add(this._calculateRotateDelta(__moveDelta, this._getPreviousLocation(e, __loc0), this._getLocation(e, __loc1)));

              break;

            case EventMouse.BUTTON_MIDDLE:
              this._setPanDelta(this._calculatePanDelta(__moveDelta, this._getPreviousLocation(e, __loc0), this._getLocation(e, __loc1)));

              break;
          }
        };

        _proto._setPanDelta = function _setPanDelta(delta) {
          this._panDelta.add(delta);
        };

        _proto._calculateDistanceScale = function _calculateDistanceScale(scale) {
          return scale;
        };

        _proto._calculateRotateDelta = function _calculateRotateDelta(out, loc0, loc1) {
          var freelook = this._vcam.body.freelook;
          Vec2.subtract(out, loc1, loc0).multiplyScalar(freelook.rotateSpeed * 2 * Math.PI / view.getVisibleSizeInPixel().height);
          return out;
        };

        _proto._calculatePanDelta = function _calculatePanDelta(out, loc0, loc1) {
          var freelook = this._vcam.body.freelook;
          Vec2.subtract(out, loc1, loc0).multiplyScalar(freelook.panSpeed / view.getVisibleSizeInPixel().height);
          return out;
        };

        _proto.updateCamera = function updateCamera(deltaTime) {
          var vcam = this._vcam;
          var freelook = vcam.body.freelook;
          var followChanged = 0;

          if (isValid(vcam.lookAt)) {
            Vec3.add(__worldPos, vcam.lookAt.worldPosition, vcam.aim.trackedObjectOffset);
            var dampFactor = quarticDamp(1, 0, freelook.rotateSmoothing, deltaTime);

            if (abs(this._rotateDelta.x) + abs(this._rotateDelta.y) > 0.01 || this._distanceScale !== 1 || this._needUpdateRotate) {
              Vec3.subtract(__posDelta, vcam.node.worldPosition, __worldPos);

              this._spherical.setFromVec3(__posDelta);

              if (!freelook.forbidX) {
                this._spherical.theta = clamp(this._spherical.theta - this._rotateDelta.x * (1 - dampFactor), freelook.thetaMin, freelook.thetaMax);
              }

              if (!freelook.forbidY) {
                this._spherical.phi = clamp(this._spherical.phi + this._rotateDelta.y * (1 - dampFactor), freelook.phiMin, freelook.phiMax);
              }

              if (!freelook.forbidZ) {
                this._spherical.radius = clamp(this._spherical.radius * this._distanceScale, freelook.distanceMin, freelook.distanceMax);
              }

              Vec3_setFromSpherical(__posDelta, this._spherical);
              vcam.node.worldPosition = __posDelta.add(__worldPos);
              followChanged = this._needUpdateRotate || this._distanceScale !== 1 ? 1 : 2;
              this._needUpdateRotate = false;

              this._rotateDelta.multiplyScalar(dampFactor);

              this._distanceScale = 1;
            }

            if (!freelook.forbidPan && abs(this._panDelta.x) + abs(this._panDelta.y) > 0.01) {
              Vec3.subtract(__posDelta, vcam.node.worldPosition, __worldPos);
              Vec3_setFromMatrixColumn(__xAxis, vcam.node.worldMatrix, 0);
              Vec3_setFromMatrixColumn(__yAxis, vcam.node.worldMatrix, 1);
              var length = __posDelta.length() * 2 * tan(toRadian(vcam.lens.fov * 0.5));
              var trackedObjectOffset = vcam.aim.trackedObjectOffset;
              trackedObjectOffset.subtract(__xAxis.multiplyScalar(this._panDelta.x * (1 - dampFactor) * length));
              trackedObjectOffset.subtract(__yAxis.multiplyScalar(this._panDelta.y * (1 - dampFactor) * length));
              Vec3.add(__worldPos, vcam.lookAt.worldPosition, trackedObjectOffset);
              vcam.node.worldPosition = __posDelta.add(__worldPos);

              this._panDelta.multiplyScalar(dampFactor);

              followChanged = 1;
            }
          }

          if (isValid(vcam.follow)) {
            if (followChanged === 1) {
              Vec3.subtract(freelook.followOffset, vcam.node.worldPosition, vcam.follow.worldPosition);
            } else if (followChanged === 2) {
              Vec3.subtract(__armDelta, freelook.followOffset, vcam.aim.trackedObjectOffset);
              Vec3.subtract(__posDelta, Vec3.subtract(__worldPos, vcam.node.worldPosition, vcam.follow.worldPosition), vcam.aim.trackedObjectOffset);
              Vec3.add(freelook.followOffset, __posDelta.normalize().multiplyScalar(__armDelta.length()), vcam.aim.trackedObjectOffset);
            }

            Vec3.add(__posDelta, vcam.follow.worldPosition, freelook.followOffset);

            if (freelook.followDamping > 0) {
              Vec3_smoothDamp(__worldPos, vcam.node.worldPosition, __posDelta, freelook.followDamping, deltaTime);
            } else {
              __worldPos.set(__posDelta);
            }

            if (!Vec3_closeTo(__worldPos, vcam.node.worldPosition)) {
              vcam.node.worldPosition = __worldPos;
            }
          }
        };

        return FreeLookHandler;
      }(CameraHandler));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/FullScreenBgAutoFit.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc'], function (exports) {
  var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, cclegacy, _decorator, Canvas, size, UITransform, Sprite, Component;

  return {
    setters: [function (module) {
      _applyDecoratedDescriptor = module.applyDecoratedDescriptor;
      _inheritsLoose = module.inheritsLoose;
      _initializerDefineProperty = module.initializerDefineProperty;
      _assertThisInitialized = module.assertThisInitialized;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      Canvas = module.Canvas;
      size = module.size;
      UITransform = module.UITransform;
      Sprite = module.Sprite;
      Component = module.Component;
    }],
    execute: function () {
      var _dec, _dec2, _class, _class2, _descriptor;

      cclegacy._RF.push({}, "319759POytNIqL7hZiZjOI8", "FullScreenBgAutoFit", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var CHECK_INTERVAL = 0.1;
      var FullScreenBgAutoFit = exports('FullScreenBgAutoFit', (_dec = ccclass('FullScreenBgAutoFit'), _dec2 = property(Canvas), _dec(_class = (_class2 = /*#__PURE__*/function (_Component) {
        _inheritsLoose(FullScreenBgAutoFit, _Component);

        function FullScreenBgAutoFit() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _Component.call.apply(_Component, [this].concat(args)) || this;

          _initializerDefineProperty(_this, "canvasUITrans", _descriptor, _assertThisInitialized(_this));

          _this._oldSize = size();
          _this._originalSize = void 0;
          _this._uiTransform = void 0;
          _this._sprite = void 0;
          _this.lastCheckTime = 0;
          return _this;
        }

        var _proto = FullScreenBgAutoFit.prototype;

        _proto.start = function start() {
          this._uiTransform = this.getComponent(UITransform);
          this._sprite = this.getComponent(Sprite);

          if (!this._uiTransform || !this._sprite) {
            return;
          }

          this._originalSize = this._sprite.spriteFrame.originalSize;
          this._sprite.sizeMode = Sprite.SizeMode.CUSTOM;

          if (!this.canvasUITrans) {
            var parent = this.node.parent;

            while (parent) {
              var canvas = parent.getComponent(Canvas);

              if (canvas) {
                this.canvasUITrans = canvas.getComponent(UITransform);
                break;
              }

              parent = parent.parent;
            }
          }

          this.adjustResolutionPolicy();
        };

        _proto.update = function update(deltaTime) {
          this.lastCheckTime += deltaTime;

          if (this.lastCheckTime < CHECK_INTERVAL) {
            return;
          }

          this.lastCheckTime = 0;
          this.adjustResolutionPolicy();
        };

        _proto.adjustResolutionPolicy = function adjustResolutionPolicy() {
          var winSize = this.canvasUITrans.contentSize;

          if (!this._oldSize.equals(winSize)) {
            var ratio = winSize.width / winSize.height;
            var imgW2H = this._originalSize.width / this._originalSize.height;

            if (ratio > imgW2H) {
              //wider than desgin.
              this._uiTransform.width = winSize.width;
              this._uiTransform.height = winSize.width / imgW2H;
            } else {
              //higher than desgin.
              this._uiTransform.width = winSize.height * imgW2H;
              this._uiTransform.height = winSize.height;
            }

            this._oldSize.set(winSize);
          }
        };

        return FullScreenBgAutoFit;
      }(Component), _descriptor = _applyDecoratedDescriptor(_class2.prototype, "canvasUITrans", [_dec2], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: null
      }), _class2)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/GameChooseHand.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './Panel.ts', './CirculatePageView.ts', './WebNet.ts'], function (exports) {
  var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, _asyncToGenerator, _regeneratorRuntime, cclegacy, _decorator, Node, Button, Panel, CirculatePageView, sendWebNetWithToken, WebNetName;

  return {
    setters: [function (module) {
      _applyDecoratedDescriptor = module.applyDecoratedDescriptor;
      _inheritsLoose = module.inheritsLoose;
      _initializerDefineProperty = module.initializerDefineProperty;
      _assertThisInitialized = module.assertThisInitialized;
      _asyncToGenerator = module.asyncToGenerator;
      _regeneratorRuntime = module.regeneratorRuntime;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      Node = module.Node;
      Button = module.Button;
    }, function (module) {
      Panel = module.default;
    }, function (module) {
      CirculatePageView = module.CirculatePageView;
    }, function (module) {
      sendWebNetWithToken = module.sendWebNetWithToken;
      WebNetName = module.WebNetName;
    }],
    execute: function () {
      var _dec, _dec2, _dec3, _dec4, _dec5, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _class3;

      cclegacy._RF.push({}, "ee585qTBVtLr7KS1+OZ/NBY", "GameChooseHand", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var GameChooseHand = exports('default', (_dec = ccclass('GameChooseHand'), _dec2 = property(Node), _dec3 = property(Node), _dec4 = property(CirculatePageView), _dec5 = property(Node), _dec(_class = (_class2 = (_class3 = /*#__PURE__*/function (_Panel) {
        _inheritsLoose(GameChooseHand, _Panel);

        function GameChooseHand() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _Panel.call.apply(_Panel, [this].concat(args)) || this;

          _initializerDefineProperty(_this, "aLeft", _descriptor, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "aRight", _descriptor2, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "pageView", _descriptor3, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "okBtn", _descriptor4, _assertThisInitialized(_this));

          return _this;
        }

        var _proto = GameChooseHand.prototype;

        _proto.start = function start() {
          var _this2 = this;

          this.aLeft.on(Button.EventType.CLICK, this.onLeft, this);
          this.aRight.on(Button.EventType.CLICK, this.onRight, this);
          this.okBtn.on(Button.EventType.CLICK, this.onOk, this);
          this.pageView.getPages().forEach(function (node, idx) {
            var type = (idx + 1).toString();
            var current = node.getChildByName("current");
            current.active = type == _this2.data.curHand;
          });
        };

        _proto.onLeft = function onLeft() {
          var pageLen = this.pageView.getPages().length;
          var cur = this.pageView.curPageIdx;
          var idx = ((cur - 1) % pageLen + pageLen) % pageLen;
          this.pageView.scrollToPage(idx);
        };

        _proto.onRight = function onRight() {
          var pageLen = this.pageView.getPages().length;
          var cur = this.pageView.curPageIdx; // const idx = (cur + 1) % pageLen;

          var idx = ((cur + 1) % pageLen + pageLen) % pageLen;
          this.pageView.scrollToPage(idx);
        };

        _proto.onOk = /*#__PURE__*/function () {
          var _onOk = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
            var idx, type, res;
            return _regeneratorRuntime().wrap(function _callee$(_context) {
              while (1) switch (_context.prev = _context.next) {
                case 0:
                  this.btnEnable(this.okBtn, false);
                  idx = this.pageView.curPageIdx;
                  type = (idx + 1).toString();
                  _context.next = 5;
                  return sendWebNetWithToken(WebNetName.changeHand, {
                    id: type
                  });

                case 5:
                  res = _context.sent;
                  this.btnEnable(this.okBtn, true);

                  if (res.success) {
                    _context.next = 9;
                    break;
                  }

                  return _context.abrupt("return");

                case 9:
                  this.data.sucCall(type);
                  this.hidePanel();

                case 11:
                case "end":
                  return _context.stop();
              }
            }, _callee, this);
          }));

          function onOk() {
            return _onOk.apply(this, arguments);
          }

          return onOk;
        }();

        return GameChooseHand;
      }(Panel), _class3.bundle = "", _class3.skin = "GameChooseHand", _class3.group = "GameChooseHand", _class3), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "aLeft", [_dec2], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "aRight", [_dec3], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "pageView", [_dec4], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "okBtn", [_dec5], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      })), _class2)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/GameMgr.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './WebNet.ts', './UIFast.ts', './BoxPanel.ts', './NoBoxPanel.ts', './PrizePanel.ts', './NoPrizePanel.ts'], function (exports) {
  var _createClass, _asyncToGenerator, _regeneratorRuntime, _extends, cclegacy, sendWebNet, WebNetName, sendWebNetWithToken, showPanel, hideWaiting, showWaiting, BoxPanel, NoBoxPanel, PrizePanel, NoPrizePanel;

  return {
    setters: [function (module) {
      _createClass = module.createClass;
      _asyncToGenerator = module.asyncToGenerator;
      _regeneratorRuntime = module.regeneratorRuntime;
      _extends = module.extends;
    }, function (module) {
      cclegacy = module.cclegacy;
    }, function (module) {
      sendWebNet = module.sendWebNet;
      WebNetName = module.WebNetName;
      sendWebNetWithToken = module.sendWebNetWithToken;
    }, function (module) {
      showPanel = module.showPanel;
      hideWaiting = module.hideWaiting;
      showWaiting = module.showWaiting;
    }, function (module) {
      BoxPanel = module.default;
    }, function (module) {
      NoBoxPanel = module.default;
    }, function (module) {
      PrizePanel = module.default;
    }, function (module) {
      NoPrizePanel = module.default;
    }],
    execute: function () {
      cclegacy._RF.push({}, "81ea2eAUv9F3I+h7TFOMheQ", "GameMgr", undefined);

      var GameMgr = exports('default', /*#__PURE__*/function () {
        function GameMgr() {
          this.gameInfo = {
            startId: 0,
            isUsedDelay: false,
            newGuide: false,
            difficultyLevel: "1",
            targetNum: 5,
            rongNum: 8,
            richManNum: 0,
            loopType: "1",
            handType: "1",
            beautyStartTime: 0,
            beautyEndTime: 0,
            delaySecond: 30,
            delayConsumeNum: 10,
            isBeauty: false
          };
        }

        var _proto = GameMgr.prototype;
        /**
         * 开始游戏
         */

        _proto.start = /*#__PURE__*/function () {
          var _start = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
            var _yield$Promise$all, startRes, gameIndex, isBeauty;

            return _regeneratorRuntime().wrap(function _callee$(_context) {
              while (1) switch (_context.prev = _context.next) {
                case 0:
                  _context.t0 = Promise;
                  _context.next = 3;
                  return sendWebNetWithToken(WebNetName.start);

                case 3:
                  _context.t1 = _context.sent;
                  _context.next = 6;
                  return sendWebNet(WebNetName.gameIndex);

                case 6:
                  _context.t2 = _context.sent;
                  _context.t3 = [_context.t1, _context.t2];
                  _context.next = 10;
                  return _context.t0.all.call(_context.t0, _context.t3);

                case 10:
                  _yield$Promise$all = _context.sent;
                  startRes = _yield$Promise$all[0];
                  gameIndex = _yield$Promise$all[1];

                  if (!(!startRes.success || !gameIndex.success)) {
                    _context.next = 15;
                    break;
                  }

                  return _context.abrupt("return", false);

                case 15:
                  isBeauty = gameIndex.timeStamp >= gameIndex.data.beautyStartTime && gameIndex.timeStamp <= startRes.data.beautyEndTime;
                  this.gameInfo = _extends({}, startRes.data, gameIndex.data, {
                    isBeauty: isBeauty
                  });
                  return _context.abrupt("return", true);

                case 18:
                case "end":
                  return _context.stop();
              }
            }, _callee, this);
          }));

          function start() {
            return _start.apply(this, arguments);
          }

          return start;
        }()
        /**
         * 提交游戏结果
         */
        ;

        _proto.submit = /*#__PURE__*/function () {
          var _submit = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(score, hitNum) {
            var params, _yield$sendWebNetWith, success, data, ifReachTarget, scoreSum, prizeName, prizeImg, prizeId, openBox;

            return _regeneratorRuntime().wrap(function _callee2$(_context2) {
              while (1) switch (_context2.prev = _context2.next) {
                case 0:
                  showWaiting();
                  params = {
                    startId: this.gameInfo.startId,
                    score: score,
                    hitNum: hitNum
                  };
                  _context2.next = 4;
                  return sendWebNetWithToken(WebNetName.submit, params);

                case 4:
                  _yield$sendWebNetWith = _context2.sent;
                  success = _yield$sendWebNetWith.success;
                  data = _yield$sendWebNetWith.data;
                  hideWaiting();

                  if (success) {
                    _context2.next = 10;
                    break;
                  }

                  return _context2.abrupt("return", false);

                case 10:
                  ifReachTarget = data.ifReachTarget, scoreSum = data.scoreSum, prizeName = data.prizeName, prizeImg = data.prizeImg, prizeId = data.prizeId;

                  openBox = function openBox() {
                    if (prizeId && prizeId != "thanks") {
                      showPanel(PrizePanel, {
                        prizeName: prizeName,
                        prizeImg: prizeImg,
                        score: score
                      });
                    } else {
                      showPanel(NoPrizePanel);
                    }
                  };

                  if (ifReachTarget) {
                    showPanel(BoxPanel, {
                      openBox: openBox
                    });
                  } else {
                    showPanel(NoBoxPanel, {
                      totalScore: scoreSum,
                      score: score
                    });
                  }

                  return _context2.abrupt("return", success);

                case 14:
                case "end":
                  return _context2.stop();
              }
            }, _callee2, this);
          }));

          function submit(_x, _x2) {
            return _submit.apply(this, arguments);
          }

          return submit;
        }()
        /**
         * 使用道具
         */
        ;

        _proto.useSp = /*#__PURE__*/function () {
          var _useSp = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
            var res;
            return _regeneratorRuntime().wrap(function _callee3$(_context3) {
              while (1) switch (_context3.prev = _context3.next) {
                case 0:
                  _context3.next = 2;
                  return sendWebNetWithToken(WebNetName.consume);

                case 2:
                  res = _context3.sent;

                  if (res != null && res.success) {
                    _context3.next = 5;
                    break;
                  }

                  return _context3.abrupt("return", false);

                case 5:
                  return _context3.abrupt("return", true);

                case 6:
                case "end":
                  return _context3.stop();
              }
            }, _callee3);
          }));

          function useSp() {
            return _useSp.apply(this, arguments);
          }

          return useSp;
        }();

        _createClass(GameMgr, null, [{
          key: "ins",
          get: function get() {
            !GameMgr._ins && (GameMgr._ins = new GameMgr());
            return GameMgr._ins;
          }
        }]);

        return GameMgr;
      }());
      GameMgr._ins = null;

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/GetRankPrizePanel.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './Panel.ts', './Utils.ts'], function (exports) {
  var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, _asyncToGenerator, _regeneratorRuntime, cclegacy, _decorator, Node, Button, Sprite, UITransform, Label, Panel, strFormat, loadImg;

  return {
    setters: [function (module) {
      _applyDecoratedDescriptor = module.applyDecoratedDescriptor;
      _inheritsLoose = module.inheritsLoose;
      _initializerDefineProperty = module.initializerDefineProperty;
      _assertThisInitialized = module.assertThisInitialized;
      _asyncToGenerator = module.asyncToGenerator;
      _regeneratorRuntime = module.regeneratorRuntime;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      Node = module.Node;
      Button = module.Button;
      Sprite = module.Sprite;
      UITransform = module.UITransform;
      Label = module.Label;
    }, function (module) {
      Panel = module.default;
    }, function (module) {
      strFormat = module.strFormat;
      loadImg = module.loadImg;
    }],
    execute: function () {
      var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _class3;

      cclegacy._RF.push({}, "826a8bppYxIf4YtBCu9sI7G", "GetRankPrizePanel", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var GetRankPrizePanel = exports('GetRankPrizePanel', (_dec = ccclass("GetRankPrizePanel"), _dec2 = property(Node), _dec3 = property(Node), _dec4 = property(Node), _dec5 = property(Node), _dec6 = property(Node), _dec(_class = (_class2 = (_class3 = /*#__PURE__*/function (_Panel) {
        _inheritsLoose(GetRankPrizePanel, _Panel);

        function GetRankPrizePanel() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _Panel.call.apply(_Panel, [this].concat(args)) || this;
          /** 关闭按钮 */

          _initializerDefineProperty(_this, "closeBtn", _descriptor, _assertThisInitialized(_this));
          /** 开心收下 */


          _initializerDefineProperty(_this, "mainBtn", _descriptor2, _assertThisInitialized(_this));
          /** 排名 */


          _initializerDefineProperty(_this, "rankIndex", _descriptor3, _assertThisInitialized(_this));
          /** 奖品图片 */


          _initializerDefineProperty(_this, "prizeImg", _descriptor4, _assertThisInitialized(_this));
          /** 奖品名 */


          _initializerDefineProperty(_this, "prizeName", _descriptor5, _assertThisInitialized(_this));

          return _this;
        }

        var _proto = GetRankPrizePanel.prototype;

        _proto.start = function start() {
          this.mainBtn.on(Button.EventType.CLICK, this.closePannel, this);
          this.closeBtn.on(Button.EventType.CLICK, this.closePannel, this);
          this.pannelRender();
        }
        /** 渲染 */
        ;

        _proto.pannelRender = /*#__PURE__*/function () {
          var _pannelRender = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
            var _this$data, _this$data2, _this$data3;

            var res;
            return _regeneratorRuntime().wrap(function _callee$(_context) {
              while (1) switch (_context.prev = _context.next) {
                case 0:
                  this.rankIndex.getComponent(Label).string = "\u6700\u7EC8\u6392\u540D\u4E3A" + ((_this$data = this.data) == null ? void 0 : _this$data.rank);
                  _context.next = 3;
                  return loadImg((_this$data2 = this.data) == null ? void 0 : _this$data2.prizeImg, this.prizeImg.getComponent(UITransform).width);

                case 3:
                  res = _context.sent;
                  this.prizeImg.getChildByName("Img").getComponent(Sprite).spriteFrame = res == null ? void 0 : res.spriteFrame;
                  this.prizeImg.getChildByName("Img").getComponent(UITransform).width /= (res == null ? void 0 : res.scale) || 1;
                  this.prizeImg.getChildByName("Img").getComponent(UITransform).height /= (res == null ? void 0 : res.scale) || 1;
                  this.prizeName.getComponent(Label).string = strFormat((_this$data3 = this.data) == null ? void 0 : _this$data3.prizeName, 20);

                case 8:
                case "end":
                  return _context.stop();
              }
            }, _callee, this);
          }));

          function pannelRender() {
            return _pannelRender.apply(this, arguments);
          }

          return pannelRender;
        }()
        /** 关闭弹窗 */
        ;

        _proto.closePannel = function closePannel() {
          this.hidePanel();
        };

        return GetRankPrizePanel;
      }(Panel), _class3.bundle = "", _class3.skin = "GetRankPrizePanel", _class3.group = "GetRankPrizePanel", _class3), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "closeBtn", [_dec2], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "mainBtn", [_dec3], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "rankIndex", [_dec4], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "prizeImg", [_dec5], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "prizeName", [_dec6], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      })), _class2)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/GuidePrizePanel.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './Svga.ts', './SvgaEvent.ts', './Panel.ts', './UIFast.ts', './MainGame.ts', './WebNet.ts'], function (exports) {
  var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, _asyncToGenerator, _regeneratorRuntime, cclegacy, _decorator, Node, Button, tween, v3, easing, UIOpacity, Vec3, Svga, SvgaEvent, Panel, hideAllPanel, changeScene, MainGame, sendWebNet, WebNetName;

  return {
    setters: [function (module) {
      _applyDecoratedDescriptor = module.applyDecoratedDescriptor;
      _inheritsLoose = module.inheritsLoose;
      _initializerDefineProperty = module.initializerDefineProperty;
      _assertThisInitialized = module.assertThisInitialized;
      _asyncToGenerator = module.asyncToGenerator;
      _regeneratorRuntime = module.regeneratorRuntime;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      Node = module.Node;
      Button = module.Button;
      tween = module.tween;
      v3 = module.v3;
      easing = module.easing;
      UIOpacity = module.UIOpacity;
      Vec3 = module.Vec3;
    }, function (module) {
      Svga = module.default;
    }, function (module) {
      SvgaEvent = module.SvgaEvent;
    }, function (module) {
      Panel = module.default;
    }, function (module) {
      hideAllPanel = module.hideAllPanel;
      changeScene = module.changeScene;
    }, function (module) {
      MainGame = module.MainGame;
    }, function (module) {
      sendWebNet = module.sendWebNet;
      WebNetName = module.WebNetName;
    }],
    execute: function () {
      var _dec, _dec2, _dec3, _dec4, _class, _class2, _descriptor, _descriptor2, _descriptor3, _class3;

      cclegacy._RF.push({}, "25a5cH7pqhMzLM7QveY34OB", "GuidePrizePanel", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var GuidePrizePanel = exports('GuidePrizePanel', (_dec = ccclass("GuidePrizePanel"), _dec2 = property(Node), _dec3 = property(Node), _dec4 = property(Node), _dec(_class = (_class2 = (_class3 = /*#__PURE__*/function (_Panel) {
        _inheritsLoose(GuidePrizePanel, _Panel);

        function GuidePrizePanel() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _Panel.call.apply(_Panel, [this].concat(args)) || this;
          /** 我知道了 */

          _initializerDefineProperty(_this, "mainBtn", _descriptor, _assertThisInitialized(_this));
          /** 标题氛围 */


          _initializerDefineProperty(_this, "titleSvga", _descriptor2, _assertThisInitialized(_this));
          /** 标题 */


          _initializerDefineProperty(_this, "title", _descriptor3, _assertThisInitialized(_this));

          _this.mainBtnTween = null;
          return _this;
        }

        var _proto = GuidePrizePanel.prototype;

        _proto.start = function start() {
          var _this2 = this;

          this.mainBtn.on(Button.EventType.CLICK, this.closePannel, this);
          this.mainBtnTween = tween(this.mainBtn).repeatForever(tween(this.mainBtn).to(0.5, {
            scale: v3(1.1, 1.1, 1.1)
          }, {
            easing: easing.smooth
          }).to(0.5, {
            scale: v3(0.9, 0.9, 0.9)
          }, {
            easing: easing.smooth
          })).start();
          this.titleSvga.getComponent(Svga).play();
          this.titleSvga.on(SvgaEvent.END_FRAME, function () {
            _this2.title.getComponent(UIOpacity).opacity = 255;
            tween(_this2.title).to(0.2, {
              scale: new Vec3(1, 1, 1)
            }).start();
          }); // this.pannelRender();
        }
        /** 渲染 */
        ;

        _proto.pannelRender = /*#__PURE__*/function () {
          var _pannelRender = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
            return _regeneratorRuntime().wrap(function _callee$(_context) {
              while (1) switch (_context.prev = _context.next) {
                case 0:
                case "end":
                  return _context.stop();
              }
            }, _callee);
          }));

          function pannelRender() {
            return _pannelRender.apply(this, arguments);
          }

          return pannelRender;
        }()
        /** 关闭弹窗 */
        ;

        _proto.closePannel = function closePannel() {
          hideAllPanel();
          sendWebNet(WebNetName.index);
          changeScene(MainGame);
        };

        return GuidePrizePanel;
      }(Panel), _class3.bundle = "", _class3.skin = "GuidePrizePanel", _class3.group = "GuidePrizePanel", _class3), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "mainBtn", [_dec2], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "titleSvga", [_dec3], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "title", [_dec4], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      })), _class2)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/HandItem.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './WebNet.ts', './ChangeEquipPanel.ts'], function (exports) {
  var _inheritsLoose, _asyncToGenerator, _regeneratorRuntime, cclegacy, _decorator, UIOpacity, Button, Component, sendWebNetWithToken, WebNetName, ChangeEquipPanel;

  return {
    setters: [function (module) {
      _inheritsLoose = module.inheritsLoose;
      _asyncToGenerator = module.asyncToGenerator;
      _regeneratorRuntime = module.regeneratorRuntime;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      UIOpacity = module.UIOpacity;
      Button = module.Button;
      Component = module.Component;
    }, function (module) {
      sendWebNetWithToken = module.sendWebNetWithToken;
      WebNetName = module.WebNetName;
    }, function (module) {
      ChangeEquipPanel = module.ChangeEquipPanel;
    }],
    execute: function () {
      var _dec, _class;

      cclegacy._RF.push({}, "49dccbLIT1Di5cErDxairQ3", "HandItem", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var HandItem = exports('HandItem', (_dec = ccclass('HandItem'), _dec(_class = /*#__PURE__*/function (_Component) {
        _inheritsLoose(HandItem, _Component);

        function HandItem() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _Component.call.apply(_Component, [this].concat(args)) || this;
          _this.handType = "";
          _this.cePanel = null;
          return _this;
        }

        var _proto = HandItem.prototype;

        _proto.updateInfo = function updateInfo(flag, handType, node) {
          this.handType = handType;
          this.cePanel = node;

          if (flag) {
            this.node.getChildByName("UseIcon").active = true;
            this.node.getChildByName("MainBtn").active = false;
            this.node.getChildByPath("Border/Select").getComponent(UIOpacity).opacity = 255;
          } else {
            this.node.getChildByName("UseIcon").active = false;
            this.node.getChildByName("MainBtn").active = true;
            this.node.getChildByPath("Border/Select").getComponent(UIOpacity).opacity = 0;
          }
        };

        _proto.start = function start() {
          this.node.getChildByName("MainBtn").on(Button.EventType.CLICK, this.changeHand, this);
        }
        /** 更换爪子 */
        ;

        _proto.changeHand = /*#__PURE__*/function () {
          var _changeHand = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
            var res;
            return _regeneratorRuntime().wrap(function _callee$(_context) {
              while (1) switch (_context.prev = _context.next) {
                case 0:
                  _context.next = 2;
                  return sendWebNetWithToken(WebNetName.changeHand, {
                    id: this.handType
                  });

                case 2:
                  res = _context.sent;

                  if (!(res != null && res.success)) {
                    _context.next = 6;
                    break;
                  }

                  _context.next = 6;
                  return sendWebNetWithToken(WebNetName.equip);

                case 6:
                  this.cePanel.getComponent(ChangeEquipPanel).handInit();

                case 7:
                case "end":
                  return _context.stop();
              }
            }, _callee, this);
          }));

          function changeHand() {
            return _changeHand.apply(this, arguments);
          }

          return changeHand;
        }();

        _proto.update = function update(deltaTime) {};

        return HandItem;
      }(Component)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/HardLookAtHandler.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './CinestationMath.ts', './CameraHandler.ts', './VCamTracked.ts'], function (exports) {
  var _inheritsLoose, cclegacy, Vec3, Quat, isValid, Vec4_closeTo, CameraHandler, VCamUp;

  return {
    setters: [function (module) {
      _inheritsLoose = module.inheritsLoose;
    }, function (module) {
      cclegacy = module.cclegacy;
      Vec3 = module.Vec3;
      Quat = module.Quat;
      isValid = module.isValid;
    }, function (module) {
      Vec4_closeTo = module.Vec4_closeTo;
    }, function (module) {
      CameraHandler = module.CameraHandler;
    }, function (module) {
      VCamUp = module.VCamUp;
    }],
    execute: function () {
      cclegacy._RF.push({}, "6b941On3J1Ihqyi0Yu8PlLi", "HardLookAtHandler", undefined);

      var __worldPos = new Vec3();

      var __rotation = new Quat();

      var __cameraUp = new Vec3();

      var HardLookAtHandler = exports('HardLookAtHandler', /*#__PURE__*/function (_CameraHandler) {
        _inheritsLoose(HardLookAtHandler, _CameraHandler);

        function HardLookAtHandler() {
          return _CameraHandler.apply(this, arguments) || this;
        }

        var _proto = HardLookAtHandler.prototype;

        _proto.updateCamera = function updateCamera(deltaTime) {
          var vcam = this._vcam;

          if (isValid(vcam.lookAt)) {
            Vec3.add(__worldPos, vcam.lookAt.position, vcam.aim.trackedObjectOffset);

            if (vcam.lookAt.parent) {
              __worldPos.add(vcam.lookAt.parent.worldPosition);
            }

            vcam.lookaheadPosition.set(__worldPos);
            var tracked = vcam.body.tracked;

            if (tracked.path) {
              switch (tracked.cameraUp) {
                case VCamUp.PATH:
                  tracked.path.evaluteUp(__cameraUp, tracked.progress);
                  break;

                default:
                  __cameraUp.set(0, 1, 0);

                  break;
              }
            } else {
              __cameraUp.set(0, 1, 0);
            }

            Quat.fromViewUp(__rotation, Vec3.subtract(__worldPos, vcam.node.worldPosition, __worldPos).normalize(), __cameraUp);

            if (!Vec4_closeTo(__rotation, vcam.node.worldRotation)) {
              vcam.node.worldRotation = __rotation;
            }
          }
        };

        return HardLookAtHandler;
      }(CameraHandler));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/HomeScene.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './Scene.ts', './WebNet.ts', './MainGame.ts', './UIFast.ts', './GameMgr.ts', './RulePanel.ts', './Utils.ts', './RankScene.ts', './InvitePanel.ts', './ShareCenter.ts', './RecordScene.ts', './ChangeEquipPanel.ts', './GetRankPrizePanel.ts', './NoGetRankPrizePanel.ts', './GuidePrizePanel.ts', './BeautyPanel.ts', './TaskPanel.ts'], function (exports) {
  var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, _asyncToGenerator, _regeneratorRuntime, cclegacy, _decorator, Node, Label, tween, v3, easing, Button, Scene, sendWebNet, WebNetName, getWebData, MainGame, showToast, showPanel, changeScene, GameMgr, RulePanel, getUrlParam, RankScene, InvitePanel, ShareCenter, RecordScene, ChangeEquipPanel, GetRankPrizePanel, NoGetRankPrizePanel, GuidePrizePanel, BeautyPanel, TaskPanel;

  return {
    setters: [function (module) {
      _applyDecoratedDescriptor = module.applyDecoratedDescriptor;
      _inheritsLoose = module.inheritsLoose;
      _initializerDefineProperty = module.initializerDefineProperty;
      _assertThisInitialized = module.assertThisInitialized;
      _asyncToGenerator = module.asyncToGenerator;
      _regeneratorRuntime = module.regeneratorRuntime;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      Node = module.Node;
      Label = module.Label;
      tween = module.tween;
      v3 = module.v3;
      easing = module.easing;
      Button = module.Button;
    }, function (module) {
      Scene = module.default;
    }, function (module) {
      sendWebNet = module.sendWebNet;
      WebNetName = module.WebNetName;
      getWebData = module.getWebData;
    }, function (module) {
      MainGame = module.MainGame;
    }, function (module) {
      showToast = module.showToast;
      showPanel = module.showPanel;
      changeScene = module.changeScene;
    }, function (module) {
      GameMgr = module.default;
    }, function (module) {
      RulePanel = module.default;
    }, function (module) {
      getUrlParam = module.getUrlParam;
    }, function (module) {
      RankScene = module.RankScene;
    }, function (module) {
      InvitePanel = module.default;
    }, function (module) {
      ShareCenter = module.default;
    }, function (module) {
      RecordScene = module.RecordScene;
    }, function (module) {
      ChangeEquipPanel = module.ChangeEquipPanel;
    }, function (module) {
      GetRankPrizePanel = module.GetRankPrizePanel;
    }, function (module) {
      NoGetRankPrizePanel = module.NoGetRankPrizePanel;
    }, function (module) {
      GuidePrizePanel = module.GuidePrizePanel;
    }, function (module) {
      BeautyPanel = module.BeautyPanel;
    }, function (module) {
      TaskPanel = module.TaskPanel;
    }],
    execute: function () {
      var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _class3;

      cclegacy._RF.push({}, "b909flDaxhFV6G7UvCmThLP", "HomeScene", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var HomeScene = exports('HomeScene', (_dec = ccclass('HomeScene'), _dec2 = property(Node), _dec3 = property(Node), _dec4 = property(Node), _dec5 = property(Node), _dec6 = property(Node), _dec7 = property(Node), _dec8 = property(Node), _dec9 = property(Node), _dec10 = property(Label), _dec11 = property(Label), _dec12 = property(Label), _dec13 = property(Node), _dec(_class = (_class2 = (_class3 = /*#__PURE__*/function (_Scene) {
        _inheritsLoose(HomeScene, _Scene);

        function HomeScene() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _Scene.call.apply(_Scene, [this].concat(args)) || this;
          /** 去挑战按钮 */

          _initializerDefineProperty(_this, "startBtn", _descriptor, _assertThisInitialized(_this));
          /** 送惊喜按钮 */


          _initializerDefineProperty(_this, "surpriseBtn", _descriptor2, _assertThisInitialized(_this));
          /** 任务按钮 */


          _initializerDefineProperty(_this, "taskBtn", _descriptor3, _assertThisInitialized(_this));
          /** 返回按钮 */


          _initializerDefineProperty(_this, "backBtn", _descriptor4, _assertThisInitialized(_this));
          /** 我的奖品按钮 */


          _initializerDefineProperty(_this, "prizeBtn", _descriptor5, _assertThisInitialized(_this));
          /** 规则按钮 */


          _initializerDefineProperty(_this, "ruleBtn", _descriptor6, _assertThisInitialized(_this));
          /** 明细按钮 */


          _initializerDefineProperty(_this, "detailBtn", _descriptor7, _assertThisInitialized(_this));
          /** 排行榜按钮 */


          _initializerDefineProperty(_this, "rankBtn", _descriptor8, _assertThisInitialized(_this));
          /** 剩余次数 */


          _initializerDefineProperty(_this, "gameCountLabel", _descriptor9, _assertThisInitialized(_this));
          /** 财富积分值 */


          _initializerDefineProperty(_this, "pointLabel", _descriptor10, _assertThisInitialized(_this));
          /** 当前排名值 */


          _initializerDefineProperty(_this, "currentRankLabel", _descriptor11, _assertThisInitialized(_this));
          /** 佩戴财富圈 */


          _initializerDefineProperty(_this, "circleBtn", _descriptor12, _assertThisInitialized(_this));

          _this.startBtnTween = null;
          /** 获取首页 */

          _this.getHomeInfo = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
            var _yield$sendWebNet, success, data, _ref2, _ref2$remainGameTime, remainGameTime, _ref2$rankScore, rankScore, _ref2$rank, rank, assistPopInfo, boolFirstEnter, boolBeauty, weekRankPopInfo, rankPopInfo;

            return _regeneratorRuntime().wrap(function _callee$(_context) {
              while (1) switch (_context.prev = _context.next) {
                case 0:
                  _context.next = 2;
                  return sendWebNet(WebNetName.index);

                case 2:
                  _yield$sendWebNet = _context.sent;
                  success = _yield$sendWebNet.success;
                  data = _yield$sendWebNet.data;

                  if (success) {
                    _ref2 = data || {}, _ref2$remainGameTime = _ref2.remainGameTime, remainGameTime = _ref2$remainGameTime === void 0 ? 0 : _ref2$remainGameTime, _ref2$rankScore = _ref2.rankScore, rankScore = _ref2$rankScore === void 0 ? 0 : _ref2$rankScore, _ref2$rank = _ref2.rank, rank = _ref2$rank === void 0 ? 0 : _ref2$rank, assistPopInfo = _ref2.assistPopInfo, boolFirstEnter = _ref2.boolFirstEnter, boolBeauty = _ref2.boolBeauty, weekRankPopInfo = _ref2.weekRankPopInfo, rankPopInfo = _ref2.rankPopInfo;
                    _this.gameCountLabel.string = "\u6E38\u620F\u5269\u4F59\u6B21\u6570\uFF1A" + remainGameTime; // 最多展示7位数字，超过7位数展示为999999+

                    _this.pointLabel.string = rankScore > 9999999 ? '999999+' : rankScore; // 有次数 主按钮 呼吸动效

                    if (remainGameTime) {
                      _this.startBtnTween = tween(_this.startBtn).repeatForever(tween(_this.startBtn).to(0.5, {
                        scale: v3(1.1, 1.1, 1.1)
                      }, {
                        easing: easing.smooth
                      }).to(0.5, {
                        scale: v3(0.9, 0.9, 0.9)
                      }, {
                        easing: easing.smooth
                      })).start();
                    } else {
                      _this.startBtnTween && _this.startBtnTween.stop();
                    } // 最多超过999名就展示999+  未参与游戏展示—


                    if (rank === 0) {
                      _this.currentRankLabel.string = '-';
                    } else if (rank === -1 || rank > 999) {
                      _this.currentRankLabel.string = '999+';
                    } else {
                      _this.currentRankLabel.string = rank;
                    } // 助力弹窗信息


                    if (assistPopInfo && assistPopInfo.newAssistNum) {
                      showToast(assistPopInfo.newAssistNum + "\u4F4D\u597D\u53CB\u4E3A\u4F60\u52A9\u529B\uFF5E\u5DF2\u83B7\u5F97" + assistPopInfo.newChallengeNum + "\u6B21\u6311\u6218\u6B21\u6570");
                    }
                    /** 周排行榜获奖 */


                    if (!!(weekRankPopInfo != null && weekRankPopInfo.boolShowPop)) {
                      if (!!(weekRankPopInfo != null && weekRankPopInfo.boolGetPrize)) {
                        showPanel(GetRankPrizePanel, weekRankPopInfo);
                      } else {
                        showPanel(NoGetRankPrizePanel, weekRankPopInfo);
                      }
                    }
                    /** 总排行榜获奖 */


                    if (!!(rankPopInfo != null && rankPopInfo.boolShowPop)) {
                      if (!!(rankPopInfo != null && rankPopInfo.boolGetPrize)) {
                        showPanel(GetRankPrizePanel, rankPopInfo);
                      } else {
                        showPanel(NoGetRankPrizePanel, rankPopInfo);
                      }
                    }
                    /** 首次登录 */


                    if (!!boolFirstEnter) {
                      showPanel(GuidePrizePanel);
                    }
                    /** 女神弹窗 */


                    if (!!boolBeauty) {
                      showPanel(BeautyPanel);
                    }
                  }

                case 6:
                case "end":
                  return _context.stop();
              }
            }, _callee);
          }));
          /** 去挑战 */

          _this.clickStart = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
            var _ref4, _ref4$remainGameTime, remainGameTime, boolDayPlayLimit, success;

            return _regeneratorRuntime().wrap(function _callee2$(_context2) {
              while (1) switch (_context2.prev = _context2.next) {
                case 0:
                  _ref4 = getWebData(WebNetName.index).data || {}, _ref4$remainGameTime = _ref4.remainGameTime, remainGameTime = _ref4$remainGameTime === void 0 ? 0 : _ref4$remainGameTime, boolDayPlayLimit = _ref4.boolDayPlayLimit;

                  if (!boolDayPlayLimit) {
                    _context2.next = 3;
                    break;
                  }

                  return _context2.abrupt("return", showToast("今日挑战已达上限，明天再来吧～"));

                case 3:
                  if (remainGameTime) {
                    _context2.next = 5;
                    break;
                  }

                  return _context2.abrupt("return", showToast("没有次数啦～快去做任务吧！\n明日再来还有免费次数哦！"));

                case 5:
                  _this.btnEnable(_this.startBtn, false);

                  _context2.prev = 6;
                  _context2.next = 9;
                  return GameMgr.ins.start();

                case 9:
                  success = _context2.sent;

                  if (!success) {
                    _context2.next = 13;
                    break;
                  }

                  _context2.next = 13;
                  return changeScene(MainGame);

                case 13:
                  _context2.next = 18;
                  break;

                case 15:
                  _context2.prev = 15;
                  _context2.t0 = _context2["catch"](6);
                  console.error(_context2.t0);

                case 18:
                  _this.btnEnable(_this.startBtn, true);

                case 19:
                case "end":
                  return _context2.stop();
              }
            }, _callee2, null, [[6, 15]]);
          }));
          /** 奖励排行 */

          _this.clickRank = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
            return _regeneratorRuntime().wrap(function _callee3$(_context3) {
              while (1) switch (_context3.prev = _context3.next) {
                case 0:
                  _context3.next = 2;
                  return changeScene(RankScene);

                case 2:
                case "end":
                  return _context3.stop();
              }
            }, _callee3);
          }));
          /** 送惊喜 */

          _this.clickSurprise = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
            return _regeneratorRuntime().wrap(function _callee4$(_context4) {
              while (1) switch (_context4.prev = _context4.next) {
                case 0:
                  showPanel(InvitePanel);

                case 1:
                case "end":
                  return _context4.stop();
              }
            }, _callee4);
          }));
          /** 任务 */

          _this.clickTask = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
            return _regeneratorRuntime().wrap(function _callee5$(_context5) {
              while (1) switch (_context5.prev = _context5.next) {
                case 0:
                  showPanel(TaskPanel, {
                    panelType: "scrollTop"
                  });

                case 1:
                case "end":
                  return _context5.stop();
              }
            }, _callee5);
          }));
          /** 明细 */

          _this.clickDetail = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
            return _regeneratorRuntime().wrap(function _callee6$(_context6) {
              while (1) switch (_context6.prev = _context6.next) {
                case 0:
                  // showPanel(TODO)
                  changeScene(RecordScene);

                case 1:
                case "end":
                  return _context6.stop();
              }
            }, _callee6);
          }));
          /** 佩戴财富圈 */

          _this.clickCircle = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
            return _regeneratorRuntime().wrap(function _callee7$(_context7) {
              while (1) switch (_context7.prev = _context7.next) {
                case 0:
                  showPanel(ChangeEquipPanel);

                case 1:
                case "end":
                  return _context7.stop();
              }
            }, _callee7);
          }));
          /** 我的奖品 */

          _this.clickPrize = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8() {
            return _regeneratorRuntime().wrap(function _callee8$(_context8) {
              while (1) switch (_context8.prev = _context8.next) {
                case 0:
                  window.location.href = "prize.html?appID=" + getUrlParam("appID") + "&channel=" + getUrlParam("channel");

                case 1:
                case "end":
                  return _context8.stop();
              }
            }, _callee8);
          }));
          /** 规则 */

          _this.clickRule = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
            return _regeneratorRuntime().wrap(function _callee9$(_context9) {
              while (1) switch (_context9.prev = _context9.next) {
                case 0:
                  showPanel(RulePanel);

                case 1:
                case "end":
                  return _context9.stop();
              }
            }, _callee9);
          }));
          /** 返回 */

          _this.clickBack = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10() {
            var ThirdApp;
            return _regeneratorRuntime().wrap(function _callee10$(_context10) {
              while (1) switch (_context10.prev = _context10.next) {
                case 0:
                  sessionStorage.clear();
                  ThirdApp = window['ThirdApp'];

                  if (ThirdApp) {
                    ThirdApp.setSession('final', {});
                    ThirdApp.gotoBack();
                  }

                case 3:
                case "end":
                  return _context10.stop();
              }
            }, _callee10);
          }));
          return _this;
        }

        var _proto = HomeScene.prototype;

        _proto.onLoad = function onLoad() {
          this.startBtn.on(Button.EventType.CLICK, this.clickStart, this);
          this.surpriseBtn.on(Button.EventType.CLICK, this.clickSurprise, this);
          this.taskBtn.on(Button.EventType.CLICK, this.clickTask, this);
          this.backBtn.on(Button.EventType.CLICK, this.clickBack, this);
          this.prizeBtn.on(Button.EventType.CLICK, this.clickPrize, this);
          this.ruleBtn.on(Button.EventType.CLICK, this.clickRule, this);
          this.detailBtn.on(Button.EventType.CLICK, this.clickDetail, this);
          this.rankBtn.on(Button.EventType.CLICK, this.clickRank, this);
          this.circleBtn.on(Button.EventType.CLICK, this.clickCircle, this);
        };

        _proto.start = function start() {
          this.getHomeInfo();
          ShareCenter.ins.doAssist();
        };

        _proto.update = function update(deltaTime) {};

        return HomeScene;
      }(Scene), _class3.skin = "HomeScene", _class3.group = ["HomeScene"], _class3), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "startBtn", [_dec2], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "surpriseBtn", [_dec3], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "taskBtn", [_dec4], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "backBtn", [_dec5], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "prizeBtn", [_dec6], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "ruleBtn", [_dec7], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "detailBtn", [_dec8], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "rankBtn", [_dec9], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "gameCountLabel", [_dec10], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "pointLabel", [_dec11], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "currentRankLabel", [_dec12], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "circleBtn", [_dec13], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      })), _class2)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/ImpulseStage.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './CinestationData.ts', './NoiseGenerator.ts', './BaseStage.ts'], function (exports) {
  var _inheritsLoose, _createForOfIteratorHelperLoose, cclegacy, cinestation, NoiseGenerator, BaseStage;

  return {
    setters: [function (module) {
      _inheritsLoose = module.inheritsLoose;
      _createForOfIteratorHelperLoose = module.createForOfIteratorHelperLoose;
    }, function (module) {
      cclegacy = module.cclegacy;
    }, function (module) {
      cinestation = module.cinestation;
    }, function (module) {
      NoiseGenerator = module.NoiseGenerator;
    }, function (module) {
      BaseStage = module.BaseStage;
    }],
    execute: function () {
      cclegacy._RF.push({}, "f21dbKN87dMO5qpMLHdGsc/", "ImpulseStage", undefined);

      var ImpulseStage = exports('ImpulseStage', /*#__PURE__*/function (_BaseStage) {
        _inheritsLoose(ImpulseStage, _BaseStage);

        function ImpulseStage() {
          return _BaseStage.apply(this, arguments) || this;
        }

        var _proto = ImpulseStage.prototype;

        _proto.updateStage = function updateStage(deltaTime) {
          var vcam = this._vcam;
          var impulse = vcam.impulse;

          for (var _iterator = _createForOfIteratorHelperLoose(cinestation.impulseSources), _step; !(_step = _iterator()).done;) {
            var source = _step.value;

            if (source.node.layer & impulse.source) {
              var values = source.generateImpulse(deltaTime);

              if (values) {
                NoiseGenerator.ApplyNoise(values, vcam);
              }
            }
          }
        };

        return ImpulseStage;
      }(BaseStage));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/InputMgr.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc'], function (exports) {
  var _createClass, cclegacy;

  return {
    setters: [function (module) {
      _createClass = module.createClass;
    }, function (module) {
      cclegacy = module.cclegacy;
    }],
    execute: function () {
      cclegacy._RF.push({}, "8fac4mBG8lPo5xB3wRNGThs", "InputMgr", undefined);

      var InputMgr = exports('InputMgr', /*#__PURE__*/function () {
        function InputMgr() {
          this.STATE_NORMAL = 1;
          this.STATE_KEEP = 2;
          this._flags = {};
          this._flagsMeta = {};
        }

        var _proto = InputMgr.prototype;

        _proto.setFlag = function setFlag(flag, keep, meta) {
          this._flags[flag] = keep ? this.STATE_KEEP : this.STATE_NORMAL;

          if (meta != null) {
            this._flagsMeta[flag] = meta;
          }
        };

        _proto.removeFlag = function removeFlag(flag) {
          delete this._flags[flag];
        };

        _proto.hasFlag = function hasFlag(flag) {
          return !!this._flags[flag];
        };

        _proto.getMetaByFlag = function getMetaByFlag(flag) {
          return this._flagsMeta[flag];
        };

        _proto.update = function update() {
          for (var k in this._flags) {
            if (this._flags[k] != this.STATE_KEEP) {
              this._flags[k] = 0;
            }
          }
        };

        _createClass(InputMgr, null, [{
          key: "inst",
          get: function get() {
            if (!this._inst) {
              this._inst = new InputMgr();
            }

            return this._inst;
          }
        }]);

        return InputMgr;
      }());
      InputMgr._inst = null;

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/interface.ts", ['cc'], function () {
  var cclegacy;
  return {
    setters: [function (module) {
      cclegacy = module.cclegacy;
    }],
    execute: function () {
      cclegacy._RF.push({}, "dbeb7x/ykZC14tBqxOW9gtp", "interface", undefined);
      /**
       * 导出只是当作类型接口用
       */

      /**
       * 还有很多其他数据，暂不需要，比如矢量路径和遮罩路径暂时都无
       */

      /**
       * 就是个时间轴，setValue和resetValue方法自行实现
       */


      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/InvitePanel.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './Panel.ts', './ShareCenter.ts', './const.ts'], function (exports) {
  var _inheritsLoose, _asyncToGenerator, _regeneratorRuntime, cclegacy, _decorator, Button, Panel, ShareCenter, SHARE_TYPE;

  return {
    setters: [function (module) {
      _inheritsLoose = module.inheritsLoose;
      _asyncToGenerator = module.asyncToGenerator;
      _regeneratorRuntime = module.regeneratorRuntime;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      Button = module.Button;
    }, function (module) {
      Panel = module.default;
    }, function (module) {
      ShareCenter = module.default;
    }, function (module) {
      SHARE_TYPE = module.SHARE_TYPE;
    }],
    execute: function () {
      var _dec, _class, _class2;

      cclegacy._RF.push({}, "1c8c3hDcVBBhLrORtAQxX+C", "InvitePanel", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var InvitePanel = exports('default', (_dec = ccclass('InvitePanel'), _dec(_class = (_class2 = /*#__PURE__*/function (_Panel) {
        _inheritsLoose(InvitePanel, _Panel);

        function InvitePanel() {
          return _Panel.apply(this, arguments) || this;
        }

        var _proto = InvitePanel.prototype;

        _proto.start = /*#__PURE__*/function () {
          var _start = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
            return _regeneratorRuntime().wrap(function _callee$(_context) {
              while (1) switch (_context.prev = _context.next) {
                case 0:
                  this.view["close"].on(Button.EventType.CLICK, this.hidePanel, this);
                  this.view["shareBtn"].on(Button.EventType.CLICK, this.shareHandle, this);

                case 2:
                case "end":
                  return _context.stop();
              }
            }, _callee, this);
          }));

          function start() {
            return _start.apply(this, arguments);
          }

          return start;
        }()
        /** 送惊喜 立即分享 */
        ;

        _proto.shareHandle = /*#__PURE__*/function () {
          var _shareHandle = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
            return _regeneratorRuntime().wrap(function _callee2$(_context2) {
              while (1) switch (_context2.prev = _context2.next) {
                case 0:
                  ShareCenter.ins.doShare(SHARE_TYPE.SURPRISE);

                case 1:
                case "end":
                  return _context2.stop();
              }
            }, _callee2);
          }));

          function shareHandle() {
            return _shareHandle.apply(this, arguments);
          }

          return shareHandle;
        }();

        return InvitePanel;
      }(Panel), _class2.skin = "InvitePanel", _class2.group = "InvitePanel", _class2)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/IVCam.ts", ['cc'], function () {
  var cclegacy;
  return {
    setters: [function (module) {
      cclegacy = module.cclegacy;
    }],
    execute: function () {
      cclegacy._RF.push({}, "15037D3BZVK3LlfNfJfNhch", "IVCam", undefined);

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/loadSvga.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc'], function (exports) {
  var _asyncToGenerator, _regeneratorRuntime, cclegacy, assetManager;

  return {
    setters: [function (module) {
      _asyncToGenerator = module.asyncToGenerator;
      _regeneratorRuntime = module.regeneratorRuntime;
    }, function (module) {
      cclegacy = module.cclegacy;
      assetManager = module.assetManager;
    }],
    execute: function () {
      exports({
        createImage: createImage,
        createImageAsync: createImageAsync
      });

      cclegacy._RF.push({}, "d0e08EVP/pFhJXdUpznXvD+", "loadSvga", undefined);

      var SvgaCache = exports('SvgaCache', {});
      var loadCache = {};
      assetManager.downloader.register('.svga', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(path, options, onComplete) {
        var videoItem;
        return _regeneratorRuntime().wrap(function _callee2$(_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              // // @ts-ignore
              // assetManager.downloader.downloadFile(path, {responseType: 'arraybuffer'}, onComplete);
              if (!loadCache[path]) {
                loadCache[path] = new Promise( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(resolve) {
                  var svgaParser, videoItem;
                  return _regeneratorRuntime().wrap(function _callee$(_context) {
                    while (1) switch (_context.prev = _context.next) {
                      case 0:
                        svgaParser = new SVGA.Parser({
                          // 是否取消使用 WebWorker，默认值 false
                          isDisableWebWorker: CC_EDITOR,
                          // 是否取消使用 ImageBitmap 垫片，默认值 false
                          isDisableImageBitmapShim: true
                        });
                        _context.next = 3;
                        return svgaParser.load(path);

                      case 3:
                        videoItem = _context.sent;
                        resolve(videoItem);

                      case 5:
                      case "end":
                        return _context.stop();
                    }
                  }, _callee);
                })));
              }

              _context2.next = 3;
              return loadCache[path];

            case 3:
              videoItem = _context2.sent;
              onComplete(null, videoItem);
            // svgaParser.load(path, {
            //     isDisableImageBitmapShim: true,
            // }).then((videoItem) => {
            //     console.log(11111, videoItem);
            // });
            //
            // // @ts-ignore
            // if (SvgaCache[path]) {
            //     onComplete(null, SvgaCache[path]);
            // } else {
            //     // @ts-ignore
            //     SvgaParser.loadSvga(path, (vm: IVideoEntity) => {
            //         SvgaCache[path] = vm;
            //
            //         console.log(22222, path, SvgaCache[path]);
            //
            //         onComplete(null, vm);
            //     });
            // }

            case 5:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))); // export function loadSvga(svga: Asset | string) {
      //     console.log(svga);
      //     return new Promise<IVideoEntity>((resolve) => {
      //         resolve(svga["_file"]);
      //         return;
      //         let key = "";
      //         if (svga instanceof Asset) {
      //             key = svga["_uuid"];
      //             svga = svga["_nativeAsset"];
      //         } else {
      //             key = svga;
      //         }
      //         if (SvgaCache[key]) {
      //             resolve(SvgaCache[key]);
      //         } else {
      //             // @ts-ignore
      //             SvgaParser.loadSvga(svga, (vm: IVideoEntity) => {
      //                 SvgaCache[key] = vm;
      //                 resolve(vm);
      //             });
      //         }
      //     });
      // }

      var ImgCache = exports('ImgCache', {});

      function createImageAsync(src) {
        return new Promise(function (resolve) {
          if (ImgCache[src]) {
            resolve(ImgCache[src]);
          } else {
            var img = new Image();

            img.onload = function () {
              ImgCache[src] = img;
              resolve(img);
            };

            img.src = src;
          }
        });
      }

      function createImage(src) {
        if (ImgCache[src]) return ImgCache[src];
        var img = new Image();
        ImgCache[src] = img; // 不在onload之后应该没事吧

        img.src = src;
        return img;
      }

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/main", ['./debug-view-runtime-control.ts', './CirculatePageView.ts', './Svga.ts', './SvgaEvent.ts', './SvgaOffScreen.ts', './SvgaTrack.ts', './interface.ts', './loadSvga.ts', './MEvent.ts', './Module.ts', './Panel.ts', './RES.ts', './Scene.ts', './UIFast.ts', './UILayer.ts', './UIMgr.ts', './FullScreenBgAutoFit.ts', './GameMgr.ts', './BeautyPanel.ts', './BoxPanel.ts', './ChangeEquipPanel.ts', './CircleItem.ts', './HandItem.ts', './GameChooseHand.ts', './GetRankPrizePanel.ts', './GuidePrizePanel.ts', './InvitePanel.ts', './NoBoxPanel.ts', './NoGetRankPrizePanel.ts', './NoPrizePanel.ts', './PrizePanel.ts', './ReviewPanel.ts', './RulePanel.ts', './TaskItem.ts', './TaskPanel.ts', './HomeScene.ts', './MainGame.ts', './Quan.ts', './RankScene.ts', './RecordScene.ts', './RankScrollListItem.ts', './RecordScrollListItem.ts', './ScrollList.ts', './ScrollListItem.ts', './ShareCenter.ts', './TaskCenter.ts', './Md5.ts', './Utils.ts', './WebNet.ts', './ajax.ts', './webTools.ts', './appFn.ts', './ecaptcha.ts', './const.ts', './Start.ts', './CinestaionImpulseSource.ts', './CinestationBlendDefinition.ts', './CinestationBrain.ts', './CinestationData.ts', './CinestationEasing.ts', './CinestationMath.ts', './CinestationShareAssets.ts', './CinestationSmoothPath.ts', './Events.ts', './Types.ts', './Visualization.ts', './Base.ts', './IVCam.ts', './VCamAim.ts', './VCamAutoDolly.ts', './VCamBody.ts', './VCamComposer.ts', './VCamFreeLook.ts', './VCamHardLook.ts', './VCamImpulse.ts', './VCamLens.ts', './VCamNoise.ts', './VCamTracked.ts', './CameraHandler.ts', './ComposerHandler.ts', './FreeLookHandler.ts', './HardLookAtHandler.ts', './NoiseHandler.ts', './TrackedHandler.ts', './NoiseGenerator.ts', './Predictor.ts', './AimStage.ts', './BaseStage.ts', './BodyStage.ts', './ImpulseStage.ts', './NoiseStage.ts', './VirtualCamera.ts', './AudioMgr.ts', './InputMgr.ts', './ModuleContext.ts', './ResolutionAutoFit.ts', './ResourceMgr.ts', './SafeJSON.ts', './SceneUtils.ts', './URLUtils.ts', './FPSCamera.ts', './FollowCamera2D.ts', './FreeCamera.ts', './ThirdPersonCamera.ts', './CharacterMovement.ts', './CharacterMovement2D.ts', './EasyController.ts', './ThirdPersonCameraCtrl.ts', './UI_Joystick.ts', './tgx.ts', './SVGA.Lite.v2.1.1.mjs_cjs=&original=.js', './SvgaTest.ts', './test.ts'], function () {
  return {
    setters: [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null],
    execute: function () {}
  };
});

System.register("chunks:///_virtual/MainGame.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './Scene.ts', './Quan.ts', './MEvent.ts', './GameMgr.ts', './const.ts', './Svga.ts', './SvgaEvent.ts', './UIFast.ts', './GameChooseHand.ts', './ReviewPanel.ts'], function (exports) {
  var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, _asyncToGenerator, _regeneratorRuntime, _createClass, cclegacy, _decorator, Prefab, Node, misc, v3, PhysicsSystem, input, Input, Button, UIOpacity, Tween, tween, instantiate, UITransform, Vec3, SkeletalAnimation, Label, Scene, Quan, eventTarget, MEvent, GameMgr, HAND_TYPE, LOOP_TYPE, BaseScore, LoopBuff, Svga, SvgaEvent, showPanel, GameChooseHand, ReviewPanel;

  return {
    setters: [function (module) {
      _applyDecoratedDescriptor = module.applyDecoratedDescriptor;
      _inheritsLoose = module.inheritsLoose;
      _initializerDefineProperty = module.initializerDefineProperty;
      _assertThisInitialized = module.assertThisInitialized;
      _asyncToGenerator = module.asyncToGenerator;
      _regeneratorRuntime = module.regeneratorRuntime;
      _createClass = module.createClass;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      Prefab = module.Prefab;
      Node = module.Node;
      misc = module.misc;
      v3 = module.v3;
      PhysicsSystem = module.PhysicsSystem;
      input = module.input;
      Input = module.Input;
      Button = module.Button;
      UIOpacity = module.UIOpacity;
      Tween = module.Tween;
      tween = module.tween;
      instantiate = module.instantiate;
      UITransform = module.UITransform;
      Vec3 = module.Vec3;
      SkeletalAnimation = module.SkeletalAnimation;
      Label = module.Label;
    }, function (module) {
      Scene = module.default;
    }, function (module) {
      Quan = module.Quan;
    }, function (module) {
      eventTarget = module.eventTarget;
      MEvent = module.MEvent;
    }, function (module) {
      GameMgr = module.default;
    }, function (module) {
      HAND_TYPE = module.HAND_TYPE;
      LOOP_TYPE = module.LOOP_TYPE;
      BaseScore = module.BaseScore;
      LoopBuff = module.LoopBuff;
    }, function (module) {
      Svga = module.default;
    }, function (module) {
      SvgaEvent = module.SvgaEvent;
    }, function (module) {
      showPanel = module.showPanel;
    }, function (module) {
      GameChooseHand = module.default;
    }, function (module) {
      ReviewPanel = module.default;
    }],
    execute: function () {
      var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _class3;

      cclegacy._RF.push({}, "701bew69aZIS5LPXLZ6/4lh", "MainGame", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var MainGame = exports('MainGame', (_dec = ccclass('MainGame'), _dec2 = property({
        type: Prefab
      }), _dec3 = property(Node), _dec4 = property(Node), _dec5 = property({
        displayName: "游戏时间",
        group: '游戏配置'
      }), _dec6 = property({
        displayName: "手移动速度",
        group: '游戏配置'
      }), _dec7 = property({
        displayName: "台子旋转速度",
        group: '游戏配置'
      }), _dec8 = property({
        displayName: "铜圈",
        group: '圈',
        type: Prefab
      }), _dec9 = property({
        displayName: "银圈",
        group: '圈',
        type: Prefab
      }), _dec10 = property({
        displayName: "金圈",
        group: '圈',
        type: Prefab
      }), _dec11 = property({
        displayName: "翡翠圈",
        group: '圈',
        type: Prefab
      }), _dec12 = property({
        displayName: "财神圈",
        group: '圈',
        type: Prefab
      }), _dec13 = property({
        displayName: "猫手",
        group: '手',
        type: Prefab
      }), _dec14 = property({
        displayName: "龙手",
        group: '手',
        type: Prefab
      }), _dec15 = property({
        displayName: "人手",
        group: '手',
        type: Prefab
      }), _dec(_class = (_class2 = (_class3 = /*#__PURE__*/function (_Scene) {
        _inheritsLoose(MainGame, _Scene);

        function MainGame() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _Scene.call.apply(_Scene, [this].concat(args)) || this;

          _initializerDefineProperty(_this, "ipPrefab", _descriptor, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "handNode", _descriptor2, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "addScoreTip", _descriptor3, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "totalCD", _descriptor4, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "handSpeed", _descriptor5, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "rotateSpeed", _descriptor6, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "cu", _descriptor7, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "ag", _descriptor8, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "au", _descriptor9, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "jadeite", _descriptor10, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "god", _descriptor11, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "cat", _descriptor12, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "dragon", _descriptor13, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "human", _descriptor14, _assertThisInitialized(_this));

          _this.loopArr = [];
          _this.handArr = [];
          _this._richManNum = 0;
          _this.table = null; // 台子

          _this.hand = null; // 手

          _this.rongNum = 0; // 套中的个数

          _this._score = 0;
          _this._cd = 0;
          _this.handType = HAND_TYPE.CAT;
          _this.loopType = LOOP_TYPE.CU;
          _this.isBeauty = false;
          _this.isUseGod = false;
          _this.isStart = false;
          _this.isOver = false;
          /**
           * 复活
           */

          _this.review = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
            return _regeneratorRuntime().wrap(function _callee$(_context) {
              while (1) switch (_context.prev = _context.next) {
                case 0:
                  _this.cd = GameMgr.ins.gameInfo.delaySecond;

                  _this.startGame();

                case 2:
                case "end":
                  return _context.stop();
              }
            }, _callee);
          }));
          /**
           * 提交分数
           */

          _this.submit = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
            return _regeneratorRuntime().wrap(function _callee2$(_context2) {
              while (1) switch (_context2.prev = _context2.next) {
                case 0:
                  _context2.next = 2;
                  return GameMgr.ins.submit(_this.score, _this.rongNum);

                case 2:
                  _context2.sent;

                case 3:
                case "end":
                  return _context2.stop();
              }
            }, _callee2);
          }));
          /**
           * 选择套圈手
           */

          _this.chooseHand = function () {
            var svga = _this.uiLayer.view["gamePre/cd"].getComponent(Svga);

            svga.stop();
            showPanel(GameChooseHand, {
              curHand: _this.handType,
              sucCall: function sucCall(type) {
                _this.changeHand(type);

                svga.play(svga.curFrame);
              }
            });
          };
          /**
           * 使用财神道具
           */


          _this.useGod = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
            var success;
            return _regeneratorRuntime().wrap(function _callee3$(_context3) {
              while (1) switch (_context3.prev = _context3.next) {
                case 0:
                  if (!(!_this.isStart || _this.isOver || _this.isUseGod || _this.richManNum <= 0)) {
                    _context3.next = 2;
                    break;
                  }

                  return _context3.abrupt("return");

                case 2:
                  _this.btnEnable(_this.uiLayer.view["天降财神"], false);

                  _context3.next = 5;
                  return GameMgr.ins.useSp();

                case 5:
                  success = _context3.sent;

                  _this.btnEnable(_this.uiLayer.view["天降财神"], true);

                  if (success) {
                    _context3.next = 9;
                    break;
                  }

                  return _context3.abrupt("return");

                case 9:
                  _this.richManNum--;
                  _this.isUseGod = true;

                  _this.scheduleOnce(function () {
                    _this.isUseGod = false;
                  }, 5);

                case 12:
                case "end":
                  return _context3.stop();
              }
            }, _callee3);
          }));
          _this.targetPoint = [];

          _this.onTouchStart = function (e) {};

          _this.onTouchMove = function (e) {};

          _this.onTouchEC = function (e) {
            if (!_this.isStart || _this.isOver) return;
            var start = e.getStartLocation();
            var end = e.getLocation();
            var dp = end.subtract(start);
            var powerScale = misc.clampf(dp.length() / 300, 0.96, 1.04);

            if (_this.isUseGod) {
              _this.schedule(function () {
                _this.shoot(powerScale, dp.x / 130);
              }, 0.1, 5);
            } else {
              _this.shoot(powerScale, dp.x / 130);
            }
          };

          _this.rotateY = 0;
          _this.handPos = v3(0, 0, 0);
          _this.handDir = 1;
          return _this;
        }

        var _proto = MainGame.prototype;

        _proto.onLoad = function onLoad() {
          PhysicsSystem.instance.enable = true;
          this.table = this.node.getChildByName("table");
          input.on(Input.EventType.TOUCH_START, this.onTouchStart, this);
          input.on(Input.EventType.TOUCH_MOVE, this.onTouchMove, this);
          input.on(Input.EventType.TOUCH_END, this.onTouchEC, this);
          input.on(Input.EventType.TOUCH_CANCEL, this.onTouchEC, this);
          eventTarget.on(MEvent.ADD_SCORE, this.addScore, this);
          this.handArr = [this.cat, this.dragon, this.human];
          this.loopArr = [this.cu, this.ag, this.au, this.jadeite, this.god];
        };

        _proto.start = function start() {
          var _this2 = this;

          this.uiLayer.view["天降财神"].on(Button.EventType.CLICK, this.useGod, this);
          this.uiLayer.view["gamePre/选择套圈手"].on(Button.EventType.CLICK, this.chooseHand, this);
          this.rotateSpeed += Math.random() * 5 - 2.5;
          this.handNode.getPosition(this.handPos);
          this.handSpeed += Math.random() * 2 - 1;
          var _GameMgr$ins$gameInfo = GameMgr.ins.gameInfo,
              loopType = _GameMgr$ins$gameInfo.loopType,
              handType = _GameMgr$ins$gameInfo.handType,
              rongNum = _GameMgr$ins$gameInfo.rongNum,
              targetNum = _GameMgr$ins$gameInfo.targetNum,
              richManNum = _GameMgr$ins$gameInfo.richManNum,
              isBeauty = _GameMgr$ins$gameInfo.isBeauty;
          this.isBeauty = isBeauty;
          this.richManNum = richManNum;
          this.initIp(rongNum);
          this.initTarget(targetNum);
          this.changeHand(handType);
          this.changeLoop(loopType);
          this.cd = this.totalCD;
          this.uiLayer.view["gamePre"].active = true;
          this.scheduleOnce(function () {
            _this2.uiLayer.view["gamePre/cd"].on(SvgaEvent.END_FRAME, function () {
              _this2.uiLayer.view["gamePre"].active = false;

              _this2.startGame();
            });

            _this2.uiLayer.view["gamePre/cd"].getComponent(Svga).play();
          }, 0.188);
        };

        _proto.startGame = function startGame() {
          this.isStart = true;
          this.isOver = false;
          this.schedule(this.cdDown, 1, this.cd);
        };

        _proto.cdDown = function cdDown() {
          this.cd--;

          if (this.cd <= 0) {
            this.unschedule(this.cdDown);
            this.gameOver();
          }
        }
        /**
         * 游戏结束
         */
        ;

        _proto.gameOver = function gameOver() {
          if (this.isOver) return;
          this.isOver = true;
          var isUsedDelay = GameMgr.ins.gameInfo.isUsedDelay;

          if (isUsedDelay) {
            this.submit();
          } else {
            GameMgr.ins.gameInfo.isUsedDelay = true;
            showPanel(ReviewPanel, {
              review: this.review,
              submit: this.submit
            });
          }
        };
        /**
         * 套中一个
         */


        _proto.addScore = function addScore() {
          if (!this.isStart || this.isOver) return;
          this.rongNum++;
          this.score += BaseScore * (1 + LoopBuff[this.loopType]) * (this.isBeauty ? 2 : 1);
          var pointNode = this.targetPoint.shift();
          pointNode && (pointNode.active = true);
          var scoreTipAlpha = this.addScoreTip.getComponent(UIOpacity);
          var duration = 0.233;
          var delay = 0.5;
          var moveY = 50;
          var stopY = -230;
          Tween.stopAllByTarget(this.addScoreTip);
          Tween.stopAllByTarget(scoreTipAlpha);
          tween(this.addScoreTip).set({
            position: v3(0, stopY - moveY, 0)
          }).to(duration, {
            position: v3(0, stopY, 0)
          }).delay(delay).to(duration, {
            position: v3(0, stopY + moveY, 0)
          }).start();
          tween(scoreTipAlpha).set({
            opacity: 0
          }).to(duration, {
            opacity: 225
          }).delay(delay).to(duration, {
            opacity: 0
          }).start();
        };

        _proto.changeHand = function changeHand(type) {
          this.handType = type;
          var handPar = this.handNode.getChildByName("hand");
          handPar.removeAllChildren();
          var handPrefab = this.handArr[+type - 1];
          var hand = instantiate(handPrefab);
          handPar.addChild(hand);
          this.hand = hand;
        };

        _proto.changeLoop = function changeLoop(type) {
          this.loopType = type;
          var loopPar = this.handNode.getChildByName("loop");
          loopPar.children.forEach(function (v) {
            if (v.name == "trigger") return;
            v.destroy();
          });
          var loopPrefab = this.loopArr[+type - 1];
          var loop = instantiate(loopPrefab);
          loopPar.addChild(loop);
        };

        _proto.initIp = function initIp(count) {
          var angle = 360 / count;

          for (var i = 0; i < count; i++) {
            var ip = instantiate(this.ipPrefab);
            this.table.addChild(ip);
            ip.setPosition(0, 0, 0);
            ip.setRotationFromEuler(0, angle * i, 0);
          }
        };

        _proto.initTarget = function initTarget(count) {
          var pointWidth = (42 + 7) * count;
          var progNode = this.uiLayer.view["top/游戏进度"];
          progNode.getComponent(UITransform).width = pointWidth + 142;
          this.uiLayer.view["top/游戏进度/box"].setPosition(pointWidth + 36, 0);
          var tempBar = this.uiLayer.view["top/游戏进度/bar"];
          var tempFill = this.uiLayer.view["top/游戏进度/fill"];

          for (var i = 0; i < count; i++) {
            var bar = instantiate(tempBar);
            var fill = instantiate(tempFill);
            bar.setPosition(62 + (42 + 7) * i, 0);
            fill.setPosition(62 + (42 + 7) * i, 0);
            fill.active = false;
            progNode.addChild(bar);
            progNode.addChild(fill);
            this.targetPoint.push(fill);
          }

          tempBar.destroy();
          tempFill.destroy();
        };
        /**
         * 发射
         * @param powerScale
         * @param endX
         */


        _proto.shoot = function shoot(powerScale, endX) {
          var loopTemp = this.handNode.getChildByName("loop");
          var loop = instantiate(loopTemp);
          this.node.addChild(loop);
          var setPos = Vec3.add(v3(), loopTemp.position, this.handNode.position);
          loop.setPosition(setPos);
          var loopTs = loop.getComponent(Quan);
          loopTs.shoot(powerScale, endX);
          var handAni = this.hand.getComponent(SkeletalAnimation);
          handAni.play();
        };

        _proto.update = function update(deltaTime) {
          this.rotateY -= this.rotateSpeed * deltaTime;
          this.table.setRotationFromEuler(0, this.rotateY, 0);
          this.handPos.x += this.handSpeed * deltaTime * this.handDir;

          if (this.handPos.x >= 5) {
            this.handDir = -1;
          } else if (this.handPos.x <= -1.5) {
            this.handDir = 1;
          }

          this.handNode.setPosition(this.handPos);
        };

        _createClass(MainGame, [{
          key: "richManNum",
          get: function get() {
            return this._richManNum;
          },
          set: function set(v) {
            this._richManNum = v;
            this.uiLayer.view["天降财神"].active = v > 0;
            this.uiLayer.view["天降财神/num"].getComponent(Label).string = v.toString();
          }
        }, {
          key: "score",
          get: function get() {
            return this._score;
          },
          set: function set(v) {
            this._score = v >> 0;
            this.uiLayer.view["top/得分/num"].getComponent(Label).string = this.score.toString();
          }
        }, {
          key: "cd",
          get: function get() {
            return this._cd;
          },
          set: function set(v) {
            this._cd = v;
            this.uiLayer.view["top/倒计时/num"].getComponent(Label).string = this.cd.toString();
          }
        }]);

        return MainGame;
      }(Scene), _class3.bundle = "MainGame", _class3.skin = "MainGame", _class3.group = ["MainGame"], _class3), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "ipPrefab", [_dec2], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "handNode", [_dec3], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "addScoreTip", [_dec4], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "totalCD", [_dec5], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 60;
        }
      }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "handSpeed", [_dec6], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 5;
        }
      }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "rotateSpeed", [_dec7], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 50;
        }
      }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "cu", [_dec8], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "ag", [_dec9], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "au", [_dec10], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "jadeite", [_dec11], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "god", [_dec12], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "cat", [_dec13], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, "dragon", [_dec14], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, "human", [_dec15], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      })), _class2)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/Md5.ts", ['cc'], function (exports) {
  var cclegacy;
  return {
    setters: [function (module) {
      cclegacy = module.cclegacy;
    }],
    execute: function () {
      exports('md5', md5);

      cclegacy._RF.push({}, "62b600uKTBBY7577QeJlhE/", "Md5", undefined);

      function md5(md5str) {
        var createMD5String = function createMD5String(string) {
          var x = Array();
          var k, AA, BB, CC, DD, a, b, c, d;
          var S11 = 7,
              S12 = 12,
              S13 = 17,
              S14 = 22;
          var S21 = 5,
              S22 = 9,
              S23 = 14,
              S24 = 20;
          var S31 = 4,
              S32 = 11,
              S33 = 16,
              S34 = 23;
          var S41 = 6,
              S42 = 10,
              S43 = 15,
              S44 = 21;
          string = uTF8Encode(string);
          x = convertToWordArray(string);
          a = 0x67452301;
          b = 0xEFCDAB89;
          c = 0x98BADCFE;
          d = 0x10325476;

          for (k = 0; k < x.length; k += 16) {
            AA = a;
            BB = b;
            CC = c;
            DD = d;
            a = FF(a, b, c, d, x[k + 0], S11, 0xD76AA478);
            d = FF(d, a, b, c, x[k + 1], S12, 0xE8C7B756);
            c = FF(c, d, a, b, x[k + 2], S13, 0x242070DB);
            b = FF(b, c, d, a, x[k + 3], S14, 0xC1BDCEEE);
            a = FF(a, b, c, d, x[k + 4], S11, 0xF57C0FAF);
            d = FF(d, a, b, c, x[k + 5], S12, 0x4787C62A);
            c = FF(c, d, a, b, x[k + 6], S13, 0xA8304613);
            b = FF(b, c, d, a, x[k + 7], S14, 0xFD469501);
            a = FF(a, b, c, d, x[k + 8], S11, 0x698098D8);
            d = FF(d, a, b, c, x[k + 9], S12, 0x8B44F7AF);
            c = FF(c, d, a, b, x[k + 10], S13, 0xFFFF5BB1);
            b = FF(b, c, d, a, x[k + 11], S14, 0x895CD7BE);
            a = FF(a, b, c, d, x[k + 12], S11, 0x6B901122);
            d = FF(d, a, b, c, x[k + 13], S12, 0xFD987193);
            c = FF(c, d, a, b, x[k + 14], S13, 0xA679438E);
            b = FF(b, c, d, a, x[k + 15], S14, 0x49B40821);
            a = GG(a, b, c, d, x[k + 1], S21, 0xF61E2562);
            d = GG(d, a, b, c, x[k + 6], S22, 0xC040B340);
            c = GG(c, d, a, b, x[k + 11], S23, 0x265E5A51);
            b = GG(b, c, d, a, x[k + 0], S24, 0xE9B6C7AA);
            a = GG(a, b, c, d, x[k + 5], S21, 0xD62F105D);
            d = GG(d, a, b, c, x[k + 10], S22, 0x2441453);
            c = GG(c, d, a, b, x[k + 15], S23, 0xD8A1E681);
            b = GG(b, c, d, a, x[k + 4], S24, 0xE7D3FBC8);
            a = GG(a, b, c, d, x[k + 9], S21, 0x21E1CDE6);
            d = GG(d, a, b, c, x[k + 14], S22, 0xC33707D6);
            c = GG(c, d, a, b, x[k + 3], S23, 0xF4D50D87);
            b = GG(b, c, d, a, x[k + 8], S24, 0x455A14ED);
            a = GG(a, b, c, d, x[k + 13], S21, 0xA9E3E905);
            d = GG(d, a, b, c, x[k + 2], S22, 0xFCEFA3F8);
            c = GG(c, d, a, b, x[k + 7], S23, 0x676F02D9);
            b = GG(b, c, d, a, x[k + 12], S24, 0x8D2A4C8A);
            a = HH(a, b, c, d, x[k + 5], S31, 0xFFFA3942);
            d = HH(d, a, b, c, x[k + 8], S32, 0x8771F681);
            c = HH(c, d, a, b, x[k + 11], S33, 0x6D9D6122);
            b = HH(b, c, d, a, x[k + 14], S34, 0xFDE5380C);
            a = HH(a, b, c, d, x[k + 1], S31, 0xA4BEEA44);
            d = HH(d, a, b, c, x[k + 4], S32, 0x4BDECFA9);
            c = HH(c, d, a, b, x[k + 7], S33, 0xF6BB4B60);
            b = HH(b, c, d, a, x[k + 10], S34, 0xBEBFBC70);
            a = HH(a, b, c, d, x[k + 13], S31, 0x289B7EC6);
            d = HH(d, a, b, c, x[k + 0], S32, 0xEAA127FA);
            c = HH(c, d, a, b, x[k + 3], S33, 0xD4EF3085);
            b = HH(b, c, d, a, x[k + 6], S34, 0x4881D05);
            a = HH(a, b, c, d, x[k + 9], S31, 0xD9D4D039);
            d = HH(d, a, b, c, x[k + 12], S32, 0xE6DB99E5);
            c = HH(c, d, a, b, x[k + 15], S33, 0x1FA27CF8);
            b = HH(b, c, d, a, x[k + 2], S34, 0xC4AC5665);
            a = II(a, b, c, d, x[k + 0], S41, 0xF4292244);
            d = II(d, a, b, c, x[k + 7], S42, 0x432AFF97);
            c = II(c, d, a, b, x[k + 14], S43, 0xAB9423A7);
            b = II(b, c, d, a, x[k + 5], S44, 0xFC93A039);
            a = II(a, b, c, d, x[k + 12], S41, 0x655B59C3);
            d = II(d, a, b, c, x[k + 3], S42, 0x8F0CCC92);
            c = II(c, d, a, b, x[k + 10], S43, 0xFFEFF47D);
            b = II(b, c, d, a, x[k + 1], S44, 0x85845DD1);
            a = II(a, b, c, d, x[k + 8], S41, 0x6FA87E4F);
            d = II(d, a, b, c, x[k + 15], S42, 0xFE2CE6E0);
            c = II(c, d, a, b, x[k + 6], S43, 0xA3014314);
            b = II(b, c, d, a, x[k + 13], S44, 0x4E0811A1);
            a = II(a, b, c, d, x[k + 4], S41, 0xF7537E82);
            d = II(d, a, b, c, x[k + 11], S42, 0xBD3AF235);
            c = II(c, d, a, b, x[k + 2], S43, 0x2AD7D2BB);
            b = II(b, c, d, a, x[k + 9], S44, 0xEB86D391);
            a = addUnsigned(a, AA);
            b = addUnsigned(b, BB);
            c = addUnsigned(c, CC);
            d = addUnsigned(d, DD);
          }

          var tempValue = wordToHex(a) + wordToHex(b) + wordToHex(c) + wordToHex(d);
          return tempValue.toLowerCase();
        };

        var rotateLeft = function rotateLeft(lValue, iShiftBits) {
          return lValue << iShiftBits | lValue >>> 32 - iShiftBits;
        };

        var addUnsigned = function addUnsigned(lX, lY) {
          var lX4, lY4, lX8, lY8, lResult;
          lX8 = lX & 0x80000000;
          lY8 = lY & 0x80000000;
          lX4 = lX & 0x40000000;
          lY4 = lY & 0x40000000;
          lResult = (lX & 0x3FFFFFFF) + (lY & 0x3FFFFFFF);
          if (lX4 & lY4) return lResult ^ 0x80000000 ^ lX8 ^ lY8;

          if (lX4 | lY4) {
            if (lResult & 0x40000000) return lResult ^ 0xC0000000 ^ lX8 ^ lY8;else return lResult ^ 0x40000000 ^ lX8 ^ lY8;
          } else {
            return lResult ^ lX8 ^ lY8;
          }
        };

        var F = function F(x, y, z) {
          return x & y | ~x & z;
        };

        var G = function G(x, y, z) {
          return x & z | y & ~z;
        };

        var H = function H(x, y, z) {
          return x ^ y ^ z;
        };

        var I = function I(x, y, z) {
          return y ^ (x | ~z);
        };

        var FF = function FF(a, b, c, d, x, s, ac) {
          a = addUnsigned(a, addUnsigned(addUnsigned(F(b, c, d), x), ac));
          return addUnsigned(rotateLeft(a, s), b);
        };

        var GG = function GG(a, b, c, d, x, s, ac) {
          a = addUnsigned(a, addUnsigned(addUnsigned(G(b, c, d), x), ac));
          return addUnsigned(rotateLeft(a, s), b);
        };

        var HH = function HH(a, b, c, d, x, s, ac) {
          a = addUnsigned(a, addUnsigned(addUnsigned(H(b, c, d), x), ac));
          return addUnsigned(rotateLeft(a, s), b);
        };

        var II = function II(a, b, c, d, x, s, ac) {
          a = addUnsigned(a, addUnsigned(addUnsigned(I(b, c, d), x), ac));
          return addUnsigned(rotateLeft(a, s), b);
        };

        var convertToWordArray = function convertToWordArray(string) {
          var lWordCount;
          var lMessageLength = string.length;
          var lNumberOfWordsTempOne = lMessageLength + 8;
          var lNumberOfWordsTempTwo = (lNumberOfWordsTempOne - lNumberOfWordsTempOne % 64) / 64;
          var lNumberOfWords = (lNumberOfWordsTempTwo + 1) * 16;
          var lWordArray = Array(lNumberOfWords - 1);
          var lBytePosition = 0;
          var lByteCount = 0;

          while (lByteCount < lMessageLength) {
            lWordCount = (lByteCount - lByteCount % 4) / 4;
            lBytePosition = lByteCount % 4 * 8;
            lWordArray[lWordCount] = lWordArray[lWordCount] | string.charCodeAt(lByteCount) << lBytePosition;
            lByteCount++;
          }

          lWordCount = (lByteCount - lByteCount % 4) / 4;
          lBytePosition = lByteCount % 4 * 8;
          lWordArray[lWordCount] = lWordArray[lWordCount] | 0x80 << lBytePosition;
          lWordArray[lNumberOfWords - 2] = lMessageLength << 3;
          lWordArray[lNumberOfWords - 1] = lMessageLength >>> 29;
          return lWordArray;
        };

        var wordToHex = function wordToHex(lValue) {
          var WordToHexValue = '',
              WordToHexValueTemp = '',
              lByte,
              lCount;

          for (lCount = 0; lCount <= 3; lCount++) {
            lByte = lValue >>> lCount * 8 & 255;
            WordToHexValueTemp = '0' + lByte.toString(16);
            WordToHexValue = WordToHexValue + WordToHexValueTemp.substr(WordToHexValueTemp.length - 2, 2);
          }

          return WordToHexValue;
        };

        var uTF8Encode = function uTF8Encode(string) {
          string = string.toString().replace(/\x0d\x0a/g, '\x0a');
          var output = '';

          for (var n = 0; n < string.length; n++) {
            var c = string.charCodeAt(n);

            if (c < 128) {
              output += String.fromCharCode(c);
            } else if (c > 127 && c < 2048) {
              output += String.fromCharCode(c >> 6 | 192);
              output += String.fromCharCode(c & 63 | 128);
            } else {
              output += String.fromCharCode(c >> 12 | 224);
              output += String.fromCharCode(c >> 6 & 63 | 128);
              output += String.fromCharCode(c & 63 | 128);
            }
          }

          return output;
        };

        return createMD5String(md5str);
      }

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/MEvent.ts", ['cc'], function (exports) {
  var cclegacy, EventTarget;
  return {
    setters: [function (module) {
      cclegacy = module.cclegacy;
      EventTarget = module.EventTarget;
    }],
    execute: function () {
      cclegacy._RF.push({}, "2f8eehGfWZH3IKRywItSwEl", "MEvent", undefined);

      var eventTarget = exports('eventTarget', new EventTarget());
      var MEvent = exports('MEvent', /*#__PURE__*/function (MEvent) {
        MEvent["ADD_SCORE"] = "addScore";
        return MEvent;
      }({}));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/Module.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc'], function (exports) {
  var _inheritsLoose, cclegacy, Node, Button, Component;

  return {
    setters: [function (module) {
      _inheritsLoose = module.inheritsLoose;
    }, function (module) {
      cclegacy = module.cclegacy;
      Node = module.Node;
      Button = module.Button;
      Component = module.Component;
    }],
    execute: function () {
      cclegacy._RF.push({}, "5c11djqMYZAOKA6j0lIlBeH", "Module", undefined);

      var Module = exports('default', /*#__PURE__*/function (_Component) {
        _inheritsLoose(Module, _Component);

        function Module() {
          return _Component.apply(this, arguments) || this;
        }

        var _proto = Module.prototype;

        _proto.btnEnable = function btnEnable(btn, enable) {
          if (btn instanceof Node) {
            btn = btn.getComponent(Button);
          }

          if (!btn) return;
          btn.interactable = enable;
        };

        _proto.btnDelay = function btnDelay(btn, time) {
          if (btn instanceof Node) {
            btn = btn.getComponent(Button);
          }

          if (!btn) return;
          this.scheduleOnce(function () {
            btn.interactable = true;
          }, time);
        };

        return Module;
      }(Component));
      Module.bundle = "";
      Module.skin = "";
      Module.group = null;
      Module.data = {};

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/ModuleContext.ts", ['cc'], function (exports) {
  var cclegacy;
  return {
    setters: [function (module) {
      cclegacy = module.cclegacy;
    }],
    execute: function () {
      cclegacy._RF.push({}, "5575a3VV2RD746hi1OU1Xsj", "ModuleContext", undefined);

      var PROP_MODULE = '__module__name__';
      var PROP_IMPL_CLASS = '__impl__class__';
      var defaultModule = 'resources';
      var ModuleContext = exports('ModuleContext', /*#__PURE__*/function () {
        function ModuleContext() {}

        ModuleContext.setDefaultModule = function setDefaultModule(moduleName) {
          defaultModule = moduleName;
        };

        ModuleContext.getDefaultModule = function getDefaultModule() {
          return defaultModule;
        };

        ModuleContext.attachModule = function attachModule(cls, moduleName) {
          cls[PROP_MODULE] = moduleName;
        };

        ModuleContext.getClassModule = function getClassModule(cls) {
          return cls[PROP_MODULE] || defaultModule;
        };

        ModuleContext.attachImplClass = function attachImplClass(cls, implCls) {
          cls[PROP_IMPL_CLASS] = implCls;
        };

        ModuleContext.attachModuleAndImplClass = function attachModuleAndImplClass(cls, moduleName, implCls) {
          cls[PROP_MODULE] = moduleName;
          cls[PROP_IMPL_CLASS] = implCls;
        };

        ModuleContext.getImplClass = function getImplClass(cls) {
          return cls[PROP_IMPL_CLASS] || cls;
        };

        ModuleContext.createFromModule = function createFromModule(cls) {
          var implCls = this.getImplClass(cls) || cls;
          return new implCls();
        };

        return ModuleContext;
      }());

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/NoBoxPanel.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './Panel.ts', './UIFast.ts', './HomeScene.ts', './GameMgr.ts', './MainGame.ts'], function (exports) {
  var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, _asyncToGenerator, _regeneratorRuntime, cclegacy, _decorator, Node, Label, Button, Panel, changeScene, HomeScene, GameMgr, MainGame;

  return {
    setters: [function (module) {
      _applyDecoratedDescriptor = module.applyDecoratedDescriptor;
      _inheritsLoose = module.inheritsLoose;
      _initializerDefineProperty = module.initializerDefineProperty;
      _assertThisInitialized = module.assertThisInitialized;
      _asyncToGenerator = module.asyncToGenerator;
      _regeneratorRuntime = module.regeneratorRuntime;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      Node = module.Node;
      Label = module.Label;
      Button = module.Button;
    }, function (module) {
      Panel = module.default;
    }, function (module) {
      changeScene = module.changeScene;
    }, function (module) {
      HomeScene = module.HomeScene;
    }, function (module) {
      GameMgr = module.default;
    }, function (module) {
      MainGame = module.MainGame;
    }],
    execute: function () {
      var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _class3;

      cclegacy._RF.push({}, "26526RSIcZGJ7hiYi8Iya8Z", "NoBoxPanel", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var NoBoxPanel = exports('default', (_dec = ccclass('NoBoxPanel'), _dec2 = property(Node), _dec3 = property(Node), _dec4 = property(Node), _dec5 = property(Label), _dec6 = property(Label), _dec(_class = (_class2 = (_class3 = /*#__PURE__*/function (_Panel) {
        _inheritsLoose(NoBoxPanel, _Panel);

        function NoBoxPanel() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _Panel.call.apply(_Panel, [this].concat(args)) || this;

          _initializerDefineProperty(_this, "close", _descriptor, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "cancel", _descriptor2, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "ok", _descriptor3, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "score", _descriptor4, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "total", _descriptor5, _assertThisInitialized(_this));
          /**
           * 再来一局
           */


          _this.onOk = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
            var success;
            return _regeneratorRuntime().wrap(function _callee$(_context) {
              while (1) switch (_context.prev = _context.next) {
                case 0:
                  _this.btnEnable(_this.ok, false);

                  _context.next = 3;
                  return GameMgr.ins.start();

                case 3:
                  success = _context.sent;

                  _this.btnEnable(_this.ok, true);

                  if (success) {
                    changeScene(MainGame);

                    _this.hidePanel();
                  }

                case 6:
                case "end":
                  return _context.stop();
              }
            }, _callee);
          }));
          /**
           * 返回首页
           */

          _this.onClose = function () {
            changeScene(HomeScene);

            _this.hidePanel();
          };

          return _this;
        }

        var _proto = NoBoxPanel.prototype;

        _proto.start = /*#__PURE__*/function () {
          var _start = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
            var _this$data, totalScore, score;

            return _regeneratorRuntime().wrap(function _callee2$(_context2) {
              while (1) switch (_context2.prev = _context2.next) {
                case 0:
                  this.ok.on(Button.EventType.CLICK, this.onOk, this);
                  this.close.on(Button.EventType.CLICK, this.onClose, this);
                  this.cancel.on(Button.EventType.CLICK, this.onClose, this);
                  _this$data = this.data, totalScore = _this$data.totalScore, score = _this$data.score;
                  this.score.string = score.toString();
                  this.total.string = "\u7D2F\u8BA1\u8D22\u5BCC\u79EF\u5206\uFF1A" + totalScore;

                case 6:
                case "end":
                  return _context2.stop();
              }
            }, _callee2, this);
          }));

          function start() {
            return _start.apply(this, arguments);
          }

          return start;
        }();

        return NoBoxPanel;
      }(Panel), _class3.bundle = "", _class3.skin = "NoBoxPanel", _class3.group = "NoBoxPanel", _class3), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "close", [_dec2], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "cancel", [_dec3], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "ok", [_dec4], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "score", [_dec5], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "total", [_dec6], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      })), _class2)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/NoGetRankPrizePanel.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './Panel.ts'], function (exports) {
  var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, _asyncToGenerator, _regeneratorRuntime, cclegacy, _decorator, Node, Button, Label, Panel;

  return {
    setters: [function (module) {
      _applyDecoratedDescriptor = module.applyDecoratedDescriptor;
      _inheritsLoose = module.inheritsLoose;
      _initializerDefineProperty = module.initializerDefineProperty;
      _assertThisInitialized = module.assertThisInitialized;
      _asyncToGenerator = module.asyncToGenerator;
      _regeneratorRuntime = module.regeneratorRuntime;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      Node = module.Node;
      Button = module.Button;
      Label = module.Label;
    }, function (module) {
      Panel = module.default;
    }],
    execute: function () {
      var _dec, _dec2, _dec3, _dec4, _class, _class2, _descriptor, _descriptor2, _descriptor3, _class3;

      cclegacy._RF.push({}, "ce778RuiLtP64G12UY0B+Ht", "NoGetRankPrizePanel", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var NoGetRankPrizePanel = exports('NoGetRankPrizePanel', (_dec = ccclass("NoGetRankPrizePanel"), _dec2 = property(Node), _dec3 = property(Node), _dec4 = property(Node), _dec(_class = (_class2 = (_class3 = /*#__PURE__*/function (_Panel) {
        _inheritsLoose(NoGetRankPrizePanel, _Panel);

        function NoGetRankPrizePanel() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _Panel.call.apply(_Panel, [this].concat(args)) || this;
          /** 关闭按钮 */

          _initializerDefineProperty(_this, "closeBtn", _descriptor, _assertThisInitialized(_this));
          /** 我知道了 */


          _initializerDefineProperty(_this, "mainBtn", _descriptor2, _assertThisInitialized(_this));
          /** 排名 */


          _initializerDefineProperty(_this, "rankIndex", _descriptor3, _assertThisInitialized(_this));

          return _this;
        }

        var _proto = NoGetRankPrizePanel.prototype;

        _proto.start = function start() {
          this.mainBtn.on(Button.EventType.CLICK, this.closePannel, this);
          this.closeBtn.on(Button.EventType.CLICK, this.closePannel, this);
          this.pannelRender();
        }
        /** 渲染 */
        ;

        _proto.pannelRender = /*#__PURE__*/function () {
          var _pannelRender = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
            var _this$data;

            return _regeneratorRuntime().wrap(function _callee$(_context) {
              while (1) switch (_context.prev = _context.next) {
                case 0:
                  this.rankIndex.getComponent(Label).string = "\u6700\u7EC8\u6392\u540D\u4E3A" + ((_this$data = this.data) == null ? void 0 : _this$data.rank);

                case 1:
                case "end":
                  return _context.stop();
              }
            }, _callee, this);
          }));

          function pannelRender() {
            return _pannelRender.apply(this, arguments);
          }

          return pannelRender;
        }()
        /** 关闭弹窗 */
        ;

        _proto.closePannel = function closePannel() {
          this.hidePanel();
        };

        return NoGetRankPrizePanel;
      }(Panel), _class3.bundle = "", _class3.skin = "NoGetRankPrizePanel", _class3.group = "NoGetRankPrizePanel", _class3), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "closeBtn", [_dec2], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "mainBtn", [_dec3], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "rankIndex", [_dec4], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      })), _class2)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/NoiseGenerator.ts", ['cc', './CinestationMath.ts'], function (exports) {
  var cclegacy, Quat, Vec3, lerp, Perlin;
  return {
    setters: [function (module) {
      cclegacy = module.cclegacy;
      Quat = module.Quat;
      Vec3 = module.Vec3;
      lerp = module.lerp;
    }, function (module) {
      Perlin = module.Perlin;
    }],
    execute: function () {
      cclegacy._RF.push({}, "92aa29Tdz9E3rHRk99/eeeT", "NoiseGenerator", undefined);

      var cos = Math.cos,
          PI = Math.PI;
      var PI2 = 2 * PI;
      var Noise_CM_4 = [[0.1, 7, 0, 0.75, 3, 0, 1.2, 1, 0], [0.15, 4, 0, 0.8, 1, 0, 1.4, 0.8, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0]];
      var Shake_6D = [[5.83, 0.09, 1, 9.17, 0.14, 1, 57.17, 0.15, 1], //rotX
      [1.8, 0.059, 1, 11.35, 0.041, 1, 54.17, 0.048, 1], //rotY
      [2.38, 0.017, 1, 10.52, 0.009, 1, 63.76, 0.016, 1], //rotZ
      [3.2, 0.011, 1, 7.7, 0.009, 1, 51.51, 0.002, 1], //posX
      [1.9, 0.059, 1, 9.1, 0.04, 0, 55.54, 0.05, 1], //posY
      [3.33, 0.021, 1, 9.22, 0.009, 1, 58.55, 0.017, 1] //posZ
      ];
      var Handheld_normal_extreme = [[0.2, 15, 0, 0.9, 5, 0, 2, 2, 0], [0.25, 7, 0, 1, 3, 0, 0, 1, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0]];
      var Handheld_normal_mild = [[0.15, 7, 0, 0.8, 4, 0, 1.2, 1, 0], [0.1, 5, 0, 0.75, 2, 0, 1.5, 0.8, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0]];
      var Handheld_normal_strong = [[0.4, 10, 0, 1.44, 5, 0, 2.49, 3, 0], [0.06, 10, 0, 0.73, 3, 0, 2, 1, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0]];
      var Handheld_tele_mild = [[0.2, 4, 0, 0.4, 2, 0, 0.7, 1, 0], [0.15, 2, 0, 0.5, 2, 0, 0.6, 1, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0]];
      var Handheld_tele_strong = [[0.39, 6.19, 0, 1.75, 1.84, 0, 2, 2.3, 0], [0.15, 3, 0, 0.9, 0.5, 0, 1.4, 0.5, 0], [0.1, 1, 0, 0, 0, 0, 0, 0, 0]];
      var Handheld_wideangle_mild = [[0.15, 12, 0, 0.6, 5, 0, 1.5, 1, 0], [0.1, 5, 0, 0.45, 4, 0, 1.2, 1, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0]];
      var Handheld_wideangle_strong = [[0.5, 17.46, 0, 0.94, 12.47, 0, 1.2, 4, 0], [0.25, 5, 0, 0.5, 4, 0, 1.3, 2, 0], [0.1, 0, 0, 0.4, 1, 0, 0, 0, 0]];
      var Profiles = [Noise_CM_4, Shake_6D, Handheld_normal_extreme, Handheld_normal_mild, Handheld_normal_strong, Handheld_tele_mild, Handheld_tele_strong, Handheld_wideangle_mild, Handheld_wideangle_strong];
      var NoiseProfile = exports('NoiseProfile', /*#__PURE__*/function (NoiseProfile) {
        NoiseProfile[NoiseProfile["Noise_CM_4"] = 0] = "Noise_CM_4";
        NoiseProfile[NoiseProfile["Shake_6D"] = 1] = "Shake_6D";
        NoiseProfile[NoiseProfile["Handheld_normal_extreme"] = 2] = "Handheld_normal_extreme";
        NoiseProfile[NoiseProfile["Handheld_normal_mild"] = 3] = "Handheld_normal_mild";
        NoiseProfile[NoiseProfile["Handheld_normal_strong"] = 4] = "Handheld_normal_strong";
        NoiseProfile[NoiseProfile["Handheld_tele_mild"] = 5] = "Handheld_tele_mild";
        NoiseProfile[NoiseProfile["Handheld_tele_strong"] = 6] = "Handheld_tele_strong";
        NoiseProfile[NoiseProfile["Handheld_wideangle_mild"] = 7] = "Handheld_wideangle_mild";
        NoiseProfile[NoiseProfile["Handheld_wideangle_strong"] = 8] = "Handheld_wideangle_strong";
        return NoiseProfile;
      }({}));

      var __rotation = new Quat();

      var __position = new Vec3();

      var NoiseGenerator = exports('NoiseGenerator', /*#__PURE__*/function () {
        function NoiseGenerator() {
          this._time = 0;
          this._values = [0, 0, 0, 0, 0, 0];
          this._noiseOffsets = [0, 0, 0];
        }

        var _proto = NoiseGenerator.prototype;

        _proto.reset = function reset() {
          var _this = this;

          this._time = 0;

          this._noiseOffsets.forEach(function (v, i) {
            return _this._noiseOffsets[i] = lerp(-1000, 1000, Math.random());
          });
        };

        _proto.fractalNoise = function fractalNoise(noise, deltaTime) {
          var t = this._time += deltaTime * noise.frequncyGain;
          var coeffs = Profiles[noise.profile] || Profiles[0];

          var values = this._values.fill(0);

          var noiseOffsets = this._noiseOffsets;

          for (var i = 0; i < coeffs.length; i++) {
            var coeff = coeffs[i];
            values[i] = NoiseGenerator.Noise(t, coeff[0], coeff[1], coeff[2], noiseOffsets[0]) + NoiseGenerator.Noise(t, coeff[3], coeff[4], coeff[5], noiseOffsets[1]) + NoiseGenerator.Noise(t, coeff[6], coeff[7], coeff[8], noiseOffsets[2]);
            values[i] *= noise.amplitudeGain;
          }

          return values;
        };

        NoiseGenerator.Noise = function Noise(t, frequency, amplitude, constant, offset) {
          if (offset === void 0) {
            offset = 0;
          }

          if (constant) {
            return cos(PI2 * t * frequency + offset) * 0.5 * amplitude;
          }

          return Perlin.Noise(t * frequency + offset) * amplitude;
        };

        NoiseGenerator.ApplyNoise = function ApplyNoise(values, vcam) {
          Quat.fromEuler(__rotation, values[0], values[1], values[2]);
          Vec3.set(__position, values[3], values[4], values[5]);
          Vec3.transformQuat(__position, __position, vcam.node.worldRotation);
          Quat.multiply(vcam.correctRotation, vcam.correctRotation, __rotation);
          Vec3.add(vcam.correctPosition, vcam.correctPosition, __position);
        };

        return NoiseGenerator;
      }());

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/NoiseHandler.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './NoiseGenerator.ts', './CameraHandler.ts'], function (exports) {
  var _inheritsLoose, cclegacy, NoiseGenerator, CameraHandler;

  return {
    setters: [function (module) {
      _inheritsLoose = module.inheritsLoose;
    }, function (module) {
      cclegacy = module.cclegacy;
    }, function (module) {
      NoiseGenerator = module.NoiseGenerator;
    }, function (module) {
      CameraHandler = module.CameraHandler;
    }],
    execute: function () {
      cclegacy._RF.push({}, "0e3a0pD3pxPJZCwuB99++oU", "NoiseHandler", undefined);

      var NoiseHandler = exports('NoiseHandler', /*#__PURE__*/function (_CameraHandler) {
        _inheritsLoose(NoiseHandler, _CameraHandler);

        function NoiseHandler() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _CameraHandler.call.apply(_CameraHandler, [this].concat(args)) || this;
          _this._generator = new NoiseGenerator();
          return _this;
        }

        var _proto = NoiseHandler.prototype;

        _proto.onEnable = function onEnable() {
          this._generator.reset();
        };

        _proto.updateCamera = function updateCamera(deltaTime) {
          var vcam = this._vcam;

          var values = this._generator.fractalNoise(vcam.noise, deltaTime);

          NoiseGenerator.ApplyNoise(values, vcam);
        };

        return NoiseHandler;
      }(CameraHandler));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/NoiseStage.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './CameraHandler.ts', './NoiseHandler.ts', './BaseStage.ts'], function (exports) {
  var _inheritsLoose, cclegacy, CameraHandler, NoiseHandler, BaseStage;

  return {
    setters: [function (module) {
      _inheritsLoose = module.inheritsLoose;
    }, function (module) {
      cclegacy = module.cclegacy;
    }, function (module) {
      CameraHandler = module.CameraHandler;
    }, function (module) {
      NoiseHandler = module.NoiseHandler;
    }, function (module) {
      BaseStage = module.BaseStage;
    }],
    execute: function () {
      cclegacy._RF.push({}, "9e1ccSzYTVCrL6k6/zwvvky", "NoiseStage", undefined);

      var NoiseStage = exports('NoiseStage', /*#__PURE__*/function (_BaseStage) {
        _inheritsLoose(NoiseStage, _BaseStage);

        function NoiseStage() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _BaseStage.call.apply(_BaseStage, [this].concat(args)) || this;
          _this._handlers = [new CameraHandler(_this._vcam), new NoiseHandler(_this._vcam)];
          return _this;
        }

        var _proto = NoiseStage.prototype;

        _proto.onEnable = function onEnable() {
          this._handlers.forEach(function (v) {
            return v.enable = true;
          });
        };

        _proto.updateStage = function updateStage(deltaTime) {
          var noise = this._vcam.noise;
          var handler = this._handlers[noise.type];

          if (handler) {
            handler.updateCamera(deltaTime);
          }
        };

        return NoiseStage;
      }(BaseStage));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/NoPrizePanel.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './Panel.ts', './UIFast.ts', './HomeScene.ts'], function (exports) {
  var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, _asyncToGenerator, _regeneratorRuntime, cclegacy, _decorator, Node, Button, Panel, changeScene, HomeScene;

  return {
    setters: [function (module) {
      _applyDecoratedDescriptor = module.applyDecoratedDescriptor;
      _inheritsLoose = module.inheritsLoose;
      _initializerDefineProperty = module.initializerDefineProperty;
      _assertThisInitialized = module.assertThisInitialized;
      _asyncToGenerator = module.asyncToGenerator;
      _regeneratorRuntime = module.regeneratorRuntime;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      Node = module.Node;
      Button = module.Button;
    }, function (module) {
      Panel = module.default;
    }, function (module) {
      changeScene = module.changeScene;
    }, function (module) {
      HomeScene = module.HomeScene;
    }],
    execute: function () {
      var _dec, _dec2, _dec3, _class, _class2, _descriptor, _descriptor2, _class3;

      cclegacy._RF.push({}, "40e91a3M15Nm4lyRYOGdw/r", "NoPrizePanel", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var NoPrizePanel = exports('default', (_dec = ccclass('NoPrizePanel'), _dec2 = property(Node), _dec3 = property(Node), _dec(_class = (_class2 = (_class3 = /*#__PURE__*/function (_Panel) {
        _inheritsLoose(NoPrizePanel, _Panel);

        function NoPrizePanel() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _Panel.call.apply(_Panel, [this].concat(args)) || this;

          _initializerDefineProperty(_this, "close", _descriptor, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "cancel", _descriptor2, _assertThisInitialized(_this));
          /**
           * 返回首页
           */


          _this.onClose = function () {
            changeScene(HomeScene);

            _this.hidePanel();
          };

          return _this;
        }

        var _proto = NoPrizePanel.prototype;

        _proto.start = /*#__PURE__*/function () {
          var _start = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
            return _regeneratorRuntime().wrap(function _callee$(_context) {
              while (1) switch (_context.prev = _context.next) {
                case 0:
                  this.close.on(Button.EventType.CLICK, this.onClose, this);
                  this.cancel.on(Button.EventType.CLICK, this.onClose, this);

                case 2:
                case "end":
                  return _context.stop();
              }
            }, _callee, this);
          }));

          function start() {
            return _start.apply(this, arguments);
          }

          return start;
        }();

        return NoPrizePanel;
      }(Panel), _class3.bundle = "", _class3.skin = "NoPrizePanel", _class3.group = "NoPrizePanel", _class3), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "close", [_dec2], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "cancel", [_dec3], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      })), _class2)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/Panel.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './Module.ts', './UIFast.ts', './Utils.ts', './UIMgr.ts'], function (exports) {
  var _inheritsLoose, cclegacy, _decorator, v3, tween, easing, Module, hidePanel, loadAllObject, UIMgr;

  return {
    setters: [function (module) {
      _inheritsLoose = module.inheritsLoose;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      v3 = module.v3;
      tween = module.tween;
      easing = module.easing;
    }, function (module) {
      Module = module.default;
    }, function (module) {
      hidePanel = module.hidePanel;
    }, function (module) {
      loadAllObject = module.loadAllObject;
    }, function (module) {
      UIMgr = module.UIMgr;
    }],
    execute: function () {
      var _dec, _class;

      cclegacy._RF.push({}, "301c4y/34hFJZ3gKvDQIPuO", "Panel", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var Panel = exports('default', (_dec = ccclass(), _dec(_class = /*#__PURE__*/function (_Module) {
        _inheritsLoose(Panel, _Module);

        function Panel() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _Module.call.apply(_Module, [this].concat(args)) || this;
          _this.view = {};
          _this.data = {};
          return _this;
        }

        var _proto = Panel.prototype;

        _proto.onLoad = function onLoad() {
          this.view = loadAllObject(this.node);
        };

        _proto.onShow = function onShow() {
          if (this.data.panelType == "scrollTop") {
            this.node.setPosition(v3(0, -812, 0));
            tween(this.node).to(0.188, {
              position: v3(0, 0, 0)
            }, {
              easing: easing.quadInOut
            }).start();
          } else {
            this.node.setScale(v3(0, 0, 1));
            tween(this.node).to(0.188, {
              scale: v3(1, 1, 1)
            }, {
              easing: easing.quadInOut
            }).start();
          }
        };

        _proto.hidePanel = function hidePanel$1() {
          this.node.emit('close-panel'); // PanelCtrl.ins.hide();

          var parent = this.node.parent;
          hidePanel(); // parent.getComponent(PanelCtrl)?.hide();
          // parent.getComponent(TopCtrl)?.hide();
        };

        _proto.hideAllPanel = function hideAllPanel() {
          this.node.emit('close-panel');
          UIMgr.ins.hideAllPanel();
        };

        return Panel;
      }(Module)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/Predictor.ts", ['cc', './CinestationMath.ts'], function (exports) {
  var cclegacy, Vec3, Vec3_smoothDamp;
  return {
    setters: [function (module) {
      cclegacy = module.cclegacy;
      Vec3 = module.Vec3;
    }, function (module) {
      Vec3_smoothDamp = module.Vec3_smoothDamp;
    }],
    execute: function () {
      cclegacy._RF.push({}, "c8d6930H0tIwYdCiSEhw5fJ", "Predictor", undefined);

      var __delta = new Vec3();

      var Predictor = exports('Predictor', /*#__PURE__*/function () {
        function Predictor() {
          this._prePos = null;
          this._velocity = new Vec3();
          this._dampingVelocity = new Vec3();
        }

        var _proto = Predictor.prototype;

        _proto.predictPosition = function predictPosition(out, wpos, lookaheadDamping, lookaheadTime, deltaTime) {
          if (this._prePos === null) {
            this._prePos = new Vec3(wpos);
            out.set(wpos);
          } else {
            Vec3.subtract(this._velocity, wpos, this._prePos).multiplyScalar(1 / deltaTime);
            Vec3_smoothDamp(this._dampingVelocity, this._dampingVelocity, this._velocity, lookaheadDamping, deltaTime);

            this._prePos.set(wpos);

            Vec3.multiplyScalar(__delta, this._dampingVelocity, lookaheadTime);
            Vec3.add(out, wpos, __delta);
          }

          return out;
        };

        return Predictor;
      }());

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/PrizePanel.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './Panel.ts', './UIFast.ts', './HomeScene.ts', './ShareCenter.ts', './const.ts'], function (exports) {
  var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, _asyncToGenerator, _regeneratorRuntime, cclegacy, _decorator, Node, Label, Sprite, Button, assetManager, Texture2D, SpriteFrame, Panel, changeScene, HomeScene, ShareCenter, SHARE_TYPE;

  return {
    setters: [function (module) {
      _applyDecoratedDescriptor = module.applyDecoratedDescriptor;
      _inheritsLoose = module.inheritsLoose;
      _initializerDefineProperty = module.initializerDefineProperty;
      _assertThisInitialized = module.assertThisInitialized;
      _asyncToGenerator = module.asyncToGenerator;
      _regeneratorRuntime = module.regeneratorRuntime;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      Node = module.Node;
      Label = module.Label;
      Sprite = module.Sprite;
      Button = module.Button;
      assetManager = module.assetManager;
      Texture2D = module.Texture2D;
      SpriteFrame = module.SpriteFrame;
    }, function (module) {
      Panel = module.default;
    }, function (module) {
      changeScene = module.changeScene;
    }, function (module) {
      HomeScene = module.HomeScene;
    }, function (module) {
      ShareCenter = module.default;
    }, function (module) {
      SHARE_TYPE = module.SHARE_TYPE;
    }],
    execute: function () {
      var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _class3;

      cclegacy._RF.push({}, "acaccxbcLtEyKrd5Hj4W2iU", "PrizePanel", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var PrizePanel = exports('default', (_dec = ccclass('PrizePanel'), _dec2 = property(Node), _dec3 = property(Node), _dec4 = property(Node), _dec5 = property(Label), _dec6 = property(Label), _dec7 = property(Sprite), _dec(_class = (_class2 = (_class3 = /*#__PURE__*/function (_Panel) {
        _inheritsLoose(PrizePanel, _Panel);

        function PrizePanel() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _Panel.call.apply(_Panel, [this].concat(args)) || this;

          _initializerDefineProperty(_this, "close", _descriptor, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "get", _descriptor2, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "share", _descriptor3, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "score", _descriptor4, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "prizeName", _descriptor5, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "img", _descriptor6, _assertThisInitialized(_this));
          /**
           * 返回首页
           */


          _this.onClose = function () {
            changeScene(HomeScene);

            _this.hidePanel();
          };

          _this.onShare = function () {
            // 去炫耀 分享
            ShareCenter.ins.doShare(SHARE_TYPE.FLAUNT);
          };

          return _this;
        }

        var _proto = PrizePanel.prototype;

        _proto.start = /*#__PURE__*/function () {
          var _start = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
            var _this2 = this;

            var _this$data, prizeName, prizeImg, score;

            return _regeneratorRuntime().wrap(function _callee$(_context) {
              while (1) switch (_context.prev = _context.next) {
                case 0:
                  this.close.on(Button.EventType.CLICK, this.onClose, this);
                  this.get.on(Button.EventType.CLICK, this.onClose, this);
                  this.share.on(Button.EventType.CLICK, this.onShare, this);
                  _this$data = this.data, prizeName = _this$data.prizeName, prizeImg = _this$data.prizeImg, score = _this$data.score;
                  this.score.string = "\u672C\u6B21\u79EF\u5206\uFF1A" + score;
                  this.prizeName.string = prizeName;
                  assetManager.loadRemote(prizeImg, function (err, imageAsset) {
                    var texture = new Texture2D();
                    texture.image = imageAsset;
                    var sp = new SpriteFrame();
                    sp.texture = texture;
                    _this2.img.spriteFrame = sp;
                  });

                case 7:
                case "end":
                  return _context.stop();
              }
            }, _callee, this);
          }));

          function start() {
            return _start.apply(this, arguments);
          }

          return start;
        }();

        return PrizePanel;
      }(Panel), _class3.bundle = "", _class3.skin = "PrizePanel", _class3.group = "PrizePanel", _class3), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "close", [_dec2], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "get", [_dec3], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "share", [_dec4], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "score", [_dec5], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "prizeName", [_dec6], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "img", [_dec7], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      })), _class2)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/Quan.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './MEvent.ts'], function (exports) {
  var _inheritsLoose, cclegacy, _decorator, RigidBody, misc, CylinderCollider, EAxisDirection, Quat, v3, BoxCollider, Vec3, Component, eventTarget, MEvent;

  return {
    setters: [function (module) {
      _inheritsLoose = module.inheritsLoose;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      RigidBody = module.RigidBody;
      misc = module.misc;
      CylinderCollider = module.CylinderCollider;
      EAxisDirection = module.EAxisDirection;
      Quat = module.Quat;
      v3 = module.v3;
      BoxCollider = module.BoxCollider;
      Vec3 = module.Vec3;
      Component = module.Component;
    }, function (module) {
      eventTarget = module.eventTarget;
      MEvent = module.MEvent;
    }],
    execute: function () {
      var _dec, _class;

      cclegacy._RF.push({}, "2e4cffIDAtO76m78ZluZGHd", "Quan", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var Quan = exports('Quan', (_dec = ccclass('Quan'), _dec(_class = /*#__PURE__*/function (_Component) {
        _inheritsLoose(Quan, _Component);

        function Quan() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _Component.call.apply(_Component, [this].concat(args)) || this;
          _this.rb = null;
          _this.isShoot = false;
          _this.hit = false; // 初始值设置的差别大点，不然一出来就没了

          _this.frame1Y = 1000;
          _this.frame2Y = 100;
          _this.frame3Y = 10;
          return _this;
        }

        var _proto = Quan.prototype; // @property()

        _proto.onLoad = function onLoad() {
          this.rb = this.node.getComponent(RigidBody);
          this.rb.enabled = false;
        };

        _proto.start = function start() {
          this.initCollider();
        };

        _proto.initCollider = function initCollider() {
          for (var i = 0; i < 12; i++) {
            var r = 360 / 12 * i;
            var deg = misc.degreesToRadians(-r);
            var x = Math.cos(deg);
            var z = Math.sin(deg); // console.log(-r, x, z);

            var _collider = this.node.addComponent(CylinderCollider);

            _collider.direction = EAxisDirection.Z_AXIS;
            Quat.fromEuler(_collider.shape["_orient"], 0, r, 0);
            _collider.center = v3(x, 0, z);
            _collider.height = 0.6;
            _collider.radius = 0.05;
            _collider.isTrigger = false; // const collider = this.node.addComponent(BoxCollider);
            // Quat.fromEuler(collider.shape["_orient"], 0, r, 0);
            // collider.center = v3(x, 0, z);
            // collider.size = v3(0.1, 0.1, 0.4);
            // const cube = new Node();
            // const mesh = cube.addComponent(MeshRenderer);
            // mesh.mesh = this.mesh;
            // cube.parent = this.node;
            // cube.setPosition(x, 0.1, z);
            // cube.setScale(0.1, 0.1, 0.4);
            // cube.setRotationFromEuler(0, r, 0);
          }

          var collider = this.node.addComponent(BoxCollider);
          collider.size = v3(1, 0.1, 1);
          collider.isTrigger = true;
          collider.on('onTriggerEnter', this.onTriggerEnter, this);
        };

        _proto.onTriggerEnter = function onTriggerEnter(event) {
          var _this2 = this;

          if (this.hit) return;
          var otherCollider = event.otherCollider;

          if (otherCollider.node.name == "ipMesh") {
            console.log("加分");
            this.hit = true;
            eventTarget.emit(MEvent.ADD_SCORE);
            this.scheduleOnce(function () {
              _this2.node.destroy();
            }, 0.5);
          }
        };

        _proto.shoot = function shoot(powerScale, endX) {
          this.isShoot = true;
          this.hit = false;
          this.rb.enabled = true;
          var power = v3(0, 12, -12.3).multiply3f(1, powerScale, powerScale);
          power.x = endX;
          this.rb.applyImpulse(power); // this.rb.setLinearVelocity(new Vec3(0, 15, -25));
          // this.rb.applyForce(new Vec3(0, 800, -2050));

          this.rb.applyLocalTorque(new Vec3(0, -600, 0));
        };

        _proto.update = function update(deltaTime) {
          this.judgeDestroy();
        }
        /**
         * 检测是否停止或者消失
         */
        ;

        _proto.judgeDestroy = function judgeDestroy() {
          if (!this.isShoot || this.hit) return;
          var y = this.node.getPosition().y;
          this.frame1Y = this.frame2Y;
          this.frame2Y = this.frame3Y;
          this.frame3Y = y; // console.log(this.frame3Y - this.frame2Y, this.frame2Y - this.frame1Y, this.frame3Y - this.frame1Y);

          var dy32 = Math.abs(this.frame3Y - this.frame2Y);
          var dy21 = Math.abs(this.frame2Y - this.frame1Y);
          var dy31 = Math.abs(this.frame3Y - this.frame1Y);

          if (dy32 < 0.0007 && dy21 < 0.0007 && dy31 < 0.0007) {
            // TODO找个合理的边界值
            // console.log("停止飞行");
            this.node.destroy();
            return;
          }

          if (y <= -10) {
            // console.log("掉出屏幕");
            this.node.destroy();
            return;
          }
        };

        return Quan;
      }(Component)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/RankScene.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './Scene.ts', './UIFast.ts', './HomeScene.ts', './ScrollList.ts', './Utils.ts', './WebNet.ts'], function (exports) {
  var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, _createClass, _asyncToGenerator, _regeneratorRuntime, cclegacy, _decorator, Node, Prefab, view, Widget, UITransform, UIOpacity, Label, Sprite, instantiate, Scene, changeScene, HomeScene, ScrollList, SCROLL_VERTICAL, strFormat, loadImg, sendWebNet, WebNetName;

  return {
    setters: [function (module) {
      _applyDecoratedDescriptor = module.applyDecoratedDescriptor;
      _inheritsLoose = module.inheritsLoose;
      _initializerDefineProperty = module.initializerDefineProperty;
      _assertThisInitialized = module.assertThisInitialized;
      _createClass = module.createClass;
      _asyncToGenerator = module.asyncToGenerator;
      _regeneratorRuntime = module.regeneratorRuntime;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      Node = module.Node;
      Prefab = module.Prefab;
      view = module.view;
      Widget = module.Widget;
      UITransform = module.UITransform;
      UIOpacity = module.UIOpacity;
      Label = module.Label;
      Sprite = module.Sprite;
      instantiate = module.instantiate;
    }, function (module) {
      Scene = module.default;
    }, function (module) {
      changeScene = module.changeScene;
    }, function (module) {
      HomeScene = module.HomeScene;
    }, function (module) {
      ScrollList = module.ScrollList;
      SCROLL_VERTICAL = module.SCROLL_VERTICAL;
    }, function (module) {
      strFormat = module.strFormat;
      loadImg = module.loadImg;
    }, function (module) {
      sendWebNet = module.sendWebNet;
      WebNetName = module.WebNetName;
    }],
    execute: function () {
      var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _class3;

      cclegacy._RF.push({}, "f62cclaUddNTroIPXA4x2yN", "RankScene", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var RankScene = exports('RankScene', (_dec = ccclass("RankScene"), _dec2 = property({
        type: ScrollList,
        tooltip: "竖行滚动容器"
      }), _dec3 = property(Node), _dec4 = property(Node), _dec5 = property(Prefab), _dec6 = property(Node), _dec(_class = (_class2 = (_class3 = /*#__PURE__*/function (_Scene) {
        _inheritsLoose(RankScene, _Scene);

        function RankScene() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _Scene.call.apply(_Scene, [this].concat(args)) || this;

          _initializerDefineProperty(_this, "vScroll", _descriptor, _assertThisInitialized(_this));
          /** 排行榜类别 */


          _this._type = "2";
          /** 我的排名 */

          _initializerDefineProperty(_this, "myRnak", _descriptor2, _assertThisInitialized(_this));
          /** 奖品展览区域 */


          _initializerDefineProperty(_this, "prizeBox", _descriptor3, _assertThisInitialized(_this));
          /** 奖品对象 */


          _initializerDefineProperty(_this, "prizeItem", _descriptor4, _assertThisInitialized(_this));
          /** 奖品对象 */


          _initializerDefineProperty(_this, "tabGroup", _descriptor5, _assertThisInitialized(_this));

          return _this;
        }

        var _proto = RankScene.prototype;

        _proto.onLoad = function onLoad() {
          this.setRankBoxHeight();
        };

        _proto.start = function start() {
          console.log("%c RankScene", "font-size: 20px");
          this.getRankInfo();
        }
        /** 排名处理 */
        ;

        _proto.rankIndexFormat = function rankIndexFormat(rank) {
          if (rank == 0 || rank == -1 || !!!rank) {
            return "-";
          }

          return rank;
        }
        /** 获取排行榜首页信息 */
        ;

        _proto.getRankInfo = /*#__PURE__*/function () {
          var _getRankInfo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
            var res, success, data, _ref, myRank, myRankScore, myNickName, _ref$rankInfo, rankInfo, _ref$prizeInfo, prizeInfo;

            return _regeneratorRuntime().wrap(function _callee$(_context) {
              while (1) switch (_context.prev = _context.next) {
                case 0:
                  _context.next = 2;
                  return sendWebNet(WebNetName.rank, {
                    type: this.type
                  });

                case 2:
                  res = _context.sent;
                  success = res.success, data = res.data;
                  _ref = data || {}, myRank = _ref.myRank, myRankScore = _ref.myRankScore, myNickName = _ref.myNickName, _ref$rankInfo = _ref.rankInfo, rankInfo = _ref$rankInfo === void 0 ? [] : _ref$rankInfo, _ref$prizeInfo = _ref.prizeInfo, prizeInfo = _ref$prizeInfo === void 0 ? [] : _ref$prizeInfo;

                  if (success) {
                    /** 我的排名 - 更新 */
                    this.myRnak.getChildByName("MyRankIndex").getComponent(Label).string = "" + this.rankIndexFormat(myRank);
                    this.myRnak.getChildByName("MyCredits").getComponent(Label).string = "" + (myRankScore > 99999 ? "99999+" : myRankScore);
                    this.myRnak.getChildByName("MyName").getComponent(Label).string = strFormat(myNickName || "", 12) + "(\u6211)";
                    /** 排行榜渲染 */

                    this.rankRender(rankInfo);
                    /** 奖品区域渲染 */

                    this.prizeRender(prizeInfo);
                  }

                case 6:
                case "end":
                  return _context.stop();
              }
            }, _callee, this);
          }));

          function getRankInfo() {
            return _getRankInfo.apply(this, arguments);
          }

          return getRankInfo;
        }()
        /** 排行榜区域获取 */
        ;

        _proto.setRankBoxHeight = function setRankBoxHeight() {
          var rankCanvas = view.getVisibleSize();
          var rankWidthX = rankCanvas.width;
          var rankHeightX = rankCanvas.height;
          /** 滚动区域前的内容高度 */

          var label = this.node.getChildByName("Label");
          var topHeight = label.getComponent(Widget).top + label.getComponent(UITransform).height / 2;
          /** 滚动区域后的内容高度 */

          var myRank = this.node.getChildByName("MyRank");
          var BottomHeight = myRank.getComponent(UITransform).height - 30;
          /** 可滚动区域 */

          var rankListHeight = Math.max(rankHeightX - topHeight - BottomHeight, 200);
          var rankList = this.node.getChildByName("ScrollView");
          var viewContent = rankList.getChildByName("view");
          viewContent.getComponent(UITransform).height = rankListHeight;
          rankList.getComponent(UITransform).height = rankListHeight;
          console.log("scrollView高度: ", rankListHeight, rankList.getComponent(UITransform).height);
        }
        /** 排行榜渲染 */
        ;

        _proto.rankRender = function rankRender(rankInfo) {
          if (rankInfo === void 0) {
            rankInfo = [];
          }

          this.vScroll.setDataList(rankInfo, SCROLL_VERTICAL, [0, 0, 0]);
          this.vScroll.scrollToTop(0);
        }
        /** 奖品栏渲染 */
        ;

        _proto.prizeRender = /*#__PURE__*/function () {
          var _prizeRender = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(prizeInfo) {
            var _this2 = this;

            return _regeneratorRuntime().wrap(function _callee3$(_context3) {
              while (1) switch (_context3.prev = _context3.next) {
                case 0:
                  if (prizeInfo === void 0) {
                    prizeInfo = [];
                  }

                  this.prizeBox.destroyAllChildren();
                  (prizeInfo || []).forEach( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(item) {
                    var node, res;
                    return _regeneratorRuntime().wrap(function _callee2$(_context2) {
                      while (1) switch (_context2.prev = _context2.next) {
                        case 0:
                          node = instantiate(_this2.prizeItem);
                          _context2.next = 3;
                          return loadImg(item == null ? void 0 : item.prizeImg, node.getChildByName("PrizeImg").getComponent(UITransform).width);

                        case 3:
                          res = _context2.sent;
                          node.getChildByName("PrizeImg").getComponent(Sprite).spriteFrame = res == null ? void 0 : res.spriteFrame;
                          node.getChildByName("PrizeImg").getComponent(UITransform).width /= (res == null ? void 0 : res.scale) || 1;
                          node.getChildByName("PrizeImg").getComponent(UITransform).height /= (res == null ? void 0 : res.scale) || 1;
                          node.getChildByName("PrizeName").getComponent(Label).string = strFormat(item == null ? void 0 : item.prizeName, 12);
                          node.getChildByName("RankIndex").getComponent(Label).string = "\u7B2C" + (item == null ? void 0 : item.prizeRank) + "\u540D";

                          _this2.prizeBox.addChild(node);

                        case 10:
                        case "end":
                          return _context2.stop();
                      }
                    }, _callee2);
                  })));

                case 3:
                case "end":
                  return _context3.stop();
              }
            }, _callee3, this);
          }));

          function prizeRender(_x) {
            return _prizeRender.apply(this, arguments);
          }

          return prizeRender;
        }()
        /** 切换Tab */
        ;

        _proto.handleClickTab = function handleClickTab(tab, data) {
          if (data === void 0) {
            data = "2";
          }

          this.type = data;

          if (data == "1") {
            this.tabGroup.getChildByName("WeekBg").getComponent(UIOpacity).opacity = 0;
            this.tabGroup.getChildByName("TotalBg").getComponent(UIOpacity).opacity = 255;
            this.node.getChildByPath("PrizeBox/CountDownContent").getComponent(Label).string = "4月1日0点后结算奖励";
          } else if (data == "2") {
            this.tabGroup.getChildByName("WeekBg").getComponent(UIOpacity).opacity = 255;
            this.tabGroup.getChildByName("TotalBg").getComponent(UIOpacity).opacity = 0;
            this.node.getChildByPath("PrizeBox/CountDownContent").getComponent(Label).string = "每周一0点后结算奖励";
          }

          this.getRankInfo();
        }
        /** 回到首页 */
        ;

        _proto.handleClickBack = /*#__PURE__*/function () {
          var _handleClickBack = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
            return _regeneratorRuntime().wrap(function _callee4$(_context4) {
              while (1) switch (_context4.prev = _context4.next) {
                case 0:
                  _context4.next = 2;
                  return changeScene(HomeScene);

                case 2:
                case "end":
                  return _context4.stop();
              }
            }, _callee4);
          }));

          function handleClickBack() {
            return _handleClickBack.apply(this, arguments);
          }

          return handleClickBack;
        }();

        _proto.update = function update(deltaTime) {};

        _createClass(RankScene, [{
          key: "type",
          get: function get() {
            return this._type;
          },
          set: function set(type) {
            this._type = type;
          }
        }]);

        return RankScene;
      }(Scene), _class3.skin = "RankScene", _class3.group = ["RankScene"], _class3), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "vScroll", [_dec2], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: null
      }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "myRnak", [_dec3], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "prizeBox", [_dec4], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "prizeItem", [_dec5], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "tabGroup", [_dec6], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      })), _class2)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/RankScrollListItem.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './Utils.ts', './ScrollListItem.ts'], function (exports) {
  var _inheritsLoose, cclegacy, _decorator, Label, strFormat, ScrollListItem;

  return {
    setters: [function (module) {
      _inheritsLoose = module.inheritsLoose;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      Label = module.Label;
    }, function (module) {
      strFormat = module.strFormat;
    }, function (module) {
      ScrollListItem = module.ScrollListItem;
    }],
    execute: function () {
      var _dec, _class;

      cclegacy._RF.push({}, "8c271dkxgNJwK+8Cj9OiR0C", "RankScrollListItem", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var RankScrollListItem = exports('RankScrollListItem', (_dec = ccclass("RankScrollListItem"), _dec(_class = /*#__PURE__*/function (_ScrollListItem) {
        _inheritsLoose(RankScrollListItem, _ScrollListItem);

        function RankScrollListItem() {
          return _ScrollListItem.apply(this, arguments) || this;
        }

        var _proto = RankScrollListItem.prototype;
        /** 元素渲染 */

        _proto.onItemRender = function onItemRender(data) {
          this.node.getChildByName("Index").getComponent(Label).string = "" + ((arguments.length <= 1 ? undefined : arguments[1]) + 1);
          this.node.getChildByName("Nickname").getComponent(Label).string = strFormat(data == null ? void 0 : data.nickName, 16);
          this.node.getChildByName("Credits").getComponent(Label).string = "" + ((data == null ? void 0 : data.rankScore) > 99999 ? "99999+" : data == null ? void 0 : data.rankScore);
        };

        return RankScrollListItem;
      }(ScrollListItem)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/RecordScene.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './Scene.ts', './UIFast.ts', './ScrollList.ts', './WebNet.ts', './HomeScene.ts'], function (exports) {
  var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, _createClass, _asyncToGenerator, _regeneratorRuntime, cclegacy, _decorator, Node, Prefab, view, Widget, UITransform, UIOpacity, Scene, changeScene, ScrollList, SCROLL_VERTICAL, sendWebNet, WebNetName, HomeScene;

  return {
    setters: [function (module) {
      _applyDecoratedDescriptor = module.applyDecoratedDescriptor;
      _inheritsLoose = module.inheritsLoose;
      _initializerDefineProperty = module.initializerDefineProperty;
      _assertThisInitialized = module.assertThisInitialized;
      _createClass = module.createClass;
      _asyncToGenerator = module.asyncToGenerator;
      _regeneratorRuntime = module.regeneratorRuntime;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      Node = module.Node;
      Prefab = module.Prefab;
      view = module.view;
      Widget = module.Widget;
      UITransform = module.UITransform;
      UIOpacity = module.UIOpacity;
    }, function (module) {
      Scene = module.default;
    }, function (module) {
      changeScene = module.changeScene;
    }, function (module) {
      ScrollList = module.ScrollList;
      SCROLL_VERTICAL = module.SCROLL_VERTICAL;
    }, function (module) {
      sendWebNet = module.sendWebNet;
      WebNetName = module.WebNetName;
    }, function (module) {
      HomeScene = module.HomeScene;
    }],
    execute: function () {
      var _dec, _dec2, _dec3, _dec4, _class, _class2, _descriptor, _descriptor2, _descriptor3, _class3;

      cclegacy._RF.push({}, "88be9J308lN27H5mMCrY+cR", "RecordScene", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var RecordScene = exports('RecordScene', (_dec = ccclass("RecordScene"), _dec2 = property({
        type: ScrollList,
        tooltip: "竖行滚动容器"
      }), _dec3 = property(Node), _dec4 = property(Prefab), _dec(_class = (_class2 = (_class3 = /*#__PURE__*/function (_Scene) {
        _inheritsLoose(RecordScene, _Scene);

        function RecordScene() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _Scene.call.apply(_Scene, [this].concat(args)) || this;
          /** 明细页类别 */

          _this._type = "1";

          _initializerDefineProperty(_this, "vScroll", _descriptor, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "RecordBox", _descriptor2, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "tips", _descriptor3, _assertThisInitialized(_this));

          return _this;
        }

        var _proto = RecordScene.prototype;

        _proto.start = function start() {
          this.setRecordBoxHeight();
          this.getCountRecordInfo();
        }
        /** 获取次数明细 */
        ;

        _proto.getCountRecordInfo = /*#__PURE__*/function () {
          var _getCountRecordInfo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
            var res;
            return _regeneratorRuntime().wrap(function _callee$(_context) {
              while (1) switch (_context.prev = _context.next) {
                case 0:
                  _context.next = 2;
                  return sendWebNet(WebNetName.changeDetails);

                case 2:
                  res = _context.sent;

                  if (res != null && res.success) {
                    this.recordRender((res == null ? void 0 : res.data) || []);
                  }

                case 4:
                case "end":
                  return _context.stop();
              }
            }, _callee, this);
          }));

          function getCountRecordInfo() {
            return _getCountRecordInfo.apply(this, arguments);
          }

          return getCountRecordInfo;
        }()
        /** 获取游戏记录 */
        ;

        _proto.getGameRecordInfo = /*#__PURE__*/function () {
          var _getGameRecordInfo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
            var res;
            return _regeneratorRuntime().wrap(function _callee2$(_context2) {
              while (1) switch (_context2.prev = _context2.next) {
                case 0:
                  _context2.next = 2;
                  return sendWebNet(WebNetName.gameRecord);

                case 2:
                  res = _context2.sent;

                  if (res != null && res.success) {
                    this.recordRender((res == null ? void 0 : res.data) || []);
                  }

                case 4:
                case "end":
                  return _context2.stop();
              }
            }, _callee2, this);
          }));

          function getGameRecordInfo() {
            return _getGameRecordInfo.apply(this, arguments);
          }

          return getGameRecordInfo;
        }()
        /** 明细区域获取 */
        ;

        _proto.setRecordBoxHeight = function setRecordBoxHeight() {
          var rankCanvas = view.getVisibleSize();
          var rankWidthX = rankCanvas.width;
          var rankHeightX = rankCanvas.height;
          /** 滚动区域前的内容高度 */

          var tab = this.node.getChildByName("TabGroup");
          var topHeight = tab.getComponent(Widget).top + tab.getComponent(UITransform).height + 100;
          /** 可滚动区域 */

          var recordListHeight = Math.max(rankHeightX - topHeight, 200);
          var recordList = this.node.getChildByName("ScrollView");
          var viewContent = recordList.getChildByName("view");
          viewContent.getComponent(UITransform).height = recordListHeight;
          recordList.getComponent(UITransform).height = recordListHeight;
          console.log("scrollView高度: ", recordListHeight);
        }
        /** 明细渲染 */
        ;

        _proto.recordRender = function recordRender(recordInfo) {
          if (recordInfo === void 0) {
            recordInfo = [];
          }

          this.vScroll.setDataList(recordInfo, SCROLL_VERTICAL, [0, 0, 0]);
          this.vScroll.scrollToTop(0);
        }
        /** 切换tab */
        ;

        _proto.handleClickTab = function handleClickTab(event, data) {
          this.type = data;

          if (data == "1") {
            this.RecordBox.getChildByName("CountBg").getComponent(UIOpacity).opacity = 255;
            this.RecordBox.getChildByName("GameBg").getComponent(UIOpacity).opacity = 0;
            this.getCountRecordInfo();
          } else if (data == "2") {
            this.RecordBox.getChildByName("CountBg").getComponent(UIOpacity).opacity = 0;
            this.RecordBox.getChildByName("GameBg").getComponent(UIOpacity).opacity = 255;
            this.getGameRecordInfo();
          }
        }
        /** 返回首页 */
        ;

        _proto.handleClickBackBtn = function handleClickBackBtn() {
          changeScene(HomeScene);
        };

        _proto.update = function update(deltaTime) {};

        _createClass(RecordScene, [{
          key: "type",
          get: function get() {
            return this._type;
          },
          set: function set(type) {
            this._type = type;
          }
        }]);

        return RecordScene;
      }(Scene), _class3.skin = "RecordScene", _class3.group = ["RecordScene"], _class3), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "vScroll", [_dec2], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: null
      }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "RecordBox", [_dec3], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "tips", [_dec4], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      })), _class2)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/RecordScrollListItem.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './Utils.ts', './ScrollListItem.ts'], function (exports) {
  var _inheritsLoose, cclegacy, _decorator, Label, Color, dateFormatter, strFormat, ScrollListItem;

  return {
    setters: [function (module) {
      _inheritsLoose = module.inheritsLoose;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      Label = module.Label;
      Color = module.Color;
    }, function (module) {
      dateFormatter = module.dateFormatter;
      strFormat = module.strFormat;
    }, function (module) {
      ScrollListItem = module.ScrollListItem;
    }],
    execute: function () {
      var _dec, _class;

      cclegacy._RF.push({}, "4f661jlh4tK85G3Svj4+gqf", "RecordScrollListItem", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var RecordScrollListItem = exports('RecordScrollListItem', (_dec = ccclass("RecordScrollListItem"), _dec(_class = /*#__PURE__*/function (_ScrollListItem) {
        _inheritsLoose(RecordScrollListItem, _ScrollListItem);

        function RecordScrollListItem() {
          return _ScrollListItem.apply(this, arguments) || this;
        }

        var _proto = RecordScrollListItem.prototype;

        _proto.start = function start() {};

        _proto.onItemRender = function onItemRender(data) {
          if (Object.keys(data).includes("ifGetPrize")) {
            this.node.getChildByName("Title").getComponent(Label).string = "\u83B7\u5F97" + ((data == null ? void 0 : data.score) || 0) + "\u8D22\u5BCC\u79EF\u5206";
            this.node.getChildByName("Time").getComponent(Label).string = "" + dateFormatter(data == null ? void 0 : data.timestamp, "yyyy.MM.dd hh:mm");

            if (!!(data != null && data.ifGetPrize)) {
              this.node.getChildByName("Desc").getComponent(Label).string = "\u83B7\u5F97\u5B9D\u7BB1";
            } else {
              this.node.getChildByName("Desc").getComponent(Label).string = "\u672A\u83B7\u5F97\u5B9D\u7BB1";
              this.node.getChildByName("Desc").getComponent(Label).color = new Color(16, 168, 73, 255);
            }
          } else {
            this.node.getChildByName("Title").getComponent(Label).string = strFormat(data == null ? void 0 : data.source, 30);
            this.node.getChildByName("Time").getComponent(Label).string = "" + dateFormatter(data == null ? void 0 : data.timestamp, "yyyy.MM.dd hh:mm");
            this.node.getChildByName("Desc").getComponent(Label).string = "\u6311\u6218\u6B21\u6570" + ((data == null ? void 0 : data.type) || "") + (data == null ? void 0 : data.num);

            if ((data == null ? void 0 : data.type) == "-") {
              this.node.getChildByName("Desc").getComponent(Label).color = new Color(16, 168, 73, 255);
            }
          }
        };

        return RecordScrollListItem;
      }(ScrollListItem)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/RES.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc'], function (exports) {
  var _asyncToGenerator, _regeneratorRuntime, cclegacy, resources, assetManager, SpriteFrame;

  return {
    setters: [function (module) {
      _asyncToGenerator = module.asyncToGenerator;
      _regeneratorRuntime = module.regeneratorRuntime;
    }, function (module) {
      cclegacy = module.cclegacy;
      resources = module.resources;
      assetManager = module.assetManager;
      SpriteFrame = module.SpriteFrame;
    }],
    execute: function () {
      cclegacy._RF.push({}, "1e2085dSiJH14aXVtuHH3rN", "RES", undefined);

      var RES;

      (function (_RES) {
        var bundles = _RES.bundles = {};

        function loadBundle(name) {
          var url = window["__remoteAssets__"] || "";
          return new Promise(function (resolve, reject) {
            assetManager.loadBundle(url + name, function (err, bundle) {
              if (err !== null) {
                console.log("[RES]:Load AssetsBundle Error: " + name);
                bundles[name] = null;
                reject(err);
              } else {
                console.log("[RES]:Load AssetsBundle Success: " + name);
                bundles[name] = bundle;
                resolve(true);
              }
            });
          });
        }

        _RES.loadBundle = loadBundle;
        var getRes = _RES.getRes = resources.get.bind(resources);

        function loadRes(path, type) {
          return new Promise(function (resolve) {
            resources.load(path, type, function (err, asset) {
              if (err) {
                console.warn("\u8D44\u6E90 " + path + " \u52A0\u8F7D\u5931\u8D25:", err);
                resolve(null);
              } else if (!asset) {
                resolve(null);
              } else {
                resolve(asset);
              }
            });
          });
        }

        _RES.loadRes = loadRes;

        function loadRemote(url) {
          return new Promise(function (resolve) {
            assetManager.loadRemote(url, function (err, asset) {
              if (err || !asset) {
                console.warn("\u8D44\u6E90 " + url + " \u52A0\u8F7D\u5931\u8D25:", err);
                resolve(null);
              } else {
                resolve(asset);
              }
            });
          });
        }

        _RES.loadRemote = loadRemote;

        function loadRemoteImg(_x) {
          return _loadRemoteImg.apply(this, arguments);
        }

        function _loadRemoteImg() {
          _loadRemoteImg = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(url) {
            return _regeneratorRuntime().wrap(function _callee$(_context) {
              while (1) switch (_context.prev = _context.next) {
                case 0:
                  _context.next = 2;
                  return RES.loadRemote(url);

                case 2:
                  return _context.abrupt("return", _context.sent);

                case 3:
                case "end":
                  return _context.stop();
              }
            }, _callee);
          }));
          return _loadRemoteImg.apply(this, arguments);
        }

        _RES.loadRemoteImg = loadRemoteImg;

        function loadLocalImg(_x2) {
          return _loadLocalImg.apply(this, arguments);
        }

        function _loadLocalImg() {
          _loadLocalImg = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(url) {
            return _regeneratorRuntime().wrap(function _callee2$(_context2) {
              while (1) switch (_context2.prev = _context2.next) {
                case 0:
                  return _context2.abrupt("return", new Promise(function (resolve) {
                    resources.load(url, function (err, asset) {
                      if (err || !asset) {
                        console.warn("\u8D44\u6E90 " + url + " \u52A0\u8F7D\u5931\u8D25:", err);
                        resolve(null);
                      } else {
                        resolve(SpriteFrame.createWithImage(asset));
                      }
                    });
                  }));

                case 1:
                case "end":
                  return _context2.stop();
              }
            }, _callee2);
          }));
          return _loadLocalImg.apply(this, arguments);
        }

        _RES.loadLocalImg = loadLocalImg;

        function loadDir(path, onProgress) {
          if (onProgress === void 0) {
            onProgress = function onProgress() {
              return 0;
            };
          } // const bundle = bundles["resources"];
          // if (!bundle) {
          // 	console.warn("resources 未初始化");
          // }


          return new Promise(function (resolve) {
            resources.loadDir(path, onProgress, function (err, assets) {
              if (err) {
                console.warn("\u8D44\u6E90 " + path + " \u52A0\u8F7D\u5931\u8D25:", err);
                resolve(false);
              } else {
                resolve(true);
              }
            });
          });
        }

        _RES.loadDir = loadDir;
      })(RES || (RES = {}));

      var RES$1 = exports('default', RES);

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/ResolutionAutoFit.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc'], function (exports) {
  var _inheritsLoose, cclegacy, _decorator, screen, view, ResolutionPolicy, size, Component;

  return {
    setters: [function (module) {
      _inheritsLoose = module.inheritsLoose;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      screen = module.screen;
      view = module.view;
      ResolutionPolicy = module.ResolutionPolicy;
      size = module.size;
      Component = module.Component;
    }],
    execute: function () {
      var _dec, _class;

      cclegacy._RF.push({}, "e5d8aIjX9NO3ox3KMWTDbsA", "ResolutionAutoFit", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var CHECK_INTERVAL = 0.1;
      var ResolutionAutoFit = exports('ResolutionAutoFit', (_dec = ccclass('tgxResolutionAutoFit'), _dec(_class = /*#__PURE__*/function (_Component) {
        _inheritsLoose(ResolutionAutoFit, _Component);

        function ResolutionAutoFit() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _Component.call.apply(_Component, [this].concat(args)) || this;
          _this._oldSize = size();
          _this.lastCheckTime = 0;
          return _this;
        }

        var _proto = ResolutionAutoFit.prototype;

        _proto.start = function start() {
          this.adjustResolutionPolicy();
        };

        _proto.update = function update(deltaTime) {
          this.lastCheckTime += deltaTime;

          if (this.lastCheckTime < CHECK_INTERVAL) {
            return;
          }

          this.lastCheckTime = 0;
          this.adjustResolutionPolicy();
        };

        _proto.adjustResolutionPolicy = function adjustResolutionPolicy() {
          var winSize = screen.windowSize;

          if (!this._oldSize.equals(winSize)) {
            var ratio = winSize.width / winSize.height;
            var drs = view.getDesignResolutionSize();
            var drsRatio = drs.width / drs.height;

            if (ratio > drsRatio) {
              //wider than desgin. fixed height
              view.setResolutionPolicy(ResolutionPolicy.FIXED_HEIGHT);
            } else {
              //
              view.setResolutionPolicy(ResolutionPolicy.FIXED_WIDTH);
            }

            this._oldSize.set(winSize);
          }
        };

        return ResolutionAutoFit;
      }(Component)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/ResourceMgr.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc'], function (exports) {
  var _createClass, cclegacy, resources;

  return {
    setters: [function (module) {
      _createClass = module.createClass;
    }, function (module) {
      cclegacy = module.cclegacy;
      resources = module.resources;
    }],
    execute: function () {
      cclegacy._RF.push({}, "b666cLPxptFbq3Cc9VNNPIW", "ResourceMgr", undefined);

      var ResItem = function ResItem() {
        this.url = void 0;
        this.isLoading = false;
        this.callbackArr = [];
      };

      var ResourceMgr = exports('ResourceMgr', /*#__PURE__*/function () {
        function ResourceMgr() {
          this.loadingQueue = [];
        }

        var _proto = ResourceMgr.prototype;

        _proto.loadRes = function loadRes(url, type, callback) {
          var _this = this;

          var cache = resources.get(url, type);

          if (cache) {
            if (callback) {
              setTimeout(function () {
                callback(null, cache);
              }, 10);
            }

            return;
          }

          var loadingItem = this.loadingQueue[url];

          if (!loadingItem) {
            loadingItem = this.loadingQueue[url] = new ResItem();
            loadingItem.url = url;
          }

          loadingItem.callbackArr.push(callback);

          if (!loadingItem.isLoading) {
            loadingItem.isLoading = true;
            resources.load(url, type, function (err, asset) {
              delete _this.loadingQueue[url];

              for (var k in loadingItem.callbackArr) {
                var cb = loadingItem.callbackArr[k];

                if (cb) {
                  cb(err, asset);
                }
              }
            });
          }
        };

        _createClass(ResourceMgr, null, [{
          key: "inst",
          get: function get() {
            if (!this._inst) {
              this._inst = new ResourceMgr();
            }

            return this._inst;
          }
        }]);

        return ResourceMgr;
      }());
      ResourceMgr._inst = null;

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/ReviewPanel.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './Panel.ts', './GameMgr.ts'], function (exports) {
  var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, _asyncToGenerator, _regeneratorRuntime, cclegacy, _decorator, Node, Label, Button, Panel, GameMgr;

  return {
    setters: [function (module) {
      _applyDecoratedDescriptor = module.applyDecoratedDescriptor;
      _inheritsLoose = module.inheritsLoose;
      _initializerDefineProperty = module.initializerDefineProperty;
      _assertThisInitialized = module.assertThisInitialized;
      _asyncToGenerator = module.asyncToGenerator;
      _regeneratorRuntime = module.regeneratorRuntime;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      Node = module.Node;
      Label = module.Label;
      Button = module.Button;
    }, function (module) {
      Panel = module.default;
    }, function (module) {
      GameMgr = module.default;
    }],
    execute: function () {
      var _dec, _dec2, _dec3, _dec4, _dec5, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _class3;

      cclegacy._RF.push({}, "b0316rJiIJFG5Xhu1RtThlN", "ReviewPanel", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var ReviewPanel = exports('default', (_dec = ccclass('ReviewPanel'), _dec2 = property(Node), _dec3 = property(Node), _dec4 = property(Node), _dec5 = property(Label), _dec(_class = (_class2 = (_class3 = /*#__PURE__*/function (_Panel) {
        _inheritsLoose(ReviewPanel, _Panel);

        function ReviewPanel() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _Panel.call.apply(_Panel, [this].concat(args)) || this;

          _initializerDefineProperty(_this, "close", _descriptor, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "cancel", _descriptor2, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "ok", _descriptor3, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "tip", _descriptor4, _assertThisInitialized(_this));
          /**
           * 确认复活
           */


          _this.onOk = function () {
            _this.data.review();

            _this.hidePanel();
          };
          /**
           * 取消，关闭
           */


          _this.onClose = function () {
            // 结算
            _this.data.submit();

            _this.hidePanel();
          };

          return _this;
        }

        var _proto = ReviewPanel.prototype;

        _proto.start = /*#__PURE__*/function () {
          var _start = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
            var _GameMgr$ins$gameInfo, delaySecond, delayConsumeNum;

            return _regeneratorRuntime().wrap(function _callee$(_context) {
              while (1) switch (_context.prev = _context.next) {
                case 0:
                  this.ok.on(Button.EventType.CLICK, this.onOk, this);
                  this.close.on(Button.EventType.CLICK, this.onClose, this);
                  this.cancel.on(Button.EventType.CLICK, this.onClose, this);
                  _GameMgr$ins$gameInfo = GameMgr.ins.gameInfo, delaySecond = _GameMgr$ins$gameInfo.delaySecond, delayConsumeNum = _GameMgr$ins$gameInfo.delayConsumeNum;
                  this.tip.string = "\u662F\u5426\u901A\u8FC7\u6D88\u8017" + delayConsumeNum + "\u82CF\u94F6\u8C46\n\u5EF6\u957F" + delaySecond + "s\u6E38\u620F\u65F6\u95F4\uFF1F";

                case 5:
                case "end":
                  return _context.stop();
              }
            }, _callee, this);
          }));

          function start() {
            return _start.apply(this, arguments);
          }

          return start;
        }();

        return ReviewPanel;
      }(Panel), _class3.bundle = "", _class3.skin = "ReviewPanel", _class3.group = "ReviewPanel", _class3), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "close", [_dec2], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "cancel", [_dec3], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "ok", [_dec4], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "tip", [_dec5], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      })), _class2)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/RulePanel.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './Panel.ts', './WebNet.ts'], function (exports) {
  var _inheritsLoose, _asyncToGenerator, _regeneratorRuntime, cclegacy, _decorator, RichText, UITransform, Button, Panel, sendWebNet, WebNetName;

  return {
    setters: [function (module) {
      _inheritsLoose = module.inheritsLoose;
      _asyncToGenerator = module.asyncToGenerator;
      _regeneratorRuntime = module.regeneratorRuntime;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      RichText = module.RichText;
      UITransform = module.UITransform;
      Button = module.Button;
    }, function (module) {
      Panel = module.default;
    }, function (module) {
      sendWebNet = module.sendWebNet;
      WebNetName = module.WebNetName;
    }],
    execute: function () {
      var _dec, _class, _class2;

      cclegacy._RF.push({}, "fbcc1s8CHlK1IBn1pSOdYjY", "RulePanel", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var RulePanel = exports('default', (_dec = ccclass('RulePanel'), _dec(_class = (_class2 = /*#__PURE__*/function (_Panel) {
        _inheritsLoose(RulePanel, _Panel);

        function RulePanel() {
          return _Panel.apply(this, arguments) || this;
        }

        var _proto = RulePanel.prototype;

        _proto.start = /*#__PURE__*/function () {
          var _start = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
            var _yield$sendWebNet, data;

            return _regeneratorRuntime().wrap(function _callee$(_context) {
              while (1) switch (_context.prev = _context.next) {
                case 0:
                  _context.next = 2;
                  return sendWebNet(WebNetName.projectRule);

                case 2:
                  _yield$sendWebNet = _context.sent;
                  data = _yield$sendWebNet.data;
                  this.setRuleTxt(data);
                  this.view["close"].on(Button.EventType.CLICK, this.hidePanel, this);

                case 6:
                case "end":
                  return _context.stop();
              }
            }, _callee, this);
          }));

          function start() {
            return _start.apply(this, arguments);
          }

          return start;
        }();

        _proto.setRuleTxt = function setRuleTxt(txt) {
          var ruleNode = this.view['ScrollView/view/content/ruleTxt'];
          var ruleTxt = ruleNode.getComponent(RichText);
          var content = this.view['ScrollView/view/content'];
          ruleTxt.maxWidth = content.getComponent(UITransform).width;
          this.scheduleOnce(function () {
            ruleTxt.string = txt; // ruleTxt.string = txt.replace(/<p>/g, "").replace(/<\/p>/g, "<br/>");

            content.getComponent(UITransform).height = ruleNode.getComponent(UITransform).height;
          }, 0.188);
        };

        return RulePanel;
      }(Panel), _class2.bundle = "", _class2.skin = "RulePanel", _class2.group = "RulePanel", _class2)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/SafeJSON.ts", ['cc'], function (exports) {
  var cclegacy;
  return {
    setters: [function (module) {
      cclegacy = module.cclegacy;
    }],
    execute: function () {
      cclegacy._RF.push({}, "2aad8l/WzBPTIhr1W6SB9Pt", "SafeJSON", undefined);
      /**
       * @en call JSON mthods safely.
       * @zh 用于安全操作JSON相关函数
       * */


      var SafeJSON = exports('SafeJSON', /*#__PURE__*/function () {
        function SafeJSON() {}

        SafeJSON.parse = function parse(text, reciver) {
          try {
            return JSON.parse(text, reciver);
          } catch (error) {
            console.log(error);
            return null;
          }
        };

        SafeJSON.stringify = function stringify(value, replacer, space) {
          try {
            return JSON.stringify(value, replacer, space);
          } catch (error) {
            return '';
          }
        };

        return SafeJSON;
      }());

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/Scene.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './Module.ts', './UILayer.ts'], function (exports) {
  var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, cclegacy, _decorator, Module, UILayer;

  return {
    setters: [function (module) {
      _applyDecoratedDescriptor = module.applyDecoratedDescriptor;
      _inheritsLoose = module.inheritsLoose;
      _initializerDefineProperty = module.initializerDefineProperty;
      _assertThisInitialized = module.assertThisInitialized;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
    }, function (module) {
      Module = module.default;
    }, function (module) {
      UILayer = module.UILayer;
    }],
    execute: function () {
      var _dec, _dec2, _class, _class2, _descriptor;

      cclegacy._RF.push({}, "61b510UK1BAArhAGfKaHO0v", "Scene", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var Scene = exports('default', (_dec = ccclass(), _dec2 = property(UILayer), _dec(_class = (_class2 = /*#__PURE__*/function (_Module) {
        _inheritsLoose(Scene, _Module);

        function Scene() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _Module.call.apply(_Module, [this].concat(args)) || this;

          _initializerDefineProperty(_this, "uiLayer", _descriptor, _assertThisInitialized(_this));

          return _this;
        }

        return Scene;
      }(Module), _descriptor = _applyDecoratedDescriptor(_class2.prototype, "uiLayer", [_dec2], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _class2)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/SceneUtils.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc'], function (exports) {
  var _asyncToGenerator, _regeneratorRuntime, cclegacy, director, assetManager;

  return {
    setters: [function (module) {
      _asyncToGenerator = module.asyncToGenerator;
      _regeneratorRuntime = module.regeneratorRuntime;
    }, function (module) {
      cclegacy = module.cclegacy;
      director = module.director;
      assetManager = module.assetManager;
    }],
    execute: function () {
      cclegacy._RF.push({}, "a97b9Z9/ixN3o1FLVqGpfE9", "SceneUtils", undefined);

      var SceneUtil = exports('SceneUtil', /*#__PURE__*/function () {
        function SceneUtil() {}

        SceneUtil.reloadScene = /*#__PURE__*/function () {
          var _reloadScene = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
            return _regeneratorRuntime().wrap(function _callee$(_context) {
              while (1) switch (_context.prev = _context.next) {
                case 0:
                  return _context.abrupt("return", new Promise(function (resolve, reject) {
                    director.loadScene(director.getScene().name, function () {
                      resolve(true);
                    });
                  }));

                case 1:
                case "end":
                  return _context.stop();
              }
            }, _callee);
          }));

          function reloadScene() {
            return _reloadScene.apply(this, arguments);
          }

          return reloadScene;
        }();

        SceneUtil.loadScene = /*#__PURE__*/function () {
          var _loadScene = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(scene) {
            return _regeneratorRuntime().wrap(function _callee2$(_context2) {
              while (1) switch (_context2.prev = _context2.next) {
                case 0:
                  return _context2.abrupt("return", new Promise(function (resolve, reject) {
                    var bundle = assetManager.getBundle(scene.bundle);

                    if (bundle) {
                      director.loadScene(scene.name, function () {
                        resolve(true);
                      });
                    } else {
                      assetManager.loadBundle(scene.bundle, function (err, bundle) {
                        if (bundle) {
                          director.loadScene(scene.name, function () {
                            resolve(true);
                          });
                        }
                      });
                    }
                  }));

                case 1:
                case "end":
                  return _context2.stop();
              }
            }, _callee2);
          }));

          function loadScene(_x) {
            return _loadScene.apply(this, arguments);
          }

          return loadScene;
        }();

        return SceneUtil;
      }());

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/ScrollList.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './ScrollListItem.ts'], function (exports) {
  var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, cclegacy, _decorator, Prefab, UITransform, instantiate, log, Vec3, Vec2, ScrollView, ScrollListItem;

  return {
    setters: [function (module) {
      _applyDecoratedDescriptor = module.applyDecoratedDescriptor;
      _inheritsLoose = module.inheritsLoose;
      _initializerDefineProperty = module.initializerDefineProperty;
      _assertThisInitialized = module.assertThisInitialized;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      Prefab = module.Prefab;
      UITransform = module.UITransform;
      instantiate = module.instantiate;
      log = module.log;
      Vec3 = module.Vec3;
      Vec2 = module.Vec2;
      ScrollView = module.ScrollView;
    }, function (module) {
      ScrollListItem = module.ScrollListItem;
    }],
    execute: function () {
      var _dec, _dec2, _class, _class2, _descriptor;

      cclegacy._RF.push({}, "5f49dlEYVlL9IU6wLGFAPWZ", "ScrollList", undefined);
      /**横向排布拖动*/


      var SCROLL_HORIZONTAL = exports('SCROLL_HORIZONTAL', 1);
      /**竖向排布拖动*/

      var SCROLL_VERTICAL = exports('SCROLL_VERTICAL', 2);
      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var ScrollList = exports('ScrollList', (_dec = ccclass("ScrollList"), _dec2 = property({
        type: Prefab,
        tooltip: "item子节点预制体"
      }), _dec(_class = (_class2 = /*#__PURE__*/function (_ScrollView) {
        _inheritsLoose(ScrollList, _ScrollView);

        function ScrollList() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _ScrollView.call.apply(_ScrollView, [this].concat(args)) || this;
          /**item子节点预制体*/

          _initializerDefineProperty(_this, "itemPrefab", _descriptor, _assertThisInitialized(_this));
          /**单条记录高度*/


          _this._itemSize = void 0;
          /**需要多少个记录组件 在可视范围内+2条*/

          _this._numItem = 0;
          _this._itemArr = [];
          /**当前最大节点下标*/

          _this._itemIndex = 0;
          /**当前最大数据下标*/

          _this._dataIndex = 0;
          /**数据源*/

          _this._dataArr = void 0;
          /**滚动方向*/

          _this._direction = 0;
          /**间隙 0=开始边框，1=结束边框，2=间隙*/

          _this._gapNum = void 0;
          /**子节点刷新绑定事件，或者使用item继承的模式*/

          _this.onItemRender = void 0;
          /**渲染完毕执行*/

          _this.arriveBottom = void 0;
          /** 是否执行了触底函数 */

          _this.isExec = false;
          return _this;
        }

        var _proto = ScrollList.prototype;

        _proto.start = function start() {
          _ScrollView.prototype.start.call(this);

          this.node.on("scrolling", this.scrollCheck, this);
        };

        _proto.onDestroy = function onDestroy() {// super.onDestroy();
          // if (this.node) {
          //   this.node.off("scrolling", this.scrollCheck, this);
          // }
        }
        /**设置数据
         * @param dataArr : 数据源
         * @param direction : 滚动方向，默认上下
         * @param gap : [开始边框距离，结束边框距离，每个之间空隙]
         */
        ;

        _proto.setDataList = function setDataList(dataArr, direction, gap, arriveBottom) {
          if (direction === void 0) {
            direction = SCROLL_VERTICAL;
          }

          this._itemArr = [];
          this.node.getChildByName("view").getChildByName("content").destroyAllChildren();
          this._dataArr = dataArr;
          this._direction = direction;
          this._gapNum = gap;
          this.arriveBottom = arriveBottom;
          this.createItem();
        }
        /**获得数据后开始创建*/
        ;

        _proto.createItem = function createItem() {
          console.log("%c \u5F00\u59CB\u6E32\u67D3", "font-size: 32px; color: pink");
          console.log("node", this.node, this._dataArr.length);
          var _showSize = this.node.getComponent(UITransform).height;
          console.log("height: ", _showSize); //获得预制体的高度

          if (!this._itemSize) {
            var pNode = instantiate(this.itemPrefab);

            if (this._direction == SCROLL_HORIZONTAL) {
              this._itemSize = pNode.getComponent(UITransform).contentSize.width;
              _showSize = this.node.getComponent(UITransform).width;
            } else {
              this._itemSize = pNode.getComponent(UITransform).contentSize.height;
            }

            pNode.destroy(); // log("---_itemSize--", this._itemSize);
          } //可视范围，对应可以创建多少个实体单例item


          this._numItem = Math.floor(_showSize / this._itemSize) + 4;
          log(_showSize, "初始化获得数量：", this._numItem);

          if (this._dataArr.length < this._numItem) {
            this._numItem = this._dataArr.length;
          }

          this._itemArr.length = 0;
          console.log("numItem: ", this._numItem);

          for (var index = 0; index < this._numItem; index++) {
            var _pNode = instantiate(this.itemPrefab);

            _pNode.parent = this.content;

            this._itemArr.push(_pNode);

            this.itemRender(_pNode, index);
          } //设置容器大小


          var contentSize = this._itemSize * this._dataArr.length; //前面距离边框

          if (this._gapNum && this._gapNum[0]) {
            contentSize += this._gapNum[0];
          } //后面距离边框


          if (this._gapNum && this._gapNum[1]) {
            contentSize += this._gapNum[1];
          } //间隙距离


          if (this._gapNum && this._gapNum[2]) {
            contentSize += this._gapNum[2] * (this._dataArr.length - 1);
          }

          if (this._direction == SCROLL_HORIZONTAL) {
            this.content.getComponent(UITransform).width = contentSize;
          } else {
            this.content.getComponent(UITransform).height = contentSize;
          }

          this._itemIndex = this._dataIndex = this._itemArr.length - 1;
          log("初始化结束：", this._dataIndex, this._itemArr.length);
        };

        _proto.scrollCheck = function scrollCheck() {
          var nowPos = this.getScrollOffset().y;
          var topPos = (this._dataIndex + 1 - this._numItem) * this._itemSize; //当前屏幕中靠近最开始的坐标
          //前面边框

          if (this._gapNum && this._gapNum[0]) {
            topPos += this._gapNum[0];
          } //间隙距离


          if (this._gapNum && this._gapNum[2]) {
            topPos += this._gapNum[2] * (this._dataIndex + 1 - this._numItem);
          } // let topPos = this.countPosByIndex(this._dataIndex + 1 - this._numItem);


          var size = this._itemSize;

          if (this._direction == SCROLL_HORIZONTAL) {
            nowPos = this.getScrollOffset().x;
            topPos = -topPos;
            size = -this._itemSize;
          } //判断向结束端滚动，滚动点和初始点对比


          if (this._direction == SCROLL_VERTICAL && nowPos > size + topPos || this._direction == SCROLL_HORIZONTAL && nowPos < size + topPos) {
            var newIndex = this._dataIndex + 1; // log(this._dataIndex, "-判断向结束端滚动 1 --将头部item转移到最后---", nowPos, topPos);

            if (newIndex >= this._dataArr.length) {
              if (!!this.arriveBottom && !this.isExec) {
                this.arriveBottom(nowPos);
                this.isExec = true;
              }

              return; //如果滚动到底部最后一条数据，不再进行写入
            }

            this._dataIndex = newIndex;
            var topItemIndex = this._itemIndex + 1;

            if (topItemIndex >= this._numItem) {
              topItemIndex = 0;
            }

            var item = this._itemArr[topItemIndex];

            if (item) {
              this.itemRender(item, newIndex); // error(topItemIndex, "转移到最后", item.node.position);
            }

            this._itemIndex = topItemIndex;
            console.log("_itemIndex", this._itemIndex);
          } //判断向开始端滚动
          else if (this._direction == SCROLL_VERTICAL && nowPos < topPos || this._direction == SCROLL_HORIZONTAL && nowPos > topPos) {
              var _newIndex = this._dataIndex + 1 - this._numItem - 1; // log(this._dataIndex, "-判断向上滚动 2 -将最后item转移到头部----", newIndex);


              if (_newIndex < 0) {
                // warn("如果滚动到第一条数据，不再进行写入", newIndex)
                return; //如果滚动到第一条数据，不再进行写入
              }

              this._dataIndex--; // error(this._itemIndex, "将最后item转移到头部", this._dataIndex, newIndex, newIndex * -this._itemSize);

              var _item = this._itemArr[this._itemIndex];

              if (_item) {
                this.itemRender(_item, _newIndex); // error(this._itemIndex, "转移头部", item.node.position);
              }

              this._itemIndex--;

              if (this._itemIndex < 0) {
                this._itemIndex = this._numItem - 1;
              }
            }
        }
        /**刷新单项*/
        ;

        _proto.itemRender = function itemRender(node, newIndex) {
          //设置有全局得刷新事件
          if (this.onItemRender) {
            this.onItemRender(node, newIndex);
          } //没有全局，使用继承的item
          else {
              var item = node.getComponent(ScrollListItem);

              if (item) {
                item.onItemRender(this._dataArr[newIndex], newIndex);
              }
            }

          this.setPos(node, newIndex);
        }
        /**设置坐标*/
        ;

        _proto.setPos = function setPos(node, index) {
          var pos = this.countPosByIndex(index);

          if (this._direction == SCROLL_HORIZONTAL) {
            node.setPosition(new Vec3(pos, 0));
          } else {
            node.setPosition(new Vec3(0, -pos));
          }
        }
        /**根据下标计算坐标。 0 ~ length-1*/
        ;

        _proto.countPosByIndex = function countPosByIndex(index) {
          var pos = (1 / 2 + index) * this._itemSize; //前面距离边框

          if (this._gapNum && this._gapNum[0]) {
            pos += this._gapNum[0];
          } //间隙距离


          if (this._gapNum && this._gapNum[2]) {
            pos += this._gapNum[2] * index;
          }

          return pos;
        }
        /**滚动到指定下标*/
        ;

        _proto.scroll2Index = function scroll2Index(index) {
          this.stopAutoScroll(); //太靠近结束点，需要回退屏幕显示数量

          if (index > this._dataArr.length - this._numItem - 2) {
            index = this._dataArr.length - this._numItem - 2;
          }

          if (index < 0) {
            index = 0;
          }
          /**设置滚动坐标*/


          var pos = this.countPosByIndex(index) - 1 / 2 * this._itemSize;

          var ve = new Vec2(0, -pos);

          if (this._direction == SCROLL_HORIZONTAL) {
            ve = new Vec2(pos, 0);
          }

          this.scrollToOffset(ve, 0.5); //滚动

          for (var x = 0; x < this._itemArr.length; x++) {
            this.itemRender(this._itemArr[x], index + x);
          }

          this._dataIndex = this._itemArr.length - 1 + index; //数据下标

          this._itemIndex = this._itemArr.length - 1; //重新赋值后节点下标为数组内当前最大
        };

        return ScrollList;
      }(ScrollView), _descriptor = _applyDecoratedDescriptor(_class2.prototype, "itemPrefab", [_dec2], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _class2)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/ScrollListItem.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc'], function (exports) {
  var _inheritsLoose, cclegacy, _decorator, Component;

  return {
    setters: [function (module) {
      _inheritsLoose = module.inheritsLoose;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      Component = module.Component;
    }],
    execute: function () {
      var _dec, _class;

      cclegacy._RF.push({}, "e9c05Vd5TNLuLQHKHK0bTlc", "ScrollListItem", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var ScrollListItem = exports('ScrollListItem', (_dec = ccclass("ScrollListItem"), _dec(_class = /*#__PURE__*/function (_Component) {
        _inheritsLoose(ScrollListItem, _Component);

        function ScrollListItem() {
          return _Component.apply(this, arguments) || this;
        }

        var _proto = ScrollListItem.prototype;
        /**滚动列表数据变更*/

        _proto.onItemRender = function onItemRender(data) {
          console.log("index: " + data);
        };

        return ScrollListItem;
      }(Component)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/ShareCenter.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './UIFast.ts', './Utils.ts', './WebNet.ts', './const.ts'], function (exports) {
  var _createClass, _asyncToGenerator, _regeneratorRuntime, cclegacy, showToast, getUrlParam, sendWebNetWithToken, WebNetName, getWebData, SHARE_TYPE;

  return {
    setters: [function (module) {
      _createClass = module.createClass;
      _asyncToGenerator = module.asyncToGenerator;
      _regeneratorRuntime = module.regeneratorRuntime;
    }, function (module) {
      cclegacy = module.cclegacy;
    }, function (module) {
      showToast = module.showToast;
    }, function (module) {
      getUrlParam = module.getUrlParam;
    }, function (module) {
      sendWebNetWithToken = module.sendWebNetWithToken;
      WebNetName = module.WebNetName;
      getWebData = module.getWebData;
    }, function (module) {
      SHARE_TYPE = module.SHARE_TYPE;
    }],
    execute: function () {
      cclegacy._RF.push({}, "42c88odcaZA2qWLdVDdjN27", "ShareCenter", undefined);

      var ShareCenter = exports('default', /*#__PURE__*/function () {
        function ShareCenter() {
          this.shareUrl = "/projectx/" + getUrlParam("projectId") + "/share.html?appID=" + getUrlParam("appID");
          this.inviteCode = '';
        }

        var _proto = ShareCenter.prototype;

        _proto.getInviteCode = /*#__PURE__*/function () {
          var _getInviteCode = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
            var _yield$sendWebNetWith, success, data;

            return _regeneratorRuntime().wrap(function _callee$(_context) {
              while (1) switch (_context.prev = _context.next) {
                case 0:
                  if (!this.inviteCode) {
                    _context.next = 2;
                    break;
                  }

                  return _context.abrupt("return", this.inviteCode);

                case 2:
                  _context.next = 4;
                  return sendWebNetWithToken(WebNetName.getInviteCode, null, null, null, false);

                case 4:
                  _yield$sendWebNetWith = _context.sent;
                  success = _yield$sendWebNetWith.success;
                  data = _yield$sendWebNetWith.data;

                  if (success) {
                    this.inviteCode = (data == null ? void 0 : data.inviteCode) || '';
                  }

                  return _context.abrupt("return", '');

                case 9:
                case "end":
                  return _context.stop();
              }
            }, _callee, this);
          }));

          function getInviteCode() {
            return _getInviteCode.apply(this, arguments);
          }

          return getInviteCode;
        }()
        /**
         * 分享
         * @param type 分享类型
         */
        ;

        _proto.doShare = /*#__PURE__*/function () {
          var _doShare = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(type) {
            var _getWebData$data, shareInfo, appKey, shareOrigin, shareData, shareParams, url, title, content, thumbnail, ThirdApp;

            return _regeneratorRuntime().wrap(function _callee2$(_context2) {
              while (1) switch (_context2.prev = _context2.next) {
                case 0:
                  _context2.next = 2;
                  return this.getInviteCode();

                case 2:
                  if (this.inviteCode) {
                    _context2.next = 4;
                    break;
                  }

                  return _context2.abrupt("return", false);

                case 4:
                  _getWebData$data = getWebData(WebNetName.getFrontVariable).data, shareInfo = _getWebData$data.shareInfo, appKey = _getWebData$data.appKey, shareOrigin = _getWebData$data.shareOrigin;
                  shareData = shareInfo ? JSON.parse(shareInfo) : {};
                  shareParams = {
                    title: shareData.title,
                    content: shareData.content,
                    thumbnail: shareData.thumbnail,
                    url: "" + (shareOrigin || location.origin) + this.shareUrl + "&appKey=" + appKey + "&inviteCode=" + this.inviteCode + "&channel=" + getUrlParam("channel")
                  }; // 游戏去炫耀 不同的分享信息

                  if (type === SHARE_TYPE.FLAUNT) {
                    shareParams.title = shareData.game_title;
                    shareParams.content = shareData.game_content;
                    shareParams.thumbnail = shareData.game_thumbnail;
                  }

                  console.log('shareParams', shareParams); // app分享

                  url = shareParams.url, title = shareParams.title, content = shareParams.content, thumbnail = shareParams.thumbnail;
                  ThirdApp = window['ThirdApp'];
                  ThirdApp.wxShare(title, content, url, thumbnail, 'WX,PYQ', 'WebPage');

                case 12:
                case "end":
                  return _context2.stop();
              }
            }, _callee2, this);
          }));

          function doShare(_x) {
            return _doShare.apply(this, arguments);
          }

          return doShare;
        }() // 助力
        ;

        _proto.doAssist = /*#__PURE__*/function () {
          var _doAssist = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
            var inviteCode, _yield$sendWebNetWith2, success;

            return _regeneratorRuntime().wrap(function _callee3$(_context3) {
              while (1) switch (_context3.prev = _context3.next) {
                case 0:
                  inviteCode = getUrlParam("inviteCode");

                  if (inviteCode) {
                    _context3.next = 3;
                    break;
                  }

                  return _context3.abrupt("return", false);

                case 3:
                  _context3.next = 5;
                  return sendWebNetWithToken(WebNetName.doAssist, {
                    inviteCode: inviteCode
                  }, null, null, false);

                case 5:
                  _yield$sendWebNetWith2 = _context3.sent;
                  success = _yield$sendWebNetWith2.success;

                  if (success) {
                    showToast("\u5DF2\u6210\u529F\u4E3A\u60A8\u7684\u597D\u53CB\u52A9\u529B\n\u60A8\u4E5F\u5F97\u52301\u6B21\u6311\u6218\u6B21\u6570\u54E6\uFF5E");
                  }

                  history.replaceState({}, '', location.href.replace(new RegExp("[?&]inviteCode=[^&]*"), ''));

                case 9:
                case "end":
                  return _context3.stop();
              }
            }, _callee3);
          }));

          function doAssist() {
            return _doAssist.apply(this, arguments);
          }

          return doAssist;
        }();

        _createClass(ShareCenter, null, [{
          key: "ins",
          get: function get() {
            !ShareCenter._ins && (ShareCenter._ins = new ShareCenter());
            return ShareCenter._ins;
          }
        }]);

        return ShareCenter;
      }());
      ShareCenter._ins = null;

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/Start.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './UIMgr.ts', './UIFast.ts', './WebNet.ts', './HomeScene.ts'], function (exports) {
  var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, _asyncToGenerator, _regeneratorRuntime, cclegacy, _decorator, Prefab, ProgressBar, assetManager, resources, Component, UIMgr, changeScene, sendWebNet, WebNetName, HomeScene;

  return {
    setters: [function (module) {
      _applyDecoratedDescriptor = module.applyDecoratedDescriptor;
      _inheritsLoose = module.inheritsLoose;
      _initializerDefineProperty = module.initializerDefineProperty;
      _assertThisInitialized = module.assertThisInitialized;
      _asyncToGenerator = module.asyncToGenerator;
      _regeneratorRuntime = module.regeneratorRuntime;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      Prefab = module.Prefab;
      ProgressBar = module.ProgressBar;
      assetManager = module.assetManager;
      resources = module.resources;
      Component = module.Component;
    }, function (module) {
      UIMgr = module.UIMgr;
    }, function (module) {
      changeScene = module.changeScene;
    }, function (module) {
      sendWebNet = module.sendWebNet;
      WebNetName = module.WebNetName;
    }, function (module) {
      HomeScene = module.HomeScene;
    }],
    execute: function () {
      var _dec, _dec2, _dec3, _class, _class2, _descriptor, _descriptor2;

      cclegacy._RF.push({}, "66e163GxmdDp7kaguqDvTVl", "Start", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var Start = exports('Start', (_dec = ccclass('Start'), _dec2 = property(Prefab), _dec3 = property(ProgressBar), _dec(_class = (_class2 = /*#__PURE__*/function (_Component) {
        _inheritsLoose(Start, _Component);

        function Start() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _Component.call.apply(_Component, [this].concat(args)) || this;

          _initializerDefineProperty(_this, "uiPrefab", _descriptor, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "progressBar", _descriptor2, _assertThisInitialized(_this));

          _this.preload = function (pkg) {
            return new Promise(function (resolve, reject) {
              var pathArr = [];
              pkg.forEach(function (asset) {
                if (typeof asset == "string") {
                  return pathArr.push(asset);
                }

                switch (asset.type) {
                  case "dir":
                    resources.getDirWithPath(asset.path).forEach(function (v) {
                      return pathArr.push(v.path);
                    });
                    break;

                  case "bundle":
                    assetManager.loadBundle(asset.path, function (err, bundle) {
                      if (err) {
                        console.error(err);
                      }
                    });
                    break;

                  default:
                    pathArr.push(asset.path);
                }
              });
              resources.load(pathArr, function (finish, total, _) {
                var _this$progressBar;

                var pro = finish / total;

                if (pro < ((_this$progressBar = _this.progressBar) == null ? void 0 : _this$progressBar.progress)) {
                  return;
                }

                _this.progressBar && (_this.progressBar.progress = pro); // this.progressTxt.string = `正在加载中   ${(pro * 100).toFixed(0)}%`;
              }, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(error) {
                return _regeneratorRuntime().wrap(function _callee$(_context) {
                  while (1) switch (_context.prev = _context.next) {
                    case 0:
                      if (error) {
                        console.error(error);
                      } // onComplete();


                      resolve();

                    case 2:
                    case "end":
                      return _context.stop();
                  }
                }, _callee);
              })));
            });
          };

          return _this;
        }

        var _proto = Start.prototype;

        _proto.onLoad = function onLoad() {
          UIMgr.ins.setup(this.uiPrefab);
          sendWebNet(WebNetName.getFrontVariable);
        };

        _proto.start = /*#__PURE__*/function () {
          var _start = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
            return _regeneratorRuntime().wrap(function _callee2$(_context2) {
              while (1) switch (_context2.prev = _context2.next) {
                case 0:
                  _context2.next = 2;
                  return this.preload([{
                    path: "common",
                    type: "dir"
                  }, {
                    path: "HomeScene",
                    type: "dir"
                  }, {
                    path: "MainGame",
                    type: "bundle"
                  }]);

                case 2:
                  _context2.next = 4;
                  return changeScene(HomeScene);

                case 4:
                case "end":
                  return _context2.stop();
              }
            }, _callee2, this);
          }));

          function start() {
            return _start.apply(this, arguments);
          }

          return start;
        }();

        return Start;
      }(Component), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "uiPrefab", [_dec2], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: null
      }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "progressBar", [_dec3], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: null
      })), _class2)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/SVGA.Lite.v2.1.1.js", ['./cjs-loader.mjs'], function (exports, module) {
  var loader;
  return {
    setters: [function (module) {
      loader = module.default;
    }],
    execute: function () {
      exports('default', void 0);

      var _cjsExports;

      var __cjsMetaURL = exports('__cjsMetaURL', module.meta.url);

      loader.define(__cjsMetaURL, function (exports$1, require, module, __filename, __dirname) {
        // #region ORIGINAL CODE
        // SVGA.Lite v2.1.1
        function _typeof(e) {
          return (_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) {
            return typeof e;
          } : function (e) {
            return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
          })(e);
        }

        !function (e, t) {
          "object" === ("undefined" == typeof exports$1 ? "undefined" : _typeof(exports$1)) && "undefined" != typeof module ? t(exports$1) : "function" == typeof define && define.amd ? define(["exports"], t) : t((e = "undefined" != typeof globalThis ? globalThis : e || self).SVGA = {});
        }(this, function (exports) {
          function __awaiter(e, t, r, i) {
            return new (r || (r = Promise))(function (n, o) {
              function a(e) {
                try {
                  u(i.next(e));
                } catch (e) {
                  o(e);
                }
              }

              function s(e) {
                try {
                  u(i["throw"](e));
                } catch (e) {
                  o(e);
                }
              }

              function u(e) {
                var t;
                e.done ? n(e.value) : (t = e.value, t instanceof r ? t : new r(function (e) {
                  e(t);
                })).then(a, s);
              }

              u((i = i.apply(e, t || [])).next());
            });
          }

          function __generator(e, t) {
            var r,
                i,
                n,
                o,
                a = {
              label: 0,
              sent: function sent() {
                if (1 & n[0]) throw n[1];
                return n[1];
              },
              trys: [],
              ops: []
            };
            return o = {
              next: s(0),
              "throw": s(1),
              "return": s(2)
            }, "function" == typeof Symbol && (o[Symbol.iterator] = function () {
              return this;
            }), o;

            function s(s) {
              return function (u) {
                return function (s) {
                  if (r) throw new TypeError("Generator is already executing.");

                  for (; o && (o = 0, s[0] && (a = 0)), a;) try {
                    if (r = 1, i && (n = 2 & s[0] ? i["return"] : s[0] ? i["throw"] || ((n = i["return"]) && n.call(i), 0) : i.next) && !(n = n.call(i, s[1])).done) return n;

                    switch (i = 0, n && (s = [2 & s[0], n.value]), s[0]) {
                      case 0:
                      case 1:
                        n = s;
                        break;

                      case 4:
                        return a.label++, {
                          value: s[1],
                          done: !1
                        };

                      case 5:
                        a.label++, i = s[1], s = [0];
                        continue;

                      case 7:
                        s = a.ops.pop(), a.trys.pop();
                        continue;

                      default:
                        if (!(n = a.trys, (n = n.length > 0 && n[n.length - 1]) || 6 !== s[0] && 2 !== s[0])) {
                          a = 0;
                          continue;
                        }

                        if (3 === s[0] && (!n || s[1] > n[0] && s[1] < n[3])) {
                          a.label = s[1];
                          break;
                        }

                        if (6 === s[0] && a.label < n[1]) {
                          a.label = n[1], n = s;
                          break;
                        }

                        if (n && a.label < n[2]) {
                          a.label = n[2], a.ops.push(s);
                          break;
                        }

                        n[2] && a.ops.pop(), a.trys.pop();
                        continue;
                    }

                    s = t.call(e, a);
                  } catch (e) {
                    s = [6, e], i = 0;
                  } finally {
                    r = n = 0;
                  }

                  if (5 & s[0]) throw s[1];
                  return {
                    value: s[0] ? s[1] : void 0,
                    done: !0
                  };
                }([s, u]);
              };
            }
          }

          var INLINE_WORKER_FLAG = "function _typeof(t){return(_typeof=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t})(t)}!function(){\"use strict\";function t(t,e,r,i){return new(r||(r=Promise))((function(n,s){function o(t){try{l(i.next(t))}catch(t){s(t)}}function a(t){try{l(i.throw(t))}catch(t){s(t)}}function l(t){var e;t.done?n(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(o,a)}l((i=i.apply(t,e||[])).next())}))}function e(t,e){var r,i,n,s,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},\"function\"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(r)throw new TypeError(\"Generator is already executing.\");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(r=1,i&&(n=2&a[0]?i.return:a[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,a[1])).done)return n;switch(i=0,n&&(a=[2&a[0],n.value]),a[0]){case 0:case 1:n=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,i=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(n=o.trys,(n=n.length>0&&n[n.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]<n[3])){o.label=a[1];break}if(6===a[0]&&o.label<n[1]){o.label=n[1],n=a;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(a);break}n[2]&&o.ops.pop(),o.trys.pop();continue}a=e.call(t,o)}catch(t){a=[6,t],i=0}finally{r=n=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}var r={exports:{}},i={exports:{}},n={};n.build=\"minimal\";var s,o=a;function a(t,e){this.options=e,this.name=t,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}a.className=\"ReflectionObject\",a.prototype.onAdd=function(t){this.parent&&this.parent!==t&&this.parent.remove(this),this.parent=t,this.resolved=!1;var e=t.root;e instanceof s&&e._handleAdd(this)},a.prototype.resolve=function(){return this.resolved||this.root instanceof s&&(this.resolved=!0),this},a.prototype.getOption=function(t){if(this.options)return this.options[t]},a._configure=function(t){s=t};var l=h,f=o;function h(t,e,r,i,n){if(f.call(this,t,r),e&&\"object\"!==_typeof(e))throw TypeError(\"values must be an object\");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=i,this.comments=n||{},this.reserved=void 0,e)for(var s=Object.keys(e),o=0;o<s.length;++o)\"number\"==typeof e[s[o]]&&(this.valuesById[this.values[s[o]]=e[s[o]]]=s[o])}((h.prototype=Object.create(f.prototype)).constructor=h).className=\"Enum\",h.fromJSON=function(t,e){var r=new h(t,e.values,e.options,e.comment,e.comments);return r.reserved=e.reserved,r};var u={},p={exports:{}},d={},c=y(y);function y(t){return\"undefined\"!=typeof Float32Array?function(){var e=new Float32Array([-0]),r=new Uint8Array(e.buffer),i=128===r[3];function n(t,i,n){e[0]=t,i[n]=r[0],i[n+1]=r[1],i[n+2]=r[2],i[n+3]=r[3]}function s(t,i,n){e[0]=t,i[n]=r[3],i[n+1]=r[2],i[n+2]=r[1],i[n+3]=r[0]}function o(t,i){return r[0]=t[i],r[1]=t[i+1],r[2]=t[i+2],r[3]=t[i+3],e[0]}function a(t,i){return r[3]=t[i],r[2]=t[i+1],r[1]=t[i+2],r[0]=t[i+3],e[0]}t.writeFloatLE=i?n:s,t.writeFloatBE=i?s:n,t.readFloatLE=i?o:a,t.readFloatBE=i?a:o}():function(){function e(t,e,r,i){var n=e<0?1:0;if(n&&(e=-e),0===e)t(1/e>0?0:2147483648,r,i);else if(isNaN(e))t(2143289344,r,i);else if(e>34028234663852886e22)t((n<<31|2139095040)>>>0,r,i);else if(e<11754943508222875e-54)t((n<<31|Math.round(e/1401298464324817e-60))>>>0,r,i);else{var s=Math.floor(Math.log(e)/Math.LN2);t((n<<31|s+127<<23|8388607&Math.round(e*Math.pow(2,-s)*8388608))>>>0,r,i)}}function r(t,e,r){var i=t(e,r),n=2*(i>>31)+1,s=i>>>23&255,o=8388607&i;return 255===s?o?NaN:n*(1/0):0===s?1401298464324817e-60*n*o:n*Math.pow(2,s-150)*(o+8388608)}t.writeFloatLE=e.bind(null,v),t.writeFloatBE=e.bind(null,m),t.readFloatLE=r.bind(null,g),t.readFloatBE=r.bind(null,b)}(),\"undefined\"!=typeof Float64Array?function(){var e=new Float64Array([-0]),r=new Uint8Array(e.buffer),i=128===r[7];function n(t,i,n){e[0]=t,i[n]=r[0],i[n+1]=r[1],i[n+2]=r[2],i[n+3]=r[3],i[n+4]=r[4],i[n+5]=r[5],i[n+6]=r[6],i[n+7]=r[7]}function s(t,i,n){e[0]=t,i[n]=r[7],i[n+1]=r[6],i[n+2]=r[5],i[n+3]=r[4],i[n+4]=r[3],i[n+5]=r[2],i[n+6]=r[1],i[n+7]=r[0]}function o(t,i){return r[0]=t[i],r[1]=t[i+1],r[2]=t[i+2],r[3]=t[i+3],r[4]=t[i+4],r[5]=t[i+5],r[6]=t[i+6],r[7]=t[i+7],e[0]}function a(t,i){return r[7]=t[i],r[6]=t[i+1],r[5]=t[i+2],r[4]=t[i+3],r[3]=t[i+4],r[2]=t[i+5],r[1]=t[i+6],r[0]=t[i+7],e[0]}t.writeDoubleLE=i?n:s,t.writeDoubleBE=i?s:n,t.readDoubleLE=i?o:a,t.readDoubleBE=i?a:o}():function(){function e(t,e,r,i,n,s){var o=i<0?1:0;if(o&&(i=-i),0===i)t(0,n,s+e),t(1/i>0?0:2147483648,n,s+r);else if(isNaN(i))t(0,n,s+e),t(2146959360,n,s+r);else if(i>17976931348623157e292)t(0,n,s+e),t((o<<31|2146435072)>>>0,n,s+r);else{var a;if(i<22250738585072014e-324)t((a=i/5e-324)>>>0,n,s+e),t((o<<31|a/4294967296)>>>0,n,s+r);else{var l=Math.floor(Math.log(i)/Math.LN2);1024===l&&(l=1023),t(4503599627370496*(a=i*Math.pow(2,-l))>>>0,n,s+e),t((o<<31|l+1023<<20|1048576*a&1048575)>>>0,n,s+r)}}}function r(t,e,r,i,n){var s=t(i,n+e),o=t(i,n+r),a=2*(o>>31)+1,l=o>>>20&2047,f=4294967296*(1048575&o)+s;return 2047===l?f?NaN:a*(1/0):0===l?5e-324*a*f:a*Math.pow(2,l-1075)*(f+4503599627370496)}t.writeDoubleLE=e.bind(null,v,0,4),t.writeDoubleBE=e.bind(null,m,4,0),t.readDoubleLE=r.bind(null,g,0,4),t.readDoubleBE=r.bind(null,b,4,0)}(),t}function v(t,e,r){e[r]=255&t,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24}function m(t,e,r){e[r]=t>>>24,e[r+1]=t>>>16&255,e[r+2]=t>>>8&255,e[r+3]=255&t}function g(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}function b(t,e){return(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}var w={};!function(t){var e=t;e.length=function(t){for(var e=0,r=0,i=0;i<t.length;++i)(r=t.charCodeAt(i))<128?e+=1:r<2048?e+=2:55296==(64512&r)&&56320==(64512&t.charCodeAt(i+1))?(++i,e+=4):e+=3;return e},e.read=function(t,e,r){if(r-e<1)return\"\";for(var i,n=null,s=[],o=0;e<r;)(i=t[e++])<128?s[o++]=i:i>191&&i<224?s[o++]=(31&i)<<6|63&t[e++]:i>239&&i<365?(i=((7&i)<<18|(63&t[e++])<<12|(63&t[e++])<<6|63&t[e++])-65536,s[o++]=55296+(i>>10),s[o++]=56320+(1023&i)):s[o++]=(15&i)<<12|(63&t[e++])<<6|63&t[e++],o>8191&&((n||(n=[])).push(String.fromCharCode.apply(String,s)),o=0);return n?(o&&n.push(String.fromCharCode.apply(String,s.slice(0,o))),n.join(\"\")):String.fromCharCode.apply(String,s.slice(0,o))},e.write=function(t,e,r){for(var i,n,s=r,o=0;o<t.length;++o)(i=t.charCodeAt(o))<128?e[r++]=i:i<2048?(e[r++]=i>>6|192,e[r++]=63&i|128):55296==(64512&i)&&56320==(64512&(n=t.charCodeAt(o+1)))?(i=65536+((1023&i)<<10)+(1023&n),++o,e[r++]=i>>18|240,e[r++]=i>>12&63|128,e[r++]=i>>6&63|128,e[r++]=63&i|128):(e[r++]=i>>12|224,e[r++]=i>>6&63|128,e[r++]=63&i|128);return r-s}}(w),function(t){var e=t;e.float=c,e.utf8=w,e.emptyArray=Object.freeze?Object.freeze([]):[],e.emptyObject=Object.freeze?Object.freeze({}):{},e.isInteger=Number.isInteger||function(t){return\"number\"==typeof t&&isFinite(t)&&Math.floor(t)===t},e.isString=function(t){return\"string\"==typeof t||t instanceof String},e.isObject=function(t){return t&&\"object\"===_typeof(t)},e.Array=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,e._configure=function(){var t=e.Buffer;t?(e._Buffer_from=t.from!==Uint8Array.from&&t.from||function(e,r){return new t(e,r)},e._Buffer_allocUnsafe=t.allocUnsafe||function(e){return new t(e)}):e._Buffer_from=e._Buffer_allocUnsafe=null}}(d);var A=k;function k(t,e){\"string\"==typeof t&&(e=t,t=void 0);var r=[];function i(t){if(\"string\"!=typeof t){var e=n();if(k.verbose&&console.log(\"codegen: \"+e),e=\"return \"+e,t){for(var s=Object.keys(t),o=new Array(s.length+1),a=new Array(s.length),l=0;l<s.length;)o[l]=s[l],a[l]=t[s[l++]];return o[l]=e,Function.apply(null,o).apply(null,a)}return Function(e)()}for(var f=new Array(arguments.length-1),h=0;h<f.length;)f[h]=arguments[++h];if(h=0,t=t.replace(/%([%dfijs])/g,(function(t,e){var r=f[h++];switch(e){case\"d\":case\"f\":return String(Number(r));case\"i\":return String(Math.floor(r));case\"j\":return JSON.stringify(r);case\"s\":return String(r)}return\"%\"})),h!==f.length)throw Error(\"parameter count mismatch\");return r.push(t),i}function n(i){return\"function \"+(i||e||\"\")+\"(\"+(t&&t.join(\",\")||\"\")+\"){\\n  \"+r.join(\"\\n  \")+\"\\n}\"}return i.toString=n,i}k.verbose=!1;var E=p.exports=d;E.codegen=A,E.toArray=function(t){if(t){for(var e=Object.keys(t),r=new Array(e.length),i=0;i<e.length;)r[i]=t[e[i++]];return r}return[]};var O=/\\\\/g,S=/\"/g;E.isReserved=function(t){return/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/.test(t)},E.safeProp=function(t){return!/^[$\\w_]+$/.test(t)||E.isReserved(t)?'[\"'+t.replace(O,\"\\\\\\\\\").replace(S,'\\\\\"')+'\"]':\".\"+t},function(t){var e=t,r=p.exports,i=[\"double\",\"float\",\"int32\",\"uint32\",\"sint32\",\"fixed32\",\"sfixed32\",\"int64\",\"uint64\",\"sint64\",\"fixed64\",\"sfixed64\",\"bool\",\"string\",\"bytes\"];function n(t,e){var r=0,n={};for(e|=0;r<t.length;)n[i[r+e]]=t[r++];return n}e.basic=n([1,5,0,0,0,5,5,0,0,0,1,1,0,2,2]),e.defaults=n([0,0,0,0,0,0,0,0,0,0,0,0,!1,\"\",r.emptyArray,null]),e.long=n([0,0,0,1,1],7),e.mapKey=n([0,0,0,5,5,0,0,0,1,1,0,2],2),e.packed=n([1,5,0,0,0,5,5,0,0,0,1,1,0])}(u);var x=D,_=o;((D.prototype=Object.create(_.prototype)).constructor=D).className=\"Field\";var I,T=l,N=u,j=p.exports,B=/^required|optional|repeated$/;function D(t,e,r,i,n,s,o){if(j.isObject(i)?(o=n,s=i,i=n=void 0):j.isObject(n)&&(o=s,s=n,n=void 0),_.call(this,t,s),!j.isInteger(e)||e<0)throw TypeError(\"id must be a non-negative integer\");if(!j.isString(r))throw TypeError(\"type must be a string\");if(void 0!==i&&!B.test(i=i.toString().toLowerCase()))throw TypeError(\"rule must be a string rule\");if(void 0!==n&&!j.isString(n))throw TypeError(\"extend must be a string\");this.rule=i&&\"optional\"!==i?i:void 0,this.type=r,this.id=e,this.extend=n||void 0,this.required=\"required\"===i,this.optional=!this.required,this.repeated=\"repeated\"===i,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!j.Long&&void 0!==N.long[r],this.bytes=\"bytes\"===r,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this._packed=null,this.comment=o}D.fromJSON=function(t,e){return new D(t,e.id,e.type,e.rule,e.extend,e.options,e.comment)},D.prototype.setOption=function(t,e,r){return\"packed\"===t&&(this._packed=null),_.prototype.setOption.call(this,t,e,r)},D.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=N.defaults[this.type])&&(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof I?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof T&&\"string\"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(!0!==this.options.packed&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof T)||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=j.Long.fromNumber(this.typeDefault,\"u\"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&\"string\"==typeof this.typeDefault){var t;j.base64.test(this.typeDefault)?j.base64.decode(this.typeDefault,t=j.newBuffer(j.base64.length(this.typeDefault)),0):j.utf8.write(this.typeDefault,t=j.newBuffer(j.utf8.length(this.typeDefault)),0),this.typeDefault=t}return this.map?this.defaultValue=j.emptyObject:this.repeated?this.defaultValue=j.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof I&&(this.parent.ctor.prototype[this.name]=this.defaultValue),_.prototype.resolve.call(this)},D._configure=function(t){I=t};var L=P,R=o;((P.prototype=Object.create(R.prototype)).constructor=P).className=\"Namespace\";var U,J,C,F=x,M=p.exports;function P(t,e){R.call(this,t,e),this.nested=void 0,this._nestedArray=null}P.fromJSON=function(t,e){return new P(t,e.options).addJSON(e.nested)},P.isReservedId=function(t,e){if(t)for(var r=0;r<t.length;++r)if(\"string\"!=typeof t[r]&&t[r][0]<=e&&t[r][1]>=e)return!0;return!1},P.isReservedName=function(t,e){if(t)for(var r=0;r<t.length;++r)if(t[r]===e)return!0;return!1},Object.defineProperty(P.prototype,\"nestedArray\",{get:function(){return this._nestedArray||(this._nestedArray=M.toArray(this.nested))}}),P.prototype.addJSON=function(t){if(t)for(var e,r=Object.keys(t),i=0;i<r.length;++i)e=t[r[i]],this.add((void 0!==e.fields?U.fromJSON:void 0!==e.values?C.fromJSON:void 0!==e.methods?J.fromJSON:void 0!==e.id?F.fromJSON:P.fromJSON)(r[i],e));return this},P.prototype.get=function(t){return this.nested&&this.nested[t]||null},P.prototype.add=function(t){if(!(t instanceof F&&void 0!==t.extend||t instanceof U||t instanceof C||t instanceof J||t instanceof P))throw TypeError(\"object must be a valid nested object\");if(this.nested){var e=this.get(t.name);if(e){if(!(e instanceof P&&t instanceof P)||e instanceof U||e instanceof J)throw Error(\"duplicate name '\"+t.name+\"' in \"+this);for(var r=e.nestedArray,i=0;i<r.length;++i)t.add(r[i]);this.remove(e),this.nested||(this.nested={}),t.setOptions(e.options,!0)}}else this.nested={};return this.nested[t.name]=t,t.onAdd(this),function(t){return t._nestedArray=null,t}(this)},P.prototype.lookup=function(t,e,r){if(\"boolean\"==typeof e?(r=e,e=void 0):e&&!Array.isArray(e)&&(e=[e]),M.isString(t)&&t.length){if(\".\"===t)return this.root;t=t.split(\".\")}else if(!t.length)return this;if(\"\"===t[0])return this.root.lookup(t.slice(1),e);var i=this.get(t[0]);if(i){if(1===t.length){if(!e||e.indexOf(i.constructor)>-1)return i}else if(i instanceof P&&(i=i.lookup(t.slice(1),e,!0)))return i}else for(var n=0;n<this.nestedArray.length;++n)if(this._nestedArray[n]instanceof P&&(i=this._nestedArray[n].lookup(t,e,!0)))return i;return null===this.parent||r?null:this.parent.lookup(t,e)},P.prototype.lookupType=function(t){var e=this.lookup(t,[U]);if(!e)throw Error(\"no such type: \"+t);return e},P.prototype.lookupTypeOrEnum=function(t){var e=this.lookup(t,[U,C]);if(!e)throw Error(\"no such Type or Enum '\"+t+\"' in \"+this);return e},P._configure=function(t,e,r){U=t,J=e,C=r};var z=H,V=o;((H.prototype=Object.create(V.prototype)).constructor=H).className=\"OneOf\";var q=x,G=p.exports;function H(t,e,r,i){if(Array.isArray(e)||(r=e,e=void 0),V.call(this,t,r),void 0!==e&&!Array.isArray(e))throw TypeError(\"fieldNames must be an Array\");this.oneof=e||[],this.fieldsArray=[],this.comment=i}function K(t){if(t.parent)for(var e=0;e<t.fieldsArray.length;++e)t.fieldsArray[e].parent||t.parent.add(t.fieldsArray[e])}H.fromJSON=function(t,e){return new H(t,e.oneof,e.options,e.comment)},H.prototype.toJSON=function(t){var e=!!t&&Boolean(t.keepComments);return G.toObject([\"options\",this.options,\"oneof\",this.oneof,\"comment\",e?this.comment:void 0])},H.prototype.add=function(t){if(!(t instanceof q))throw TypeError(\"field must be a Field\");return t.parent&&t.parent!==this.parent&&t.parent.remove(t),this.oneof.push(t.name),this.fieldsArray.push(t),t.partOf=this,K(this),this},H.prototype.remove=function(t){if(!(t instanceof q))throw TypeError(\"field must be a Field\");var e=this.fieldsArray.indexOf(t);if(e<0)throw Error(t+\" is not a member of \"+this);return this.fieldsArray.splice(e,1),(e=this.oneof.indexOf(t.name))>-1&&this.oneof.splice(e,1),t.partOf=null,this},H.prototype.onAdd=function(t){V.prototype.onAdd.call(this,t);for(var e=0;e<this.oneof.length;++e){var r=t.get(this.oneof[e]);r&&!r.partOf&&(r.partOf=this,this.fieldsArray.push(r))}K(this)},H.prototype.onRemove=function(t){for(var e,r=0;r<this.fieldsArray.length;++r)(e=this.fieldsArray[r]).parent&&e.parent.remove(e);V.prototype.onRemove.call(this,t)},H.d=function(){for(var t=new Array(arguments.length),e=0;e<arguments.length;)t[e]=arguments[e++];return function(e,r){G.decorateType(e.constructor).add(new H(r,t)),Object.defineProperty(e,r,{get:G.oneOfGetter(t),set:G.oneOfSetter(t)})}};var W=tt,$=L;((tt.prototype=Object.create($.prototype)).constructor=tt).className=\"Root\";var Z,X=x,Y=l,Q=z;function tt(t){$.call(this,\"\",t),this.deferred=[],this.files=[]}tt.fromJSON=function(t,e){return e||(e=new tt),t.options&&e.setOptions(t.options),e.addJSON(t.nested)};var et=/^[A-Z]/;function rt(t,e){var r=e.parent.lookup(e.extend);if(r){var i=new X(e.fullName,e.id,e.type,e.rule,void 0,e.options);return i.declaringField=e,e.extensionField=i,r.add(i),!0}return!1}tt.prototype._handleAdd=function(t){if(t instanceof X)void 0===t.extend||t.extensionField||rt(0,t)||this.deferred.push(t);else if(t instanceof Y)et.test(t.name)&&(t.parent[t.name]=t.values);else if(!(t instanceof Q)){if(t instanceof Z)for(var e=0;e<this.deferred.length;)rt(0,this.deferred[e])?this.deferred.splice(e,1):++e;for(var r=0;r<t.nestedArray.length;++r)this._handleAdd(t._nestedArray[r]);et.test(t.name)&&(t.parent[t.name]=t)}},tt._configure=function(t,e,r){Z=t};var it=ot,nt=x;((ot.prototype=Object.create(nt.prototype)).constructor=ot).className=\"MapField\";var st=p.exports;function ot(t,e,r,i,n,s){if(nt.call(this,t,e,i,void 0,void 0,n,s),!st.isString(r))throw TypeError(\"keyType must be a string\");this.keyType=r,this.resolvedKeyType=null,this.map=!0}ot.fromJSON=function(t,e){return new ot(t,e.id,e.keyType,e.type,e.options,e.comment)};var at=ft,lt=L;function ft(t,e){lt.call(this,t,e),this.methods={},this._methodsArray=null}((ft.prototype=Object.create(lt.prototype)).constructor=ft).className=\"Service\";var ht=ct,ut=d;ut.LongBits;var pt=ut.utf8;function dt(t,e){return RangeError(\"index out of range: \"+t.pos+\" + \"+(e||1)+\" > \"+t.len)}function ct(t){this.buf=t,this.pos=0,this.len=t.length}var yt,vt=\"undefined\"!=typeof Uint8Array?function(t){if(t instanceof Uint8Array||Array.isArray(t))return new ct(t);throw Error(\"illegal buffer\")}:function(t){if(Array.isArray(t))return new ct(t);throw Error(\"illegal buffer\")};function mt(t,e){return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0}ct.create=ut.Buffer?function(t){return(ct.create=function(t){return ut.Buffer.isBuffer(t)?new(void 0)(t):vt(t)})(t)}:vt,ct.prototype._slice=ut.Array.prototype.subarray||ut.Array.prototype.slice,ct.prototype.uint32=(yt=4294967295,function(){if(yt=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return yt;if(yt=(yt|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return yt;if(yt=(yt|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return yt;if(yt=(yt|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return yt;if(yt=(yt|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return yt;if((this.pos+=5)>this.len)throw this.pos=this.len,dt(this,10);return yt}),ct.prototype.int32=function(){return 0|this.uint32()},ct.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(1&t)|0},ct.prototype.bool=function(){return 0!==this.uint32()},ct.prototype.fixed32=function(){if(this.pos+4>this.len)throw dt(this,4);return mt(this.buf,this.pos+=4)},ct.prototype.sfixed32=function(){if(this.pos+4>this.len)throw dt(this,4);return 0|mt(this.buf,this.pos+=4)},ct.prototype.float=function(){if(this.pos+4>this.len)throw dt(this,4);var t=ut.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t},ct.prototype.double=function(){if(this.pos+8>this.len)throw dt(this,4);var t=ut.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t},ct.prototype.bytes=function(){var t=this.uint32(),e=this.pos,r=this.pos+t;if(r>this.len)throw dt(this,t);return this.pos+=t,Array.isArray(this.buf)?this.buf.slice(e,r):e===r?new this.buf.constructor(0):this._slice.call(this.buf,e,r)},ct.prototype.string=function(){var t=this.bytes();return pt.read(t,0,t.length)},ct.prototype.skip=function(t){if(\"number\"==typeof t){if(this.pos+t>this.len)throw dt(this,t);this.pos+=t}else do{if(this.pos>=this.len)throw dt(this)}while(128&this.buf[this.pos++]);return this},ct.prototype.skipType=function(t){switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(t=7&this.uint32());)this.skipType(t);break;case 5:this.skip(4);break;default:throw Error(\"invalid wire type \"+t+\" at offset \"+this.pos)}return this};var gt=function(t){var e=At.codegen([\"r\",\"l\"],t.name+\"$decode\")(\"if(!(r instanceof Reader))\")(\"r=Reader.create(r)\")(\"var c=l===undefined?r.len:r.pos+l,m=new this.ctor\"+(t.fieldsArray.filter((function(t){return t.map})).length?\",k\":\"\"))(\"while(r.pos<c){\")(\"var t=r.uint32()\");t.group&&e(\"if((t&7)===4)\")(\"break\");e(\"switch(t>>>3){\");for(var r=0;r<t.fieldsArray.length;++r){var i=t._fieldsArray[r].resolve(),n=i.resolvedType instanceof bt?\"int32\":i.type,s=\"m\"+At.safeProp(i.name);e(\"case %i:\",i.id),i.map?(e(\"r.skip().pos++\")(\"if(%s===util.emptyObject)\",s)(\"%s={}\",s)(\"k=r.%s()\",i.keyType)(\"r.pos++\"),void 0!==wt.long[i.keyType]?void 0===wt.basic[n]?e('%s[typeof k===\"object\"?util.longToHash(k):k]=types[%i].decode(r,r.uint32())',s,r):e('%s[typeof k===\"object\"?util.longToHash(k):k]=r.%s()',s,n):void 0===wt.basic[n]?e(\"%s[k]=types[%i].decode(r,r.uint32())\",s,r):e(\"%s[k]=r.%s()\",s,n)):i.repeated?(e(\"if(!(%s&&%s.length))\",s,s)(\"%s=[]\",s),void 0!==wt.packed[n]&&e(\"if((t&7)===2){\")(\"var c2=r.uint32()+r.pos\")(\"while(r.pos<c2)\")(\"%s.push(r.%s())\",s,n)(\"}else\"),void 0===wt.basic[n]?e(i.resolvedType.group?\"%s.push(types[%i].decode(r))\":\"%s.push(types[%i].decode(r,r.uint32()))\",s,r):e(\"%s.push(r.%s())\",s,n)):void 0===wt.basic[n]?e(i.resolvedType.group?\"%s=types[%i].decode(r)\":\"%s=types[%i].decode(r,r.uint32())\",s,r):e(\"%s=r.%s()\",s,n),e(\"break\")}for(e(\"default:\")(\"r.skipType(t&7)\")(\"break\")(\"}\")(\"}\"),r=0;r<t._fieldsArray.length;++r){var o=t._fieldsArray[r];o.required&&e(\"if(!m.hasOwnProperty(%j))\",o.name)(\"throw util.ProtocolError(%j,{instance:m})\",kt(o))}return e(\"return m\")},bt=l,wt=u,At=p.exports;function kt(t){return\"missing required '\"+t.name+\"'\"}var Et=Bt,Ot=L;((Bt.prototype=Object.create(Ot.prototype)).constructor=Bt).className=\"Type\";var St=l,xt=x,_t=it,It=at,Tt=ht,Nt=p.exports,jt=gt;function Bt(t,e){Ot.call(this,t,e),this.fields={},this.oneofs=void 0,this.extensions=void 0,this.reserved=void 0,this.group=void 0,this._fieldsById=null,this._fieldsArray=null,this._oneofsArray=null,this._ctor=null}Object.defineProperties(Bt.prototype,{fieldsById:{get:function(){if(this._fieldsById)return this._fieldsById;this._fieldsById={};for(var t=Object.keys(this.fields),e=0;e<t.length;++e){var r=this.fields[t[e]],i=r.id;if(this._fieldsById[i])throw Error(\"duplicate id \"+i+\" in \"+this);this._fieldsById[i]=r}return this._fieldsById}},fieldsArray:{get:function(){return this._fieldsArray||(this._fieldsArray=Nt.toArray(this.fields))}},oneofsArray:{get:function(){return this._oneofsArray||(this._oneofsArray=Nt.toArray(this.oneofs))}},ctor:{get:function(){return this._ctor||(this.ctor=Bt.generateConstructor(this)())},set:function(t){t.prototype,t.$type=t.prototype.$type=this,this._ctor=t;for(var e=0;e<this.fieldsArray.length;++e)this._fieldsArray[e].resolve();var r={};for(e=0;e<this.oneofsArray.length;++e)r[this._oneofsArray[e].resolve().name]={get:Nt.oneOfGetter(this._oneofsArray[e].oneof),set:Nt.oneOfSetter(this._oneofsArray[e].oneof)};e&&Object.defineProperties(t.prototype,r)}}}),Bt.generateConstructor=function(t){for(var e,r=Nt.codegen([\"p\"],t.name),i=0;i<t.fieldsArray.length;++i)(e=t._fieldsArray[i]).map?r(\"this%s={}\",Nt.safeProp(e.name)):e.repeated&&r(\"this%s=[]\",Nt.safeProp(e.name));return r(\"if(p)for(var ks=Object.keys(p),i=0;i<ks.length;++i)if(p[ks[i]]!=null)\")(\"this[ks[i]]=p[ks[i]]\")},Bt.fromJSON=function(t,e){var r=new Bt(t,e.options);r.extensions=e.extensions,r.reserved=e.reserved;for(var i=Object.keys(e.fields),n=0;n<i.length;++n)r.add((void 0!==e.fields[i[n]].keyType?_t.fromJSON:xt.fromJSON)(i[n],e.fields[i[n]]));if(e.nested)for(i=Object.keys(e.nested),n=0;n<i.length;++n){var s=e.nested[i[n]];r.add((void 0!==s.id?xt.fromJSON:void 0!==s.fields?Bt.fromJSON:void 0!==s.values?St.fromJSON:void 0!==s.methods?It.fromJSON:Ot.fromJSON)(i[n],s))}return e.extensions&&e.extensions.length&&(r.extensions=e.extensions),e.reserved&&e.reserved.length&&(r.reserved=e.reserved),e.group&&(r.group=!0),e.comment&&(r.comment=e.comment),r},Bt.prototype.add=function(t){if(this.get(t.name))throw Error(\"duplicate name '\"+t.name+\"' in \"+this);if(t instanceof xt&&void 0===t.extend){if(this._fieldsById?this._fieldsById[t.id]:this.fieldsById[t.id])throw Error(\"duplicate id \"+t.id+\" in \"+this);if(this.isReservedId(t.id))throw Error(\"id \"+t.id+\" is reserved in \"+this);if(this.isReservedName(t.name))throw Error(\"name '\"+t.name+\"' is reserved in \"+this);return t.parent&&t.parent.remove(t),this.fields[t.name]=t,t.message=this,t.onAdd(this),function(t){return t._fieldsById=t._fieldsArray=t._oneofsArray=null,delete t.encode,delete t.decode,delete t.verify,t}(this)}return Ot.prototype.add.call(this,t)},Bt.prototype.isReservedId=function(t){return Ot.isReservedId(this.reserved,t)},Bt.prototype.isReservedName=function(t){return Ot.isReservedName(this.reserved,t)},Bt.prototype.setup=function(){this.fullName;for(var t=[],e=0;e<this.fieldsArray.length;++e)t.push(this._fieldsArray[e].resolve().resolvedType);return this.decode=jt(this)({Reader:Tt,types:t,util:Nt}),this},Bt.prototype.decode=function(t,e){return this.setup().decode(t,e)};var Dt=i.exports=n;Dt.build=\"light\",Dt.ReflectionObject=o,Dt.Namespace=L,Dt.Root=W,Dt.Enum=l,Dt.Type=Et,Dt.Field=x,Dt.Service=at,Dt.ReflectionObject._configure(Dt.Root),Dt.Namespace._configure(Dt.Type,Dt.Service,Dt.Enum),Dt.Root._configure(Dt.Type),Dt.Field._configure(Dt.Type),(r.exports=i.exports).build=\"full\";var Lt=r.exports,Rt=(new function(){var t=void 0,e=this;function r(r,i){var n,s=r.split(\".\"),o=e;!(s[0]in o)&&o.execScript&&o.execScript(\"var \"+s[0]);for(;s.length&&(n=s.shift());)s.length||i===t?o=o[n]?o[n]:o[n]={}:o[n]=i}var i=\"undefined\"!=typeof Uint8Array&&\"undefined\"!=typeof Uint16Array&&\"undefined\"!=typeof Uint32Array&&\"undefined\"!=typeof DataView;function n(t){var e,r,n,s,o,a,l,f,h,u,p=t.length,d=0,c=Number.POSITIVE_INFINITY;for(f=0;f<p;++f)t[f]>d&&(d=t[f]),t[f]<c&&(c=t[f]);for(e=1<<d,r=new(i?Uint32Array:Array)(e),n=1,s=0,o=2;n<=d;){for(f=0;f<p;++f)if(t[f]===n){for(a=0,l=s,h=0;h<n;++h)a=a<<1|1&l,l>>=1;for(u=n<<16|f,h=a;h<e;h+=o)r[h]=u;++s}++n,s<<=1,o<<=1}return[r,d,c]}function s(t,e){switch(this.g=[],this.h=32768,this.d=this.f=this.a=this.l=0,this.input=i?new Uint8Array(t):t,this.m=!1,this.i=a,this.r=!1,!e&&(e={})||(e.index&&(this.a=e.index),e.bufferSize&&(this.h=e.bufferSize),e.bufferType&&(this.i=e.bufferType),e.resize&&(this.r=e.resize)),this.i){case o:this.b=32768,this.c=new(i?Uint8Array:Array)(32768+this.h+258);break;case a:this.b=0,this.c=new(i?Uint8Array:Array)(this.h),this.e=this.z,this.n=this.v,this.j=this.w;break;default:throw Error(\"invalid inflate mode\")}}var o=0,a=1,l={t:o,s:a};s.prototype.k=function(){for(;!this.m;){var e=_(this,3);switch(1&e&&(this.m=!0),e>>>=1){case 0:var r=this.input,s=this.a,l=this.c,f=this.b,h=r.length,u=t,d=l.length,c=t;if(this.d=this.f=0,s+1>=h)throw Error(\"invalid uncompressed block header: LEN\");if(u=r[s++]|r[s++]<<8,s+1>=h)throw Error(\"invalid uncompressed block header: NLEN\");if(u===~(r[s++]|r[s++]<<8))throw Error(\"invalid uncompressed block header: length verify\");if(s+u>r.length)throw Error(\"input buffer is broken\");switch(this.i){case o:for(;f+u>l.length;){if(u-=c=d-f,i)l.set(r.subarray(s,s+c),f),f+=c,s+=c;else for(;c--;)l[f++]=r[s++];this.b=f,l=this.e(),f=this.b}break;case a:for(;f+u>l.length;)l=this.e({p:2});break;default:throw Error(\"invalid inflate mode\")}if(i)l.set(r.subarray(s,s+u),f),f+=u,s+=u;else for(;u--;)l[f++]=r[s++];this.a=s,this.b=f,this.c=l;break;case 1:this.j(O,x);break;case 2:var y,v,m,g,b=_(this,5)+257,w=_(this,5)+1,A=_(this,4)+4,k=new(i?Uint8Array:Array)(p.length),E=t,S=t,T=t,N=t,j=t;for(j=0;j<A;++j)k[p[j]]=_(this,3);if(!i)for(j=A,A=k.length;j<A;++j)k[p[j]]=0;for(y=n(k),E=new(i?Uint8Array:Array)(b+w),j=0,g=b+w;j<g;)switch(S=I(this,y)){case 16:for(N=3+_(this,2);N--;)E[j++]=T;break;case 17:for(N=3+_(this,3);N--;)E[j++]=0;T=0;break;case 18:for(N=11+_(this,7);N--;)E[j++]=0;T=0;break;default:T=E[j++]=S}v=n(i?E.subarray(0,b):E.slice(0,b)),m=n(i?E.subarray(b):E.slice(b)),this.j(v,m);break;default:throw Error(\"unknown BTYPE: \"+e)}}return this.n()};var f,h,u=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],p=i?new Uint16Array(u):u,d=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,258,258],c=i?new Uint16Array(d):d,y=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0],v=i?new Uint8Array(y):y,m=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],g=i?new Uint16Array(m):m,b=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],w=i?new Uint8Array(b):b,A=new(i?Uint8Array:Array)(288);for(f=0,h=A.length;f<h;++f)A[f]=143>=f?8:255>=f?9:279>=f?7:8;var k,E,O=n(A),S=new(i?Uint8Array:Array)(30);for(k=0,E=S.length;k<E;++k)S[k]=5;var x=n(S);function _(t,e){for(var r,i=t.f,n=t.d,s=t.input,o=t.a,a=s.length;n<e;){if(o>=a)throw Error(\"input buffer is broken\");i|=s[o++]<<n,n+=8}return r=i&(1<<e)-1,t.f=i>>>e,t.d=n-e,t.a=o,r}function I(t,e){for(var r,i,n=t.f,s=t.d,o=t.input,a=t.a,l=o.length,f=e[0],h=e[1];s<h&&!(a>=l);)n|=o[a++]<<s,s+=8;if((i=(r=f[n&(1<<h)-1])>>>16)>s)throw Error(\"invalid code length: \"+i);return t.f=n>>i,t.d=s-i,t.a=a,65535&r}function T(t,e){var r,i;switch(this.input=t,this.a=0,!e&&(e={})||(e.index&&(this.a=e.index),e.verify&&(this.A=e.verify)),r=t[this.a++],i=t[this.a++],15&r){case N:this.method=N;break;default:throw Error(\"unsupported compression method\")}if(0!=((r<<8)+i)%31)throw Error(\"invalid fcheck flag:\"+((r<<8)+i)%31);if(32&i)throw Error(\"fdict flag is not supported\");this.q=new s(t,{index:this.a,bufferSize:e.bufferSize,bufferType:e.bufferType,resize:e.resize})}s.prototype.j=function(t,e){var r=this.c,i=this.b;this.o=t;for(var n,s,o,a,l=r.length-258;256!==(n=I(this,t));)if(256>n)i>=l&&(this.b=i,r=this.e(),i=this.b),r[i++]=n;else for(a=c[s=n-257],0<v[s]&&(a+=_(this,v[s])),n=I(this,e),o=g[n],0<w[n]&&(o+=_(this,w[n])),i>=l&&(this.b=i,r=this.e(),i=this.b);a--;)r[i]=r[i++-o];for(;8<=this.d;)this.d-=8,this.a--;this.b=i},s.prototype.w=function(t,e){var r=this.c,i=this.b;this.o=t;for(var n,s,o,a,l=r.length;256!==(n=I(this,t));)if(256>n)i>=l&&(l=(r=this.e()).length),r[i++]=n;else for(a=c[s=n-257],0<v[s]&&(a+=_(this,v[s])),n=I(this,e),o=g[n],0<w[n]&&(o+=_(this,w[n])),i+a>l&&(l=(r=this.e()).length);a--;)r[i]=r[i++-o];for(;8<=this.d;)this.d-=8,this.a--;this.b=i},s.prototype.e=function(){var t,e,r=new(i?Uint8Array:Array)(this.b-32768),n=this.b-32768,s=this.c;if(i)r.set(s.subarray(32768,r.length));else for(t=0,e=r.length;t<e;++t)r[t]=s[t+32768];if(this.g.push(r),this.l+=r.length,i)s.set(s.subarray(n,n+32768));else for(t=0;32768>t;++t)s[t]=s[n+t];return this.b=32768,s},s.prototype.z=function(t){var e,r,n,s=this.input.length/this.a+1|0,o=this.input,a=this.c;return t&&(\"number\"==typeof t.p&&(s=t.p),\"number\"==typeof t.u&&(s+=t.u)),2>s?r=(n=(o.length-this.a)/this.o[2]/2*258|0)<a.length?a.length+n:a.length<<1:r=a.length*s,i?(e=new Uint8Array(r)).set(a):e=a,this.c=e},s.prototype.n=function(){var t,e,r,n,s,o=0,a=this.c,l=this.g,f=new(i?Uint8Array:Array)(this.l+(this.b-32768));if(0===l.length)return i?this.c.subarray(32768,this.b):this.c.slice(32768,this.b);for(e=0,r=l.length;e<r;++e)for(n=0,s=(t=l[e]).length;n<s;++n)f[o++]=t[n];for(e=32768,r=this.b;e<r;++e)f[o++]=a[e];return this.g=[],this.buffer=f},s.prototype.v=function(){var t,e=this.b;return i?this.r?(t=new Uint8Array(e)).set(this.c.subarray(0,e)):t=this.c.subarray(0,e):(this.c.length>e&&(this.c.length=e),t=this.c),this.buffer=t},T.prototype.k=function(){var t,e,r=this.input;if(t=this.q.k(),this.a=this.q.a,this.A){e=(r[this.a++]<<24|r[this.a++]<<16|r[this.a++]<<8|r[this.a++])>>>0;var i=t;if(\"string\"==typeof i){var n,s,o=i.split(\"\");for(n=0,s=o.length;n<s;n++)o[n]=(255&o[n].charCodeAt(0))>>>0;i=o}for(var a,l=1,f=0,h=i.length,u=0;0<h;){h-=a=1024<h?1024:h;do{f+=l+=i[u++]}while(--a);l%=65521,f%=65521}if(e!==(f<<16|l)>>>0)throw Error(\"invalid adler-32 checksum\")}return t};var N=8;r(\"Zlib.Inflate\",T),r(\"Zlib.Inflate.prototype.decompress\",T.prototype.k);var j,B,D,L,R={ADAPTIVE:l.s,BLOCK:l.t};if(Object.keys)j=Object.keys(R);else for(B in j=[],D=0,R)j[D++]=B;for(D=0,L=j.length;D<L;++D)r(\"Zlib.Inflate.BufferType.\"+(B=j[D]),R[B])}).Zlib,Ut=function(t,e){void 0===e&&(e={});var r=this;this.size={width:0,height:0},this.fps=20,this.frames=0,this.images={},this.replaceElements={},this.dynamicElements={},this.sprites=[],this.version=t.version;var i=t.params,n=i.viewBoxWidth,s=i.viewBoxHeight,o=i.fps,a=i.frames;this.size.width=n,this.size.height=s,this.fps=o,this.frames=a,this.sprites=[],t.sprites.forEach((function(t){var e,i={imageKey:t.imageKey,frames:[]};t.frames.forEach((function(t){var r,n,s,o,a,l,f,h,u,p,d,c,y,v,m,g,b,w,A,k,E,O,S={x:null!==(n=null===(r=t.layout)||void 0===r?void 0:r.x)&&void 0!==n?n:0,y:null!==(o=null===(s=t.layout)||void 0===s?void 0:s.y)&&void 0!==o?o:0,width:null!==(l=null===(a=t.layout)||void 0===a?void 0:a.width)&&void 0!==l?l:0,height:null!==(h=null===(f=t.layout)||void 0===f?void 0:f.height)&&void 0!==h?h:0},x={a:null!==(p=null===(u=t.transform)||void 0===u?void 0:u.a)&&void 0!==p?p:1,b:null!==(c=null===(d=t.transform)||void 0===d?void 0:d.b)&&void 0!==c?c:0,c:null!==(v=null===(y=t.transform)||void 0===y?void 0:y.c)&&void 0!==v?v:0,d:null!==(g=null===(m=t.transform)||void 0===m?void 0:m.d)&&void 0!==g?g:1,tx:null!==(w=null===(b=t.transform)||void 0===b?void 0:b.tx)&&void 0!==w?w:0,ty:null!==(k=null===(A=t.transform)||void 0===A?void 0:A.ty)&&void 0!==k?k:0},_=null!==(E=t.clipPath)&&void 0!==E?E:\"\",I=[];t.shapes.forEach((function(t){var e,r,i,n,s,o,a,l,f,h,u,p,d=t.styles;if(null!==d){var c=[];null!==d.lineDashI&&d.lineDashI>0&&c.push(d.lineDashI),null!==d.lineDashII&&d.lineDashII>0&&(c.length<1&&c.push(0),c.push(d.lineDashII)),null!==d.lineDashIII&&d.lineDashIII>0&&(c.length<2&&(c.push(0),c.push(0)),c[2]=d.lineDashIII);var y=null;switch(d.lineCap){case 0:y=\"butt\";break;case 1:y=\"round\";break;case 2:y=\"square\"}var v=null;switch(d.lineJoin){case 2:v=\"bevel\";break;case 1:v=\"round\";break;case 0:v=\"miter\"}var m=null;null!==d.fill&&(m=\"rgba(\".concat(parseInt((255*d.fill.r).toString()),\", \").concat(parseInt((255*d.fill.g).toString()),\", \").concat(parseInt((255*d.fill.b).toString()),\", \").concat(parseInt((1*d.fill.a).toString()),\")\"));var g=null;null!==d.stroke&&(g=\"rgba(\".concat(parseInt((255*d.stroke.r).toString()),\", \").concat(parseInt((255*d.stroke.g).toString()),\", \").concat(parseInt((255*d.stroke.b).toString()),\", \").concat(parseInt((1*d.stroke.a).toString()),\")\"));var b={lineDash:c,fill:m,stroke:g,lineCap:y,lineJoin:v,strokeWidth:d.strokeWidth,miterLimit:d.miterLimit},w={a:null!==(r=null===(e=t.transform)||void 0===e?void 0:e.a)&&void 0!==r?r:1,b:null!==(n=null===(i=t.transform)||void 0===i?void 0:i.b)&&void 0!==n?n:0,c:null!==(o=null===(s=t.transform)||void 0===s?void 0:s.c)&&void 0!==o?o:0,d:null!==(l=null===(a=t.transform)||void 0===a?void 0:a.d)&&void 0!==l?l:1,tx:null!==(h=null===(f=t.transform)||void 0===f?void 0:f.tx)&&void 0!==h?h:0,ty:null!==(p=null===(u=t.transform)||void 0===u?void 0:u.ty)&&void 0!==p?p:0};0===t.type&&null!==t.shape?I.push({type:\"shape\",path:t.shape,styles:b,transform:w}):1===t.type&&null!==t.rect?I.push({type:\"rect\",path:t.rect,styles:b,transform:w}):2===t.type&&null!==t.ellipse&&I.push({type:\"ellipse\",path:t.ellipse,styles:b,transform:w})}})),void 0!==t.shapes[0]&&3===t.shapes[0].type&&void 0!==e?I=e:e=I;var T=x.a*S.x+x.c*S.y+x.tx,N=x.a*(S.x+S.width)+x.c*S.y+x.tx,j=x.a*S.x+x.c*(S.y+S.height)+x.tx,B=x.a*(S.x+S.width)+x.c*(S.y+S.height)+x.tx,D=x.b*S.x+x.d*S.y+x.ty,L=x.b*(S.x+S.width)+x.d*S.y+x.ty,R=x.b*S.x+x.d*(S.y+S.height)+x.ty,U=x.b*(S.x+S.width)+x.d*(S.y+S.height)+x.ty,J=Math.min(Math.min(j,B),Math.min(T,N)),C=Math.min(Math.min(R,U),Math.min(D,L)),F=_.length>0?{d:_,transform:void 0,styles:{fill:\"rgba(0, 0, 0, 0)\",stroke:null,strokeWidth:null,lineCap:null,lineJoin:null,miterLimit:null,lineDash:null}}:null;i.frames.push({alpha:null!==(O=t.alpha)&&void 0!==O?O:0,layout:S,transform:x,clipPath:_,shapes:I,nx:J,ny:C,maskPath:F})})),r.sprites.push(i)})),this.images=e},Jt=function(t){var e=new Uint8Array(t,0,4);return 80===e[0]&&75===e[1]&&3===e[2]&&4===e[3]?1:2};\n/** @license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */var Ct,Ft=Lt.Root.fromJSON({nested:{com:{nested:{opensource:{nested:{svga:{options:{objc_class_prefix:\"SVGAProto\",java_package:\"com.opensource.svgaplayer\"},nested:{MovieParams:{fields:{viewBoxWidth:{type:\"float\",id:1},viewBoxHeight:{type:\"float\",id:2},fps:{type:\"int32\",id:3},frames:{type:\"int32\",id:4}}},SpriteEntity:{fields:{imageKey:{type:\"string\",id:1},frames:{rule:\"repeated\",type:\"FrameEntity\",id:2}}},Layout:{fields:{x:{type:\"float\",id:1},y:{type:\"float\",id:2},width:{type:\"float\",id:3},height:{type:\"float\",id:4}}},Transform:{fields:{a:{type:\"float\",id:1},b:{type:\"float\",id:2},c:{type:\"float\",id:3},d:{type:\"float\",id:4},tx:{type:\"float\",id:5},ty:{type:\"float\",id:6}}},ShapeEntity:{oneofs:{args:{oneof:[\"shape\",\"rect\",\"ellipse\"]}},fields:{type:{type:\"ShapeType\",id:1},shape:{type:\"ShapeArgs\",id:2},rect:{type:\"RectArgs\",id:3},ellipse:{type:\"EllipseArgs\",id:4},styles:{type:\"ShapeStyle\",id:10},transform:{type:\"Transform\",id:11}},nested:{ShapeType:{values:{SHAPE:0,RECT:1,ELLIPSE:2,KEEP:3}},ShapeArgs:{fields:{d:{type:\"string\",id:1}}},RectArgs:{fields:{x:{type:\"float\",id:1},y:{type:\"float\",id:2},width:{type:\"float\",id:3},height:{type:\"float\",id:4},cornerRadius:{type:\"float\",id:5}}},EllipseArgs:{fields:{x:{type:\"float\",id:1},y:{type:\"float\",id:2},radiusX:{type:\"float\",id:3},radiusY:{type:\"float\",id:4}}},ShapeStyle:{fields:{fill:{type:\"RGBAColor\",id:1},stroke:{type:\"RGBAColor\",id:2},strokeWidth:{type:\"float\",id:3},lineCap:{type:\"LineCap\",id:4},lineJoin:{type:\"LineJoin\",id:5},miterLimit:{type:\"float\",id:6},lineDashI:{type:\"float\",id:7},lineDashII:{type:\"float\",id:8},lineDashIII:{type:\"float\",id:9}},nested:{RGBAColor:{fields:{r:{type:\"float\",id:1},g:{type:\"float\",id:2},b:{type:\"float\",id:3},a:{type:\"float\",id:4}}},LineCap:{values:{LineCap_BUTT:0,LineCap_ROUND:1,LineCap_SQUARE:2}},LineJoin:{values:{LineJoin_MITER:0,LineJoin_ROUND:1,LineJoin_BEVEL:2}}}}}},FrameEntity:{fields:{alpha:{type:\"float\",id:1},layout:{type:\"Layout\",id:2},transform:{type:\"Transform\",id:3},clipPath:{type:\"string\",id:4},shapes:{rule:\"repeated\",type:\"ShapeEntity\",id:5}}},MovieEntity:{fields:{version:{type:\"string\",id:1},params:{type:\"MovieParams\",id:2},images:{keyType:\"string\",type:\"bytes\",id:3},sprites:{rule:\"repeated\",type:\"SpriteEntity\",id:4}}}}}}}}}}}).lookupType(\"com.opensource.svga.MovieEntity\");function Mt(r){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,new Promise((function(t,e){var i=new XMLHttpRequest;i.open(\"GET\",r,!0),i.responseType=\"arraybuffer\",i.onloadend=function(){void 0===i.response||200!==i.status&&304!==i.status?e(new Error(\"XMLHttpRequest, \".concat(i.statusText))):t(i.response)},i.send()}))];case 1:return[2,t.sent()]}}))}))}function Pt(r){return t(this,void 0,void 0,(function(){var t,i,n,s,o,a,l,f,h,u,p,d,c,y,v,m,g,b,w;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,7,,8]),t=r.data,i=t.url,n=t.options,[4,Mt(i)];case 1:if(s=e.sent(),o=new Uint8Array(s,0,4),2!==Jt(o))throw new Error(\"this parser only support version@2 of SVGA.\");for(p in a=new Rt.Inflate(new Uint8Array(s)).decompress(),l=Ft.decode(a),f={},h=l.images,u=[],h)u.push(p);d=0,e.label=2;case 2:return d<u.length?(p=u[d])in h?(c=p,y=l.images[c],n.isDisableImageBitmapShim||void 0===self.createImageBitmap?[3,4]:(v=f,m=c,[4,self.createImageBitmap(new Blob([y]))])):[3,5]:[3,6];case 3:return v[m]=e.sent(),[3,5];case 4:g=function(t){for(var e=\"\",r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return e}(y),f[c]=btoa(g),e.label=5;case 5:return d++,[3,2];case 6:return Ct.postMessage(new Ut(l,f)),[3,8];case 7:return b=e.sent(),w=b.toString(),b instanceof Error&&(w=b.message),Ct.postMessage(new Error(\"[SVGA Parser Error] \".concat(w))),[3,8];case 8:return[2]}}))}))}void 0!==self.document?Ct=window.SVGAParserMockWorker={onmessageCallback:function(){},postMessage:function(t){this.onmessageCallback(t)},onmessage:Pt}:(Ct=self).onmessage=Pt}();\n",
              Parser = function () {
            function Parser(options) {
              void 0 === options && (options = {
                isDisableWebWorker: !1,
                isDisableImageBitmapShim: !1
              }), this.isDisableImageBitmapShim = !1;
              var isDisableWebWorker = options.isDisableWebWorker,
                  isDisableImageBitmapShim = options.isDisableImageBitmapShim;

              if (!0 === isDisableImageBitmapShim && (this.isDisableImageBitmapShim = isDisableImageBitmapShim), !0 === isDisableWebWorker) {
                if (eval(INLINE_WORKER_FLAG), void 0 === window.SVGAParserMockWorker) throw new Error("SVGAParserMockWorker undefined");
                this.worker = window.SVGAParserMockWorker;
              } else this.worker = new Worker(window.URL.createObjectURL(new Blob([INLINE_WORKER_FLAG])));
            }

            return Parser.prototype.load = function (e) {
              return __awaiter(this, void 0, void 0, function () {
                var t = this;
                return __generator(this, function (r) {
                  switch (r.label) {
                    case 0:
                      if (void 0 === e) throw new Error("url undefined");
                      if (void 0 === this.worker) throw new Error("Parser Worker not found");
                      return [4, new Promise(function (r, i) {
                        if (0 !== e.indexOf("http")) {
                          var n = document.createElement("a");
                          n.href = e, e = n.href;
                        }

                        var o = t.isDisableImageBitmapShim,
                            a = {
                          url: e,
                          options: {
                            isDisableImageBitmapShim: o
                          }
                        };
                        t.worker instanceof Worker ? (t.worker.onmessage = function (e) {
                          var t = e.data;
                          t instanceof Error ? i(t) : r(t);
                        }, t.worker.postMessage(a)) : (t.worker.onmessageCallback = function (e) {
                          e instanceof Error ? i(e) : r(e);
                        }, t.worker.onmessage({
                          data: a
                        }));
                      })];

                    case 1:
                      return [2, r.sent()];
                  }
                });
              });
            }, Parser.prototype.destroy = function () {
              this.worker instanceof Worker && this.worker.terminate();
            }, Parser;
          }(),
              WORKER = "onmessage = function () {setTimeout(function() {postMessage(null)}, 1000 / 60)}",
              Animator = function () {
            function e() {
              this.isRunning = !1, this.startTime = 0, this.currentFrication = 0, this.worker = null, this.isOpenNoExecutionDelay = !1, this.startValue = 0, this.endValue = 0, this.duration = 0, this.loopStart = 0, this.loop = 1, this.fillRule = 0, this.onStart = function () {}, this.onUpdate = function () {}, this.onEnd = function () {}, this.currentTimeMillsecond = function () {
                return void 0 === window.performance ? Date.now() : performance.now();
              };
            }

            return e.prototype.start = function () {
              this.isRunning = !0, this.startTime = this.currentTimeMillsecond(), this.currentFrication = 0, this.isOpenNoExecutionDelay && null === this.worker && (this.worker = new Worker(window.URL.createObjectURL(new Blob([WORKER])))), this.onStart(), this.doFrame();
            }, e.prototype.stop = function () {
              this.isRunning = !1, null !== this.worker && (this.worker.terminate(), this.worker = null);
            }, Object.defineProperty(e.prototype, "animatedValue", {
              get: function get() {
                return Math.floor((this.endValue - this.startValue) * this.currentFrication + this.startValue);
              },
              enumerable: !1,
              configurable: !0
            }), e.prototype.doFrame = function () {
              this.isRunning && (this.doDeltaTime(this.currentTimeMillsecond() - this.startTime), this.isRunning && (null !== this.worker ? (this.worker.onmessage = this.doFrame.bind(this), this.worker.postMessage(null)) : window.requestAnimationFrame(this.doFrame.bind(this))));
            }, e.prototype.doDeltaTime = function (e) {
              e >= this.loopStart + (this.duration - this.loopStart) * this.loop ? (this.currentFrication = 1 === this.fillRule ? 0 : 1, this.isRunning = !1) : this.currentFrication = e <= this.duration ? e / this.duration : ((e - this.loopStart) % (this.duration - this.loopStart) + this.loopStart) / this.duration, this.onUpdate(this.animatedValue), this.isRunning || (null !== this.worker && (this.worker.terminate(), this.worker = null), this.onEnd());
            }, e;
          }(),
              validMethods = "MLHVCSQRZmlhvcsqrz";

          function render(e, t, r, i, n, o) {
            var a = e.getContext("2d");
            if (null === a) throw new Error("Render Context cannot be null");
            if (!("save" in a)) throw new Error("Render Context is not context2d");
            n.sprites.forEach(function (e) {
              var n = t[e.imageKey],
                  s = i[e.imageKey],
                  u = r[e.imageKey];
              drawSprite(a, e, o, n, s, u);
            });
          }

          function drawSprite(e, t, r, i, n, o) {
            var a,
                s,
                u,
                l,
                c,
                h,
                d,
                f,
                m,
                v,
                p,
                y,
                b = t.frames[r];
            b.alpha < .05 || (e.save(), e.globalAlpha = b.alpha, e.transform(null !== (s = null === (a = b.transform) || void 0 === a ? void 0 : a.a) && void 0 !== s ? s : 1, null !== (l = null === (u = b.transform) || void 0 === u ? void 0 : u.b) && void 0 !== l ? l : 0, null !== (h = null === (c = b.transform) || void 0 === c ? void 0 : c.c) && void 0 !== h ? h : 0, null !== (f = null === (d = b.transform) || void 0 === d ? void 0 : d.d) && void 0 !== f ? f : 1, null !== (v = null === (m = b.transform) || void 0 === m ? void 0 : m.tx) && void 0 !== v ? v : 0, null !== (y = null === (p = b.transform) || void 0 === p ? void 0 : p.ty) && void 0 !== y ? y : 0), void 0 !== i && (null !== b.maskPath && (drawBezier(e, b.maskPath.d, b.maskPath.transform, b.maskPath.styles), e.clip()), void 0 !== n ? e.drawImage(n, 0, 0, b.layout.width, b.layout.height) : e.drawImage(i, 0, 0, b.layout.width, b.layout.height)), void 0 !== o && e.drawImage(o, (b.layout.width - o.width) / 2, (b.layout.height - o.height) / 2), b.shapes.forEach(function (t) {
              return drawShape(e, t);
            }), e.restore());
          }

          function drawShape(e, t) {
            var r, i, n, o, a, s, u, l, c;

            switch (t.type) {
              case "shape":
                drawBezier(e, t.path.d, t.transform, t.styles);
                break;

              case "ellipse":
                drawEllipse(e, null !== (r = t.path.x) && void 0 !== r ? r : 0, null !== (i = t.path.y) && void 0 !== i ? i : 0, null !== (n = t.path.radiusX) && void 0 !== n ? n : 0, null !== (o = t.path.radiusY) && void 0 !== o ? o : 0, t.transform, t.styles);
                break;

              case "rect":
                drawRect(e, null !== (a = t.path.x) && void 0 !== a ? a : 0, null !== (s = t.path.y) && void 0 !== s ? s : 0, null !== (u = t.path.width) && void 0 !== u ? u : 0, null !== (l = t.path.height) && void 0 !== l ? l : 0, null !== (c = t.path.cornerRadius) && void 0 !== c ? c : 0, t.transform, t.styles);
            }
          }

          function resetShapeStyles(e, t) {
            void 0 !== t && (null !== t.stroke ? e.strokeStyle = t.stroke : e.strokeStyle = "transparent", null !== t.strokeWidth && t.strokeWidth > 0 && (e.lineWidth = t.strokeWidth), null !== t.miterLimit && t.miterLimit > 0 && (e.miterLimit = t.miterLimit), null !== t.lineCap && (e.lineCap = t.lineCap), null !== t.lineJoin && (e.lineJoin = t.lineJoin), null !== t.fill ? e.fillStyle = t.fill : e.fillStyle = "transparent", null !== t.lineDash && e.setLineDash(t.lineDash));
          }

          function drawBezier(e, t, r, i) {
            e.save(), resetShapeStyles(e, i), void 0 !== r && e.transform(r.a, r.b, r.c, r.d, r.tx, r.ty);
            var n = {
              x: 0,
              y: 0,
              x1: 0,
              y1: 0,
              x2: 0,
              y2: 0
            };
            e.beginPath(), (t = t.replace(/([a-zA-Z])/g, "|||$1 ").replace(/,/g, " ")).split("|||").forEach(function (t) {
              if (0 !== t.length) {
                var r = t.substr(0, 1);

                if (validMethods.includes(r)) {
                  var i = t.substr(1).trim().split(" ");
                  drawBezierElement(e, n, r, i);
                }
              }
            }), null !== i.fill && e.fill(), null !== i.stroke && e.stroke(), e.restore();
          }

          function drawBezierElement(e, t, r, i) {
            switch (r) {
              case "M":
                t.x = Number(i[0]), t.y = Number(i[1]), e.moveTo(t.x, t.y);
                break;

              case "m":
                t.x += Number(i[0]), t.y += Number(i[1]), e.moveTo(t.x, t.y);
                break;

              case "L":
                t.x = Number(i[0]), t.y = Number(i[1]), e.lineTo(t.x, t.y);
                break;

              case "l":
                t.x += Number(i[0]), t.y += Number(i[1]), e.lineTo(t.x, t.y);
                break;

              case "H":
                t.x = Number(i[0]), e.lineTo(t.x, t.y);
                break;

              case "h":
                t.x += Number(i[0]), e.lineTo(t.x, t.y);
                break;

              case "V":
                t.y = Number(i[0]), e.lineTo(t.x, t.y);
                break;

              case "v":
                t.y += Number(i[0]), e.lineTo(t.x, t.y);
                break;

              case "C":
                t.x1 = Number(i[0]), t.y1 = Number(i[1]), t.x2 = Number(i[2]), t.y2 = Number(i[3]), t.x = Number(i[4]), t.y = Number(i[5]), e.bezierCurveTo(t.x1, t.y1, t.x2, t.y2, t.x, t.y);
                break;

              case "c":
                t.x1 = t.x + Number(i[0]), t.y1 = t.y + Number(i[1]), t.x2 = t.x + Number(i[2]), t.y2 = t.y + Number(i[3]), t.x += Number(i[4]), t.y += Number(i[5]), e.bezierCurveTo(t.x1, t.y1, t.x2, t.y2, t.x, t.y);
                break;

              case "S":
                void 0 !== t.x1 && void 0 !== t.y1 && void 0 !== t.x2 && void 0 !== t.y2 ? (t.x1 = t.x - t.x2 + t.x, t.y1 = t.y - t.y2 + t.y, t.x2 = Number(i[0]), t.y2 = Number(i[1]), t.x = Number(i[2]), t.y = Number(i[3]), e.bezierCurveTo(t.x1, t.y1, t.x2, t.y2, t.x, t.y)) : (t.x1 = Number(i[0]), t.y1 = Number(i[1]), t.x = Number(i[2]), t.y = Number(i[3]), e.quadraticCurveTo(t.x1, t.y1, t.x, t.y));
                break;

              case "s":
                void 0 !== t.x1 && void 0 !== t.y1 && void 0 !== t.x2 && void 0 !== t.y2 ? (t.x1 = t.x - t.x2 + t.x, t.y1 = t.y - t.y2 + t.y, t.x2 = t.x + Number(i[0]), t.y2 = t.y + Number(i[1]), t.x += Number(i[2]), t.y += Number(i[3]), e.bezierCurveTo(t.x1, t.y1, t.x2, t.y2, t.x, t.y)) : (t.x1 = t.x + Number(i[0]), t.y1 = t.y + Number(i[1]), t.x += Number(i[2]), t.y += Number(i[3]), e.quadraticCurveTo(t.x1, t.y1, t.x, t.y));
                break;

              case "Q":
                t.x1 = Number(i[0]), t.y1 = Number(i[1]), t.x = Number(i[2]), t.y = Number(i[3]), e.quadraticCurveTo(t.x1, t.y1, t.x, t.y);
                break;

              case "q":
                t.x1 = t.x + Number(i[0]), t.y1 = t.y + Number(i[1]), t.x += Number(i[2]), t.y += Number(i[3]), e.quadraticCurveTo(t.x1, t.y1, t.x, t.y);
                break;

              case "A":
              case "a":
                break;

              case "Z":
              case "z":
                e.closePath();
            }
          }

          function drawEllipse(e, t, r, i, n, o, a) {
            e.save(), resetShapeStyles(e, a), void 0 !== o && e.transform(o.a, o.b, o.c, o.d, o.tx, o.ty);
            var s = 2 * i,
                u = 2 * n,
                l = s / 2 * .5522848,
                c = u / 2 * .5522848,
                h = (t -= i) + s,
                d = (r -= n) + u,
                f = t + s / 2,
                m = r + u / 2;
            e.beginPath(), e.moveTo(t, m), e.bezierCurveTo(t, m - c, f - l, r, f, r), e.bezierCurveTo(f + l, r, h, m - c, h, m), e.bezierCurveTo(h, m + c, f + l, d, f, d), e.bezierCurveTo(f - l, d, t, m + c, t, m), null !== a.fill && e.fill(), null !== a.stroke && e.stroke(), e.restore();
          }

          function drawRect(e, t, r, i, n, o, a, s) {
            e.save(), resetShapeStyles(e, s), void 0 !== a && e.transform(a.a, a.b, a.c, a.d, a.tx, a.ty);
            var u = o;
            i < 2 * u && (u = i / 2), n < 2 * u && (u = n / 2), e.beginPath(), e.moveTo(t + u, r), e.arcTo(t + i, r, t + i, r + n, u), e.arcTo(t + i, r + n, t, r + n, u), e.arcTo(t, r + n, t, r, u), e.arcTo(t, r, t + i, r, u), e.closePath(), null !== s.fill && e.fill(), null !== s.stroke && e.stroke(), e.restore();
          }

          var inBrowser = "undefined" != typeof window,
              hasIntersectionObserver = inBrowser && "IntersectionObserver" in window,
              Player = function () {
            function e(e) {
              var t,
                  r = this;
              this.currentFrame = 0, this.totalFrames = 0, this.videoEntity = void 0, this.config = {
                container: document.createElement("canvas"),
                loop: 0,
                fillMode: "forwards",
                playMode: "forwards",
                startFrame: 0,
                endFrame: 0,
                loopStartFrame: 0,
                isCacheFrames: !1,
                isUseIntersectionObserver: !1,
                isOpenNoExecutionDelay: !1
              }, this.isBeIntersection = !0, this.intersectionObserver = null, this.bitmapsCache = {}, this.cacheFrames = {}, this.animator = new Animator(), this.animator.onEnd = function () {
                void 0 !== r.onEnd && r.onEnd();
              }, e instanceof HTMLCanvasElement ? t = e : void 0 !== e.container && (t = e.container, this.setConfig(e)), this.config.container = null != t ? t : this.config.container, this.ofsCanvas = void 0 !== window.OffscreenCanvas ? new window.OffscreenCanvas(this.config.container.width, this.config.container.height) : document.createElement("canvas");
            }

            return e.prototype.setConfig = function (e) {
              var t, r, i, n, o, a, s, u, l, c, h;
              if (void 0 !== e.startFrame && void 0 !== e.endFrame && e.startFrame > e.endFrame) throw new Error("StartFrame should > EndFrame");
              this.config.container = null !== (t = e.container) && void 0 !== t ? t : this.config.container, this.config.loop = null !== (r = e.loop) && void 0 !== r ? r : 0, this.config.fillMode = null !== (i = e.fillMode) && void 0 !== i ? i : "forwards", this.config.playMode = null !== (n = e.playMode) && void 0 !== n ? n : "forwards", this.config.startFrame = null !== (o = e.startFrame) && void 0 !== o ? o : 0, this.config.endFrame = null !== (a = e.endFrame) && void 0 !== a ? a : 0, this.config.loopStartFrame = null !== (s = e.loopStartFrame) && void 0 !== s ? s : 0, this.config.isCacheFrames = null !== (u = e.isCacheFrames) && void 0 !== u && u, this.config.isUseIntersectionObserver = null !== (l = e.isUseIntersectionObserver) && void 0 !== l && l, this.config.isOpenNoExecutionDelay = null !== (c = e.isOpenNoExecutionDelay) && void 0 !== c && c, this.animator.isOpenNoExecutionDelay = null !== (h = e.isOpenNoExecutionDelay) && void 0 !== h && h, this.setIntersectionObserver();
            }, e.prototype.setIntersectionObserver = function () {
              var e = this;
              hasIntersectionObserver && this.config.isUseIntersectionObserver ? (this.intersectionObserver = new IntersectionObserver(function (t) {
                e.isBeIntersection = !(t[0].intersectionRatio <= 0);
              }, {
                rootMargin: "0px",
                threshold: [0, .5, 1]
              }), this.intersectionObserver.observe(this.config.container)) : (null !== this.intersectionObserver && this.intersectionObserver.disconnect(), this.config.isUseIntersectionObserver = !1, this.isBeIntersection = !0);
            }, e.prototype.mount = function (e) {
              return __awaiter(this, void 0, void 0, function () {
                var t = this;
                return __generator(this, function (r) {
                  switch (r.label) {
                    case 0:
                      return [4, new Promise(function (r, i) {
                        if (t.currentFrame = 0, t.totalFrames = e.frames - 1, t.videoEntity = e, t.clearContainer(), t.setSize(), t.bitmapsCache = {}, void 0 !== t.videoEntity) {
                          if (0 !== Object.keys(t.videoEntity.images).length) {
                            var n = 0,
                                o = 0;

                            for (var a in t.videoEntity.images) {
                              var s = t.videoEntity.images[a];

                              if ("string" == typeof s) {
                                n++;
                                var u = document.createElement("img");
                                u.src = "data:image/png;base64," + s, t.bitmapsCache[a] = u, u.onload = function () {
                                  ++o === n && r();
                                };
                              } else t.bitmapsCache[a] = s, n++, ++o === n && r();
                            }
                          } else r();
                        } else r();
                      })];

                    case 1:
                      return [2, r.sent()];
                  }
                });
              });
            }, e.prototype.clearContainer = function () {
              var e = this.config.container.width;
              this.config.container.width = e;
            }, e.prototype.start = function () {
              if (void 0 === this.videoEntity) throw new Error("videoEntity undefined");
              this.clearContainer(), this.startAnimation(), void 0 !== this.onStart && this.onStart();
            }, e.prototype.resume = function () {
              this.startAnimation(), void 0 !== this.onResume && this.onResume();
            }, e.prototype.pause = function () {
              this.animator.stop(), void 0 !== this.onPause && this.onPause();
            }, e.prototype.stop = function () {
              this.animator.stop(), this.currentFrame = 0, this.clearContainer(), void 0 !== this.onStop && this.onStop();
            }, e.prototype.clear = function () {
              this.clearContainer();
            }, e.prototype.destroy = function () {
              this.animator.stop(), this.clearContainer(), this.animator = null, this.videoEntity = null;
            }, e.prototype.startAnimation = function () {
              var e = this;
              if (void 0 === this.videoEntity) throw new Error("videoEntity undefined");
              var t = this.config,
                  r = this.totalFrames,
                  i = this.videoEntity,
                  n = t.playMode,
                  o = t.startFrame,
                  a = t.endFrame,
                  s = t.loopStartFrame,
                  u = t.fillMode,
                  l = t.loop;
              this.currentFrame === r && (this.currentFrame = o > 0 ? o : 0), "forwards" === n ? (this.animator.startValue = o > 0 ? o : 0, this.animator.endValue = a > 0 ? a : r) : (this.animator.startValue = a > 0 ? a : r, this.animator.endValue = o > 0 ? o : 0);
              var c = i.frames;
              a > 0 && a > o ? c = a - o : a <= 0 && o > 0 && (c = i.frames - o), this.animator.duration = c * (1 / i.fps) * 1e3, this.animator.loopStart = s > o ? (s - o) * (1 / i.fps) * 1e3 : 0, this.animator.loop = !0 === l || l <= 0 ? 1 / 0 : !1 === l ? 1 : l, this.animator.fillRule = "backwards" === u ? 1 : 0, this.animator.onUpdate = function (t) {
                e.currentFrame !== t && (e.currentFrame = t, e.drawFrame(e.currentFrame), void 0 !== e.onProcess && e.onProcess());
              }, this.animator.start();
            }, e.prototype.setSize = function () {
              if (void 0 === this.videoEntity) throw new Error("videoEntity undefined");
              var e = this.videoEntity.size;
              this.config.container.width = e.width, this.config.container.height = e.height;
            }, e.prototype.drawFrame = function (e) {
              if (void 0 === this.videoEntity) throw new Error("Player VideoEntity undefined");

              if (!this.config.isUseIntersectionObserver || this.isBeIntersection) {
                this.clearContainer();
                var t = this.config.container.getContext("2d");
                if (null === t) throw new Error("Canvas Context cannot be null");

                if (this.config.isCacheFrames && void 0 !== this.cacheFrames[e]) {
                  var r = this.cacheFrames[e];
                  t.drawImage(r, 0, 0, r.width, r.height, 0, 0, r.width, r.height);
                } else {
                  var i = this.ofsCanvas;
                  if (void 0 !== window.OffscreenCanvas && window.navigator.userAgent.includes("Firefox") && (i = new window.OffscreenCanvas(this.config.container.width, this.config.container.height)), i.width = this.config.container.width, i.height = this.config.container.height, render(i, this.bitmapsCache, this.videoEntity.dynamicElements, this.videoEntity.replaceElements, this.videoEntity, this.currentFrame), t.drawImage(i, 0, 0, i.width, i.height, 0, 0, i.width, i.height), this.config.isCacheFrames) if ("toDataURL" in i) {
                    var n = i.toDataURL(),
                        o = new Image();
                    o.src = n, this.cacheFrames[e] = o;
                  } else this.cacheFrames[e] = i.transferToImageBitmap();
                }
              }
            }, e;
          }(),
              DB = function () {
            function e(e) {
              var t = void 0 === e ? {
                name: "SVGA.DB",
                version: 1,
                storeName: "files"
              } : e,
                  r = t.name,
                  i = t.version,
                  n = t.storeName;
              this.storeName = n, this.dbPromise = new Promise(function (e, t) {
                if (void 0 === window.indexedDB) throw new Error("[SVGA.DB] indexedDB not supported");
                var o = window.indexedDB.open(r, i);
                o.onerror = function (e) {
                  return t(new Error("[SVGA.DB] indexedDB open fail, ".concat(e.type)));
                }, o.onsuccess = function () {
                  return e(o.result);
                }, o.onupgradeneeded = function () {
                  o.result.createObjectStore(n);
                };
              });
            }

            return e.prototype.find = function (e) {
              return __awaiter(this, void 0, void 0, function () {
                var t = this;
                return __generator(this, function (r) {
                  switch (r.label) {
                    case 0:
                      return [4, this.dbPromise.then(function (r) {
                        return __awaiter(t, void 0, void 0, function () {
                          var t = this;
                          return __generator(this, function (i) {
                            switch (i.label) {
                              case 0:
                                return [4, new Promise(function (i, n) {
                                  var o = r.transaction([t.storeName], "readonly").objectStore(t.storeName).get(e);
                                  o.onsuccess = function () {
                                    "string" == typeof o.result ? i(JSON.parse(o.result)) : i(void 0);
                                  }, o.onerror = function () {
                                    return n(new Error("find error"));
                                  };
                                })];

                              case 1:
                                return [2, i.sent()];
                            }
                          });
                        });
                      })];

                    case 1:
                      return [2, r.sent()];
                  }
                });
              });
            }, e.prototype.insert = function (e, t) {
              return __awaiter(this, void 0, void 0, function () {
                var r = this;
                return __generator(this, function (i) {
                  switch (i.label) {
                    case 0:
                      return [4, this.dbPromise.then(function (i) {
                        return __awaiter(r, void 0, void 0, function () {
                          var r = this;
                          return __generator(this, function (n) {
                            switch (n.label) {
                              case 0:
                                return [4, new Promise(function (n, o) {
                                  var a = i.transaction([r.storeName], "readwrite"),
                                      s = a.objectStore(r.storeName).put(JSON.stringify(t), e);
                                  a.oncomplete = function () {
                                    return n();
                                  }, s.onerror = function () {
                                    return o(new Error("insert error"));
                                  };
                                })];

                              case 1:
                                return [2, n.sent()];
                            }
                          });
                        });
                      })];

                    case 1:
                      return [2, i.sent()];
                  }
                });
              });
            }, e.prototype["delete"] = function (e) {
              return __awaiter(this, void 0, void 0, function () {
                var t = this;
                return __generator(this, function (r) {
                  switch (r.label) {
                    case 0:
                      return [4, this.dbPromise.then(function (r) {
                        return __awaiter(t, void 0, void 0, function () {
                          var t = this;
                          return __generator(this, function (i) {
                            switch (i.label) {
                              case 0:
                                return [4, new Promise(function (i, n) {
                                  var o = r.transaction([t.storeName], "readwrite").objectStore(t.storeName)["delete"](e);
                                  o.onsuccess = function () {
                                    return i();
                                  }, o.onerror = function () {
                                    return n(new Error("delete error"));
                                  };
                                })];

                              case 1:
                                return [2, i.sent()];
                            }
                          });
                        });
                      })];

                    case 1:
                      return [2, r.sent()];
                  }
                });
              });
            }, e;
          }();

          exports.DB = DB, exports.Parser = Parser, exports.Player = Player, Object.defineProperty(exports, "__esModule", {
            value: !0
          });
        }); // #endregion ORIGINAL CODE

        _cjsExports = exports('default', module.exports);
        module.exports.DB;
        module.exports.Parser;
        module.exports.Player;
        module.exports.__esModule;
      }, {});
    }
  };
});

System.register("chunks:///_virtual/SVGA.Lite.v2.1.1.mjs_cjs=&original=.js", ['./SVGA.Lite.v2.1.1.js', './cjs-loader.mjs'], function (exports, module) {
  var __cjsMetaURL, loader;

  return {
    setters: [function (module) {
      __cjsMetaURL = module.__cjsMetaURL;
      var _setter = {};
      _setter.__cjsMetaURL = module.__cjsMetaURL;
      _setter.default = module.default;
      exports(_setter);
    }, function (module) {
      loader = module.default;
    }],
    execute: function () {
      // I am the facade module who provides access to the CommonJS module './SVGA.Lite.v2.1.1.js'~
      if (!__cjsMetaURL) {
        loader.throwInvalidWrapper('./SVGA.Lite.v2.1.1.js', module.meta.url);
      }

      loader.require(__cjsMetaURL);
    }
  };
});

System.register("chunks:///_virtual/Svga.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './SvgaTrack.ts', './SvgaEvent.ts', './loadSvga.ts'], function (exports) {
  var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, _createClass, _asyncToGenerator, _regeneratorRuntime, cclegacy, _decorator, Asset, Component, Node, Layers, v3, UITransform, Sprite, Texture2D, ImageAsset, SpriteFrame, SvgaTrack, SvgaEvent, createImageAsync;

  return {
    setters: [function (module) {
      _applyDecoratedDescriptor = module.applyDecoratedDescriptor;
      _inheritsLoose = module.inheritsLoose;
      _initializerDefineProperty = module.initializerDefineProperty;
      _assertThisInitialized = module.assertThisInitialized;
      _createClass = module.createClass;
      _asyncToGenerator = module.asyncToGenerator;
      _regeneratorRuntime = module.regeneratorRuntime;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      Asset = module.Asset;
      Component = module.Component;
      Node = module.Node;
      Layers = module.Layers;
      v3 = module.v3;
      UITransform = module.UITransform;
      Sprite = module.Sprite;
      Texture2D = module.Texture2D;
      ImageAsset = module.ImageAsset;
      SpriteFrame = module.SpriteFrame;
    }, function (module) {
      SvgaTrack = module.SvgaTrack;
    }, function (module) {
      SvgaEvent = module.SvgaEvent;
    }, function (module) {
      createImageAsync = module.createImageAsync;
    }],
    execute: function () {
      var _dec, _dec2, _dec3, _dec4, _dec5, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;

      cclegacy._RF.push({}, "7c5ffhlHDpBpoDQ8wfKN7pu", "Svga", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var menu = _decorator.menu;
      var disallowMultiple = _decorator.disallowMultiple;
      var executeInEditMode = _decorator.executeInEditMode;
      var playOnFocus = _decorator.playOnFocus;
      var Svga = exports('default', (_dec = menu('自定义组件/Svga'), _dec2 = property(Asset), _dec3 = property(Asset), _dec4 = property({
        tooltip: "是否自动播放"
      }), _dec5 = property({
        tooltip: "是否循环"
      }), ccclass(_class = executeInEditMode(_class = disallowMultiple(_class = playOnFocus(_class = _dec(_class = (_class2 = /*#__PURE__*/function (_Component) {
        _inheritsLoose(Svga, _Component);

        function Svga() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _Component.call.apply(_Component, [this].concat(args)) || this;
          /************************ on Editor ************************/

          _this.edit_update = false;
          /************************ on Editor ************************/

          /************************  ************************/

          _this.aniNode = null;

          _initializerDefineProperty(_this, "_svga", _descriptor, _assertThisInitialized(_this));

          _this.tracks = [];
          _this.isPlaying = false;
          _this.vmData = null; // 初始化就播放

          _initializerDefineProperty(_this, "autoPlay", _descriptor2, _assertThisInitialized(_this)); // 是否循环


          _initializerDefineProperty(_this, "_loop", _descriptor3, _assertThisInitialized(_this)); // 总帧数


          _this._totalFrames = 0; // 帧时间

          _this._frameTime = 0; // fps 没设置就会用vmData里的帧率

          _initializerDefineProperty(_this, "_fps", _descriptor4, _assertThisInitialized(_this)); // 当前时间


          _this._curTime = 0; // 当前帧

          _this._curFrame = 0;
          return _this;
        }

        var _proto = Svga.prototype;

        _proto.onFocusInEditor = function onFocusInEditor() {
          this.edit_update = true;
          this.play(0);
        };

        _proto.onLostFocusInEditor = function onLostFocusInEditor() {
          this.edit_update = false;
        };

        _proto.resetInEditor = /*#__PURE__*/function () {
          var _resetInEditor = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
            return _regeneratorRuntime().wrap(function _callee$(_context) {
              while (1) switch (_context.prev = _context.next) {
                case 0:
                  _context.next = 2;
                  return this._load();

                case 2:
                  this.edit_update = true;
                  this.play(0);

                case 4:
                case "end":
                  return _context.stop();
              }
            }, _callee, this);
          }));

          function resetInEditor() {
            return _resetInEditor.apply(this, arguments);
          }

          return resetInEditor;
        }();

        _proto.onEnable = function onEnable() {
          CC_EDITOR && this.play(0);
        };

        _proto.onLoad = /*#__PURE__*/function () {
          var _onLoad = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
            return _regeneratorRuntime().wrap(function _callee2$(_context2) {
              while (1) switch (_context2.prev = _context2.next) {
                case 0:
                  this.aniNode = this.node.getChildByName("aniNode");

                  if (!this.aniNode) {
                    this.aniNode = new Node("aniNode");
                    this.aniNode.layer = Layers.Enum.UI_2D;
                    this.aniNode.setScale(v3(1, -1, 1));
                    this.node.addChild(this.aniNode);
                  }

                  _context2.next = 4;
                  return this._load();

                case 4:
                  (this.autoPlay || CC_EDITOR) && this.play(0);

                case 5:
                case "end":
                  return _context2.stop();
              }
            }, _callee2, this);
          }));

          function onLoad() {
            return _onLoad.apply(this, arguments);
          }

          return onLoad;
        }();

        _proto.start = function start() {};

        _proto.play = function play(frame) {
          if (frame === void 0) {
            frame = 0;
          }

          this.curFrame = frame;
          this.isPlaying = true;
          return this;
        };

        _proto.stop = function stop(isReset) {
          if (isReset === void 0) {
            isReset = false;
          }

          if (isReset) this.curFrame = 0;
          this.isPlaying = false;
          return this;
        };

        _proto.update = function update(dt) {
          var _this2 = this;

          if (CC_EDITOR && !this.edit_update || !this.isPlaying) return;
          this.curTime += dt;

          if (this._curFrame > this.totalFrames) {
            this.node.emit(SvgaEvent.END_FRAME); // 触发结束事件

            if (this.loop) {
              this.curTime = (this._curFrame - this.totalFrames) * this._frameTime;
            } else {
              this.stop(false);
            }
          }

          this.tracks.forEach(function (v) {
            v.setValue(_this2._curFrame);
          });
        };

        _proto.onDestroy = function onDestroy() {
          var tracks = this.tracks;
          var len = tracks.length;

          for (var i = 0; i < len; i++) {
            tracks[i].destroy();
          }

          this.tracks.length = 0;
        };

        _proto._load = /*#__PURE__*/function () {
          var _load2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
            var vm, fps, size, images, sprites, textures, frames, ps, _loop, key, len, i, _sprites$i, imageKey, _frames, node, sp, track;

            return _regeneratorRuntime().wrap(function _callee3$(_context4) {
              while (1) switch (_context4.prev = _context4.next) {
                case 0:
                  if (!(!this.aniNode || !this.svga)) {
                    _context4.next = 3;
                    break;
                  }

                  console.log(!!this.aniNode, !!this.svga);
                  return _context4.abrupt("return");

                case 3:
                  this.aniNode.removeAllChildren();
                  vm = this.svga["_file"];
                  vm.textures = {};
                  this.vmData = vm;
                  fps = vm.fps, size = vm.size, images = vm.images, sprites = vm.sprites, textures = vm.textures, frames = vm.frames;
                  if (!this.fps) this.fps = fps;
                  this._totalFrames = frames;
                  this.getComponent(UITransform).setContentSize(size.width, size.height);
                  this.aniNode.setPosition(-size.width / 2, size.height / 2);
                  ps = [];
                  _loop = /*#__PURE__*/_regeneratorRuntime().mark(function _loop(key) {
                    var src;
                    return _regeneratorRuntime().wrap(function _loop$(_context3) {
                      while (1) switch (_context3.prev = _context3.next) {
                        case 0:
                          src = images[key];

                          if (src.indexOf("iVBO") === 0 || src.indexOf("/9j/2w") === 0) {
                            src = 'data:image/png;base64,' + src;
                          } // ps.push(new Promise<void>(async (r) => {


                          ps.push(createImageAsync(src).then(function (img) {
                            var texture = new Texture2D();
                            texture.image = new ImageAsset(img);
                            var spr = new SpriteFrame();
                            spr.texture = texture;
                            textures[key] = spr;
                          }));
                        // const img = await createImageAsync(src);
                        // // const img = createImage(src);
                        // const texture = new Texture2D();
                        //
                        // texture.image = new ImageAsset(img);
                        //
                        // const spr = new SpriteFrame();
                        // spr.texture = texture;
                        // textures[key] = spr;
                        // r();
                        // 编辑器里用不了
                        // cc.assetManager.loadRemote<cc.Texture2D>(
                        // 	base64, {ext: ".png"},
                        // 	(err, texture) => {
                        // 		textures[key] = new cc.SpriteFrame(texture);
                        // 		r();
                        // 	}
                        // );
                        // }));

                        case 3:
                        case "end":
                          return _context3.stop();
                      }
                    }, _loop);
                  });
                  _context4.t0 = _regeneratorRuntime().keys(images);

                case 15:
                  if ((_context4.t1 = _context4.t0()).done) {
                    _context4.next = 20;
                    break;
                  }

                  key = _context4.t1.value;
                  return _context4.delegateYield(_loop(key), "t2", 18);

                case 18:
                  _context4.next = 15;
                  break;

                case 20:
                  _context4.next = 22;
                  return Promise.all(ps);

                case 22:
                  len = sprites.length;
                  i = 0;

                case 24:
                  if (!(i < len)) {
                    _context4.next = 40;
                    break;
                  }

                  _sprites$i = sprites[i], imageKey = _sprites$i.imageKey, _frames = _sprites$i.frames;

                  if (imageKey) {
                    _context4.next = 28;
                    break;
                  }

                  return _context4.abrupt("return");

                case 28:
                  node = new Node(imageKey);
                  node.layer = Layers.Enum.UI_2D;
                  node.addComponent(UITransform).setAnchorPoint(0, 1);
                  this.aniNode.addChild(node);
                  sp = node.addComponent(Sprite);
                  sp.spriteFrame = textures[imageKey];
                  track = new SvgaTrack(node, _frames);
                  track.resetValue();
                  this.tracks.push(track);

                case 37:
                  i++;
                  _context4.next = 24;
                  break;

                case 40:
                case "end":
                  return _context4.stop();
              }
            }, _callee3, this);
          }));

          function _load() {
            return _load2.apply(this, arguments);
          }

          return _load;
        }();

        _createClass(Svga, [{
          key: "svga",
          get: function get() {
            return this._svga;
          },
          set: function set(svga) {
            var _this3 = this;

            if (svga !== this._svga) {
              this._svga = svga;

              this._load().then(function () {
                _this3.play(0);
              });
            }
          }
        }, {
          key: "loop",
          get: function get() {
            return this._loop;
          },
          set: function set(loop) {
            this._loop = loop;
            CC_EDITOR && this.play();
          } // 总时间，秒计

        }, {
          key: "totalTime",
          get: function get() {
            return this._totalFrames * (1 / this.fps) || 0;
          }
        }, {
          key: "totalFrames",
          get: function get() {
            return this._totalFrames;
          }
        }, {
          key: "fps",
          get: function get() {
            var _this$vmData;

            return this._fps || ((_this$vmData = this.vmData) == null ? void 0 : _this$vmData.FPS) || 0;
          },
          set: function set(fps) {
            this._fps = fps;
            this._frameTime = 1 / fps;
          }
        }, {
          key: "curTime",
          get: function get() {
            return this._curTime;
          },
          set: function set(time) {
            this._curTime = time;
            this._curFrame = time * this.fps;
          }
        }, {
          key: "curFrame",
          get: function get() {
            return this._curFrame;
          },
          set: function set(frame) {
            this._curFrame = frame;
            this._curTime = frame / this.fps;
          }
        }]);

        return Svga;
      }(Component), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "_svga", [_dec2], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _applyDecoratedDescriptor(_class2.prototype, "svga", [_dec3], Object.getOwnPropertyDescriptor(_class2.prototype, "svga"), _class2.prototype), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "autoPlay", [_dec4], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return true;
        }
      }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "_loop", [property], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return false;
        }
      }), _applyDecoratedDescriptor(_class2.prototype, "loop", [_dec5], Object.getOwnPropertyDescriptor(_class2.prototype, "loop"), _class2.prototype), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "_fps", [property], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 0;
        }
      }), _applyDecoratedDescriptor(_class2.prototype, "fps", [property], Object.getOwnPropertyDescriptor(_class2.prototype, "fps"), _class2.prototype)), _class2)) || _class) || _class) || _class) || _class) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/SvgaEvent.ts", ['cc'], function (exports) {
  var cclegacy;
  return {
    setters: [function (module) {
      cclegacy = module.cclegacy;
    }],
    execute: function () {
      cclegacy._RF.push({}, "07040GmslJHs7J1pUxL6Kr7", "SvgaEvent", undefined);

      var SvgaEvent = exports('SvgaEvent', /*#__PURE__*/function (SvgaEvent) {
        SvgaEvent["END_FRAME"] = "end_frame";
        return SvgaEvent;
      }({}));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/SvgaOffScreen.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc'], function (exports) {
  var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, _createClass, _asyncToGenerator, _regeneratorRuntime, cclegacy, _decorator, Sprite, Asset, Component, SpriteFrame;

  return {
    setters: [function (module) {
      _applyDecoratedDescriptor = module.applyDecoratedDescriptor;
      _inheritsLoose = module.inheritsLoose;
      _initializerDefineProperty = module.initializerDefineProperty;
      _assertThisInitialized = module.assertThisInitialized;
      _createClass = module.createClass;
      _asyncToGenerator = module.asyncToGenerator;
      _regeneratorRuntime = module.regeneratorRuntime;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      Sprite = module.Sprite;
      Asset = module.Asset;
      Component = module.Component;
      SpriteFrame = module.SpriteFrame;
    }],
    execute: function () {
      var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;

      cclegacy._RF.push({}, "da2fai0MLZFna5anH+ob1ss", "SvgaOffScreen", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property,
          requireComponent = _decorator.requireComponent;
      var menu = _decorator.menu;
      var disallowMultiple = _decorator.disallowMultiple;
      var executeInEditMode = _decorator.executeInEditMode;
      var playOnFocus = _decorator.playOnFocus;
      var wran = "⚠️实验组件，性能很差，不建议使用";
      var SvgaOffScreen = exports('default', (_dec = ccclass("SvgaOffScreen"), _dec2 = requireComponent(Sprite), _dec3 = menu('自定义组件/Svga离屏渲染器(⚠️实验)(⚠️性能很差)'), _dec4 = property({
        tooltip: wran,
        displayName: wran
      }), _dec5 = property(Asset), _dec6 = property(Asset), _dec7 = property({
        tooltip: "是否自动播放"
      }), _dec8 = property({
        tooltip: "是否循环"
      }), _dec(_class = executeInEditMode(_class = disallowMultiple(_class = playOnFocus(_class = _dec2(_class = _dec3(_class = (_class2 = /*#__PURE__*/function (_Component) {
        _inheritsLoose(SvgaOffScreen, _Component);

        function SvgaOffScreen() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _Component.call.apply(_Component, [this].concat(args)) || this;

          _initializerDefineProperty(_this, "tips", _descriptor, _assertThisInitialized(_this));
          /************************ on Editor ************************/


          _this.edit_update = false;
          /************************ on Editor ************************/

          /************************  ************************/

          _initializerDefineProperty(_this, "_svga", _descriptor2, _assertThisInitialized(_this)); // 初始化就播放


          _initializerDefineProperty(_this, "autoPlay", _descriptor3, _assertThisInitialized(_this)); // 是否循环


          _initializerDefineProperty(_this, "_loop", _descriptor4, _assertThisInitialized(_this));

          _this.isPlaying = false;
          _this.canvas = null;
          _this.sf = void 0;
          _this.player = void 0; // fps

          _initializerDefineProperty(_this, "_fps", _descriptor5, _assertThisInitialized(_this));

          return _this;
        }

        var _proto = SvgaOffScreen.prototype;

        _proto.onFocusInEditor = function onFocusInEditor() {
          this.edit_update = true;
          this.play(0);
        };

        _proto.onLostFocusInEditor = function onLostFocusInEditor() {
          this.edit_update = false;
        };

        _proto.resetInEditor = /*#__PURE__*/function () {
          var _resetInEditor = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
            return _regeneratorRuntime().wrap(function _callee$(_context) {
              while (1) switch (_context.prev = _context.next) {
                case 0:
                  _context.next = 2;
                  return this.mount();

                case 2:
                  this.edit_update = true;
                  this.play(0);

                case 4:
                case "end":
                  return _context.stop();
              }
            }, _callee, this);
          }));

          function resetInEditor() {
            return _resetInEditor.apply(this, arguments);
          }

          return resetInEditor;
        }();

        _proto.onEnable = function onEnable() {
          CC_EDITOR && this.play(0);
        };

        _proto.onLoad = /*#__PURE__*/function () {
          var _onLoad = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
            return _regeneratorRuntime().wrap(function _callee2$(_context2) {
              while (1) switch (_context2.prev = _context2.next) {
                case 0:
                  console.warn("[" + this.name + "] -> " + wran);
                  this.canvas = document.createElement("canvas");
                  this.player = new SVGA.Player({
                    container: this.canvas,
                    isUseIntersectionObserver: false,
                    isCacheFrames: false,
                    loop: this.loop ? 0 : 1
                  });
                  _context2.next = 6;
                  return this.mount();

                case 6:
                  this.sf = SpriteFrame.createWithImage(this.canvas);
                  this.getComponent(Sprite).spriteFrame = this.sf;

                case 8:
                case "end":
                  return _context2.stop();
              }
            }, _callee2, this);
          }));

          function onLoad() {
            return _onLoad.apply(this, arguments);
          }

          return onLoad;
        }();

        _proto.start = function start() {};

        _proto.mount = /*#__PURE__*/function () {
          var _mount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
            return _regeneratorRuntime().wrap(function _callee3$(_context3) {
              while (1) switch (_context3.prev = _context3.next) {
                case 0:
                  if (this.svga) {
                    _context3.next = 2;
                    break;
                  }

                  return _context3.abrupt("return");

                case 2:
                  this.canvas.width = this.svga["_file"].size.width;
                  this.canvas.height = this.svga["_file"].size.height;
                  _context3.next = 6;
                  return this.player.mount(this.svga["_file"]);

                case 6:
                  this.fps = this.fps;
                  if (this.autoPlay) this.play(0);

                case 8:
                case "end":
                  return _context3.stop();
              }
            }, _callee3, this);
          }));

          function mount() {
            return _mount.apply(this, arguments);
          }

          return mount;
        }();

        _proto.update = function update(dt) {
          var _this$sf;

          ((_this$sf = this.sf) == null ? void 0 : _this$sf.texture).updateImage();
        };

        _proto.onDestroy = function onDestroy() {
          this.player.destroy();
        };

        _proto.play = function play(frame) {
          if (frame === void 0) {
            frame = 0;
          }

          if (!this.player) return;
          this.player.start();
          this.curFrame = frame;
          this.isPlaying = true;
          return this;
        };

        _proto.stop = function stop(isReset) {
          if (isReset === void 0) {
            isReset = false;
          }

          if (!this.player) return;
          if (isReset) this.curFrame = 0;
          this.player.stop();
          this.isPlaying = false;
          return this;
        } // 总时间，秒计
        ;

        _createClass(SvgaOffScreen, [{
          key: "svga",
          get: function get() {
            return this._svga;
          },
          set: function set(svga) {
            this._svga = svga;
            this.mount();
          }
        }, {
          key: "loop",
          get: function get() {
            return this._loop;
          },
          set: function set(loop) {
            this._loop = loop;
            this.player.config.loop = loop ? 0 : 1;
            this.player.animator.loop = loop ? Infinity : 1;
            CC_EDITOR && this.play();
          }
        }, {
          key: "totalTime",
          get: function get() {
            var _this$player$animator;

            return ((_this$player$animator = this.player.animator) == null ? void 0 : _this$player$animator.duration) / 1000;
          }
        }, {
          key: "totalFrames",
          get: // 总帧数
          function get() {
            return this.player.totalFrames;
          }
        }, {
          key: "fps",
          get: function get() {
            var _this$player;

            return this._fps || ((_this$player = this.player) == null || (_this$player = _this$player.videoEntity) == null ? void 0 : _this$player.fps) || 0;
          },
          set: function set(fps) {
            this._fps = fps;

            if (this.player.videoEntity) {
              this.player.videoEntity.fps = fps;
              this.player.animator.duration = this.player.videoEntity.frames * (1.0 / fps) * 1000;
            }
          } // 当前帧

        }, {
          key: "curFrame",
          get: function get() {
            return this.player.currentFrame;
          },
          set: function set(frame) {
            this.player.currentFrame = frame;
            this.player.animator && (this.player.animator.startValue = frame);
          }
        }]);

        return SvgaOffScreen;
      }(Component), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "tips", [_dec4], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return true;
        }
      }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "_svga", [_dec5], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _applyDecoratedDescriptor(_class2.prototype, "svga", [_dec6], Object.getOwnPropertyDescriptor(_class2.prototype, "svga"), _class2.prototype), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "autoPlay", [_dec7], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return true;
        }
      }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "_loop", [property], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return false;
        }
      }), _applyDecoratedDescriptor(_class2.prototype, "loop", [_dec8], Object.getOwnPropertyDescriptor(_class2.prototype, "loop"), _class2.prototype), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "_fps", [property], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 0;
        }
      }), _applyDecoratedDescriptor(_class2.prototype, "fps", [property], Object.getOwnPropertyDescriptor(_class2.prototype, "fps"), _class2.prototype)), _class2)) || _class) || _class) || _class) || _class) || _class) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/SvgaTest.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc'], function (exports) {
  var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, cclegacy, _decorator, Node, instantiate, Component;

  return {
    setters: [function (module) {
      _applyDecoratedDescriptor = module.applyDecoratedDescriptor;
      _inheritsLoose = module.inheritsLoose;
      _initializerDefineProperty = module.initializerDefineProperty;
      _assertThisInitialized = module.assertThisInitialized;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      Node = module.Node;
      instantiate = module.instantiate;
      Component = module.Component;
    }],
    execute: function () {
      var _dec, _dec2, _class, _class2, _descriptor;

      cclegacy._RF.push({}, "e9619b8D4xBUqSXWxmEhSJJ", "SvgaTest", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var SvgaTest = exports('SvgaTest', (_dec = ccclass('SvgaTest'), _dec2 = property(Node), _dec(_class = (_class2 = /*#__PURE__*/function (_Component) {
        _inheritsLoose(SvgaTest, _Component);

        function SvgaTest() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _Component.call.apply(_Component, [this].concat(args)) || this;

          _initializerDefineProperty(_this, "testNode", _descriptor, _assertThisInitialized(_this));

          return _this;
        }

        var _proto = SvgaTest.prototype;

        _proto.start = function start() {
          for (var i = 0; i < 50; i++) {
            var node = instantiate(this.testNode);
            node.parent = this.node;
          }
        };

        _proto.update = function update(deltaTime) {};

        return SvgaTest;
      }(Component), _descriptor = _applyDecoratedDescriptor(_class2.prototype, "testNode", [_dec2], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _class2)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/SvgaTrack.ts", ['cc'], function (exports) {
  var cclegacy, misc, Sprite, mat4, color;
  return {
    setters: [function (module) {
      cclegacy = module.cclegacy;
      misc = module.misc;
      Sprite = module.Sprite;
      mat4 = module.mat4;
      color = module.color;
    }],
    execute: function () {
      cclegacy._RF.push({}, "5eefe9b92lAU4GY+nBw9mG4", "SvgaTrack", undefined);

      var SvgaTrack = exports('SvgaTrack', /*#__PURE__*/function () {
        function SvgaTrack(node, frames) {
          this.tempMat = mat4();
          this.tempColor = color(255, 255, 255, 255);
          this.node = node;
          this.frames = frames;
        }

        var _proto = SvgaTrack.prototype;
        /**
         * 这里用的帧数
         * @param time 帧小数
         */

        _proto.setValue = function setValue(time) {
          var node = this.node,
              frames = this.frames,
              tempColor = this.tempColor,
              tempMat = this.tempMat; // time = time % this.frames.length;
          //处理time

          time = Math.round(misc.clampf(time, 0, frames.length - 1)); //找对应数据

          var _frames$time = frames[time],
              alpha = _frames$time.alpha,
              transform = _frames$time.transform,
              maskPath = _frames$time.maskPath; // layout不晓得干嘛用，暂不管

          if (alpha < 0.05) {
            tempColor.a = 0;
            node.getComponent(Sprite).color = tempColor;
          } else {
            tempColor.a = alpha * 255;
            node.getComponent(Sprite).color = tempColor;
            var a = transform.a,
                b = transform.b,
                c = transform.c,
                d = transform.d,
                tx = transform.tx,
                ty = transform.ty;
            tempMat.m00 = a;
            tempMat.m01 = b;
            tempMat.m04 = -c;
            tempMat.m05 = -d;
            tempMat.m12 = tx;
            tempMat.m13 = ty;
            node.matrix = tempMat;
          }
        };

        _proto.resetValue = function resetValue() {
          // @ts-ignore
          // 重置计算本地矩阵的标记，让渲染器不计算本地矩阵，不重置的话，会在刚开始的时候计算一次
          // this.node._renderFlag &= ~cc.RenderFlow.FLAG_LOCAL_TRANSFORM;
          this.setValue(0);
        };

        _proto.destroy = function destroy() {
          this.node = null; // this.frames.length = 0;  // 不能加！！！
        };

        return SvgaTrack;
      }());

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/TaskCenter.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './UIFast.ts', './WebNet.ts', './const.ts', './ShareCenter.ts', './appFn.ts'], function (exports) {
  var _createClass, _asyncToGenerator, _regeneratorRuntime, _createForOfIteratorHelperLoose, cclegacy, showToast, sendWebNet, WebNetName, sendWebNetWithToken, SHARE_TYPE, ShareCenter, appJump;

  return {
    setters: [function (module) {
      _createClass = module.createClass;
      _asyncToGenerator = module.asyncToGenerator;
      _regeneratorRuntime = module.regeneratorRuntime;
      _createForOfIteratorHelperLoose = module.createForOfIteratorHelperLoose;
    }, function (module) {
      cclegacy = module.cclegacy;
    }, function (module) {
      showToast = module.showToast;
    }, function (module) {
      sendWebNet = module.sendWebNet;
      WebNetName = module.WebNetName;
      sendWebNetWithToken = module.sendWebNetWithToken;
    }, function (module) {
      SHARE_TYPE = module.SHARE_TYPE;
    }, function (module) {
      ShareCenter = module.default;
    }, function (module) {
      appJump = module.appJump;
    }],
    execute: function () {
      cclegacy._RF.push({}, "4d4cfFEJCxPJabmLQKDKwsF", "TaskCenter", undefined);

      var TaskCenter = exports('default', /*#__PURE__*/function () {
        function TaskCenter() {
          /** 任务信息 */
          this._taskInfo = {};
          /** 当前的tab */

          this._tab = null;
        }

        var _proto = TaskCenter.prototype;
        /** 查询任务 */

        _proto.getTaskInfo = /*#__PURE__*/function () {
          var _getTaskInfo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
            var res, _res$data, temp, _iterator, _step, _res$data2, item, desc, _Object$keys;

            return _regeneratorRuntime().wrap(function _callee$(_context) {
              while (1) switch (_context.prev = _context.next) {
                case 0:
                  _context.next = 2;
                  return sendWebNet(WebNetName.queryTasks);

                case 2:
                  res = _context.sent;

                  if (res != null && res.success) {
                    TaskCenter.ins.taskInfo = (res == null || (_res$data = res.data) == null ? void 0 : _res$data.item) || [];
                    temp = {};

                    for (_iterator = _createForOfIteratorHelperLoose((res == null || (_res$data2 = res.data) == null ? void 0 : _res$data2.item) || []); !(_step = _iterator()).done;) {
                      item = _step.value;
                      desc = JSON.parse(item == null ? void 0 : item.desc);

                      if (!!temp[desc.tabType]) {
                        temp[desc.tabType].push(item);
                      } else {
                        temp[desc.tabType] = [item];
                      }
                    }

                    TaskCenter.ins.taskInfo = temp;

                    if (!!!TaskCenter.ins.tab) {
                      TaskCenter.ins.tab = (_Object$keys = Object.keys(temp)) == null ? void 0 : _Object$keys[0];
                    }
                  }

                case 4:
                case "end":
                  return _context.stop();
              }
            }, _callee);
          }));

          function getTaskInfo() {
            return _getTaskInfo.apply(this, arguments);
          }

          return getTaskInfo;
        }()
        /** 完成任务 */
        ;

        _proto.doCompleted = /*#__PURE__*/function () {
          var _doCompleted = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(taskCode) {
            var res;
            return _regeneratorRuntime().wrap(function _callee2$(_context2) {
              while (1) switch (_context2.prev = _context2.next) {
                case 0:
                  _context2.next = 2;
                  return sendWebNetWithToken(WebNetName.doCompleted, {
                    taskCode: taskCode
                  });

                case 2:
                  res = _context2.sent;

                  if (res != null && res.success) {
                    this.getTaskInfo();
                  }

                case 4:
                case "end":
                  return _context2.stop();
              }
            }, _callee2, this);
          }));

          function doCompleted(_x) {
            return _doCompleted.apply(this, arguments);
          }

          return doCompleted;
        }()
        /** 设置tab */
        ;

        _proto.setTab = function setTab(tabName) {
          if (!!!Object.keys(this.taskInfo).includes(tabName)) {
            console.log("不存在该tab");
            return;
          }

          TaskCenter.ins.tab = tabName;
        }
        /** 任务处理中心 */
        ;

        _proto.handleClickTask = /*#__PURE__*/function () {
          var _handleClickTask = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(taskCode, item) {
            var _item;

            var jumpUrl, _item2, _item3, _item4, _item5, _item6, _item9, _item7, _item8, type;

            return _regeneratorRuntime().wrap(function _callee3$(_context3) {
              while (1) switch (_context3.prev = _context3.next) {
                case 0:
                  if (item === void 0) {
                    item = {};
                  }

                  jumpUrl = "";

                  if ((_item = item) != null && _item.jumpUrl) {
                    jumpUrl = (_item2 = item) == null || (_item2 = _item2.jumpUrl) == null || (_item2 = _item2.split("$$$")) == null ? void 0 : _item2[1];
                  }
                  /** 邀请任务 */


                  if (!(taskCode != null && taskCode.startsWith("it"))) {
                    _context3.next = 7;
                    break;
                  }

                  ShareCenter.ins.doShare(SHARE_TYPE.INVITE);
                  _context3.next = 19;
                  break;

                case 7:
                  if (!(taskCode != null && taskCode.startsWith("bt"))) {
                    _context3.next = 13;
                    break;
                  }

                  _context3.next = 10;
                  return sendWebNetWithToken(WebNetName.finishBrowseTask, {
                    taskCode: (_item3 = item) == null ? void 0 : _item3.code,
                    taskId: (_item4 = item) == null ? void 0 : _item4.id
                  });

                case 10:
                  appJump(jumpUrl);
                  _context3.next = 19;
                  break;

                case 13:
                  if (!(taskCode != null && taskCode.startsWith("tt"))) {
                    _context3.next = 19;
                    break;
                  }

                  if (!(!((_item5 = item) != null && _item5.extra) || ((_item6 = item) == null ? void 0 : _item6.extra) == 0)) {
                    _context3.next = 17;
                    break;
                  }

                  _context3.next = 17;
                  return sendWebNetWithToken(WebNetName.claimThirdTask, {
                    taskCode: (_item7 = item) == null ? void 0 : _item7.code,
                    taskId: (_item8 = item) == null ? void 0 : _item8.id
                  });

                case 17:
                  type = (_item9 = item) == null ? void 0 : _item9.code.split("_")[1];

                  if (type == "t") {
                    // 行方交易任务
                    appJump(jumpUrl);
                  } else if (type == "s") {
                    // 行方签约任务
                    appJump(jumpUrl);
                  }

                case 19:
                case "end":
                  return _context3.stop();
              }
            }, _callee3);
          }));

          function handleClickTask(_x2, _x3) {
            return _handleClickTask.apply(this, arguments);
          }

          return handleClickTask;
        }()
        /** 领取奖励 */
        ;

        _proto.receivePrize = /*#__PURE__*/function () {
          var _receivePrize = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(item) {
            var res;
            return _regeneratorRuntime().wrap(function _callee4$(_context4) {
              while (1) switch (_context4.prev = _context4.next) {
                case 0:
                  _context4.next = 2;
                  return sendWebNetWithToken(WebNetName.sendPrize, item);

                case 2:
                  res = _context4.sent;

                  if (res != null && res.success) {
                    this.getTaskInfo();
                    sendWebNet(WebNetName.index);
                    showToast("任务完成，奖励已发放");
                  }

                case 4:
                case "end":
                  return _context4.stop();
              }
            }, _callee4, this);
          }));

          function receivePrize(_x4) {
            return _receivePrize.apply(this, arguments);
          }

          return receivePrize;
        }();

        _createClass(TaskCenter, [{
          key: "taskInfo",
          get: function get() {
            return this._taskInfo;
          },
          set: function set(data) {
            this._taskInfo = data;
          }
        }, {
          key: "taskTabInfo",
          get: function get() {
            return this._taskInfo[this._tab];
          }
        }, {
          key: "tab",
          get: function get() {
            return this._tab;
          },
          set: function set(tabName) {
            this._tab = tabName;
          }
        }], [{
          key: "ins",
          get: function get() {
            !TaskCenter._ins && (TaskCenter._ins = new TaskCenter());
            return TaskCenter._ins;
          }
        }]);

        return TaskCenter;
      }());
      TaskCenter._ins = null;

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/TaskItem.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './ScrollListItem.ts', './TaskCenter.ts', './Utils.ts'], function (exports) {
  var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, cclegacy, _decorator, Node, Label, Button, ScrollListItem, TaskCenter, strFormat;

  return {
    setters: [function (module) {
      _applyDecoratedDescriptor = module.applyDecoratedDescriptor;
      _inheritsLoose = module.inheritsLoose;
      _initializerDefineProperty = module.initializerDefineProperty;
      _assertThisInitialized = module.assertThisInitialized;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      Node = module.Node;
      Label = module.Label;
      Button = module.Button;
    }, function (module) {
      ScrollListItem = module.ScrollListItem;
    }, function (module) {
      TaskCenter = module.default;
    }, function (module) {
      strFormat = module.strFormat;
    }],
    execute: function () {
      var _dec, _dec2, _dec3, _dec4, _class, _class2, _descriptor, _descriptor2, _descriptor3;

      cclegacy._RF.push({}, "151e91qTiRDkb9LpaqbumwF", "TaskItem", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var TaskItem = exports('TaskItem', (_dec = ccclass("TaskItem"), _dec2 = property(Node), _dec3 = property(Node), _dec4 = property(Node), _dec(_class = (_class2 = /*#__PURE__*/function (_ScrollListItem) {
        _inheritsLoose(TaskItem, _ScrollListItem);

        function TaskItem() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _ScrollListItem.call.apply(_ScrollListItem, [this].concat(args)) || this;

          _initializerDefineProperty(_this, "doComplete", _descriptor, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "receivePrize", _descriptor2, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "completed", _descriptor3, _assertThisInitialized(_this));

          _this.isClick = false;
          return _this;
        }

        var _proto = TaskItem.prototype;

        _proto.start = function start() {};

        _proto.onItemRender = function onItemRender(data) {
          var _data$options;

          console.log("index: " + data);
          this.node.getChildByName("Title").getComponent(Label).string = strFormat(data == null ? void 0 : data.title, 24);
          this.node.getChildByName("SubTitle").getComponent(Label).string = "\u6311\u6218\u6B21\u6570+" + (data == null || (_data$options = data.options) == null || (_data$options = _data$options[0]) == null ? void 0 : _data$options.sendCount);

          switch ((data == null ? void 0 : data.taskStatus) + "") {
            case "0":
              {
                var _data$code, _data$code2, _data$code3;

                this.doComplete.on(Button.EventType.CLICK, this.doCompleteFunc(data == null ? void 0 : data.code, data), this);
                this.doComplete.active = true;
                this.receivePrize.active = false;
                this.completed.active = false;

                if (data != null && (_data$code = data.code) != null && _data$code.startsWith("it")) {
                  this.node.getChildByPath("BtnGroup/Name").getComponent(Label).string = "去邀请";
                } else if (data != null && (_data$code2 = data.code) != null && _data$code2.startsWith("bt")) {
                  this.node.getChildByPath("BtnGroup/Name").getComponent(Label).string = "去完成";
                } else if (data != null && (_data$code3 = data.code) != null && _data$code3.startsWith("tt")) {
                  this.node.getChildByPath("BtnGroup/Name").getComponent(Label).string = "立即报名";
                } else {
                  this.node.getChildByPath("BtnGroup/Name").getComponent(Label).string = "去完成";
                }

                break;
              }

            case "1":
              {
                this.receivePrize.on(Button.EventType.CLICK, this.receivePrizeFunc(data), this);
                this.doComplete.active = false;
                this.receivePrize.active = true;
                this.completed.active = false;
                this.node.getChildByPath("BtnGroup/Name").getComponent(Label).string = "待领取";
                break;
              }

            case "2":
              {
                this.doComplete.active = false;
                this.receivePrize.active = false;
                this.completed.active = true;

                if ((data == null ? void 0 : data.intervalType) == 1) {
                  this.node.getChildByPath("BtnGroup/Name").getComponent(Label).string = "明日再来";
                } else {
                  this.node.getChildByPath("BtnGroup/Name").getComponent(Label).string = "已完成";
                }

                break;
              }
          }
        }
        /** 去完成 */
        ;

        _proto.doCompleteFunc = function doCompleteFunc(taskCode, item) {
          var _this2 = this;

          return function () {
            console.log("****去完成");
            if (_this2.isClick) return;
            _this2.isClick = true;
            setTimeout(function () {
              _this2.isClick = false;
            }, 2000);
            TaskCenter.ins.handleClickTask(taskCode, item);
          };
        }
        /** 领取奖励 */
        ;

        _proto.receivePrizeFunc = function receivePrizeFunc(item) {
          var _this3 = this;

          return function () {
            if (_this3.isClick) return;
            _this3.isClick = true;
            setTimeout(function () {
              _this3.isClick = false;
            }, 2000);
            TaskCenter.ins.receivePrize(item);
          };
        };

        return TaskItem;
      }(ScrollListItem), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "doComplete", [_dec2], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "receivePrize", [_dec3], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "completed", [_dec4], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      })), _class2)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/TaskPanel.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './Panel.ts', './ScrollList.ts', './TaskCenter.ts'], function (exports) {
  var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, _createForOfIteratorHelperLoose, _asyncToGenerator, _regeneratorRuntime, cclegacy, _decorator, Node, Prefab, view, Widget, UITransform, instantiate, Label, UIOpacity, Button, Panel, ScrollList, SCROLL_VERTICAL, TaskCenter;

  return {
    setters: [function (module) {
      _applyDecoratedDescriptor = module.applyDecoratedDescriptor;
      _inheritsLoose = module.inheritsLoose;
      _initializerDefineProperty = module.initializerDefineProperty;
      _assertThisInitialized = module.assertThisInitialized;
      _createForOfIteratorHelperLoose = module.createForOfIteratorHelperLoose;
      _asyncToGenerator = module.asyncToGenerator;
      _regeneratorRuntime = module.regeneratorRuntime;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      Node = module.Node;
      Prefab = module.Prefab;
      view = module.view;
      Widget = module.Widget;
      UITransform = module.UITransform;
      instantiate = module.instantiate;
      Label = module.Label;
      UIOpacity = module.UIOpacity;
      Button = module.Button;
    }, function (module) {
      Panel = module.default;
    }, function (module) {
      ScrollList = module.ScrollList;
      SCROLL_VERTICAL = module.SCROLL_VERTICAL;
    }, function (module) {
      TaskCenter = module.default;
    }],
    execute: function () {
      var _dec, _dec2, _dec3, _dec4, _class, _class2, _descriptor, _descriptor2, _descriptor3, _class3;

      cclegacy._RF.push({}, "f327aBwmqRNKoIPip8yqKW1", "TaskPanel", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var TaskPanel = exports('TaskPanel', (_dec = ccclass("TaskPanel"), _dec2 = property({
        type: ScrollList,
        tooltip: "竖行滚动容器"
      }), _dec3 = property(Node), _dec4 = property(Prefab), _dec(_class = (_class2 = (_class3 = /*#__PURE__*/function (_Panel) {
        _inheritsLoose(TaskPanel, _Panel);

        function TaskPanel() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _Panel.call.apply(_Panel, [this].concat(args)) || this;

          _initializerDefineProperty(_this, "vScroll", _descriptor, _assertThisInitialized(_this));
          /** 关闭按钮 */


          _initializerDefineProperty(_this, "closeBtn", _descriptor2, _assertThisInitialized(_this));
          /** tab对象 */


          _initializerDefineProperty(_this, "tebItem", _descriptor3, _assertThisInitialized(_this));

          _this.isClick = false;
          return _this;
        }

        var _proto = TaskPanel.prototype;

        _proto.start = /*#__PURE__*/function () {
          var _start = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
            return _regeneratorRuntime().wrap(function _callee$(_context) {
              while (1) switch (_context.prev = _context.next) {
                case 0:
                  this.closeBtn.on(Button.EventType.CLICK, this.closePannel, this);
                  this.setTaskBoxHeight();
                  _context.next = 4;
                  return TaskCenter.ins.getTaskInfo();

                case 4:
                  this.pannelRender();

                case 5:
                case "end":
                  return _context.stop();
              }
            }, _callee, this);
          }));

          function start() {
            return _start.apply(this, arguments);
          }

          return start;
        }()
        /** 渲染 */
        ;

        _proto.pannelRender = /*#__PURE__*/function () {
          var _pannelRender = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
            return _regeneratorRuntime().wrap(function _callee2$(_context2) {
              while (1) switch (_context2.prev = _context2.next) {
                case 0:
                  this.taskRender();
                  this.tabRender();

                case 2:
                case "end":
                  return _context2.stop();
              }
            }, _callee2, this);
          }));

          function pannelRender() {
            return _pannelRender.apply(this, arguments);
          }

          return pannelRender;
        }()
        /** 任务区域获取 */
        ;

        _proto.setTaskBoxHeight = function setTaskBoxHeight() {
          var taskCanvas = view.getVisibleSize();
          var taskHeightX = taskCanvas.height;
          /** 弹窗中的可滚动总区域，未减去屏幕差 */

          var tab = this.node.getChildByName("Tab");
          var totalHeight = 1624 - tab.getComponent(Widget).top - tab.getComponent(UITransform).height / 2 - 70;
          /** 可滚动区域 */

          var taskListHeight = Math.max(totalHeight - (1624 - taskHeightX) / 2, 200);
          var taskList = this.node.getChildByName("ScrollView");
          var viewContent = taskList.getChildByName("view");
          viewContent.getComponent(UITransform).height = taskListHeight;
          taskList.getComponent(UITransform).height = taskListHeight;
          console.log("scrollView高度: ", taskListHeight);
        }
        /** 任务渲染 */
        ;

        _proto.taskRender = /*#__PURE__*/function () {
          var _taskRender = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
            return _regeneratorRuntime().wrap(function _callee3$(_context3) {
              while (1) switch (_context3.prev = _context3.next) {
                case 0:
                  this.vScroll.setDataList(TaskCenter.ins.taskTabInfo, SCROLL_VERTICAL, [0, 0, 20]);
                  this.vScroll.scrollToTop(0);

                case 2:
                case "end":
                  return _context3.stop();
              }
            }, _callee3, this);
          }));

          function taskRender() {
            return _taskRender.apply(this, arguments);
          }

          return taskRender;
        }()
        /** tab 渲染 */
        ;

        _proto.tabRender = function tabRender() {
          for (var _i = 0, _Object$keys = Object.keys(TaskCenter.ins.taskInfo); _i < _Object$keys.length; _i++) {
            var key = _Object$keys[_i];
            var node = instantiate(this.tebItem);
            node.getChildByName("TabName").getComponent(Label).string = key;

            if (TaskCenter.ins.tab == key) {
              node.getChildByName("Select").getComponent(UIOpacity).opacity = 255;
            }

            node.on(Button.EventType.CLICK, this.changeTab(key), this);
            this.node.getChildByName("Tab").addChild(node);
          }
        }
        /** 切换tab */
        ;

        _proto.changeTab = function changeTab(tabName) {
          var _this2 = this;

          return function () {
            if (_this2.isClick) return;
            _this2.isClick = true;
            setTimeout(function () {
              _this2.isClick = false;
            }, 500);
            TaskCenter.ins.setTab(tabName);
            /** tab更新 */

            for (var _iterator = _createForOfIteratorHelperLoose(_this2.node.getChildByName("Tab").children), _step; !(_step = _iterator()).done;) {
              var node = _step.value;

              if (node.getChildByName("TabName").getComponent(Label).string == TaskCenter.ins.tab) {
                node.getChildByName("Select").getComponent(UIOpacity).opacity = 255;
              } else {
                node.getChildByName("Select").getComponent(UIOpacity).opacity = 0;
              }
            }
            /** 更新任务展示 */


            _this2.taskRender();
          };
        }
        /** 关闭弹窗 */
        ;

        _proto.closePannel = function closePannel() {
          this.hidePanel();
        };

        return TaskPanel;
      }(Panel), _class3.bundle = "", _class3.skin = "TaskPanel", _class3.group = "TaskPanel", _class3), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "vScroll", [_dec2], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: null
      }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "closeBtn", [_dec3], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "tebItem", [_dec4], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      })), _class2)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/test.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc'], function (exports) {
  var _inheritsLoose, cclegacy, _decorator, PhysicsSystem, Component;

  return {
    setters: [function (module) {
      _inheritsLoose = module.inheritsLoose;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      PhysicsSystem = module.PhysicsSystem;
      Component = module.Component;
    }],
    execute: function () {
      var _dec, _class;

      cclegacy._RF.push({}, "e17b1FbFplHM6ji71Cy/wsJ", "test", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var test = exports('test', (_dec = ccclass('test'), _dec(_class = /*#__PURE__*/function (_Component) {
        _inheritsLoose(test, _Component);

        function test() {
          return _Component.apply(this, arguments) || this;
        }

        var _proto = test.prototype;

        _proto.start = function start() {
          PhysicsSystem.instance.enable = true;
        };

        _proto.update = function update(deltaTime) {};

        return test;
      }(Component)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/tgx.ts", ['cc', './AudioMgr.ts', './InputMgr.ts', './ResourceMgr.ts', './SafeJSON.ts', './ResolutionAutoFit.ts', './ModuleContext.ts', './SceneUtils.ts', './FPSCamera.ts', './FollowCamera2D.ts', './FreeCamera.ts', './ThirdPersonCamera.ts', './CharacterMovement.ts', './CharacterMovement2D.ts', './EasyController.ts', './ThirdPersonCameraCtrl.ts', './UI_Joystick.ts'], function (exports) {
  var cclegacy;
  return {
    setters: [function (module) {
      cclegacy = module.cclegacy;
    }, function (module) {
      exports('tgxAudioMgr', module.AudioMgr);
    }, function (module) {
      exports('tgxInputMgr', module.InputMgr);
    }, function (module) {
      exports('tgxResourceMgr', module.ResourceMgr);
    }, function (module) {
      exports('tgxSafeJSON', module.SafeJSON);
    }, function (module) {
      exports('tgxResolutionAutoFit', module.ResolutionAutoFit);
    }, function (module) {
      exports('tgxModuleContext', module.ModuleContext);
    }, function (module) {
      exports('tgxSceneUtil', module.SceneUtil);
    }, function (module) {
      exports('tgxFPSCamera', module.FPSCamera);
    }, function (module) {
      exports('tgxFollowCamera2D', module.FollowCamera2D);
    }, function (module) {
      exports('tgxFreeCamera', module.FreeCamera);
    }, function (module) {
      exports('tgxThirdPersonCamera', module.ThirdPersonCamera);
    }, function (module) {
      exports('tgxCharacterMovement', module.CharacterMovement);
    }, function (module) {
      exports('tgxCharacterMovement2D', module.CharacterMovement2D);
    }, function (module) {
      var _setter = {};
      _setter.tgxEasyController = module.EasyController;
      _setter.tgxEasyControllerEvent = module.EasyControllerEvent;
      exports(_setter);
    }, function (module) {
      exports('tgxThirdPersonCameraCtrl', module.ThirdPersonCameraCtrl);
    }, function (module) {
      exports('tgxUI_Joystick', module.UI_Joystick);
    }],
    execute: function () {
      cclegacy._RF.push({}, "f6affkIabhNnqd5KRuhkVzy", "tgx", undefined);

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/ThirdPersonCamera.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc'], function (exports) {
  var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, cclegacy, _decorator, v3, Node, Vec3, Component;

  return {
    setters: [function (module) {
      _applyDecoratedDescriptor = module.applyDecoratedDescriptor;
      _inheritsLoose = module.inheritsLoose;
      _initializerDefineProperty = module.initializerDefineProperty;
      _assertThisInitialized = module.assertThisInitialized;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      v3 = module.v3;
      Node = module.Node;
      Vec3 = module.Vec3;
      Component = module.Component;
    }],
    execute: function () {
      var _dec, _dec2, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;

      cclegacy._RF.push({}, "0e5acyZ1V5MwY4MXWYmJeO2", "ThirdPersonCamera", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var v3_1 = v3();
      var v3_2 = v3();
      var ROTATION_STRENGTH = 20.0;
      var ThirdPersonCamera = exports('ThirdPersonCamera', (_dec = ccclass('tgxThirdPersonCamera'), _dec2 = property(Node), _dec(_class = (_class2 = /*#__PURE__*/function (_Component) {
        _inheritsLoose(ThirdPersonCamera, _Component);

        function ThirdPersonCamera() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _Component.call.apply(_Component, [this].concat(args)) || this;

          _initializerDefineProperty(_this, "target", _descriptor, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "lookAtOffset", _descriptor2, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "zoomSensitivity", _descriptor3, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "lenMin", _descriptor4, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "lenMax", _descriptor5, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "len", _descriptor6, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "rotateVHSeparately", _descriptor7, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "tweenTime", _descriptor8, _assertThisInitialized(_this));

          _this._targetLen = 0;
          _this._targetAngles = v3();
          return _this;
        }

        var _proto = ThirdPersonCamera.prototype;

        _proto.start = function start() {
          this._targetLen = this.len;

          this._targetAngles.set(this.node.eulerAngles);
        };

        _proto.setLenFactor = function setLenFactor(factor) {
          var len = (this.lenMax - this.lenMin) * factor + this.lenMin;
          this._targetLen = len;
        };

        _proto.setTargetAngles = function setTargetAngles(x, y, z) {
          this._targetAngles.set(x, y, z);
        };

        _proto.lateUpdate = function lateUpdate(deltaTime) {
          if (!this.target) {
            return;
          }

          var t = Math.min(deltaTime / this.tweenTime, 1.0); //rotation

          v3_1.set(this.node.eulerAngles);
          Vec3.lerp(v3_1, v3_1, this._targetAngles, t);
          this.node.setRotationFromEuler(v3_1); //lookat

          v3_1.set(this.target.worldPosition);
          v3_1.add(this.lookAtOffset); //len and position

          this.len = this.len * (1.0 - t) + this._targetLen * t;
          v3_2.set(this.node.forward);
          v3_2.multiplyScalar(this.len);
          v3_1.subtract(v3_2);
          this.node.setPosition(v3_1);
        };

        _proto.onCameraRotate = function onCameraRotate(deltaX, deltaY) {
          var eulerAngles = this.node.eulerAngles;

          if (this.rotateVHSeparately) {
            if (Math.abs(deltaX) > Math.abs(deltaY)) {
              deltaY = 0;
            } else {
              deltaX = 0;
            }
          }

          this._targetAngles.set(eulerAngles.x + deltaX * ROTATION_STRENGTH, eulerAngles.y + deltaY * ROTATION_STRENGTH, eulerAngles.z);
        };

        _proto.onCameraZoom = function onCameraZoom(delta) {
          this._targetLen += delta * this.zoomSensitivity;

          if (this._targetLen < this.lenMin) {
            this._targetLen = this.lenMin;
          }

          if (this._targetLen > this.lenMax) {
            this._targetLen = this.lenMax;
          }
        };

        return ThirdPersonCamera;
      }(Component), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "target", [_dec2], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: null
      }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "lookAtOffset", [property], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return v3();
        }
      }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "zoomSensitivity", [property], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 1.0;
        }
      }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "lenMin", [property], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 1.0;
        }
      }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "lenMax", [property], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 10.0;
        }
      }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "len", [property], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 5;
        }
      }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "rotateVHSeparately", [property], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return false;
        }
      }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "tweenTime", [property], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 0.2;
        }
      })), _class2)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/ThirdPersonCameraCtrl.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './ThirdPersonCamera.ts', './EasyController.ts'], function (exports) {
  var _inheritsLoose, cclegacy, _decorator, ThirdPersonCamera, EasyController, EasyControllerEvent;

  return {
    setters: [function (module) {
      _inheritsLoose = module.inheritsLoose;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
    }, function (module) {
      ThirdPersonCamera = module.ThirdPersonCamera;
    }, function (module) {
      EasyController = module.EasyController;
      EasyControllerEvent = module.EasyControllerEvent;
    }],
    execute: function () {
      var _dec, _class;

      cclegacy._RF.push({}, "6ea3cEV3klIAZnz+Ay66ut+", "ThirdPersonCameraCtrl", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var ThirdPersonCameraCtrl = exports('ThirdPersonCameraCtrl', (_dec = ccclass('tgxThirdPersonCameraCtrl'), _dec(_class = /*#__PURE__*/function (_ThirdPersonCamera) {
        _inheritsLoose(ThirdPersonCameraCtrl, _ThirdPersonCamera);

        function ThirdPersonCameraCtrl() {
          return _ThirdPersonCamera.apply(this, arguments) || this;
        }

        var _proto = ThirdPersonCameraCtrl.prototype;

        _proto.start = function start() {
          EasyController.on(EasyControllerEvent.CAMERA_ROTATE, this.onCameraRotate, this);
          EasyController.on(EasyControllerEvent.CAMERA_ZOOM, this.onCameraZoom, this);
          this._targetLen = this.len;

          this._targetAngles.set(this.node.eulerAngles);
        };

        _proto.onDestroy = function onDestroy() {
          EasyController.off(EasyControllerEvent.CAMERA_ROTATE, this.onCameraRotate, this);
          EasyController.off(EasyControllerEvent.CAMERA_ZOOM, this.onCameraZoom, this);
        };

        return ThirdPersonCameraCtrl;
      }(ThirdPersonCamera)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/TrackedHandler.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './CinestationMath.ts', './CameraHandler.ts'], function (exports) {
  var _inheritsLoose, cclegacy, Vec3, quarticDamp, Vec3_closeTo, CameraHandler;

  return {
    setters: [function (module) {
      _inheritsLoose = module.inheritsLoose;
    }, function (module) {
      cclegacy = module.cclegacy;
      Vec3 = module.Vec3;
    }, function (module) {
      quarticDamp = module.quarticDamp;
      Vec3_closeTo = module.Vec3_closeTo;
    }, function (module) {
      CameraHandler = module.CameraHandler;
    }],
    execute: function () {
      cclegacy._RF.push({}, "394f8KsH69BrKYjKrRxsXm7", "TrackedHandler", undefined);

      var __worldPos = new Vec3();

      var TrackedHandler = exports('TrackedHandler', /*#__PURE__*/function (_CameraHandler) {
        _inheritsLoose(TrackedHandler, _CameraHandler);

        function TrackedHandler() {
          return _CameraHandler.apply(this, arguments) || this;
        }

        var _proto = TrackedHandler.prototype;

        _proto.updateCamera = function updateCamera(deltaTime) {
          var vcam = this._vcam;
          var tracked = vcam.body.tracked;

          if (tracked.path) {
            if (tracked.autoDolly.enable && vcam.follow) {
              var wpos = vcam.follow.worldPosition;
              var progress = tracked.path.findClosestPoint(wpos, tracked.progress, tracked.autoDolly.searchRadius, tracked.autoDolly.searchResolution); //TODO：startSegment

              tracked.progress = quarticDamp(tracked.progress, progress, tracked.damping, deltaTime);
            }

            tracked.path.evaluatePosition(__worldPos, tracked.progress);
          }

          if (!Vec3_closeTo(__worldPos, vcam.node.worldPosition)) {
            vcam.node.worldPosition = __worldPos;
          }
        };

        return TrackedHandler;
      }(CameraHandler));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/Types.ts", ['cc'], function () {
  var cclegacy;
  return {
    setters: [function (module) {
      cclegacy = module.cclegacy;
    }],
    execute: function () {
      cclegacy._RF.push({}, "40519iR4mJJb649sETbQDxH", "Types", undefined);

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/UI_Joystick.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './EasyController.ts'], function (exports) {
  var _inheritsLoose, _createClass, cclegacy, _decorator, KeyCode, UITransform, Input, input, director, isValid, Component, EasyControllerEvent;

  return {
    setters: [function (module) {
      _inheritsLoose = module.inheritsLoose;
      _createClass = module.createClass;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      KeyCode = module.KeyCode;
      UITransform = module.UITransform;
      Input = module.Input;
      input = module.input;
      director = module.director;
      isValid = module.isValid;
      Component = module.Component;
    }, function (module) {
      EasyControllerEvent = module.EasyControllerEvent;
    }],
    execute: function () {
      var _dec, _class, _class2;

      cclegacy._RF.push({}, "0d3fdUMUH1Fq4G13IWj7Lf2", "UI_Joystick", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      /****
       * split screen into three parts.
       * ---------------------------------------------
       *                                              |
       *           1.camera rotation zone             |
       *                                              |
       *----------------------------------------------|
       *                      |                       |
       * 2.movement ctrl zone  | 3.camera rotation zone|
       *                      |                       |
       * ----------------------------------------------
       * 
       * multi-touch for camera zoom.
       *  */

      var UI_Joystick = exports('UI_Joystick', (_dec = ccclass('tgxUI_Joystick'), _dec(_class = (_class2 = /*#__PURE__*/function (_Component) {
        _inheritsLoose(UI_Joystick, _Component);

        function UI_Joystick() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _Component.call.apply(_Component, [this].concat(args)) || this;
          _this._ctrlRoot = null;
          _this._ctrlPointer = null;
          _this._checkerCamera = null;
          _this._buttons = null;
          _this._cameraSensitivity = 0.1;
          _this._distanceOfTwoTouchPoint = 0;
          _this._movementTouch = null;
          _this._cameraTouchA = null;
          _this._cameraTouchB = null;
          _this._scene = null;
          _this._key2buttonMap = {};
          _this._keys = [];
          _this._degree = 0;
          _this._key2dirMap = null;
          return _this;
        }

        var _proto = UI_Joystick.prototype;

        _proto.onLoad = function onLoad() {
          UI_Joystick._inst = this;
          this._key2buttonMap[KeyCode.KEY_J] = 'btn_slot_0';
          this._key2buttonMap[KeyCode.KEY_K] = 'btn_slot_1';
          this._key2buttonMap[KeyCode.KEY_L] = 'btn_slot_2';
          this._key2buttonMap[KeyCode.KEY_U] = 'btn_slot_3';
          this._key2buttonMap[KeyCode.KEY_I] = 'btn_slot_4';
          var checkerCamera = this.node.getChildByName('checker_camera').getComponent(UITransform);
          checkerCamera.node.on(Input.EventType.TOUCH_START, this.onTouchStart_CameraCtrl, this);
          checkerCamera.node.on(Input.EventType.TOUCH_MOVE, this.onTouchMove_CameraCtrl, this);
          checkerCamera.node.on(Input.EventType.TOUCH_END, this.onTouchUp_CameraCtrl, this);
          checkerCamera.node.on(Input.EventType.TOUCH_CANCEL, this.onTouchUp_CameraCtrl, this);
          var checkerMovement = this.node.getChildByName('checker_movement').getComponent(UITransform);
          checkerMovement.node.on(Input.EventType.TOUCH_START, this.onTouchStart_Movement, this);
          checkerMovement.node.on(Input.EventType.TOUCH_MOVE, this.onTouchMove_Movement, this);
          checkerMovement.node.on(Input.EventType.TOUCH_END, this.onTouchUp_Movement, this);
          checkerMovement.node.on(Input.EventType.TOUCH_CANCEL, this.onTouchUp_Movement, this);
          this._checkerCamera = checkerCamera;
          this._ctrlRoot = this.node.getChildByName('ctrl').getComponent(UITransform);
          this._ctrlRoot.node.active = false;
          this._ctrlPointer = this._ctrlRoot.node.getChildByName('pointer');
          this._buttons = this.node.getChildByName('buttons');
          input.on(Input.EventType.KEY_DOWN, this.onKeyDown, this);
          input.on(Input.EventType.KEY_UP, this.onKeyUp, this);
          input.on(Input.EventType.MOUSE_WHEEL, this.onMouseWheel, this);
          this._scene = director.getScene();
        };

        _proto.onDestroy = function onDestroy() {
          input.off(Input.EventType.KEY_DOWN, this.onKeyDown, this);
          input.off(Input.EventType.KEY_UP, this.onKeyUp, this);
          input.off(Input.EventType.MOUSE_WHEEL, this.onMouseWheel, this);
          this._scene = null;
          UI_Joystick._inst = null;
        };

        _proto.cleanKeyMap = function cleanKeyMap() {
          this._key2buttonMap = {};
        };

        _proto.bindKeyToButton = function bindKeyToButton(keyCode, btnName) {
          this._key2buttonMap[keyCode] = btnName;
        };

        _proto.setButtonVisible = function setButtonVisible(btnName, visible) {
          var _this$_buttons;

          var node = (_this$_buttons = this._buttons) == null ? void 0 : _this$_buttons.getChildByName(btnName);

          if (node) {
            node.active = visible;
          }
        };

        _proto.getButtonByName = function getButtonByName(btnName) {
          return this._buttons.getChildByName(btnName);
        };

        _proto.onTouchStart_Movement = function onTouchStart_Movement(event) {
          var touches = event.getTouches();

          for (var i = 0; i < touches.length; ++i) {
            var touch = touches[i];
            var x = touch.getUILocationX();
            var y = touch.getUILocationY();

            if (!this._movementTouch) {
              //we sub halfWidth,halfHeight here.
              //because, the touch event use left bottom as zero point(0,0), ui node use the center of screen as zero point(0,0)
              //this._ctrlRoot.setPosition(x - halfWidth, y - halfHeight, 0);
              var halfWidth = this._checkerCamera.width / 2;
              var halfHeight = this._checkerCamera.height / 2;
              this._ctrlRoot.node.active = true;

              this._ctrlRoot.node.setPosition(x - halfWidth, y - halfHeight, 0);

              this._ctrlPointer.setPosition(0, 0, 0);

              this._movementTouch = touch;
            }
          }
        };

        _proto.onTouchMove_Movement = function onTouchMove_Movement(event) {
          var touches = event.getTouches();

          for (var i = 0; i < touches.length; ++i) {
            var touch = touches[i];

            if (this._movementTouch && touch.getID() == this._movementTouch.getID()) {
              var halfWidth = this._checkerCamera.width / 2;
              var halfHeight = this._checkerCamera.height / 2;
              var x = touch.getUILocationX();
              var y = touch.getUILocationY();
              var pos = this._ctrlRoot.node.position;
              var ox = x - halfWidth - pos.x;
              var oy = y - halfHeight - pos.y;
              var len = Math.sqrt(ox * ox + oy * oy);

              if (len <= 0) {
                return;
              }

              var dirX = ox / len;
              var dirY = oy / len;
              var radius = this._ctrlRoot.width / 2;

              if (len > radius) {
                len = radius;
                ox = dirX * radius;
                oy = dirY * radius;
              }

              this._ctrlPointer.setPosition(ox, oy, 0); // degree 0 ~ 360 based on x axis.


              var degree = Math.atan(dirY / dirX) / Math.PI * 180;

              if (dirX < 0) {
                degree += 180;
              } else {
                degree += 360;
              }

              this.emitEvent(EasyControllerEvent.MOVEMENT, degree, len / radius);
            }
          }
        };

        _proto.onTouchUp_Movement = function onTouchUp_Movement(event) {
          var touches = event.getTouches();

          for (var i = 0; i < touches.length; ++i) {
            var touch = touches[i];

            if (this._movementTouch && touch.getID() == this._movementTouch.getID()) {
              this.emitEvent(EasyControllerEvent.MOVEMENT_STOP);
              this._movementTouch = null;
              this._ctrlRoot.node.active = false;
            }
          }
        };

        _proto.getDistOfTwoTouchPoints = function getDistOfTwoTouchPoints() {
          var touchA = this._cameraTouchA;
          var touchB = this._cameraTouchB;

          if (!touchA || !touchB) {
            return 0;
          }

          var dx = touchA.getLocationX() - touchB.getLocationX();
          var dy = touchB.getLocationY() - touchB.getLocationY();
          return Math.sqrt(dx * dx + dy * dy);
        };

        _proto.onTouchStart_CameraCtrl = function onTouchStart_CameraCtrl(event) {
          this.emitEvent(EasyControllerEvent.SCREEN_TOUCH_START, event);
          var touches = event.getAllTouches();
          this._cameraTouchA = null;
          this._cameraTouchB = null;

          for (var i = touches.length - 1; i >= 0; i--) {
            var touch = touches[i];

            if (this._movementTouch && touch.getID() == this._movementTouch.getID()) {
              continue;
            }

            if (this._cameraTouchA == null) {
              this._cameraTouchA = touches[i];
            } else if (this._cameraTouchB == null) {
              this._cameraTouchB = touches[i];
              break;
            }
          }

          this._distanceOfTwoTouchPoint = this.getDistOfTwoTouchPoints();
        };

        _proto.onTouchMove_CameraCtrl = function onTouchMove_CameraCtrl(event) {
          var touches = event.getTouches();

          for (var i = 0; i < touches.length; ++i) {
            var touch = touches[i];
            var touchID = touch.getID(); //two touches, do camera zoom.

            if (this._cameraTouchA && this._cameraTouchB) {
              console.log(touchID, this._cameraTouchA.getID(), this._cameraTouchB.getID());
              var needZoom = false;

              if (touchID == this._cameraTouchA.getID()) {
                this._cameraTouchA = touch;
                needZoom = true;
              }

              if (touchID == this._cameraTouchB.getID()) {
                this._cameraTouchB = touch;
                needZoom = true;
              }

              if (needZoom) {
                var newDist = this.getDistOfTwoTouchPoints();
                var delta = this._distanceOfTwoTouchPoint - newDist;
                this.emitEvent(EasyControllerEvent.CAMERA_ZOOM, delta);
                this._distanceOfTwoTouchPoint = newDist;
              }
            } //only one touch, do camera rotate.
            else if (this._cameraTouchA && touchID == this._cameraTouchA.getID()) {
                var dt = touch.getDelta();
                var rx = dt.y * this._cameraSensitivity;
                var ry = -dt.x * this._cameraSensitivity;
                this.emitEvent(EasyControllerEvent.CAMERA_ROTATE, rx, ry);
              }
          }
        };

        _proto.onTouchUp_CameraCtrl = function onTouchUp_CameraCtrl(event) {
          this.emitEvent(EasyControllerEvent.SCREEN_TOUCH_END, event);
          var touches = event.getAllTouches();
          var hasTouchA = false;
          var hasTouchB = false;

          for (var i = 0; i < touches.length; ++i) {
            var touch = touches[i];
            var touchID = touch.getID();

            if (this._cameraTouchA && touchID == this._cameraTouchA.getID()) {
              hasTouchA = true;
            } else if (this._cameraTouchB && touchID == this._cameraTouchB.getID()) {
              hasTouchB = true;
            }
          }

          if (!hasTouchA) {
            this._cameraTouchA = null;
          }

          if (!hasTouchB) {
            this._cameraTouchB = null;
          }
        };

        _proto.onKeyDown = function onKeyDown(event) {
          var keyCode = event.keyCode;

          if (keyCode == KeyCode.KEY_A || keyCode == KeyCode.KEY_S || keyCode == KeyCode.KEY_D || keyCode == KeyCode.KEY_W) {
            if (this._keys.indexOf(keyCode) == -1) {
              this._keys.push(keyCode);

              this.updateDirection();
            }
          } else {
            var btnName = this._key2buttonMap[keyCode];

            if (btnName) {
              this.emitEvent(EasyControllerEvent.BUTTON, btnName);
            }
          }
        };

        _proto.onKeyUp = function onKeyUp(event) {
          var keyCode = event.keyCode;

          if (keyCode == KeyCode.KEY_A || keyCode == KeyCode.KEY_S || keyCode == KeyCode.KEY_D || keyCode == KeyCode.KEY_W) {
            var index = this._keys.indexOf(keyCode);

            if (index != -1) {
              this._keys.splice(index, 1);

              this.updateDirection();
            }
          }
        };

        _proto.onMouseWheel = function onMouseWheel(event) {
          var delta = event.getScrollY() * 0.1; //console.log(delta);

          this.emitEvent(EasyControllerEvent.CAMERA_ZOOM, delta);
        };

        _proto.onButtonSlot = function onButtonSlot(event) {
          var btnName = event.target.name;
          this.emitEvent(EasyControllerEvent.BUTTON, btnName);
        };

        _proto.updateDirection = function updateDirection() {
          if (this._key2dirMap == null) {
            this._key2dirMap = {};
            this._key2dirMap[0] = -1;
            this._key2dirMap[KeyCode.KEY_A] = 180;
            this._key2dirMap[KeyCode.KEY_D] = 0;
            this._key2dirMap[KeyCode.KEY_W] = 90;
            this._key2dirMap[KeyCode.KEY_S] = 270;
            this._key2dirMap[KeyCode.KEY_A * 1000 + KeyCode.KEY_W] = this._key2dirMap[KeyCode.KEY_W * 1000 + KeyCode.KEY_A] = 135;
            this._key2dirMap[KeyCode.KEY_D * 1000 + KeyCode.KEY_W] = this._key2dirMap[KeyCode.KEY_W * 1000 + KeyCode.KEY_D] = 45;
            this._key2dirMap[KeyCode.KEY_A * 1000 + KeyCode.KEY_S] = this._key2dirMap[KeyCode.KEY_S * 1000 + KeyCode.KEY_A] = 225;
            this._key2dirMap[KeyCode.KEY_D * 1000 + KeyCode.KEY_S] = this._key2dirMap[KeyCode.KEY_S * 1000 + KeyCode.KEY_D] = 315;
            this._key2dirMap[KeyCode.KEY_A * 1000 + KeyCode.KEY_D] = this._key2dirMap[KeyCode.KEY_D];
            this._key2dirMap[KeyCode.KEY_D * 1000 + KeyCode.KEY_A] = this._key2dirMap[KeyCode.KEY_A];
            this._key2dirMap[KeyCode.KEY_W * 1000 + KeyCode.KEY_S] = this._key2dirMap[KeyCode.KEY_S];
            this._key2dirMap[KeyCode.KEY_S * 1000 + KeyCode.KEY_W] = this._key2dirMap[KeyCode.KEY_W];
          }

          var keyCode0 = this._keys[this._keys.length - 1] || 0;
          var keyCode1 = this._keys[this._keys.length - 2] || 0;
          this._degree = this._key2dirMap[keyCode1 * 1000 + keyCode0];

          if (this._degree == null || this._degree < 0) {
            this.emitEvent(EasyControllerEvent.MOVEMENT_STOP);
          } else {
            this.emitEvent(EasyControllerEvent.MOVEMENT, this._degree, 1.0);
          }
        };

        _proto.emitEvent = function emitEvent(type, arg0, arg1, arg2, arg3, arg4) {
          if (isValid(this._scene)) {
            this._scene.emit(type, arg0, arg1, arg2, arg3, arg4);
          } else {
            console.log('oops!');
          }
        };

        _createClass(UI_Joystick, null, [{
          key: "inst",
          get: function get() {
            return this._inst;
          }
        }]);

        return UI_Joystick;
      }(Component), _class2._inst = null, _class2)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/UIFast.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './UIMgr.ts'], function (exports) {
  var _asyncToGenerator, _regeneratorRuntime, cclegacy, UIMgr;

  return {
    setters: [function (module) {
      _asyncToGenerator = module.asyncToGenerator;
      _regeneratorRuntime = module.regeneratorRuntime;
    }, function (module) {
      cclegacy = module.cclegacy;
    }, function (module) {
      UIMgr = module.UIMgr;
    }],
    execute: function () {
      exports({
        changeScene: changeScene,
        hideAllPanel: hideAllPanel,
        hidePanel: hidePanel,
        hideToast: hideToast,
        hideWaiting: hideWaiting,
        showPanel: showPanel,
        showToast: showToast,
        showWaiting: showWaiting
      });

      cclegacy._RF.push({}, "42c74prs9lCNrLv7UFA2LTY", "UIFast", undefined);

      function changeScene(_x, _x2) {
        return _changeScene.apply(this, arguments);
      }

      function _changeScene() {
        _changeScene = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(cls, data) {
          return _regeneratorRuntime().wrap(function _callee$(_context) {
            while (1) switch (_context.prev = _context.next) {
              case 0:
                _context.next = 2;
                return UIMgr.ins.changeScene(cls, data);

              case 2:
              case "end":
                return _context.stop();
            }
          }, _callee);
        }));
        return _changeScene.apply(this, arguments);
      }

      function showPanel(_x3, _x4, _x5) {
        return _showPanel.apply(this, arguments);
      }

      function _showPanel() {
        _showPanel = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(cls, data, showMask) {
          return _regeneratorRuntime().wrap(function _callee2$(_context2) {
            while (1) switch (_context2.prev = _context2.next) {
              case 0:
                if (data === void 0) {
                  data = {};
                }

                if (showMask === void 0) {
                  showMask = true;
                }

                _context2.next = 4;
                return UIMgr.ins.showPanel(cls, data, showMask);

              case 4:
              case "end":
                return _context2.stop();
            }
          }, _callee2);
        }));
        return _showPanel.apply(this, arguments);
      }

      function hidePanel() {
        UIMgr.ins.hidePanel();
      }

      function hideAllPanel() {
        return _hideAllPanel.apply(this, arguments);
      }

      function _hideAllPanel() {
        _hideAllPanel = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
          return _regeneratorRuntime().wrap(function _callee3$(_context3) {
            while (1) switch (_context3.prev = _context3.next) {
              case 0:
                UIMgr.ins.hideAllPanel();

              case 1:
              case "end":
                return _context3.stop();
            }
          }, _callee3);
        }));
        return _hideAllPanel.apply(this, arguments);
      }

      function showWaiting(mask) {
        if (mask === void 0) {
          mask = true;
        }

        UIMgr.ins.showWaiting(mask);
      }

      function hideWaiting() {
        UIMgr.ins.hideWaiting();
      }

      function showToast(content, mask) {
        if (mask === void 0) {
          mask = false;
        }

        UIMgr.ins.showToast(content, mask);
      }

      function hideToast() {
        UIMgr.ins.hideToast();
      }

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/UILayer.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './Utils.ts'], function (exports) {
  var _inheritsLoose, cclegacy, _decorator, Component, loadAllObject;

  return {
    setters: [function (module) {
      _inheritsLoose = module.inheritsLoose;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      Component = module.Component;
    }, function (module) {
      loadAllObject = module.loadAllObject;
    }],
    execute: function () {
      var _dec, _class;

      cclegacy._RF.push({}, "a032b0Ty6NI274+xBeAzjkP", "UILayer", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var UILayer = exports('UILayer', (_dec = ccclass('UILayer'), _dec(_class = /*#__PURE__*/function (_Component) {
        _inheritsLoose(UILayer, _Component);

        function UILayer() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _Component.call.apply(_Component, [this].concat(args)) || this;
          _this.view = {};
          return _this;
        }

        var _proto = UILayer.prototype;

        _proto.onLoad = function onLoad() {
          this.view = loadAllObject(this.node);
        };

        _proto.start = function start() {};

        _proto.update = function update(deltaTime) {};

        return UILayer;
      }(Component)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/UIMgr.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './RES.ts'], function (exports) {
  var _createClass, _asyncToGenerator, _regeneratorRuntime, cclegacy, UITransform, Node, Widget, error, Prefab, instantiate, director, UIOpacity, Label, tween, assetManager, RES;

  return {
    setters: [function (module) {
      _createClass = module.createClass;
      _asyncToGenerator = module.asyncToGenerator;
      _regeneratorRuntime = module.regeneratorRuntime;
    }, function (module) {
      cclegacy = module.cclegacy;
      UITransform = module.UITransform;
      Node = module.Node;
      Widget = module.Widget;
      error = module.error;
      Prefab = module.Prefab;
      instantiate = module.instantiate;
      director = module.director;
      UIOpacity = module.UIOpacity;
      Label = module.Label;
      tween = module.tween;
      assetManager = module.assetManager;
    }, function (module) {
      RES = module.default;
    }],
    execute: function () {
      cclegacy._RF.push({}, "b314f3pHVtLKZvc4RyYCVGa", "UIMgr", undefined);

      var UIMgr = exports('UIMgr', /*#__PURE__*/function () {
        function UIMgr() {
          this.uiCanvas = void 0;
          /********* Scene *********/
          // 节省判断

          this.currentScene = {
            data: undefined
          };
          /********* Scene *********/

          /********* Panel *********/

          this.panel = void 0;
          this.panelMask = void 0;
          this.panelStack = [];
          this.curPanel = null;
          /********* Panel *********/

          /********* Toast *********/

          this.toast = void 0;
          this.toastBg = void 0;
          this.toastLabel = void 0;
          /********* Toast *********/

          /********* Waiting *********/

          this.waiting = void 0;
        }

        var _proto = UIMgr.prototype;

        _proto.createFullScreenNode = function createFullScreenNode() {
          var canvas = this.uiCanvas.getComponent(UITransform);
          var node = new Node();
          node.layer = this.uiCanvas.layer;
          var uiTransform = node.addComponent(UITransform);
          uiTransform.width = canvas.width;
          uiTransform.height = canvas.height;
          var widget = node.addComponent(Widget);
          widget.isAlignBottom = true;
          widget.isAlignTop = true;
          widget.isAlignLeft = true;
          widget.isAlignRight = true;
          widget.left = 0;
          widget.right = 0;
          widget.top = 0;
          widget.bottom = 0;
          return node;
        };

        _proto.setup = function setup(uiPrefab, layerNames) {
          if (this.uiCanvas) {
            return;
          }

          if (!uiPrefab) {
            throw error('必须是Node或Prefab');
          }

          if (uiPrefab instanceof Prefab) {
            this.uiCanvas = instantiate(uiPrefab);
            director.getScene().addChild(this.uiCanvas);
          } else {
            this.uiCanvas = uiPrefab;
          }

          this.uiCanvas.name = '$UICanvas$';
          director.addPersistRootNode(this.uiCanvas);
          this.waiting = this.uiCanvas.getChildByName("Waiting");
          this.panel = this.uiCanvas.getChildByName("Panel");
          this.panelMask = this.panel.getChildByName("mask");
          this.toast = this.uiCanvas.getChildByName("Toast");
          this.toastBg = this.toast.getChildByName("bg");
          this.toastLabel = this.toastBg.getChildByName("label");
          this.waiting.active = false;
          this.toast.active = false;
        };

        UIMgr.changeScene = /*#__PURE__*/function () {
          var _changeScene = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(cls, data) {
            return _regeneratorRuntime().wrap(function _callee$(_context) {
              while (1) switch (_context.prev = _context.next) {
                case 0:
                  if (data === void 0) {
                    data = {};
                  }

                  _context.next = 3;
                  return UIMgr.ins.changeScene(cls, data);

                case 3:
                case "end":
                  return _context.stop();
              }
            }, _callee);
          }));

          function changeScene(_x, _x2) {
            return _changeScene.apply(this, arguments);
          }

          return changeScene;
        }();

        _proto.changeScene = /*#__PURE__*/function () {
          var _changeScene2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(cls, data) {
            var _this = this;

            var skin, _cls$group, group, bundle, loadPs, assetBundle;

            return _regeneratorRuntime().wrap(function _callee2$(_context2) {
              while (1) switch (_context2.prev = _context2.next) {
                case 0:
                  if (data === void 0) {
                    data = {};
                  }

                  skin = cls.skin, _cls$group = cls.group, group = _cls$group === void 0 ? skin : _cls$group, bundle = cls.bundle;
                  loadPs = [];

                  if (bundle) {
                    assetBundle = assetManager.getBundle(bundle);

                    if (!assetBundle) {
                      loadPs.push(new Promise(function (resolve, reject) {
                        assetManager.loadBundle(bundle, function (err, loadedBundle) {
                          if (err) {
                            reject(err);
                          } else {
                            resolve();
                          }
                        });
                      }));
                    }
                  } else {
                    if (Array.isArray(group)) {
                      group.forEach(function (item) {
                        loadPs.push(RES.loadDir(item));
                      });
                    } else {
                      loadPs.push(RES.loadDir(group));
                    }
                  }

                  this.showWaiting();
                  _context2.next = 7;
                  return Promise.all(loadPs);

                case 7:
                  cls.data = data;
                  director.loadScene(skin, function () {
                    _this.hideWaiting();

                    _this.currentScene = cls;
                  }, function () {
                    _this.currentScene.data = {};
                  });

                case 9:
                case "end":
                  return _context2.stop();
              }
            }, _callee2, this);
          }));

          function changeScene(_x3, _x4) {
            return _changeScene2.apply(this, arguments);
          }

          return changeScene;
        }();

        _proto.showPanel = /*#__PURE__*/function () {
          var _showPanel = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(cls, data, showMask) {
            var skin, _cls$group2, group, loadPs, resArr, panel, ctrl;

            return _regeneratorRuntime().wrap(function _callee3$(_context3) {
              while (1) switch (_context3.prev = _context3.next) {
                case 0:
                  if (data === void 0) {
                    data = {};
                  }

                  if (showMask === void 0) {
                    showMask = true;
                  }

                  skin = cls.skin, _cls$group2 = cls.group, group = _cls$group2 === void 0 ? skin : _cls$group2, cls.bundle;
                  loadPs = [];
                  loadPs.push(RES.loadRes(skin + "/" + skin, Prefab));

                  if (Array.isArray(group)) {
                    group.forEach(function (item) {
                      loadPs.push(RES.loadDir(item));
                    });
                  } else {
                    loadPs.push(RES.loadDir(group));
                  }

                  this.showWaiting();
                  _context3.next = 9;
                  return Promise.all(loadPs);

                case 9:
                  resArr = _context3.sent;
                  this.hideWaiting(); // 当前弹窗处理

                  if (this.curPanel) {
                    this.curPanel.node.active = false;
                    this.panelStack.push(this.curPanel);
                  }

                  this.panelMask.active = true;

                  if (showMask) {
                    this.panelMask.getComponent(UIOpacity).opacity = 170;
                  } else {
                    this.panelMask.getComponent(UIOpacity).opacity = 0;
                  }

                  panel = instantiate(resArr[0]);
                  ctrl = panel.getComponent(skin); // 2023/12/22 如果没有这个脚本，就直接添加

                  if (!ctrl) {
                    ctrl = panel.addComponent(skin);
                  }

                  this.panel.active = true;
                  this.panel.addChild(panel);
                  panel.layer = this.panel.layer;
                  ctrl.data = data;
                  ctrl.onShow();
                  this.curPanel = {
                    cls: cls,
                    data: data,
                    showMask: showMask,
                    node: panel
                  };
                  return _context3.abrupt("return", ctrl);

                case 24:
                case "end":
                  return _context3.stop();
              }
            }, _callee3, this);
          }));

          function showPanel(_x5, _x6, _x7) {
            return _showPanel.apply(this, arguments);
          }

          return showPanel;
        }();

        _proto.hidePanel = function hidePanel() {
          if (!this.curPanel) return;
          var currPanelNode = this.curPanel.node;
          currPanelNode.destroy();
          this.panel.removeChild(currPanelNode);
          this.panel.active = false;
          this.curPanel = null;
          this.curPanel = this.panelStack.pop();

          if (!!this.curPanel) {
            var _this$curPanel = this.curPanel,
                node = _this$curPanel.node,
                showMask = _this$curPanel.showMask;
            node.active = true;

            if (showMask) {
              this.panel.active = true;
              this.panelMask.getComponent(UIOpacity).opacity = 170;
            }
          }
        };

        _proto.hideAllPanel = function hideAllPanel() {
          this.hidePanel();
          console.log("执行了");

          for (var i = 0; i < this.panelStack.length; i++) {
            this.panelStack[i].node.destroy();
            this.panel.removeChild(this.panelStack[i].node);
          }

          this.panelStack = [];
          this.panelMask.active = false;
          this.curPanel = null;
        };

        UIMgr.showToast = function showToast(content, mask) {
          if (mask === void 0) {
            mask = false;
          }

          UIMgr.ins.showToast(content, mask);
        };

        UIMgr.hideToast = function hideToast() {
          UIMgr.ins.hideToast();
        };

        _proto.showToast = function showToast(content, mask) {
          var _this2 = this;

          if (mask === void 0) {
            mask = false;
          }

          var toastMask = this.toast.getChildByName("mask");
          var uiOpacity = this.toast.getComponent(UIOpacity);
          this.toastLabel.getComponent(Label).string = content.toString();
          this.toast.active = true;
          toastMask.active = mask;
          tween(uiOpacity).stop().to(0.25, {
            opacity: 255
          }).delay(1.7).to(0.25, {
            opacity: 0
          }).call(function () {
            return _this2.hideToast();
          }).start();
        };

        _proto.hideToast = function hideToast() {
          this.toast.active = false;
          tween(this.toast).stop();
        };

        UIMgr.showWaiting = function showWaiting(mask) {
          if (mask === void 0) {
            mask = true;
          }

          UIMgr.ins.showWaiting(mask);
        };

        UIMgr.hideWaiting = function hideWaiting() {
          UIMgr.ins.hideWaiting();
        };

        _proto.showWaiting = function showWaiting(mask) {
          if (mask === void 0) {
            mask = true;
          }

          var waitingRot = this.waiting.getChildByName("waitingRot");
          var waitingMask = this.waiting.getChildByName("mask");
          this.waiting.active = true;
          waitingMask.active = mask;
          tween(waitingRot).repeatForever(tween(waitingRot).by(1, {
            angle: 360
          })).start();
        };

        _proto.hideWaiting = function hideWaiting() {
          var waitingRot = this.waiting.getChildByName("waitingRot");
          this.waiting.active = false;
          tween(waitingRot).stop();
        }
        /********* Waiting *********/
        ;

        _createClass(UIMgr, null, [{
          key: "ins",
          get: function get() {
            if (!UIMgr._ins) UIMgr._ins = new UIMgr();
            return UIMgr._ins;
          }
        }]);

        return UIMgr;
      }());
      UIMgr._ins = null;

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/URLUtils.ts", ['cc'], function (exports) {
  var cclegacy;
  return {
    setters: [function (module) {
      cclegacy = module.cclegacy;
    }],
    execute: function () {
      exports('urlParse', urlParse);

      cclegacy._RF.push({}, "bac65L5Qr9DOp7zav7JnYaI", "URLUtils", undefined);

      function urlParse() {
        var params = {};

        if (!window.location) {
          return params;
        }

        var name, value;
        var str = window.location.href; //取得整个地址栏

        var num = str.indexOf("?");
        str = str.substring(num + 1); //取得所有参数   stringvar.substr(start [, length ]

        var arr = str.split("&"); //各个参数放到数组里

        for (var i = 0; i < arr.length; i++) {
          num = arr[i].indexOf("=");

          if (num > 0) {
            name = arr[i].substring(0, num);
            value = arr[i].substr(num + 1);
            params[name] = value;
          }
        }

        return params;
      }

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/Utils.ts", ['cc', './Svga.ts'], function (exports) {
  var cclegacy, tween, director, Node, SpriteFrame, Texture2D, assetManager, Svga;
  return {
    setters: [function (module) {
      cclegacy = module.cclegacy;
      tween = module.tween;
      director = module.director;
      Node = module.Node;
      SpriteFrame = module.SpriteFrame;
      Texture2D = module.Texture2D;
      assetManager = module.assetManager;
    }, function (module) {
      Svga = module.default;
    }],
    execute: function () {
      exports({
        addButtonClick: addButtonClick,
        getUrlParam: getUrlParam,
        loadAllObject: loadAllObject,
        loadImg: loadImg,
        parseHtml: parseHtml,
        prefixInteger: prefixInteger,
        sleep: sleep,
        strFormat: strFormat,
        wait: wait
      });

      cclegacy._RF.push({}, "27ebdQLIChPppsUOB176LF4", "Utils", undefined);
      /**
       * 添加url的协议头
       * @param url
       * @returns
       */


      var addHttps = exports('addHttps', function addHttps(url) {
        var _url;

        if (url === void 0) {
          url = '';
        }

        url = url || "";
        if (!url.includes('//')) return '';
        return (_url = url) != null && _url.includes('http') ? url : "https:" + url;
      });
      /**
       * 获取分秒
       * @param countDown ms
       * @returns
       */

      var getMS = exports('getMS', function getMS(countDown) {
        if (countDown === void 0) {
          countDown = 0;
        }

        var secondTotal = countDown / 1000;
        var minute = String(Math.floor(secondTotal / 60)).padStart(1, '0'); // 剩余分钟数

        var second = String(Math.floor(secondTotal % 60)).padStart(1, '0'); // 剩余秒数

        return minute + "\u5206" + second + "\u79D2";
      });
      var dateFormatter = exports('dateFormatter', function dateFormatter(date, format) {
        if (format === void 0) {
          format = "yyyy/MM/dd";
        }

        if (!date) return "-";
        date = new Date(typeof date === "string" && isNaN(+date) ? date.replace(/-/g, "/") : Number(date));
        var o = {
          "M+": date.getMonth() + 1,
          "d+": date.getDate(),
          "h+": date.getHours(),
          "m+": date.getMinutes(),
          "s+": date.getSeconds(),
          "q+": Math.floor((date.getMonth() + 3) / 3),
          S: date.getMilliseconds()
        };

        if (/(y+)/.test(format)) {
          format = format.replace(RegExp.$1, (date.getFullYear() + "").substr(4 - RegExp.$1.length));
        }

        for (var k in o) {
          if (new RegExp("(" + k + ")").test(format)) {
            format = format.replace(RegExp.$1, RegExp.$1.length === 1 ? o[k] : ("00" + o[k]).substr(("" + o[k]).length));
          }
        }

        return format;
      });
      var getWeek = exports('getWeek', function getWeek(date) {
        var week = date.getDay();
        if (week == 0) week = 7;
        return week;
      });
      /**
       * 链式取余算法
       * @param ori
       * @param dividend
       * @return {(number|number)[]|*}
       */

      var modAndDivide = exports('modAndDivide', function modAndDivide(ori, dividend) {
        if (typeof ori !== 'number') throw new Error('Error type.');
        if (typeof dividend === 'number') return [ori % dividend, Math.floor(ori / dividend)];else if (Array.isArray(dividend)) {
          var _tmp = ori; // 链式除

          var list = dividend.map(function (v) {
            var result = _tmp % v;
            _tmp = Math.floor(_tmp / v);
            return result;
          });
          if (_tmp !== 0) list.push(_tmp);
          return list;
        }
      });
      /**
       * 分割时间
       * @param  {number}leftTIme  单位秒
       * @param target
       * @return {{day: number, hour: number, min: number, sec: number}}
       */

      var sepTime = exports('sepTime', function sepTime(leftTIme, target) {
        var _modAndDivide = modAndDivide(leftTIme, [60, 60, 24]),
            _modAndDivide$ = _modAndDivide[0],
            sec = _modAndDivide$ === void 0 ? 0 : _modAndDivide$,
            _modAndDivide$2 = _modAndDivide[1],
            min = _modAndDivide$2 === void 0 ? 0 : _modAndDivide$2,
            _modAndDivide$3 = _modAndDivide[2],
            hour = _modAndDivide$3 === void 0 ? 0 : _modAndDivide$3,
            _modAndDivide$4 = _modAndDivide[3],
            day = _modAndDivide$4 === void 0 ? 0 : _modAndDivide$4;

        if (target) {
          target.sec = sec;
          target.min = min;
          target.hour = hour;
          target.day = day;
        }

        return {
          sec: sec,
          min: min,
          hour: hour,
          day: day
        };
      });
      var zeroizeFormatter = exports('zeroizeFormatter', function zeroizeFormatter(n, l) {
        if (l === void 0) {
          l = 2;
        }

        return (Array(l).join("0") + n).slice(("" + n).length > l ? -("" + n).length : -l);
      });
      var formatScoreDisplay = exports('formatScoreDisplay', function formatScoreDisplay(num, from, format) {
        if (from === void 0) {
          from = 1000000;
        }

        if (format === void 0) {
          format = [10000, 10000];
        }

        if (!from || num > from) return formatUnitDisplay(num, format);
        return num;
      });
      var formatUnitDisplay = exports('formatUnitDisplay', function formatUnitDisplay(num, format, formatUnits) {
        if (format === void 0) {
          format = [10000, 10000, 10000, 10000];
        }

        if (formatUnits === void 0) {
          formatUnits = ["", "万", "亿", "兆", "万兆"];
        }

        var result = modAndDivide(num, format);
        var maxPos = 0; // 反向取最大位

        result.forEach(function (v, i) {
          if (v !== 0) maxPos = i;
        });
        var intV = result[maxPos]; // 没有小数位

        if (maxPos < 1) return intV;
        var decimalsNum = result[maxPos - 1];
        if (decimalsNum < 100) return formatUnit(intV, "", maxPos, formatUnits); // 小数点后数长度
        // const leftLen = 3 - `${intV}`.length

        var leftLen = 2;
        var decimalsStr = zeroizeFormatter(decimalsNum, 4).substr(0, leftLen);
        return formatUnit(intV, decimalsStr, maxPos, formatUnits);
      });
      var formatUnit = exports('formatUnit', function formatUnit(_int, dec, u, units) {
        return "" + _int + ((dec && dec.length ? '.' : '') + dec) + units[u];
      });
      var moneyFormatter = exports('moneyFormatter', function moneyFormatter(n) {
        if (isNaN(+n)) n = 0;
        return String(n).replace(/\B(?=(\d{3})+(?!\d))/g, ',');
      });

      function prefixInteger(num, length) {
        return (Array(length).join('0') + num).slice(-length);
      }
      /**
       * 解析html文本
       * @ctype PROCESS
       * @description 解析html文本
       * @param {string} htmlText html文本
       * @returns
       * el HTMLElement html节点
       */


      function parseHtml(htmlText) {
        var el = document.createElement('div');
        el.innerHTML = htmlText;
        return el.children[0];
      }

      function wait(t) {
        return new Promise(function (resolve) {
          return setTimeout(resolve, t * 1000);
        });
      }

      function sleep(t) {
        return new Promise(function (resolve) {
          tween(director.getScene()).delay(t).call(resolve).start();
        });
      }

      var CN_NUM = exports('CN_NUM', ['零', '一', '二', '三', '四', '五', '六', '七', '八', '九', "十"]);

      function loadAllObject(root, view, path) {
        if (view === void 0) {
          view = {};
        }

        if (path === void 0) {
          path = "";
        }

        if (root.getComponent(Svga)) return;
        var len = root.children.length;

        for (var i = 0; i < len; i++) {
          view[path + root.children[i].name] = root.children[i];
          loadAllObject(root.children[i], view, path + root.children[i].name + "/");
        }

        return view;
      }
      /**
       * 获取url参数
       * @param {string} name
       */


      function getUrlParam(name) {
        var search = window.location.search;
        var matched = search.slice(1).match(new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i'));
        return search.length ? matched && matched[2] : null;
      }

      function addButtonClick(node, callback, target) {
        node.on(Node.EventType.TOUCH_END, callback, target);
      }
      /** 
       * 文案过长处理
       * @param {string | number} str 需要处理的字符串或数字
       * @param {number} count 大于该占位值后展示...，中文占位2，其余占位1
       *  */


      function strFormat(str, count) {
        if (count === void 0) {
          count = 8;
        }

        str = str + "";
        var _len = str.length;
        /** 当前索引 */

        var index = 0;
        /** 计算的占位数 */

        var sum = 0;

        while (index < _len && sum <= count) {
          if (/.*[\u4e00-\u9fa5]+.*$/.test(str[index])) {
            sum += 2;
          } else {
            sum += 1;
          }

          index++;
        }

        console.log(index, sum);
        return str.substring(0, index) + (sum <= count ? "" : "...");
      }
      /** 
       * 网络图片加载
       * @param {string} url 图片地址
       * @param {Node} imgBox 图片载体 - 正方形
       */


      function loadImg(url, imgBoSize) {
        if (!!!url) return;
        return new Promise(function (resolve, reject) {
          var spriteFrame = new SpriteFrame();
          var texture = new Texture2D();
          var scale = 1;
          assetManager.loadRemote(url, {
            ext: '.png'
          }, function (err, imageAsset) {
            if (!!err) {
              reject(err);
            }

            texture.image = imageAsset;
            spriteFrame.texture = texture;
            var imgWidth = spriteFrame.width;
            var imgHeight = spriteFrame.height;

            if (imgWidth > imgHeight) {
              scale = imgWidth / imgBoSize;
            } else {
              scale = imgHeight / imgBoSize;
            }

            resolve({
              spriteFrame: spriteFrame,
              scale: scale
            });
          });
        });
      }

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/VCamAim.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './VCamComposer.ts'], function (exports) {
  var _applyDecoratedDescriptor, _initializerDefineProperty, cclegacy, _decorator, Enum, Vec3, VCamComposer;

  return {
    setters: [function (module) {
      _applyDecoratedDescriptor = module.applyDecoratedDescriptor;
      _initializerDefineProperty = module.initializerDefineProperty;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      Enum = module.Enum;
      Vec3 = module.Vec3;
    }, function (module) {
      VCamComposer = module.VCamComposer;
    }],
    execute: function () {
      var _dec, _dec2, _dec3, _dec4, _class, _class2, _descriptor, _descriptor2, _descriptor3;

      cclegacy._RF.push({}, "b5ce9A29MhBxp+Y4Lc9reA0", "VCamAim", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var AimType = exports('AimType', /*#__PURE__*/function (AimType) {
        AimType[AimType["None"] = 0] = "None";
        AimType[AimType["Composer"] = 1] = "Composer";
        AimType[AimType["HardLookAt"] = 2] = "HardLookAt";
        return AimType;
      }({}));
      var VCamAim = exports('VCamAim', (_dec = ccclass("VCamAim"), _dec2 = property({
        type: Enum(AimType)
      }), _dec3 = property({
        tooltip: "i18n:cinestation.VCamAim.trackedObjectOffset"
      }), _dec4 = property({
        type: VCamComposer,
        visible: function visible() {
          return this.type === AimType.Composer;
        }
      }), _dec(_class = (_class2 = function VCamAim() {
        _initializerDefineProperty(this, "type", _descriptor, this);

        _initializerDefineProperty(this, "trackedObjectOffset", _descriptor2, this);

        _initializerDefineProperty(this, "composer", _descriptor3, this);
      }, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "type", [_dec2], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return AimType.Composer;
        }
      }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "trackedObjectOffset", [_dec3], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return new Vec3();
        }
      }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "composer", [_dec4], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return new VCamComposer();
        }
      })), _class2)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/VCamAutoDolly.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './Events.ts'], function (exports) {
  var _applyDecoratedDescriptor, _createClass, _initializerDefineProperty, cclegacy, _decorator, director, CinestationEvent;

  return {
    setters: [function (module) {
      _applyDecoratedDescriptor = module.applyDecoratedDescriptor;
      _createClass = module.createClass;
      _initializerDefineProperty = module.initializerDefineProperty;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      director = module.director;
    }, function (module) {
      CinestationEvent = module.CinestationEvent;
    }],
    execute: function () {
      var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class, _class2, _descriptor, _descriptor2, _descriptor3;

      cclegacy._RF.push({}, "6faa8Kj6xFD/Y2h9t5y/JgK", "VCamAutoDolly", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var VCamAutoDoly = exports('VCamAutoDoly', (_dec = ccclass("VCamAutoDoly"), _dec2 = property({
        visible: false
      }), _dec3 = property({
        visible: false
      }), _dec4 = property({
        visible: false
      }), _dec5 = property({
        tooltip: "i18n:cinestation.VCamAutoDoly.enable"
      }), _dec6 = property({
        tooltip: "i18n:cinestation.VCamAutoDoly.searchRadius"
      }), _dec7 = property({
        tooltip: "i18n:cinestation.VCamAutoDoly.searchResolution"
      }), _dec(_class = (_class2 = /*#__PURE__*/function () {
        function VCamAutoDoly() {
          _initializerDefineProperty(this, "_enable", _descriptor, this);

          _initializerDefineProperty(this, "_searchRadius", _descriptor2, this);

          _initializerDefineProperty(this, "_searchResolution", _descriptor3, this);
        }

        _createClass(VCamAutoDoly, [{
          key: "enable",
          get: function get() {
            return this._enable;
          },
          set: function set(v) {
            if (this._enable !== v) {
              this._enable = v;
              if (CC_EDITOR) director.emit(CinestationEvent.EDITOR_CHANGED);
            }
          }
        }, {
          key: "searchRadius",
          get: function get() {
            return this._searchRadius;
          },
          set: function set(v) {
            if (this._searchRadius !== v) {
              this._searchRadius = v;
              if (CC_EDITOR) director.emit(CinestationEvent.EDITOR_CHANGED);
            }
          }
        }, {
          key: "searchResolution",
          get: function get() {
            return this._searchResolution;
          },
          set: function set(v) {
            if (this._searchResolution !== v) {
              this._searchResolution = v;
              if (CC_EDITOR) director.emit(CinestationEvent.EDITOR_CHANGED);
            }
          }
        }]);

        return VCamAutoDoly;
      }(), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "_enable", [_dec2], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return true;
        }
      }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "_searchRadius", [_dec3], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 2;
        }
      }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "_searchResolution", [_dec4], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 5;
        }
      }), _applyDecoratedDescriptor(_class2.prototype, "enable", [_dec5], Object.getOwnPropertyDescriptor(_class2.prototype, "enable"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "searchRadius", [_dec6], Object.getOwnPropertyDescriptor(_class2.prototype, "searchRadius"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "searchResolution", [_dec7], Object.getOwnPropertyDescriptor(_class2.prototype, "searchResolution"), _class2.prototype)), _class2)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/VCamBody.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './Events.ts', './VCamFreeLook.ts', './VCamTracked.ts'], function (exports) {
  var _applyDecoratedDescriptor, _createClass, _initializerDefineProperty, cclegacy, _decorator, Enum, director, CinestationEvent, VCamFreeLook, VCamTracked;

  return {
    setters: [function (module) {
      _applyDecoratedDescriptor = module.applyDecoratedDescriptor;
      _createClass = module.createClass;
      _initializerDefineProperty = module.initializerDefineProperty;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      Enum = module.Enum;
      director = module.director;
    }, function (module) {
      CinestationEvent = module.CinestationEvent;
    }, function (module) {
      VCamFreeLook = module.VCamFreeLook;
    }, function (module) {
      VCamTracked = module.VCamTracked;
    }],
    execute: function () {
      var _dec, _dec2, _dec3, _dec4, _dec5, _class, _class2, _descriptor, _descriptor2, _descriptor3;

      cclegacy._RF.push({}, "98051KqNLZKB5mU2JZrUz3P", "VCamBody", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var BodyType = exports('BodyType', /*#__PURE__*/function (BodyType) {
        BodyType[BodyType["None"] = 0] = "None";
        BodyType[BodyType["FreeLook"] = 1] = "FreeLook";
        BodyType[BodyType["Tracked"] = 2] = "Tracked";
        return BodyType;
      }({}));
      var VCamBody = exports('VCamBody', (_dec = ccclass("VCamBody"), _dec2 = property({
        visible: false
      }), _dec3 = property({
        animatable: false,
        type: Enum(BodyType)
      }), _dec4 = property({
        animatable: false,
        type: VCamFreeLook,
        visible: function visible() {
          return this.type === BodyType.FreeLook;
        }
      }), _dec5 = property({
        type: VCamTracked,
        visible: function visible() {
          return this.type === BodyType.Tracked;
        }
      }), _dec(_class = (_class2 = /*#__PURE__*/function () {
        function VCamBody() {
          _initializerDefineProperty(this, "_type", _descriptor, this);

          _initializerDefineProperty(this, "freelook", _descriptor2, this);

          _initializerDefineProperty(this, "tracked", _descriptor3, this);
        }

        _createClass(VCamBody, [{
          key: "type",
          get: function get() {
            return this._type;
          },
          set: function set(v) {
            if (this._type !== v) {
              this._type = v;
              if (CC_EDITOR) director.emit(CinestationEvent.EDITOR_CHANGED);
            }
          }
        }]);

        return VCamBody;
      }(), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "_type", [_dec2], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return BodyType.None;
        }
      }), _applyDecoratedDescriptor(_class2.prototype, "type", [_dec3], Object.getOwnPropertyDescriptor(_class2.prototype, "type"), _class2.prototype), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "freelook", [_dec4], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return new VCamFreeLook();
        }
      }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "tracked", [_dec5], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return new VCamTracked();
        }
      })), _class2)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/VCamComposer.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './Events.ts'], function (exports) {
  var _applyDecoratedDescriptor, _createClass, _initializerDefineProperty, cclegacy, _decorator, game, CinestationEvent;

  return {
    setters: [function (module) {
      _applyDecoratedDescriptor = module.applyDecoratedDescriptor;
      _createClass = module.createClass;
      _initializerDefineProperty = module.initializerDefineProperty;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      game = module.game;
    }, function (module) {
      CinestationEvent = module.CinestationEvent;
    }],
    execute: function () {
      var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;

      cclegacy._RF.push({}, "a20f4DBjy1CkIZ+lahC6hYS", "VCamComposer", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var VCamComposer = exports('VCamComposer', (_dec = ccclass("VCamComposer"), _dec2 = property({
        visible: false
      }), _dec3 = property({
        visible: false
      }), _dec4 = property({
        visible: false
      }), _dec5 = property({
        visible: false
      }), _dec6 = property({
        tooltip: "i18n:cinestation.VCamComposer.lookaheadTime",
        range: [0, 1],
        step: 0.1,
        slide: true
      }), _dec7 = property({
        tooltip: "i18n:cinestation.VCamComposer.lookaheadDamping",
        range: [0.1, 2],
        step: 0.1,
        slide: true
      }), _dec8 = property({
        tooltip: "i18n:cinestation.VCamComposer.lookatDamping",
        range: [0.1, 2],
        step: 0.1,
        slide: true
      }), _dec9 = property({
        tooltip: "i18n:cinestation.VCamComposer.deadZoneWidth",
        range: [0, 1],
        step: 0.01,
        slide: true
      }), _dec10 = property({
        tooltip: "i18n:cinestation.VCamComposer.deadZoneHeight",
        range: [0, 1],
        step: 0.01,
        slide: true
      }), _dec11 = property({
        tooltip: "i18n:cinestation.VCamComposer.softZoneWidth",
        range: [0, 1],
        step: 0.01,
        slide: true
      }), _dec12 = property({
        tooltip: "i18n:cinestation.VCamComposer.softZoneHeight",
        range: [0, 1],
        step: 0.01,
        slide: true
      }), _dec(_class = (_class2 = /*#__PURE__*/function () {
        function VCamComposer() {
          _initializerDefineProperty(this, "_deadZoneWidth", _descriptor, this);

          _initializerDefineProperty(this, "_deadZoneHeight", _descriptor2, this);

          _initializerDefineProperty(this, "_softZoneWidth", _descriptor3, this);

          _initializerDefineProperty(this, "_softZoneHeight", _descriptor4, this);

          _initializerDefineProperty(this, "lookaheadTime", _descriptor5, this);

          _initializerDefineProperty(this, "lookaheadDamping", _descriptor6, this);

          _initializerDefineProperty(this, "lookatDamping", _descriptor7, this);
        }

        _createClass(VCamComposer, [{
          key: "deadZoneWidth",
          get: function get() {
            return this._deadZoneWidth;
          },
          set: function set(v) {
            if (this._deadZoneWidth !== v) {
              this._deadZoneWidth = v;
              if (CC_EDITOR) game.emit(CinestationEvent.COMPOSER_CHANGED);
            }
          }
        }, {
          key: "deadZoneHeight",
          get: function get() {
            return this._deadZoneHeight;
          },
          set: function set(v) {
            if (this._deadZoneHeight !== v) {
              this._deadZoneHeight = v;
              if (CC_EDITOR) game.emit(CinestationEvent.COMPOSER_CHANGED);
            }
          }
        }, {
          key: "softZoneWidth",
          get: function get() {
            return this._softZoneWidth;
          },
          set: function set(v) {
            if (this._softZoneWidth !== v) {
              this._softZoneWidth = v;
              if (CC_EDITOR) game.emit(CinestationEvent.COMPOSER_CHANGED);
            }
          }
        }, {
          key: "softZoneHeight",
          get: function get() {
            return this._softZoneHeight;
          },
          set: function set(v) {
            if (this._softZoneHeight !== v) {
              this._softZoneHeight = v;
              if (CC_EDITOR) game.emit(CinestationEvent.COMPOSER_CHANGED);
            }
          }
        }]);

        return VCamComposer;
      }(), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "_deadZoneWidth", [_dec2], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 0.1;
        }
      }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "_deadZoneHeight", [_dec3], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 0.1;
        }
      }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "_softZoneWidth", [_dec4], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 0.8;
        }
      }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "_softZoneHeight", [_dec5], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 0.8;
        }
      }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "lookaheadTime", [_dec6], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 0.2;
        }
      }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "lookaheadDamping", [_dec7], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 0.5;
        }
      }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "lookatDamping", [_dec8], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 0.3;
        }
      }), _applyDecoratedDescriptor(_class2.prototype, "deadZoneWidth", [_dec9], Object.getOwnPropertyDescriptor(_class2.prototype, "deadZoneWidth"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "deadZoneHeight", [_dec10], Object.getOwnPropertyDescriptor(_class2.prototype, "deadZoneHeight"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "softZoneWidth", [_dec11], Object.getOwnPropertyDescriptor(_class2.prototype, "softZoneWidth"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "softZoneHeight", [_dec12], Object.getOwnPropertyDescriptor(_class2.prototype, "softZoneHeight"), _class2.prototype)), _class2)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/VCamFreeLook.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc'], function (exports) {
  var _applyDecoratedDescriptor, _initializerDefineProperty, cclegacy, _decorator, Vec3;

  return {
    setters: [function (module) {
      _applyDecoratedDescriptor = module.applyDecoratedDescriptor;
      _initializerDefineProperty = module.initializerDefineProperty;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      Vec3 = module.Vec3;
    }],
    execute: function () {
      var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12;

      cclegacy._RF.push({}, "0b999naWjlKBKlbbhrzf9kj", "VCamFreeLook", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var VCamFreeLook = exports('VCamFreeLook', (_dec = ccclass("VCamFreeLook"), _dec2 = property({
        tooltip: "i18n:cinestation.VCamFreeLook.forbidX",
        animatable: false
      }), _dec3 = property({
        tooltip: "i18n:cinestation.VCamFreeLook.forbidY",
        animatable: false
      }), _dec4 = property({
        tooltip: "i18n:cinestation.VCamFreeLook.forbidZ",
        animatable: false
      }), _dec5 = property({
        tooltip: "i18n:cinestation.VCamFreeLook.forbidPan",
        animatable: false
      }), _dec6 = property({
        tooltip: "i18n:cinestation.VCamFreeLook.rotateSpeed",
        animatable: false,
        range: [0.1, 5],
        step: 0.1,
        slide: true
      }), _dec7 = property({
        tooltip: "i18n:cinestation.VCamFreeLook.rotateSmoothing",
        animatable: false,
        range: [0.1, 5],
        step: 0.1,
        slide: true
      }), _dec8 = property({
        tooltip: "i18n:cinestation.VCamFreeLook.panSpeed",
        animatable: false,
        range: [0.1, 5],
        step: 0.1,
        slide: true
      }), _dec9 = property({
        tooltip: "i18n:cinestation.VCamFreeLook.panSmoothing",
        animatable: false,
        range: [0.1, 5],
        step: 0.1,
        slide: true
      }), _dec10 = property({
        tooltip: "i18n:cinestation.VCamFreeLook.followOffset"
      }), _dec11 = property({
        tooltip: "i18n:cinestation.VCamFreeLook.followDamping",
        animatable: false,
        range: [0, 1],
        step: 0.1,
        slide: true
      }), _dec12 = property({
        tooltip: "i18n:cinestation.VCamFreeLook.distanceMin"
      }), _dec13 = property({
        tooltip: "i18n:cinestation.VCamFreeLook.distanceMax"
      }), _dec(_class = (_class2 = function VCamFreeLook() {
        _initializerDefineProperty(this, "forbidX", _descriptor, this);

        _initializerDefineProperty(this, "forbidY", _descriptor2, this);

        _initializerDefineProperty(this, "forbidZ", _descriptor3, this);

        _initializerDefineProperty(this, "forbidPan", _descriptor4, this);

        _initializerDefineProperty(this, "rotateSpeed", _descriptor5, this);

        _initializerDefineProperty(this, "rotateSmoothing", _descriptor6, this);

        _initializerDefineProperty(this, "panSpeed", _descriptor7, this);

        _initializerDefineProperty(this, "panSmoothing", _descriptor8, this);

        _initializerDefineProperty(this, "followOffset", _descriptor9, this);

        _initializerDefineProperty(this, "followDamping", _descriptor10, this);

        _initializerDefineProperty(this, "distanceMin", _descriptor11, this);

        _initializerDefineProperty(this, "distanceMax", _descriptor12, this);

        this.phiMin = 0.001;
        this.phiMax = Math.PI - 0.001;
        this.thetaMin = -Infinity;
        this.thetaMax = Infinity;
        this.rotateTouchID = 0;
      }, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "forbidX", [_dec2], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return false;
        }
      }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "forbidY", [_dec3], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return false;
        }
      }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "forbidZ", [_dec4], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return false;
        }
      }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "forbidPan", [_dec5], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return false;
        }
      }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "rotateSpeed", [_dec6], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 1;
        }
      }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "rotateSmoothing", [_dec7], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 0.5;
        }
      }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "panSpeed", [_dec8], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 1;
        }
      }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "panSmoothing", [_dec9], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 0.5;
        }
      }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "followOffset", [_dec10], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return new Vec3(0, 0, -10);
        }
      }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "followDamping", [_dec11], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 1;
        }
      }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "distanceMin", [_dec12], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return -10000;
        }
      }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "distanceMax", [_dec13], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 10000;
        }
      })), _class2)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/VCamHardLook.ts", ['cc'], function (exports) {
  var cclegacy, _decorator;

  return {
    setters: [function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
    }],
    execute: function () {
      var _dec, _class;

      cclegacy._RF.push({}, "47535R8yGBJapZG+5BzZbdz", "VCamHardLook", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var VCamHardLook = exports('VCamHardLook', (_dec = ccclass("VCamHardLook"), _dec(_class = function VCamHardLook() {}) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/VCamImpulse.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc'], function (exports) {
  var _applyDecoratedDescriptor, _initializerDefineProperty, cclegacy, _decorator, Enum, Layers;

  return {
    setters: [function (module) {
      _applyDecoratedDescriptor = module.applyDecoratedDescriptor;
      _initializerDefineProperty = module.initializerDefineProperty;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      Enum = module.Enum;
      Layers = module.Layers;
    }],
    execute: function () {
      var _dec, _dec2, _class, _class2, _descriptor;

      cclegacy._RF.push({}, "8f0fdpmkflDmIp1ZB3EmmMS", "VCamImpulse", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var VCamImpulse = exports('VCamImpulse', (_dec = ccclass("VCamImpulse"), _dec2 = property({
        type: Enum(Layers.Enum)
      }), _dec(_class = (_class2 = function VCamImpulse() {
        _initializerDefineProperty(this, "source", _descriptor, this);
      }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, "source", [_dec2], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return Layers.Enum.DEFAULT;
        }
      }), _class2)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/VCamLens.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './Events.ts'], function (exports) {
  var _applyDecoratedDescriptor, _createClass, _initializerDefineProperty, cclegacy, _decorator, director, CinestationEvent;

  return {
    setters: [function (module) {
      _applyDecoratedDescriptor = module.applyDecoratedDescriptor;
      _createClass = module.createClass;
      _initializerDefineProperty = module.initializerDefineProperty;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      director = module.director;
    }, function (module) {
      CinestationEvent = module.CinestationEvent;
    }],
    execute: function () {
      var _dec, _dec2, _dec3, _dec4, _class, _class2, _descriptor, _descriptor2, _descriptor3;

      cclegacy._RF.push({}, "1b0c6SIESZLp7YflAThQCmy", "VCamLens", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var VCamLens = exports('VCamLens', (_dec = ccclass("VCamLens"), _dec2 = property({
        visible: false
      }), _dec3 = property({
        visible: false
      }), _dec4 = property({
        visible: false
      }), _dec(_class = (_class2 = /*#__PURE__*/function () {
        function VCamLens() {
          _initializerDefineProperty(this, "_fov", _descriptor, this);

          _initializerDefineProperty(this, "_near", _descriptor2, this);

          _initializerDefineProperty(this, "_far", _descriptor3, this);
        }

        _createClass(VCamLens, [{
          key: "fov",
          get: function get() {
            return this._fov;
          },
          set: function set(v) {
            if (this._fov !== v) {
              this._fov = v;
              if (CC_EDITOR) director.emit(CinestationEvent.LENS_CHANGED);
            }
          }
        }, {
          key: "near",
          get: function get() {
            return this._near;
          },
          set: function set(v) {
            if (this._near !== v) {
              this._near = v;
              if (CC_EDITOR) director.emit(CinestationEvent.LENS_CHANGED);
            }
          }
        }, {
          key: "far",
          get: function get() {
            return this._far;
          },
          set: function set(v) {
            if (this._far !== v) {
              this._far = v;
              if (CC_EDITOR) director.emit(CinestationEvent.LENS_CHANGED);
            }
          }
        }]);

        return VCamLens;
      }(), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "_fov", [_dec2], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 45;
        }
      }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "_near", [_dec3], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 1;
        }
      }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "_far", [_dec4], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 1000;
        }
      }), _applyDecoratedDescriptor(_class2.prototype, "fov", [property], Object.getOwnPropertyDescriptor(_class2.prototype, "fov"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "near", [property], Object.getOwnPropertyDescriptor(_class2.prototype, "near"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "far", [property], Object.getOwnPropertyDescriptor(_class2.prototype, "far"), _class2.prototype)), _class2)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/VCamNoise.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './NoiseGenerator.ts'], function (exports) {
  var _applyDecoratedDescriptor, _initializerDefineProperty, cclegacy, _decorator, Enum, NoiseProfile;

  return {
    setters: [function (module) {
      _applyDecoratedDescriptor = module.applyDecoratedDescriptor;
      _initializerDefineProperty = module.initializerDefineProperty;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      Enum = module.Enum;
    }, function (module) {
      NoiseProfile = module.NoiseProfile;
    }],
    execute: function () {
      var _dec, _dec2, _dec3, _dec4, _dec5, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;

      cclegacy._RF.push({}, "64113KNDFdCe5TQiq+NPHCc", "VCamNoise", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var NoiseType = exports('NoiseType', /*#__PURE__*/function (NoiseType) {
        NoiseType[NoiseType["None"] = 0] = "None";
        NoiseType[NoiseType["Perlin"] = 1] = "Perlin";
        return NoiseType;
      }({}));
      var VCamNoise = exports('VCamNoise', (_dec = ccclass("VCamNoise"), _dec2 = property({
        type: Enum(NoiseType)
      }), _dec3 = property({
        tooltip: "i18n:cinestation.VCamNoise.profile",
        type: Enum(NoiseProfile),
        visible: function visible() {
          return this.type !== NoiseType.None;
        }
      }), _dec4 = property({
        tooltip: "i18n:cinestation.VCamNoise.amplitudeGain",
        visible: function visible() {
          return this.type !== NoiseType.None;
        }
      }), _dec5 = property({
        tooltip: "i18n:cinestation.VCamNoise.frequncyGain",
        visible: function visible() {
          return this.type !== NoiseType.None;
        }
      }), _dec(_class = (_class2 = function VCamNoise() {
        _initializerDefineProperty(this, "type", _descriptor, this);

        _initializerDefineProperty(this, "profile", _descriptor2, this);

        _initializerDefineProperty(this, "amplitudeGain", _descriptor3, this);

        _initializerDefineProperty(this, "frequncyGain", _descriptor4, this);
      }, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "type", [_dec2], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return NoiseType.None;
        }
      }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "profile", [_dec3], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return NoiseProfile.Noise_CM_4;
        }
      }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "amplitudeGain", [_dec4], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 1;
        }
      }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "frequncyGain", [_dec5], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 1;
        }
      })), _class2)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/VCamTracked.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './CinestationSmoothPath.ts', './Events.ts', './VCamAutoDolly.ts'], function (exports) {
  var _applyDecoratedDescriptor, _createClass, _initializerDefineProperty, cclegacy, _decorator, Enum, director, CinestationSmoothPath, CinestationEvent, VCamAutoDoly;

  return {
    setters: [function (module) {
      _applyDecoratedDescriptor = module.applyDecoratedDescriptor;
      _createClass = module.createClass;
      _initializerDefineProperty = module.initializerDefineProperty;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      Enum = module.Enum;
      director = module.director;
    }, function (module) {
      CinestationSmoothPath = module.CinestationSmoothPath;
    }, function (module) {
      CinestationEvent = module.CinestationEvent;
    }, function (module) {
      VCamAutoDoly = module.VCamAutoDoly;
    }],
    execute: function () {
      var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;

      cclegacy._RF.push({}, "28daaTaX7tIHIg1KeO3hzdb", "VCamTracked", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var VCamUp = exports('VCamUp', /*#__PURE__*/function (VCamUp) {
        VCamUp[VCamUp["DEFAULT"] = 0] = "DEFAULT";
        VCamUp[VCamUp["PATH"] = 1] = "PATH";
        return VCamUp;
      }({}));
      var VCamTracked = exports('VCamTracked', (_dec = ccclass("VCamTracked"), _dec2 = property({
        visible: false
      }), _dec3 = property({
        tooltip: "i18n:cinestation.VCamTracked.path",
        animatable: false,
        type: CinestationSmoothPath
      }), _dec4 = property({
        tooltip: "i18n:cinestation.VCamTracked.progress"
      }), _dec5 = property({
        tooltip: "i18n:cinestation.VCamTracked.damping",
        animatable: false,
        range: [0.1, 5],
        step: 0.1,
        slide: true
      }), _dec6 = property({
        type: Enum(VCamUp),
        animatable: false
      }), _dec7 = property({
        type: VCamAutoDoly,
        animatable: false
      }), _dec(_class = (_class2 = /*#__PURE__*/function () {
        function VCamTracked() {
          _initializerDefineProperty(this, "_progress", _descriptor, this);

          _initializerDefineProperty(this, "path", _descriptor2, this);

          _initializerDefineProperty(this, "damping", _descriptor3, this);

          _initializerDefineProperty(this, "cameraUp", _descriptor4, this);

          _initializerDefineProperty(this, "autoDolly", _descriptor5, this);
        }

        _createClass(VCamTracked, [{
          key: "progress",
          get: function get() {
            return this._progress;
          },
          set: function set(v) {
            if (this._progress !== v) {
              this._progress = v;
              if (CC_EDITOR) director.emit(CinestationEvent.EDITOR_CHANGED);
            }
          }
        }]);

        return VCamTracked;
      }(), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "_progress", [_dec2], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 0;
        }
      }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "path", [_dec3], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _applyDecoratedDescriptor(_class2.prototype, "progress", [_dec4], Object.getOwnPropertyDescriptor(_class2.prototype, "progress"), _class2.prototype), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "damping", [_dec5], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 1;
        }
      }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "cameraUp", [_dec6], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return VCamUp.DEFAULT;
        }
      }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "autoDolly", [_dec7], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return new VCamAutoDoly();
        }
      })), _class2)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/VirtualCamera.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './CinestationData.ts', './Events.ts', './Visualization.ts', './VCamAim.ts', './VCamBody.ts', './VCamImpulse.ts', './VCamLens.ts', './VCamNoise.ts', './AimStage.ts', './BodyStage.ts', './ImpulseStage.ts', './NoiseStage.ts'], function (exports) {
  var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, _createForOfIteratorHelperLoose, _createClass, cclegacy, _decorator, Node, Vec3, Quat, director, view, Mat4, toRadian, utils, cinestation, CinestationEvent, Visualization, VCamAim, VCamBody, BodyType, VCamImpulse, VCamLens, VCamNoise, AimStage, BodyStage, ImpulseStage, NoiseStage;

  return {
    setters: [function (module) {
      _applyDecoratedDescriptor = module.applyDecoratedDescriptor;
      _inheritsLoose = module.inheritsLoose;
      _initializerDefineProperty = module.initializerDefineProperty;
      _assertThisInitialized = module.assertThisInitialized;
      _createForOfIteratorHelperLoose = module.createForOfIteratorHelperLoose;
      _createClass = module.createClass;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      Node = module.Node;
      Vec3 = module.Vec3;
      Quat = module.Quat;
      director = module.director;
      view = module.view;
      Mat4 = module.Mat4;
      toRadian = module.toRadian;
      utils = module.utils;
    }, function (module) {
      cinestation = module.cinestation;
    }, function (module) {
      CinestationEvent = module.CinestationEvent;
    }, function (module) {
      Visualization = module.Visualization;
    }, function (module) {
      VCamAim = module.VCamAim;
    }, function (module) {
      VCamBody = module.VCamBody;
      BodyType = module.BodyType;
    }, function (module) {
      VCamImpulse = module.VCamImpulse;
    }, function (module) {
      VCamLens = module.VCamLens;
    }, function (module) {
      VCamNoise = module.VCamNoise;
    }, function (module) {
      AimStage = module.AimStage;
    }, function (module) {
      BodyStage = module.BodyStage;
    }, function (module) {
      ImpulseStage = module.ImpulseStage;
    }, function (module) {
      NoiseStage = module.NoiseStage;
    }],
    execute: function () {
      var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;

      cclegacy._RF.push({}, "e84d7HSHCRNU4Jgu1AdeBGI", "VirtualCamera", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property,
          executeInEditMode = _decorator.executeInEditMode;
      var VirtualCamera = exports('VirtualCamera', (_dec = ccclass('VirtualCamera'), _dec2 = property({
        visible: false
      }), _dec3 = property({
        visible: false
      }), _dec4 = property({
        tooltip: "i18n:cinestation.VirtualCamera.debug"
      }), _dec5 = property({
        tooltip: "i18n:cinestation.VirtualCamera.priority"
      }), _dec6 = property({
        tooltip: "i18n:cinestation.VirtualCamera.lookAt",
        type: Node
      }), _dec7 = property({
        tooltip: "i18n:cinestation.VirtualCamera.follow",
        type: Node
      }), _dec8 = property({
        type: VCamLens
      }), _dec9 = property({
        type: VCamBody
      }), _dec10 = property({
        animatable: false,
        type: VCamAim
      }), _dec11 = property({
        animatable: false,
        type: VCamNoise
      }), _dec12 = property({
        animatable: false,
        type: VCamImpulse
      }), _dec(_class = executeInEditMode(_class = (_class2 = /*#__PURE__*/function (_Visualization) {
        _inheritsLoose(VirtualCamera, _Visualization);

        function VirtualCamera() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _Visualization.call.apply(_Visualization, [this].concat(args)) || this;
          _this._editorChanged = true;
          _this._composerChanged = true;
          _this._visibleDefault = false;

          _initializerDefineProperty(_this, "_lookAt", _descriptor, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "_follow", _descriptor2, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "debug", _descriptor3, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "priority", _descriptor4, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "lens", _descriptor5, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "body", _descriptor6, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "aim", _descriptor7, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "noise", _descriptor8, _assertThisInitialized(_this));

          _initializerDefineProperty(_this, "impulse", _descriptor9, _assertThisInitialized(_this));

          _this._stages = [new BodyStage(_assertThisInitialized(_this)), new AimStage(_assertThisInitialized(_this)), new NoiseStage(_assertThisInitialized(_this)), new ImpulseStage(_assertThisInitialized(_this))];
          _this._finalPosition = new Vec3();
          _this._finalRotation = new Quat();
          _this._correctPosition = new Vec3();
          _this._correctRotation = new Quat();
          _this._lookaheadPosition = new Vec3();
          return _this;
        }

        var _proto = VirtualCamera.prototype;

        _proto.onLoad = function onLoad() {
          var _this2 = this;

          if (CC_EDITOR) {
            director.on(CinestationEvent.LENS_CHANGED, function () {
              return _this2._modelChanged = true;
            });
            director.on(CinestationEvent.EDITOR_CHANGED, function () {
              return _this2._editorChanged = true;
            });
            director.on(CinestationEvent.COMPOSER_CHANGED, function () {
              return _this2._composerChanged = true;
            });
          }

          this.node.on(Node.EventType.TRANSFORM_CHANGED, this._onTransformChanged, this);
        };

        _proto._onTransformChanged = function _onTransformChanged(transBit) {
          if (CC_EDITOR) {
            if (!this.follow) return;

            if (transBit & Node.TransformBit.POSITION) {
              switch (this.body.type) {
                case BodyType.Tracked:
                  this._editorChanged = true;
                  break;

                case BodyType.FreeLook:
                  Vec3.subtract(this.body.freelook.followOffset, this.node.worldPosition, this.follow.worldPosition);
                  this._editorChanged = true;
                  break;
              }
            }
          }
        };

        _proto.onEnable = function onEnable() {
          _Visualization.prototype.onEnable.call(this);

          cinestation.addCamera(this);
        };

        _proto.onDisable = function onDisable() {
          _Visualization.prototype.onDisable.call(this);

          cinestation.removeCamera(this);
          this.onDeActive();
        };

        _proto.onActive = function onActive() {
          this._stages.forEach(function (v) {
            return v.enable = true;
          });
        };

        _proto.onDeActive = function onDeActive() {
          this._stages.forEach(function (v) {
            return v.enable = false;
          });
        };

        _proto.updateCamera = function updateCamera(dt) {
          if (CC_EDITOR && !this._isChangedInEditor()) {
            return;
          }

          Quat.identity(this._correctRotation);
          Vec3.zero(this._correctPosition);

          for (var _iterator = _createForOfIteratorHelperLoose(this._stages), _step; !(_step = _iterator()).done;) {
            var stage = _step.value;
            stage.updateStage(dt);
          }
        };

        _proto._isChangedInEditor = function _isChangedInEditor() {
          if (this._editorChanged) {
            //fixbug: ccc inpector
            this._editorChanged = false;
            return true;
          }

          return false;
        };

        _proto._updateMesh = function _updateMesh(mesh) {
          var corners = [new Vec3(-1, -1, -1), new Vec3(1, -1, -1), new Vec3(-1, 1, -1), new Vec3(1, 1, -1), new Vec3(-1, -1, 1), new Vec3(1, -1, 1), new Vec3(-1, 1, 1), new Vec3(1, 1, 1)];
          var lens = this.lens;
          var size = view.getDesignResolutionSize();
          var matProjInv = Mat4.perspective(new Mat4(), toRadian(lens.fov), size.width / size.height, lens.near, lens.far).invert();

          for (var i = 0; i < 8; i++) {
            corners[i].transformMat4(matProjInv);
          }

          var positions = [],
              colors = [];

          for (var _i = 0; _i < 8; _i++) {
            for (var j = 0; j < 3; j++) {
              Vec3.toArray(positions, corners[_i], positions.length);
              Vec3.toArray(positions, corners[_i ^ 1 << j], positions.length);
              colors.push(1, 1, 1, 1);
              colors.push(1, 1, 1, 1);
            }
          }

          return utils.createMesh({
            positions: positions,
            colors: colors
          }, mesh);
        };

        _createClass(VirtualCamera, [{
          key: "active",
          get: function get() {
            return cinestation.vcam === this;
          },
          set: function set(v) {
            if (v) {
              cinestation.activeCamera(this, 0);
            } else if (this.active) {
              cinestation.activeCamera(null, 0);
            }
          }
        }, {
          key: "lookAt",
          get: function get() {
            return this._lookAt;
          },
          set: function set(target) {
            if (this._lookAt !== target) {
              this._lookAt = target;
              this._editorChanged = CC_EDITOR;

              this._stages.forEach(function (v) {
                return v.onLookAtChanged(target);
              });
            }
          }
        }, {
          key: "follow",
          get: function get() {
            return this._follow;
          },
          set: function set(target) {
            if (this._follow !== target) {
              this._follow = target;
              this._editorChanged = CC_EDITOR;

              this._stages.forEach(function (v) {
                return v.onFollowChanged(target);
              });
            }
          }
        }, {
          key: "correctPosition",
          get: function get() {
            return this._correctPosition;
          }
        }, {
          key: "correctRotation",
          get: function get() {
            return this._correctRotation;
          }
        }, {
          key: "finalPosition",
          get: function get() {
            return Vec3.add(this._finalPosition, this.node.worldPosition, this._correctPosition);
          }
        }, {
          key: "finalRotation",
          get: function get() {
            return Quat.multiply(this._finalRotation, this.node.worldRotation, this._correctRotation);
          }
        }, {
          key: "lookaheadPosition",
          get: function get() {
            return this._lookaheadPosition;
          }
        }]);

        return VirtualCamera;
      }(Visualization), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "_lookAt", [_dec2], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "_follow", [_dec3], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "debug", [_dec4], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return false;
        }
      }), _applyDecoratedDescriptor(_class2.prototype, "active", [property], Object.getOwnPropertyDescriptor(_class2.prototype, "active"), _class2.prototype), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "priority", [_dec5], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 10;
        }
      }), _applyDecoratedDescriptor(_class2.prototype, "lookAt", [_dec6], Object.getOwnPropertyDescriptor(_class2.prototype, "lookAt"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "follow", [_dec7], Object.getOwnPropertyDescriptor(_class2.prototype, "follow"), _class2.prototype), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "lens", [_dec8], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return new VCamLens();
        }
      }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "body", [_dec9], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return new VCamBody();
        }
      }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "aim", [_dec10], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return new VCamAim();
        }
      }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "noise", [_dec11], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return new VCamNoise();
        }
      }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "impulse", [_dec12], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return new VCamImpulse();
        }
      })), _class2)) || _class) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/Visualization.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './CinestationShareAssets.ts'], function (exports) {
  var _inheritsLoose, _createClass, cclegacy, _decorator, director, renderer, Component, cinestationShareAssets;

  return {
    setters: [function (module) {
      _inheritsLoose = module.inheritsLoose;
      _createClass = module.createClass;
    }, function (module) {
      cclegacy = module.cclegacy;
      _decorator = module._decorator;
      director = module.director;
      renderer = module.renderer;
      Component = module.Component;
    }, function (module) {
      cinestationShareAssets = module.cinestationShareAssets;
    }],
    execute: function () {
      var _dec, _class;

      cclegacy._RF.push({}, "33adaQlUqdEy5hcZt+9bHhU", "Visualization", undefined);

      var ccclass = _decorator.ccclass,
          property = _decorator.property;
      var Visualization = exports('Visualization', (_dec = ccclass('Visualization'), _dec(_class = /*#__PURE__*/function (_Component) {
        _inheritsLoose(Visualization, _Component);

        function Visualization() {
          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _Component.call.apply(_Component, [this].concat(args)) || this;
          _this._modelChanged = false;
          _this._mesh = null;
          _this._model = null;
          _this._material = cinestationShareAssets.lineMaterial;
          _this._visibleInRuntime = CC_EDITOR;
          _this._visibleDefault = true;
          return _this;
        }

        var _proto = Visualization.prototype;

        _proto.onEnable = function onEnable() {
          if (this._visibleInRuntime) {
            this._createModel();

            this._attachToScene();
          }
        };

        _proto.onDisable = function onDisable() {
          if (this._visibleInRuntime) {
            this._detachFromScene();
          }
        };

        _proto._attachToScene = function _attachToScene() {
          if (this._model && this.node && this.node.scene) {
            if (this._model.scene) {
              this._detachFromScene();
            }

            this._getRenderScene().addModel(this._model);
          }
        };

        _proto._detachFromScene = function _detachFromScene() {
          if (this._model && this._model.scene) {
            this._model.scene.removeModel(this._model);
          }
        };

        _proto._createModel = function _createModel() {
          if (this._model) return;
          this._model = director.root.createModel(renderer.scene.Model);
          this._model.node = this._model.transform = this.node;
          this._model.enabled = this._visibleDefault;
          this._modelChanged = true;
        };

        _proto.update = function update(dt) {
          if (this._modelChanged && this._model && this._material) {
            this._modelChanged = false;
            this._mesh = this._updateMesh(this._mesh);
            this._mesh && this._model.initSubModel(0, this._mesh.renderingSubMeshes[0], this._material);
          }
        };

        _proto._updateMesh = function _updateMesh(mesh) {
          return mesh;
        };

        _createClass(Visualization, [{
          key: "visible",
          get: function get() {
            return this._model ? this._model.enabled : false;
          },
          set: function set(v) {
            if (this._model) this._model.enabled = v;
          }
        }]);

        return Visualization;
      }(Component)) || _class));

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/WebNet.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './ajax.ts', './webTools.ts', './UIFast.ts'], function (exports) {
  var _extends, _asyncToGenerator, _regeneratorRuntime, cclegacy, ajax, jsonp, getUrlParams, showToast;

  return {
    setters: [function (module) {
      _extends = module.extends;
      _asyncToGenerator = module.asyncToGenerator;
      _regeneratorRuntime = module.regeneratorRuntime;
    }, function (module) {
      cclegacy = module.cclegacy;
    }, function (module) {
      ajax = module.ajax;
      jsonp = module.jsonp;
    }, function (module) {
      getUrlParams = module.getUrlParams;
    }, function (module) {
      showToast = module.showToast;
    }],
    execute: function () {
      exports({
        creditsCost: creditsCost,
        destroyWebNetData: destroyWebNetData,
        getProjectId: getProjectId,
        getPxToken: getPxToken,
        getPxTokenSave: getPxTokenSave,
        getWebData: getWebData,
        pollingWebNet: pollingWebNet,
        queryPrizeList: queryPrizeList,
        refreshPxTokenKey: refreshPxTokenKey,
        sendLog: sendLog,
        sendWebNet: sendWebNet,
        sendWebNetWithToken: sendWebNetWithToken
      });

      cclegacy._RF.push({}, "fd5d6QQMfVO34/pv8z0z9Bp", "WebNet", undefined); // import { isFromShare, newUser } from 'duiba-utils';
      // let mergeData = {
      //     user_type: newUser ? '0' : '1',
      //     is_from_share: isFromShare ? '0' : '1',
      // }


      var DEFAULF_ERROR = exports('DEFAULF_ERROR', '网络异常，请稍后重试'); //////////////星速台接口方法集成

      /**
       * web接口枚举，mock 文件名类似aaa/homeInfo.do
       */

      var WebNetName = exports('WebNetName', /*#__PURE__*/function (WebNetName) {
        WebNetName["getFrontVariable"] = "coop_frontVariable.query";
        WebNetName["buriedPoint"] = "buriedPoint";
        WebNetName["index"] = "loop/index.do";
        WebNetName["start"] = "loopGame/start.do";
        WebNetName["gameIndex"] = "loopGame/index.do";
        WebNetName["submit"] = "loopGame/submit.do";
        WebNetName["delay"] = "loopGame/delay.do";
        WebNetName["consume"] = "loopGame/consume.do";
        WebNetName["changeHand"] = "loop/changeHand.do";
        WebNetName["rank"] = "rank/index.do";
        WebNetName["changeDetails"] = "loop/changeDetails.do";
        WebNetName["gameRecord"] = "loop/gameRecord.do";
        WebNetName["queryTasks"] = "task_1/queryTasks.do";
        WebNetName["doCompleted"] = "task_1/doCompleted.do";
        WebNetName["sendPrize"] = "task_1/sendPrize.do";
        WebNetName["projectRule"] = "projectRule.query";
        WebNetName["creditsCost"] = "credits/creditsCost.do";
        WebNetName["queryStatus"] = "credits/queryStatus.do";
        WebNetName["getInviteCode"] = "assist/getInviteCode.do";
        WebNetName["doAssist"] = "assist/doAssist.do";
        WebNetName["equip"] = "loop/equip.do";
        WebNetName["changeLoop"] = "loop/changeLoop.do";
        WebNetName["finishBrowseTask"] = "task_1/finishBrowseTask.do";
        WebNetName["claimThirdTask"] = "task_1/claimThirdTask.do";
        return WebNetName;
      }({}));
      var ERR_MESSAGE = exports('ERR_MESSAGE', {
        "100001": "登录过期啦，请重新登录哦～",
        "5001033": "该局使用该道具次数已达上限",
        "200303": "助力失败，您的助力次数已用完",
        "200306": "助力失败，不能给自己助力哦~",
        "200304": "助力失败，好友被助力次数已达上限~",
        "5001041": "网络异常，请稍后再试" // "300001": "您的积分不足\n快去获取积分参与游戏吧～",
        // "400001": "系统维护中，请稍后尝试",
        // "400004": "您的积分不足\n快去获取积分参与游戏吧～",
        // "300003": "今日复活次数已经达到上限\n明天再来吧！",

      }); //返回数据类型
      //记录数据

      var dataRecord = {};
      /**
       * 发送接口
       * @param netName
       * @param parameter
       * @param callback
       * @param hideMsg
       * @param isGet
       * @param headers
       */

      function sendWebNet(netName, parameter, callback, hideMsg, isGet, //这两个参数基本不设置，放后面吧
      headers) {
        if (hideMsg === void 0) {
          hideMsg = false;
        }

        if (isGet === void 0) {
          isGet = true;
        } //处理下参数
        // 统一加上渠道参数


        var channel = getUrlParams("channel");

        if (channel) {
          parameter = _extends({}, parameter || {}, {
            channel: channel
          });
        }

        return new Promise(function (resolve, reject) {
          var success = function success(data) {
            //发现有些接口成功了，但是response为空
            data = data || {}; //记录数据

            dataRecord[netName] = data; //统一错误信息提示，

            if (!hideMsg && !data.success) showToast(ERR_MESSAGE[data.code] || data.message || "网络异常，请稍后再试～");
            callback && callback(data.success, data);
            resolve(data);
            console.log("\n%c[ request ]\n" + ("NAME  : " + netName + " \n") + "STATE : %o \n" + "PARAM : %o \n" + "%cDATA  : %o \n", "" + (data.success ? 'color:green' : 'color:red'), data.success, parameter, "" + (data.success ? 'color:green' : 'color:red'), data);
          };

          var fail = function fail() {
            //本地模拟下网络未链接或mock数据未创建
            if (!hideMsg) showToast("网络异常，请稍后再试～");
            callback && callback(false);
            resolve({
              success: false
            });
            console.log("接口" + netName + "：网络超时");
            return {
              success: false
            };
          }; //网络请求


          ajax({
            url: netName,
            //请求地址
            type: isGet ? 'GET' : "POST",
            //请求方式
            data: parameter || {},
            //请求参数
            dataType: "json",
            // 返回值类型的设定,暂时只有json
            async: true,
            //是否异步
            headers: headers,
            success: success,
            error: fail
          });
        });
      }

      function sendWebNetWithToken(netName, parameter, callback, hideMsg, isGet, //这两个参数基本不设置，放后面吧
      headers) {
        if (hideMsg === void 0) {
          hideMsg = false;
        }

        if (isGet === void 0) {
          isGet = true;
        }

        return new Promise( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(r) {
          var token, res;
          return _regeneratorRuntime().wrap(function _callee$(_context) {
            while (1) switch (_context.prev = _context.next) {
              case 0:
                _context.next = 2;
                return getPxTokenSave();

              case 2:
                token = _context.sent;

                if (token) {
                  _context.next = 7;
                  break;
                }

                showToast(DEFAULF_ERROR);
                r({
                  success: false
                });
                return _context.abrupt("return");

              case 7:
                _context.next = 9;
                return sendWebNet(netName, _extends({
                  token: token
                }, parameter), callback, hideMsg, isGet, headers);

              case 9:
                res = _context.sent;
                r(res);
              // })

              case 11:
              case "end":
                return _context.stop();
            }
          }, _callee);
        })));
      }
      /**
       * 获取数据
       * @param netName
       */


      function getWebData(netName) {
        return dataRecord[netName] || {};
      } //销毁数据


      function destroyWebNetData() {
        dataRecord = {};
      }

      var projectxString = "projectx/";
      var projectId;
      /**
       * 获取链接上的projectId
       */

      function getProjectId() {
        if (projectId) return projectId;
        var windowUrl = window.location.href;
        var splitArr = windowUrl.split(projectxString);

        if (splitArr.length != 2) {
          return projectId = "projectId";
        }

        var start = windowUrl.indexOf(projectxString) + projectxString.length;
        var end = splitArr[1].indexOf("/");
        return projectId = windowUrl.substr(start, end);
      } //这个临时，如星速台链接有变，注意


      var isProd = location.href.indexOf(".com.cn/projectx") >= 0;
      /**
       * 刷新星速台tokenkey,注意多活动跳转手动执行一边
       * @param callback
       */

      function refreshPxTokenKey(callback) {
        if (isProd) {
          //线上
          var head = document.getElementsByTagName("head")[0];
          var scriptEl = document.createElement('script');
          scriptEl.src = "getTokenKey?_=" + Date.now();

          scriptEl.onload = function () {
            head.removeChild(scriptEl);
            callback && callback(true);
          };

          scriptEl.onerror = function () {
            head.removeChild(scriptEl);
            callback && callback(false);
          };

          head.appendChild(scriptEl);
        } else {
          //本地环境
          callback && callback(true);
        }
      } //执行一次


      refreshPxTokenKey();
      /**
       * 带重刷tokenkey功能的获取token，返回token字符串或null
       * @returns
       */

      function getPxTokenSave() {
        return new Promise(function (reslove, reject) {
          getPxToken( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(msg, token) {
            var suc;
            return _regeneratorRuntime().wrap(function _callee2$(_context2) {
              while (1) switch (_context2.prev = _context2.next) {
                case 0:
                  if (!token) {
                    _context2.next = 3;
                    break;
                  }

                  reslove(token);
                  return _context2.abrupt("return");

                case 3:
                  _context2.next = 5;
                  return new Promise(function (r) {
                    refreshPxTokenKey(r);
                  });

                case 5:
                  suc = _context2.sent;

                  if (suc) {
                    _context2.next = 9;
                    break;
                  }

                  reslove(null);
                  return _context2.abrupt("return");

                case 9:
                  //再次获取
                  getPxToken(function (msg, token) {
                    reslove(token);
                  });

                case 10:
                case "end":
                  return _context2.stop();
              }
            }, _callee2);
          })));
        });
      }
      /**
       * 获取星速台token
       * @param callback
       */


      function getPxToken(callback) {
        if (!isProd) {
          //本地环境
          callback(null, "token");
          return;
        }

        if (!window["ohjaiohdf"]) {
          callback("need reload");
          return;
        }

        var xml = new XMLHttpRequest();
        xml.open("get", "getToken?_t=" + Date.now(), true);

        xml.onreadystatechange = function () {
          if (xml.readyState === 4 && xml.status === 200) {
            var e = JSON.parse(xml.response);

            if (e.success) {
              window.eval(e.data);
              callback(null, window["ohjaiohdf"]());
            } else {
              var msg = function () {
                switch (e.code) {
                  case "100001":
                    return "need login";

                  case "100024":
                    return "state invalid";

                  default:
                    return e.code;
                }
              }();

              callback(msg);
            }
          }
        };

        xml.onerror = function () {
          callback("net error");
        };

        xml.onloadend = function () {
          xml.status === 404 && callback("net error");
        };

        xml.send();
      }

      var LOG_TYPE = exports('LOG_TYPE', /*#__PURE__*/function (LOG_TYPE) {
        LOG_TYPE["EXPOSURE"] = "exposure";
        LOG_TYPE["CLICK"] = "click";
        return LOG_TYPE;
      }({}));
      /**
       * 埋点  sendLog(LOG_TYPE.EXPOSURE,"4")
       * 注意点击埋点前必有曝光埋点
       * @param type
       * @param data
       */

      function sendLog(type, area, dpm_d, dcm_c) {
        if (dpm_d === void 0) {
          dpm_d = 1;
        }

        if (dcm_c === void 0) {
          dcm_c = 0;
        }

        var projectID = getProjectId();
        var appID = getUrlParams("appID"); //给个提示

        if (!appID) console.error("appID不存在，检查链接");
        var dpm = (appID || 'appID') + ".110." + area + "." + dpm_d; // TODO appID注意默认写死一个，已防链接没有

        var dcm = "202." + (projectID || 'projectID') + "." + dcm_c + ".0"; //看需求
        // var dom = `${isWxClient() ? '2' : '1'}.0.0.0`;

        var params = {
          dpm: dpm,
          dcm: dcm,
          appId: appID
        }; //看需求
        // if (dom) params.dom = dom;

        var isExposure = type == LOG_TYPE.EXPOSURE;

        if (isExposure) {
          //曝光
          jsonp('//embedlog.duiba.com.cn/exposure/standard', params);
        } else {
          //点击
          jsonp('/log/click', params);
        } // console.log('try log', {type, ...params});

      }

      var sendLogList = exports('sendLogList', function sendLogList(type, areaList) {
        areaList.forEach(function (v) {
          if (typeof v === "object") {
            sendLog(type, v.area, v.dpm_d, (v == null ? void 0 : v.dcm_c) || 0);
          } else {
            sendLog(type, v);
          }
        });
      });
      /**
       * 根据规则id获取奖品列表
       * @param strategyId 规则id
       * @param optionId 不传表示返回所有奖品
       */

      function queryPrizeList(strategyId, optionId) {
        var url = "/projectx/" + getProjectId() + "/" + strategyId + ".query";
        return new Promise(function (resolve) {
          if (window["__ENV__"] === "development") {
            //本地环境
            resolve({
              //自定义数据。暂时这样
              "success": true,
              "message": "consequat ea",
              "data": [{
                "prizeType": "dolore culpa in tempor",
                "name": "ka3",
                "refType": "Excepteur adipisicing sint",
                "icon": "//yun.duiba.com.cn/spark/assets/58184d8d965c556b412026acf7a5d5d9e7a975f5.png",
                "index": "Ut in pariatur",
                "id": "et",
                "refId": "minim culpa veniam aliqua ut",
                "prizeId": "aa",
                "icon2": "aliquip consectetur laborum Duis"
              }],
              "code": "fugiat velit in esse aute"
            });
          } else {
            ajax({
              url: url,
              type: 'GET',
              data: optionId ? {
                optionId: optionId
              } : {},
              dataType: "json",
              async: true,
              success: function success(response) {
                resolve(response);
              },
              error: function error() {
                resolve({
                  success: false
                });
              }
            });
          }
        });
      }
      /**
           * 扣积分流程，带轮询
           * @param toPlaywayId
           * @param toActionId
           * @param credits
           * @param desc?
           * @return {Promise<{ success: boolean, ticket?: any,pollingData }>}
           */


      function creditsCost(_x5, _x6, _x7, _x8) {
        return _creditsCost.apply(this, arguments);
      }
      /**
       * 封装一个轮询
       * @param param
       * @param {(success: boolean, res?: dataOut) => boolean} progress 这个函数必须返回一个bool值 用于是否结束轮询的标志 true则会结束轮询
       * @param { (res) => void} complete
       * @param {number} count
       * @param {number} timeOut
       * @return {Promise<{success: boolean, res: any}>}
       */


      function _creditsCost() {
        _creditsCost = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(toPlaywayId, toActionId, desc, credits) {
          var param, _yield$sendWebNet, success, ticket, pollingData;

          return _regeneratorRuntime().wrap(function _callee4$(_context4) {
            while (1) switch (_context4.prev = _context4.next) {
              case 0:
                if (credits === void 0) {
                  credits = "";
                } // 预扣积分


                param = {
                  toPlaywayId: toPlaywayId,
                  toActionId: toActionId,
                  credits: credits
                }; //@ts-ignore

                desc && (param.desc = desc);
                _context4.next = 5;
                return sendWebNet(WebNetName.creditsCost, param);

              case 5:
                _yield$sendWebNet = _context4.sent;
                success = _yield$sendWebNet.success;
                ticket = _yield$sendWebNet.data;

                if (success) {
                  _context4.next = 10;
                  break;
                }

                return _context4.abrupt("return", {
                  success: false
                });

              case 10:
                _context4.next = 12;
                return pollingWebNet({
                  ticketNum: ticket
                }, function (success, res) {
                  return res.data != 0; // 0 是处理中
                });

              case 12:
                pollingData = _context4.sent;
                return _context4.abrupt("return", {
                  success: pollingData.data == 1,
                  ticket: ticket,
                  pollingData: pollingData
                });

              case 14:
              case "end":
                return _context4.stop();
            }
          }, _callee4);
        }));
        return _creditsCost.apply(this, arguments);
      }

      function pollingWebNet(_x9, _x10, _x11, _x12, _x13) {
        return _pollingWebNet.apply(this, arguments);
      }

      function _pollingWebNet() {
        _pollingWebNet = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(param, progress, complete, count, timeOut) {
          return _regeneratorRuntime().wrap(function _callee7$(_context7) {
            while (1) switch (_context7.prev = _context7.next) {
              case 0:
                if (count === void 0) {
                  count = 10;
                }

                if (timeOut === void 0) {
                  timeOut = 200;
                }

                return _context7.abrupt("return", new Promise( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(resolve, reject) {
                  var _count, pollingOnce, _pollingOnce;

                  return _regeneratorRuntime().wrap(function _callee6$(_context6) {
                    while (1) switch (_context6.prev = _context6.next) {
                      case 0:
                        _pollingOnce = function _pollingOnce3() {
                          _pollingOnce = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
                            var res;
                            return _regeneratorRuntime().wrap(function _callee5$(_context5) {
                              while (1) switch (_context5.prev = _context5.next) {
                                case 0:
                                  _context5.next = 2;
                                  return sendWebNet(WebNetName.queryStatus, param);

                                case 2:
                                  res = _context5.sent;

                                  if (!progress(res.success, res)) {
                                    _context5.next = 7;
                                    break;
                                  } // Loading.hide();


                                  resolve(res);
                                  complete && complete(res);
                                  return _context5.abrupt("return");

                                case 7:
                                  _count++; // 到达次数上限结束轮询

                                  if (!(_count >= count)) {
                                    _context5.next = 12;
                                    break;
                                  } // Loading.hide();


                                  resolve(res);
                                  complete && complete(res);
                                  return _context5.abrupt("return");

                                case 12:
                                  setTimeout(function () {
                                    pollingOnce();
                                  }, timeOut);

                                case 13:
                                case "end":
                                  return _context5.stop();
                              }
                            }, _callee5);
                          }));
                          return _pollingOnce.apply(this, arguments);
                        };

                        pollingOnce = function _pollingOnce2() {
                          return _pollingOnce.apply(this, arguments);
                        }; // Loading.show();


                        _count = 0;
                        _context6.next = 5;
                        return pollingOnce();

                      case 5:
                      case "end":
                        return _context6.stop();
                    }
                  }, _callee6);
                }))));

              case 3:
              case "end":
                return _context7.stop();
            }
          }, _callee7);
        }));
        return _pollingWebNet.apply(this, arguments);
      }

      cclegacy._RF.pop();
    }
  };
});

System.register("chunks:///_virtual/webTools.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc'], function (exports) {
  var _createForOfIteratorHelperLoose, cclegacy;

  return {
    setters: [function (module) {
      _createForOfIteratorHelperLoose = module.createForOfIteratorHelperLoose;
    }, function (module) {
      cclegacy = module.cclegacy;
    }],
    execute: function () {
      exports({
        changeURLArg: changeURLArg,
        getCookieParams: getCookieParams,
        getUrlParams: getUrlParams,
        htmlToPureText: htmlToPureText,
        inputFeildIosEnable: inputFeildIosEnable,
        inputIosAdapte: inputIosAdapte
      });

      cclegacy._RF.push({}, "9ef62bJ4wZCXIx3y/Tsi4Hz", "webTools", undefined); /////这里集成一些只有web环境才会用到的方法,链接参数,cookie参数等等


      var urlParams;
      /**
       * 获取链接参数
       * @param key 
       */

      function getUrlParams(key, refreshCache) {
        if (refreshCache === void 0) {
          refreshCache = false;
        }

        if (urlParams && !refreshCache) return urlParams[key];
        urlParams = {};
        var search = window.location.search;

        try {
          search = top.location.search; //尝试获取顶层的链接
        } catch (e) {} //获取链接参数


        for (var _iterator = _createForOfIteratorHelperLoose(search.replace('?', '').split('&')), _step; !(_step = _iterator()).done;) {
          var item = _step.value;
          var arr = item.split('=');
          urlParams[arr[0]] = arr.length === 1 ? true : decodeURIComponent(arr[1]);
        }

        return urlParams[key];
      }

      var cookieParams;
      /**
       * cookie参数
       */

      function getCookieParams(key, refreshCache) {
        if (refreshCache === void 0) {
          refreshCache = false;
        }

        if (cookieParams && !refreshCache) return cookieParams[key];
        cookieParams = {};
        var arr1 = document.cookie.split("; "); //由于cookie是通过一个分号+空格的形式串联起来的，所以这里需要先按分号空格截断,变成[name=Jack,pwd=123456,age=22]数组类型；

        for (var i = 0; i < arr1.length; i++) {
          var arr2 = arr1[i].split("="); //通过=截断，把name=Jack截断成[name,Jack]数组；

          cookieParams[arr2[0]] = decodeURIComponent(arr2[1]); // if (arr2[0] == key) {
          //     return decodeURIComponent(arr2[1]);
          // }
        }

        return cookieParams[key];
      }
      /**
       * 替换或添加url里的参数
       * @param url 修改的url
       * @param arg 参数名
       * @param arg_val 参数值
       */


      function changeURLArg(url, arg, arg_val) {
        var pattern = arg + '=([^&]*)';
        var replaceText = arg + '=' + arg_val;

        if (url.match(pattern)) {
          var tmp = '/(' + arg + '=)([^&]*)/gi';
          tmp = url.replace(eval(tmp), replaceText);
          return tmp;
        } else {
          if (url.match('[\?]')) {
            return url + '&' + replaceText;
          } else {
            return url + '?' + replaceText;
          }
        }
      }
      /**
       * 输入框ios兼容，如果加过输入框，加
       */


      function inputFeildIosEnable() {
        var u = navigator.userAgent;
        var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端

        if (isIOS) {
          setTimeout(function () {
            document.getElementsByTagName('input')[0].onblur = function () {
              if (isIOS) {
                blurAdjust(); // alert("1231321233")
              }
            };
          }, 50);
        } // 解决苹果不回弹页面


        function blurAdjust() {
          setTimeout(function () {
            // alert("1231321233")
            if (document.activeElement.tagName == 'INPUT' || document.activeElement.tagName == 'TEXTAREA') {
              return;
            }

            if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) ;else if (/(Android)/i.test(navigator.userAgent)) ;

            if ('ios') {
              document.activeElement["scrollIntoViewIfNeeded"](true);
            }
          }, 100);
        }
      }
      /**
       * 处理iOS 微信客户端弹窗状态下调起输入法后关闭输入法页面元素错位解决办法
       * 输入框不能在屏幕外下面放dom，否则回弹有问题
       */


      function inputIosAdapte() {
        var ua = window.navigator.userAgent.toLowerCase();

        if (/iphone|ipod|ipad/i.test(navigator.appVersion) && /MicroMessenger/i.test(ua)) {
          document.body.addEventListener('focusout', function () {
            console.log('focusout');
            window.scrollTo({
              top: 0,
              left: 0,
              behavior: 'smooth'
            });
          });
        }
      }

      var el;
      /**
       * html文本转纯文本
       * @param htmlText 
       */

      function htmlToPureText(htmlText) {
        if (!el) el = document.createElement('div');
        el.innerHTML = htmlText;
        document.body.appendChild(el);
        var pureText = el.innerText;
        document.body.removeChild(el);
        return pureText;
      }

      cclegacy._RF.pop();
    }
  };
});

(function(r) {
  r('virtual:///prerequisite-imports/main', 'chunks:///_virtual/main'); 
})(function(mid, cid) {
    System.register(mid, [cid], function (_export, _context) {
    return {
        setters: [function(_m) {
            var _exportObj = {};

            for (var _key in _m) {
              if (_key !== "default" && _key !== "__esModule") _exportObj[_key] = _m[_key];
            }
      
            _export(_exportObj);
        }],
        execute: function () { }
    };
    });
});