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=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]=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(){++o0&&r[r.length-1])&&(6===i[0]||2===i[0])){c=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]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]=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]0)&&this.mgr.isDone()){for(var t=0;tm||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;nt){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.lengths)return 1;if(c=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_widtho,s=t.world_rect.y-t.world_rect.half_heightthis.max_object&&this.level=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;no!=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;n1?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=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;tn)&&(n=r);for(i=null,c=null,s=0;sc)&&(c=r);if(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=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;oo/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;r0?o:o+6.28},t.intersects_rect=function(t,e){return Math.abs(t.x-e.x)e.x-.5*e.width&&t.xe.y-.5*e.height&&t.y=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]=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=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=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]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=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]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=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"]);