1 |
- window.__require=function t(e,o,n){function r(c,s){if(!o[c]){if(!e[c]){var l=c.split("/");if(l=l[l.length-1],!e[l]){var a="function"==typeof __require&&__require;if(!s&&a)return a(l,!0);if(i)return i(l,!0);throw new Error("Cannot find module '"+c+"'")}c=l}var u=o[c]={exports:{}};e[c][0].call(u.exports,function(t){return r(e[c][1][t]||t)},u,u.exports,t,e,o,n)}return o[c].exports}for(var i="function"==typeof __require&&__require,c=0;c<n.length;c++)r(n[c]);return r}({ConfigDef:[function(t,e,o){"use strict";var n;cc._RF.push(e,"f2501P4mcRAcoSXFSb85E9/","ConfigDef"),Object.defineProperty(o,"__esModule",{value:!0}),o.jsonNames=o.EConfigConst=o.ConfigConst=void 0,o.ConfigConst={all:"all",nest:"nest",smallLevel:"smallLevel",monster:"monster",bullet:"bullet"},function(t){t[t.all=0]="all",t[t.nest=1]="nest",t[t.smallLevel=2]="smallLevel",t[t.monster=3]="monster",t[t.bullet=4]="bullet",t[t.num=5]="num"}(n=o.EConfigConst||(o.EConfigConst={})),o.jsonNames=[];for(var r=0;r<n.num;r++){var i=n[r];o.jsonNames.push(i)}cc._RF.pop()},{}],EventMgr:[function(t,e,o){"use strict";cc._RF.push(e,"2dedfEqQqhMNLhKV3xnj6e4","EventMgr");var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(o,"__esModule",{value:!0}),o.EventMgr=void 0;var i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),Object.defineProperty(e,"inst",{get:function(){return null==this._inst&&(this._inst=new e),this._inst},enumerable:!1,configurable:!0}),e}(cc.EventTarget);o.EventMgr=i,cc._RF.pop()},{}],GameAnimation:[function(t,e,o){"use strict";cc._RF.push(e,"133ffBsZwRE0ajydPBekQF9","GameAnimation");var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(o,"__esModule",{value:!0}),o.GameAnimation=void 0;var i=t("./logic"),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.update=function(){i.GameLogicMgr.inst.isGamePause?this.enabled&&(this.enabled=!1):this.enabled||(this.enabled=!0)},e}(cc.Animation);o.GameAnimation=c,cc._RF.pop()},{"./logic":"logic"}],GameLogic:[function(t,e,o){"use strict";cc._RF.push(e,"07144hDDh5BHqV3tBvLEZM8","GameLogic");var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(o,"__esModule",{value:!0}),o.GameLogic=void 0;var i=t("./logic"),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.update=function(t){i.GameLogicMgr.inst.isGamePause||this.gameUpdate(t)},e.prototype.gameUpdate=function(){},e}(cc.Component);o.GameLogic=c,cc._RF.pop()},{"./logic":"logic"}],ModuleContext:[function(t,e,o){"use strict";cc._RF.push(e,"778faiC32xH5qvdcq6i/b+I","ModuleContext"),Object.defineProperty(o,"__esModule",{value:!0}),o.ModuleContext=void 0;var n="resources",r=function(){function t(){}return t.setDefaultModule=function(t){n=t},t.attachModule=function(t,e){t.__module__name__=e},t.getClassModule=function(t){return t.__module__name__||n},t.attachImplClass=function(t,e){t.__impl__class__=e},t.attachModuleAndImplClass=function(t,e,o){t.__module__name__=e,t.__impl__class__=o},t.getImplClass=function(t){return t.__impl__class__||t},t.createFromModule=function(t){return new(this.getImplClass(t)||t)},t}();o.ModuleContext=r,cc._RF.pop()},{}],Rocker:[function(t,e,o){"use strict";cc._RF.push(e,"0ed59bwy7NFfquN6tFgB5jF","Rocker");var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,c=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(c=(i<3?r(c):i>3?r(e,o,c):r(e,o))||c);return i>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=t("../../Script/Core/Base/EventMgr"),s=t("./eventDef"),l=cc._decorator,a=l.ccclass,u=l.property,p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.$bg_node=null,e.$point_node=null,e.$arrow_node=null,e.temp={bgOriginPos:null,id:-1},e}return r(e,t),e.prototype.onLoad=function(){this.temp.bgOriginPos=this.$bg_node.getPosition()},e.prototype.onEnable=function(){this.node.on(cc.Node.EventType.TOUCH_START,this.onTouchStart,this),this.node.on(cc.Node.EventType.TOUCH_MOVE,this.onTouchMove,this),this.node.on(cc.Node.EventType.TOUCH_END,this.onTouchEnd,this),this.node.on(cc.Node.EventType.TOUCH_CANCEL,this.onTouchEnd,this)},e.prototype.onDisable=function(){this.node.off(cc.Node.EventType.TOUCH_START,this.onTouchStart,this),this.node.off(cc.Node.EventType.TOUCH_MOVE,this.onTouchMove,this),this.node.off(cc.Node.EventType.TOUCH_END,this.onTouchEnd,this),this.node.off(cc.Node.EventType.TOUCH_CANCEL,this.onTouchEnd,this)},e.prototype.onTouchStart=function(t){if(-1==this.temp.id){var e=t.getLocation();e=this.node.convertToNodeSpaceAR(e),this.$bg_node.setPosition(e),this.temp.id=t.getID()}},e.prototype.onTouchMove=function(t){if(this.temp.id==t.getID()){var e=t.getLocation().sub(t.getStartLocation()),o=0;e.equals(cc.Vec2.ZERO)||(o=cc.v2(0,1).signAngle(e)/Math.PI*180),this.$arrow_node.angle=Math.round(100*o)/100;var n=e.normalize();e.mag()>85?this.$point_node.setPosition(85*n.x,85*n.y):this.$point_node.setPosition(e.x,e.y),c.EventMgr.inst.emit(s.Roker_Move,n)}},e.prototype.onTouchEnd=function(t){this.temp.id==t.getID()&&(this.$bg_node.setPosition(this.temp.bgOriginPos),this.$arrow_node.angle=0,this.$point_node.setPosition(0,0),this.temp.id=-1,c.EventMgr.inst.emit(s.Roker_End))},i([u({type:cc.Node,displayName:""})],e.prototype,"$bg_node",void 0),i([u({type:cc.Node,displayName:""})],e.prototype,"$point_node",void 0),i([u({type:cc.Node,displayName:""})],e.prototype,"$arrow_node",void 0),i([a],e)}(cc.Component);o.default=p,cc._RF.pop()},{"../../Script/Core/Base/EventMgr":"EventMgr","./eventDef":"eventDef"}],Start:[function(t,e,o){"use strict";cc._RF.push(e,"62a49ItD35F/77o+FdWPyV+","Start");var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,c=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(c=(i<3?r(c):i>3?r(e,o,c):r(e,o))||c);return i>3&&c&&Object.defineProperty(e,o,c),c},c=this&&this.__awaiter||function(t,e,o,n){return new(o||(o=Promise))(function(r,i){function c(t){try{l(n.next(t))}catch(e){i(e)}}function s(t){try{l(n.throw(t))}catch(e){i(e)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof o?e:new o(function(t){t(e)})).then(c,s)}l((n=n.apply(t,e||[])).next())})},s=this&&this.__generator||function(t,e){var o,n,r,i,c={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(t){return function(e){return l([t,e])}}function l(i){if(o)throw new TypeError("Generator is already executing.");for(;c;)try{if(o=1,n&&(r=2&i[0]?n.return:i[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,i[1])).done)return r;switch(n=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return c.label++,{value:i[1],done:!1};case 5:c.label++,n=i[1],i=[0];continue;case 7:i=c.ops.pop(),c.trys.pop();continue;default:if(!(r=(r=c.trys).length>0&&r[r.length-1])&&(6===i[0]||2===i[0])){c=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){c.label=i[1];break}if(6===i[0]&&c.label<r[1]){c.label=r[1],r=i;break}if(r&&c.label<r[2]){c.label=r[2],c.ops.push(i);break}r[2]&&c.ops.pop(),c.trys.pop();continue}i=e.call(t,c)}catch(s){i=[6,s],n=0}finally{o=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}};Object.defineProperty(o,"__esModule",{value:!0});var l=t("./Core/Ui/UIDef"),a=t("./Core/Ui/UILayers"),u=t("./Core/Ui/UIMgr"),p=cc._decorator,d=p.ccclass,f=p.property,h=function(t){function e(){var e=t.call(this)||this;return e.$ui_node=null,e}return r(e,t),e.prototype.onLoad=function(){return c(this,void 0,Promise,function(){return s(this,function(){return u.UIMgr.inst.setup(this.$ui_node,a.UILayerNames.length,a.UILayerNames),[2]})})},e.prototype.testUI=function(){u.UIMgr.inst.showUI(l.UIList.loading),u.UIMgr.inst.showUI(l.UIList.loading),setTimeout(function(){u.UIMgr.inst.hideUI(l.UIList.loading)},1e4)},i([f({type:cc.Node,displayName:""})],e.prototype,"$ui_node",void 0),i([d],e)}(cc.Component);o.default=h,cc._RF.pop()},{"./Core/Ui/UIDef":"UIDef","./Core/Ui/UILayers":"UILayers","./Core/Ui/UIMgr":"UIMgr"}],UIController:[function(t,e,o){"use strict";cc._RF.push(e,"7019cTE15tDJL3FDogZGsld","UIController");var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(o,"__esModule",{value:!0}),o.UIController=o.AutoEventHandler=o.__NodeEventAgent__=void 0;var i=cc._decorator,c=(i.ccclass,i.property,function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.onButtonClicked=function(t,e){for(var o=t.target.getComponent(cc.Button),n=o.clickEvents,r=0;r<n.length;++r){var i=n[r];if(i.customEventData==e){var c=i.$cb$,s=i.$target$,l=i.$args$;c.apply(s,[o,l])}}},e.prototype.onToggleEvent=function(t,e){for(var o=t.checkEvents,n=0;n<o.length;++n){var r=o[n];if(r.customEventData==e){var i=r.$cb$,c=r.$target$,s=r.$args$;i.apply(c,[t,s])}}},e}(cc.Component));o.__NodeEventAgent__=c;var s=function(){function t(){this._handlers=[]}return t.prototype.on=function(t,e,o,n){this._handlers.push({event:t,cb:e,target:o,once:n}),cc.game.on(t,e,o,n)},t.prototype.off=function(t,e,o,n){cc.game.off(t,e,o);for(var r=0;r<this._handlers.length;++r){var i=this._handlers[r];if(i.event==t&&i.cb==e&&i.target==o&&i.once==n)return void this._handlers.splice(r,1)}},t.prototype.dispose=function(){for(var t=0;t<this._handlers.length;++t){var e=this._handlers[t];cc.game.off(e.event,e.cb,e.target)}},t}();o.AutoEventHandler=s;var l=function(t){function e(o,n,r){var i=t.call(this)||this;return i._instId=0,i._destroyed=!1,i._prefab=o,i._layer=n,i._layout=r,i._instId=e._idBase++,e._controllers.push(i),i}return r(e,t),Object.defineProperty(e.prototype,"instId",{get:function(){return this._instId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"prefab",{get:function(){return this._prefab},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"layer",{get:function(){return this._layer},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"layout",{get:function(){return this._layout},enumerable:!1,configurable:!0}),e.hideAll=function(){for(;this._controllers.length;)this._controllers[0].hide()},e.updateAll=function(){for(var t=0;t<this._controllers.length;++t){var e=this._controllers[t];e.node&&cc.isValid(e.node)&&this._controllers[t].onUpdate()}},e.prototype.setup=function(t){this.node=t,this._layout&&(this._layout=this.node.getComponent(this._layout)),this.onCreated(),this._destroyed&&this.hide()},e.prototype.hide=function(){if(this._destroyed=!0,this.node){this.node.removeFromParent();for(var t=0;t<e._controllers.length;++t)if(e._controllers[t]==this){e._controllers.splice(t,1);break}this.onDispose(),this.node.destroy(),this.node=null}},e.prototype.getRes=function(){return[]},e.prototype.onCreated=function(){},e.prototype.onDispose=function(){},e.prototype.onUpdate=function(){},e._idBase=1e3,e._controllers=[],e}(cc.EventTarget);o.UIController=l,cc._RF.pop()},{}],UIDef:[function(t,e,o){"use strict";cc._RF.push(e,"cb4cdwQxgBLAK4IOT9Bm5ks","UIDef"),Object.defineProperty(o,"__esModule",{value:!0}),o.UIList=void 0;var n=t("./UILayers");o.UIList={loading:{prefab:"loading",layer:n.UILayers.popup},debug:{prefab:"ui/debug",layer:n.UILayers.debug}},cc._RF.pop()},{"./UILayers":"UILayers"}],UILayers:[function(t,e,o){"use strict";var n;cc._RF.push(e,"e1cbcwrhd1KQYd7RDtffSNU","UILayers"),Object.defineProperty(o,"__esModule",{value:!0}),o.UILayerNames=o.UILayers=void 0,function(t){t[t.game=0]="game",t[t.popup=1]="popup",t[t.alert=2]="alert",t[t.debug=3]="debug",t[t.loading=4]="loading",t[t.num=5]="num"}(n||(n={})),o.UILayers=n;var r=[];o.UILayerNames=r;for(var i=0;i<n.num;i++){var c=n[i];r.push(c)}cc._RF.pop()},{}],UIMgr:[function(t,e,o){"use strict";cc._RF.push(e,"dba72L13BRByI/C+1B1Me/R","UIMgr"),Object.defineProperty(o,"__esModule",{value:!0}),o.UIMgr=void 0;var n,r=cc._decorator;r.ccclass,r.property,function(t){t[t.none=0]="none",t[t.loading=1]="loading",t[t.show=2]="show",t[t.close=3]="close"}(n||(n={}));var i=function(){function t(){this._instId=0,this.state=n.loading,this._instId=t._idBase++}return Object.defineProperty(t.prototype,"instId",{get:function(){return this._instId},enumerable:!1,configurable:!0}),t.prototype.destory=function(){cc.isValid(this.node,!0)&&this.node.destroy(),this.asset&&this.asset.decRef(),this.state=n.close},t._idBase=0,t}(),c=function(){function t(){this.handleArr=[]}return Object.defineProperty(t,"inst",{get:function(){return null==this._inst&&(this._inst=new t),this._inst},enumerable:!1,configurable:!0}),t.prototype.createFullScreenNode=function(){var t=this._uiCanvas,e=new cc.Node;e.group=this._uiCanvas.group,e.width=t.width,e.height=t.height;var o=e.addComponent(cc.Widget);return o.isAlignBottom=!0,o.isAlignTop=!0,o.isAlignLeft=!0,o.isAlignRight=!0,o.left=0,o.right=0,o.top=0,o.bottom=0,e},t.prototype.setup=function(t,e,o){if(!this._uiCanvas)if(t){t instanceof cc.Node?this._uiCanvas=t:(this._uiCanvas=cc.instantiate(t),cc.director.getScene().addChild(this._uiCanvas)),this._uiCanvas.name="$tgxUICanvas$",o||(o=[]),this._uiRoot=this.createFullScreenNode(),this._uiRoot.name="ui_root",this._uiCanvas.addChild(this._uiRoot);for(var n=0;n<e;++n){var r=this.createFullScreenNode();r.name="ui_layer_"+(o[n]?o[n]:n),this._uiRoot.addChild(r),r.on(cc.Node.EventType.CHILD_REMOVED,this.uiRemove,this)}}else cc.error("uiCanvas must be a cc.Node or cc.Prefab")},t.prototype.uiRemove=function(t){var e=this.handleArr.findIndex(function(e){return e.node.uuid==t.uuid});-1!=e&&this.hideUIIndex(e)},t.prototype.getLayerNode=function(t){return this._uiRoot.children[t]||this._uiRoot},t.prototype.getUI=function(t){return this.handleArr.find(function(e){return e.uiData.prefab==t.prefab})},t.prototype.isShowing=function(t){var e=this.getUI(t);return!!e&&(e.state==n.loading||e.state==n.show)},t.prototype.showUI=function(t){var e=this,o=new i;return o.state=n.loading,o.uiData=t,this.handleArr.push(o),cc.resources.load(t.prefab,cc.Prefab,function(r,i){if(r)return console.log(r),void e.showUI(t);if(o.state==n.loading){var c=cc.instantiate(i);e.getLayerNode(t.layer).addChild(c),o.state=n.show,o.asset=i,o.node=c,i.addRef()}else cc.assetManager.releaseAsset(i)}),o},t.prototype.hideUI=function(t){var e=this.handleArr.findIndex(function(e){return e.uiData.prefab==t.prefab});-1!=e&&this.hideUIIndex(e)},t.prototype.hideUIIndex=function(t){this.handleArr[t].destory(),this.handleArr.splice(t,1)},t}();o.UIMgr=c,window.uiMgr=function(){return c.inst},cc._RF.pop()},{}],aniList:[function(t,e,o){"use strict";cc._RF.push(e,"48dfaPtVhdL55Wy24GR/KOY","aniList");var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,c=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(c=(i<3?r(c):i>3?r(e,o,c):r(e,o))||c);return i>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=t("../common/editorSet"),s=cc._decorator,l=s.ccclass,a=s.property,u=s.executeInEditMode,p=s.playOnFocus,d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.monster=null,e.aniClip=[],e}return r(e,t),e.prototype.onLoad=function(){var t=new cc.Node("monsterGroup");this.monsterNode=t,c.EditorSet.DontShow(t),this.node.addChild(t),this.play()},e.prototype.end=function(){this.monsterNode.destroyAllChildren()},e.prototype.play=function(){var t=this;if(this.monsterNode.destroyAllChildren(),this.monster){var e=cc.instantiate(this.monster),o=0,n=function(){var r=new cc.Node("AniItem"),i=e.parent?e.parent:t.monsterNode;e.removeFromParent(!1),r.addChild(e),i.addChild(r);var c=r.addComponent(cc.Animation);c.addClip(t.aniClip[o],"path"),c.play("path"),c.once(cc.Animation.EventType.FINISHED,function(){++o<t.aniClip.length&&(r.angle=0,n())})};n()}else cc.log("\u8bbe\u7f6e\u602a\u7269\u8d44\u6e90")},i([a(cc.Prefab)],e.prototype,"monster",void 0),i([a([cc.AnimationClip])],e.prototype,"aniClip",void 0),i([l,u,p],e)}(cc.Component);o.default=d,cc._RF.pop()},{"../common/editorSet":"editorSet"}],barrage:[function(t,e,o){"use strict";cc._RF.push(e,"d732cyvautEx4seIabS+x/s","barrage");var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=this&&this.__awaiter||function(t,e,o,n){return new(o||(o=Promise))(function(r,i){function c(t){try{l(n.next(t))}catch(e){i(e)}}function s(t){try{l(n.throw(t))}catch(e){i(e)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof o?e:new o(function(t){t(e)})).then(c,s)}l((n=n.apply(t,e||[])).next())})},c=this&&this.__generator||function(t,e){var o,n,r,i,c={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(t){return function(e){return l([t,e])}}function l(i){if(o)throw new TypeError("Generator is already executing.");for(;c;)try{if(o=1,n&&(r=2&i[0]?n.return:i[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,i[1])).done)return r;switch(n=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return c.label++,{value:i[1],done:!1};case 5:c.label++,n=i[1],i=[0];continue;case 7:i=c.ops.pop(),c.trys.pop();continue;default:if(!(r=(r=c.trys).length>0&&r[r.length-1])&&(6===i[0]||2===i[0])){c=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){c.label=i[1];break}if(6===i[0]&&c.label<r[1]){c.label=r[1],r=i;break}if(r&&c.label<r[2]){c.label=r[2],c.ops.push(i);break}r[2]&&c.ops.pop(),c.trys.pop();continue}i=e.call(t,c)}catch(s){i=[6,s],n=0}finally{o=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}};Object.defineProperty(o,"__esModule",{value:!0}),o.Barrage=void 0;var s,l=t("../cfg/ConfigDef"),a=t("../cfg/bulletItem"),u=t("../cfg/configMgr"),p=t("../common/utils"),d=t("../monster/monsterModel"),f=t("../monster/monsterbullet"),h=t("../player/bullet"),_=t("../res/resMgr"),y=t("../res/resRelease"),g=t("../update/delayStop"),m=t("../update/gameSysLogic"),v=t("../update/move"),b=t("../update/moveTime"),w=t("../zoo/zooMgr");(function(t){t[t.monster=0]="monster",t[t.player=1]="player"})(s||(s={}));var C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),Object.defineProperty(e,"inst",{get:function(){return null==this._inst&&(this._inst=new e),this._inst},enumerable:!1,configurable:!0}),e.prototype.createPlayerBullet=function(t){return i(this,void 0,void 0,function(){return c(this,function(){switch(e.skillNum){case 1:this.createPlayerBullet1(t);break;case 2:this.createPlayerBullet2(t);break;case 3:this.createPlayerBullet3(t);break;case 4:this.createPlayerBullet4(t)}return[2]})})},e.prototype.createMonsterBulletByZooid=function(t,e){var o=u.ConfigMgr.inst.getCfgClassById(l.EConfigConst.bullet,e,a.BulletItem),n=w.ZooMgr.inst.get(t).node,r=n.getComponent(d.MonsterModel),i=n.convertToWorldSpaceAR(cc.Vec2.ZERO),c=n.convertToWorldSpaceAR(cc.v2(0,-1)),s={worldPos:i,dirction:c=c.sub(i).normalize(),atk:r.atk,zooid:t};this.createMonsterBullet(s,o)},e.prototype.createMonsterBullet=function(t,e){switch(p.Utils.intDefault(e.data.travel,1)){case 1:this.createBulletById1(t,e);break;case 2:this.createBulletById2(t,e);break;case 3:this.createBulletById3(t,e);break;case 4:this.createBulletById4(t,e)}},e.prototype.createBulletById1=function(t,e){return i(this,void 0,void 0,function(){var o,n,r,i,l,a,u,d;return c(this,function(c){switch(c.label){case 0:return[4,_.ResMgr.inst.loadPrefab("monster/monsterBullet",this.layer)];case 1:return o=c.sent(),n=t.worldPos,r=t.dirction,(i=o.getComponent(f.default)).atk=p.Utils.intDefault(e.data.effect1)/100*t.atk,i.monsterZooid=t.zooid,i.bulletId=e.id,o.zIndex=s.monster,(l=p.Utils.getCpt(v.default,o)).dirction=r,l.speed=p.Utils.intDefault(e.data.speed,500),a=this.layer.convertToNodeSpaceAR(n),o.setPosition(a),2==(u=p.Utils.strToJson(e.data.end))[0]&&((d=o.addComponent(g.default)).time=u[1]/100,d.call=function(){o.destroy()}),[2]}})})},e.prototype.createPlayerBullet1=function(t){return i(this,void 0,void 0,function(){var e,o,n;return c(this,function(r){switch(r.label){case 0:return[4,_.ResMgr.inst.loadPrefab("monster/bullet",this.layer)];case 1:return(e=r.sent()).zIndex=s.player,(o=p.Utils.getCpt(v.default,e)).dirction=cc.v2(0,1),o.speed=500,n=this.layer.convertToNodeSpaceAR(t),e.setPosition(n),[2]}})})},e.prototype.createBulletById2=function(t,e){return i(this,void 0,void 0,function(){var o,n,r,i,l,a,u,d,h,y;return c(this,function(c){switch(c.label){case 0:return o=t.worldPos,n=t.dirction,r=p.Utils.strToJson(e.data.param),i=r[2],l=r[1],a=n.rotateSelf(p.Utils.radian(l/2)),[4,_.ResMgr.inst.getPrefab("monster/monsterBullet")];case 1:for(u=c.sent(),d=function(n){var r=_.ResMgr.inst.createNode(u,h.layer),c=r.getComponent(f.default);c.atk=p.Utils.intDefault(e.data.effect1)/100*t.atk,c.monsterZooid=t.zooid,c.bulletId=e.id,r.zIndex=s.monster;var d=p.Utils.getCpt(v.default,r);d.dirction=360==l?a.rotate(p.Utils.radian(-l/i*n)):a.rotate(p.Utils.radian(-l/(i-1)*n)),d.speed=p.Utils.intDefault(e.data.speed,500);var y=h.layer.convertToNodeSpaceAR(o);r.setPosition(y);var m=p.Utils.strToJson(e.data.end);if(2==m[0]){var b=r.addComponent(g.default);b.time=m[1]/100,b.call=function(){r.destroy()}}},h=this,y=0;y<i;y++)d(y);return[2]}})})},e.prototype.createPlayerBullet2=function(t){return i(this,void 0,void 0,function(){var e,o,n,r,i,l,a,u,d;return c(this,function(c){switch(c.label){case 0:return e=9,o=60,n=cc.v2(0,1).rotateSelf(p.Utils.radian(o/2)),[4,_.ResMgr.inst.getPrefab("monster/bullet")];case 1:for(r=c.sent(),i=0;i<e;i++)(l=_.ResMgr.inst.createNode(r,this.layer)).zIndex=s.player,a=l.getComponent(h.default),(u=p.Utils.getCpt(v.default,l)).dirction=n.rotate(p.Utils.radian(-o/(e-1)*i)),u.speed=500,a.setDirction(u.dirction),d=this.layer.convertToNodeSpaceAR(t),l.setPosition(d);return[2]}})})},e.prototype.createBulletById4=function(t,e){return i(this,void 0,void 0,function(){var o,n,r,i,d,h,y,m,v,w,C,M,P=this;return c(this,function(c){switch(c.label){case 0:return o=t.worldPos,n=t.dirction,[4,_.ResMgr.inst.getPrefab("monster/monsterBullet")];case 1:return r=c.sent(),(i=_.ResMgr.inst.createNode(r,this.layer)).zIndex=s.monster,(d=i.getComponent(f.default)).atk=p.Utils.intDefault(e.data.effect1)/100*t.atk,d.monsterZooid=t.zooid,d.bulletId=e.id,h=p.Utils.strToJson(e.data.param),y=p.Utils.intDefault(e.data.speed,500),m=p.Utils.intDefault(h[1],100)/100,(v=p.Utils.getCpt(b.default,i)).dirction=n,v.speed=y,v.overTime=m,v.call=function(){var e=i.convertToWorldSpaceAR(cc.Vec2.ZERO),o=u.ConfigMgr.inst.getCfgClassById(l.EConfigConst.bullet,h[2],a.BulletItem);P.createMonsterBullet({worldPos:e,dirction:n,atk:t.atk,zooid:t.zooid},o),i.destroy(),console.log("@@=",i.getPosition().toString())},w=this.layer.convertToNodeSpaceAR(o),i.setPosition(w),2==(C=p.Utils.strToJson(e.data.end))[0]&&((M=i.addComponent(g.default)).time=C[1]/100,M.call=function(){i.destroy()}),[2]}})})},e.prototype.createPlayerBullet4=function(t){return i(this,void 0,void 0,function(){var e,o,n,r,i,l=this;return c(this,function(c){switch(c.label){case 0:return e=1,[4,_.ResMgr.inst.getPrefab("monster/bullet")];case 1:return o=c.sent(),(n=_.ResMgr.inst.createNode(o,this.layer)).zIndex=s.player,(r=p.Utils.getCpt(b.default,n)).dirction=cc.v2(0,1),r.speed=500,r.overTime=e,r.call=function(){for(var t=cc.v2(1,1).normalize(),e=0;e<10;e++){var r=_.ResMgr.inst.createNode(o,l.layer);r.zIndex=s.player;var i=r.getComponent(h.default),c=p.Utils.getCpt(v.default,r);c.dirction=t.rotate(p.Utils.radian(-36*e)),c.speed=500,i.setDirction(c.dirction),r.setPosition(n.getPosition())}n.destroy(),console.log("@@=",n.getPosition().toString())},i=this.layer.convertToNodeSpaceAR(t),n.setPosition(i),[2]}})})},e.prototype.createBulletById3=function(t,e){return i(this,void 0,void 0,function(){var o,n,r,i,l,a,u,d,h,m,b,w,C,M,P;return c(this,function(c){switch(c.label){case 0:return o=t.worldPos,n=t.dirction,r=p.Utils.strToJson(e.data.param),i=r[1],l=r[2],a=n,u=360,[4,_.ResMgr.inst.getPrefab("monster/monsterBullet")];case 1:for(d=c.sent(),h=new cc.Node("cricleBullet"),this.layer.addChild(h),(m=p.Utils.getCpt(v.default,h)).dirction=n,m.speed=p.Utils.intDefault(e.data.speed,500),b=this.layer.convertToNodeSpaceAR(o),h.setPosition(b),w=cc.tween(h).by(1,{angle:360}).repeatForever().start(),C=function(){cc.isValid(h,!0)&&h.childrenCount<=0&&(w.stop(),h.destroy())},M=function(o){var n=_.ResMgr.inst.createNode(d,h),r=n.getComponent(f.default);r.atk=p.Utils.intDefault(e.data.effect1)/100*t.atk,r.monsterZooid=t.zooid,r.bulletId=e.id,n.zIndex=s.monster;var c=a.rotate(p.Utils.radian(-u/l*o));n.setPosition(c.mul(i)),r.setDirction(c.rotate(p.Utils.radian(90))),n.addComponent(y.ResRelease).call=function(){C()};var m=p.Utils.strToJson(e.data.end);if(2==m[0]){var v=n.addComponent(g.default);v.time=m[1]/100,v.call=function(){n.destroy()}}},P=0;P<l;P++)M(P);return[2]}})})},e.prototype.createPlayerBullet3=function(t){return i(this,void 0,void 0,function(){var e,o,n,r,i,l,a,u,d,f,g,m,b,w;return c(this,function(c){switch(c.label){case 0:return e=8,o=40,n=cc.v2(0,1),r=360,[4,_.ResMgr.inst.getPrefab("monster/bullet")];case 1:for(i=c.sent(),l=new cc.Node("cricleBullet"),this.layer.addChild(l),(a=p.Utils.getCpt(v.default,l)).dirction=cc.v2(0,1),a.speed=500,u=this.layer.convertToNodeSpaceAR(t),l.setPosition(u),d=cc.tween(l).by(1,{angle:360}).repeatForever().start(),f=function(){cc.isValid(l,!0)&&l.childrenCount<=0&&(d.stop(),l.destroy())},g=0;g<e;g++)m=_.ResMgr.inst.createNode(i,l),b=m.getComponent(h.default),m.zIndex=s.player,w=n.rotate(p.Utils.radian(-r/e*g)),m.setPosition(w.mul(o)),b.setDirction(w.rotate(p.Utils.radian(90))),m.addComponent(y.ResRelease).call=function(){f()};return[2]}})})},e.skillNum=1,e}(m.GameSysLogic);o.Barrage=C,cc._RF.pop()},{"../cfg/ConfigDef":"ConfigDef","../cfg/bulletItem":"bulletItem","../cfg/configMgr":"configMgr","../common/utils":"utils","../monster/monsterModel":"monsterModel","../monster/monsterbullet":"monsterbullet","../player/bullet":"bullet","../res/resMgr":"resMgr","../res/resRelease":"resRelease","../update/delayStop":"delayStop","../update/gameSysLogic":"gameSysLogic","../update/move":"move","../update/moveTime":"moveTime","../zoo/zooMgr":"zooMgr"}],bulletItem:[function(t,e,o){"use strict";cc._RF.push(e,"d62abCEHGRPBZsnyR/4Jedg","bulletItem"),Object.defineProperty(o,"__esModule",{value:!0}),o.BulletItem=void 0;o.BulletItem=function(t,e){this.id=t,this.data=e},cc._RF.pop()},{}],bulletPlay:[function(t,e,o){"use strict";cc._RF.push(e,"f6985et2s9FNJv74oMt1sKe","bulletPlay");var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(o,"__esModule",{value:!0}),o.BulletPlay=void 0;var i,c=t("../cfg/ConfigDef"),s=t("../cfg/bulletItem"),l=t("../cfg/configMgr"),a=t("../nest/barrage"),u=t("../update/GameLogic");(function(t){t[t.none=0]="none",t[t.start=1]="start",t[t.done=2]="done"})(i||(i={}));var p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._state=i.none,e}return r(e,t),e.prototype.init=function(t,e){this._bulletId=t,this._delay=e;var o=l.ConfigMgr.inst.getCfgClassById(c.EConfigConst.bullet,t,s.BulletItem);this._cd=o.data.cd,this._nextTime=Date.now()},e.prototype.start=function(){this._state=i.start},e.prototype.gameUpdate=function(t){if(this._state==i.start&&(this._delay-=t,!(this._delay>0))){var e=Date.now();e>this._nextTime&&(this._nextTime=e+1e3*this._cd,a.Barrage.inst.createMonsterBulletByZooid(this.monsterZooid,this._bulletId))}},e}(u.GameLogic);o.BulletPlay=p,cc._RF.pop()},{"../cfg/ConfigDef":"ConfigDef","../cfg/bulletItem":"bulletItem","../cfg/configMgr":"configMgr","../nest/barrage":"barrage","../update/GameLogic":"GameLogic"}],bullet:[function(t,e,o){"use strict";cc._RF.push(e,"ea727IfRsRLMpwc+QysHqX5","bullet");var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,c=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(c=(i<3?r(c):i>3?r(e,o,c):r(e,o))||c);return i>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=t("../../../lq_collide_system/lq_collide"),s=t("../../../lq_collide_system/lq_collide_base"),l=t("../../../lq_collide_system/lq_collide_config"),a=t("../monster/monsterModel"),u=t("../nest/effectMgr"),p=cc._decorator,d=p.ccclass,f=p.property,h=p.requireComponent,_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.atk=10,e.$dragon_bone=null,e}return r(e,t),e.prototype.onLoad=function(){var t=this;this.$dragon_bone.playAnimation("appear",1),this.$dragon_bone.addEventListener("complete",function(){t.$dragon_bone.playAnimation("bullet_1",0)})},e.prototype.on_enter=function(t){if(t.collide_group_index==l.LQCollideInfoList.enemy){var e=this.node.convertToWorldSpaceAR(cc.Vec2.ZERO);u.EffectMgr.inst.createHarmNum(e,this.atk);var o=t.node.getComponent(a.MonsterModel);o.beAttacked(this.atk),o.isOver()&&t.node.destroy()}this.node.destroy()},e.prototype.setDirction=function(t){var e=cc.v2(0,1).signAngle(t)/Math.PI*180;this.node.angle=e},i([f({type:dragonBones.ArmatureDisplay,displayName:""})],e.prototype,"$dragon_bone",void 0),i([d,h(s.LQCollideBase)],e)}(c.LQCollide);o.default=_,cc._RF.pop()},{"../../../lq_collide_system/lq_collide":"lq_collide","../../../lq_collide_system/lq_collide_base":"lq_collide_base","../../../lq_collide_system/lq_collide_config":"lq_collide_config","../monster/monsterModel":"monsterModel","../nest/effectMgr":"effectMgr"}],configMgr:[function(t,e,o){"use strict";cc._RF.push(e,"61b51CM8LZJt7TUn6viH3Ik","configMgr"),Object.defineProperty(o,"__esModule",{value:!0}),o.ConfigMgr=void 0;var n=t("./ConfigDef"),r=function(){function t(){this.config=new cc.AssetManager.Cache}return Object.defineProperty(t,"inst",{get:function(){return null==this._inst&&(this._inst=new t),this._inst},enumerable:!1,configurable:!0}),t.prototype.init=function(){var t=this,e=n.jsonNames.map(function(t){return"json/"+t+".json"}),o=[];return e.forEach(function(e,r){var i=new Promise(function(o){cc.assetManager.loadRemote(e,function(e,i){i&&(t.config.add(n.jsonNames[r],i.json),cc.assetManager.releaseAsset(i)),o()})});o.push(i)}),Promise.all(o)},t.prototype.getCfgKeys=function(t){var e=n.jsonNames[t],o=this.config.get(e);return Object.keys(o)},t.prototype.getCfgById=function(t,e){var o=n.jsonNames[t];return this.config.get(o)[e]},t.prototype.getCfgClassById=function(t,e,o){var r=n.jsonNames[t];return new o(e,this.config.get(r)[e])},t}();o.ConfigMgr=r,cc._RF.pop()},{"./ConfigDef":"ConfigDef"}],debug:[function(t,e,o){"use strict";cc._RF.push(e,"9be2foFR/dPMrS0dlthIN09","debug");var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,c=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(c=(i<3?r(c):i>3?r(e,o,c):r(e,o))||c);return i>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=t("../../levelMgr"),s=t("../nest/barrage"),l=t("../player"),a=t("../update/logic"),u=cc._decorator,p=u.ccclass,d=u.property,f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.$gamePlay_btn=null,e.$decLevel_btn=null,e.$addLevel_btn=null,e.$levelSkip_btn=null,e.$attck_btn=null,e.$level_edit=null,e.$left_btn=null,e.$right_btn=null,e}return r(e,t),e.prototype.onGameplayTouchEnd=function(){a.GameLogicMgr.inst.switch()},e.prototype.onDeclevelTouchEnd=function(){c.LevelMgr.inst.pre()},e.prototype.onAddlevelTouchEnd=function(){c.LevelMgr.inst.next()},e.prototype.onLevelskipTouchEnd=function(){var t=this.$level_edit.string;c.LevelMgr.inst.skip(Number(t))},e.prototype.onAttckTouchEnd=function(){l.default.PlayerAttack=!l.default.PlayerAttack},e.prototype.onLeftTouchEnd=function(){s.Barrage.skillNum--,s.Barrage.skillNum=Math.max(s.Barrage.skillNum,1)},e.prototype.onRightTouchEnd=function(){s.Barrage.skillNum++,s.Barrage.skillNum=Math.min(s.Barrage.skillNum,4)},e.prototype.onLoad=function(){this.$level_edit.string=c.LevelMgr.inst.getMax().toString()},i([d({type:cc.Button,displayName:""})],e.prototype,"$gamePlay_btn",void 0),i([d({type:cc.Button,displayName:""})],e.prototype,"$decLevel_btn",void 0),i([d({type:cc.Button,displayName:""})],e.prototype,"$addLevel_btn",void 0),i([d({type:cc.Button,displayName:""})],e.prototype,"$levelSkip_btn",void 0),i([d({type:cc.Button,displayName:""})],e.prototype,"$attck_btn",void 0),i([d({type:cc.EditBox,displayName:""})],e.prototype,"$level_edit",void 0),i([d({type:cc.Button,displayName:""})],e.prototype,"$left_btn",void 0),i([d({type:cc.Button,displayName:""})],e.prototype,"$right_btn",void 0),i([p],e)}(cc.Component);o.default=f,cc._RF.pop()},{"../../levelMgr":"levelMgr","../nest/barrage":"barrage","../player":"player","../update/logic":"logic"}],delayStop:[function(t,e,o){"use strict";cc._RF.push(e,"79ff0/l7YRFOrpLipEA/8LF","delayStop");var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,c=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(c=(i<3?r(c):i>3?r(e,o,c):r(e,o))||c);return i>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=t("./GameLogic"),s=cc._decorator,l=s.ccclass,a=(s.property,function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.time=10,e}return r(e,t),e.prototype.gameUpdate=function(t){this.time-=t,this.time<=0&&this.call&&this.call()},i([l],e)}(c.GameLogic));o.default=a,cc._RF.pop()},{"./GameLogic":"GameLogic"}],draw:[function(t,e,o){"use strict";cc._RF.push(e,"079d2TH8t9PbagNA8UfVZr9","draw");var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,c=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(c=(i<3?r(c):i>3?r(e,o,c):r(e,o))||c);return i>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0}),o.Draw=void 0;var c=t("../../Script/game/common/utils"),s=cc._decorator,l=s.ccclass,a=(s.property,s.executeInEditMode),u=(s.playOnFocus,function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.start=function(){var t=c.Utils.getCpt(cc.Graphics,this.node);t.lineWidth=5,t.strokeColor=new cc.Color(255,0,0),t.fillColor=new cc.Color(255,0,0);var e=this.node.getContentSize();0==e.width&&(e=cc.size(10,10)),t.moveTo(.5*-e.width,.5*-e.height),t.lineTo(.5*-e.width,.5*+e.height),t.lineTo(.5*e.width,.5*+e.height),t.lineTo(.5*e.width,.5*-e.height),t.lineTo(.5*-e.width,.5*-e.height),t.stroke()},i([l,a],e)}(cc.Component));o.Draw=u,cc._RF.pop()},{"../../Script/game/common/utils":"utils"}],editorSet:[function(t,e,o){"use strict";cc._RF.push(e,"827a74V/ddBf7ZqYjMo33pE","editorSet"),Object.defineProperty(o,"__esModule",{value:!0}),o.EditorSet=void 0,(o.EditorSet||(o.EditorSet={})).DontShow=function(){},cc._RF.pop()},{}],effectMgr:[function(t,e,o){"use strict";cc._RF.push(e,"63b50ljfRRNbaITAb2rcNNe","effectMgr");var n=this&&this.__awaiter||function(t,e,o,n){return new(o||(o=Promise))(function(r,i){function c(t){try{l(n.next(t))}catch(e){i(e)}}function s(t){try{l(n.throw(t))}catch(e){i(e)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof o?e:new o(function(t){t(e)})).then(c,s)}l((n=n.apply(t,e||[])).next())})},r=this&&this.__generator||function(t,e){var o,n,r,i,c={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(t){return function(e){return l([t,e])}}function l(i){if(o)throw new TypeError("Generator is already executing.");for(;c;)try{if(o=1,n&&(r=2&i[0]?n.return:i[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,i[1])).done)return r;switch(n=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return c.label++,{value:i[1],done:!1};case 5:c.label++,n=i[1],i=[0];continue;case 7:i=c.ops.pop(),c.trys.pop();continue;default:if(!(r=(r=c.trys).length>0&&r[r.length-1])&&(6===i[0]||2===i[0])){c=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){c.label=i[1];break}if(6===i[0]&&c.label<r[1]){c.label=r[1],r=i;break}if(r&&c.label<r[2]){c.label=r[2],c.ops.push(i);break}r[2]&&c.ops.pop(),c.trys.pop();continue}i=e.call(t,c)}catch(s){i=[6,s],n=0}finally{o=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}};Object.defineProperty(o,"__esModule",{value:!0}),o.EffectMgr=void 0;var i=t("../monster/harmnum"),c=t("../res/resMgr"),s=function(){function t(){}return Object.defineProperty(t,"inst",{get:function(){return null==this._inst&&(this._inst=new t),this._inst},enumerable:!1,configurable:!0}),t.prototype.createHarmNum=function(t,e){return n(this,void 0,void 0,function(){var o,n;return r(this,function(r){switch(r.label){case 0:return[4,c.ResMgr.inst.loadPrefab("monster/harmNum",this.layer)];case 1:return o=r.sent(),n=this.layer.convertToNodeSpaceAR(t),o.setPosition(n),o.getComponent(i.default).setHarm(e),[2]}})})},t}();o.EffectMgr=s,cc._RF.pop()},{"../monster/harmnum":"harmnum","../res/resMgr":"resMgr"}],eventDef:[function(t,e,o){"use strict";cc._RF.push(e,"f6e330HhbVJBLbMuaPUeUxQ","eventDef"),Object.defineProperty(o,"__esModule",{value:!0}),o.Touch_End=o.Touch_Move=o.Touch_Start=o.Roker_End=o.Roker_Move=void 0,o.Roker_Move="roker_move",o.Roker_End="roker_end",o.Touch_Start="Touch_Start",o.Touch_Move="Touch_Move",o.Touch_End="Touch_End",cc._RF.pop()},{}],flyImg:[function(t,e,o){"use strict";cc._RF.push(e,"09583eOmypGVb3f5sErEHEE","flyImg");var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,c=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(c=(i<3?r(c):i>3?r(e,o,c):r(e,o))||c);return i>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=t("./update/GameLogic"),s=cc._decorator,l=s.ccclass,a=s.property,u=s.executeInEditMode,p=s.playOnFocus,d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.pos=cc.v2(0,0),e.uvSpeed=0,e.mat=null,e._speed=100,e}return r(e,t),Object.defineProperty(e.prototype,"speed",{get:function(){return this._speed},set:function(t){this._speed=t,this.uvSpeed=t/this.node.height},enumerable:!1,configurable:!0}),e.prototype.onLoad=function(){this.getComponent(cc.Sprite).getMaterial(0).setProperty("center",this.pos),this.uvSpeed=this.speed/this.node.height,this.mat=this.node.getComponent(cc.Sprite).getMaterial(0)},e.prototype.gameUpdate=function(t){var e=this.uvSpeed*t;this.pos.y-=e,this.mat.setProperty("center",this.pos)},i([a({type:cc.Integer})],e.prototype,"_speed",void 0),i([a({type:cc.Integer})],e.prototype,"speed",null),i([l,u,p],e)}(c.GameLogic);o.default=d,cc._RF.pop()},{"./update/GameLogic":"GameLogic"}],gameSysLogic:[function(t,e,o){"use strict";cc._RF.push(e,"3c558/FZqFIUILkc1JZIGtB","gameSysLogic"),Object.defineProperty(o,"__esModule",{value:!0}),o.GameSysLogic=void 0;var n=t("./logic"),r=function(){function t(){this.logicId=0,t._baseId++,this.logicId=t._baseId,n.GameLogicMgr.inst.addSysLogic(this)}return t.prototype.end=function(){n.GameLogicMgr.inst.removeSysLogic(this)},t.prototype.gameUpdate=function(){},t.prototype.gameUpdateSec=function(){},t._baseId=0,t}();o.GameSysLogic=r,cc._RF.pop()},{"./logic":"logic"}],harmnum:[function(t,e,o){"use strict";cc._RF.push(e,"64b06xC6XVD6K6kbelO+Pgb","harmnum");var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,c=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(c=(i<3?r(c):i>3?r(e,o,c):r(e,o))||c);return i>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=cc._decorator,s=c.ccclass,l=c.property,a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.$text_lb=null,e}return r(e,t),e.prototype.onLoad=function(){var t=this;this.$text_lb.getComponent(cc.Animation).once(cc.Animation.EventType.FINISHED,function(){t.node.destroy()})},e.prototype.setHarm=function(t){this.$text_lb.string=t.toString()},i([l({type:cc.Label,displayName:""})],e.prototype,"$text_lb",void 0),i([s],e)}(cc.Component);o.default=a,cc._RF.pop()},{}],levelMgr:[function(t,e,o){"use strict";cc._RF.push(e,"4e226LcBG1AUrUjgcc4NxLI","levelMgr");var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=this&&this.__awaiter||function(t,e,o,n){return new(o||(o=Promise))(function(r,i){function c(t){try{l(n.next(t))}catch(e){i(e)}}function s(t){try{l(n.throw(t))}catch(e){i(e)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof o?e:new o(function(t){t(e)})).then(c,s)}l((n=n.apply(t,e||[])).next())})},c=this&&this.__generator||function(t,e){var o,n,r,i,c={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(t){return function(e){return l([t,e])}}function l(i){if(o)throw new TypeError("Generator is already executing.");for(;c;)try{if(o=1,n&&(r=2&i[0]?n.return:i[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,i[1])).done)return r;switch(n=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return c.label++,{value:i[1],done:!1};case 5:c.label++,n=i[1],i=[0];continue;case 7:i=c.ops.pop(),c.trys.pop();continue;default:if(!(r=(r=c.trys).length>0&&r[r.length-1])&&(6===i[0]||2===i[0])){c=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){c.label=i[1];break}if(6===i[0]&&c.label<r[1]){c.label=r[1],r=i;break}if(r&&c.label<r[2]){c.label=r[2],c.ops.push(i);break}r[2]&&c.ops.pop(),c.trys.pop();continue}i=e.call(t,c)}catch(s){i=[6,s],n=0}finally{o=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}};Object.defineProperty(o,"__esModule",{value:!0}),o.LevelMgr=void 0;var s,l=t("../lq_collide_system/lq_collide"),a=t("./game/cfg/ConfigDef"),u=t("./game/cfg/configMgr"),p=t("./game/cfg/smallLevelItem"),d=t("./game/common/utils"),f=t("./game/level/levelempty"),h=t("./game/level/nestConditionMgr"),_=t("./game/nest/nestPlay"),y=t("./game/res/resMgr"),g=t("./game/update/gameSysLogic"),m=5;(function(t){t[t.none=0]="none",t[t.loading=1]="loading",t[t.playing=2]="playing"})(s||(s={}));var v=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.passCnt=0,e.state=s.none,e.nestArr=[],e.conditionArr=[],e}return r(e,t),Object.defineProperty(e,"inst",{get:function(){return null==this._inst&&(this._inst=new e,this._inst.init()),this._inst},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.gameUpdateSec=function(){if(this.state==s.playing&&!(this.layer.getComponentsInChildren(l.LQCollide).length>0)&&this.mgr.isDone()){for(var t=0;t<this.nestArr.length;t++)if(!this.nestArr[t].isDone())return;this.next()}},e.prototype.getMonsterCnt=function(){return this.layer.getComponentsInChildren(l.LQCollide).length},e.prototype.begin=function(){return i(this,void 0,void 0,function(){return c(this,function(){return this.passCnt=0,m=u.ConfigMgr.inst.getCfgKeys(a.EConfigConst.smallLevel).length,this.load(),[2]})})},e.prototype.load=function(){this.title.string="level"+(this.passCnt+1),this.loadSmallLevel()},e.prototype.loadSmallLevel=function(){return i(this,void 0,void 0,function(){var t,e,o,n,r=this;return c(this,function(i){switch(i.label){case 0:return this.layer.destroyAllChildren(),this.nestArr=[],this.conditionArr=[],this.state=s.loading,this.mgr&&this.mgr.destroy(),[4,y.ResMgr.inst.loadPrefab("level/levelEmpty",this.layer)];case 1:return t=i.sent(),e=t.getComponent(f.default),o=u.ConfigMgr.inst.getCfgClassById(a.EConfigConst.smallLevel,this.passCnt+1,p.SmallLevelItem),n=[],d.Utils.strToJson(o.data.nest1).forEach(function(t){var o=d.Utils.createNode(e.$top_node,"nest-[level:"+(r.passCnt+1)+"]nest1").addComponent(_.NestPlay),i=o.init(t[0],t[1]);n.push(i),r.nestArr.push(o)}),[4,Promise.all(n)];case 2:return i.sent(),this.state=s.playing,this.mgr=new h.NestConditionMgr,this.mgr.init(o),this.mgr.start(),this.mgr.call=function(t){var n="nest"+(t+2);d.Utils.strToJson(o.data[n]).forEach(function(t){var o=d.Utils.createNode(e.$top_node,"nest-[level:"+(r.passCnt+1)+"]"+n).addComponent(_.NestPlay);o.init(t[0],t[1]),r.nestArr.push(o)})},[2]}})})},e.prototype.skip=function(t){cc.log("skip-",t),t>m||t<1||(this.passCnt=t-1,this.load())},e.prototype.next=function(){this.passCnt+1>=m||(this.passCnt++,this.load())},e.prototype.pre=function(){this.passCnt<=0||(this.passCnt--,this.load())},e.prototype.getMax=function(){return m},e.prototype.loadPrefabLevel=function(){var t=this;this.state=s.loading,this.title.string="level"+(this.passCnt+1),this.layer.destroyAllChildren(),y.ResMgr.inst.loadPrefab("level/level"+(this.passCnt+1),this.layer).then(function(){t.state=s.playing})},e}(g.GameSysLogic);o.LevelMgr=v,cc._RF.pop()},{"../lq_collide_system/lq_collide":"lq_collide","./game/cfg/ConfigDef":"ConfigDef","./game/cfg/configMgr":"configMgr","./game/cfg/smallLevelItem":"smallLevelItem","./game/common/utils":"utils","./game/level/levelempty":"levelempty","./game/level/nestConditionMgr":"nestConditionMgr","./game/nest/nestPlay":"nestPlay","./game/res/resMgr":"resMgr","./game/update/gameSysLogic":"gameSysLogic"}],levelempty:[function(t,e,o){"use strict";cc._RF.push(e,"2f855CJRftJBq+e1rBSJT1T","levelempty");var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,c=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(c=(i<3?r(c):i>3?r(e,o,c):r(e,o))||c);return i>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=cc._decorator,s=c.ccclass,l=c.property,a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.$top_node=null,e}return r(e,t),i([l({type:cc.Node,displayName:""})],e.prototype,"$top_node",void 0),i([s],e)}(cc.Component);o.default=a,cc._RF.pop()},{}],loading:[function(t,e,o){"use strict";cc._RF.push(e,"61057L8SgdKBL6yugliubUV","loading");var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,c=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(c=(i<3?r(c):i>3?r(e,o,c):r(e,o))||c);return i>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=cc._decorator,s=c.ccclass,l=(c.property,function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),i([s],e)}(cc.Component));o.default=l,cc._RF.pop()},{}],logic:[function(t,e,o){"use strict";cc._RF.push(e,"721325RsEFGt6uG4FoA75+t","logic"),Object.defineProperty(o,"__esModule",{value:!0}),o.GameLogicMgr=void 0;var n=function(){function t(){this.isGamePause=!1,this.sysLogics=new Map,this.timer=new Map,this.idBase_timer=0}return Object.defineProperty(t,"inst",{get:function(){return null==this._inst&&(this._inst=new t,this._inst.init()),this._inst},enumerable:!1,configurable:!0}),t.prototype.switch=function(){this.isGamePause=!this.isGamePause,dragonBones.timeScale=this.isGamePause?0:1},t.prototype.init=function(){var e=cc.director.getAnimationManager(),o=cc.director.getActionManager();e._oldUpdate=e.update,e.update=function(o){t.inst.isGamePause||e._oldUpdate(o)},o._oldUpdate=o.update,o.update=function(e){t.inst.isGamePause||o._oldUpdate(e)},cc.director.getScheduler().enableForTarget(this),cc.director.getScheduler().schedule(this.update,this,0,cc.macro.REPEAT_FOREVER,0,!1),cc.director.getScheduler().schedule(this.updateSec,this,1,cc.macro.REPEAT_FOREVER,0,!1)},t.prototype.update=function(t){var e=this;if(!this.isGamePause){this.sysLogics.forEach(function(e){e.gameUpdate(t)});var o=[];this.timer.forEach(function(e,n){e.time-=t,e.time<=0&&(e.call&&e.call(),o.push(n))}),o.forEach(function(t){e.timer.delete(t)})}},t.prototype.updateSec=function(t){this.isGamePause||this.sysLogics.forEach(function(e){e.gameUpdateSec(t)})},t.prototype.end=function(){cc.director.getScheduler().unschedule(this.update,this),cc.director.getScheduler().unschedule(this.updateSec,this)},t.prototype.addSysLogic=function(t){this.sysLogics.set(t.logicId,t)},t.prototype.removeSysLogic=function(t){this.sysLogics.delete(t.logicId)},t.prototype.setGameTimeout=function(t,e){var o=this.idBase_timer++;return this.timer.set(o,{time:e,call:t}),o},t.prototype.clearGameTimeout=function(t){this.timer.delete(t)},t}();o.GameLogicMgr=n,cc._RF.pop()},{}],lq_base_util:[function(t,e,o){"use strict";cc._RF.push(e,"b1594dXFXBAz7OcUYK7qK7P","lq_base_util"),Object.defineProperty(o,"__esModule",{value:!0}),o.LQBaseUtil=void 0;var n=t("./lq_platform_util"),r=t("../data/lq_const"),i=cc.view,c=function(){function t(){}return t.has_value=function(t,e){for(var o=!1,n=0;n<t.length;n++)if(t[n]===e){o=!0;break}return o},t.get_value_by_duration=function(t,e){if(0===e.length)return 1;for(var o=-1,n=1;n<e.length;n++)if(e[n].x>t){o=n;break}if(-1===o)return e[e.length-1].y;var r=o-1;return e[r].y+(e[o].y-e[r].y)*((t-e[r].x)/(e[o].x-e[r].x))},t.number_to_counting=function(t){return t<1e3?t+"":t<1e6?Math.floor(t/1e3)+"K":t<1e9?Math.floor(t/1e6)+"M":t<1e12?Math.floor(t/1e9)+"B":Math.floor(t/1e12)+"T"},t.number_to_time=function(t){var e=Math.floor(t/3600);t-=3600*e;var o=e.toString(),n=Math.floor(t/60).toString(),r=(t%60).toString();return 1===o.length&&(o="0"+o),1===n.length&&(n="0"+n),1===r.length&&(r="0"+r),[o,n,r]},t.set_normal_angle=function(t){for(;t>360;)t-=360;for(;t<0;)t+=360;return t},t.compare_version=function(t,e){for(var o=t.split("."),n=e.split("."),r=Math.max(o.length,n.length);o.length<r;)o.push("0");for(;n.length<r;)n.push("0");for(var i=0;i<r;i++){var c=parseInt(o[i]),s=parseInt(n[i]);if(c>s)return 1;if(c<s)return-1}return 0},t.is_today=function(t){var e,o=new Date;return t&&""!==t?e=new Date(t):(e=new Date).setDate(e.getDate()-1),o.getFullYear()===e.getFullYear()&&o.getMonth()===e.getMonth()&&o.getDate()===e.getDate()},t.is_safe_area=function(){var t=function(t,e){return 2280===t&&1080===e||1792===t&&828===e||2436===t&&1125===e||2688===t&&1242===e};switch(n.LQPlatformUtil.get_platform()){case r.LQPlatformType.baidu:var e=swan.getSystemInfoSync();return t(e.pixelRatio*e.screenWidth,e.pixelRatio*e.screenHeight);case r.LQPlatformType.qq:var o=qq.getSystemInfoSync();return t(o.pixelRatio*o.screenWidth,o.pixelRatio*o.screenHeight);case r.LQPlatformType.tt:var c=tt.getSystemInfoSync();return t(c.pixelRatio*c.screenWidth,c.pixelRatio*c.screenHeight);case r.LQPlatformType.oppo:case r.LQPlatformType.vivo:var s=qg.getSystemInfoSync();return t(s.pixelRatio*s.screenWidth,s.pixelRatio*s.screenHeight);case r.LQPlatformType.wx:var l=wx.getSystemInfoSync();return t(l.pixelRatio*l.screenWidth,l.pixelRatio*l.screenHeight);case r.LQPlatformType.android:break;case r.LQPlatformType.ios:var a=i.getFrameSize();return t(a.width,a.height)}return!1},t.deep_clone=function(t){if("object"!=typeof t)return t;var e=t instanceof Array?[]:{};for(var o in t)"object"==typeof t[o]?e[o]=this.deep_clone(t[o]):e[o]=t[o];return e},t}();o.LQBaseUtil=c,cc._RF.pop()},{"../data/lq_const":"lq_const","./lq_platform_util":"lq_platform_util"}],lq_collide_base:[function(t,e,o){"use strict";cc._RF.push(e,"3491dCwpnhFEqX9BL4D2ZCF","lq_collide_base");var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,c=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(c=(i<3?r(c):i>3?r(e,o,c):r(e,o))||c);return i>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0}),o.LQCollideBase=void 0;var c=cc._decorator.ccclass,s=cc._decorator.executeInEditMode,l=(cc.PolygonCollider,cc._decorator.property),a=t("./lq_collide"),u=(t("../lq_base/data/lq_const"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.auto_update_point=!0,e}return r(e,t),e.prototype.find_collide=function(){var t=this.node.getComponent(a.LQCollide);if(t)return t;console.error(this.node.name+":\u6ca1\u6709\u627e\u5230LQCollide\u7ec4\u4ef6")},e.prototype.onLoad=function(){var t=this.find_collide();t&&t.init_lq_collide()},e.prototype.onEnable=function(){var t=this.find_collide();t&&t.enable_lq_collide()},e.prototype.onDisable=function(){var t=this.find_collide();t&&t.disable_lq_collide()},e.prototype.onDestroy=function(){this.find_collide()},e.prototype.onFocusInEditor=function(){this.find_collide()},e.prototype.onLostFocusInEditor=function(){this.find_collide()},e.prototype.resetInEditor=function(){this.find_collide()},e.prototype.update=function(){},i([l({tooltip:"\u591a\u8fb9\u5f62\u81ea\u52a8\u540c\u6b65cocos PolygonCollider \u7ec4\u4ef6\u4e2d\u7684\u78b0\u649e\u70b9"})],e.prototype,"auto_update_point",void 0),i([c,s],e)}(cc.Component));o.LQCollideBase=u,cc._RF.pop()},{"../lq_base/data/lq_const":"lq_const","./lq_collide":"lq_collide"}],lq_collide_config:[function(t,e,o){"use strict";cc._RF.push(e,"a7388G06nJN9a7Qh8tcl84U","lq_collide_config"),Object.defineProperty(o,"__esModule",{value:!0}),o.LQCollideConfig=o.LQCollideInfoList=void 0,function(t){t[t.default=0]="default",t[t.role=1]="role",t[t.role_bullet=2]="role_bullet",t[t.enemy=3]="enemy",t[t.enemy_bullet=4]="enemy_bullet",t[t.prop=5]="prop"}(o.LQCollideInfoList||(o.LQCollideInfoList={}));var n=function(){function t(){}return t.switch_auto_run=!0,t.switch_print_log=!1,t.switch_quad_tree=!1,t.max_node_len=10,t.per_frame=60,t.max_node_level=4,t.active_area_x=0,t.active_area_y=0,t.active_area_width=1e3,t.active_area_height=1e3,t.collide_group_map={default:{id:1,category:1,index:0,mask:1},role:{id:2,category:2,index:1,mask:56},role_bullet:{id:3,category:4,index:2,mask:40},enemy:{id:4,category:8,index:3,mask:6},enemy_bullet:{id:5,category:16,index:4,mask:34},prop:{id:6,category:32,index:5,mask:22}},t}();o.LQCollideConfig=n,cc._RF.pop()},{}],lq_collide_system:[function(t,e,o){"use strict";cc._RF.push(e,"1459eaDBFhFPZbiRADWgq6V","lq_collide_system"),o.__esModule=!0,o.LQCollideSystem=void 0;var n=t("../lq_base/data/lq_const"),r=t("../lq_base/util/lq_math_util"),i=t("./lq_collide_config"),c=t("../lq_base/data/lq_data"),s=cc.Vec2,l=cc.game,a=cc.director,u=cc.Scheduler,p=cc.misc,d=function(){function t(t,e,o,n){this.collide_arr=[],this.node_arr=[],this.max_object=e||10,this.max_level=o||4,this.level=n||0,this.rect=t,this.collide_arr=[],this.node_arr=[]}return t.prototype.split=function(){var e=this.level+1,o=.5*this.rect.width,n=.5*this.rect.height,r=this.rect.x,i=this.rect.y;this.node_arr[0]=new t(new c.LQRect(r+o,i,o,n),this.max_object,this.max_level,e),this.node_arr[1]=new t(new c.LQRect(r,i,o,n),this.max_object,this.max_level,e),this.node_arr[2]=new t(new c.LQRect(r,i+n,o,n),this.max_object,this.max_level,e),this.node_arr[3]=new t(new c.LQRect(r+o,i+n,o,n),this.max_object,this.max_level,e)},t.prototype.get_index=function(t){var e=[],o=this.rect.x+this.rect.half_width,n=this.rect.y+this.rect.half_height,r=t.world_rect.y+t.world_rect.half_height>n,i=t.world_rect.x-t.world_rect.half_width<o,c=t.world_rect.x+t.world_rect.half_width>o,s=t.world_rect.y-t.world_rect.half_height<n;return c&&r&&e.push(0),i&&r&&e.push(1),i&&s&&e.push(2),s&&c&&e.push(3),e},t.prototype.insert=function(t){var e;if(this.node_arr.length){e=this.get_index(t);for(var o=0;o<e.length;o++)this.node_arr[e[o]].insert(t)}else if(this.collide_arr.push(t),this.collide_arr.length>this.max_object&&this.level<this.max_level){for(this.node_arr.length||this.split(),o=0;o<this.collide_arr.length;o++){var n=this.collide_arr[o];e=this.get_index(n);for(var r=0;r<e.length;r++)this.node_arr[e[r]].insert(n)}this.collide_arr=[]}},t.prototype.retrieve=function(e){var o,n=this.get_index(e);if(this.collide_arr.length&&(o=t.temp_collide_arr).push.apply(o,this.collide_arr),this.node_arr.length)for(var r=0;r<n.length;r++)this.node_arr[n[r]].retrieve(e)},t.prototype.get_all_area=function(){if(this.collide_arr.length&&t.all_collide_arr.push(this.collide_arr),this.node_arr.length)for(var e=0;e<4;e++)this.node_arr[e].get_all_area()},t.prototype.clear=function(){this.collide_arr=[];for(var t=0;t<this.node_arr.length;t++)this.node_arr.length&&this.node_arr[t].clear();this.node_arr=[]},t.temp_collide_arr=[],t.all_collide_arr=[],t}(),f=function(){function t(){}return t.cache_polygon=function(t){if(t._collide_shape===n.LQCollideShape.Rect){t.cache_polygon_points=[];var e=t.world_rect.top_left();t.cache_polygon_points.push(e.x),t.cache_polygon_points.push(e.y),e=t.world_rect.bottom_left(),t.cache_polygon_points.push(e.x),t.cache_polygon_points.push(e.y),e=t.world_rect.bottom_right(),t.cache_polygon_points.push(e.x),t.cache_polygon_points.push(e.y),e=t.world_rect.top_right(),t.cache_polygon_points.push(e.x),t.cache_polygon_points.push(e.y)}else if(t._collide_shape===n.LQCollideShape.Polygon)if(t.cache_polygon_points=[],0==t.node.angle)for(var o=0;o<t._polygon_points.length;o++)e=t.world_rect.add(t._polygon_points[o]),t.cache_polygon_points.push(e.x),t.cache_polygon_points.push(e.y);else{var r=p.degreesToRadians(t.node.angle),i=Math.sin(r),c=Math.cos(r);for(o=0;o<t._polygon_points.length;o++)l=t._polygon_points[o],e=new s(l.x*c-l.y*i+t.world_rect.x,l.x*i+l.y*c+t.world_rect.y),t.cache_polygon_points.push(e.x),t.cache_polygon_points.push(e.y)}var l},t._updateWorldMatrix=function(e){if(e._parent&&t._updateWorldMatrix(e._parent),e._worldMatDirty){this.tmp_bool=!0,e._calculWorldMatrix();for(var o=e._children,n=0,r=o.length;n<r;n++)o[n]._worldMatDirty=!0}},t.transformMat4=function(t,e,o){var n=o.m;return t.x=n[0]*e.x+n[4]*e.y+n[12],t.y=n[1]*e.x+n[5]*e.y+n[13],t},t.update_world_rect=function(e){e.world_rect&&(this.tmp_bool=!1,this._updateWorldMatrix(e.node),this.tmp_bool&&(e.cache_polygon_points=void 0),t.transformMat4(e.world_rect,e._offset,e.node._worldMatrix))},t.update_collide_logic=function(t){if(t.is_open_func)for(var e in t.collide_map){var o=t.collide_map[e];1===o.status?o.status=2:(delete t.collide_map[e],t.on_exit(o.collide))}t.update_lq_collide()},t.collide_other=function(t,e){if(t.is_open_func){var o=t.collide_map[e.collide_id];o?o.status=1:(t.collide_map[e.collide_id]={collide:e,status:1},t.on_enter(e))}if(e.is_open_func){var n=e.collide_map[t.collide_id];n?n.status=1:(e.collide_map[t.collide_id]={collide:t,status:1},e.on_enter(t))}t.on_collide(e),e.on_collide(t)},t.add_collide=function(t){this.update_world_rect(t),this.collide_arr.push(t)},t.remove_collide=function(t){for(var e=this.collide_arr.length-1;e>=0;e--)if(this.collide_arr[e].collide_id===t.collide_id){this.collide_arr.splice(e,1);break}},t.line_point=function(t,e,o,n,r,i){return Math.abs(this.distanceSquared(t,e,o,n)-(this.distanceSquared(t,e,r,i)+this.distanceSquared(o,n,r,i)))<=1},t.distanceSquared=function(t,e,o,n){return Math.sqrt(Math.pow(t-o,2)+Math.pow(e-n,2))},t.polygon_point=function(t,e,o){var n,r,i=t.length,c=!1;for(n=0,r=i-2;n<i;n+=2)t[n+1]>o!=t[r+1]>o&&e<(t[r]-t[n])*(o-t[n+1])/(t[r+1]-t[n+1])+t[n]&&(c=!c),r=n;if(c)return!0;for(n=0;n<i;n+=2){var s=t[n],l=t[n+1],a=void 0,u=void 0;if(n===i-2?(a=t[0],u=t[1]):(a=t[n+2],u=t[n+3]),this.line_point(s,l,a,u,e,o))return!0}return!1},t.polygon_circle=function(t,e,o,n){if(this.polygon_point(t,e,o))return!0;for(var r=t.length,i=0;i<r-2;i+=2)if(this.line_circle(t[i],t[i+1],t[i+2],t[i+3],e,o,n))return!0;return this.line_circle(t[0],t[1],t[r-2],t[r-1],e,o,n)},t.line_circle=function(t,e,o,n,r,i,c){var s=[r-t,i-e],l=[o-t,n-e],a=this.dot(l,l),u=this.dot(s,l)/a,p=[l[0]*(u=(u=u<0?0:u)>1?1:u)+t-r,l[1]*u+e-i];return this.dot(p,p)<=c*c},t.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]},t.update_logic=function(){if(this.is_enable)if(i.LQCollideConfig.switch_quad_tree){this.quad_tree.clear();for(var t=this.collide_arr.length-1;t>=0;t--){if(!(l=this.collide_arr[t]))return;l.isValid?(this.update_collide_logic(l),l.is_enable&&(this.update_world_rect(l),this.quad_tree.insert(l))):this.collide_arr.splice(t,1)}d.all_collide_arr=[],this.quad_tree.get_all_area();for(var e=0;e<d.all_collide_arr.length;e++){var o=d.all_collide_arr[e];for(t=0;t<o.length;t++)for(var n=o[t],c=t+1;c<o.length;c++){var s=o[c];n.collide_category&s.collide_mask&&n!==s&&(1===n._collide_shape&&1===s._collide_shape?r.LQMathUtil.intersects_rect(n.world_rect,s.world_rect)&&this.collide_other(n,s):1===n._collide_shape&&2===s._collide_shape?r.LQMathUtil.intersects_circle_rect(s.world_rect,s.radius,n.world_rect)&&this.collide_other(n,s):2===n._collide_shape&&1===s._collide_shape?r.LQMathUtil.intersects_circle_rect(n.world_rect,n.radius,s.world_rect)&&this.collide_other(n,s):2===n._collide_shape&&2===s._collide_shape?r.LQMathUtil.intersects_circle(n.world_rect,n.radius,s.world_rect,s.radius)&&this.collide_other(n,s):3==n._collide_shape&&2==s._collide_shape?(n.cache_polygon_points||this.cache_polygon(n),this.polygon_circle(n.cache_polygon_points,s.world_rect.x,s.world_rect.y,s.radius)&&this.collide_other(n,s)):2==n._collide_shape&&3==s._collide_shape?(s.cache_polygon_points||this.cache_polygon(s),this.polygon_circle(s.cache_polygon_points,n.world_rect.x,n.world_rect.y,n.radius)&&this.collide_other(n,s)):(n.cache_polygon_points||this.cache_polygon(n),s.cache_polygon_points||this.cache_polygon(s),this.polygon_polygon(n.cache_polygon_points,s.cache_polygon_points)&&this.collide_other(n,s)))}}}else{for(o=[],t=this.collide_arr.length-1;t>=0;t--){var l;if(!(l=this.collide_arr[t]))return;l.isValid?(this.update_collide_logic(l),l.is_enable&&(this.update_world_rect(l),o.push(l))):this.collide_arr.splice(t,1)}var a=o.length;for(t=0;t<a;t++)for(n=o[t],c=t+1;c<a;c++)s=o[c],n.collide_category&s.collide_mask&&(1===n._collide_shape&&1===s._collide_shape?r.LQMathUtil.intersects_rect(n.world_rect,s.world_rect)&&this.collide_other(n,s):1===n._collide_shape&&2===s._collide_shape?r.LQMathUtil.intersects_circle_rect(s.world_rect,s.radius,n.world_rect)&&this.collide_other(n,s):2===n._collide_shape&&1===s._collide_shape?r.LQMathUtil.intersects_circle_rect(n.world_rect,n.radius,s.world_rect)&&this.collide_other(n,s):2===n._collide_shape&&2===s._collide_shape?r.LQMathUtil.intersects_circle(n.world_rect,n.radius,s.world_rect,s.radius)&&this.collide_other(n,s):3==n._collide_shape&&2==s._collide_shape?(n.cache_polygon_points||this.cache_polygon(n),this.polygon_circle(n.cache_polygon_points,s.world_rect.x,s.world_rect.y,s.radius)&&this.collide_other(n,s)):2==n._collide_shape&&3==s._collide_shape?(s.cache_polygon_points||this.cache_polygon(s),this.polygon_circle(s.cache_polygon_points,n.world_rect.x,n.world_rect.y,n.radius)&&this.collide_other(n,s)):(n.cache_polygon_points||this.cache_polygon(n),s.cache_polygon_points||this.cache_polygon(s),this.polygon_polygon(n.cache_polygon_points,s.cache_polygon_points)&&this.collide_other(n,s)))}},t.polygon_polygon=function(t,e){for(var o,n,r,i,c,s,l=t,a=e,u=[l,a],p=0;p<u.length;p++)for(var d=u[p],f=0;f<d.length;f+=2){var h=(f+2)%d.length,_={x:d[h+1]-d[f+1],y:d[f]-d[h]};for(o=null,n=null,s=0;s<l.length;s+=2)r=_.x*l[s]+_.y*l[s+1],(null===o||r<o)&&(o=r),(null===n||r>n)&&(n=r);for(i=null,c=null,s=0;s<a.length;s+=2)r=_.x*a[s]+_.y*a[s+1],(null===i||r<i)&&(i=r),(null===c||r>c)&&(c=r);if(n<i||c<o)return!1}return!0},t.get_group_by_index=function(t){for(var e in i.LQCollideConfig.collide_group_map){var o=i.LQCollideConfig.collide_group_map[e];if(o.index===t)return o}},t.get_info_by_id=function(t){var e;for(var o in i.LQCollideConfig.collide_group_map){var n=i.LQCollideConfig.collide_group_map[o];if(n.id===t)return n;e||(e=n)}return e},t.find_nearest_collide=function(e){for(var o=[],n=t.collide_arr.length-1;n>=0;n--){var r=t.collide_arr[n];e!==r&&r.is_enable&&(e.follow_target_category?r.collide_category===e.follow_target_category&&o.push(r):0!=(r.collide_category&e.collide_mask)&&o.push(r))}return o.sort(function(t,o){return e.world_rect.sub(t.world_rect).magSqr()-e.world_rect.sub(o.world_rect).magSqr()}),o[0]},t.clear=function(t){if(void 0===t&&(t=!1),t)for(var e=this.collide_arr.length-1;e>=0;e--){var o=this.collide_arr[e];o.isValid&&o.node.destroy()}this.collide_arr=[]},t.check_collide=function(t){var e,o=[];i.LQCollideConfig.switch_quad_tree?(d.temp_collide_arr=[],this.quad_tree.retrieve(t),e=d.temp_collide_arr):e=this.collide_arr;for(var n=0;n<e.length;n++){var c=e[n];t!==c&&t.collide_category&c.collide_mask&&(1===t._collide_shape&&1===c._collide_shape?r.LQMathUtil.intersects_rect(t.world_rect,c.world_rect)&&o.push(c):1===t._collide_shape&&2===c._collide_shape?r.LQMathUtil.intersects_circle_rect(c.world_rect,c.radius,t.world_rect)&&o.push(c):2===t._collide_shape&&1===c._collide_shape?r.LQMathUtil.intersects_circle_rect(t.world_rect,t.radius,c.world_rect)&&o.push(c):2===t._collide_shape&&2===c._collide_shape?r.LQMathUtil.intersects_circle(t.world_rect,t.radius,c.world_rect,c.radius)&&o.push(c):this.polygon_polygon(t,c)&&o.push(c))}return o},t.is_enable=!1,t.collide_arr=[],t.quad_tree=new d(new c.LQRect(i.LQCollideConfig.active_area_x,i.LQCollideConfig.active_area_y,i.LQCollideConfig.active_area_width,i.LQCollideConfig.active_area_height),i.LQCollideConfig.max_node_len,i.LQCollideConfig.max_node_level),t}();o.LQCollideSystem=f;var h=function(){function t(){this.flag=!0}return t.prototype.update=function(t){60===i.LQCollideConfig.per_frame?f.update_logic(t):this.flag?(this.flag=!1,f.update_logic(t)):this.flag=!0},t}();l.on(l.EVENT_GAME_INITED,function(){if(i.LQCollideConfig.switch_auto_run){var t=new h;a.getScheduler().enableForTarget(t),a.getScheduler().scheduleUpdate(t,u.PRIORITY_SYSTEM,!1)}}),cc._RF.pop()},{"../lq_base/data/lq_const":"lq_const","../lq_base/data/lq_data":"lq_data","../lq_base/util/lq_math_util":"lq_math_util","./lq_collide_config":"lq_collide_config"}],lq_collide:[function(t,e,o){"use strict";cc._RF.push(e,"43ca4XWdF1CwJKowXL8JAQ/","lq_collide");var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,c=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(c=(i<3?r(c):i>3?r(e,o,c):r(e,o))||c);return i>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0}),o.LQCollide=void 0;var c=cc._decorator.ccclass,s=cc._decorator.property,l=cc._decorator.requireComponent,a=cc._decorator.menu,u=cc.Component,p=cc.Enum,d=cc.Size,f=cc.Vec2,h=cc.Graphics,_=cc.Node,y=cc.macro,g=cc.Color,m=t("../lq_base/data/lq_const"),v=t("./lq_collide_config"),b=t("./lq_collide_system"),w=t("../lq_base/data/lq_data"),C=t("./lq_collide_base"),M=t("../lq_base/util/lq_game_util"),P=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._draw_collide=!1,e._collide_shape=m.LQCollideShape.Rect,e._collide_group_index=-1,e.collide_group_id=0,e._radius=50,e._size=new d(100,100),e._polygon_points=[new f(-45,-45),new f(45,-45),new f(60,40),new f(0,70),new f(-60,40)],e._offset=new f(0,0),e.data_string="",e.collide_id=0,e.collide_status=m.LQCollideStatus.Idle,e.is_enable=!0,e.is_open_func=!0,e.collide_category=0,e.collide_mask=0,e.collide_map={},e}var o;return r(e,t),o=e,Object.defineProperty(e.prototype,"draw_collide",{get:function(){return this._draw_collide},set:function(t){this._draw_collide=t,this.draw_shape()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"collide_shape",{get:function(){return this._collide_shape},set:function(t){this._collide_shape=t,this.draw_shape()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"collide_group_index",{get:function(){return-1===this._collide_group_index&&(this._collide_group_index=b.LQCollideSystem.get_info_by_id(this.collide_group_id).index),this._collide_group_index},set:function(t){this._collide_group_index!==t&&(this._collide_group_index=t,this.collide_group_id=b.LQCollideSystem.get_group_by_index(t).id)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){return this._radius},set:function(t){this._radius=t,this.draw_shape()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(t){this._size=t,this.world_rect&&(this.world_rect.width=t.width,this.world_rect.height=t.height,this.world_rect.half_width=.5*t.width,this.world_rect.half_height=.5*t.height),this.draw_shape()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"offset",{get:function(){return this._offset},set:function(t){this._offset=t,this.draw_shape()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"polygon_points",{get:function(){return this._polygon_points},set:function(t){this._polygon_points=t,this.draw_shape()},enumerable:!1,configurable:!0}),e.prototype.checkDebugDrawValid=function(){if(!this._debugDrawer||!this._debugDrawer.isValid){var t=this.node.getChildByName("Collide");t?this._debugDrawer=t.getComponent(h):((t=new _("Collide")).zIndex=y.MAX_ZINDEX,this.node.addChild(t),t._objFlags=1096,this._debugDrawer=t.addComponent(h),this._debugDrawer.lineWidth=3,this._debugDrawer.strokeColor=new g(255,0,0),this._debugDrawer.fillColor=new g(255,0,0))}},e.prototype.draw_shape=function(){if(this._draw_collide){this.checkDebugDrawValid(),this._debugDrawer.clear();var t={key:"scaleX",value:this.node.scaleX},e={key:"scaleY",value:this.node.scaleY};if(M.LQGameUtil.recursion_node_property(this.node,t),M.LQGameUtil.recursion_node_property(this.node,e),0!==t.value&&0!==e.value)switch(this._debugDrawer.node.scaleX=1/t.value,this._debugDrawer.node.scaleY=1/e.value,this._collide_shape){case m.LQCollideShape.Circle:this._debugDrawer.circle(+this._offset.x,+this._offset.y,this._radius),this._debugDrawer.stroke();break;case m.LQCollideShape.Rect:this._debugDrawer.moveTo(.5*-this._size.width+this._offset.x,.5*-this._size.height+this._offset.y),this._debugDrawer.lineTo(.5*-this._size.width+this._offset.x,.5*+this._size.height+this._offset.y),this._debugDrawer.lineTo(.5*this._size.width+this._offset.x,.5*+this._size.height+this._offset.y),this._debugDrawer.lineTo(.5*this._size.width+this._offset.x,.5*-this._size.height+this._offset.y),this._debugDrawer.lineTo(.5*-this._size.width+this._offset.x,.5*-this._size.height+this._offset.y),this._debugDrawer.stroke();break;case m.LQCollideShape.Polygon:this._debugDrawer.moveTo(this._polygon_points[0].x+this._offset.x,this._polygon_points[0].y+this._offset.y);for(var o=1;o<this._polygon_points.length;o++)this._debugDrawer.lineTo(this._polygon_points[o].x+this._offset.x,this._polygon_points[o].y+this._offset.y);this._debugDrawer.lineTo(this._polygon_points[0].x+this._offset.x,this._polygon_points[0].y+this._offset.y),this._debugDrawer.stroke()}}else this._debugDrawer&&this._debugDrawer.clear()},e.prototype.update_size=function(t,e){this._size.width=t,this.world_rect.width=t,this.world_rect.half_width=.5*t,this._size.height=e,this.world_rect.height=e,this.world_rect.half_height=.5*e,this.draw_shape()},e.prototype.init_lq_collide=function(){this.world_rect=new w.LQRect(0,0,this._size.width,this._size.height),this.draw_shape();var t=b.LQCollideSystem.get_info_by_id(this.collide_group_id);this.collide_mask=t.mask,this.collide_category=t.category,this.collide_id=o.id_maker++},e.prototype.enable_lq_collide=function(){this.collide_status!==m.LQCollideStatus.Live?(this.is_enable=!0,this.collide_status=m.LQCollideStatus.Live,b.LQCollideSystem.add_collide(this)):console.warn(this.node.name+"\u91cd\u590d\u6dfb\u52a0")},e.prototype.disable_lq_collide=function(){this.collide_status===m.LQCollideStatus.Live&&(this.is_enable=!1,this.collide_status=m.LQCollideStatus.Idle,b.LQCollideSystem.remove_collide(this))},e.prototype.update_lq_collide=function(){},e.prototype.on_collide=function(){v.LQCollideConfig.switch_print_log&&console.log(this.node.name+" collide")},e.prototype.on_enter=function(){v.LQCollideConfig.switch_print_log&&console.log(this.node.name+" on_enter")},e.prototype.on_exit=function(){v.LQCollideConfig.switch_print_log&&console.log(this.node.name+" on_exit")},e.id_maker=1,i([s({displayName:"\u7ed8\u5236\u5f62\u72b6"})],e.prototype,"draw_collide",null),i([s],e.prototype,"_draw_collide",void 0),i([s({tooltip:"\u78b0\u649e\u5f62\u72b6\uff0cNone\u5c31\u662f\u65e0\u654c\uff0c\u4e0d\u53c2\u4e0e\u78b0\u649e",type:p(m.LQCollideShape),displayName:"\u78b0\u649e\u5f62\u72b6"})],e.prototype,"collide_shape",null),i([s()],e.prototype,"_collide_shape",void 0),i([s({type:p(v.LQCollideInfoList),tooltip:"\u78b0\u649e\u7c7b\u522b",displayName:"\u78b0\u649e\u7c7b\u522b"})],e.prototype,"collide_group_index",null),i([s({serializable:!1})],e.prototype,"_collide_group_index",void 0),i([s({visible:!1})],e.prototype,"collide_group_id",void 0),i([s({tooltip:"collide\u534a\u5f84",visible:function(){return this._collide_shape===m.LQCollideShape.Circle},displayName:"\u534a\u5f84"})],e.prototype,"radius",null),i([s()],e.prototype,"_radius",void 0),i([s({tooltip:"collide\u957f\u5bbd",visible:function(){return this._collide_shape===m.LQCollideShape.Rect},displayName:"\u957f\u5bbd"})],e.prototype,"size",null),i([s()],e.prototype,"_size",void 0),i([s({displayName:"\u4f4d\u7f6e\u504f\u79fb"})],e.prototype,"offset",null),i([s({type:f,visible:function(){return this._collide_shape===m.LQCollideShape.Polygon},displayName:"\u591a\u8fb9\u5f62\u78b0\u649e\u70b9"})],e.prototype,"polygon_points",null),i([s()],e.prototype,"_polygon_points",void 0),i([s()],e.prototype,"_offset",void 0),i([s({displayName:"\u81ea\u5b9a\u4e49\u5b57\u7b26\u4e32"})],e.prototype,"data_string",void 0),o=i([c,l(C.LQCollideBase),a("lq/collide")],e)}(u);o.LQCollide=P,cc._RF.pop()},{"../lq_base/data/lq_const":"lq_const","../lq_base/data/lq_data":"lq_data","../lq_base/util/lq_game_util":"lq_game_util","./lq_collide_base":"lq_collide_base","./lq_collide_config":"lq_collide_config","./lq_collide_system":"lq_collide_system"}],lq_const:[function(t,e,o){"use strict";cc._RF.push(e,"5bde8mEz7pI74BMiH5tY/Gf","lq_const"),Object.defineProperty(o,"__esModule",{value:!0}),o.LQConst=o.LQOperateType=o.LQLevelStatus=o.LQAdErrStr=o.LQCallAd=o.LQCallBase=o.LQAnalysisTag=o.LQByteDanceType=o.LQPlatformType=o.LQHttpDataType=o.LQHttpRequestType=o.LQEasing=o.LQCollideStatus=o.LQFollowTargetMode=o.LQCollideShape=o.LQBulletEmitterStatus=o.LQRecordStatus=void 0;var n=cc.Vec2;(function(t){t[t.Idle=0]="Idle",t[t.Start=1]="Start",t[t.Pause=2]="Pause"})(o.LQRecordStatus||(o.LQRecordStatus={})),function(t){t[t.Idle=0]="Idle",t[t.Start=1]="Start",t[t.End=2]="End"}(o.LQBulletEmitterStatus||(o.LQBulletEmitterStatus={})),function(t){t[t.Rect=1]="Rect",t[t.Circle=2]="Circle",t[t.Polygon=3]="Polygon"}(o.LQCollideShape||(o.LQCollideShape={})),function(t){t[t.Always=0]="Always",t[t.Once=1]="Once",t[t.Pass=2]="Pass"}(o.LQFollowTargetMode||(o.LQFollowTargetMode={})),function(t){t[t.Idle=0]="Idle",t[t.Live=1]="Live"}(o.LQCollideStatus||(o.LQCollideStatus={})),function(t){t.BackIn="backIn",t.BackOut="backOut",t.quadIn="quadIn",t.quadOut="quadOut",t.quadInOut="quadInOut",t.cubicIn="cubicIn",t.expoOut="expoOut"}(o.LQEasing||(o.LQEasing={})),function(t){t.Get="get",t.Post="post"}(o.LQHttpRequestType||(o.LQHttpRequestType={})),function(t){t[t.Text=0]="Text",t[t.Binary=1]="Binary"}(o.LQHttpDataType||(o.LQHttpDataType={})),function(t){t.unknown="\u672a\u77e5\u5e73\u53f0",t.all="\u5168\u5e73\u53f0",t.wx="\u5fae\u4fe1",t.tt="\u5b57\u8282\u8df3\u52a8",t.oppo="oppo",t.vivo="vivo",t.qq="qq",t.baidu="\u767e\u5ea6",t.kwaigame="\u5feb\u624b",t.android="\u5b89\u5353",t.ios="\u82f9\u679c",t.browser="\u6d4f\u89c8\u5668"}(o.LQPlatformType||(o.LQPlatformType={})),function(t){t.tt="\u5934\u6761",t.tt_lite="\u5934\u6761\u6781\u901f\u7248",t.douyin="\u6296\u97f3",t.douyin_lite="\u6296\u97f3\u6781\u901f\u7248",t.ppx="\u76ae\u76ae\u867e",t.devtools="\u5b57\u8282\u5f00\u53d1\u5de5\u5177"}(o.LQByteDanceType||(o.LQByteDanceType={})),function(t){t.VideoComplete="video_complete",t.VideoBegin="video_begin",t.VideoInterrupt="video_interrupt",t.InterstitialShow="interstitial_show",t.BannerShow="banner_show",t.ExportShow="export_show",t.NativeShow="native_show",t.NativeClick="native_show"}(o.LQAnalysisTag||(o.LQAnalysisTag={})),function(t){t[t.InitSdk=0]="InitSdk",t[t.KeepScreenOn=1]="KeepScreenOn",t[t.Vibrate=2]="Vibrate",t[t.GetVersionCode=3]="GetVersionCode",t[t.GetVersionName=4]="GetVersionName",t[t.OpenUrl=5]="OpenUrl",t[t.DeleteDir=6]="DeleteDir",t[t.DeleteFile=7]="DeleteFile"}(o.LQCallBase||(o.LQCallBase={})),function(t){t[t.ShowBanner=0]="ShowBanner",t[t.HideBanner=1]="HideBanner",t[t.ShowVideo=2]="ShowVideo",t[t.ShowInterstitial=3]="ShowInterstitial",t[t.ShowNative=4]="ShowNative",t[t.CacheAd=5]="CacheAd"}(o.LQCallAd||(o.LQCallAd={})),function(t){t.Unsupported="\u4e0d\u652f\u6301",t.NoParameters="\u6ca1\u6709\u914d\u7f6e\u53c2\u6570",t.NoAD="\u6682\u65e0\u5e7f\u544a",t.VersionOld="\u7248\u672c\u8fc7\u4f4e",t.VideoInterrupt="\u4e2d\u65ad\u64ad\u653e",t.InstanceErr="\u5b9e\u4f8b\u4e3a\u7a7a",t.AlreadyExist="\u5df2\u7ecf\u5b58\u5728",t.IntervalTooShort="\u95f4\u9694\u592a\u77ed"}(o.LQAdErrStr||(o.LQAdErrStr={})),function(t){t[t.Begin=0]="Begin",t[t.Failed=1]="Failed",t[t.Complete=2]="Complete"}(o.LQLevelStatus||(o.LQLevelStatus={})),function(t){t[t.ClickNode=0]="ClickNode",t[t.ClickScreen=1]="ClickScreen",t[t.Move=2]="Move",t[t.Null=3]="Null"}(o.LQOperateType||(o.LQOperateType={}));var r=function(){function t(){}return t.VEC_ZERO=n.ZERO,t}();o.LQConst=r,cc._RF.pop()},{}],lq_data:[function(t,e,o){"use strict";cc._RF.push(e,"95cdagIuoFGBZHeaAUzIeQ6","lq_data"),Object.defineProperty(o,"__esModule",{value:!0}),o.LQPlatformData=o.LQShareData=o.LQNativeComponent=o.LQRect=void 0;var n=cc.Vec2,r=cc.Rect,i=function(){function t(t,e,o,n){this.x=t,this.y=e,this.width=o,this.height=n,this.half_width=.5*o,this.half_height=.5*n}return t.prototype.top_left=function(){return new n(this.x-this.half_width,this.y+this.half_height)},t.prototype.top_right=function(){return new n(this.x+this.half_width,this.y+this.half_height)},t.prototype.bottom_left=function(){return new n(this.x-this.half_width,this.y-this.half_height)},t.prototype.bottom_right=function(){return new n(this.x+this.half_width,this.y-this.half_height)},t.prototype.pos=function(){return new n(this.x,this.y)},t.prototype.sub=function(t){return new n(t.x-this.x,t.y-this.y)},t.prototype.add=function(t){return new n(t.x+this.x,t.y+this.y)},t.prototype.to_cocos_rect=function(){return new r(this.x-this.half_width,this.y-this.half_height,this.width,this.height)},t}();o.LQRect=i;o.LQNativeComponent=function(){this.node_btn_arr=[]};o.LQShareData=function(t){t.title&&(this.title=t.title),t.remote_url&&(this.remote_url=t.remote_url),t.url_id&&(this.url_id=t.url_id),t.query&&(this.query=t.query),t.content&&(this.content=t.content),t.extra&&(this.extra=t.extra),t.type&&(this.type=t.type)};o.LQPlatformData=function(){},cc._RF.pop()},{}],lq_game_util:[function(t,e,o){"use strict";cc._RF.push(e,"de6c60Kq6RFArJfitr5Akod","lq_game_util"),Object.defineProperty(o,"__esModule",{value:!0}),o.LQGameUtil=void 0;var n=cc.SpriteFrame,r=cc.director,i=cc.tween,c=cc.visibleRect,s=cc.find,l=function(){function t(){}return t.get_image=function(t,e,o){var r=this;void 0===o&&(o=!0),t&&""!==t?this.image_cache[t]?e(!0,this.image_cache[t]):cc.loader.load({url:t,type:"png"},function(i,c){if(i)return console.error("err:"+i),void e(!1,void 0);var s=new n(c);e(!0,s),o&&(r.image_cache[t]=s)}):e(!1,void 0)},t.canvas_policy=function(t,e,o){return c.height/c.width>o/e?(t.fitHeight=!1,t.fitWidth=!0):(t.fitHeight=!0,t.fitWidth=!1),t.fitHeight},t.recursion_node_property=function(t,e){t.parent&&(e.value*=t.parent[e.key],this.recursion_node_property(t.parent,e))},t.find_node=function(t){if(!t||t.length<=0)console.warn("\u8def\u5f84\u4e0d\u6b63\u786e");else{var e=t.split("/"),o=s(e[0]);if(o){for(var n=o,r=1;r<e.length;r++){var i=n.getChildByName(e[r]);if(!i)return void console.warn("\u6ca1\u627e\u5230\u8282\u70b9:"+e[r]);n=i}return n}console.warn("\u6ca1\u627e\u5230\u8282\u70b9:"+e[0])}},t.wait=function(t){return new Promise(function(e){i(r.getScene()).delay(t).call(function(){e()}).start()})},t.set_clip=function(t,e,o,n){for(var r=function(t){for(var r=0;r<t.length;r++)r%2==0?(o&&(t[r]=-t[r]),t[r]+=e.x):(n&&(t[r]=-t[r]),t[r]+=e.y)},i=t.curveData.props.position,c=0;c<i.length;c++){var s=i[c].motionPath,l=i[c].value;if(s)for(var a=0;a<s.length;a++)r(s[a]);r(l)}},t.scroll_layout=function(t,e){void 0===e&&(e=50),t.updateLayout();var o=(t.type===cc.Layout.Type.HORIZONTAL?t.node.width:t.node.height)/e;if(t.type===cc.Layout.Type.HORIZONTAL){var n=1===t.node.anchorX?.5*t.node.width:.5*-t.node.width;t.node.runAction(cc.repeatForever(cc.sequence(cc.moveBy(o,cc.v2(n,0)),cc.callFunc(function(){t.node.x-=n}))))}else if(t.type===cc.Layout.Type.VERTICAL||t.type===cc.Layout.Type.GRID){var r=1===t.node.anchorY?.5*t.node.height:.5*-t.node.height;t.node.runAction(cc.repeatForever(cc.sequence(cc.moveBy(o,cc.v2(0,r)),cc.callFunc(function(){t.node.y-=r}))))}},t.image_cache={},t}();o.LQGameUtil=l,cc._RF.pop()},{}],lq_interface:[function(t,e,o){"use strict";cc._RF.push(e,"34678w3gNdGf6r6YFC/iNBm","lq_interface"),Object.defineProperty(o,"__esModule",{value:!0}),cc._RF.pop()},{}],lq_math_util:[function(t,e,o){"use strict";cc._RF.push(e,"ebf56owVKxAu5mJI/gWw2Tf","lq_math_util"),Object.defineProperty(o,"__esModule",{value:!0}),o.LQMathUtil=void 0;var n=function(){function t(){}return t.random=function(t,e){return t===e?t:t<e?Math.random()*(e-t)+t:Math.random()*(t-e)+e},t.random_int=function(t,e){return Math.floor(this.random(t,e))},t.get_radians=function(t,e){var o=Math.atan2(e.y-t.y,e.x-t.x);return o>0?o:o+6.28},t.intersects_rect=function(t,e){return Math.abs(t.x-e.x)<t.half_width+e.half_width&&Math.abs(t.y-e.y)<t.half_height+e.half_height},t.intersects_point_rect=function(t,e){return t.x>e.x-.5*e.width&&t.x<e.x+.5*e.width&&t.y>e.y-.5*e.height&&t.y<e.y+.5*e.height},t.intersects_point_circle=function(t,e,o){return t.sub(e).magSqr()<o*o},t.intersects_circle=function(t,e,o,n){return t.sub(o).mag()<e+n},t.intersects_circle_rect=function(t,e,o){var n=t.x-o.x,r=t.y-o.y,i=Math.min(n,o.half_width),c=Math.max(i,-o.half_width),s=Math.min(r,o.half_height),l=Math.max(s,-o.half_height);return(c-n)*(c-n)+(l-r)*(l-r)<=e*e},t}();o.LQMathUtil=n,cc._RF.pop()},{}],lq_platform_util:[function(t,e,o){"use strict";cc._RF.push(e,"c661eGRNIZABKsZVzpnKejD","lq_platform_util"),Object.defineProperty(o,"__esModule",{value:!0}),o.LQPlatformUtil=void 0;var n=t("../data/lq_const"),r=function(){function t(){}return t.init=function(){if("undefined"!=typeof qq)this.platform_type=n.LQPlatformType.qq;else if("undefined"!=typeof swan)this.platform_type=n.LQPlatformType.baidu;else if("undefined"!=typeof tt)switch(this.platform_type=n.LQPlatformType.tt,tt.getSystemInfoSync().appName){case"Toutiao":this.byte_dance_type=n.LQByteDanceType.tt;break;case"news_article_lite":this.byte_dance_type=n.LQByteDanceType.tt_lite;break;case"Douyin":this.byte_dance_type=n.LQByteDanceType.douyin;break;case"douyin_lite":this.byte_dance_type=n.LQByteDanceType.douyin_lite;break;case"PPX":this.byte_dance_type=n.LQByteDanceType.ppx;break;case"devtools":this.byte_dance_type=n.LQByteDanceType.devtools}else"undefined"!=typeof qg?qg.getBattle?this.platform_type=n.LQPlatformType.oppo:this.platform_type=n.LQPlatformType.vivo:"undefined"!=typeof wx?this.platform_type=n.LQPlatformType.wx:"undefined"!=typeof jsb?cc.sys.os===cc.sys.OS_ANDROID?this.platform_type=n.LQPlatformType.android:cc.sys.os===cc.sys.OS_IOS?this.platform_type=n.LQPlatformType.ios:this.platform_type=n.LQPlatformType.unknown:cc.sys.isBrowser&&(this.platform_type=n.LQPlatformType.browser)},t.get_platform=function(){return this.platform_type},t.get_byte_dance=function(){return this.byte_dance_type},t.is_wx=function(){return this.platform_type===n.LQPlatformType.wx},t.is_tt=function(){return this.platform_type===n.LQPlatformType.tt},t.is_oppo=function(){return this.platform_type===n.LQPlatformType.oppo},t.is_vivo=function(){return this.platform_type===n.LQPlatformType.vivo},t.is_ov=function(){return this.platform_type===n.LQPlatformType.oppo||this.platform_type===n.LQPlatformType.vivo},t.is_browser=function(){return this.platform_type===n.LQPlatformType.browser},t.is_android=function(){return this.platform_type===n.LQPlatformType.android},t.is_ios=function(){return this.platform_type===n.LQPlatformType.ios},t.is_native=function(){return this.platform_type===n.LQPlatformType.android||this.platform_type===n.LQPlatformType.ios},t.is_qq=function(){return this.platform_type===n.LQPlatformType.qq},t.is_baidu=function(){return this.platform_type===n.LQPlatformType.baidu},t.is_kwaigame=function(){return this.platform_type===n.LQPlatformType.kwaigame},t}();o.LQPlatformUtil=r,r.init(),r.is_tt()?console.log("---------\u5f53\u524d\u5e73\u53f0:"+r.get_byte_dance()):console.log("---------\u5f53\u524d\u5e73\u53f0:"+r.get_platform()),cc._RF.pop()},{"../data/lq_const":"lq_const"}],lq_pool_util:[function(t,e,o){"use strict";cc._RF.push(e,"744e380xmxJW7b6RQxjzC70","lq_pool_util"),Object.defineProperty(o,"__esModule",{value:!0}),o.LQPoolUtil=void 0;var n=cc.Animation,r=cc.ParticleSystem,i=cc.instantiate,c=function(){function t(){}return t.reset_ani=function(t){var e=t.getComponent(n);if(e){var o=e.currentClip?e.currentClip:e.defaultClip;if(!o)return;e.playOnLoad&&o&&o.wrapMode===cc.WrapMode.Normal&&e.play(o.name)}else{var r=t.getComponent(sp.Skeleton);r&&!r.loop&&r.setAnimation(0,r.animation,!1)}for(var i=0;i<t.childrenCount;i++){var c=t.children[i];this.reset_ani(c)}},t.recursion_stop_particle=function(t,e){var o=t.getComponent(r);o&&(o.stopSystem(),e.has=!0,o.node.opacity=0);for(var n=0;n<t.childrenCount;n++){var i=t.children[n];this.recursion_stop_particle(i,e)}},t.recursion_reset_particle=function(t){if(t.isValid){var e=t.getComponent(r);e&&(e.resetSystem(),e.node.opacity=255);for(var o=0;o<t.childrenCount;o++){var n=t.children[o];this.recursion_reset_particle(n)}}},t.get_node_from_pool=function(t,e){var o=this.any_pool[e.uuid];o||(this.any_pool[e.uuid]=[],o=[]);var n=o.pop();return n&&n.isValid?(n.active=!0,n.is_from_pool=!0,this.reset_ani(n)):((n=i(e)).recovery_uuid=e.uuid,n.is_from_pool=!1,t.addChild(n)),n},t.check_pool_push=function(t,e){for(var o=0;o<t.length;o++)if(t[o]===e)return void console.warn("\u6c60\u5b50\u4e0d\u80fd\u91cd\u590d\u6dfb\u52a0\u8282\u70b9",e.name,e.recovery_uuid);e.active=!1,t.push(e)},t.push_node_to_pool=function(t){var e=this;if(t.recovery_uuid&&this.any_pool[t.recovery_uuid]){var o={has:!1};if(this.recursion_stop_particle(t,o),o.has){var n=t.opacity;t.opacity=0,setTimeout(function(){e.recursion_reset_particle(t),t.opacity=n,e.check_pool_push(e.any_pool[t.recovery_uuid],t)},500)}else this.check_pool_push(this.any_pool[t.recovery_uuid],t)}else t.isValid&&t.destroy()},t.any_pool={},t}();o.LQPoolUtil=c,cc._RF.pop()},{}],m2:[function(t,e,o){"use strict";cc._RF.push(e,"37e54QPZ2pBMr/zg2i7rOZu","m2");var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,c=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(c=(i<3?r(c):i>3?r(e,o,c):r(e,o))||c);return i>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=cc._decorator,s=c.ccclass,l=(c.property,function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.start=function(){},e.prototype.onDestroy=function(){},i([s],e)}(cc.Component));o.default=l,cc._RF.pop()},{}],mainGame:[function(t,e,o){"use strict";cc._RF.push(e,"7c8a829LWVI9bX5UA0CXC2W","mainGame");var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,c=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(c=(i<3?r(c):i>3?r(e,o,c):r(e,o))||c);return i>3&&c&&Object.defineProperty(e,o,c),c},c=this&&this.__awaiter||function(t,e,o,n){return new(o||(o=Promise))(function(r,i){function c(t){try{l(n.next(t))}catch(e){i(e)}}function s(t){try{l(n.throw(t))}catch(e){i(e)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof o?e:new o(function(t){t(e)})).then(c,s)}l((n=n.apply(t,e||[])).next())})},s=this&&this.__generator||function(t,e){var o,n,r,i,c={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(t){return function(e){return l([t,e])}}function l(i){if(o)throw new TypeError("Generator is already executing.");for(;c;)try{if(o=1,n&&(r=2&i[0]?n.return:i[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,i[1])).done)return r;switch(n=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return c.label++,{value:i[1],done:!1};case 5:c.label++,n=i[1],i=[0];continue;case 7:i=c.ops.pop(),c.trys.pop();continue;default:if(!(r=(r=c.trys).length>0&&r[r.length-1])&&(6===i[0]||2===i[0])){c=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){c.label=i[1];break}if(6===i[0]&&c.label<r[1]){c.label=r[1],r=i;break}if(r&&c.label<r[2]){c.label=r[2],c.ops.push(i);break}r[2]&&c.ops.pop(),c.trys.pop();continue}i=e.call(t,c)}catch(s){i=[6,s],n=0}finally{o=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}};Object.defineProperty(o,"__esModule",{value:!0}),o.MainGame=void 0;var l,a=t("../../../lq_collide_system/lq_collide_system"),u=t("../../Core/Ui/UIDef"),p=t("../../Core/Ui/UIMgr"),d=t("../../levelMgr"),f=t("../cfg/configMgr"),h=t("../common/utils"),_=t("./barrage"),y=t("./effectMgr"),g=cc._decorator,m=g.ccclass,v=g.property;g.executeInEditMode,g.playOnFocus,function(t){t[t.bullet=0]="bullet",t[t.level=1]="level",t[t.effect=2]="effect",t[t.num=3]="num"}(l||(l={}));for(var b=[],w=0;w<l.num;w++){var C=l[w];b.push(C)}var M=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.$layer_node=null,e.$levelTitle_lb=null,e.layerMap=new Map,e}return r(e,t),e.prototype.onLoad=function(){return c(this,void 0,void 0,function(){return s(this,function(t){switch(t.label){case 0:return this.setup(),a.LQCollideSystem.is_enable=!0,[4,f.ConfigMgr.inst.init()];case 1:return t.sent(),d.LevelMgr.inst.layer=this.getLayer(l.level),d.LevelMgr.inst.title=this.$levelTitle_lb,d.LevelMgr.inst.begin(),_.Barrage.inst.layer=this.getLayer(l.bullet),y.EffectMgr.inst.layer=this.getLayer(l.effect),p.UIMgr.inst.showUI(u.UIList.debug),[2]}})})},e.prototype.setup=function(){for(var t=0;t<b.length;t++){var e=b[t],o=new cc.Node(e);h.Utils.addFullWidget(o),this.$layer_node.addChild(o),this.layerMap.set(t,o)}},e.prototype.getLayer=function(t){return this.layerMap.get(t)},i([v({type:cc.Node,displayName:""})],e.prototype,"$layer_node",void 0),i([v({type:cc.Label,displayName:""})],e.prototype,"$levelTitle_lb",void 0),i([m],e)}(cc.Component);o.MainGame=M,cc._RF.pop()},{"../../../lq_collide_system/lq_collide_system":"lq_collide_system","../../Core/Ui/UIDef":"UIDef","../../Core/Ui/UIMgr":"UIMgr","../../levelMgr":"levelMgr","../cfg/configMgr":"configMgr","../common/utils":"utils","./barrage":"barrage","./effectMgr":"effectMgr"}],monsterFactory:[function(t,e,o){"use strict";cc._RF.push(e,"4d3fcHTBlpMkp4oVmYBBuEb","monsterFactory");var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,c=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(c=(i<3?r(c):i>3?r(e,o,c):r(e,o))||c);return i>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=t("../common/editorSet"),s=cc._decorator,l=s.ccclass,a=s.property,u=s.executeInEditMode,p=s.playOnFocus,d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.monster=null,e.aniClip=null,e._num=1,e._time=1,e._delay=0,e.timeArr=[],e}return r(e,t),Object.defineProperty(e.prototype,"num",{get:function(){return this._num},set:function(t){this._num=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"time",{get:function(){return this._time},set:function(t){this._time=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"delay",{get:function(){return this._delay},set:function(t){this._delay=t},enumerable:!1,configurable:!0}),e.prototype.onLoad=function(){var t=new cc.Node("monsterGroup");this.monsterNode=t,c.EditorSet.DontShow(t),this.node.addChild(t),this.play()},e.prototype.onFocusInEditor=function(){},e.prototype.onLostFocusInEditor=function(){},e.prototype.end=function(){this.monsterNode.destroyAllChildren(),this.timeArr.forEach(function(t){clearTimeout(t)}),this.timeArr=[]},e.prototype.play=function(){var t=this;if(this.monsterNode.destroyAllChildren(),this.timeArr.forEach(function(t){clearTimeout(t)}),this.timeArr=[],this.monster)if(this.aniClip)if(this._delay>0){var e=setTimeout(function(){t.createMonster()},1e3*this._delay);this.timeArr.push(e)}else this.createMonster();else cc.log("\u8bbe\u7f6e\u52a8\u753b");else cc.log("\u8bbe\u7f6e\u602a\u7269\u8d44\u6e90")},e.prototype.createMonster=function(){var t=this;this.monsterCnt=0;for(var e=0;e<this.num;e++){var o=setTimeout(function(){var e=cc.instantiate(t.monster),o=e.addComponent(cc.Animation);o.addClip(t.aniClip,"path"),c.EditorSet.DontShow(e),e.active=!1,t.monsterNode.addChild(e),e.active=!0,o.play("path"),t.monsterCnt++,o.once(cc.Animation.EventType.FINISHED,function(){var t=e.getBoundingBoxToWorld();cc.view.getViewportRect().containsRect(t)||e.destroy()})},1e3*this.time*e);this.timeArr.push(o)}},i([a(cc.Prefab)],e.prototype,"monster",void 0),i([a(cc.AnimationClip)],e.prototype,"aniClip",void 0),i([a(cc.Integer)],e.prototype,"num",null),i([a(cc.Integer)],e.prototype,"_num",void 0),i([a(cc.Integer)],e.prototype,"time",null),i([a(cc.Integer)],e.prototype,"_time",void 0),i([a(cc.Integer)],e.prototype,"_delay",void 0),i([a(cc.Integer)],e.prototype,"delay",null),i([l,u,p],e)}(cc.Component);o.default=d,cc._RF.pop()},{"../common/editorSet":"editorSet"}],monsterItem:[function(t,e,o){"use strict";cc._RF.push(e,"3786brIuMFDqYkd01SF++fO","monsterItem"),Object.defineProperty(o,"__esModule",{value:!0}),o.MonsterItem=void 0;o.MonsterItem=function(t,e){this.id=t,this.data=e},cc._RF.pop()},{}],monsterModel:[function(t,e,o){"use strict";cc._RF.push(e,"04ca8qenmhF+JPBued9pzXQ","monsterModel");var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,c=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(c=(i<3?r(c):i>3?r(e,o,c):r(e,o))||c);return i>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0}),o.MonsterModel=void 0;var c=t("../cfg/ConfigDef"),s=t("../cfg/configMgr"),l=t("../cfg/monsterItem"),a=t("../common/utils"),u=t("../zoo/zooId"),p=t("./bulletPlay"),d=cc._decorator,f=d.ccclass,h=(d.property,d.executeInEditMode,d.playOnFocus,function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hp=1e3,e.atk=100,e}return r(e,t),e.prototype.onLoad=function(){this.zooId=this.addComponent(u.ZooId).id,cc.log("[MonsterModel]",this.zooId)},e.prototype.beAttacked=function(t){this.hp-=t},e.prototype.isOver=function(){return this.hp<=0},e.prototype.init=function(t,e){var o=s.ConfigMgr.inst.getCfgClassById(c.EConfigConst.monster,t,l.MonsterItem),n=a.Utils.strToJson(o.data.atk),r=a.Utils.strToJson(o.data.hp);this.hp=r[0]+(e-1)*r[1],this.atk=n[0]+(e-1)*n[1],cc.log("[MonsterModel] [init]","[id:"+t+"]-[level:"+e+"]","[hp:"+this.hp+" atk:"+this.atk+"]")},e.prototype.setBullet=function(t){if(t){cc.log("[MonsterModel] [setBullet]",t);for(var e=Math.floor(t.length/2),o=0;o<e;o++){var n=this.addComponent(p.BulletPlay);n.monsterZooid=this.zooId,n.init(t[1+2*o],t[2+2*o]),n.start()}}},i([f],e)}(cc.Component));o.MonsterModel=h,cc._RF.pop()},{"../cfg/ConfigDef":"ConfigDef","../cfg/configMgr":"configMgr","../cfg/monsterItem":"monsterItem","../common/utils":"utils","../zoo/zooId":"zooId","./bulletPlay":"bulletPlay"}],monsterPlay:[function(t,e,o){"use strict";cc._RF.push(e,"2ee92PWQr5EBIaSgbtCu5ic","monsterPlay");var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,c=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(c=(i<3?r(c):i>3?r(e,o,c):r(e,o))||c);return i>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=t("./aniList"),s=t("./monsterFactory"),l=cc._decorator,a=l.ccclass,u=(l.property,l.executeInEditMode),p=l.playOnFocus,d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.onFocusInEditor=function(){this.getComponentsInChildren(s.default).forEach(function(t){t.end(),t.play()}),this.getComponentsInChildren(c.default).forEach(function(t){t.end(),t.play()})},e.prototype.onLostFocusInEditor=function(){this.getComponentsInChildren(s.default).forEach(function(t){t.end()}),this.getComponentsInChildren(c.default).forEach(function(t){t.end()})},i([a,u,p],e)}(cc.Component);o.default=d,cc._RF.pop()},{"./aniList":"aniList","./monsterFactory":"monsterFactory"}],monsterbullet:[function(t,e,o){"use strict";cc._RF.push(e,"32c5dQ4eHhH/p3yLOlKlGki","monsterbullet");var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,c=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(c=(i<3?r(c):i>3?r(e,o,c):r(e,o))||c);return i>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=t("../../../lq_collide_system/lq_collide"),s=t("../../../lq_collide_system/lq_collide_base"),l=t("../../../lq_collide_system/lq_collide_config"),a=t("../nest/effectMgr"),u=t("../player"),p=cc._decorator,d=p.ccclass,f=(p.property,p.requireComponent),h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.atk=1,e}return r(e,t),e.prototype.onLoad=function(){cc.log("[monsterbullet] [onLoad]")},e.prototype.on_enter=function(t){if(cc.log("[monsterbullet] [on_enter]"),t.collide_group_index==l.LQCollideInfoList.role){var e=t.node.getComponent(u.default);if(e.canAtk(this.getUid())){e.beAtked(this.getUid());var o=this.node.convertToWorldSpaceAR(cc.Vec2.ZERO);a.EffectMgr.inst.createHarmNum(o,this.atk)}}this.node.destroy()},e.prototype.setDirction=function(t){var e=cc.v2(0,1).signAngle(t)/Math.PI*180;this.node.angle=e},e.prototype.getUid=function(){return this._uid||(this._uid=this.bulletId+"-"+this.monsterZooid.toString()),this._uid},i([d,f(s.LQCollideBase)],e)}(c.LQCollide);o.default=h,cc._RF.pop()},{"../../../lq_collide_system/lq_collide":"lq_collide","../../../lq_collide_system/lq_collide_base":"lq_collide_base","../../../lq_collide_system/lq_collide_config":"lq_collide_config","../nest/effectMgr":"effectMgr","../player":"player"}],moveDest:[function(t,e,o){"use strict";cc._RF.push(e,"7b3a8QUk0JHAa0YcGXkm+Ku","moveDest");var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,c=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(c=(i<3?r(c):i>3?r(e,o,c):r(e,o))||c);return i>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=t("./GameLogic"),s=cc._decorator,l=s.ccclass,a=(s.property,function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._speed=100,e._destination=cc.v2(0,0),e}return r(e,t),Object.defineProperty(e.prototype,"speed",{get:function(){return this._speed},set:function(t){this._speed=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"destination",{get:function(){return this._destination},set:function(t){this._destination=t},enumerable:!1,configurable:!0}),e.prototype.onLoad=function(){var t=this.node.parent.getContentSize(),e=this.node.getContentSize();this.x_max=(t.width-e.width)/2,this.y_max=(t.height-e.height)/2},e.prototype.gameUpdate=function(t){var e=this.destination.sub(this.node.getPosition());if(e.mag()<=this.speed*t)this.node.setPosition(this.destination);else{var o=e.normalize();this.node.x+=this.speed*t*o.x,this.node.y+=this.speed*t*o.y}cc.log("@@ -- ",this.node.position.toString()),this.node.x=Math.max(-this.x_max,this.node.x),this.node.x=Math.min(this.x_max,this.node.x),this.node.y=Math.max(-this.y_max,this.node.y),this.node.y=Math.min(this.y_max,this.node.y)},e.prototype.isDone=function(){return this.node.x==this._destination.x&&this.node.y==this._destination.y},i([l],e)}(c.GameLogic));o.default=a,cc._RF.pop()},{"./GameLogic":"GameLogic"}],moveTime:[function(t,e,o){"use strict";cc._RF.push(e,"8b086O9N91EgqDKGo8VrbF0","moveTime");var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,c=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(c=(i<3?r(c):i>3?r(e,o,c):r(e,o))||c);return i>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=t("./GameLogic"),s=cc._decorator,l=s.ccclass,a=(s.property,function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._speed=100,e._dirction=cc.v2(0,0),e._overTime=0,e.startTime=0,e.call=null,e}return r(e,t),Object.defineProperty(e.prototype,"speed",{get:function(){return this._speed},set:function(t){this._speed=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dirction",{get:function(){return this._dirction},set:function(t){this._dirction=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overTime",{get:function(){return this._overTime},set:function(t){this._overTime=t},enumerable:!1,configurable:!0}),e.prototype.gameUpdate=function(t){this.node.x+=this.speed*t*this.dirction.x,this.node.y+=this.speed*t*this.dirction.y,this.startTime+=t,this.startTime>=this._overTime&&(this.call&&this.call(),this.destroy())},i([l],e)}(c.GameLogic));o.default=a,cc._RF.pop()},{"./GameLogic":"GameLogic"}],move:[function(t,e,o){"use strict";cc._RF.push(e,"8e426MsXztKpq50Juo4gsQU","move");var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,c=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(c=(i<3?r(c):i>3?r(e,o,c):r(e,o))||c);return i>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=t("./GameLogic"),s=cc._decorator,l=s.ccclass,a=(s.property,function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._speed=100,e._dirction=cc.v2(0,0),e}return r(e,t),Object.defineProperty(e.prototype,"speed",{get:function(){return this._speed},set:function(t){this._speed=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dirction",{get:function(){return this._dirction},set:function(t){this._dirction=t},enumerable:!1,configurable:!0}),e.prototype.gameUpdate=function(t){this.node.x+=this.speed*t*this.dirction.x,this.node.y+=this.speed*t*this.dirction.y},i([l],e)}(c.GameLogic));o.default=a,cc._RF.pop()},{"./GameLogic":"GameLogic"}],nestConditionMgr:[function(t,e,o){"use strict";cc._RF.push(e,"18240Jp1atCgoT8YcHCMehA","nestConditionMgr"),Object.defineProperty(o,"__esModule",{value:!0}),o.NestConditionMgr=void 0;var n=t("./nestCondition"),r=function(){function t(){this.conditionArr=[],this.cnt=0}return t.prototype.init=function(t){for(var e=2;e<=6;e++){var o="nest"+e,r="interval"+e;if(""==t.data[o]||""==t.data[r])break;var i=new n.NestCondition;i.name="interval-"+e,i.fill(t.data[r]),this.conditionArr.push(i)}},t.prototype.start=function(){this.cnt=0,this.do()},t.prototype.destroy=function(){this.conditionArr.forEach(function(t){t.end()}),this.conditionArr=[]},t.prototype.do=function(){var t=this;if(!(this.cnt>=this.conditionArr.length)){var e=this.conditionArr[this.cnt];e.call=function(){t.call&&t.call(t.cnt),t.cnt++,t.do()},e.start()}},t.prototype.isDone=function(){return this.cnt>=this.conditionArr.length},t}();o.NestConditionMgr=r,cc._RF.pop()},{"./nestCondition":"nestCondition"}],nestCondition:[function(t,e,o){"use strict";cc._RF.push(e,"46a3ej4PttKu5P4JKCCy6vU","nestCondition");var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(o,"__esModule",{value:!0}),o.NestCondition=void 0;var i,c=t("../../levelMgr"),s=t("../common/utils"),l=t("../update/gameSysLogic");(function(t){t[t.none=0]="none",t[t.start=1]="start",t[t.done=2]="done"})(i||(i={}));var a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.time=0,e.call=null,e.state=i.none,e}return r(e,t),e.prototype.fill=function(t){void 0===t&&(t="[4;5]"),t=s.Utils.strReplaceSeparator(t);var e=JSON.parse(t);this.time=e[0],this.num=e[1],this._str=t,console.log(this.name,"["+this._str+"]","create")},e.prototype.start=function(){this.state=i.start,console.log(this.name,"["+this._str+"]","start")},e.prototype.isDone=function(){return this.state==i.done},e.prototype.gameUpdate=function(t){this.state==i.start&&(this.time-=t,this.time<=0&&c.LevelMgr.inst.getMonsterCnt()<=this.num&&(console.log(this.name,"["+this._str+"]","done"),this.state=i.done,this.call&&this.call()))},e}(l.GameSysLogic);o.NestCondition=a,cc._RF.pop()},{"../../levelMgr":"levelMgr","../common/utils":"utils","../update/gameSysLogic":"gameSysLogic"}],nestItem:[function(t,e,o){"use strict";cc._RF.push(e,"a690866iQtGuq3fo/8VYDgw","nestItem"),Object.defineProperty(o,"__esModule",{value:!0}),o.NestItem=void 0;o.NestItem=function(t,e){this.id=t,this.data=e},cc._RF.pop()},{}],nestPlay:[function(t,e,o){"use strict";cc._RF.push(e,"316d75cKThCnY9SsMcqIHL+","nestPlay");var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,c=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(c=(i<3?r(c):i>3?r(e,o,c):r(e,o))||c);return i>3&&c&&Object.defineProperty(e,o,c),c},c=this&&this.__awaiter||function(t,e,o,n){return new(o||(o=Promise))(function(r,i){function c(t){try{l(n.next(t))}catch(e){i(e)}}function s(t){try{l(n.throw(t))}catch(e){i(e)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof o?e:new o(function(t){t(e)})).then(c,s)}l((n=n.apply(t,e||[])).next())})},s=this&&this.__generator||function(t,e){var o,n,r,i,c={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(t){return function(e){return l([t,e])}}function l(i){if(o)throw new TypeError("Generator is already executing.");for(;c;)try{if(o=1,n&&(r=2&i[0]?n.return:i[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,i[1])).done)return r;switch(n=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return c.label++,{value:i[1],done:!1};case 5:c.label++,n=i[1],i=[0];continue;case 7:i=c.ops.pop(),c.trys.pop();continue;default:if(!(r=(r=c.trys).length>0&&r[r.length-1])&&(6===i[0]||2===i[0])){c=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){c.label=i[1];break}if(6===i[0]&&c.label<r[1]){c.label=r[1],r=i;break}if(r&&c.label<r[2]){c.label=r[2],c.ops.push(i);break}r[2]&&c.ops.pop(),c.trys.pop();continue}i=e.call(t,c)}catch(s){i=[6,s],n=0}finally{o=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}};Object.defineProperty(o,"__esModule",{value:!0}),o.NestPlay=void 0;var l=t("../res/resMgr"),a=t("../cfg/ConfigDef"),u=t("../cfg/configMgr"),p=t("../cfg/nestItem"),d=t("../common/utils"),f=t("../monster/monsterModel"),h=t("../update/logic"),_={101:"monster",701:"pattern",501:"pattern2",103:"monsterboss",102:"monsterboss2",201:"pattern201",202:"pattern202"},y=[["line-1700"],["yingji","yingji1"],["jiejizhiyuan_L"],["jiejizhiyuan_R"],["zhuiji_L"],["zhuiji_R"],["yingji","loopCricle"],["ani8"],["ani9"],["yingji"],["ani11"],["ani12"],["ani13"],["ani14"],["ani15"],["yingji"],["ani17","ani17_1"],["ani18","ani18_1"]],g=cc._decorator,m=g.ccclass,v=(g.property,g.executeInEditMode,g.playOnFocus,function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeArr=[],e}return r(e,t),e.prototype.init=function(t,e){return c(this,void 0,void 0,function(){var o,n,r,i,c,f,g,m,v,b,w,C=this;return s(this,function(s){switch(s.label){case 0:return this._id=t,this._level=e,o=u.ConfigMgr.inst.getCfgClassById(a.EConfigConst.nest,t,p.NestItem),n=d.Utils.intDefault(o.data.shape),r="monster/"+_[n],this.num=d.Utils.intDefault(o.data.num,1),i=d.Utils.intDefault(o.data.delay),this.time=d.Utils.intDefault(o.data.time)/100,c=d.Utils.intDefault(o.data.type,1),this.pattern=d.Utils.strToJson(o.data.pattern),this.bullet=o.data.bullet,f=y[c-1].map(function(t){return"level/"+t}),g=d.Utils.pos2vec2(o.data.pos),this.node.setPosition(g),m=this,[4,l.ResMgr.inst.loadAniArr(f,this.node)];case 1:return m.aniClip=s.sent(),v=this,[4,l.ResMgr.inst.getPrefab(r)];case 2:return v.monster=s.sent(),this.monster.addRef(),b=new cc.Node("monsterGroup"),this.monsterNode=b,this.node.addChild(b),cc.log("[nestPlay] [init]","[num:"+this.num+"] [time:"+this.time+"]"),i>0?(w=h.GameLogicMgr.inst.setGameTimeout(function(){C.createMonster()},i),this.timeArr.push(w)):this.createMonster(),[2]}})})},e.prototype.onDestroy=function(){this.monster.decRef(),this.timeArr.forEach(function(t){h.GameLogicMgr.inst.clearGameTimeout(t)})},e.prototype.createMonster=function(){this.createMonster2()},e.prototype.setPattern=function(t){var e=this,o=[];this.pattern.forEach(function(t){for(var e=0;e<t[0];e++)o.push(t[1])}),0==o.length&&(cc.error("[nestPlay] [pattern] \u914d\u7f6e\u7a7a","[nestId:"+this._id+"]"),o.push("1001"));var n=[];d.Utils.strToJson(this.bullet).forEach(function(t){if(!(t.length<=0))for(var e=0;e<t[0];e++)n.push(t)}),t.getComponentsInChildren(f.MonsterModel).forEach(function(t,r){var i;i=r<o.length?o[r]:o[o.length-1],t.init(i,e._level),r<n.length?t.setBullet(n[r]):t.setBullet(null)})},e.prototype.createMonster3=function(){var t=this;this.monsterCnt=0;for(var e=0;e<this.num;e++){var o=h.GameLogicMgr.inst.setGameTimeout(function(){t.monsterCnt++,cc.log("[nestPlay] [create]","[num:"+t.monsterCnt+" / "+t.num+"]");var e=l.ResMgr.inst.createNode(t.monster,t.monsterNode);t.setPattern(e),e.getComponentsInChildren(f.MonsterModel).forEach(function(t){var e=t.node,o=new cc.Node("AniTop"),n=e.parent;e.removeFromParent(!1),n.addChild(o),o.addChild(e),o.setPosition(e.getPosition()),e.setPosition(cc.Vec2.ZERO)});var o=0,n=function(){cc.isValid(e,!0)&&e.getComponentsInChildren(f.MonsterModel).forEach(function(e){var r=e.node,i=new cc.Node("AniItem"),c=r.parent;r.removeFromParent(!1),i.addChild(r),c.addChild(i);var s=i.addComponent(cc.Animation);s.addClip(t.aniClip[o],"path"),s.play("path").speed=.3,s.once(cc.Animation.EventType.FINISHED,function(){if(++o<t.aniClip.length)i.angle=0,n();else{var e=i.getBoundingBoxToWorld(),r=cc.view.getVisibleSize();cc.rect(0,0,r.width,r.height).containsRect(e)||i.destroy()}})})};n()},this.time*e);this.timeArr.push(o)}},e.prototype.createMonster2=function(){var t=this;this.monsterCnt=0;for(var e=0;e<this.num;e++){var o=h.GameLogicMgr.inst.setGameTimeout(function(){t.monsterCnt++,cc.log("[nestPlay] [create]","[num:"+t.monsterCnt+" / "+t.num+"]");var e=l.ResMgr.inst.createNode(t.monster,t.monsterNode);t.setPattern(e);var o=0,n=function(){if(cc.isValid(e,!0)){var r=new cc.Node("AniItem"),i=e.parent?e.parent:t.monsterNode;e.removeFromParent(!1),r.addChild(e),i.addChild(r);var c=r.addComponent(cc.Animation);c.addClip(t.aniClip[o],"path"),c.play("path").speed=.3,c.once(cc.Animation.EventType.FINISHED,function(){if(++o<t.aniClip.length)r.angle=0,n();else{var e=r.getBoundingBoxToWorld(),i=cc.view.getVisibleSize();cc.rect(0,0,i.width,i.height).containsRect(e)||r.destroy()}})}};n()},this.time*e);this.timeArr.push(o)}},e.prototype.createMonster1=function(){var t=this;this.monsterCnt=0;for(var e=0;e<this.num;e++){var o=h.GameLogicMgr.inst.setGameTimeout(function(){var e=new cc.Node("AniItem");l.ResMgr.inst.createNode(t.monster,e);var o=e.addComponent(cc.Animation);o.addClip(t.aniClip[0],"path"),t.monsterNode.addChild(e),o.play("path"),t.monsterCnt++,o.once(cc.Animation.EventType.FINISHED,function(){var t=e.getBoundingBoxToWorld();cc.view.getViewportRect().containsRect(t)||e.destroy()})},this.time*e);this.timeArr.push(o)}},e.prototype.isDone=function(){return this.monsterCnt==this.num},e.prototype.waitDone=function(){var t=this;return new Promise(function(e){var o=setInterval(function(){t.isDone()&&(clearInterval(o),e())},100)})},i([m],e)}(cc.Component));o.NestPlay=v,cc._RF.pop()},{"../cfg/ConfigDef":"ConfigDef","../cfg/configMgr":"configMgr","../cfg/nestItem":"nestItem","../common/utils":"utils","../monster/monsterModel":"monsterModel","../res/resMgr":"resMgr","../update/logic":"logic"}],player:[function(t,e,o){"use strict";cc._RF.push(e,"19c49vmHFNOJ5wlVqraSfN6","player");var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,c=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(c=(i<3?r(c):i>3?r(e,o,c):r(e,o))||c);return i>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0}),o.PlayerAttack=void 0;var c=t("../Core/Base/EventMgr"),s=t("./eventDef"),l=t("./nest/barrage"),a=t("./update/GameLogic"),u=t("./update/moveDest"),p=cc._decorator,d=p.ccclass,f=p.property;o.PlayerAttack=!0;var h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.$role_node=null,e.moveCpt=null,e.bulletCD=.2,e.bulletCDTime=0,e.atkRecord=new Map,e}var o;return r(e,t),o=e,e.prototype.onLoad=function(){this.moveCpt=this.node.getComponent(u.default),this.moveCpt||(this.moveCpt=this.node.addComponent(u.default)),this.moveCpt.speed=800,this.moveCpt.enabled=!1},e.prototype.onEnable=function(){c.EventMgr.inst.on(s.Touch_Start,this.onTouchStart,this),c.EventMgr.inst.on(s.Touch_Move,this.onTouchMove,this),c.EventMgr.inst.on(s.Touch_End,this.onTouchEnd,this)},e.prototype.onDisable=function(){c.EventMgr.inst.off(s.Touch_Start,this.onTouchStart,this),c.EventMgr.inst.off(s.Touch_Move,this.onTouchMove,this),c.EventMgr.inst.off(s.Touch_End,this.onTouchEnd,this)},e.prototype.gameUpdate=function(t){this.bulletCDTime-=t,this.bulletCDTime<=0&&(this.bulletCDTime=this.bulletCD,o.PlayerAttack&&l.Barrage.inst.createPlayerBullet(this.node.convertToWorldSpaceAR(cc.Vec2.ZERO)))},e.prototype.onTouchStart=function(){this.airStartPos=this.node.getPosition(),this.moveCpt.destination=this.airStartPos,this.moveCpt.enabled=!0},e.prototype.onTouchMove=function(t){this.moveCpt.destination=this.airStartPos.add(t)},e.prototype.onTouchEnd=function(){this.moveCpt.enabled=!1},e.prototype.canAtk=function(t){return!this.atkRecord.has(t)||Date.now()-this.atkRecord.get(t)>=500&&(cc.log("@@ key",t," | ",this.atkRecord.get(t)),!0)},e.prototype.beAtked=function(t){this.atkRecord.set(t,Date.now()),cc.log("@@ addkey",t," | ",this.atkRecord.get(t))},e.PlayerAttack=!0,i([f({type:cc.Node,displayName:""})],e.prototype,"$role_node",void 0),o=i([d],e)}(a.GameLogic);o.default=h,cc._RF.pop()},{"../Core/Base/EventMgr":"EventMgr","./eventDef":"eventDef","./nest/barrage":"barrage","./update/GameLogic":"GameLogic","./update/moveDest":"moveDest"}],resMgr:[function(t,e,o){"use strict";cc._RF.push(e,"7ccackTKgtEV7DJvOerXNIw","resMgr"),Object.defineProperty(o,"__esModule",{value:!0}),o.ResMgr=void 0;var n=t("./resRelease"),r=function(){function t(){}return Object.defineProperty(t,"inst",{get:function(){return null==this._inst&&(this._inst=new t),this._inst},enumerable:!1,configurable:!0}),t.prototype.loadPrefab=function(t,e){return new Promise(function(o){cc.resources.load(t,cc.Prefab,function(t,r){if(r){var i=cc.instantiate(r);return e.addChild(i),r.addRef(),i.addComponent(n.ResRelease).call=function(){r.decRef()},void o(i)}cc.log(t),o(null)})})},t.prototype.getPrefab=function(t){return new Promise(function(e){cc.resources.load(t,cc.Prefab,function(t,o){o?e(o):(cc.log(t),e(null))})})},t.prototype.createNode=function(t,e){var o=cc.instantiate(t);return e.addChild(o),t.addRef(),o.addComponent(n.ResRelease).call=function(){t.decRef()},o},t.prototype.loadAni=function(t,e){return new Promise(function(o){cc.resources.load(t,cc.AnimationClip,function(t,r){if(r)return r.addRef(),e.addComponent(n.ResRelease).call=function(){r.decRef()},void o(r);cc.log(t),o(null)})})},t.prototype.loadAniArr=function(t,e){return new Promise(function(o){cc.resources.load(t,cc.AnimationClip,function(t,r){if(r)return r.forEach(function(t){return t.addRef()}),e.addComponent(n.ResRelease).call=function(){r.forEach(function(t){return t.decRef()})},void o(r);cc.log(t),o(null)})})},t}();o.ResMgr=r,cc._RF.pop()},{"./resRelease":"resRelease"}],resRelease:[function(t,e,o){"use strict";cc._RF.push(e,"7b967KfRVBJUJntAJxkbpYu","resRelease");var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,c=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(c=(i<3?r(c):i>3?r(e,o,c):r(e,o))||c);return i>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0}),o.ResRelease=void 0;var c=cc._decorator,s=c.ccclass,l=(c.property,c.executeInEditMode,c.playOnFocus,function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.call=null,e}return r(e,t),e.prototype.onDestroy=function(){var t=this.call;setTimeout(function(){t&&t()},500)},i([s],e)}(cc.Component));o.ResRelease=l,cc._RF.pop()},{}],smallLevelItem:[function(t,e,o){"use strict";cc._RF.push(e,"b3abeFluKdNd4kJ0ufhkRIX","smallLevelItem"),Object.defineProperty(o,"__esModule",{value:!0}),o.SmallLevelItem=void 0;var n=function(){function t(t,e){this.id=t,this.data=e}return t.prototype.getNestId=function(){return""},t}();o.SmallLevelItem=n,cc._RF.pop()},{}],test:[function(t,e,o){"use strict";cc._RF.push(e,"c8ad6fhb1BESYIiTZAAD3ne","test");var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,c=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(c=(i<3?r(c):i>3?r(e,o,c):r(e,o))||c);return i>3&&c&&Object.defineProperty(e,o,c),c},c=this&&this.__awaiter||function(t,e,o,n){return new(o||(o=Promise))(function(r,i){function c(t){try{l(n.next(t))}catch(e){i(e)}}function s(t){try{l(n.throw(t))}catch(e){i(e)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof o?e:new o(function(t){t(e)})).then(c,s)}l((n=n.apply(t,e||[])).next())})},s=this&&this.__generator||function(t,e){var o,n,r,i,c={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(t){return function(e){return l([t,e])}}function l(i){if(o)throw new TypeError("Generator is already executing.");for(;c;)try{if(o=1,n&&(r=2&i[0]?n.return:i[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,i[1])).done)return r;switch(n=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return c.label++,{value:i[1],done:!1};case 5:c.label++,n=i[1],i=[0];continue;case 7:i=c.ops.pop(),c.trys.pop();continue;default:if(!(r=(r=c.trys).length>0&&r[r.length-1])&&(6===i[0]||2===i[0])){c=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){c.label=i[1];break}if(6===i[0]&&c.label<r[1]){c.label=r[1],r=i;break}if(r&&c.label<r[2]){c.label=r[2],c.ops.push(i);break}r[2]&&c.ops.pop(),c.trys.pop();continue}i=e.call(t,c)}catch(s){i=[6,s],n=0}finally{o=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}};Object.defineProperty(o,"__esModule",{value:!0});var l=t("../Script/Core/Ui/UIDef"),a=t("../Script/Core/Ui/UILayers"),u=t("../Script/Core/Ui/UIMgr"),p=t("../Script/game/cfg/ConfigDef"),d=t("../Script/game/cfg/bulletItem"),f=t("../Script/game/cfg/configMgr"),h=t("../Script/game/common/utils"),_=t("../Script/game/nest/barrage"),y=t("../Script/game/nest/effectMgr"),g=t("../Script/game/nest/nestPlay"),m=t("./test/draw"),v=cc._decorator,b=v.ccclass,w=v.property,C=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.$content_node=null,e.$layer_node=null,e.$top_node=null,e.$ui_node=null,e.$refresh_btn=null,e.$nest_edit=null,e.$left_btn=null,e.$right_btn=null,e}return r(e,t),e.prototype.onRefreshTouchEnd=function(){var t=this.$nest_edit.string;this.createNest(t)},e.prototype.onLeftTouchEnd=function(){var t=this.$nest_edit.string,e=this._nestKeys.findIndex(function(e){return e===t});-1==e?e=0:e>0&&e--,this.$nest_edit.string=this._nestKeys[e],this.createNest(this._nestKeys[e])},e.prototype.onRightTouchEnd=function(){var t=this.$nest_edit.string,e=this._nestKeys.findIndex(function(e){return e===t});-1==e?e=this._nestKeys.length-1:e<this._nestKeys.length-1&&e++,this.$nest_edit.string=this._nestKeys[e],this.createNest(this._nestKeys[e])},e.prototype.onLoad=function(){return c(this,void 0,void 0,function(){return s(this,function(t){switch(t.label){case 0:return[4,f.ConfigMgr.inst.init()];case 1:return t.sent(),this._nestKeys=f.ConfigMgr.inst.getCfgKeys(p.EConfigConst.nest),this.$content_node.addComponent(m.Draw),this.$nest_edit.string="101",_.Barrage.inst.layer=this.$layer_node,y.EffectMgr.inst.layer=this.$ui_node,[2]}})})},e.prototype.createNest=function(t){this.$top_node.destroyAllChildren();var e=h.Utils.createNode(this.$top_node,"nest");e.addComponent(m.Draw),e.addComponent(g.NestPlay).init(t,1)},e.prototype.testCfg=function(){return c(this,void 0,void 0,function(){return s(this,function(t){switch(t.label){case 0:return[4,f.ConfigMgr.inst.init()];case 1:return t.sent(),[2]}})})},e.prototype.testBullet=function(){return c(this,void 0,void 0,function(){var t;return s(this,function(e){switch(e.label){case 0:return[4,this.testCfg()];case 1:return e.sent(),u.UIMgr.inst.setup(this.$ui_node,a.UILayerNames.length,a.UILayerNames),u.UIMgr.inst.showUI(l.UIList.debug),t=f.ConfigMgr.inst.getCfgClassById(p.EConfigConst.bullet,"4001",d.BulletItem),_.Barrage.inst.layer=this.$layer_node,_.Barrage.inst.createMonsterBullet({worldPos:this.node.convertToWorldSpaceAR(cc.v2(0,0)),dirction:cc.v2(0,1),atk:80,zooid:1},t),[2]}})})},i([w({type:cc.Node,displayName:""})],e.prototype,"$content_node",void 0),i([w({type:cc.Node,displayName:""})],e.prototype,"$layer_node",void 0),i([w({type:cc.Node,displayName:""})],e.prototype,"$top_node",void 0),i([w({type:cc.Node,displayName:""})],e.prototype,"$ui_node",void 0),i([w({type:cc.Button,displayName:""})],e.prototype,"$refresh_btn",void 0),i([w({type:cc.EditBox,displayName:""})],e.prototype,"$nest_edit",void 0),i([w({type:cc.Button,displayName:""})],e.prototype,"$left_btn",void 0),i([w({type:cc.Button,displayName:""})],e.prototype,"$right_btn",void 0),i([b],e)}(cc.Component);o.default=C,cc._RF.pop()},{"../Script/Core/Ui/UIDef":"UIDef","../Script/Core/Ui/UILayers":"UILayers","../Script/Core/Ui/UIMgr":"UIMgr","../Script/game/cfg/ConfigDef":"ConfigDef","../Script/game/cfg/bulletItem":"bulletItem","../Script/game/cfg/configMgr":"configMgr","../Script/game/common/utils":"utils","../Script/game/nest/barrage":"barrage","../Script/game/nest/effectMgr":"effectMgr","../Script/game/nest/nestPlay":"nestPlay","./test/draw":"draw"}],touch:[function(t,e,o){"use strict";cc._RF.push(e,"daaa5a9nd1KUqYlgoprfYb9","touch");var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,c=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(c=(i<3?r(c):i>3?r(e,o,c):r(e,o))||c);return i>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=t("../../Script/Core/Base/EventMgr"),s=t("./eventDef"),l=cc._decorator,a=l.ccclass,u=(l.property,function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.touchId=-1,e}return r(e,t),e.prototype.onEnable=function(){this.node.on(cc.Node.EventType.TOUCH_START,this.onTouchStart,this),this.node.on(cc.Node.EventType.TOUCH_MOVE,this.onTouchMove,this),this.node.on(cc.Node.EventType.TOUCH_END,this.onTouchEnd,this),this.node.on(cc.Node.EventType.TOUCH_CANCEL,this.onTouchEnd,this)},e.prototype.onDisable=function(){this.node.off(cc.Node.EventType.TOUCH_START,this.onTouchStart,this),this.node.off(cc.Node.EventType.TOUCH_MOVE,this.onTouchMove,this),this.node.off(cc.Node.EventType.TOUCH_END,this.onTouchEnd,this),this.node.off(cc.Node.EventType.TOUCH_CANCEL,this.onTouchEnd,this)},e.prototype.onTouchStart=function(t){-1==this.touchId&&(this.touchId=t.getID(),c.EventMgr.inst.emit(s.Touch_Start))},e.prototype.onTouchMove=function(t){if(this.touchId==t.getID()){var e=t.getLocation().sub(t.getStartLocation());c.EventMgr.inst.emit(s.Touch_Move,e)}},e.prototype.onTouchEnd=function(t){this.touchId==t.getID()&&(this.touchId=-1,c.EventMgr.inst.emit(s.Touch_End))},i([a],e)}(cc.Component));o.default=u,cc._RF.pop()},{"../../Script/Core/Base/EventMgr":"EventMgr","./eventDef":"eventDef"}],utils:[function(t,e,o){"use strict";cc._RF.push(e,"a320bXRUs5ITKZa4v3pNW+Q","utils"),Object.defineProperty(o,"__esModule",{value:!0}),o.Utils=void 0,function(t){function e(t){return t.replace(/\;|\\uff1b/g,",")}t.str2arr=function(t,e){return t.split(e)},t.createNode=function(t,e){void 0===e&&(e="");var o=new cc.Node(e);return t.addChild(o),o},t.intDefault=function(t,e){return void 0===e&&(e=0),""==t?0:Number(t)},t.radian=function(t){return t*(Math.PI/180)},t.degree=function(t){return t*(180/Math.PI)},t.getCpt=function(t,e){var o=e.getComponent(t);return o||(o=e.addComponent(t)),o},t.addFullWidget=function(t){var e=t.addComponent(cc.Widget);e.isAlignBottom=!0,e.isAlignTop=!0,e.isAlignLeft=!0,e.isAlignRight=!0,e.left=0,e.right=0,e.top=0,e.bottom=0},t.strReplaceSeparator=e,t.strToJson=function(t){var o=e(t);return o=o.replace(/\]\[/g,"],["),JSON.parse(o)},t.pos2vec2=function(e){var o=t.strToJson(e);return cc.v2(Number(o[0]),-Number(o[1]))}}(o.Utils||(o.Utils={})),cc._RF.pop()},{}],zooId:[function(t,e,o){"use strict";cc._RF.push(e,"4f552Ju1L9At6b4CD84a/YI","zooId");var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=this&&this.__decorate||function(t,e,o,n){var r,i=arguments.length,c=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(c=(i<3?r(c):i>3?r(e,o,c):r(e,o))||c);return i>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0}),o.ZooId=void 0;var c=t("./zooMgr"),s=cc._decorator,l=s.ccclass,a=(s.property,s.executeInEditMode,s.playOnFocus,function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.id=0,e}var o;return r(e,t),o=e,e.prototype.onLoad=function(){this.id=o._baseId++,c.ZooMgr.inst.add(this)},e.prototype.onDestroy=function(){c.ZooMgr.inst.remove(this)},e._baseId=0,o=i([l],e)}(cc.Component));o.ZooId=a,cc._RF.pop()},{"./zooMgr":"zooMgr"}],zooMgr:[function(t,e,o){"use strict";cc._RF.push(e,"c174fLMF9VA0IEA8WC40V+d","zooMgr"),Object.defineProperty(o,"__esModule",{value:!0}),o.ZooMgr=void 0;var n=function(){function t(){this.zooMap=new Map}return Object.defineProperty(t,"inst",{get:function(){return null==this._inst&&(this._inst=new t),this._inst},enumerable:!1,configurable:!0}),t.prototype.add=function(t){this.zooMap.set(t.id,t)},t.prototype.remove=function(t){this.zooMap.delete(t.id)},t.prototype.get=function(t){return this.zooMap.get(t)},t}();o.ZooMgr=n,cc._RF.pop()},{}]},{},["test","draw","EventMgr","ModuleContext","UIController","UIDef","UILayers","UIMgr","Start","Rocker","ConfigDef","bulletItem","configMgr","monsterItem","nestItem","smallLevelItem","editorSet","utils","eventDef","flyImg","levelempty","nestCondition","nestConditionMgr","loading","m2","aniList","bulletPlay","harmnum","monsterFactory","monsterModel","monsterPlay","monsterbullet","barrage","effectMgr","mainGame","nestPlay","debug","player","bullet","resMgr","resRelease","touch","GameAnimation","GameLogic","delayStop","gameSysLogic","logic","move","moveDest","moveTime","zooId","zooMgr","levelMgr","lq_const","lq_data","lq_interface","lq_base_util","lq_game_util","lq_math_util","lq_platform_util","lq_pool_util","lq_collide","lq_collide_base","lq_collide_config","lq_collide_system"]);
|