/* zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */ var egret;(function(d){var e=function(){function d(){this._hashCode=d.hashCount++}Object.defineProperty(d.prototype,"hashCode",{get:function(){return this._hashCode},enumerable:!0,configurable:!0});d.hashCount=1;return d}();d.HashObject=e;e.prototype.__class__="egret.HashObject"})(egret||(egret={}));var __extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){var e=function(d){function c(a){"undefined"===typeof a&&(a=300);d.call(this);this.objectPool=[];this._length=0;1>a&&(a=1);this.autoDisposeTime=a;this.frameCount=0}__extends(c,d);c.prototype._checkFrame=function(){this.frameCount--;0>=this.frameCount&&this.dispose()};Object.defineProperty(c.prototype,"length",{get:function(){return this._length},enumerable:!0,configurable:!0});c.prototype.push=function(a){var b=this.objectPool;-1==b.indexOf(a)&&(b.push(a),this._length++,0==this.frameCount&& (this.frameCount=this.autoDisposeTime,c._callBackList.push(this)))};c.prototype.pop=function(){if(0==this._length)return null;this._length--;return this.objectPool.pop()};c.prototype.dispose=function(){0=this._maxDeltaTime){c=(this._preDrawCount-1).toString();var a=Math.ceil(this._logicPerformanceCost).toString()+","+Math.ceil(this._updateTransformPerformanceCost).toString()+","+Math.ceil(this._renderPerformanceCost).toString()+ ","+Math.ceil(d.MainContext.instance.rendererContext.renderCost).toString();this._txt.text="draw:"+c+"\ncost:"+a+"\nFPS:"+Math.floor(1E3*this._tick/this._totalDeltaTime).toString();this._tick=this._totalDeltaTime=0}this._preDrawCount=0};e.prototype.onDrawImage=function(){this._preDrawCount++};return e}();d.Profiler=e;e.prototype.__class__="egret.Profiler"})(egret||(egret={})); __extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){var e=function(e){function c(){e.apply(this,arguments);this._timeScale=1;this._paused=!1;this.callBackList=[]}__extends(c,e);c.prototype.run=function(){d.__START_TIME=(new Date).getTime();d.MainContext.instance.deviceContext.executeMainLoop(this.update,this)};c.prototype.update=function(a){var b=this.callBackList.concat(),g=b.length;a*=this._timeScale;a*=this._timeScale;for(var c=0;cthis.delay&&(this.lastTime=a,this._currentCount++,d.TimerEvent.dispatchTimerEvent(this,d.TimerEvent.TIMER),0=this.repeatCount&&(this.stop(),d.TimerEvent.dispatchTimerEvent(this,d.TimerEvent.TIMER_COMPLETE)))}; return c}(d.EventDispatcher);d.Timer=e;e.prototype.__class__="egret.Timer"})(egret||(egret={}));(function(d){d.getQualifiedClassName=function(d){d=d.prototype?d.prototype:d.__proto__;if(d.hasOwnProperty("__class__"))return d.__class__;var f=d.constructor.toString(),c=f.indexOf("("),f=f.substring(9,c);return d.__class__=f}})(egret||(egret={})); (function(d){var e={};d.getDefinitionByName=function(d){if(!d)return null;var c=e[d];if(c)return c;for(var a=d.split("."),b=a.length,c=__global,g=0;g=g.delay&&(g.listener.apply(g.thisObject,g.params),delete f[b])}}var f={},c=0;d.setTimeout=function(a,b,g){for(var s=[],r=0;rd)d=0;16777215d.length;)d="0"+d;return"#"+d}})(egret||(egret={}));__extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){var e=function(e){function c(a,b,g,c,d,l){"undefined"===typeof a&&(a=1);"undefined"===typeof b&&(b=0);"undefined"===typeof g&&(g=0);"undefined"===typeof c&&(c=1);"undefined"===typeof d&&(d=0);"undefined"===typeof l&&(l=0);e.call(this);this.a=a;this.b=b;this.c=g;this.d=c;this.tx=d;this.ty=l}__extends(c,e);c.prototype.prepend=function(a,b,g,c,d,e){var f=this.tx;if(1!=a||0!=b||0!=g||1!=c){var m=this.a,k=this.c;this.a=m*a+this.b*g;this.b=m*b+this.b*c;this.c=k*a+this.d*g;this.d=k*b+this.d* c}this.tx=f*a+this.ty*g+d;this.ty=f*b+this.ty*c+e;return this};c.prototype.append=function(a,b,g,c,d,e){var f=this.a,m=this.b,k=this.c,n=this.d;this.a=a*f+b*k;this.b=a*m+b*n;this.c=g*f+c*k;this.d=g*m+c*n;this.tx=d*f+e*k+this.tx;this.ty=d*m+e*n+this.ty;return this};c.prototype.prependMatrix=function(a){this.prepend(a.a,a.b,a.c,a.d,a.tx,a.ty);return this};c.prototype.appendMatrix=function(a){this.append(a.a,a.b,a.c,a.d,a.tx,a.ty);return this};c.prototype.prependTransform=function(a,b,g,d,e,f,h,m,k){if(e% 360){var n=e*c.DEG_TO_RAD;e=Math.cos(n);n=Math.sin(n)}else e=1,n=0;if(m||k)this.tx-=m,this.ty-=k;f||h?(f*=c.DEG_TO_RAD,h*=c.DEG_TO_RAD,this.prepend(e*g,n*g,-n*d,e*d,0,0),this.prepend(Math.cos(h),Math.sin(h),-Math.sin(f),Math.cos(f),a,b)):this.prepend(e*g,n*g,-n*d,e*d,a,b);return this};c.prototype.appendTransform=function(a,b,g,d,e,f,h,m,k){if(e%360){var n=e*c.DEG_TO_RAD;e=Math.cos(n);n=Math.sin(n)}else e=1,n=0;f||h?(f*=c.DEG_TO_RAD,h*=c.DEG_TO_RAD,this.append(Math.cos(h),Math.sin(h),-Math.sin(f), Math.cos(f),a,b),this.append(e*g,n*g,-n*d,e*d,0,0)):this.append(e*g,n*g,-n*d,e*d,a,b);if(m||k)this.tx-=m*this.a+k*this.c,this.ty-=m*this.b+k*this.d;return this};c.prototype.rotate=function(a){var b=Math.cos(a);a=Math.sin(a);var g=this.a,c=this.c,d=this.tx;this.a=g*b-this.b*a;this.b=g*a+this.b*b;this.c=c*b-this.d*a;this.d=c*a+this.d*b;this.tx=d*b-this.ty*a;this.ty=d*a+this.ty*b;return this};c.prototype.skew=function(a,b){a*=c.DEG_TO_RAD;b*=c.DEG_TO_RAD;this.append(Math.cos(b),Math.sin(b),-Math.sin(a), Math.cos(a),0,0);return this};c.prototype.scale=function(a,b){this.a*=a;this.d*=b;this.c*=a;this.b*=b;this.tx*=a;this.ty*=b;return this};c.prototype.translate=function(a,b){this.tx+=a;this.ty+=b;return this};c.prototype.identity=function(){this.a=this.d=1;this.b=this.c=this.tx=this.ty=0;return this};c.prototype.invert=function(){var a=this.a,b=this.b,g=this.c,c=this.d,d=this.tx,e=a*c-b*g;this.a=c/e;this.b=-b/e;this.c=-g/e;this.d=a/e;this.tx=(g*this.ty-c*d)/e;this.ty=-(a*this.ty-b*d)/e;return this}; c.transformCoords=function(a,b,g){var c=d.Point.identity;c.x=a.a*b+a.c*g+a.tx;c.y=a.d*g+a.b*b+a.ty;return c};c.prototype.toArray=function(a){this.array||(this.array=new Float32Array(9));a?(this.array[0]=this.a,this.array[1]=this.b,this.array[2]=0,this.array[3]=this.c,this.array[4]=this.d,this.array[5]=0,this.array[6]=this.tx,this.array[7]=this.ty):(this.array[0]=this.a,this.array[1]=this.b,this.array[2]=this.tx,this.array[3]=this.c,this.array[4]=this.d,this.array[5]=this.ty,this.array[6]=0,this.array[7]= 0);this.array[8]=1;return this.array};c.identity=new c;c.DEG_TO_RAD=Math.PI/180;return c}(d.HashObject);d.Matrix=e;e.prototype.__class__="egret.Matrix"})(egret||(egret={}));__extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){var e=function(d){function c(a,b){"undefined"===typeof a&&(a=0);"undefined"===typeof b&&(b=0);d.call(this);this.x=a;this.y=b}__extends(c,d);c.prototype.clone=function(){return new c(this.x,this.y)};c.prototype.equals=function(a){return this.x==a.x&&this.y==a.y};c.distance=function(a,b){return Math.sqrt((a.x-b.x)*(a.x-b.x)+(a.y-b.y)*(a.y-b.y))};c.identity=new c(0,0);return c}(d.HashObject);d.Point=e;e.prototype.__class__="egret.Point"})(egret||(egret={})); __extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){var e=function(d){function c(a,b,g,c){"undefined"===typeof a&&(a=0);"undefined"===typeof b&&(b=0);"undefined"===typeof g&&(g=0);"undefined"===typeof c&&(c=0);d.call(this);this.x=a;this.y=b;this.width=g;this.height=c}__extends(c,d);Object.defineProperty(c.prototype,"right",{get:function(){return this.x+this.width},set:function(a){this.width=a-this.x},enumerable:!0,configurable:!0});Object.defineProperty(c.prototype,"bottom",{get:function(){return this.y+this.height},set:function(a){this.height= a-this.y},enumerable:!0,configurable:!0});c.prototype.initialize=function(a,b,g,c){this.x=a;this.y=b;this.width=g;this.height=c;return this};c.prototype.contains=function(a,b){return this.x<=a&&this.x+this.width>=a&&this.y<=b&&this.y+this.height>=b};c.prototype.intersects=function(a){return this.contains(a.x,a.y)||this.contains(a.x,a.bottom)||this.contains(a.right,a.y)||this.contains(a.right,a.bottom)?!0:!1};c.prototype.clone=function(){return new c(this.x,this.y,this.width,this.height)};c.prototype.containsPoint= function(a){return this.xa.x&&this.ya.y?!0:!1};c.identity=new c(0,0,0,0);return c}(d.HashObject);d.Rectangle=e;e.prototype.__class__="egret.Rectangle"})(egret||(egret={})); (function(d){var e=function(){function e(){}e.fatal=function(c,a){"undefined"===typeof a&&(a=null);d.Logger.traceToConsole("Fatal",c,a);throw Error(d.Logger.getTraceCode("Fatal",c,a));};e.info=function(c,a){"undefined"===typeof a&&(a=null);d.Logger.traceToConsole("Info",c,a)};e.warning=function(c,a){"undefined"===typeof a&&(a=null);d.Logger.traceToConsole("Warning",c,a)};e.traceToConsole=function(c,a,b){console.log(d.Logger.getTraceCode(c,a,b))};e.getTraceCode=function(c,a,b){return"["+c+"]"+a+":"+ (null==b?"":b)};return e}();d.Logger=e;e.prototype.__class__="egret.Logger"})(egret||(egret={}));__extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){var e=function(b){function a(){b.call(this);this._designHeight=this._designWidth=0;this._scaleY=this._scaleX=1;var c=document.getElementById(a.canvas_name),d=c.height;this._designWidth=c.width;this._designHeight=d}__extends(a,b);a.getInstance=function(){null==a.instance&&(c.initialize(),a.instance=new a);return a.instance};a.prototype.setDesignSize=function(b,a,g){this._designWidth=b;this._designHeight=a;g&&(d.Logger.warning("\u8be5\u65b9\u6cd5\u76ee\u524d\u4e0d\u5e94\u4f20\u5165 resolutionPolicy \u53c2\u6570\uff0c\u8bf7\u5728 docs/1.0_Final_ReleaseNote\u4e2d\u67e5\u770b\u5982\u4f55\u5347\u7ea7"), this._setResolutionPolicy(g))};a.prototype._setResolutionPolicy=function(b){this._resolutionPolicy=b;b.init(this);b._apply(this,this._designWidth,this._designHeight)};a.prototype.getScaleX=function(){return this._scaleX};a.prototype.getScaleY=function(){return this._scaleY};a.canvas_name="gameCanvas";a.canvas_div_name="gameDiv";return a}(d.HashObject);d.StageDelegate=e;e.prototype.__class__="egret.StageDelegate";var f=function(){function a(b,g){this.setContainerStrategy(b);this.setContentStrategy(g)} a.prototype.init=function(b){this._containerStrategy.init(b);this._contentStrategy.init(b)};a.prototype._apply=function(b,a,g){this._containerStrategy._apply(b,a,g);this._contentStrategy._apply(b,a,g)};a.prototype.setContainerStrategy=function(b){b instanceof c&&(this._containerStrategy=b)};a.prototype.setContentStrategy=function(a){a instanceof b&&(this._contentStrategy=a)};return a}();d.ResolutionPolicy=f;f.prototype.__class__="egret.ResolutionPolicy";var c=function(){function b(){}b.initialize= function(){b.EQUAL_TO_FRAME=new a};b.prototype.init=function(b){};b.prototype._apply=function(b,a,g){};b.prototype._setupContainer=function(){var b=document.body,a;b&&(a=b.style)&&(a.paddingTop=a.paddingTop||"0px",a.paddingRight=a.paddingRight||"0px",a.paddingBottom=a.paddingBottom||"0px",a.paddingLeft=a.paddingLeft||"0px",a.borderTop=a.borderTop||"0px",a.borderRight=a.borderRight||"0px",a.borderBottom=a.borderBottom||"0px",a.borderLeft=a.borderLeft||"0px",a.marginTop=a.marginTop||"0px",a.marginRight= a.marginRight||"0px",a.marginBottom=a.marginBottom||"0px",a.marginLeft=a.marginLeft||"0px")};return b}();d.ContainerStrategy=c;c.prototype.__class__="egret.ContainerStrategy";var a=function(b){function a(){b.apply(this,arguments)}__extends(a,b);a.prototype._apply=function(b){this._setupContainer()};return a}(c);d.EqualToFrame=a;a.prototype.__class__="egret.EqualToFrame";var b=function(){function b(){}b.prototype.init=function(b){};b.prototype._apply=function(b,a,g){};return b}();d.ContentStrategy= b;b.prototype.__class__="egret.ContentStrategy";f=function(b){function a(c){"undefined"===typeof c&&(c=0);b.call(this);this.minWidth=c}__extends(a,b);a.prototype._apply=function(b,a,g){a=document.getElementById(e.canvas_name);var c=document.getElementById(e.canvas_div_name),d=document.documentElement.clientWidth,s=document.documentElement.clientHeight,f=s/g,p=d/f,t=1;0!=this.minWidth&&(t=Math.min(1,p/this.minWidth));a.width=p/t;a.height=g;a.style.width=d+"px";a.style.height=s*t+"px";c.style.width= d+"px";c.style.height=s*t+"px";b._scaleX=f*t;b._scaleY=f*t};return a}(b);d.FixedHeight=f;f.prototype.__class__="egret.FixedHeight";f=function(b){function a(c){"undefined"===typeof c&&(c=0);b.call(this);this.minHeight=c}__extends(a,b);a.prototype._apply=function(b,a,g){g=document.getElementById(e.canvas_name);var c=document.getElementById(e.canvas_div_name),d=document.documentElement.clientWidth,s=document.documentElement.clientHeight,f=d/a,p=s/f,t=1;0!=this.minHeight&&(t=Math.min(1,p/this.minHeight)); g.width=a;g.height=p/t;g.style.width=d*t+"px";g.style.height=s+"px";c.style.width=d*t+"px";c.style.height=s+"px";b._scaleX=f*t;b._scaleY=f*t};return a}(b);d.FixedWidth=f;f.prototype.__class__="egret.FixedWidth";f=function(b){function a(c,d){b.call(this);this.width=c;this.height=d}__extends(a,b);a.prototype._apply=function(b,a,g){g=document.getElementById(e.canvas_name);var c=document.getElementById(e.canvas_div_name),d=this.width,s=this.height,f=d/a;g.width=a;g.height=s/f;g.style.width=d+"px";g.style.height= s+"px";c.style.width=d+"px";c.style.height=s+"px";b._scaleX=f;b._scaleY=f};return a}(b);d.FixedSize=f;f.prototype.__class__="egret.FixedSize";f=function(b){function a(){b.call(this)}__extends(a,b);a.prototype._apply=function(b,a,g){a=document.getElementById(e.canvas_name);a.style.width=a.width+"px";a.style.height=a.height+"px";b._scaleX=1;b._scaleY=1};return a}(b);d.NoScale=f;f.prototype.__class__="egret.NoScale"})(egret||(egret={})); __extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){var e=function(e){function c(){e.call(this);this._originalData={};this._drawAreaList=[]}__extends(c,e);c.getInstance=function(){null==c.instance&&(c.instance=new c);return c.instance};c.prototype.addDrawArea=function(a){this._drawAreaList.push(a)};c.prototype.clearDrawArea=function(){this._drawAreaList=[]};c.prototype.drawImage=function(a,b,g,c,e,f,h,m,k,n){h=h||0;m=m||0;var q=b._texture_to_render;if(null!=q&&0!=f&&0!=e&&0!=k&&0!=n)if(b._worldBounds){var p=this._originalData;p.sourceX= g;p.sourceY=c;p.sourceWidth=e;p.sourceHeight=f;p.destX=h;p.destY=m;p.destWidth=k;p.destHeight=n;for(var t=this.getDrawAreaList(),y=0;yB.x+B.width||b._worldBounds.y+b._worldBounds.height+p.destY>B.y+B.height){d.Logger.fatal("\u8bf7\u4e0d\u8981\u8ba9\u5e26\u6709\u65cb\u8f6c\u548c\u659c\u5207\u7684\u663e\u793a\u5bf9\u8c61\u8de8\u8fc7\u91cd\u7ed8\u533a\u57df"); break}}else{var x=b._worldTransform.a,D=b._worldTransform.d,w;b._worldBounds.x+p.destXB.x+B.width&&(w=(b._worldBounds.x+b._worldBounds.width-B.x-B.width)/x+p.destX,e-=w/(k/e),k-=w);b._worldBounds.y+b._worldBounds.height+p.destY>B.y+B.height&&(w=(b._worldBounds.y+b._worldBounds.height- B.y-B.height)/D+p.destY,f-=w/(n/f),n-=w)}a.drawImage(q,g,c,e,f,h,m,k,n)}}}else a.drawImage(q,g,c,e,f,h,m,k,n)};c.prototype.ignoreRender=function(a,b,g,c){var d=a._worldBounds;g*=a._worldTransform.a;c*=a._worldTransform.d;return d.x+d.width+g<=b.x||d.x+g>=b.x+b.width||d.y+d.height+c<=b.y||d.y+c>=b.y+b.height?!0:!1};c.prototype.getDrawAreaList=function(){var a;0==this._drawAreaList.length?(this._defaultDrawAreaList||(this._defaultDrawAreaList=[new d.Rectangle(0,0,d.MainContext.instance.stage.stageWidth, d.MainContext.instance.stage.stageHeight)]),a=this._defaultDrawAreaList):a=this._drawAreaList;return a};return c}(d.HashObject);d.RenderFilter=e;e.prototype.__class__="egret.RenderFilter"})(egret||(egret={})); (function(d){var e=function(){function e(){}e.mapClass=function(c,a,b){"undefined"===typeof b&&(b="");c=this.getKey(c)+"#"+b;this.mapClassDic[c]=a};e.getKey=function(c){return"string"==typeof c?c:d.getQualifiedClassName(c)};e.mapValue=function(c,a,b){"undefined"===typeof b&&(b="");c=this.getKey(c)+"#"+b;this.mapValueDic[c]=a};e.hasMapRule=function(c,a){"undefined"===typeof a&&(a="");var b=this.getKey(c)+"#"+a;return this.mapValueDic[b]||this.mapClassDic[b]?!0:!1};e.getInstance=function(c,a){"undefined"=== typeof a&&(a="");var b=this.getKey(c)+"#"+a;if(this.mapValueDic[b])return this.mapValueDic[b];var g=this.mapClassDic[b];if(g)return g=new g,this.mapValueDic[b]=g,delete this.mapClassDic[b],g;throw Error("\u8c03\u7528\u4e86\u672a\u914d\u7f6e\u7684\u6ce8\u5165\u89c4\u5219:"+b+"\u3002 \u8bf7\u5148\u5728\u9879\u76ee\u521d\u59cb\u5316\u91cc\u914d\u7f6e\u6307\u5b9a\u7684\u6ce8\u5165\u89c4\u5219\uff0c\u518d\u8c03\u7528\u5bf9\u5e94\u5355\u4f8b\u3002");};e.mapClassDic={};e.mapValueDic={};return e}();d.Injector= e;e.prototype.__class__="egret.Injector"})(egret||(egret={}));(function(d){var e=function(){function d(){}d.NORMAL="normal";d.ADD="add";d.LAYER="layer";return d}();d.BlendMode=e;e.prototype.__class__="egret.BlendMode"})(egret||(egret={}));__extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){var e=function(e){function c(){e.call(this);this._sizeDirty=this._normalDirty=!0;this._parent=null;this._cacheAsBitmap=!1;this._y=this._x=0;this._scaleY=this._scaleX=1;this._anchorY=this._anchorX=this._anchorOffsetY=this._anchorOffsetX=0;this._visible=!0;this._rotation=0;this._alpha=1;this._skewY=this._skewX=0;this._hasHeightSet=this._hasWidthSet=!1;this.worldAlpha=1;this._rectH=this._rectW=0;this._worldTransform=new d.Matrix;this._cacheBounds=new d.Rectangle(0,0,0,0)}__extends(c,e); c.prototype._setDirty=function(){this._normalDirty=!0};c.prototype.getDirty=function(){return this._normalDirty||this._sizeDirty};c.prototype._setParentSizeDirty=function(){!this.parent||this.parent._hasWidthSet||this.parent._hasHeightSet||this.parent._setSizeDirty()};c.prototype._setSizeDirty=function(){this._sizeDirty||(this._sizeDirty=!0,this._setDirty(),this._setParentSizeDirty())};c.prototype._clearDirty=function(){this._normalDirty=!1};c.prototype._clearSizeDirty=function(){this._sizeDirty= !1};Object.defineProperty(c.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0});c.prototype._parentChanged=function(a){this._parent=a};Object.defineProperty(c.prototype,"x",{get:function(){return this._x},set:function(a){d.NumberUtils.isNumber(a)&&(this._x=a,this._setDirty(),this._setParentSizeDirty())},enumerable:!0,configurable:!0});Object.defineProperty(c.prototype,"y",{get:function(){return this._y},set:function(a){d.NumberUtils.isNumber(a)&&(this._y=a,this._setDirty(), this._setParentSizeDirty())},enumerable:!0,configurable:!0});Object.defineProperty(c.prototype,"scaleX",{get:function(){return this._scaleX},set:function(a){d.NumberUtils.isNumber(a)&&(this._scaleX=a,this._setDirty(),this._setParentSizeDirty())},enumerable:!0,configurable:!0});Object.defineProperty(c.prototype,"scaleY",{get:function(){return this._scaleY},set:function(a){d.NumberUtils.isNumber(a)&&(this._scaleY=a,this._setDirty(),this._setParentSizeDirty())},enumerable:!0,configurable:!0});Object.defineProperty(c.prototype, "anchorOffsetX",{get:function(){return this._anchorOffsetX},set:function(a){d.NumberUtils.isNumber(a)&&(this._anchorOffsetX=a,this._setDirty(),this._setParentSizeDirty())},enumerable:!0,configurable:!0});Object.defineProperty(c.prototype,"anchorOffsetY",{get:function(){return this._anchorOffsetY},set:function(a){d.NumberUtils.isNumber(a)&&(this._anchorOffsetY=a,this._setDirty(),this._setParentSizeDirty())},enumerable:!0,configurable:!0});Object.defineProperty(c.prototype,"anchorX",{get:function(){return this._anchorX}, set:function(a){d.NumberUtils.isNumber(a)&&(this._anchorX=a,this._setDirty(),this._setParentSizeDirty())},enumerable:!0,configurable:!0});Object.defineProperty(c.prototype,"anchorY",{get:function(){return this._anchorY},set:function(a){d.NumberUtils.isNumber(a)&&(this._anchorY=a,this._setDirty(),this._setParentSizeDirty())},enumerable:!0,configurable:!0});Object.defineProperty(c.prototype,"visible",{get:function(){return this._visible},set:function(a){this._visible=a;this._setDirty()},enumerable:!0, configurable:!0});Object.defineProperty(c.prototype,"rotation",{get:function(){return this._rotation},set:function(a){d.NumberUtils.isNumber(a)&&(this._rotation=a,this._setSizeDirty())},enumerable:!0,configurable:!0});Object.defineProperty(c.prototype,"alpha",{get:function(){return this._alpha},set:function(a){d.NumberUtils.isNumber(a)&&(this._alpha=a,this._setDirty())},enumerable:!0,configurable:!0});Object.defineProperty(c.prototype,"skewX",{get:function(){return this._skewX},set:function(a){d.NumberUtils.isNumber(a)&& (this._skewX=a,this._setSizeDirty())},enumerable:!0,configurable:!0});Object.defineProperty(c.prototype,"skewY",{get:function(){return this._skewY},set:function(a){d.NumberUtils.isNumber(a)&&(this._skewY=a,this._setSizeDirty())},enumerable:!0,configurable:!0});Object.defineProperty(c.prototype,"touchEnabled",{get:function(){return this._touchEnabled},set:function(a){this._touchEnabled=a},enumerable:!0,configurable:!0});Object.defineProperty(c.prototype,"scrollRect",{get:function(){return this._scrollRect}, set:function(a){this._scrollRect=a;this._setSizeDirty()},enumerable:!0,configurable:!0});Object.defineProperty(c.prototype,"measuredWidth",{get:function(){return this._measureBounds().width},enumerable:!0,configurable:!0});Object.defineProperty(c.prototype,"measuredHeight",{get:function(){return this._measureBounds().height},enumerable:!0,configurable:!0});Object.defineProperty(c.prototype,"explicitWidth",{get:function(){return this._explicitWidth},enumerable:!0,configurable:!0});Object.defineProperty(c.prototype, "explicitHeight",{get:function(){return this._explicitHeight},enumerable:!0,configurable:!0});Object.defineProperty(c.prototype,"width",{get:function(){return this._getSize(d.Rectangle.identity).width},set:function(a){this._setSizeDirty();this._setWidth(a)},enumerable:!0,configurable:!0});Object.defineProperty(c.prototype,"height",{get:function(){return this._getSize(d.Rectangle.identity).height},set:function(a){this._setSizeDirty();this._setHeight(a)},enumerable:!0,configurable:!0});c.prototype._setWidth= function(a){this._explicitWidth=a;this._hasWidthSet=d.NumberUtils.isNumber(a)};c.prototype._setHeight=function(a){this._explicitHeight=a;this._hasHeightSet=d.NumberUtils.isNumber(a)};c.prototype._draw=function(a){if(this.visible&&!this.drawCacheTexture(a)){a.setAlpha(this.worldAlpha,this.blendMode);a.setTransform(this._worldTransform);var b=this.mask||this._scrollRect;b&&a.pushMask(b);this._render(a);b&&a.popMask()}this.destroyCacheBounds()};c.prototype.drawCacheTexture=function(a){if(this._cacheAsBitmap){var b= this._texture_to_render,g=b._offsetX,c=b._offsetY,e=b._textureWidth,b=b._textureHeight;this._updateTransform();a.setAlpha(this.worldAlpha,this.blendMode);a.setTransform(this._worldTransform);var f=d.MainContext.instance.rendererContext.texture_scale_factor;d.RenderFilter.getInstance().drawImage(a,this,0,0,e*f,b*f,g,c,e,b);return!0}return!1};c.prototype._updateTransform=function(){this._worldTransform.identity().appendMatrix(this._parent._worldTransform);var a=this._getOffsetPoint();this._worldTransform.appendTransform(this._x, this._y,this._scaleX,this._scaleY,this._rotation,this._skewX,this._skewY,a.x,a.y);this._scrollRect&&this._worldTransform.append(1,0,0,1,-this._scrollRect.x,-this._scrollRect.y);this.worldAlpha=this._parent.worldAlpha*this._alpha};c.prototype._render=function(a){};c.prototype.getBounds=function(a){var b=this._measureBounds(),g=this._hasWidthSet?this._explicitWidth:b.width,c=this._hasHeightSet?this._explicitHeight:b.height,e=b.x,b=b.y,f,h;0!=this._anchorX||0!=this._anchorY?(f=g*this._anchorX,h=c*this._anchorY): (f=this._anchorOffsetX,h=this._anchorOffsetY);this._cacheBounds.initialize(e-f,b-h,g,c);g=this._cacheBounds;a||(a=new d.Rectangle);return a.initialize(g.x,g.y,g.width,g.height)};c.prototype.destroyCacheBounds=function(){this._cacheBounds.x=0;this._cacheBounds.y=0;this._cacheBounds.width=0;this._cacheBounds.height=0};c.prototype._getConcatenatedMatrix=function(){for(var a=c.identityMatrixForGetConcatenated.identity(),b=this;null!=b;){if(0!=b._anchorX||0!=b._anchorY){var g=b._getSize(d.Rectangle.identity); a.prependTransform(b._x,b._y,b._scaleX,b._scaleY,b._rotation,b._skewX,b._skewY,g.width*b._anchorX,g.height*b._anchorY)}else a.prependTransform(b._x,b._y,b._scaleX,b._scaleY,b._rotation,b._skewX,b._skewY,b._anchorOffsetX,b._anchorOffsetY);b=b._parent}return a};c.prototype.localToGlobal=function(a,b,g){"undefined"===typeof a&&(a=0);"undefined"===typeof b&&(b=0);var c=this._getConcatenatedMatrix();c.append(1,0,0,1,a,b);g||(g=new d.Point);g.x=c.tx;g.y=c.ty;return g};c.prototype.globalToLocal=function(a, b,g){"undefined"===typeof a&&(a=0);"undefined"===typeof b&&(b=0);var c=this._getConcatenatedMatrix();c.invert();c.append(1,0,0,1,a,b);g||(g=new d.Point);g.x=c.tx;g.y=c.ty;return g};c.prototype.hitTest=function(a,b,g){"undefined"===typeof g&&(g=!1);if(!this.visible||!g&&!this._touchEnabled)return null;g=this._getSize(d.Rectangle.identity);return 0<=a&&ap&&(p=g);(g=f+m+k)p&&(p=g);(g=m+k)p&&(p=g);(c=d+n)y&&(y=c);(c=d+e+n)y&&(y=c);(c=e+n)y&&(y=c);return a.initialize(q,t,p-q,y-t)};c.identityMatrixForGetConcatenated= new d.Matrix;c._enterFrameCallBackList=[];c._renderCallBackList=[];return c}(d.EventDispatcher);d.DisplayObject=e;e.prototype.__class__="egret.DisplayObject"})(egret||(egret={}));__extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){var e=function(e){function c(){e.call(this);this._touchChildren=!0;this._children=[]}__extends(c,e);Object.defineProperty(c.prototype,"touchChildren",{get:function(){return this._touchChildren},set:function(a){this._touchChildren=a},enumerable:!0,configurable:!0});Object.defineProperty(c.prototype,"numChildren",{get:function(){return this._children.length},enumerable:!0,configurable:!0});c.prototype.setChildIndex=function(a,b){this.doSetChildIndex(a,b)};c.prototype.doSetChildIndex=function(a, b){var g=this._children.indexOf(a);0>g&&d.Logger.fatal("child\u4e0d\u5728\u5f53\u524d\u5bb9\u5668\u5185");this._children.splice(g,1);0>b||this._children.length<=b?this._children.push(a):this._children.splice(b,0,a)};c.prototype.addChild=function(a){var b=this.numChildren;a._parent==this&&b--;return this._doAddChild(a,b)};c.prototype.addChildAt=function(a,b){return this._doAddChild(a,b)};c.prototype._doAddChild=function(a,b,g){"undefined"===typeof g&&(g=!0);if(a==this)return a;if(0>b||b>this._children.length)return d.Logger.fatal("\u63d0\u4f9b\u7684\u7d22\u5f15\u8d85\u51fa\u8303\u56f4"), a;var e=a.parent;if(e==this)return this.doSetChildIndex(a,b),a;e&&e.removeChild(a);this._children.splice(b,0,a);a._parentChanged(this);g&&a.dispatchEventWith(d.Event.ADDED,!0);if(this._stage)for(a._onAddToStage(),b=c.__EVENT__ADD_TO_STAGE_LIST;0b||0==f)b=n;if(kc||0==f)c=q}}return d.Rectangle.identity.initialize(a,g,b-a,c-g)};c.prototype.hitTest=function(a,b,g){"undefined"===typeof g&&(g=!1);var c;if(!this.visible)return null;if(this._scrollRect){if(a>this._scrollRect.width||b>this._scrollRect.height)return null}else if(this.mask&&(this.mask.x>a||a>this.mask.x+this.mask.width||this.mask.y>b||b>this.mask.y+this.mask.height))return null;for(var r=this._children,l=this._touchChildren, h=r.length-1;0<=h;h--){var m=r[h],k=m,n=k._getOffsetPoint(),q=k._x,p=k._y;this._scrollRect&&(q-=this._scrollRect.x,p-=this._scrollRect.y);k=d.Matrix.identity.identity().prependTransform(q,p,k._scaleX,k._scaleY,k._rotation,0,0,n.x,n.y);k.invert();k=d.Matrix.transformCoords(k,a,b);if(m=m.hitTest(k.x,k.y,!0)){if(m._touchEnabled&&l)return m;if(this._touchEnabled)return this;null==c&&(c=m)}}return c?c:e.prototype.hitTest.call(this,a,b,g)};c.prototype._onAddToStage=function(){e.prototype._onAddToStage.call(this); for(var a=this.numChildren,b=0;bb&&(b=h+l._textureHeight)}}this._textChanged=!1;return d.Rectangle.identity.initialize(0,0,a,b)};c.prototype._measureBounds= function(){return this._renderText(!0)};return c}(d.DisplayObjectContainer);d.BitmapText=e;e.prototype.__class__="egret.BitmapText"})(egret||(egret={})); (function(d){var e=function(){function d(){this.commandQueue=[]}d.prototype.beginFill=function(c,a){};d.prototype._setStyle=function(c){};d.prototype.drawRect=function(c,a,b,g){};d.prototype.drawCircle=function(c,a,b){};d.prototype.lineStyle=function(c,a,b,g,d,e,f,h){};d.prototype.lineTo=function(c,a){};d.prototype.curveTo=function(c,a,b,g){};d.prototype.moveTo=function(c,a){};d.prototype.clear=function(){};d.prototype.endFill=function(){};d.prototype._draw=function(c){};return d}();d.Graphics=e; e.prototype.__class__="egret.Graphics";(function(){return function(d,c,a){this.method=d;this.thisObject=c;this.args=a}})().prototype.__class__="Command"})(egret||(egret={}));__extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){var e=function(e){function c(){e.call(this)}__extends(c,e);Object.defineProperty(c.prototype,"graphics",{get:function(){this._graphics||(this._graphics=new d.Graphics);return this._graphics},enumerable:!0,configurable:!0});c.prototype._render=function(a){this._graphics&&this._graphics._draw(a)};return c}(d.DisplayObject);d.Shape=e;e.prototype.__class__="egret.Shape"})(egret||(egret={})); __extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){var e=function(e){function c(){e.call(this)}__extends(c,e);Object.defineProperty(c.prototype,"graphics",{get:function(){this._graphics||(this._graphics=new d.Graphics);return this._graphics},enumerable:!0,configurable:!0});c.prototype._render=function(a){this._graphics&&this._graphics._draw(a);e.prototype._render.call(this,a)};return c}(d.DisplayObjectContainer);d.Sprite=e;e.prototype.__class__="egret.Sprite"})(egret||(egret={})); __extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){var e=function(e){function c(){e.call(this);this._fontFamily="Arial";this._size=30;this._textColorString="#FFFFFF";this._textColor=16777215;this._strokeColorString="#000000";this._stroke=this._strokeColor=0;this._textAlign="left";this._verticalAlign="top";this._numLines=this._lineSpacing=0;this.measuredWidths=[]}__extends(c,e);Object.defineProperty(c.prototype,"text",{get:function(){return this._text},set:function(a){this._text!=a&&(this._setTextDirty(),this._text=a)},enumerable:!0,configurable:!0}); c.prototype._setTextDirty=function(){this._setSizeDirty()};Object.defineProperty(c.prototype,"fontFamily",{get:function(){return this._fontFamily},set:function(a){this._fontFamily!=a&&(this._setTextDirty(),this._fontFamily=a)},enumerable:!0,configurable:!0});Object.defineProperty(c.prototype,"size",{get:function(){return this._size},set:function(a){this._size!=a&&(this._setTextDirty(),this._size=a)},enumerable:!0,configurable:!0});Object.defineProperty(c.prototype,"italic",{get:function(){return this._italic}, set:function(a){this._italic!=a&&(this._setTextDirty(),this._italic=a)},enumerable:!0,configurable:!0});Object.defineProperty(c.prototype,"bold",{get:function(){return this._bold},set:function(a){this._bold!=a&&(this._setTextDirty(),this._bold=a)},enumerable:!0,configurable:!0});Object.defineProperty(c.prototype,"textColor",{get:function(){return this._textColor},set:function(a){this._textColor!=a&&(this._setTextDirty(),this._textColor=a,this._textColorString=d.toColorString(a))},enumerable:!0,configurable:!0}); Object.defineProperty(c.prototype,"strokeColor",{get:function(){return this._strokeColor},set:function(a){this._strokeColor!=a&&(this._setTextDirty(),this._strokeColor=a,this._strokeColorString=d.toColorString(a))},enumerable:!0,configurable:!0});Object.defineProperty(c.prototype,"stroke",{get:function(){return this._stroke},set:function(a){this._stroke!=a&&(this._setTextDirty(),this._stroke=a)},enumerable:!0,configurable:!0});Object.defineProperty(c.prototype,"textAlign",{get:function(){return this._textAlign}, set:function(a){this._textAlign!=a&&(this._setTextDirty(),this._textAlign=a)},enumerable:!0,configurable:!0});Object.defineProperty(c.prototype,"verticalAlign",{get:function(){return this._verticalAlign},set:function(a){this._verticalAlign!=a&&(this._setTextDirty(),this._verticalAlign=a)},enumerable:!0,configurable:!0});Object.defineProperty(c.prototype,"lineSpacing",{get:function(){return this._lineSpacing},set:function(a){this._lineSpacing!=a&&(this._setTextDirty(),this._lineSpacing=a)},enumerable:!0, configurable:!0});Object.defineProperty(c.prototype,"numLines",{get:function(){return this._numLines},enumerable:!0,configurable:!0});c.prototype._render=function(a){this.drawText(a,!1);this._clearDirty()};c.prototype._measureBounds=function(){return this.drawText(d.MainContext.instance.rendererContext,!0)};c.prototype.drawText=function(a,b){var c=this.getTextLines(a);if(!c)return d.Rectangle.identity.initialize(0,0,0,0);var e=c.length,f=0.5*this._size,l=this._size+this._lineSpacing,h=e*l-this._lineSpacing; this._textHeight=h;var m=this._explicitHeight;if(this._hasHeightSet&&hf){for(var n="",q=0,p=m.length,t=0;tf&&(0==q?(b.splice(h, 0,y),c[h]=k,e>4,c=(c&15)<<4|b>>2,a=(b&3)<<6|g,e.push(String.fromCharCode(f)),64!=b&&e.push(String.fromCharCode(c)),64!=g&&e.push(String.fromCharCode(a));return e=e.join("")}; egret.Codec.Base64.decodeAsArray=function(d,e){var f=this.decode(d),c=[],a,b,g;a=0;for(g=f.length/e;a>=1;0==this.bb&&(this.bb=this.readByte(),d=this.bb&1,this.bb=this.bb>>1|128);return d};egret.Codec.GZip.prototype.readBits=function(d){for(var e=0,f=d;f--;)e=e<<1|this.readBit();d&&(e=egret.Codec.GZip.bitReverse[e]>>8-d);return e};egret.Codec.GZip.prototype.flushBuffer=function(){this.bIdx=0}; egret.Codec.GZip.prototype.addBuffer=function(d){this.buf32k[this.bIdx++]=d;this.outputArr.push(String.fromCharCode(d));32768==this.bIdx&&(this.bIdx=0)};egret.Codec.GZip.prototype.IsPat=function(){for(;;){if(this.fpos[this.len]>=this.fmax)return-1;if(this.flens[this.fpos[this.len]]==this.len)return this.fpos[this.len]++;this.fpos[this.len]++}}; egret.Codec.GZip.prototype.Rec=function(){var d=this.Places[this.treepos],e;if(17==this.len)return-1;this.treepos++;this.len++;e=this.IsPat();if(0<=e)d.b0=e;else if(d.b0=32768,this.Rec())return-1;e=this.IsPat();if(0<=e)d.b1=e,d.jump=null;else if(d.b1=32768,d.jump=this.Places[this.treepos],d.jumppos=this.treepos,this.Rec())return-1;this.len--;return 0}; egret.Codec.GZip.prototype.CreateTree=function(d,e,f,c){this.Places=d;this.treepos=0;this.flens=f;this.fmax=e;for(d=0;17>d;d++)this.fpos[d]=0;this.len=0;return this.Rec()?-1:0};egret.Codec.GZip.prototype.DecodeValue=function(d){for(var e,f,c=0,a=d[c];;)if(e=this.readBit()){if(!(a.b1&32768))return a.b1;a=a.jump;e=d.length;for(f=0;f>1,23f)this.addBuffer(f); else if(256==f)break;else{var b;f-=257;a=this.readBits(egret.Codec.GZip.cplext[f])+egret.Codec.GZip.cplens[f];f=egret.Codec.GZip.bitReverse[this.readBits(5)]>>3;8f;f++)g[f]=0;for(f=0;ff)g[c++]=f;else if(16==f){var r;f=3+this.readBits(2);if(c+f>a)return this.flushBuffer(),1;for(r=c?g[c-1]:0;f--;)g[c++]=r}else{f=17==f?3+this.readBits(3):11+this.readBits(7);if(c+ f>a)return this.flushBuffer(),1;for(;f--;)g[c++]=0}a=this.literalTree.length;for(c=0;c>>0}a=1;c=0;for(var g=b.length,d,e=0;0>>0}function c(b,a){this.index="number"===typeof a?a:0; this.i=0;this.buffer=b instanceof(w?Uint8Array:Array)?b:new (w?Uint8Array:Array)(32768);2*this.buffer.length<=this.index&&d(Error("invalid index"));this.buffer.length<=this.index&&this.f()}function a(b){this.buffer=new (w?Uint16Array:Array)(2*b);this.length=0}function b(b){var a=b.length,c=0,g=Number.POSITIVE_INFINITY,d,e,f,s,r,l,h,k,m;for(k=0;kc&&(c=b[k]),b[k]>=1;for(m=l;m=b:return[265,b-11,1];case 14>=b:return[266,b-13,1];case 16>=b:return[267,b-15,1];case 18>=b:return[268,b-17,1];case 22>=b:return[269,b-19,2];case 26>=b:return[270,b-23,2];case 30>=b:return[271,b-27,2];case 34>=b:return[272,b-31,2];case 42>=b:return[273,b-35,3];case 50>= b:return[274,b-43,3];case 58>=b:return[275,b-51,3];case 66>=b:return[276,b-59,3];case 82>=b:return[277,b-67,4];case 98>=b:return[278,b-83,4];case 114>=b:return[279,b-99,4];case 130>=b:return[280,b-115,4];case 162>=b:return[281,b-131,5];case 194>=b:return[282,b-163,5];case 226>=b:return[283,b-195,5];case 257>=b:return[284,b-227,5];case 258===b:return[285,b-258,0];default:d("invalid length: "+b)}}function l(b,a){function c(b,a){var g=b.G,e=[],f=0,s;s=J[b.length];e[f++]=s&65535;e[f++]=s>>16&255;e[f++]= s>>24;var r;switch(x){case 1===g:r=[0,g-1,0];break;case 2===g:r=[1,g-2,0];break;case 3===g:r=[2,g-3,0];break;case 4===g:r=[3,g-4,0];break;case 6>=g:r=[4,g-5,1];break;case 8>=g:r=[5,g-7,1];break;case 12>=g:r=[6,g-9,2];break;case 16>=g:r=[7,g-13,2];break;case 24>=g:r=[8,g-17,3];break;case 32>=g:r=[9,g-25,3];break;case 48>=g:r=[10,g-33,4];break;case 64>=g:r=[11,g-49,4];break;case 96>=g:r=[12,g-65,5];break;case 128>=g:r=[13,g-97,5];break;case 192>=g:r=[14,g-129,6];break;case 256>=g:r=[15,g-193,6];break; case 384>=g:r=[16,g-257,7];break;case 512>=g:r=[17,g-385,7];break;case 768>=g:r=[18,g-513,8];break;case 1024>=g:r=[19,g-769,8];break;case 1536>=g:r=[20,g-1025,9];break;case 2048>=g:r=[21,g-1537,9];break;case 3072>=g:r=[22,g-2049,10];break;case 4096>=g:r=[23,g-3073,10];break;case 6144>=g:r=[24,g-4097,11];break;case 8192>=g:r=[25,g-6145,11];break;case 12288>=g:r=[26,g-8193,12];break;case 16384>=g:r=[27,g-12289,12];break;case 24576>=g:r=[28,g-16385,13];break;case 32768>=g:r=[29,g-24577,13];break;default:d("invalid distance")}s= r;e[f++]=s[0];e[f++]=s[1];e[f++]=s[2];g=0;for(f=e.length;g=f;)n[f++]=0;for(f=0;29>=f;)t[f++]=0}n[256]=1;g=0;for(e=a.length;g=e){k&&c(k,-1);f=0; for(r=e-g;fv&&g+vy&&(l=r,y=v);if(258===v)break}r=new s(y,g-l);k?k.length2*r[t-1]+e[t]&&(r[t]=2*r[t-1]+e[t]),l[t]=Array(r[t]),m[t]=Array(r[t]);for(q=0;qs[q]?(l[t][n]=C,m[t][n]=h,u+=2):(l[t][n]=s[q], m[t][n]=q,++q);p[t]=0;1===e[t]&&g(t)}s=k;r=0;for(l=d.length;r1<e&&d("undercommitted");f=0;for(s=b.length;f>>=1;return a}function k(b,a){this.input=b;this.a=new (w?Uint8Array:Array)(32768);this.h= L.j;var c={},d;!a&&(a={})||"number"!==typeof a.compressionType||(this.h=a.compressionType);for(d in a)c[d]=a[d];c.outputBuffer=this.a;this.z=new g(this.input,c)}function n(b,a){this.k=[];this.l=32768;this.e=this.g=this.c=this.q=0;this.input=w?new Uint8Array(b):b;this.s=!1;this.m=F;this.B=!1;if(a||!(a={}))a.index&&(this.c=a.index),a.bufferSize&&(this.l=a.bufferSize),a.bufferType&&(this.m=a.bufferType),a.resize&&(this.B=a.resize);switch(this.m){case N:this.b=32768;this.a=new (w?Uint8Array:Array)(32768+ this.l+258);break;case F:this.b=0;this.a=new (w?Uint8Array:Array)(this.l);this.f=this.J;this.t=this.H;this.o=this.I;break;default:d(Error("invalid inflate mode"))}}function q(b,a){for(var c=b.g,g=b.e,e=b.input,f=b.c,s;g>>a;b.e=g-a;b.c=f;return c&(1<>>16;b.g=c>>s;b.e= g-s;b.c=f;return e&65535}function t(a){function c(b,a,g){var d,e,f,s;for(s=0;s>>8&255]<<16|v[b>>>16&255]<<8|v[b>>>24&255])>>32-a:v[b]>>8-a);if(8>a+e)f=f<>a-c-1&1,8===++e&&(e=0,g[d++]=v[f],f=0,d===g.length&&(g=this.f())); g[d]=f;this.buffer=g;this.i=e;this.index=d};c.prototype.finish=function(){var b=this.buffer,a=this.index,c;0u;++u){for(var C=u,z=C,E=7,C=C>>>1;C;C>>>=1)z<<=1,z|=C&1,--E;A[u]=(z<>>0}var v=A,A=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049, 498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275, 3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277, 2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143, 2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112, 2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918E3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746, 711928724,3020668471,3272380065,1510334235,755167117];w&&new Uint32Array(A);a.prototype.getParent=function(b){return 2*((b-2)/4|0)};a.prototype.push=function(b,a){var c,g,d=this.buffer,e;c=this.length;d[this.length++]=a;for(d[this.length++]=b;0d[g])e=d[c],d[c]=d[g],d[g]=e,e=d[c+1],d[c+1]=d[g+1],d[g+1]=e,c=g;else break;return this.length};a.prototype.pop=function(){var b,a,c=this.buffer,g,d,e;a=c[0];b=c[1];this.length-=2;c[0]=c[this.length];c[1]=c[this.length+1];for(e= 0;;){d=2*e+2;if(d>=this.length)break;d+2c[d]&&(d+=2);if(c[d]>c[e])g=c[e],c[e]=c[d],c[d]=g,g=c[e+1],c[e+1]=c[d+1],c[d+1]=g;else break;e=d}return{index:b,value:a,length:this.length}};var H=2,A={NONE:0,r:1,j:H,N:3},K=[];for(u=0;288>u;u++)switch(x){case 143>=u:K.push([u+48,8]);break;case 255>=u:K.push([u-144+400,9]);break;case 279>=u:K.push([u-256+0,7]);break;case 287>=u:K.push([u-280+192,8]);break;default:d("invalid literal: "+u)}g.prototype.n=function(){var b,a,g,e,f=this.input; switch(this.h){case 0:g=0;for(e=f.length;g>>8&255;q[p++]=k&255;q[p++]=k>>>8&255;if(w)q.set(a,p),p+=a.length,q=q.subarray(0,p);else{r=0;for(k=a.length;rE)for(;0E?E:138,F>E-3&&F=F?(A[G++]=17,A[G++]=F-3,v[17]++):(A[G++]=18,A[G++]=F-11,v[18]++),E-=F;else if(A[G++]= b[z],v[b[z]]++,E--,3>E)for(;0E?E:6,F>E-3&&Fz;z++)r[z]=v[u[z]];for(C=19;4=G;G++)C=r(),u[G]=C[2]<<24|C[1]<<16|C[0];var J=w?new Uint32Array(u):u,L=A;k.prototype.n=function(){var b,a,c,g,e=0;g=this.a;b=O;switch(b){case O:a=Math.LOG2E*Math.log(32768)-8;break;default:d(Error("invalid compression method"))}a= a<<4|b;g[e++]=a;switch(b){case O:switch(this.h){case L.NONE:c=0;break;case L.r:c=1;break;case L.j:c=2;break;default:d(Error("unsupported compression type"))}break;default:d(Error("invalid compression method"))}b=c<<6|0;g[e++]=b|31-(256*a+b)%31;b=f(this.input);this.z.b=e;g=this.z.n();e=g.length;w&&(g=new Uint8Array(g.buffer),g.length<=e+4&&(this.a=new Uint8Array(g.length+4),this.a.set(g),g=this.a),g=g.subarray(0,e+4));g[e++]=b>>24&255;g[e++]=b>>16&255;g[e++]=b>>8&255;g[e++]=b&255;return g};e("Zlib.Deflate", k);e("Zlib.Deflate.compress",function(b,a){return(new k(b,a)).n()});e("Zlib.Deflate.CompressionType",L);e("Zlib.Deflate.CompressionType.NONE",L.NONE);e("Zlib.Deflate.CompressionType.FIXED",L.r);e("Zlib.Deflate.CompressionType.DYNAMIC",L.j);var N=0,F=1,A={D:N,C:F};n.prototype.p=function(){for(;!this.s;){var b=q(this,3);b&1&&(this.s=x);b>>>=1;switch(b){case 0:var b=this.input,a=this.c,c=this.a,g=this.b,e=B,f=B,s=B,r=c.length,e=B;this.e=this.g=0;e=b[a++];e===B&&d(Error("invalid uncompressed block header: LEN (first byte)")); f=e;e=b[a++];e===B&&d(Error("invalid uncompressed block header: LEN (second byte)"));f|=e<<8;e=b[a++];e===B&&d(Error("invalid uncompressed block header: NLEN (first byte)"));s=e;e=b[a++];e===B&&d(Error("invalid uncompressed block header: NLEN (second byte)"));s|=e<<8;f===~s&&d(Error("invalid uncompressed block header: length verify"));a+f>b.length&&d(Error("input buffer is broken"));switch(this.m){case N:for(;g+f>c.length;){e=r-g;f-=e;if(w)c.set(b.subarray(a,a+e),g),g+=e,a+=e;else for(;e--;)c[g++]= b[a++];this.b=g;c=this.f();g=this.b}break;case F:for(;g+f>c.length;)c=this.f({v:2});break;default:d(Error("invalid inflate mode"))}if(w)c.set(b.subarray(a,a+f),g),g+=f,a+=f;else for(;f--;)c[g++]=b[a++];this.c=a;this.b=g;this.a=c;break;case 1:this.o(S,T);break;case 2:t(this);break;default:d(Error("unknown BTYPE: "+b))}}return this.t()};u=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];var M=w?new Uint16Array(u):u;u=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227, 258,258,258];var I=w?new Uint16Array(u):u;u=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0];var P=w?new Uint8Array(u):u;u=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];var R=w?new Uint16Array(u):u;u=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];var Q=w?new Uint8Array(u):u;u=new (w?Uint8Array:Array)(288);C=0;for(z=u.length;C=C?8:255>=C?9:279>=C?7:8;var S=b(u);u=new (w?Uint8Array: Array)(30);C=0;for(z=u.length;Ce)g>=d&&(this.b=g,c=this.f(),g=this.b),c[g++]=e;else for(e-=257,s=I[e],0=d&&(this.b=g,c=this.f(),g=this.b);s--;)c[g]=c[g++-f];for(;8<=this.e;)this.e-=8,this.c--;this.b=g};n.prototype.I=function(b,a){var c=this.a,g=this.b;this.u=b;for(var d=c.length,e,f,s;256!== (e=p(this,b));)if(256>e)g>=d&&(c=this.f(),d=c.length),c[g++]=e;else for(e-=257,s=I[e],0d&&(c=this.f(),d=c.length);s--;)c[g]=c[g++-f];for(;8<=this.e;)this.e-=8,this.c--;this.b=g};n.prototype.f=function(){var b=new (w?Uint8Array:Array)(this.b-32768),a=this.b-32768,c,g,d=this.a;if(w)b.set(d.subarray(32768,b.length));else for(c=0,g=b.length;cc;++c)d[c]=d[a+c];this.b=32768;return d};n.prototype.J=function(b){var a,c=this.input.length/this.c+1|0,g,d,e,f=this.input,s=this.a;b&&("number"===typeof b.v&&(c=b.v),"number"===typeof b.F&&(c+=b.F));2>c?(g=(f.length-this.c)/this.u[2],e=g/2*258|0,d=ea&&(this.a.length=a),b=this.a);return this.buffer=b};y.prototype.p=function(){var b=this.input,a,c;a=this.A.p();this.c=this.A.c;this.M&&(c=(b[this.c++]<<24|b[this.c++]<< 16|b[this.c++]<<8|b[this.c++])>>>0,c!==f(a)&&d(Error("invalid adler-32 checksum")));return a};e("Zlib.Inflate",y);e("Zlib.Inflate.BufferType",A);A.ADAPTIVE=A.C;A.BLOCK=A.D;e("Zlib.Inflate.prototype.decompress",y.prototype.p);A=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];w&&new Uint16Array(A);A=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,258,258];w&&new Uint16Array(A);A=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0];w&&new Uint8Array(A); A=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];w&&new Uint16Array(A);A=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];w&&new Uint8Array(A);A=new (w?Uint8Array:Array)(288);u=0;for(C=A.length;u=u?8:255>=u?9:279>=u?7:8;b(A);A=new (w?Uint8Array:Array)(30);u=0;for(C=A.length;uthis.maxlength){a=a+255&-256;var b=new ArrayBuffer(a),c=new Uint8Array(this.arraybytes,0,this.length);(new Uint8Array(b,0,this.length)).set(c);this.arraybytes=b;this.maxlength=a}};c.prototype.writeByte=function(a){this.ensureWriteableSpace(1);(new Int8Array(this.arraybytes))[this.position++]=~~a;this.position>this.length&&(this.length=this.position)};c.prototype.readByte=function(){if(this.position>=this.length)throw"ByteArray out of bounds read. Positon="+ this.position+", Length="+this.length;return(new Int8Array(this.arraybytes))[this.position++]};c.prototype.readBytes=function(a,b,c){"undefined"===typeof b&&(b=0);"undefined"===typeof c&&(c=0);null==c&&(c=a.length);a.ensureWriteableSpace(b+c);var d=new Int8Array(a.arraybytes),e=new Int8Array(this.arraybytes);d.set(e.subarray(this.position,this.position+c),b);this.position+=c;c+b>a.length&&(a.length+=c+b-a.length)};c.prototype.writeUnsignedByte=function(a){this.ensureWriteableSpace(1);(new Uint8Array(this.arraybytes))[this.position++]= ~~a&255;this.position>this.length&&(this.length=this.position)};c.prototype.readUnsignedByte=function(){if(this.position>=this.length)throw"ByteArray out of bounds read. Positon="+this.position+", Length="+this.length;return(new Uint8Array(this.arraybytes))[this.position++]};c.prototype.writeUnsignedShort=function(a){this.ensureWriteableSpace(2);if(0==(this.position&1)){var b=new Uint16Array(this.arraybytes);b[this.position>>1]=~~a&65535}else b=new Uint16Array(this.unalignedarraybytestemp,0,1),b[0]= ~~a&65535,a=new Uint8Array(this.arraybytes,this.position,2),b=new Uint8Array(this.unalignedarraybytestemp,0,2),a.set(b);this.position+=2;this.position>this.length&&(this.length=this.position)};c.prototype.readUTFBytes=function(a){var b="";a=this.position+a;for(var c=new DataView(this.arraybytes);this.positiond){if(0==d)break;b+=String.fromCharCode(d)}else if(224>d)b+=String.fromCharCode((d&63)<<6|c.getUint8(this.position++)&127);else if(240>d)var e=c.getUint8(this.position++), b=b+String.fromCharCode((d&31)<<12|(e&127)<<6|c.getUint8(this.position++)&127);else var e=c.getUint8(this.position++),f=c.getUint8(this.position++),b=b+String.fromCharCode((d&15)<<18|(e&127)<<12|f<<6&127|c.getUint8(this.position++)&127)}return b};c.prototype.readInt=function(){var a=(new DataView(this.arraybytes)).getInt32(this.position,this.isLittleEndian);this.position+=4;return a};c.prototype.readShort=function(){var a=(new DataView(this.arraybytes)).getInt16(this.position,this.isLittleEndian); this.position+=2;return a};c.prototype.readDouble=function(){var a=(new DataView(this.arraybytes)).getFloat64(this.position,this.isLittleEndian);this.position+=8;return a};c.prototype.readUnsignedShort=function(){if(this.position>this.length+2)throw"ByteArray out of bounds read. Position="+this.position+", Length="+this.length;if(0==(this.position&1)){var a=new Uint16Array(this.arraybytes),b=this.position>>1;this.position+=2;return a[b]}a=new Uint16Array(this.unalignedarraybytestemp,0,1);b=new Uint8Array(this.arraybytes, this.position,2);(new Uint8Array(this.unalignedarraybytestemp,0,2)).set(b);this.position+=2;return a[0]};c.prototype.writeUnsignedInt=function(a){this.ensureWriteableSpace(4);if(0==(this.position&3)){var b=new Uint32Array(this.arraybytes);b[this.position>>2]=~~a&4294967295}else b=new Uint32Array(this.unalignedarraybytestemp,0,1),b[0]=~~a&4294967295,a=new Uint8Array(this.arraybytes,this.position,4),b=new Uint8Array(this.unalignedarraybytestemp,0,4),a.set(b);this.position+=4;this.position>this.length&& (this.length=this.position)};c.prototype.readUnsignedInt=function(){if(this.position>this.length+4)throw"ByteArray out of bounds read. Position="+this.position+", Length="+this.length;if(0==(this.position&3)){var a=new Uint32Array(this.arraybytes),b=this.position>>2;this.position+=4;return a[b]}a=new Uint32Array(this.unalignedarraybytestemp,0,1);b=new Uint8Array(this.arraybytes,this.position,4);(new Uint8Array(this.unalignedarraybytestemp,0,4)).set(b);this.position+=4;return a[0]};c.prototype.writeFloat= function(a){this.ensureWriteableSpace(4);if(0==(this.position&3)){var b=new Float32Array(this.arraybytes);b[this.position>>2]=a}else b=new Float32Array(this.unalignedarraybytestemp,0,1),b[0]=a,a=new Uint8Array(this.arraybytes,this.position,4),b=new Uint8Array(this.unalignedarraybytestemp,0,4),a.set(b);this.position+=4;this.position>this.length&&(this.length=this.position)};c.prototype.readFloat=function(){if(this.position>this.length+4)throw"ByteArray out of bounds read. Positon="+this.position+", Length="+ this.length;if(0==(this.position&3)){var a=new Float32Array(this.arraybytes),b=this.position>>2;this.position+=4;return a[b]}a=new Float32Array(this.unalignedarraybytestemp,0,1);b=new Uint8Array(this.arraybytes,this.position,4);(new Uint8Array(this.unalignedarraybytestemp,0,4)).set(b);this.position+=4;return a[0]};c.DEFAULT_ENDIAN=e.BIG_ENDIAN;return c}();d.ByteArray=f;f.prototype.__class__="egret.ByteArray"})(egret||(egret={})); __extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){var e=function(e){function c(a,b,c){e.call(this);this._target=null;this.loop=this.ignoreGlobalPause=this._useTicks=!1;this._actions=this._steps=this.pluginData=null;this.paused=!1;this.duration=0;this._prevPos=-1;this.position=null;this._stepPosition=this._prevPosition=0;this.passive=!1;this.initialize(a,b,c)}__extends(c,e);c.get=function(a,b,g,d){"undefined"===typeof b&&(b=null);"undefined"===typeof g&&(g=null);"undefined"===typeof d&&(d=!1);d&&c.removeTweens(a);return new c(a,b,g)}; c.removeTweens=function(a){if(a.tween_count){for(var b=c._tweens,g=b.length-1;0<=g;g--)b[g]._target==a&&(b[g].paused=!0,b.splice(g,1));a.tween_count=0}};c.tick=function(a,b){"undefined"===typeof b&&(b=!1);for(var g=c._tweens.concat(),d=g.length-1;0<=d;d--){var e=g[d];b&&!e.ignoreGlobalPause||e.paused||e.tick(e._useTicks?1:a)}};c._register=function(a,b){var g=a._target,e=c._tweens;if(b)g&&(g.tween_count=g.tween_count?g.tween_count+1:1),e.push(a),c._inited||(d.Ticker.getInstance().register(c.tick,null), c._inited=!0);else for(g&&g.tween_count--,g=e.length;g--;)if(e[g]==a){e.splice(g,1);break}};c.removeAllTweens=function(){for(var a=c._tweens,b=0,g=a.length;ba&&(a=0);var c=a,d=!1;c>=this.duration&&(this.loop?c%=this.duration:(c=this.duration,d=!0));if(c==this._prevPos)return d;var e=this._prevPos;this.position=this._prevPos=c;this._prevPosition=a;if(this._target)if(d)this._updateTargetProps(null,1);else if(0c);f++);f=this._steps[f-1];this._updateTargetProps(f,(this._stepPosition=c-f.t)/f.d)}0!=b&&0b&&(d=b, e=a,f=h,h=m=-1);for(;(f+=m)!=h;){b=this._actions[f];var k=b.t;(k==e||k>d&&k=a)return this;var c=this._cloneProps(this._curQueueProps);return this._addStep({d:a,p0:c,p1:c,v:b})};c.prototype.to=function(a,b,c){"undefined"===typeof c&&(c=void 0);if(isNaN(b)||0>b)b=0;return this._addStep({d:b||0,p0:this._cloneProps(this._curQueueProps),e:c,p1:this._cloneProps(this._appendQueueProps(a))})};c.prototype.call=function(a,b,c){"undefined"===typeof b&&(b=void 0);"undefined"===typeof c&&(c=void 0);return this._addAction({f:a,p:c?c:[this],o:b?b:this._target})};c.prototype.set=function(a, b){"undefined"===typeof b&&(b=null);return this._addAction({f:this._set,o:this,p:[a,b?b:this._target]})};c.prototype.play=function(a){a||(a=this);return this.call(a.setPaused,[!1],a)};c.prototype.pause=function(a){a||(a=this);return this.call(a.setPaused,[!0],a)};c.prototype.tick=function(a){this.paused||this.setPosition(this._prevPosition+a)};c.NONE=0;c.LOOP=1;c.REVERSE=2;c._tweens=[];c.IGNORE={};c._plugins={};c._inited=!1;return c}(d.EventDispatcher);d.Tween=e;e.prototype.__class__="egret.Tween"})(egret|| (egret={})); (function(d){var e=function(){function e(){d.Logger.fatal("Ease\u4e0d\u80fd\u88ab\u5b9e\u4f8b\u5316")}e.get=function(c){-1>c&&(c=-1);1c?a*(a*-c+1+c):a*((2-a)*c+(1-c))}};e.getPowIn=function(c){return function(a){return Math.pow(a,c)}};e.getPowOut=function(c){return function(a){return 1-Math.pow(1-a,c)}};e.getPowInOut=function(c){return function(a){return 1>(a*=2)?0.5*Math.pow(a,c):1-0.5*Math.abs(Math.pow(2-a,c))}};e.sineIn=function(c){return 1-Math.cos(c* Math.PI/2)};e.sineOut=function(c){return Math.sin(c*Math.PI/2)};e.sineInOut=function(c){return-0.5*(Math.cos(Math.PI*c)-1)};e.getBackIn=function(c){return function(a){return a*a*((c+1)*a-c)}};e.getBackOut=function(c){return function(a){a-=1;return a*a*((c+1)*a+c)+1}};e.getBackInOut=function(c){c*=1.525;return function(a){return 1>(a*=2)?0.5*a*a*((c+1)*a-c):0.5*((a-=2)*a*((c+1)*a+c)+2)}};e.circIn=function(c){return-(Math.sqrt(1-c*c)-1)};e.circOut=function(c){return Math.sqrt(1-c*c)};e.circInOut=function(c){return 1> (c*=2)?-0.5*(Math.sqrt(1-c*c)-1):0.5*(Math.sqrt(1-(c-=2)*c)+1)};e.bounceIn=function(c){return 1-e.bounceOut(1-c)};e.bounceOut=function(c){return c<1/2.75?7.5625*c*c:c<2/2.75?7.5625*(c-=1.5/2.75)*c+0.75:c<2.5/2.75?7.5625*(c-=2.25/2.75)*c+0.9375:7.5625*(c-=2.625/2.75)*c+0.984375};e.bounceInOut=function(c){return 0.5>c?0.5*e.bounceIn(2*c):0.5*e.bounceOut(2*c-1)+0.5};e.getElasticIn=function(c,a){var b=2*Math.PI;return function(g){if(0==g||1==g)return g;var d=a/b*Math.asin(1/c);return-(c*Math.pow(2,10* (g-=1))*Math.sin((g-d)*b/a))}};e.getElasticOut=function(c,a){var b=2*Math.PI;return function(g){if(0==g||1==g)return g;var d=a/b*Math.asin(1/c);return c*Math.pow(2,-10*g)*Math.sin((g-d)*b/a)+1}};e.getElasticInOut=function(c,a){var b=2*Math.PI;return function(g){var d=a/b*Math.asin(1/c);return 1>(g*=2)?-0.5*c*Math.pow(2,10*(g-=1))*Math.sin((g-d)*b/a):c*Math.pow(2,-10*(g-=1))*Math.sin((g-d)*b/a)*0.5+1}};e.quadIn=e.getPowIn(2);e.quadOut=e.getPowOut(2);e.quadInOut=e.getPowInOut(2);e.cubicIn=e.getPowIn(3); e.cubicOut=e.getPowOut(3);e.cubicInOut=e.getPowInOut(3);e.quartIn=e.getPowIn(4);e.quartOut=e.getPowOut(4);e.quartInOut=e.getPowInOut(4);e.quintIn=e.getPowIn(5);e.quintOut=e.getPowOut(5);e.quintInOut=e.getPowInOut(5);e.backIn=e.getBackIn(1.7);e.backOut=e.getBackOut(1.7);e.backInOut=e.getBackInOut(1.7);e.elasticIn=e.getElasticIn(1,0.3);e.elasticOut=e.getElasticOut(1,0.3);e.elasticInOut=e.getElasticInOut(1,0.3*1.5);return e}();d.Ease=e;e.prototype.__class__="egret.Ease"})(egret||(egret={})); (function(d){var e=function(){function d(){}d.prototype.play=function(c){"undefined"===typeof c&&(c=!1);var a=this.audio;a&&(isNaN(a.duration)||(a.currentTime=0),a.loop=c,a.play())};d.prototype.pause=function(){var c=this.audio;c&&c.pause()};d.prototype.load=function(){var c=this.audio;c&&c.load()};d.prototype.addEventListener=function(c,a){this.audio&&this.audio.addEventListener(c,a,!1)};d.prototype.removeEventListener=function(c,a){this.audio&&this.audio.removeEventListener(c,a,!1)};d.prototype.setVolume= function(c){var a=this.audio;a&&(a.volume=c)};d.prototype.getVolume=function(){return this.audio?this.audio.volume:0};return d}();d.Sound=e;e.prototype.__class__="egret.Sound"})(egret||(egret={}));__extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){(function(e){var f=function(c){function a(b){"undefined"===typeof b&&(b=null);c.call(this);this._source=b?b:[]}__extends(a,c);Object.defineProperty(a.prototype,"source",{get:function(){return this._source},set:function(b){b||(b=[]);this._source=b;this.dispatchCoEvent(e.CollectionEventKind.RESET)},enumerable:!0,configurable:!0});a.prototype.refresh=function(){this.dispatchCoEvent(e.CollectionEventKind.REFRESH)};a.prototype.contains=function(b){return-1!=this.getItemIndex(b)};a.prototype.checkIndex= function(b){if(0>b||b>=this._source.length)throw new RangeError('\u7d22\u5f15:"'+b+'"\u8d85\u51fa\u96c6\u5408\u5143\u7d20\u7d22\u5f15\u8303\u56f4');};Object.defineProperty(a.prototype,"length",{get:function(){return this._source.length},enumerable:!0,configurable:!0});a.prototype.addItem=function(b){this._source.push(b);this.dispatchCoEvent(e.CollectionEventKind.ADD,this._source.length-1,-1,[b])};a.prototype.addItemAt=function(b,a){if(0>a||a>this._source.length)throw new RangeError('\u7d22\u5f15:"'+ a+'"\u8d85\u51fa\u96c6\u5408\u5143\u7d20\u7d22\u5f15\u8303\u56f4');this._source.splice(a,0,b);this.dispatchCoEvent(e.CollectionEventKind.ADD,a,-1,[b])};a.prototype.getItemAt=function(b){return this._source[b]};a.prototype.getItemIndex=function(b){for(var a=this._source.length,c=0;c=c?this.addItemAt(b[d],d):this.replaceItemAt(b[d],d);this._source=b};a.prototype.moveItemAt=function(b,a){this.checkIndex(b);this.checkIndex(a);var c=this._source.splice(b,1)[0];this._source.splice(a,0,c);this.dispatchCoEvent(e.CollectionEventKind.MOVE,a,b,[c]);return c};a.prototype.dispatchCoEvent=function(b,a,c,d,f){"undefined"===typeof b&&(b=null);"undefined"===typeof a&&(a=-1);"undefined"===typeof c&&(c=-1);"undefined"===typeof d&&(d=null);"undefined"=== typeof f&&(f=null);e.CollectionEvent.dispatchCollectionEvent(this,e.CollectionEvent.COLLECTION_CHANGE,b,a,c,d,f)};return a}(d.EventDispatcher);e.ArrayCollection=f;f.prototype.__class__="egret.gui.ArrayCollection"})(d.gui||(d.gui={}))})(egret||(egret={}));__extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){(function(e){var f=function(c){function a(b,a){"undefined"===typeof b&&(b="children");"undefined"===typeof a&&(a="parent");c.call(this);this.nodeList=[];this._openNodes=[];this._showRoot=!1;this.childrenKey=b;this.parentKey=a}__extends(a,c);Object.defineProperty(a.prototype,"source",{get:function(){return this._source},set:function(b){this._source=b;this._openNodes=[];this.nodeList=[];this._source&&(this._showRoot?this.nodeList.push(this._source):(this._openNodes=[this._source],this.addChildren(this._source, this.nodeList)));this.dispatchCoEvent(e.CollectionEventKind.RESET)},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"openNodes",{get:function(){return this._openNodes.concat()},set:function(b){this._openNodes=b?b.concat():[];this.refresh()},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"length",{get:function(){return this.nodeList.length},enumerable:!0,configurable:!0});a.prototype.getItemAt=function(b){return this.nodeList[b]};a.prototype.getItemIndex=function(b){for(var a= this.nodeList.length,c=0;cb++;)this.doPhasedInstantiationCallBack()};a.prototype.validateClient=function(b,a){"undefined"===typeof a&&(a=!1);var c, d=!1,f=this.targetLevel;this.targetLevel==Number.MAX_VALUE&&(this.targetLevel=b.nestLevel);for(;!d;){d=!0;for(c=this.invalidatePropertiesQueue.removeSmallestChild(b);c;)c.parent&&(c.validateProperties(),c.updateCompletePendingFlag||(this.updateCompleteQueue.insert(c),c.updateCompletePendingFlag=!0)),c=this.invalidatePropertiesQueue.removeSmallestChild(b);this.invalidatePropertiesQueue.isEmpty()&&(this.invalidatePropertiesFlag=!1);this.invalidateClientPropertiesFlag=!1;for(c=this.invalidateSizeQueue.removeLargestChild(b);c;){c.parent&& (c.validateSize(),c.updateCompletePendingFlag||(this.updateCompleteQueue.insert(c),c.updateCompletePendingFlag=!0));if(this.invalidateClientPropertiesFlag&&(c=this.invalidatePropertiesQueue.removeSmallestChild(b))){this.invalidatePropertiesQueue.insert(c);d=!1;break}c=this.invalidateSizeQueue.removeLargestChild(b)}this.invalidateSizeQueue.isEmpty()&&(this.invalidateSizeFlag=!1);this.invalidateClientSizeFlag=this.invalidateClientPropertiesFlag=!1;if(!a){for(c=this.invalidateDisplayListQueue.removeSmallestChild(b);c;){c.parent&& (c.validateDisplayList(),c.updateCompletePendingFlag||(this.updateCompleteQueue.insert(c),c.updateCompletePendingFlag=!0));if(this.invalidateClientPropertiesFlag&&(c=this.invalidatePropertiesQueue.removeSmallestChild(b))){this.invalidatePropertiesQueue.insert(c);d=!1;break}if(this.invalidateClientSizeFlag&&(c=this.invalidateSizeQueue.removeLargestChild(b))){this.invalidateSizeQueue.insert(c);d=!1;break}c=this.invalidateDisplayListQueue.removeSmallestChild(b)}this.invalidateDisplayListQueue.isEmpty()&& (this.invalidateDisplayListFlag=!1)}}if(f==Number.MAX_VALUE&&(this.targetLevel=Number.MAX_VALUE,!a))for(c=this.updateCompleteQueue.removeLargestChild(b);c;)c.initialized||(c.initialized=!0),c.hasEventListener(e.UIEvent.UPDATE_COMPLETE)&&e.UIEvent.dispatchUIEvent(c,e.UIEvent.UPDATE_COMPLETE),c.updateCompletePendingFlag=!1,c=this.updateCompleteQueue.removeLargestChild(b)};return a}(d.EventDispatcher);e.LayoutManager=f;f.prototype.__class__="egret.gui.LayoutManager"})(d.gui||(d.gui={}))})(egret||(egret= {})); (function(d){(function(e){var f=function(){function a(){this.depthBins=[];this.minDepth=0;this.maxDepth=-1}a.prototype.insert=function(b){var a=b.nestLevel,d=b.hashCode;this.maxDepththis.maxDepth&&(this.maxDepth=a));var e=this.depthBins[a];e?null==e.items[d]&&(e.items[d]=b,e.length++):(e=new c,this.depthBins[a]=e,e.items[d]=b,e.length++)};a.prototype.pop=function(){var b=null;if(this.minDepth<=this.maxDepth){for(var a=this.depthBins[this.maxDepth];!a|| 0==a.length;){this.maxDepth--;if(this.maxDepththis.maxDepth)return null;a=this.depthBins[this.minDepth]}var c= a.items,d;for(d in c){b=c[d];this.remove(b,this.minDepth);break}for(;!a||0==a.length;){this.minDepth++;if(this.minDepth>this.maxDepth)break;a=this.depthBins[this.minDepth]}}return b};a.prototype.removeLargestChild=function(b){for(var a=this.maxDepth,c=b.nestLevel,e=b.hashCode;c<=a;){var f=this.depthBins[a];if(f&&0this.maxDepth)break}return null};a.prototype.remove=function(b,a){"undefined"===typeof a&&(a=-1);var c=b.hashCode,d=this.depthBins[0<=a?a:b.nestLevel];return d&&null!=d.items[c]?(delete d.items[c],d.length--,b):null};a.prototype.removeAll=function(){this.minDepth=this.depthBins.length=0;this.maxDepth=-1};a.prototype.isEmpty=function(){return this.minDepth>this.maxDepth};return a}();e.DepthQueue=f;f.prototype.__class__="egret.gui.DepthQueue";var c=function(){return function(){this.length=0;this.items= []}}();e.DepthBin=c;c.prototype.__class__="egret.gui.DepthBin"})(d.gui||(d.gui={}))})(egret||(egret={})); (function(d){(function(d){var f=function(){function c(){}Object.defineProperty(c,"stage",{get:function(){return c._stage},enumerable:!0,configurable:!0});c._initlize=function(a){c.initlized||(c._stage=a,c._layoutManager=new d.LayoutManager,c.initlized=!0)};Object.defineProperty(c,"uiStage",{get:function(){return c._uiStage},enumerable:!0,configurable:!0});c.initlized=!1;return c}();d.UIGlobals=f;f.prototype.__class__="egret.gui.UIGlobals"})(d.gui||(d.gui={}))})(egret||(egret={})); __extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){(function(e){var f=function(c){function a(){c.call(this);this.initializeCalled=this._initialized=this._updateCompletePendingFlag=!1;this._nestLevel=0;this._enabled=!0;this._minWidth=this._height=this._width=0;this._maxWidth=1E4;this._minHeight=0;this._maxHeight=1E4;this._measuredHeight=this._measuredWidth=0;this._validateNowFlag=this._invalidateDisplayListFlag=this._invalidateSizeFlag=this._invalidatePropertiesFlag=!1;this._includeInLayout=!0;this._layoutHeightExplicitlySet=this._layoutWidthExplicitlySet= !1;this.touchEnabled=!0;this.addEventListener(d.Event.ADDED_TO_STAGE,this.onAddedToStage,this);this.addEventListener(d.Event.ADDED_TO_STAGE,this.checkInvalidateFlag,this)}__extends(a,c);a.prototype.onAddedToStage=function(b){this.removeEventListener(d.Event.ADDED_TO_STAGE,this.onAddedToStage,this);this._initialize();e.UIGlobals._initlize(this.stage);0this.maxWidth&&(this.measuredWidth=this.maxWidth),this.measuredHeightthis.maxHeight&&(this.measuredHeight= this.maxHeight));if(isNaN(this._oldPreferWidth))this._oldPreferWidth=this.preferredWidth,this._oldPreferHeight=this.preferredHeight,b=!0;else{if(this.preferredWidth!=this._oldPreferWidth||this.preferredHeight!=this._oldPreferHeight)b=!0;this._oldPreferWidth=this.preferredWidth;this._oldPreferHeight=this.preferredHeight}return b};a.prototype.invalidateDisplayList=function(){this._invalidateDisplayListFlag||(this._invalidateDisplayListFlag=!0,this.parent&&e.UIGlobals._layoutManager&&e.UIGlobals._layoutManager.invalidateDisplayList(this))}; a.prototype.validateDisplayList=function(){if(this._invalidateDisplayListFlag){var b=0,a=0,b=this._layoutWidthExplicitlySet?this._width:isNaN(this.explicitWidth)?this.measuredWidth:this._explicitWidth,a=this._layoutHeightExplicitlySet?this._height:isNaN(this.explicitHeight)?this.measuredHeight:this._explicitHeight;isNaN(b)&&(b=0);isNaN(a)&&(a=0);this.setActualSize(b,a);this.updateDisplayList(b,a);this._invalidateDisplayListFlag=!1}};a.prototype.validateNow=function(b){"undefined"===typeof b&&(b=!1); this._validateNowFlag||null==e.UIGlobals._layoutManager?this._validateNowFlag=!0:e.UIGlobals._layoutManager.validateClient(this,b)};a.prototype.invalidateParentSizeAndDisplayList=function(){if(this.parent&&this._includeInLayout&&"invalidateSize"in this.parent){var b=this.parent;b.invalidateSize();b.invalidateDisplayList()}};a.prototype.updateDisplayList=function(b,a){};a.prototype.canSkipMeasurement=function(){return!isNaN(this._explicitWidth)&&!isNaN(this._explicitHeight)};a.prototype.commitProperties= function(){this.oldWidth==this._width&&this.oldHeight==this._height||this.dispatchResizeEvent();this.oldX==this.x&&this.oldY==this.y||this.dispatchMoveEvent()};a.prototype.measure=function(){this._measuredWidth=this._measuredHeight=0};a.prototype.dispatchMoveEvent=function(){this.hasEventListener(e.MoveEvent.MOVE)&&e.MoveEvent.dispatchMoveEvent(this,this.oldX,this.oldY);this.oldX=this.x;this.oldY=this.y};a.prototype._childXYChanged=function(){};a.prototype.dispatchResizeEvent=function(){this.hasEventListener(e.ResizeEvent.RESIZE)&& e.ResizeEvent.dispatchResizeEvent(this,this.oldWidth,this.oldHeight);this.oldWidth=this._width;this.oldHeight=this._height};Object.defineProperty(a.prototype,"includeInLayout",{get:function(){return this._includeInLayout},set:function(b){this._includeInLayout!=b&&(this._includeInLayout=!0,this.invalidateParentSizeAndDisplayList(),this._includeInLayout=b)},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"left",{get:function(){return this._left},set:function(b){this._left!=b&&(this._left= b,this.invalidateParentSizeAndDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"right",{get:function(){return this._right},set:function(b){this._right!=b&&(this._right=b,this.invalidateParentSizeAndDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"top",{get:function(){return this._top},set:function(b){this._top!=b&&(this._top=b,this.invalidateParentSizeAndDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype, "bottom",{get:function(){return this._bottom},set:function(b){this._bottom!=b&&(this._bottom=b,this.invalidateParentSizeAndDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"horizontalCenter",{get:function(){return this._horizontalCenter},set:function(b){this._horizontalCenter!=b&&(this._horizontalCenter=b,this.invalidateParentSizeAndDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"verticalCenter",{get:function(){return this._verticalCenter}, set:function(b){this._verticalCenter!=b&&(this._verticalCenter=b,this.invalidateParentSizeAndDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"percentWidth",{get:function(){return this._percentWidth},set:function(b){this._percentWidth!=b&&(this._percentWidth=b,this.invalidateParentSizeAndDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"percentHeight",{get:function(){return this._percentHeight},set:function(b){this._percentHeight!= b&&(this._percentHeight=b,this.invalidateParentSizeAndDisplayList())},enumerable:!0,configurable:!0});a.prototype.setLayoutBoundsSize=function(b,a){isNaN(b)?(this._layoutWidthExplicitlySet=!1,b=this.preferredWidth):this._layoutWidthExplicitlySet=!0;isNaN(a)?(this._layoutHeightExplicitlySet=!1,a=this.preferredHeight):this._layoutHeightExplicitlySet=!0;this.setActualSize(b/this._scaleX,a/this._scaleY)};a.prototype.setLayoutBoundsPosition=function(b,a){0>this._scaleX&&(b+=this.layoutBoundsWidth);0>this._scaleY&& (a+=this.layoutBoundsHeight);var c=!1;this._x!=b&&(this._x=b,c=!0);this._y!=a&&(this._y=a,c=!0);c&&this.dispatchMoveEvent()};Object.defineProperty(a.prototype,"preferredWidth",{get:function(){var b=this._hasWidthSet?this._explicitWidth:this._measuredWidth,a=this._scaleX;0>a&&(a=-a);return b*a},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"preferredHeight",{get:function(){var b=this._hasHeightSet?this._explicitHeight:this._measuredHeight,a=this._scaleY;0>a&&(a=-a);return b*a}, enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"preferredX",{get:function(){return 0<=this._scaleX?this._x:this._x-this.preferredWidth},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"preferredY",{get:function(){return 0<=this._scaleY?this._y:this._y-this.preferredHeight},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"layoutBoundsX",{get:function(){return 0<=this._scaleX?this._x:this._x-this.layoutBoundsWidth},enumerable:!0,configurable:!0}); Object.defineProperty(a.prototype,"layoutBoundsY",{get:function(){return 0<=this._scaleY?this._y:this._y-this.layoutBoundsHeight},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"layoutBoundsWidth",{get:function(){var b=0,b=this._layoutWidthExplicitlySet?this._width:this._hasWidthSet?this._explicitWidth:this._measuredWidth,a=this._scaleX;0>a&&(a=-a);return b*a},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"layoutBoundsHeight",{get:function(){var b=0,b=this._layoutHeightExplicitlySet? this._height:this._hasHeightSet?this._explicitHeight:this._measuredHeight,a=this.scaleY;0>a&&(a=-a);return b*a},enumerable:!0,configurable:!0});return a}(d.DisplayObjectContainer);e.UIComponent=f;f.prototype.__class__="egret.gui.UIComponent"})(d.gui||(d.gui={}))})(egret||(egret={})); (function(d){(function(d){var f=function(){function c(){}c.ABOVE="above";c.BELOW="below";c.CENTER="center";c.TOP_LEFT="topLeft";c.LEFT="left";c.RIGHT="right";return c}();d.PopUpPosition=f;f.prototype.__class__="egret.gui.PopUpPosition"})(d.gui||(d.gui={}))})(egret||(egret={}));(function(d){(function(d){var f=function(){function c(){}c.AUTO="auto";c.OFF="off";c.ON="on";return c}();d.ScrollPolicy=f;f.prototype.__class__="egret.gui.ScrollPolicy"})(d.gui||(d.gui={}))})(egret||(egret={})); __extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f};(function(d){(function(e){var f=function(c){function a(b){"undefined"===typeof b&&(b=null);c.call(this);this.generator=b}__extends(a,c);a.prototype.newInstance=function(){return new this.generator};return a}(d.HashObject);e.ClassFactory=f;f.prototype.__class__="egret.gui.ClassFactory"})(d.gui||(d.gui={}))})(egret||(egret={})); __extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){(function(e){var f=function(c){function a(){c.call(this)}__extends(a,c);a.prototype.initialize=function(b){};a.prototype.apply=function(b){};a.prototype.remove=function(b){};a.prototype.initializeFromObject=function(b){for(var a in b)this[a]=b[a];return this};return a}(d.HashObject);e.OverrideBase=f;f.prototype.__class__="egret.gui.OverrideBase"})(d.gui||(d.gui={}))})(egret||(egret={})); __extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){(function(d){var f=function(c){function a(b,d,e,f){c.call(this);this.propertyName="";this.position=a.LAST;this.target=b;this.propertyName=d;this.position=e;this.relativeTo=f}__extends(a,c);a.prototype.initialize=function(b){if((b=b[this.target])&&!(b instanceof d.SkinnableComponent)&&"_initialize"in b)try{b._initialize()}catch(a){}};a.prototype.apply=function(b){var c,d;try{d=b[this.relativeTo]}catch(e){}var f=b[this.target];b=this.propertyName?b[this.propertyName]:b;if(f&&b){switch(this.position){case a.FIRST:c= 0;break;case a.LAST:c=-1;break;case a.BEFORE:c=b.getElementIndex(d);break;case a.AFTER:c=b.getElementIndex(d)+1}-1==c&&(c=b.numElements);b.addElementAt(f,c)}};a.prototype.remove=function(b){var a=null==this.propertyName||""==this.propertyName?b:b[this.propertyName];(b=b[this.target])&&a&&-1!=a.getElementIndex(b)&&a.removeElement(b)};a.FIRST="first";a.LAST="last";a.BEFORE="before";a.AFTER="after";return a}(d.OverrideBase);d.AddItems=f;f.prototype.__class__="egret.gui.AddItems"})(d.gui||(d.gui={}))})(egret|| (egret={}));__extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){(function(d){var f=function(c){function a(b,a,d){c.call(this);this.target=b;this.name=a;this.value=d}__extends(a,c);a.prototype.apply=function(b){b=null==this.target||""==this.target?b:b[this.target];null!=b&&(this.oldValue=b[this.name],this.setPropertyValue(b,this.name,this.value,this.oldValue))};a.prototype.remove=function(b){b=null==this.target||""==this.target?b:b[this.target];null!=b&&(this.setPropertyValue(b,this.name,this.oldValue,this.oldValue),this.oldValue=null)};a.prototype.setPropertyValue= function(b,a,c,d){b[a]=void 0===c||null===c?c:"boolean"==typeof d?this.toBoolean(c):c};a.prototype.toBoolean=function(b){return"string"==typeof b?"true"==b.toLowerCase():!1!=b};return a}(d.OverrideBase);d.SetProperty=f;f.prototype.__class__="egret.gui.SetProperty"})(d.gui||(d.gui={}))})(egret||(egret={}));__extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){(function(e){var f=function(c){function a(b,a){c.call(this);this.initialized=!1;this.name=b;this.overrides=a}__extends(a,c);a.prototype.initialize=function(b){if(!this.initialized){this.initialized=!0;for(var a=0;ab.right&&(b.right=l+e);a+f>b.bottom&&(b.bottom=a+f)}return b};a.prototype.addChild=function(b){throw Error("addChild()"+a.errorStr+"addElement()\u4ee3\u66ff");};a.prototype.addChildAt=function(b,c){throw Error("addChildAt()"+a.errorStr+"addElementAt()\u4ee3\u66ff"); };a.prototype.removeChild=function(b){throw Error("removeChild()"+a.errorStr+"removeElement()\u4ee3\u66ff");};a.prototype.removeChildAt=function(b){throw Error("removeChildAt()"+a.errorStr+"removeElementAt()\u4ee3\u66ff");};a.prototype.setChildIndex=function(b,c){throw Error("setChildIndex()"+a.errorStr+"setElementIndex()\u4ee3\u66ff");};a.prototype.swapChildren=function(b,c){throw Error("swapChildren()"+a.errorStr+"swapElements()\u4ee3\u66ff");};a.prototype.swapChildrenAt=function(b,c){throw Error("swapChildrenAt()"+ a.errorStr+"swapElementsAt()\u4ee3\u66ff");};a.errorStr="\u5728\u6b64\u7ec4\u4ef6\u4e2d\u4e0d\u53ef\u7528\uff0c\u82e5\u6b64\u7ec4\u4ef6\u4e3a\u5bb9\u5668\u7c7b\uff0c\u8bf7\u4f7f\u7528";return a}(e.UIComponent);e.UIAsset=f;f.prototype.__class__="egret.gui.UIAsset"})(d.gui||(d.gui={}))})(egret||(egret={}));__extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){(function(e){var f=function(c){function a(){c.call(this);this.hostComponentKey="egret.gui.SkinnableComponent";this.stateIsDirty=this.createChildrenCalled=this._skinNameExplicitlySet=!1;this.explicitMouseEnabled=this.explicitMouseChildren=this._autoMouseEnabled=!0}__extends(a,c);Object.defineProperty(a.prototype,"skinName",{get:function(){return this._skinName},set:function(b){this._skinName!=b&&(this._skinName=b,this._skinNameExplicitlySet=!0,this.createChildrenCalled&&this.parseSkinName())}, enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"skin",{get:function(){return this._skin},enumerable:!0,configurable:!0});a.prototype.createChildren=function(){c.prototype.createChildren.call(this);this.parseSkinName();this.createChildrenCalled=!0};a.prototype.parseSkinName=function(){var b=a.skinAdapter;b||(b=this.getSkinAdapter());var b=b.getSkin(this._skinName,this.hostComponentKey),c=this._skin;this.detachSkin(c);c instanceof d.DisplayObject&&this._removeFromDisplayList(c);this._skin= b;b instanceof d.DisplayObject&&this._addToDisplayListAt(this._skin,0);this.attachSkin(b);this.invalidateSkinState();this.invalidateSize();this.invalidateDisplayList();this.hasEventListener(e.UIEvent.SKIN_CHANGED)&&e.UIEvent.dispatchUIEvent(this,e.UIEvent.SKIN_CHANGED)};a.prototype.getSkinAdapter=function(){var b;try{b=d.Injector.getInstance("egret.gui.ISkinAdapter")}catch(c){b=new e.DefaultSkinAdapter}return a.skinAdapter=b};a.prototype.attachSkin=function(b){b&&"hostComponent"in b&&(b.hostComponent= this,this.findSkinParts());b&&"hostComponent"in b&&b instanceof d.DisplayObject?this._setSkinLayoutEnabled(!1):this._setSkinLayoutEnabled(!0)};a.prototype.findSkinParts=function(){var b=this._skin;if(b&&"skinParts"in b)for(var a=b.skinParts,c=a.length,d=0;db.maxWidth&&(a=b.maxWidth),b.hasOwnProperty("minHeight")&&eb.maxHeight&& (e=b.maxHeight),this.measuredWidth=a,this.measuredHeight=e}catch(f){}}}};a.prototype.updateDisplayList=function(b,a){c.prototype.updateDisplayList.call(this,b,a);var e=this._skin;e&&("setLayoutBoundsSize"in e?e.setLayoutBoundsSize(b,a):e instanceof d.DisplayObject&&(e.scaleX=0==e.width?1:b/e.width,e.scaleY=0==e.height?1:a/e.height));this.skinLayout&&this.skinLayout.updateDisplayList(b,a)};a.prototype.addChild=function(b){throw Error("addChild()"+a.errorStr+"addElement()\u4ee3\u66ff");};a.prototype.addChildAt= function(b,c){throw Error("addChildAt()"+a.errorStr+"addElementAt()\u4ee3\u66ff");};a.prototype.removeChild=function(b){throw Error("removeChild()"+a.errorStr+"removeElement()\u4ee3\u66ff");};a.prototype.removeChildAt=function(b){throw Error("removeChildAt()"+a.errorStr+"removeElementAt()\u4ee3\u66ff");};a.prototype.setChildIndex=function(b,c){throw Error("setChildIndex()"+a.errorStr+"setElementIndex()\u4ee3\u66ff");};a.prototype.swapChildren=function(b,c){throw Error("swapChildren()"+a.errorStr+ "swapElements()\u4ee3\u66ff");};a.prototype.swapChildrenAt=function(b,c){throw Error("swapChildrenAt()"+a.errorStr+"swapElementsAt()\u4ee3\u66ff");};a.errorStr="\u5728\u6b64\u7ec4\u4ef6\u4e2d\u4e0d\u53ef\u7528\uff0c\u82e5\u6b64\u7ec4\u4ef6\u4e3a\u5bb9\u5668\u7c7b\uff0c\u8bf7\u4f7f\u7528";return a}(e.UIComponent);e.SkinnableComponent=f;f.prototype.__class__="egret.gui.SkinnableComponent"})(d.gui||(d.gui={}))})(egret||(egret={})); (function(d){(function(e){var f=function(){function c(){}c.prototype.getSkin=function(a,b){if(!a)return null;if(a.prototype)return new a;if("string"==typeof a){var c=d.getDefinitionByName(a);return c?new c:null}return a};return c}();e.DefaultSkinAdapter=f;f.prototype.__class__="egret.gui.DefaultSkinAdapter"})(d.gui||(d.gui={}))})(egret||(egret={})); (function(d){(function(e){var f=function(){function c(){}c.prototype.getAsset=function(a,b,c,e){var f=a;a.prototype&&(f=new a);if(f instanceof d.DisplayObject||f instanceof d.Texture)b.call(c,f,a);else if("string"==typeof a){var l=new d.URLLoader;l.dataFormat=d.URLLoaderDataFormat.TEXTURE;l.addEventListener(d.Event.COMPLETE,function(d){f=l.data;b.call(c,f,a)},this);l.load(new d.URLRequest(a))}else b.call(c,f,a)};return c}();e.DefaultAssetAdapter=f;f.prototype.__class__="egret.gui.DefaultAssetAdapter"})(d.gui|| (d.gui={}))})(egret||(egret={}));__extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){(function(e){var f=function(c){function a(){c.call(this)}__extends(a,c);Object.defineProperty(a.prototype,"target",{get:function(){return this._target},set:function(b){this._target=b},enumerable:!0,configurable:!0});a.prototype.measure=function(){if(null!=this.target){for(var b=0,a=0,c=this._target.skin,d=this.target.numChildren,e=0;e a)return!1;this._isPlaying||(this._isPlaying=!0,0==this.playedTimes&&null!=this.startFunction&&this.startFunction.call(this.thisObject,this));var b=0==this._duration?1:Math.min(a,this._duration)/this._duration;this.caculateCurrentValue(b);null!=this.updateFunction&&this.updateFunction.call(this.thisObject,this);if(a=a>=this._duration)this.playedTimes++,this._isPlaying=!1,this.startTime=c.currentTime,0==this._repeatCount||this.playedTimesthis.maximum&&(this.maxChanged?this._maximum=this._minimum:this._minimum=this._maximum);if(this.valueChanged||this.maxChanged||this.minChanged|| this.snapIntervalChanged){var b=this.valueChanged?this._changedValue:this._value;this.snapIntervalChanged=this.minChanged=this.maxChanged=this.valueChanged=!1;this.setValue(this.nearestValidValue(b,this.snapInterval))}this.stepSizeChanged&&(this._explicitSnapInterval?this._stepSize=this.nearestValidSize(this._stepSize):(this._snapInterval=this._stepSize,this.setValue(this.nearestValidValue(this._value,this.snapInterval))),this.stepSizeChanged=!1)};a.prototype.nearestValidSize=function(b){var a=this.snapInterval; if(0==a)return b;b=Math.round(b/a)*a;return Math.abs(b)=(c-e)/2?c:e)/d+this.minimum};a.prototype.setValue=function(b){this._value!=b&& (isNaN(b)&&(b=0),!isNaN(this.maximum)&&!isNaN(this.minimum)&&this.maximum>this.minimum?this._value=Math.min(this.maximum,Math.max(this.minimum,b)):this._value=b,this.valueChanged=!1)};a.prototype.changeValueByStep=function(b){"undefined"===typeof b&&(b=!0);0!=this.stepSize&&this.setValue(this.nearestValidValue(b?this.value+this.stepSize:this.value-this.stepSize,this.snapInterval))};return a}(d.SkinnableComponent);d.Range=f;f.prototype.__class__="egret.gui.Range"})(d.gui||(d.gui={}))})(egret||(egret= {}));__extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){(function(e){var f=function(c){function a(){c.call(this);this._slideDuration=300;this.needUpdateValue=!1;this.addEventListener(d.Event.ADDED_TO_STAGE,this.addedToStageHandler,this);this.addEventListener(d.TouchEvent.TOUCH_BEGIN,this.mouseDownHandler,this)}__extends(a,c);Object.defineProperty(a.prototype,"slideDuration",{get:function(){return this._slideDuration},set:function(b){this._slideDuration=b},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"maximum",{get:function(){return this._maximum}, set:function(b){b!=this._maximum&&(this._setMaximun(b),this.invalidateDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"minimum",{get:function(){return this._minimum},set:function(b){b!=this._minimum&&(this._setMinimun(b),this.invalidateDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"value",{get:function(){return this._getValue()},set:function(b){b!=this._getValue()&&(this._setValue(b),this.invalidateDisplayList())},enumerable:!0, configurable:!0});a.prototype.setValue=function(b){c.prototype.setValue.call(this,b);this.invalidateDisplayList()};a.prototype.pointToValue=function(b,a){return this.minimum};a.prototype.changeValueByStep=function(b){"undefined"===typeof b&&(b=!0);var a=this.value;c.prototype.changeValueByStep.call(this,b);this.value!=a&&this.dispatchEventWith(d.Event.CHANGE)};a.prototype.partAdded=function(b,a){c.prototype.partAdded.call(this,b,a);a==this.thumb?(this.thumb.addEventListener(d.TouchEvent.TOUCH_BEGIN, this.thumb_mouseDownHandler,this),this.thumb.addEventListener(e.ResizeEvent.RESIZE,this.thumb_resizeHandler,this),this.thumb.addEventListener(e.UIEvent.UPDATE_COMPLETE,this.thumb_updateCompleteHandler,this),this.thumb.stickyHighlighting=!0):a==this.track&&(this.track.addEventListener(d.TouchEvent.TOUCH_BEGIN,this.track_mouseDownHandler,this),this.track.addEventListener(e.ResizeEvent.RESIZE,this.track_resizeHandler,this))};a.prototype.partRemoved=function(b,a){c.prototype.partRemoved.call(this,b,a); a==this.thumb?(this.thumb.removeEventListener(d.TouchEvent.TOUCH_BEGIN,this.thumb_mouseDownHandler,this),this.thumb.removeEventListener(e.ResizeEvent.RESIZE,this.thumb_resizeHandler,this),this.thumb.removeEventListener(e.UIEvent.UPDATE_COMPLETE,this.thumb_updateCompleteHandler,this)):a==this.track&&(this.track.removeEventListener(d.TouchEvent.TOUCH_BEGIN,this.track_mouseDownHandler,this),this.track.removeEventListener(e.ResizeEvent.RESIZE,this.track_resizeHandler,this))};a.prototype.updateDisplayList= function(b,a){c.prototype.updateDisplayList.call(this,b,a);this.updateSkinDisplayList()};a.prototype.updateSkinDisplayList=function(){};a.prototype.addedToStageHandler=function(b){this.updateSkinDisplayList()};a.prototype.track_resizeHandler=function(b){this.updateSkinDisplayList()};a.prototype.thumb_resizeHandler=function(b){this.updateSkinDisplayList()};a.prototype.thumb_updateCompleteHandler=function(b){this.updateSkinDisplayList();this.thumb.removeEventListener(e.UIEvent.UPDATE_COMPLETE,this.thumb_updateCompleteHandler, this)};a.prototype.thumb_mouseDownHandler=function(b){e.UIGlobals.stage.addEventListener(d.TouchEvent.TOUCH_MOVE,this.stage_mouseMoveHandler,this);e.UIGlobals.stage.addEventListener(d.TouchEvent.TOUCH_END,this.stage_mouseUpHandler,this);e.UIGlobals.stage.addEventListener(d.Event.LEAVE_STAGE,this.stage_mouseUpHandler,this);this.addEventListener(d.Event.ENTER_FRAME,this.onEnterFrame,this);b=this.thumb.globalToLocal(b.stageX,b.stageY,d.Point.identity);this._clickOffsetX=b.x;this._clickOffsetY=b.y;e.TrackBaseEvent.dispatchTrackBaseEvent(this, e.TrackBaseEvent.THUMB_PRESS);e.UIEvent.dispatchUIEvent(this,e.UIEvent.CHANGE_START)};a.prototype.onEnterFrame=function(b){this.needUpdateValue&&this.track&&(this.updateWhenMouseMove(),this.needUpdateValue=!1)};a.prototype.updateWhenMouseMove=function(){if(this.track){var b=this.track.globalToLocal(this._moveStageX,this._moveStageY,d.Point.identity),b=this.pointToValue(b.x-this._clickOffsetX,b.y-this._clickOffsetY),b=this.nearestValidValue(b,this.snapInterval);b!=this.value&&(this.setValue(b),this.validateDisplayList(), e.TrackBaseEvent.dispatchTrackBaseEvent(this,e.TrackBaseEvent.THUMB_DRAG),this.dispatchEventWith(d.Event.CHANGE))}};a.prototype.stage_mouseMoveHandler=function(b){this._moveStageX=b.stageX;this._moveStageY=b.stageY;this.needUpdateValue||(this.needUpdateValue=!0)};a.prototype.stage_mouseUpHandler=function(b){e.UIGlobals.stage.removeEventListener(d.TouchEvent.TOUCH_MOVE,this.stage_mouseMoveHandler,this);e.UIGlobals.stage.removeEventListener(d.TouchEvent.TOUCH_END,this.stage_mouseUpHandler,this);e.UIGlobals.stage.removeEventListener(d.Event.LEAVE_STAGE, this.stage_mouseUpHandler,this);this.removeEventListener(d.Event.ENTER_FRAME,this.updateWhenMouseMove,this);this.needUpdateValue&&(this.updateWhenMouseMove(),this.needUpdateValue=!1);e.TrackBaseEvent.dispatchTrackBaseEvent(this,e.TrackBaseEvent.THUMB_RELEASE);e.UIEvent.dispatchUIEvent(this,e.UIEvent.CHANGE_END)};a.prototype.track_mouseDownHandler=function(b){};a.prototype.mouseDownHandler=function(b){e.UIGlobals.stage.addEventListener(d.TouchEvent.TOUCH_END,this.stage_mouseUpSomewhereHandler,this); e.UIGlobals.stage.addEventListener(d.Event.LEAVE_STAGE,this.stage_mouseUpSomewhereHandler,this);this.mouseDownTarget=b.target};a.prototype.stage_mouseUpSomewhereHandler=function(b){e.UIGlobals.stage.removeEventListener(d.TouchEvent.TOUCH_END,this.stage_mouseUpSomewhereHandler,this);e.UIGlobals.stage.removeEventListener(d.Event.LEAVE_STAGE,this.stage_mouseUpSomewhereHandler,this);if(this.mouseDownTarget!=b.target&&b instanceof d.TouchEvent&&this.contains(b.target)){var a=b.target.localToGlobal(b.localX, b.localY);d.TouchEvent.dispatchTouchEvent(this,d.TouchEvent.TOUCH_TAP,b.touchPointID,a.x,a.y,b.ctrlKey,b.altKey,b.shiftKey,b.touchDown)}this.mouseDownTarget=null};return a}(e.Range);e.TrackBase=f;f.prototype.__class__="egret.gui.TrackBase"})(d.gui||(d.gui={}))})(egret||(egret={}));__extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){(function(e){var f=function(c){function a(){c.call(this);this._showTrackHighlight=!0;this._pendingValue=0;this._liveDragging=!0;this.maximum=10}__extends(a,c);Object.defineProperty(a.prototype,"showTrackHighlight",{get:function(){return this._showTrackHighlight},set:function(b){this._showTrackHighlight!=b&&(this._showTrackHighlight=b,this.trackHighlight&&(this.trackHighlight.visible=b),this.invalidateDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"pendingValue", {get:function(){return this._pendingValue},set:function(b){b!=this._pendingValue&&(this._pendingValue=b,this.invalidateDisplayList())},enumerable:!0,configurable:!0});a.prototype.setValue=function(b){this._pendingValue=b;c.prototype.setValue.call(this,b)};a.prototype.animationUpdateHandler=function(b){this.pendingValue=b.currentValue.value};a.prototype.animationEndHandler=function(b){this.setValue(this.slideToValue);this.dispatchEventWith(d.Event.CHANGE);e.UIEvent.dispatchUIEvent(this,e.UIEvent.CHANGE_END)}; a.prototype.stopAnimation=function(){this.animator.stop();this.setValue(this.nearestValidValue(this.pendingValue,this.snapInterval));this.dispatchEventWith(d.Event.CHANGE);e.UIEvent.dispatchUIEvent(this,e.UIEvent.CHANGE_END)};a.prototype.thumb_mouseDownHandler=function(b){this.animator&&this.animator.isPlaying&&this.stopAnimation();c.prototype.thumb_mouseDownHandler.call(this,b)};Object.defineProperty(a.prototype,"liveDragging",{get:function(){return this._liveDragging},set:function(b){this._liveDragging= b},enumerable:!0,configurable:!0});a.prototype.updateWhenMouseMove=function(){if(this.track){var b=this.track.globalToLocal(this._moveStageX,this._moveStageY,d.Point.identity),b=this.pointToValue(b.x-this._clickOffsetX,b.y-this._clickOffsetY),b=this.nearestValidValue(b,this.snapInterval);b!=this.pendingValue&&(e.TrackBaseEvent.dispatchTrackBaseEvent(this,e.TrackBaseEvent.THUMB_DRAG),!0==this.liveDragging?(this.setValue(b),this.dispatchEventWith(d.Event.CHANGE)):this.pendingValue=b)}};a.prototype.stage_mouseUpHandler= function(b){c.prototype.stage_mouseUpHandler.call(this,b);!1==this.liveDragging&&this.value!=this.pendingValue&&(this.setValue(this.pendingValue),this.dispatchEventWith(d.Event.CHANGE))};a.prototype.track_mouseDownHandler=function(b){this.enabled&&(b=this.track.globalToLocal(b.stageX-(this.thumb?this.thumb.width:0)/2,b.stageY-(this.thumb?this.thumb.height:0)/2,d.Point.identity),b=this.pointToValue(b.x,b.y),b=this.nearestValidValue(b,this.snapInterval),b!=this.pendingValue&&(0!=this.slideDuration? (this.animator||(this.animator=new e.Animation(this.animationUpdateHandler,this),this.animator.endFunction=this.animationEndHandler),this.animator.isPlaying&&this.stopAnimation(),this.slideToValue=b,this.animator.duration=this.slideDuration*(Math.abs(this.pendingValue-this.slideToValue)/(this.maximum-this.minimum)),this.animator.motionPaths=[{prop:"value",from:this.pendingValue,to:this.slideToValue}],e.UIEvent.dispatchUIEvent(this,e.UIEvent.CHANGE_START),this.animator.play()):(this.setValue(b),this.dispatchEventWith(d.Event.CHANGE))))}; a.prototype.partAdded=function(b,a){c.prototype.partAdded.call(this,b,a);a==this.trackHighlight&&(this.trackHighlight.touchEnabled=!1,this.trackHighlight instanceof d.DisplayObjectContainer&&(this.trackHighlight.touchChildren=!1),this.trackHighlight.visible=this._showTrackHighlight)};return a}(e.TrackBase);e.SliderBase=f;f.prototype.__class__="egret.gui.SliderBase"})(d.gui||(d.gui={}))})(egret||(egret={})); __extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){(function(d){var f=function(c){function a(){c.call(this);this._maxDisplayedLines=0;this.lastUnscaledWidth=NaN;this._padding=0;this._paddingBottom=this._paddingTop=this._paddingRight=this._paddingLeft=NaN;this.addEventListener(d.UIEvent.UPDATE_COMPLETE,this.updateCompleteHandler,this)}__extends(a,c);a.prototype.updateCompleteHandler=function(b){this.lastUnscaledWidth=NaN};Object.defineProperty(a.prototype,"maxDisplayedLines",{get:function(){return this._maxDisplayedLines},set:function(b){this._maxDisplayedLines!= b&&(this._maxDisplayedLines=b,this.invalidateSize(),this.invalidateDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"padding",{get:function(){return this._padding},set:function(b){this._padding!=b&&(this._padding=b,this.invalidateSize(),this.invalidateDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"paddingLeft",{get:function(){return this._paddingLeft},set:function(b){this._paddingLeft!=b&&(this._paddingLeft=b,this.invalidateSize(), this.invalidateDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"paddingRight",{get:function(){return this._paddingRight},set:function(b){this._paddingRight!=b&&(this._paddingRight=b,this.invalidateSize(),this.invalidateDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"paddingTop",{get:function(){return this._paddingTop},set:function(b){this._paddingTop!=b&&(this._paddingTop=b,this.invalidateSize(),this.invalidateDisplayList())},enumerable:!0, configurable:!0});Object.defineProperty(a.prototype,"paddingBottom",{get:function(){return this._paddingBottom},set:function(b){this._paddingBottom!=b&&(this._paddingBottom=b,this.invalidateSize(),this.invalidateDisplayList())},enumerable:!0,configurable:!0});a.prototype.measure=function(){this._invalidatePropertiesFlag&&this.validateProperties();if(this.isSpecialCase())if(isNaN(this.lastUnscaledWidth))this._oldPreferHeight=this._oldPreferWidth=NaN;else{this.measureUsingWidth(this.lastUnscaledWidth); return}var b;isNaN(this.explicitWidth)?1E4!=this.maxWidth&&(b=this.maxWidth):b=this.explicitWidth;this.measureUsingWidth(b)};a.prototype.isSpecialCase=function(){return 1!=this._maxDisplayedLines&&(!isNaN(this.percentWidth)||!isNaN(this.left)&&!isNaN(this.right))&&isNaN(this.explicitHeight)&&isNaN(this.percentHeight)};a.prototype.measureUsingWidth=function(b){var a=this._textField.text;this._textChanged&&(this._textField.text=this._text);var c=isNaN(this._padding)?0:this._padding,d=isNaN(this._paddingLeft)? c:this._paddingLeft,e=isNaN(this._paddingRight)?c:this._paddingRight,f=isNaN(this._paddingTop)?c:this._paddingTop,c=isNaN(this._paddingBottom)?c:this._paddingBottom;this._textField.width=NaN;this._textField.height=NaN;isNaN(b)||(this._textField.width=b-d-e);this.measuredWidth=Math.ceil(this._textField.measuredWidth);this.measuredHeight=Math.ceil(this._textField.measuredHeight);0this._maxDisplayedLines&&(b=this._textField.lineSpacing,this.measuredHeight= (this._textField.size+b)*this._maxDisplayedLines-b);this.measuredWidth+=d+e;this.measuredHeight+=f+c;this._textField.text=a};a.prototype.updateDisplayList=function(b,a){this.$updateDisplayList(b,a);var c=isNaN(this._padding)?0:this._padding,d=isNaN(this._paddingLeft)?c:this._paddingLeft,e=isNaN(this._paddingRight)?c:this._paddingRight,f=isNaN(this._paddingTop)?c:this._paddingTop,c=isNaN(this._paddingBottom)?c:this._paddingBottom;this._textField.x=d;this._textField.y=f;if(this.isSpecialCase()){var m= isNaN(this.lastUnscaledWidth)||this.lastUnscaledWidth!=b;this.lastUnscaledWidth=b;if(m){this._oldPreferHeight=this._oldPreferWidth=NaN;this.invalidateSize();return}}this._invalidateSizeFlag&&this.validateSize();this._textField.visible||(this._textField.visible=!0);this._textField.width=b-d-e;d=a-f-c;this._textField.height=d;0this._maxDisplayedLines&&(e=this._textField.lineSpacing,this._textField.height=Math.min(d,(this._textField.size+e)*this._maxDisplayedLines- e))};return a}(d.TextBase);d.Label=f;f.prototype.__class__="egret.gui.Label"})(d.gui||(d.gui={}))})(egret||(egret={}));__extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){(function(e){var f=function(c){function a(){c.call(this);this._fillColor=16777215;this._fillAlpha=1;this._strokeColor=4473924;this._strokeAlpha=0;this._strokeWeight=1;this.touchChildren=!1}__extends(a,c);Object.defineProperty(a.prototype,"graphics",{get:function(){this._graphics||(this._graphics=new d.Graphics);return this._graphics},enumerable:!0,configurable:!0});a.prototype._render=function(b){this._graphics&&this._graphics._draw(b);c.prototype._render.call(this,b)};Object.defineProperty(a.prototype, "fillColor",{get:function(){return this._fillColor},set:function(b){this._fillColor!=b&&(this._fillColor=b,this.invalidateDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"fillAlpha",{get:function(){return this._fillAlpha},set:function(b){this._fillAlpha!=b&&(this._fillAlpha=b,this.invalidateDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"strokeColor",{get:function(){return this._strokeColor},set:function(b){this._strokeColor!=b&& (this._strokeColor=b,this.invalidateDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"strokeAlpha",{get:function(){return this._strokeAlpha},set:function(b){this._strokeAlpha!=b&&(this._strokeAlpha=b,this.invalidateDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"strokeWeight",{get:function(){return this._strokeWeight},set:function(b){this._strokeWeight!=b&&(this._strokeWeight=b,this.invalidateDisplayList())},enumerable:!0,configurable:!0}); a.prototype._measureBounds=function(){var b=c.prototype._measureBounds.call(this),a=this.width,d=this.height;0b.right&&(b.right=0+a);0+d>b.bottom&&(b.bottom=0+d);return b};a.prototype.updateDisplayList=function(b,a){c.prototype.updateDisplayList.call(this,b,b);var d=this.graphics;d.clear();d.beginFill(this._fillColor,this._fillAlpha);0n||q>p?1:sq?-1:b==c?0:a(d,f)}b.addEventListener(d.Event.REMOVED,this.radioButton_removedHandler,this);this.radioButtons.push(b);this.radioButtons.sort(a);for(var c=0;cb||b>c)throw new RangeError('\u7d22\u5f15:"'+b+'"\u8d85\u51fa\u53ef\u89c6\u5143\u7d20\u7d22\u5f15\u8303\u56f4');};a.prototype.addElement=function(b){var a=this.numElements;b.parent==this&&(a=this.numElements-1);return this.addElementAt(b,a)};a.prototype.addElementAt=function(b,a){if(b==this)return b;this.checkForRangeError(a,!0);var c=b.owner;if(c==this||b.parent==this)return this.setElementIndex(b,a),b;c&&"removeElement"in c&&b.owner.removeElement(b); this._elementsContent.splice(a,0,b);this.elementsContentChanged||this._elementAdded(b,a);return b};a.prototype.removeElement=function(b){return this.removeElementAt(this.getElementIndex(b))};a.prototype.removeElementAt=function(b){this.checkForRangeError(b);var a=this._elementsContent[b];this.elementsContentChanged||this._elementRemoved(a,b);this._elementsContent.splice(b,1);return a};a.prototype.removeAllElements=function(){for(var b=this.numElements-1;0<=b;b--)this.removeElementAt(b)};a.prototype.getElementIndex= function(b){return this._elementsContent.indexOf(b)};a.prototype.setElementIndex=function(b,a){this.checkForRangeError(a);var c=this.getElementIndex(b);-1!=c&&c!=a&&(this.elementsContentChanged||this._elementRemoved(b,c,!1),this._elementsContent.splice(c,1),this._elementsContent.splice(a,0,b),this.elementsContentChanged||this._elementAdded(b,a,!1))};a.prototype.swapElements=function(b,a){this.swapElementsAt(this.getElementIndex(b),this.getElementIndex(a))};a.prototype.swapElementsAt=function(b,a){this.checkForRangeError(b); this.checkForRangeError(a);if(b>a){var c=a;a=b;b=c}else if(b==a)return;var c=this._elementsContent,d=c[b],e=c[a];this.elementsContentChanged||(this._elementRemoved(d,b,!1),this._elementRemoved(e,a,!1));c[b]=e;c[a]=d;this.elementsContentChanged||(this._elementAdded(e,b,!1),this._elementAdded(d,a,!1))};a.prototype._elementAdded=function(b,a,c){"undefined"===typeof c&&(c=!0);b instanceof d.DisplayObject&&this._addToDisplayListAt(b,a,c);c&&this.hasEventListener(e.ElementExistenceEvent.ELEMENT_ADD)&&e.ElementExistenceEvent.dispatchElementExistenceEvent(this, e.ElementExistenceEvent.ELEMENT_ADD,b,a);this.invalidateSize();this.invalidateDisplayList()};a.prototype._elementRemoved=function(b,a,c){"undefined"===typeof c&&(c=!0);c&&this.hasEventListener(e.ElementExistenceEvent.ELEMENT_REMOVE)&&e.ElementExistenceEvent.dispatchElementExistenceEvent(this,e.ElementExistenceEvent.ELEMENT_REMOVE,b,a);b instanceof d.DisplayObject&&b.parent==this&&this._removeFromDisplayList(b,c);this.invalidateSize();this.invalidateDisplayList()};a.prototype.addChild=function(b){throw Error("addChild()"+ a.errorStr+"addElement()\u4ee3\u66ff");};a.prototype.addChildAt=function(b,c){throw Error("addChildAt()"+a.errorStr+"addElementAt()\u4ee3\u66ff");};a.prototype.removeChild=function(b){throw Error("removeChild()"+a.errorStr+"removeElement()\u4ee3\u66ff");};a.prototype.removeChildAt=function(b){throw Error("removeChildAt()"+a.errorStr+"removeElementAt()\u4ee3\u66ff");};a.prototype.setChildIndex=function(b,c){throw Error("setChildIndex()"+a.errorStr+"setElementIndex()\u4ee3\u66ff");};a.prototype.swapChildren= function(b,c){throw Error("swapChildren()"+a.errorStr+"swapElements()\u4ee3\u66ff");};a.prototype.swapChildrenAt=function(b,c){throw Error("swapChildrenAt()"+a.errorStr+"swapElementsAt()\u4ee3\u66ff");};a.errorStr="\u5728\u6b64\u7ec4\u4ef6\u4e2d\u4e0d\u53ef\u7528\uff0c\u82e5\u6b64\u7ec4\u4ef6\u4e3a\u5bb9\u5668\u7c7b\uff0c\u8bf7\u4f7f\u7528";return a}(e.GroupBase);e.Group=f;f.prototype.__class__="egret.gui.Group"})(d.gui||(d.gui={}))})(egret||(egret={})); __extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){(function(e){var f=function(c){function a(){c.call(this);this._createAllChildren=!1;this.proposedSelectedIndex=a.NO_PROPOSED_SELECTION;this._selectedIndex=-1;this.childOrderingChanged=this.notifyTabBar=!1;this._setLayout(new e.BasicLayout)}__extends(a,c);Object.defineProperty(a.prototype,"layout",{get:function(){return this._layout},set:function(b){},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"createAllChildren",{get:function(){return this._createAllChildren},set:function(b){if(this._createAllChildren!= b&&(this._createAllChildren=b)){b=this._getElementsContent();for(var a=b.length,c=0;cb||b>c)throw new RangeError('\u7d22\u5f15:"'+b+'"\u8d85\u51fa\u53ef\u89c6\u5143\u7d20\u7d22\u5f15\u8303\u56f4'); };a.prototype.addElement=function(b){var a=this.numElements;b.owner==this&&(a=this.numElements-1);return this.addElementAt(b,a)};a.prototype.addElementAt=function(b,a){this.checkForRangeError(a,!0);var c=b.owner;if(c==this)return this.setElementIndex(b,a),b;c&&"removeElement"in c&&c.removeElement(b);this._elementsContent.splice(a,0,b);this._hostComponent?this._elementAdded(b,a):b.ownerChanged(this);return b};a.prototype.removeElement=function(b){return this.removeElementAt(this.getElementIndex(b))}; a.prototype.removeElementAt=function(b){this.checkForRangeError(b);var a=this._elementsContent[b];this._hostComponent?this._elementRemoved(a,b):a.ownerChanged(null);this._elementsContent.splice(b,1);return a};a.prototype.getElementIndex=function(b){return this._elementsContent.indexOf(b)};a.prototype.setElementIndex=function(b,a){this.checkForRangeError(a);var c=this.getElementIndex(b);-1!=c&&c!=a&&(this._hostComponent&&this._elementRemoved(b,c,!1),this._elementsContent.splice(c,1),this._elementsContent.splice(a, 0,b),this._hostComponent&&this._elementAdded(b,a,!1))};a.prototype._elementAdded=function(b,a,c){"undefined"===typeof c&&(c=!0);b.ownerChanged(this);b instanceof d.DisplayObject&&this._hostComponent._addToDisplayListAt(b,a,c);c&&this.hasEventListener(e.ElementExistenceEvent.ELEMENT_ADD)&&e.ElementExistenceEvent.dispatchElementExistenceEvent(this,e.ElementExistenceEvent.ELEMENT_ADD,b,a);this._hostComponent.invalidateSize();this._hostComponent.invalidateDisplayList()};a.prototype._elementRemoved=function(b, a,c){"undefined"===typeof c&&(c=!0);c&&this.hasEventListener(e.ElementExistenceEvent.ELEMENT_REMOVE)&&e.ElementExistenceEvent.dispatchElementExistenceEvent(this,e.ElementExistenceEvent.ELEMENT_REMOVE,b,a);b instanceof d.DisplayObject&&b.parent==this._hostComponent&&this._hostComponent._removeFromDisplayList(b,c);b.ownerChanged(null);this._hostComponent.invalidateSize();this._hostComponent.invalidateDisplayList()};Object.defineProperty(a.prototype,"states",{get:function(){return this._states},set:function(b){this._setStates(b)}, enumerable:!0,configurable:!0});a.prototype._setStates=function(b){b||(b=[]);if("string"==typeof b[0])for(var a=b.length,c=0;cb||b>=this.dataProvider.length)return null;var a=this.indexToRenderer[b];if(!a){var a=this.dataProvider.getItemAt(b), c=this.createVirtualRenderer(b);this.indexToRenderer[b]=c;this.updateRenderer(c,b,a);this.createNewRendererFlag&&("validateNow"in c&&c.validateNow(),this.createNewRendererFlag=!1,e.RendererExistenceEvent.dispatchRendererExistenceEvent(this,e.RendererExistenceEvent.RENDERER_ADD,c,b,a));a=c}return a};a.prototype.freeRendererByIndex=function(b){if(this.indexToRenderer[b]){var a=this.indexToRenderer[b];delete this.indexToRenderer[b];a&&a instanceof d.DisplayObject&&this.doFreeRenderer(a)}};a.prototype.doFreeRenderer= function(b){var a=this.rendererToClassMap[b.hashCode].hashCode;this.freeRenderers[a]||(this.freeRenderers[a]=[]);this.freeRenderers[a].push(b);b.visible=!1};a.prototype.invalidateSize=function(){this.createNewRendererFlag||c.prototype.invalidateSize.call(this)};a.prototype.createVirtualRenderer=function(b){b=this.dataProvider.getItemAt(b);b=this.itemToRendererClass(b);var a=b.hashCode,c=this.freeRenderers;if(c[a]&&0=a&&(c[f]=h+1)}this.indexToRenderer.splice(a,0,null)}}else c=this.itemToRendererClass(b),c=this.createOneRenderer(c),this.indexToRenderer.splice(a,0,c),c&&(this.updateRenderer(c,a,b),e.RendererExistenceEvent.dispatchRendererExistenceEvent(this, e.RendererExistenceEvent.RENDERER_ADD,c,a,b))};a.prototype.itemRemoved=function(b,a){this.layout&&this.layout.elementRemoved(a);var c=this.virtualRendererIndices;if(c&&0a&&(c[h]=m-1)}-1!=f&&c.splice(f,1)}c=this.indexToRenderer[a];this.indexToRenderer.length>a&&this.indexToRenderer.splice(a,1);e.RendererExistenceEvent.dispatchRendererExistenceEvent(this,e.RendererExistenceEvent.RENDERER_REMOVE,c,a,b);c&&c instanceof d.DisplayObject&& this.recycle(c)};a.prototype.recycle=function(b){this._removeFromDisplayList(b);"ownerChanged"in b&&b.ownerChanged(null);var a=this.rendererToClassMap[b.hashCode].hashCode;this.recyclerDic[a]||(this.recyclerDic[a]=new d.Recycler);this.recyclerDic[a].push(b)};a.prototype.resetRenderersIndices=function(){if(0!=this.indexToRenderer.length)if(this.layout&&this.layout.useVirtualLayout)for(var b=this.virtualRendererIndices,a=b.length,c=0;cthis.selectedIndex?this.dataProvider.getItemAt(this.selectedIndex):void 0},set:function(b){this._setSelectedItem(b,!1)},enumerable:!0,configurable:!0});a.prototype._setSelectedItem=function(b, a){"undefined"===typeof a&&(a=!1);this.selectedItem!==b&&(a&&(this._dispatchChangeAfterSelection=this._dispatchChangeAfterSelection||a),this._pendingSelectedItem=b,this.invalidateProperties())};Object.defineProperty(a.prototype,"useVirtualLayout",{get:function(){return this._getUseVirtualLayout()},set:function(b){this._setUseVirtualLayout(b)},enumerable:!0,configurable:!0});a.prototype._getUseVirtualLayout=function(){return this.layout?this.layout.useVirtualLayout:this._useVirtualLayout};a.prototype._setUseVirtualLayout= function(b){b!=this.useVirtualLayout&&(this._useVirtualLayout=b,this.layout&&(this.layout.useVirtualLayout=b))};a.prototype.commitProperties=function(){c.prototype.commitProperties.call(this);this.dataProviderChanged&&(this._doingWholesaleChanges=this.dataProviderChanged=!1,0<=this.selectedIndex&&this.dataProvider&&this.selectedIndexc&&(this._proposedSelectedIndex=c),this.requireSelection&& this._proposedSelectedIndex==a.NO_SELECTION&&this.dataProvider&&0b.x+this.moveArea.width&&(a=35-this.moveArea.width);b.x>this.stage.stageWidth-20&&(a=this.stage.stageWidth-20);20>b.y+this.moveArea.height&&(c=20-this.moveArea.height);b.y>this.stage.stageHeight-20&&(c=this.stage.stageHeight-20);this.x+=a-b.x;this.y+=c-b.y}}; return a}(e.Panel);e.TitleWindow=f;f.prototype.__class__="egret.gui.TitleWindow"})(d.gui||(d.gui={}))})(egret||(egret={}));__extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){(function(e){var f=function(c){function a(){c.call(this);this._contentText=this._secondButtonLabel=this._firstButtonLabel="";this.hostComponentKey="egret.gui.Alert"}__extends(a,c);a.show=function(b,c,d,f,l,h,m){"undefined"===typeof b&&(b="");"undefined"===typeof c&&(c="");"undefined"===typeof d&&(d=null);"undefined"===typeof f&&(f="\u786e\u5b9a");"undefined"===typeof l&&(l="");"undefined"===typeof h&&(h=!0);"undefined"===typeof m&&(m=!0);var k=new a;k.contentText=b;k.title=c;k._firstButtonLabel= f;k._secondButtonLabel=l;k.closeHandler=d;e.PopUpManager.addPopUp(k,h,m);return k};Object.defineProperty(a.prototype,"firstButtonLabel",{get:function(){return this._firstButtonLabel},set:function(b){this._firstButtonLabel!=b&&(this._firstButtonLabel=b,this.firstButton&&(this.firstButton.label=b))},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"secondButtonLabel",{get:function(){return this._secondButtonLabel},set:function(b){this._secondButtonLabel!=b&&(this._secondButtonLabel= b,!this.secondButton||null!=b&&""!=b||(this.secondButton.includeInLayout=this.secondButton.visible=""!=this._secondButtonLabel&&null!=this._secondButtonLabel))},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"contentText",{get:function(){return this._contentText},set:function(b){this._contentText!=b&&(this._contentText=b,this.contentDisplay&&(this.contentDisplay.text=b))},enumerable:!0,configurable:!0});a.prototype.onClose=function(b){e.PopUpManager.removePopUp(this);if(null!=this.closeHandler){var c= new e.CloseEvent(e.CloseEvent.CLOSE);switch(b.currentTarget){case this.firstButton:c.detail=a.FIRST_BUTTON;break;case this.secondButton:c.detail=a.SECOND_BUTTON}this.closeHandler(c)}};a.prototype.closeButton_clickHandler=function(b){c.prototype.closeButton_clickHandler.call(this,b);e.PopUpManager.removePopUp(this);b=new e.CloseEvent(e.CloseEvent.CLOSE,!1,!1,a.CLOSE_BUTTON);null!=this.closeHandler&&this.closeHandler(b)};a.prototype.partAdded=function(b,a){c.prototype.partAdded.call(this,b,a);a==this.contentDisplay? this.contentDisplay.text=this._contentText:a==this.firstButton?(this.firstButton.label=this._firstButtonLabel,this.firstButton.addEventListener(d.TouchEvent.TOUCH_TAP,this.onClose,this)):a==this.secondButton&&(this.secondButton.label=this._secondButtonLabel,this.secondButton.includeInLayout=this.secondButton.visible=""!=this._secondButtonLabel&&null!=this._secondButtonLabel,this.secondButton.addEventListener(d.TouchEvent.TOUCH_TAP,this.onClose,this))};a.prototype.partRemoved=function(b,a){c.prototype.partRemoved.call(this, b,a);a==this.firstButton?this.firstButton.removeEventListener(d.TouchEvent.TOUCH_TAP,this.onClose,this):a==this.secondButton&&this.secondButton.removeEventListener(d.TouchEvent.TOUCH_TAP,this.onClose,this)};a.FIRST_BUTTON="firstButton";a.SECOND_BUTTON="secondButton";a.CLOSE_BUTTON="closeButton";return a}(e.TitleWindow);e.Alert=f;f.prototype.__class__="egret.gui.Alert"})(d.gui||(d.gui={}))})(egret||(egret={})); __extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){(function(e){var f=function(c){function a(){c.call(this);this._slideDuration=500;this._direction=e.ProgressBarDirection.LEFT_TO_RIGHT;this.animationValue=0;this.trackResizedOrMoved=!1;this.hostComponentKey="egret.gui.ProgressBar"}__extends(a,c);Object.defineProperty(a.prototype,"labelFunction",{get:function(){return this._labelFunction},set:function(b){this._labelFunction!=b&&(this._labelFunction=b,this.invalidateDisplayList())},enumerable:!0,configurable:!0});a.prototype.valueToLabel= function(b,a){return null!=this.labelFunction?this._labelFunction(b,a):b+" / "+a};Object.defineProperty(a.prototype,"slideDuration",{get:function(){return this._slideDuration},set:function(b){this._slideDuration!=b&&(this._slideDuration=b,this.animator&&this.animator.isPlaying&&(this.animator.stop(),this._setValue(this.slideToValue)))},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"direction",{get:function(){return this._direction},set:function(b){this._direction!=b&&(this._direction= b,this.invalidateDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"value",{get:function(){return this._getValue()},set:function(b){this._getValue()!=b&&(this._setValue(b),0l||Infinity===l)l=0;var h=Math.round(b/a*f); if(isNaN(h)||0>h||Infinity===h)h=0;var m=this.track.localToGlobal(0,0),k=this.globalToLocal(m.x,m.y,d.Point.identity),m=k.x,k=k.y;switch(this._direction){case e.ProgressBarDirection.LEFT_TO_RIGHT:this.thumb.width=l;this.thumb.height=f;this.thumb.x=m;break;case e.ProgressBarDirection.RIGHT_TO_LEFT:this.thumb.width=l;this.thumb.height=f;this.thumb.x=m+c-l;break;case e.ProgressBarDirection.TOP_TO_BOTTOM:this.thumb.width=c;this.thumb.height=h;this.thumb.y=k;break;case e.ProgressBarDirection.BOTTOM_TO_TOP:this.thumb.width= c,this.thumb.height=h,this.thumb.y=k+f-h}}this.labelDisplay&&(this.labelDisplay.text=this.valueToLabel(b,a))};return a}(e.Range);e.ProgressBar=f;f.prototype.__class__="egret.gui.ProgressBar"})(d.gui||(d.gui={}))})(egret||(egret={})); (function(d){(function(d){var f=function(){function c(){}c.LEFT_TO_RIGHT="leftToRight";c.RIGHT_TO_LEFT="rightToLeft";c.TOP_TO_BOTTOM="topToBottom";c.BOTTOM_TO_TOP="bottomToTop";return c}();d.ProgressBarDirection=f;f.prototype.__class__="egret.gui.ProgressBarDirection"})(d.gui||(d.gui={}))})(egret||(egret={}));__extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){(function(e){var f=function(c){function a(){c.call(this);this.hostComponentKey="egret.gui.HSlider"}__extends(a,c);a.prototype.pointToValue=function(b,a){if(!this.thumb||!this.track)return 0;var c=this.maximum-this.minimum,d=this.track.layoutBoundsWidth-this.thumb.layoutBoundsWidth;return this.minimum+(0!=d?b/d*c:0)};a.prototype.updateSkinDisplayList=function(){if(this.thumb&&this.track){var b=this.track.layoutBoundsWidth-this.thumb.layoutBoundsWidth,a=this.maximum-this.minimum,b=0e.ListBase.NO_SELECTION&&(this._proposedSelectedIndices?-1==this._proposedSelectedIndices.indexOf(this.selectedIndex)&&this._proposedSelectedIndices.push(this.selectedIndex):this._proposedSelectedIndices=[this.selectedIndex]);this._proposedSelectedIndices&&(-1!=this._proposedSelectedIndices.indexOf(a)&&this.itemSelected(a,!0),this.commitMultipleSelection());b&&d&&(this._dispatchChangeAfterSelection&&(e.IndexChangeEvent.dispatchIndexChangeEvent(this,e.IndexChangeEvent.CHANGE, a,this._selectedIndex),this._dispatchChangeAfterSelection=!1),e.UIEvent.dispatchUIEvent(this,e.UIEvent.VALUE_COMMIT));return d};a.prototype.isValidIndex=function(b,a,c){return this.dataProvider&&0<=b&&b=b;a--)d.splice(0,0,a);else if(c)if(0b.width?!0:!1;break;case "on":a=!0;break;case "off":a=!1}this._horizontalCanScroll=a;var c;switch(this._verticalScrollPolicy){case "auto":c=b.contentHeight>b.height?!0:!1;break;case "on":c=!0;break;case "off":c=!1}this._verticalCanScroll=c;return a||c};a.prototype.onTouchBegin=function(b){if(!b.isDefaultPrevented()&&this.checkScrollPolicy()){this.verticalAnimator&& this.verticalAnimator.isPlaying&&this.verticalAnimator.stop();this.horizontalAnimator&&this.horizontalAnimator.isPlaying&&this.horizontalAnimator.stop();var a=this._viewport,c=a.horizontalScrollPosition,a=a.verticalScrollPosition;this._offsetPointX=c+b.stageX;this._offsetPointY=a+b.stageY;this._velocityY=this._velocityX=0;this._previousVelocityX.length=0;this._previousVelocityY.length=0;this._previousTouchTime=d.getTimer();this._previousTouchX=this._startTouchX=this._currentTouchX=b.stageX;this._previousTouchY= this._startTouchY=this._currentTouchY=b.stageY;this._startHorizontalScrollPosition=c;this._startVerticalScrollPosition=a;e.UIGlobals.stage.addEventListener(d.TouchEvent.TOUCH_MOVE,this.onTouchMove,this);e.UIGlobals.stage.addEventListener(d.TouchEvent.TOUCH_END,this.onTouchEnd,this);e.UIGlobals.stage.addEventListener(d.Event.LEAVE_STAGE,this.onTouchEnd,this);this.addEventListener(d.Event.ENTER_FRAME,this.enterFrameHandler,this);b.preventDefault()}};a.prototype.onTouchMove=function(b){this._currentTouchX= b.stageX;this._currentTouchY=b.stageY;this.delayTouchBeginEvent&&(this.delayTouchBeginEvent=null,this.touchBeginTimer.stop());var a=this._viewport;if(this._horizontalCanScroll){var c=this._offsetPointX-b.stageX;0>c&&(c*=0.5);c>a.contentWidth-a.width&&(c=0.5*(c+a.contentWidth-a.width));a.horizontalScrollPosition=c}this._verticalCanScroll&&(b=this._offsetPointY-b.stageY,0>b&&(b*=0.5),b>a.contentHeight-a.height&&(b=0.5*(b+a.contentHeight-a.height)),a.verticalScrollPosition=b)};a.prototype.onTouchEnd= function(b){e.UIGlobals.stage.removeEventListener(d.TouchEvent.TOUCH_MOVE,this.onTouchMove,this);e.UIGlobals.stage.removeEventListener(d.TouchEvent.TOUCH_END,this.onTouchEnd,this);e.UIGlobals.stage.removeEventListener(d.Event.LEAVE_STAGE,this.onTouchEnd,this);this.removeEventListener(d.Event.ENTER_FRAME,this.enterFrameHandler,this);this._horizontalCanScroll&&this.checkHorizontalScrollPosition();this._verticalCanScroll&&this.checkVerticalScrollPosition()};a.easeOut=function(b){b-=1;return b*b*b+1}; a.prototype.enterFrameHandler=function(b){b=d.getTimer();var a=b-this._previousTouchTime;0=Math.abs(d)?this.finishScrollingHorizontally():(c=this.getAnimationDatas(d,c,b),this.throwHorizontally(c[0],c[1]))};a.prototype.checkVerticalScrollPosition=function(){for(var b=this._viewport,c=b.verticalScrollPosition,b=b.contentHeight- b.height,d=2.33*this._velocityY,e=this._previousVelocityY.length,f=2.33,h=0;h=Math.abs(d)?this.finishScrollingVertically():(c=this.getAnimationDatas(d,c,b),this.throwVertically(c[0],c[1]))};a.prototype.getAnimationDatas=function(b,c,d){var e=Math.abs(b),f=0,h=c+(b-0.02)/Math.log(0.998);if(0>h||h>d)for(h=c;0.02h||h>d?0.998*b*0.95:0.998*b,f++;else f=Math.log(0.02/e)/Math.log(0.998);a.animationData|| (a.animationData=[0,0]);b=a.animationData;b[0]=h;b[1]=f;return b};a.prototype.finishScrollingHorizontally=function(b){var a=this._viewport;b=a.horizontalScrollPosition;var a=a.contentWidth-a.width,c=b;0>b&&(c=0);b>a&&(c=a);this.throwHorizontally(c,300)};a.prototype.throwHorizontally=function(b,c){"undefined"===typeof c&&(c=500);var d=this._viewport.horizontalScrollPosition;d!=b&&(this.horizontalAnimator||(this.horizontalAnimator=new e.Animation(this.horizontalUpdateHandler,this),this.horizontalAnimator.endFunction= this.finishScrollingHorizontally,this.horizontalAnimator.easerFunction=a.easeOut),this.horizontalAnimator.isPlaying&&this.horizontalAnimator.stop(),this.horizontalAnimator.duration=c,this.horizontalAnimator.motionPaths=[{prop:"hsp",from:d,to:b}],this.horizontalAnimator.play())};a.prototype.horizontalUpdateHandler=function(b){this._viewport.horizontalScrollPosition=b.currentValue.hsp};a.prototype.finishScrollingVertically=function(b){var a=this._viewport;b=a.verticalScrollPosition;var a=a.contentHeight- a.height,a=Math.max(0,a),c=b;0>b&&(c=0);b>a&&(c=a);this.throwVertically(c,300)};a.prototype.throwVertically=function(b,c){"undefined"===typeof c&&(c=500);var d=this._viewport.verticalScrollPosition;d!=b&&(this.verticalAnimator||(this.verticalAnimator=new e.Animation(this.verticalUpdateHandler,this),this.verticalAnimator.endFunction=this.finishScrollingVertically,this.verticalAnimator.easerFunction=a.easeOut),this.verticalAnimator.isPlaying&&this.verticalAnimator.stop(),this.verticalAnimator.duration= c,this.verticalAnimator.motionPaths=[{prop:"vsp",from:d,to:b}],this.verticalAnimator.play())};a.prototype.verticalUpdateHandler=function(b){this._viewport.verticalScrollPosition=b.currentValue.vsp};Object.defineProperty(a.prototype,"numElements",{get:function(){return this.viewport?1:0},enumerable:!0,configurable:!0});a.prototype.throwRangeError=function(b){throw new RangeError('\u7d22\u5f15:"'+b+'"\u8d85\u51fa\u53ef\u89c6\u5143\u7d20\u7d22\u5f15\u8303\u56f4');};a.prototype.getElementAt=function(b){if(this.viewport&& 0==b)return this.viewport;this.throwRangeError(b);return null};a.prototype.getElementIndex=function(b){return null!=b&&b==this.viewport?0:-1};a.prototype.containsElement=function(b){return null!=b&&b==this.viewport?!0:!1};a.prototype.throwNotSupportedError=function(){throw Error("\u6b64\u65b9\u6cd5\u5728Scroller\u7ec4\u4ef6\u5185\u4e0d\u53ef\u7528!");};a.prototype.addElement=function(b){this.throwNotSupportedError();return null};a.prototype.addElementAt=function(b,a){this.throwNotSupportedError(); return null};a.prototype.removeElement=function(b){this.throwNotSupportedError();return null};a.prototype.removeElementAt=function(b){this.throwNotSupportedError();return null};a.prototype.removeAllElements=function(){this.throwNotSupportedError()};a.prototype.setElementIndex=function(b,a){this.throwNotSupportedError()};a.prototype.swapElements=function(b,a){this.throwNotSupportedError()};a.prototype.swapElementsAt=function(b,a){this.throwNotSupportedError()};a.prototype.addChild=function(b){this.throwNotSupportedError(); return null};a.prototype.addChildAt=function(b,a){this.throwNotSupportedError();return null};a.prototype.removeChild=function(a){this.throwNotSupportedError();return null};a.prototype.removeChildAt=function(a){this.throwNotSupportedError();return null};a.prototype.setChildIndex=function(a,c){this.throwNotSupportedError()};a.prototype.swapChildren=function(a,c){this.throwNotSupportedError()};a.prototype.swapChildrenAt=function(a,c){this.throwNotSupportedError()};a.VELOCITY_WEIGHTS=[1,1.33,1.66,2]; return a}(e.UIComponent);e.Scroller=f;f.prototype.__class__="egret.gui.Scroller"})(d.gui||(d.gui={}))})(egret||(egret={}));__extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){(function(e){var f=function(c){function a(a,d,e){"undefined"===typeof d&&(d=!1);"undefined"===typeof e&&(e=!1);c.call(this,a,d,e)}__extends(a,c);a.dispatchUIEvent=function(b,c){d.Event._dispatchByTarget(a,b,c)};a.INITIALIZE="initialize";a.CREATION_COMPLETE="creationComplete";a.UPDATE_COMPLETE="updateComplete";a.BUTTON_DOWN="buttonDown";a.CHANGE_END="changeEnd";a.CHANGE_START="changeStart";a.CHANGING="changing";a.VALUE_COMMIT="valueCommit";a.SKIN_CHANGED="skinChanged";a.CONTENT_CHANGED= "contentChanged";a.OPEN="open";a.CLOSE="close";a.PLAY_COMPLETE="playComplete";return a}(d.Event);e.UIEvent=f;f.prototype.__class__="egret.gui.UIEvent"})(d.gui||(d.gui={}))})(egret||(egret={}));__extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){(function(e){var f=function(c){function a(a,d,e,f,l,h,m,k){"undefined"===typeof d&&(d=!1);"undefined"===typeof e&&(e=!1);"undefined"===typeof f&&(f=null);"undefined"===typeof l&&(l=null);"undefined"===typeof h&&(h=null);"undefined"===typeof m&&(m=null);"undefined"===typeof k&&(k=null);c.call(this,a,d,e);this.kind=f;this.property=l;this.oldValue=h;this.newValue=m;this.source=k}__extends(a,c);a.dispatchPropertyChangeEvent=function(b,c,e,f,l,h){"undefined"===typeof c&&(c=null);"undefined"=== typeof e&&(e=null);"undefined"===typeof f&&(f=null);"undefined"===typeof l&&(l=null);"undefined"===typeof h&&(h=null);var m=d.Event._getPropertyData(a);m.kind=c;m.property=e;m.oldValue=f;m.newValue=l;m.source=h;d.Event._dispatchByTarget(a,b,a.PROPERTY_CHANGE,m)};a.PROPERTY_CHANGE="propertyChange";return a}(d.Event);e.PropertyChangeEvent=f;f.prototype.__class__="egret.gui.PropertyChangeEvent"})(d.gui||(d.gui={}))})(egret||(egret={})); (function(d){(function(d){var f=function(){function c(){}c.UPDATE="update";c.DELETE="delete";return c}();d.PropertyChangeEventKind=f;f.prototype.__class__="egret.gui.PropertyChangeEventKind"})(d.gui||(d.gui={}))})(egret||(egret={}));__extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){(function(e){var f=function(c){function a(a,d,e,f,l){"undefined"===typeof d&&(d=NaN);"undefined"===typeof e&&(e=NaN);"undefined"===typeof f&&(f=!1);"undefined"===typeof l&&(l=!1);c.call(this,a,f,l);this.oldX=d;this.oldY=e}__extends(a,c);a.dispatchMoveEvent=function(b,c,e){"undefined"===typeof c&&(c=NaN);"undefined"===typeof e&&(e=NaN);var f=d.Event._getPropertyData(a);f.oldX=c;f.oldY=e;d.Event._dispatchByTarget(a,b,a.MOVE,f)};a.MOVE="move";return a}(d.Event);e.MoveEvent=f;f.prototype.__class__= "egret.gui.MoveEvent"})(d.gui||(d.gui={}))})(egret||(egret={}));__extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){(function(e){var f=function(c){function a(a,d,e,f,l){"undefined"===typeof d&&(d=NaN);"undefined"===typeof e&&(e=NaN);"undefined"===typeof f&&(f=!1);"undefined"===typeof l&&(l=!1);c.call(this,a,f,l);this.oldWidth=d;this.oldHeight=e}__extends(a,c);a.dispatchResizeEvent=function(b,c,e){"undefined"===typeof c&&(c=NaN);"undefined"===typeof e&&(e=NaN);var f=d.Event._getPropertyData(a);f.oldWidth=c;f.oldHeight=e;d.Event._dispatchByTarget(a,b,a.RESIZE,f)};a.RESIZE="resize";return a}(d.Event); e.ResizeEvent=f;f.prototype.__class__="egret.gui.ResizeEvent"})(d.gui||(d.gui={}))})(egret||(egret={}));__extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){(function(e){var f=function(c){function a(a,d,e,f,l){"undefined"===typeof d&&(d=!1);"undefined"===typeof e&&(e=!1);"undefined"===typeof f&&(f=null);"undefined"===typeof l&&(l=null);c.call(this,a,d,e);this.partName=f;this.instance=l}__extends(a,c);a.dispatchSkinPartEvent=function(b,c,e,f){"undefined"===typeof e&&(e=null);"undefined"===typeof f&&(f=null);var l=d.Event._getPropertyData(a);l.partName=e;l.instance=f;d.Event._dispatchByTarget(a,b,c,l)};a.PART_ADDED="partAdded";a.PART_REMOVED= "partRemoved";return a}(d.Event);e.SkinPartEvent=f;f.prototype.__class__="egret.gui.SkinPartEvent"})(d.gui||(d.gui={}))})(egret||(egret={}));__extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){(function(e){var f=function(c){function a(a,d,e,f){"undefined"===typeof d&&(d=!1);"undefined"===typeof e&&(e=!1);"undefined"===typeof f&&(f=-1);c.call(this,a,d,e);this.detail=f}__extends(a,c);a.dispatchCloseEvent=function(b,c,e){"undefined"===typeof e&&(e=-1);var f=d.Event._getPropertyData(a);f.detail=e;d.Event._dispatchByTarget(a,b,c,f)};a.CLOSE="close";return a}(d.Event);e.CloseEvent=f;f.prototype.__class__="egret.gui.CloseEvent"})(d.gui||(d.gui={}))})(egret||(egret={})); __extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){(function(e){var f=function(c){function a(a,d,e,f,l,h,m,k){"undefined"===typeof d&&(d=!1);"undefined"===typeof e&&(e=!1);"undefined"===typeof f&&(f=null);"undefined"===typeof l&&(l=-1);"undefined"===typeof h&&(h=-1);"undefined"===typeof m&&(m=null);"undefined"===typeof k&&(k=null);c.call(this,a,d,e);this.kind=f;this.location=l;this.oldLocation=h;this.items=m?m:[];this.oldItems=k?k:[]}__extends(a,c);a.dispatchCollectionEvent=function(b,c,e,f,l,h,m){"undefined"===typeof e&&(e=null);"undefined"=== typeof f&&(f=-1);"undefined"===typeof l&&(l=-1);"undefined"===typeof h&&(h=null);"undefined"===typeof m&&(m=null);var k=d.Event._getPropertyData(a);k.kind=e;k.location=f;k.oldLocation=l;k.items=h;k.oldItems=m;d.Event._dispatchByTarget(a,b,c,k)};a.COLLECTION_CHANGE="collectionChange";return a}(d.Event);e.CollectionEvent=f;f.prototype.__class__="egret.gui.CollectionEvent"})(d.gui||(d.gui={}))})(egret||(egret={})); (function(d){(function(d){var f=function(){function c(){}c.ADD="add";c.MOVE="move";c.REFRESH="refresh";c.REMOVE="remove";c.REPLACE="replace";c.RESET="reset";c.UPDATE="update";c.OPEN="open";c.CLOSE="close";return c}();d.CollectionEventKind=f;f.prototype.__class__="egret.gui.CollectionEventKind"})(d.gui||(d.gui={}))})(egret||(egret={}));__extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){(function(e){var f=function(c){function a(a,d,e,f,l){"undefined"===typeof d&&(d=!1);"undefined"===typeof e&&(e=!1);"undefined"===typeof f&&(f=null);"undefined"===typeof l&&(l=-1);c.call(this,a,d,e);this.element=f;this.index=l}__extends(a,c);a.dispatchElementExistenceEvent=function(b,c,e,f){"undefined"===typeof e&&(e=null);"undefined"===typeof f&&(f=-1);var l=d.Event._getPropertyData(a);l.element=e;l.index=f;d.Event._dispatchByTarget(a,b,c,l)};a.ELEMENT_ADD="elementAdd";a.ELEMENT_REMOVE= "elementRemove";return a}(d.Event);e.ElementExistenceEvent=f;f.prototype.__class__="egret.gui.ElementExistenceEvent"})(d.gui||(d.gui={}))})(egret||(egret={}));__extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){(function(e){var f=function(c){function a(a,d,e,f,l){"undefined"===typeof d&&(d=!1);"undefined"===typeof e&&(e=!1);"undefined"===typeof f&&(f=-1);"undefined"===typeof l&&(l=-1);c.call(this,a,d,e);this.oldIndex=f;this.newIndex=l}__extends(a,c);a.dispatchIndexChangeEvent=function(b,c,e,f,l){"undefined"===typeof e&&(e=-1);"undefined"===typeof f&&(f=-1);"undefined"===typeof l&&(l=!1);var h=d.Event._getPropertyData(a);h.oldIndex=e;h.newIndex=f;return d.Event._dispatchByTarget(a,b,c,h,!1,l)}; a.CHANGE="change";a.CHANGING="changing";return a}(d.Event);e.IndexChangeEvent=f;f.prototype.__class__="egret.gui.IndexChangeEvent"})(d.gui||(d.gui={}))})(egret||(egret={}));__extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){(function(e){var f=function(c){function a(a,d,e,f,l,h,m,k,n,q,p,t,y){"undefined"===typeof d&&(d=!0);"undefined"===typeof e&&(e=!0);"undefined"===typeof f&&(f=0);"undefined"===typeof l&&(l=0);"undefined"===typeof h&&(h=0);"undefined"===typeof m&&(m=!1);"undefined"===typeof k&&(k=!1);"undefined"===typeof n&&(n=!1);"undefined"===typeof q&&(q=!1);"undefined"===typeof p&&(p=-1);"undefined"===typeof t&&(t=null);"undefined"===typeof y&&(y=null);c.call(this,a,d,e,f,l,h,m,k,n,q);this.itemIndex= p;this.item=t;this.itemRenderer=y}__extends(a,c);a.dispatchListEvent=function(b,c,e,f,l,h){"undefined"===typeof e&&(e=null);"undefined"===typeof f&&(f=-1);"undefined"===typeof l&&(l=null);"undefined"===typeof h&&(h=null);var m=d.Event._getPropertyData(a);m.touchPointID=e.touchPointID;m._stageX=e.stageX;m._stageY=e.stageY;m.ctrlKey=e.ctrlKey;m.altKey=e.altKey;m.shiftKey=e.shiftKey;m.touchDown=e.touchDown;m.itemIndex=f;m.item=l;m.itemRenderer=h;d.Event._dispatchByTarget(a,b,c,m)};a.ITEM_ROLL_OUT="itemRollOut"; a.ITEM_ROLL_OVER="itemRollOver";a.ITEM_CLICK="itemClick";return a}(d.TouchEvent);e.ListEvent=f;f.prototype.__class__="egret.gui.ListEvent"})(d.gui||(d.gui={}))})(egret||(egret={}));__extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){(function(e){var f=function(c){function a(a,d,e,f,l){"undefined"===typeof d&&(d=!1);"undefined"===typeof e&&(e=!1);"undefined"===typeof f&&(f=null);"undefined"===typeof l&&(l=!1);c.call(this,a,d,e);this.popUp=f;this.modal=l}__extends(a,c);a.dispatchPopUpEvent=function(b,c,e,f){"undefined"===typeof e&&(e=null);"undefined"===typeof f&&(f=!1);var l=d.Event._getPropertyData(a);l.popUp=e;l.modal=f;d.Event._dispatchByTarget(a,b,c,l)};a.ADD_POPUP="addPopUp";a.REMOVE_POPUP="removePopUp";a.BRING_TO_FRONT= "bringToFront";return a}(d.Event);e.PopUpEvent=f;f.prototype.__class__="egret.gui.PopUpEvent"})(d.gui||(d.gui={}))})(egret||(egret={}));__extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){(function(e){var f=function(c){function a(a,d,e,f,l,h){"undefined"===typeof d&&(d=!1);"undefined"===typeof e&&(e=!1);"undefined"===typeof f&&(f=null);"undefined"===typeof l&&(l=-1);"undefined"===typeof h&&(h=null);c.call(this,a,d,e);this.renderer=f;this.index=l;this.data=h}__extends(a,c);a.dispatchRendererExistenceEvent=function(b,c,e,f,l){"undefined"===typeof e&&(e=null);"undefined"===typeof f&&(f=-1);"undefined"===typeof l&&(l=null);var h=d.Event._getPropertyData(a);h.renderer=e;h.index= f;h.data=l;d.Event._dispatchByTarget(a,b,c,h)};a.RENDERER_ADD="rendererAdd";a.RENDERER_REMOVE="rendererRemove";return a}(d.Event);e.RendererExistenceEvent=f;f.prototype.__class__="egret.gui.RendererExistenceEvent"})(d.gui||(d.gui={}))})(egret||(egret={}));__extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){(function(e){var f=function(c){function a(a,d,e,f,l){"undefined"===typeof d&&(d=!1);"undefined"===typeof e&&(e=!1);"undefined"===typeof f&&(f=null);"undefined"===typeof l&&(l=null);c.call(this,a,d,e);this.oldState=f;this.newState=l}__extends(a,c);a.dispatchStateChangeEvent=function(b,c,e,f){"undefined"===typeof e&&(e=null);"undefined"===typeof f&&(f=null);var l=d.Event._getPropertyData(a);l.oldState=e;l.newState=f;d.Event._dispatchByTarget(a,b,c,l)};a.CURRENT_STATE_CHANGE="currentStateChange"; a.CURRENT_STATE_CHANGING="currentStateChanging";return a}(d.Event);e.StateChangeEvent=f;f.prototype.__class__="egret.gui.StateChangeEvent"})(d.gui||(d.gui={}))})(egret||(egret={}));__extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){(function(e){var f=function(c){function a(a,d,e){"undefined"===typeof d&&(d=!1);"undefined"===typeof e&&(e=!1);c.call(this,a,d,e)}__extends(a,c);a.dispatchTrackBaseEvent=function(b,c){d.Event._dispatchByTarget(a,b,c)};a.THUMB_DRAG="thumbDrag";a.THUMB_PRESS="thumbPress";a.THUMB_RELEASE="thumbRelease";return a}(d.Event);e.TrackBaseEvent=f;f.prototype.__class__="egret.gui.TrackBaseEvent"})(d.gui||(d.gui={}))})(egret||(egret={})); __extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){(function(e){var f=function(c){function a(a,d,e,f,l,h){"undefined"===typeof d&&(d=!1);"undefined"===typeof e&&(e=!0);"undefined"===typeof f&&(f=-1);"undefined"===typeof l&&(l=null);"undefined"===typeof h&&(h=null);c.call(this,a,d,e);this.item=l;this.itemRenderer=h;this.itemIndex=f}__extends(a,c);a.dispatchTreeEvent=function(b,c,e,f,l,h){"undefined"===typeof e&&(e=-1);"undefined"===typeof f&&(f=null);"undefined"===typeof l&&(l=null);"undefined"===typeof h&&(h=!1);var m=d.Event._getPropertyData(a); m.itemIndex=e;m.item=f;m.itemRenderer=l;m.opening=h;d.Event._dispatchByTarget(a,b,c,m)};a.ITEM_CLOSE="itemClose";a.ITEM_OPEN="itemOpen";a.ITEM_OPENING="itemOpening";return a}(d.Event);e.TreeEvent=f;f.prototype.__class__="egret.gui.TreeEvent"})(d.gui||(d.gui={}))})(egret||(egret={}));__extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){(function(e){var f=function(c){function a(){c.call(this);this._useVirtualLayout=!1}__extends(a,c);Object.defineProperty(a.prototype,"target",{get:function(){return this._target},set:function(a){this._target!=a&&(this._target=a,this.clearVirtualLayoutCache())},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"useVirtualLayout",{get:function(){return this._useVirtualLayout},set:function(a){this._useVirtualLayout!=a&&(this._useVirtualLayout=a,this.dispatchEventWith("useVirtualLayoutChanged"), this._useVirtualLayout&&!a&&this.clearVirtualLayoutCache(),this.target&&this.target.invalidateDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"typicalLayoutRect",{get:function(){return this._typicalLayoutRect},set:function(a){this._typicalLayoutRect!=a&&(this._typicalLayoutRect=a,this.target&&this.target.invalidateSize())},enumerable:!0,configurable:!0});a.prototype.scrollPositionChanged=function(){};a.prototype.clearVirtualLayoutCache=function(){};a.prototype.elementAdded= function(a){};a.prototype.elementRemoved=function(a){};a.prototype.measure=function(){};a.prototype.updateDisplayList=function(a,c){};return a}(d.EventDispatcher);e.LayoutBase=f;f.prototype.__class__="egret.gui.LayoutBase"})(d.gui||(d.gui={}))})(egret||(egret={}));__extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){(function(e){var f=function(c){function a(){c.call(this);this._mouseWheelSpeed=20}__extends(a,c);Object.defineProperty(a.prototype,"useVirtualLayout",{set:function(a){},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"mouseWheelSpeed",{get:function(){return this._mouseWheelSpeed},set:function(a){0==a&&(a=1);this._mouseWheelSpeed=a},enumerable:!0,configurable:!0});a.prototype.getElementBoundsLeftOfScrollRect=function(a){var c=new d.Rectangle;c.x=a.x-this._mouseWheelSpeed; c.right=a.x;return c};a.prototype.getElementBoundsRightOfScrollRect=function(a){var c=new d.Rectangle;c.x=a.right;c.right=a.right+this._mouseWheelSpeed;return c};a.prototype.getElementBoundsAboveScrollRect=function(a){var c=new d.Rectangle;c.y=a.y-this._mouseWheelSpeed;c.bottom=a.y;return c};a.prototype.getElementBoundsBelowScrollRect=function(a){var c=new d.Rectangle;c.y=a.bottom;c.bottom=a.bottom+this._mouseWheelSpeed;return c};a.prototype.measure=function(){c.prototype.measure.call(this);if(null!= this.target){for(var a=0,d=0,e=this.target.numElements,f=0;f=e&&ad-c)return this.endIndex=this.startIndex=-1,!1;c=this.target.verticalScrollPosition+this.target.height;if(cH){K=v/x;for(A=0;AH&&u.preferredHeight>K&&(D=v/G),isNaN(D)|| (x=Math.round(D+q),q+=D-x)):x=J[u.hashCode],t?(D=l,u.setLayoutBoundsSize(E,x)):(D=NaN,isNaN(u.percentWidth)||(D=Math.min(100,u.percentWidth),D=Math.round(n*D*0.01)),u.setLayoutBoundsSize(D,x),D=(n-u.layoutBoundsWidth)*y,D=0=f||(b-=f-k);f=!1;break}else if(t>p.max){f=p.max;p.size=f;d[q]=d[--e];d[e]=p;c-=p.percent;k>=f||(b-=f-k);f=!1;break}else p.size=t}}while(!f)};return b}(e.LayoutBase);e.VerticalLayout=f;f.prototype.__class__="egret.gui.VerticalLayout";var c=function(){return function(){this.size=0}}();c.prototype.__class__="ChildInfo"})(d.gui|| (d.gui={}))})(egret||(egret={}));__extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){(function(e){var f=function(a){function b(){a.call(this);this._horizontalAlign=d.HorizontalAlign.LEFT;this._verticalAlign=d.VerticalAlign.TOP;this._gap=6;this._padding=0;this._paddingBottom=this._paddingTop=this._paddingRight=this._paddingLeft=NaN;this.elementSizeTable=[];this.endIndex=this.startIndex=-1;this.indexInViewCalculated=!1;this.maxElementHeight=0}__extends(b,a);Object.defineProperty(b.prototype,"horizontalAlign",{get:function(){return this._horizontalAlign},set:function(a){this._horizontalAlign!= a&&(this._horizontalAlign=a,this.target&&this.target.invalidateDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"verticalAlign",{get:function(){return this._verticalAlign},set:function(a){this._verticalAlign!=a&&(this._verticalAlign=a,this.target&&this.target.invalidateDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"gap",{get:function(){return this._gap},set:function(a){this._gap!=a&&(this._gap=a,this.invalidateTargetSizeAndDisplayList(), this.hasEventListener("gapChanged")&&this.dispatchEventWith("gapChanged"))},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"padding",{get:function(){return this._padding},set:function(a){this._padding!=a&&(this._padding=a,this.invalidateTargetSizeAndDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"paddingLeft",{get:function(){return this._paddingLeft},set:function(a){this._paddingLeft!=a&&(this._paddingLeft=a,this.invalidateTargetSizeAndDisplayList())}, enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"paddingRight",{get:function(){return this._paddingRight},set:function(a){this._paddingRight!=a&&(this._paddingRight=a,this.invalidateTargetSizeAndDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"paddingTop",{get:function(){return this._paddingTop},set:function(a){this._paddingTop!=a&&(this._paddingTop=a,this.invalidateTargetSizeAndDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype, "paddingBottom",{get:function(){return this._paddingBottom},set:function(a){this._paddingBottom!=a&&(this._paddingBottom=a,this.invalidateTargetSizeAndDisplayList())},enumerable:!0,configurable:!0});b.prototype.invalidateTargetSizeAndDisplayList=function(){this.target&&(this.target.invalidateSize(),this.target.invalidateDisplayList())};b.prototype.measure=function(){a.prototype.measure.call(this);this.target&&(this.useVirtualLayout?this.measureVirtual():this.measureReal())};b.prototype.measureVirtual= function(){for(var a=this.typicalLayoutRect?this.typicalLayoutRect.height:22,b=this.typicalLayoutRect?this.typicalLayoutRect.width:71,c=this.getElementTotalSize(),a=Math.max(this.maxElementHeight,a),d=this.target.getElementIndicesInView(),e=d.length,f=0;f=e&&ad-c)return this.endIndex=this.startIndex=-1,!1;c=this.target.horizontalScrollPosition+this.target.width;if(cH){K=v/x;for(A=0;AH&&u.preferredWidth>K&&(w=v/G),isNaN(w)||(x=Math.round(w+n),n+=w-x)):x=J[u.hashCode],t?(w=m,u.setLayoutBoundsSize(x,E)):(w=NaN,isNaN(u.percentHeight)||(w=Math.min(100,u.percentHeight),w=Math.round(q*w*0.01)),u.setLayoutBoundsSize(x,w),w=(q-u.layoutBoundsHeight)*y,w=0=f||(b-=f-k);f=!1;break}else if(t>p.max){f=p.max;p.size=f;d[q]=d[--e];d[e]=p;c-=p.percent;k>=f||(b-=f-k);f=!1;break}else p.size=t}}while(!f)};return b}(e.LayoutBase);e.HorizontalLayout=f;f.prototype.__class__="egret.gui.HorizontalLayout";var c=function(){return function(){this.size= 0}}();c.prototype.__class__="ChildInfo"})(d.gui||(d.gui={}))})(egret||(egret={}));__extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){(function(e){var f=function(c){function a(){c.call(this);this.explicitHorizontalGap=NaN;this._horizontalGap=6;this.explicitVerticalGap=NaN;this._verticalGap=6;this._columnCount=-1;this._requestedColumnCount=0;this._rowCount=-1;this._requestedRowCount=0;this._rowHeight=this.explicitRowHeight=this._columnWidth=this.explicitColumnWidth=NaN;this._padding=0;this._paddingBottom=this._paddingTop=this._paddingRight=this._paddingLeft=NaN;this._horizontalAlign=d.HorizontalAlign.JUSTIFY;this._verticalAlign= d.VerticalAlign.JUSTIFY;this._columnAlign=e.ColumnAlign.LEFT;this._rowAlign=e.RowAlign.TOP;this._orientation=e.TileOrientation.ROWS;this.maxElementHeight=this.maxElementWidth=0;this.endIndex=this.startIndex=-1;this.indexInViewCalculated=!1}__extends(a,c);Object.defineProperty(a.prototype,"horizontalGap",{get:function(){return this._horizontalGap},set:function(a){a!=this._horizontalGap&&(this._horizontalGap=this.explicitHorizontalGap=a,this.invalidateTargetSizeAndDisplayList(),this.hasEventListener("gapChanged")&& this.dispatchEventWith("gapChanged"))},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"verticalGap",{get:function(){return this._verticalGap},set:function(a){a!=this._verticalGap&&(this._verticalGap=this.explicitVerticalGap=a,this.invalidateTargetSizeAndDisplayList(),this.hasEventListener("gapChanged")&&this.dispatchEventWith("gapChanged"))},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"columnCount",{get:function(){return this._columnCount},enumerable:!0,configurable:!0}); Object.defineProperty(a.prototype,"requestedColumnCount",{get:function(){return this._requestedColumnCount},set:function(a){this._requestedColumnCount!=a&&(this._columnCount=this._requestedColumnCount=a,this.invalidateTargetSizeAndDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"rowCount",{get:function(){return this._rowCount},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"requestedRowCount",{get:function(){return this._requestedRowCount},set:function(a){this._requestedRowCount!= a&&(this._rowCount=this._requestedRowCount=a,this.invalidateTargetSizeAndDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"columnWidth",{get:function(){return this._columnWidth},set:function(a){a!=this._columnWidth&&(this._columnWidth=this.explicitColumnWidth=a,this.invalidateTargetSizeAndDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"rowHeight",{get:function(){return this._rowHeight},set:function(a){a!=this._rowHeight&&(this._rowHeight= this.explicitRowHeight=a,this.invalidateTargetSizeAndDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"padding",{get:function(){return this._padding},set:function(a){this._padding!=a&&(this._padding=a,this.invalidateTargetSizeAndDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"paddingLeft",{get:function(){return this._paddingLeft},set:function(a){this._paddingLeft!=a&&(this._paddingLeft=a,this.invalidateTargetSizeAndDisplayList())}, enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"paddingRight",{get:function(){return this._paddingRight},set:function(a){this._paddingRight!=a&&(this._paddingRight=a,this.invalidateTargetSizeAndDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"paddingTop",{get:function(){return this._paddingTop},set:function(a){this._paddingTop!=a&&(this._paddingTop=a,this.invalidateTargetSizeAndDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype, "paddingBottom",{get:function(){return this._paddingBottom},set:function(a){this._paddingBottom!=a&&(this._paddingBottom=a,this.invalidateTargetSizeAndDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"horizontalAlign",{get:function(){return this._horizontalAlign},set:function(a){this._horizontalAlign!=a&&(this._horizontalAlign=a,this.invalidateTargetSizeAndDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"verticalAlign",{get:function(){return this._verticalAlign}, set:function(a){this._verticalAlign!=a&&(this._verticalAlign=a,this.invalidateTargetSizeAndDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"columnAlign",{get:function(){return this._columnAlign},set:function(a){this._columnAlign!=a&&(this._columnAlign=a,this.invalidateTargetSizeAndDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"rowAlign",{get:function(){return this._rowAlign},set:function(a){this._rowAlign!=a&&(this._rowAlign=a, this.invalidateTargetSizeAndDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"orientation",{get:function(){return this._orientation},set:function(a){this._orientation!=a&&(this._orientation=a,this.invalidateTargetSizeAndDisplayList(),this.hasEventListener("orientationChanged")&&this.dispatchEventWith("orientationChanged"))},enumerable:!0,configurable:!0});a.prototype.invalidateTargetSizeAndDisplayList=function(){this.target&&(this.target.invalidateSize(),this.target.invalidateDisplayList())}; a.prototype.measure=function(){if(this.target){var a=this._columnCount,c=this._rowCount,d=this._columnWidth,e=this._rowHeight,f=0,h=0;this.calculateRowAndColumn(this.target.explicitWidth,this.target.explicitHeight);var m=0=h&&(h=1);m=this._rowHeight+f;0>=m&&(m=1);var k=this.orientation==e.TileOrientation.COLUMNS,n=!isNaN(a),q=!isNaN(c),p=isNaN(this._padding)?0:this._padding,t=isNaN(this._paddingLeft)?p:this._paddingLeft,y=isNaN(this._paddingRight)?p:this._paddingRight,B=isNaN(this._paddingTop)?p:this._paddingTop,p=isNaN(this._paddingBottom)?p:this._paddingBottom;0=h)return this.startIndex=0,this.endIndex=a-1,!1;m=this.target.horizontalScrollPosition+ this.target.width;f=Math.floor((this.target.horizontalScrollPosition-l)/h);0>f&&(f=0);l=Math.ceil((m-l)/h);0>l&&(l=0);this.startIndex=Math.min(a-1,Math.max(0,f*this._rowCount));this.endIndex=Math.min(a-1,Math.max(0,l*this._rowCount-1))}else{h=this._rowHeight+m;if(0>=h)return this.startIndex=0,this.endIndex=a-1,!1;m=this.target.verticalScrollPosition+this.target.height;l=Math.floor((this.target.verticalScrollPosition-f)/h);0>l&&(l=0);f=Math.ceil((m-f)/h);0>f&&(f=0);this.startIndex=Math.min(a-1,Math.max(0, l*this._columnCount));this.endIndex=Math.min(a-1,Math.max(0,f*this._columnCount-1))}return this.startIndex!=c||this.endIndex!=d};a.prototype.updateDisplayList=function(a,d){c.prototype.updateDisplayList.call(this,a,d);if(this.target){var f=isNaN(this._padding)?0:this._padding,r=isNaN(this._paddingLeft)?f:this._paddingLeft,l=isNaN(this._paddingRight)?f:this._paddingRight,h=isNaN(this._paddingTop)?f:this._paddingTop,m=isNaN(this._paddingBottom)?f:this._paddingBottom,f=isNaN(this._horizontalGap)?0:this._horizontalGap, k=isNaN(this._verticalGap)?0:this._verticalGap;if(this.indexInViewCalculated)this.indexInViewCalculated=!1;else{this.calculateRowAndColumn(a,d);if(0==this._rowCount||0==this._columnCount){this.target.setContentSize(r+l,h+m);return}this.adjustForJustify(a,d);this.getIndexInView()}this.useVirtualLayout&&(this.calculateRowAndColumn(a,d),this.adjustForJustify(a,d));if(-1==this.startIndex||-1==this.endIndex)this.target.setContentSize(0,0);else{this.target.setVirtualElementIndicesInView(this.startIndex, this.endIndex);for(var n,q,p,t=this.orientation==e.TileOrientation.COLUMNS,y=this.startIndex,B=this.startIndex;B<=this.endIndex;B++)n=this.useVirtualLayout?this.target.getVirtualElementAt(B):this.target.getElementAt(B),null!=n&&n.includeInLayout&&(t?(q=Math.ceil((y+1)/this._rowCount)-1,p=Math.ceil((y+1)%this._rowCount)-1,-1==p&&(p=this._rowCount-1)):(q=Math.ceil((y+1)%this._columnCount)-1,-1==q&&(q=this._columnCount-1),p=Math.ceil((y+1)/this._columnCount)-1),q=q*(this._columnWidth+f)+r,p=p*(this._rowHeight+ k)+h,this.sizeAndPositionElement(n,q,p,this._columnWidth,this.rowHeight),y++);h+=m;k=(this._rowHeight+k)*this._rowCount-k;this.target.setContentSize(Math.ceil((this._columnWidth+f)*this._columnCount-f+(r+l)),Math.ceil(k+h))}}};a.prototype.sizeAndPositionElement=function(a,c,e,f,l){var h=NaN,m=NaN;this.horizontalAlign==d.HorizontalAlign.JUSTIFY?h=f:isNaN(a.percentWidth)||(h=f*a.percentWidth*0.01);this.verticalAlign==d.VerticalAlign.JUSTIFY?m=l:isNaN(a.percentHeight)||(m=l*a.percentHeight*0.01);a.setLayoutBoundsSize(Math.round(h), Math.round(m));h=c;switch(this.horizontalAlign){case d.HorizontalAlign.RIGHT:h+=f-a.layoutBoundsWidth;break;case d.HorizontalAlign.CENTER:h=c+(f-a.layoutBoundsWidth)/2}c=e;switch(this.verticalAlign){case d.VerticalAlign.BOTTOM:c+=l-a.layoutBoundsHeight;break;case d.VerticalAlign.MIDDLE:c+=(l-a.layoutBoundsHeight)/2}a.setLayoutBoundsPosition(Math.round(h),Math.round(c))};a.prototype.adjustForJustify=function(a,c){var d=isNaN(this._padding)?0:this._padding,f=isNaN(this._paddingLeft)?d:this._paddingLeft, l=isNaN(this._paddingRight)?d:this._paddingRight,h=isNaN(this._paddingTop)?d:this._paddingTop,d=isNaN(this._paddingBottom)?d:this._paddingBottom,f=Math.max(0,a-f-l),h=Math.max(0,c-h-d);isNaN(this.explicitVerticalGap)||(this._verticalGap=this.explicitVerticalGap);isNaN(this.explicitHorizontalGap)||(this._horizontalGap=this.explicitHorizontalGap);this._verticalGap=isNaN(this._verticalGap)?0:this._verticalGap;this._horizontalGap=isNaN(this._horizontalGap)?0:this._horizontalGap;h-=this._rowHeight*this._rowCount; f-=this._columnWidth*this._columnCount;0=this._noTopMostIndex&&e=this._topMostIndex&&ethis._noTopMostIndex&&d<=this._topMostIndex?this.topMostIndex++:d>this._topMostIndex&&d<=this._toolTipIndex?this.toolTipIndex++:this.cursorIndex++;return c.prototype.addElementAt.call(this,a,d)};a.prototype.removeElement=function(a){return this.removeElementAt(c.prototype.getElementIndex.call(this,a))};a.prototype.removeElementAt=function(a){var d=c.prototype.removeElementAt.call(this,a);a=this._noTopMostIndex&&a=this._topMostIndex&&a=this._noTopMostIndex&&e=this._topMostIndex&&ea){var b=0.001*(new Date).getTime();a=b-this.time;this.time=b}a*=this.timeScale;b=this._animatableList.length;if(0!=b){for(var c= 0,d=0;dc._pool.indexOf(a)&&(c._pool[c._pool.length]=a);a.clear()};c._clear=function(){for(var a=c._pool.length;a--;)c._pool[a].clear();c._pool.length=0};c.getEaseValue=function(a,b){if(1b&&(d=1-Math.cos(a*c.HALF_PI)-a,b*=-1);return d*b+a};c.prototype.fadeIn=function(a,b, c){this._bone=a;this._animationState=b;this._timeline=c;this._originTransform=this._timeline.originTransform;this._originPivot=this._timeline.originPivot;this._tweenColor=this._tweenTransform=!1;this._totalTime=this._animationState.totalTime;this.transform.x=0;this.transform.y=0;this.transform.scaleX=0;this.transform.scaleY=0;this.transform.skewX=0;this.transform.skewY=0;this.pivot.x=0;this.pivot.y=0;this._durationTransform.x=0;this._durationTransform.y=0;this._durationTransform.scaleX=0;this._durationTransform.scaleY= 0;this._durationTransform.skewX=0;this._durationTransform.skewY=0;this._durationPivot.x=0;this._durationPivot.y=0;this._currentFrame=null;switch(this._timeline.getFrameList().length){case 0:this._bone._arriveAtFrame(null,this,this._animationState,!1);this._updateState=0;break;case 1:this._updateState=-1;break;default:this._updateState=1}};c.prototype.fadeOut=function(){this.transform.skewX=b.TransformUtil.formatRadian(this.transform.skewX);this.transform.skewY=b.TransformUtil.formatRadian(this.transform.skewY)}; c.prototype.update=function(a){if(this._updateState)if(0this._currentFramePosition+this._currentFrameDuration||e=this._timeline.getFrameList().length&&(g=0),this._currentFrame=this._timeline.getFrameList()[g]):(g=0,this._currentFrame=this._timeline.getFrameList()[0]),this._currentFrameDuration=this._currentFrame.duration,this._currentFramePosition=this._currentFrame.position;f&&(this.tweenActive=0<=this._currentFrame.displayIndex,g++,g>=this._timeline.getFrameList().length&&(g=0),f=this._timeline.getFrameList()[g],0==g&&this._animationState.loop&&this._animationState.loopCount>=Math.abs(this._animationState.loop)- 1&&0.99999999<((this._currentFramePosition+this._currentFrameDuration)/this._totalTime+d-this._timeline.offset)*this._timeline.scale?(this._updateState=0,this._tweenEasing=NaN):0>this._currentFrame.displayIndex||0>f.displayIndex||!this._animationState.tweenEnabled?this._tweenEasing=NaN:isNaN(this._animationState.clip.tweenEasing)?this._tweenEasing=this._currentFrame.tweenEasing:this._tweenEasing=this._animationState.clip.tweenEasing,isNaN(this._tweenEasing)?this._tweenColor=this._tweenTransform=!1: (this._durationTransform.x=f.transform.x-this._currentFrame.transform.x,this._durationTransform.y=f.transform.y-this._currentFrame.transform.y,this._durationTransform.skewX=f.transform.skewX-this._currentFrame.transform.skewX,this._durationTransform.skewY=f.transform.skewY-this._currentFrame.transform.skewY,this._durationTransform.scaleX=f.transform.scaleX-this._currentFrame.transform.scaleX,this._durationTransform.scaleY=f.transform.scaleY-this._currentFrame.transform.scaleY,0==g&&(this._durationTransform.skewX= b.TransformUtil.formatRadian(this._durationTransform.skewX),this._durationTransform.skewY=b.TransformUtil.formatRadian(this._durationTransform.skewY)),this._durationPivot.x=f.pivot.x-this._currentFrame.pivot.x,this._durationPivot.y=f.pivot.y-this._currentFrame.pivot.y,this._tweenTransform=0!=this._durationTransform.x||0!=this._durationTransform.y||0!=this._durationTransform.skewX||0!=this._durationTransform.skewY||0!=this._durationTransform.scaleX||0!=this._durationTransform.scaleY||0!=this._durationPivot.x|| 0!=this._durationPivot.y?!0:!1,this._currentFrame.color&&f.color?(this._durationColor.alphaOffset=f.color.alphaOffset-this._currentFrame.color.alphaOffset,this._durationColor.redOffset=f.color.redOffset-this._currentFrame.color.redOffset,this._durationColor.greenOffset=f.color.greenOffset-this._currentFrame.color.greenOffset,this._durationColor.blueOffset=f.color.blueOffset-this._currentFrame.color.blueOffset,this._durationColor.alphaMultiplier=f.color.alphaMultiplier-this._currentFrame.color.alphaMultiplier, this._durationColor.redMultiplier=f.color.redMultiplier-this._currentFrame.color.redMultiplier,this._durationColor.greenMultiplier=f.color.greenMultiplier-this._currentFrame.color.greenMultiplier,this._durationColor.blueMultiplier=f.color.blueMultiplier-this._currentFrame.color.blueMultiplier,this._tweenColor=0!=this._durationColor.alphaOffset||0!=this._durationColor.redOffset||0!=this._durationColor.greenOffset||0!=this._durationColor.blueOffset||0!=this._durationColor.alphaMultiplier||0!=this._durationColor.redMultiplier|| 0!=this._durationColor.greenMultiplier||0!=this._durationColor.blueMultiplier?!0:!1):this._currentFrame.color?(this._tweenColor=!0,this._durationColor.alphaOffset=-this._currentFrame.color.alphaOffset,this._durationColor.redOffset=-this._currentFrame.color.redOffset,this._durationColor.greenOffset=-this._currentFrame.color.greenOffset,this._durationColor.blueOffset=-this._currentFrame.color.blueOffset,this._durationColor.alphaMultiplier=1-this._currentFrame.color.alphaMultiplier,this._durationColor.redMultiplier= 1-this._currentFrame.color.redMultiplier,this._durationColor.greenMultiplier=1-this._currentFrame.color.greenMultiplier,this._durationColor.blueMultiplier=1-this._currentFrame.color.blueMultiplier):f.color?(this._tweenColor=!0,this._durationColor.alphaOffset=f.color.alphaOffset,this._durationColor.redOffset=f.color.redOffset,this._durationColor.greenOffset=f.color.greenOffset,this._durationColor.blueOffset=f.color.blueOffset,this._durationColor.alphaMultiplier=f.color.alphaMultiplier-1,this._durationColor.redMultiplier= f.color.redMultiplier-1,this._durationColor.greenMultiplier=f.color.greenMultiplier-1,this._durationColor.blueMultiplier=f.color.blueMultiplier-1):this._tweenColor=!1),this._tweenTransform||(this._animationState.blend?(this.transform.x=this._originTransform.x+this._currentFrame.transform.x,this.transform.y=this._originTransform.y+this._currentFrame.transform.y,this.transform.skewX=this._originTransform.skewX+this._currentFrame.transform.skewX,this.transform.skewY=this._originTransform.skewY+this._currentFrame.transform.skewY, this.transform.scaleX=this._originTransform.scaleX+this._currentFrame.transform.scaleX,this.transform.scaleY=this._originTransform.scaleY+this._currentFrame.transform.scaleY,this.pivot.x=this._originPivot.x+this._currentFrame.pivot.x,this.pivot.y=this._originPivot.y+this._currentFrame.pivot.y):(this.transform.x=this._currentFrame.transform.x,this.transform.y=this._currentFrame.transform.y,this.transform.skewX=this._currentFrame.transform.skewX,this.transform.skewY=this._currentFrame.transform.skewY, this.transform.scaleX=this._currentFrame.transform.scaleX,this.transform.scaleY=this._currentFrame.transform.scaleY,this.pivot.x=this._currentFrame.pivot.x,this.pivot.y=this._currentFrame.pivot.y)),this._tweenColor||(this._currentFrame.color?this._bone._updateColor(this._currentFrame.color.alphaOffset,this._currentFrame.color.redOffset,this._currentFrame.color.greenOffset,this._currentFrame.color.blueOffset,this._currentFrame.color.alphaMultiplier,this._currentFrame.color.redMultiplier,this._currentFrame.color.greenMultiplier, this._currentFrame.color.blueMultiplier,!0):this._bone._isColorChanged&&this._bone._updateColor(0,0,0,0,1,1,1,1,!1)),this._bone._arriveAtFrame(this._currentFrame,this,this._animationState,!1));if(this._tweenTransform||this._tweenColor)a=(e-this._currentFramePosition)/this._currentFrameDuration,this._tweenEasing&&(a=c.getEaseValue(a,this._tweenEasing));this._tweenTransform&&(d=this._currentFrame.transform,e=this._currentFrame.pivot,this._animationState.blend?(this.transform.x=this._originTransform.x+ d.x+this._durationTransform.x*a,this.transform.y=this._originTransform.y+d.y+this._durationTransform.y*a,this.transform.skewX=this._originTransform.skewX+d.skewX+this._durationTransform.skewX*a,this.transform.skewY=this._originTransform.skewY+d.skewY+this._durationTransform.skewY*a,this.transform.scaleX=this._originTransform.scaleX+d.scaleX+this._durationTransform.scaleX*a,this.transform.scaleY=this._originTransform.scaleY+d.scaleY+this._durationTransform.scaleY*a,this.pivot.x=this._originPivot.x+ e.x+this._durationPivot.x*a,this.pivot.y=this._originPivot.y+e.y+this._durationPivot.y*a):(this.transform.x=d.x+this._durationTransform.x*a,this.transform.y=d.y+this._durationTransform.y*a,this.transform.skewX=d.skewX+this._durationTransform.skewX*a,this.transform.skewY=d.skewY+this._durationTransform.skewY*a,this.transform.scaleX=d.scaleX+this._durationTransform.scaleX*a,this.transform.scaleY=d.scaleY+this._durationTransform.scaleY*a,this.pivot.x=e.x+this._durationPivot.x*a,this.pivot.y=e.y+this._durationPivot.y* a));this._tweenColor&&(this._currentFrame.color?this._bone._updateColor(this._currentFrame.color.alphaOffset+this._durationColor.alphaOffset*a,this._currentFrame.color.redOffset+this._durationColor.redOffset*a,this._currentFrame.color.greenOffset+this._durationColor.greenOffset*a,this._currentFrame.color.blueOffset+this._durationColor.blueOffset*a,this._currentFrame.color.alphaMultiplier+this._durationColor.alphaMultiplier*a,this._currentFrame.color.redMultiplier+this._durationColor.redMultiplier* a,this._currentFrame.color.greenMultiplier+this._durationColor.greenMultiplier*a,this._currentFrame.color.blueMultiplier+this._durationColor.blueMultiplier*a,!0):this._bone._updateColor(this._durationColor.alphaOffset*a,this._durationColor.redOffset*a,this._durationColor.greenOffset*a,this._durationColor.blueOffset*a,1+this._durationColor.alphaMultiplier*a,1+this._durationColor.redMultiplier*a,1+this._durationColor.greenMultiplier*a,1+this._durationColor.blueMultiplier*a,!0))}else this._updateState= 0,this._animationState.blend?(this.transform.copy(this._originTransform),this.pivot.x=this._originPivot.x,this.pivot.y=this._originPivot.y):(this.transform.x=this.transform.y=this.transform.skewX=this.transform.skewY=this.transform.scaleX=this.transform.scaleY=0,this.pivot.x=0,this.pivot.y=0),this._currentFrame=this._timeline.getFrameList()[0],this.tweenActive=0<=this._currentFrame.displayIndex,this._currentFrame.color?this._bone._updateColor(this._currentFrame.color.alphaOffset,this._currentFrame.color.redOffset, this._currentFrame.color.greenOffset,this._currentFrame.color.blueOffset,this._currentFrame.color.alphaMultiplier,this._currentFrame.color.redMultiplier,this._currentFrame.color.greenMultiplier,this._currentFrame.color.blueMultiplier,!0):this._bone._updateColor(0,0,0,0,1,1,1,1,!1),this._bone._arriveAtFrame(this._currentFrame,this,this._animationState,!1)};c.prototype.clear=function(){this._updateState=0;this._originPivot=this._originTransform=this._currentFrame=this._timeline=this._animationState= this._bone=null};c.HALF_PI=0.5*Math.PI;c._pool=[];return c}();c.TimelineState=g;g.prototype.__class__="dragonBones.animation.TimelineState";var n=function(){function a(){this.layer=this.loop=0;this._timelineStates={}}a._borrowObject=function(){return 0==a._pool.length?new a:a._pool.pop()};a._returnObject=function(b){0>a._pool.indexOf(b)&&(a._pool[a._pool.length]=b);b.clear()};a._clear=function(){for(var b=a._pool.length;b--;)a._pool[b].clear();a._pool.length=0};a.prototype.fadeIn=function(a,b,c,d, e,f,g,k){this.layer=f;this.clip=b;this.name=this.clip.name;this.totalTime=this.clip.duration;this._armature=a;2>Math.round(this.clip.duration*this.clip.frameRate)||Infinity==d?(this.timeScale=1,this.currentTime=this.totalTime,this.loop=0<=this.loop?1:-1):(this.timeScale=d,this.currentTime=0,this.loop=e);this._pauseBeforeFadeInComplete=k;this._fadeInTime=c*this.timeScale;this._fadeState=1;this._fadeOutBeginTime=0;this._fadeOutWeight=-1;this._fadeWeight=0;this._fadeIn=!0;this._fadeOut=!1;this.loopCount= -1;this.displayControl=g;this.isPlaying=!0;this.isComplete=!1;this.weight=1;this.tweenEnabled=this.enabled=this.blend=!0;this.updateTimelineStates()};a.prototype.fadeOut=function(a,b){"undefined"===typeof b&&(b=!1);if(this._armature&&!(0<=this._fadeOutWeight)){this._fadeState=-1;this._fadeOutWeight=this._fadeWeight;this._fadeOutTime=a*this.timeScale;this._fadeOutBeginTime=this.currentTime;this._fadeOut=!0;this.isPlaying=!b;this.displayControl=!1;for(var c in this._timelineStates)this._timelineStates[c].fadeOut(); this.enabled=!0}};a.prototype.play=function(){this.isPlaying=!0};a.prototype.stop=function(){this.isPlaying=!1};a.prototype.getMixingTransform=function(a){return this._mixingTransforms?Number(this._mixingTransforms[a]):-1};a.prototype.addMixingTransform=function(a,b,c){"undefined"===typeof b&&(b=2);"undefined"===typeof c&&(c=!0);if(this.clip&&this.clip.getTimeline(a)){this._mixingTransforms||(this._mixingTransforms={});if(c){c=this._armature._boneList.length;for(var d,e;c--;)d=this._armature._boneList[c], d.name==a&&(e=d),e&&(e==d||e.contains(d))&&(this._mixingTransforms[d.name]=b)}else this._mixingTransforms[a]=b;this.updateTimelineStates()}else throw Error();};a.prototype.removeMixingTransform=function(a,b){"undefined"===typeof a&&(a=null);"undefined"===typeof b&&(b=!0);if(a){if(b)for(var c=this._armature._boneList.length,d,e;c--;)d=this._armature._boneList[c],d.name==a&&(e=d),e&&(e==d||e.contains(d))&&delete this._mixingTransforms[d.name];else delete this._mixingTransforms[a];for(var f in this._mixingTransforms){var g= !0;break}g||(this._mixingTransforms=null)}else this._mixingTransforms=null;this.updateTimelineStates()};a.prototype.advanceTime=function(a){if(!this.enabled)return!1;var b,c;this._fadeIn&&(this._fadeIn=!1,this._armature.hasEventListener(f.AnimationEvent.FADE_IN)&&(b=new f.AnimationEvent(f.AnimationEvent.FADE_IN),b.animationState=this,this._armature._eventList.push(b)));this._fadeOut&&(this._fadeOut=!1,this._armature.hasEventListener(f.AnimationEvent.FADE_OUT)&&(b=new f.AnimationEvent(f.AnimationEvent.FADE_OUT), b.animationState=this,this._armature._eventList.push(b)));this.currentTime+=a*this.timeScale;if(this.isPlaying&&!this.isComplete){var d;if(this._pauseBeforeFadeInComplete)this.isPlaying=this._pauseBeforeFadeInComplete=!1,a=0,d=Math.floor(a);else if(a=this.currentTime/this.totalTime,d=Math.floor(a),d!=this.loopCount&&(-1==this.loopCount&&this._armature.hasEventListener(f.AnimationEvent.START)&&(b=new f.AnimationEvent(f.AnimationEvent.START),b.animationState=this,this._armature._eventList.push(b)), this.loopCount=d))this.loop&&this.loopCount*this.loopCount>=this.loop*this.loop-1?(c=!0,a=1,d=0,this._armature.hasEventListener(f.AnimationEvent.COMPLETE)&&(b=new f.AnimationEvent(f.AnimationEvent.COMPLETE),b.animationState=this,this._armature._eventList.push(b))):this._armature.hasEventListener(f.AnimationEvent.LOOP_COMPLETE)&&(b=new f.AnimationEvent(f.AnimationEvent.LOOP_COMPLETE),b.animationState=this,this._armature._eventList.push(b));for(var e in this._timelineStates)this._timelineStates[e].update(a); b=this.clip.getFrameList();if(0this._currentFrame.position+this._currentFrame.duration||a=b.length&&(e=0),this._currentFrame=b[e]):this._currentFrame=b[0];d&&this._armature._arriveAtFrame(this._currentFrame,null,this,!1)}}if(0this._fadeState){if(0==this._fadeOutTime)return this._fadeState=this._fadeWeight=0,this._armature.hasEventListener(f.AnimationEvent.FADE_OUT_COMPLETE)&&(b=new f.AnimationEvent(f.AnimationEvent.FADE_OUT_COMPLETE),b.animationState=this,this._armature._eventList.push(b)),!0;this._fadeWeight=(1-(this.currentTime-this._fadeOutBeginTime)/this._fadeOutTime)*this._fadeOutWeight;if(0>=this._fadeWeight)return this._fadeState=this._fadeWeight= 0,this._armature.hasEventListener(f.AnimationEvent.FADE_OUT_COMPLETE)&&(b=new f.AnimationEvent(f.AnimationEvent.FADE_OUT_COMPLETE),b.animationState=this,this._armature._eventList.push(b)),!0}c&&(this.isComplete=!0,0>this.loop&&this.fadeOut((this._fadeOutWeight||this._fadeInTime)/this.timeScale,!0));return!1};a.prototype.updateTimelineStates=function(){if(this._mixingTransforms){for(var a in this._timelineStates)null==this._mixingTransforms[a]&&this.removeTimelineState(a);for(a in this._mixingTransforms)this._timelineStates[a]|| this.addTimelineState(a)}else for(a in this.clip.getTimelines())this._timelineStates[a]||this.addTimelineState(a)};a.prototype.addTimelineState=function(a){var b=this._armature.getBone(a);if(b){var c=g._borrowObject(),d=this.clip.getTimeline(a);c.fadeIn(b,this,d);this._timelineStates[a]=c}};a.prototype.removeTimelineState=function(a){g._returnObject(this._timelineStates[a]);delete this._timelineStates[a]};a.prototype.clear=function(){this.clip=null;this.enabled=!1;this._mixingTransforms=this._currentFrame= this._armature=null;for(var a in this._timelineStates)this.removeTimelineState(a)};a._pool=[];return a}();c.AnimationState=n;n.prototype.__class__="dragonBones.animation.AnimationState";d=function(){function a(b){this._armature=b;this._animationLayer=[];this._isPlaying=!1;this.animationNameList=[];this.tweenEnabled=!0;this.timeScale=1}a.prototype.getLastAnimationName=function(){return this._lastAnimationState?this._lastAnimationState.name:null};a.prototype.getLastAnimationState=function(){return this._lastAnimationState}; a.prototype.getAnimationDataList=function(){return this._animationDataList};a.prototype.setAnimationDataList=function(a){this._animationDataList=a;this.animationNameList.length=0;for(var b in this._animationDataList)this.animationNameList[this.animationNameList.length]=this._animationDataList[b].name};a.prototype.getIsPlaying=function(){return this._isPlaying&&!this.getIsComplete()};a.prototype.getIsComplete=function(){if(this._lastAnimationState){if(!this._lastAnimationState.isComplete)return!1; for(var a=this._animationLayer.length;a--;)for(var b=this._animationLayer[a],c=b.length;c--;)if(!b[c].isComplete)return!1;return!0}return!1};a.prototype.dispose=function(){if(this._armature){this.stop();for(var a=this._animationLayer.length;a--;){for(var b=this._animationLayer[a],c=b.length;c--;)n._returnObject(b[c]);b.length=0}this._animationLayer.length=0;this.animationNameList.length=0;this.animationNameList=this._animationDataList=this._animationLayer=this._armature=null}};a.prototype.gotoAndPlay= function(b,c,d,e,f,g,k,h,m,s){"undefined"===typeof c&&(c=-1);"undefined"===typeof d&&(d=-1);"undefined"===typeof e&&(e=NaN);"undefined"===typeof f&&(f=0);"undefined"===typeof g&&(g=null);"undefined"===typeof k&&(k=a.SAME_LAYER_AND_GROUP);"undefined"===typeof h&&(h=!0);"undefined"===typeof m&&(m=!0);"undefined"===typeof s&&(s=!0);if(!this._animationDataList)return null;for(var l=this._animationDataList.length,r;l--;)if(this._animationDataList[l].name==b){r=this._animationDataList[l];break}if(!r)return null; this._isPlaying=!0;c=0>c?0>r.fadeInTime?0.3:r.fadeInTime:c;d=0>d?0>r.scale?1:r.scale:d/r.duration;e=isNaN(e)?r.loop:e;f=this.addLayer(f);var v;switch(k){case a.NONE:break;case a.SAME_LAYER:v=this._animationLayer[f];for(l=v.length;l--;)k=v[l],k.fadeOut(c,m);break;case a.SAME_GROUP:for(H=this._animationLayer.length;H--;)for(v=this._animationLayer[H],l=v.length;l--;)k=v[l],k.group==g&&k.fadeOut(c,m);break;case a.ALL:for(var H=this._animationLayer.length;H--;)for(v=this._animationLayer[H],l=v.length;l--;)k= v[l],k.fadeOut(c,m);break;default:for(v=this._animationLayer[f],l=v.length;l--;)k=v[l],k.group==g&&k.fadeOut(c,m)}this._lastAnimationState=n._borrowObject();this._lastAnimationState.group=g;this._lastAnimationState.tweenEnabled=this.tweenEnabled;this._lastAnimationState.fadeIn(this._armature,r,c,1/d,e,f,h,s);this.addState(this._lastAnimationState);e=this._armature._slotList;for(l=e.length;l--;)f=e[l],(f=f.getChildArmature())&&f.animation.gotoAndPlay(b,c);return this._lastAnimationState};a.prototype.play= function(){this._animationDataList&&0!=this._animationDataList.length&&(this._lastAnimationState?this._isPlaying?this.gotoAndPlay(this._lastAnimationState.name):this._isPlaying=!0:this.gotoAndPlay(this._animationDataList[0].name))};a.prototype.stop=function(){this._isPlaying=!1};a.prototype.getState=function(a,b){"undefined"===typeof b&&(b=0);var c=this._animationLayer.length;if(0==c)return null;b>=c&&(b=c-1);c=this._animationLayer[b];if(!c)return null;for(var d=c.length;d--;)if(c[d].name==a)return c[d]; return null};a.prototype.hasAnimation=function(a){for(var b=this._animationDataList.length;b--;)if(this._animationDataList[b].name==a)return!0;return!1};a.prototype.advanceTime=function(a){if(this._isPlaying){a*=this.timeScale;var b=this._armature._boneList.length,c,d,e=b,f,g,k,h,n,m,s,l,q,r,G,J,L,N,F,M,I;for(b--;e--;){g=this._armature._boneList[e];k=g.name;h=1;J=G=r=q=l=s=m=n=0;for(c=this._animationLayer.length;c--;){L=0;N=this._animationLayer[c];f=N.length;for(d=0;d=h)break;else h-=L}I=g.tween;M=g._tweenPivot;I.x=n;I.y=m;I.skewX=s;I.skewY=l;I.scaleX=q;I.scaleY=r;M.x=G;M.y=J}}};a.prototype.addLayer=function(a){a>=this._animationLayer.length&&(a=this._animationLayer.length,this._animationLayer[a]=[]);return a};a.prototype.addState=function(a){this._animationLayer[a.layer].push(a)}; a.prototype.removeState=function(a){var b=a.layer,c=this._animationLayer[b];c.splice(c.indexOf(a),1);n._returnObject(a);0==c.length&&b==this._animationLayer.length-1&&this._animationLayer.length--};a.NONE="none";a.SAME_LAYER="sameLayer";a.SAME_GROUP="sameGroup";a.SAME_LAYER_AND_GROUP="sameLayerAndGroup";a.ALL="all";return a}();c.Animation=d;d.prototype.__class__="dragonBones.animation.Animation"})(d.animation||(d.animation={}));var c=d.animation;(function(a){var c=function(){function a(){this.skewY= this.skewX=this.y=this.x=0;this.scaleY=this.scaleX=1}a.prototype.getRotation=function(){return this.skewX};a.prototype.setRotation=function(a){this.skewX=this.skewY=a};a.prototype.copy=function(a){this.x=a.x;this.y=a.y;this.skewX=a.skewX;this.skewY=a.skewY;this.scaleX=a.scaleX;this.scaleY=a.scaleY};a.prototype.toString=function(){return"[DBTransform (x="+this.x+" y="+this.y+" skewX="+this.skewX+" skewY="+this.skewY+" scaleX="+this.scaleX+" scaleY="+this.scaleY+")]"};return a}();a.DBTransform=c;c.prototype.__class__= "dragonBones.objects.DBTransform";var d=function(){function a(){this.duration=this.position=0}a.prototype.dispose=function(){};return a}();a.Frame=d;d.prototype.__class__="dragonBones.objects.Frame";var f=function(a){function b(){a.call(this);this.displayIndex=this.tweenRotate=this.tweenEasing=0;this.zOrder=NaN;this.visible=!0;this.global=new c;this.transform=new c;this.pivot=new e.Point}__extends(b,a);b.prototype.dispose=function(){a.prototype.dispose.call(this);this.color=this.pivot=this.transform= this.global=null};return b}(d);a.TransformFrame=f;f.prototype.__class__="dragonBones.objects.TransformFrame";var g=function(){function a(){this._frameList=[];this.duration=0;this.scale=1}a.prototype.getFrameList=function(){return this._frameList};a.prototype.dispose=function(){for(var a=this._frameList.length;a--;)this._frameList[a].dispose();this._frameList.length=0;this._frameList=null};a.prototype.addFrame=function(a){if(!a)throw Error();if(0>this._frameList.indexOf(a))this._frameList[this._frameList.length]= a;else throw Error();};return a}();a.Timeline=g;g.prototype.__class__="dragonBones.objects.Timeline";var s=function(a){function b(){a.call(this);this.originTransform=new c;this.originPivot=new e.Point;this.offset=0;this.transformed=!1}__extends(b,a);b.prototype.dispose=function(){this!=b.HIDE_TIMELINE&&(a.prototype.dispose.call(this),this.originPivot=this.originTransform=null)};b.HIDE_TIMELINE=new b;return b}(g);a.TransformTimeline=s;s.prototype.__class__="dragonBones.objects.TransformTimeline";var l= function(a){function b(){a.call(this);this.loop=this.frameRate=0;this.tweenEasing=NaN;this.fadeInTime=0;this._timelines={}}__extends(b,a);b.prototype.getTimelines=function(){return this._timelines};b.prototype.dispose=function(){a.prototype.dispose.call(this);for(var b in this._timelines)this._timelines[b].dispose();this._timelines=null};b.prototype.getTimeline=function(a){return this._timelines[a]};b.prototype.addTimeline=function(a,b){if(!a)throw Error();this._timelines[b]=a};return b}(g);a.AnimationData= l;l.prototype.__class__="dragonBones.objects.AnimationData";var r=function(){function a(){this.transform=new c}a.prototype.dispose=function(){this.pivot=this.transform=null};a.ARMATURE="armature";a.IMAGE="image";return a}();a.DisplayData=r;r.prototype.__class__="dragonBones.objects.DisplayData";var B=function(){function a(){this._displayDataList=[];this.zOrder=0;this.blendMode="normal"}a.prototype.getDisplayDataList=function(){return this._displayDataList};a.prototype.dispose=function(){for(var a= this._displayDataList.length;a--;)this._displayDataList[a].dispose();this._displayDataList.length=0;this._displayDataList=null};a.prototype.addDisplayData=function(a){if(!a)throw Error();if(0>this._displayDataList.indexOf(a))this._displayDataList[this._displayDataList.length]=a;else throw Error();};a.prototype.getDisplayData=function(a){for(var b=this._displayDataList.length;b--;)if(this._displayDataList[b].name==a)return this._displayDataList[b];return null};return a}();a.SlotData=B;B.prototype.__class__= "dragonBones.objects.SlotData";var x=function(){function a(){this.length=0;this.global=new c;this.transform=new c;this.scaleMode=1;this.fixedRotation=!1}a.prototype.dispose=function(){this.transform=this.global=null};return a}();a.BoneData=x;x.prototype.__class__="dragonBones.objects.BoneData";var D=function(){function a(){this._slotDataList=[]}a.prototype.getSlotDataList=function(){return this._slotDataList};a.prototype.dispose=function(){for(var a=this._slotDataList.length;a--;)this._slotDataList[a].dispose(); this._slotDataList.length=0;this._slotDataList=null};a.prototype.getSlotData=function(a){for(var b=this._slotDataList.length;b--;)if(this._slotDataList[b].name==a)return this._slotDataList[b];return null};a.prototype.addSlotData=function(a){if(!a)throw Error();if(0>this._slotDataList.indexOf(a))this._slotDataList[this._slotDataList.length]=a;else throw Error();};return a}();a.SkinData=D;D.prototype.__class__="dragonBones.objects.SkinData";var w=function(){function a(){this._boneDataList=[];this._skinDataList= [];this._animationDataList=[]}a.prototype.getBoneDataList=function(){return this._boneDataList};a.prototype.getSkinDataList=function(){return this._skinDataList};a.prototype.getAnimationDataList=function(){return this._animationDataList};a.prototype.dispose=function(){for(var a=this._boneDataList.length;a--;)this._boneDataList[a].dispose();for(a=this._skinDataList.length;a--;)this._skinDataList[a].dispose();for(a=this._animationDataList.length;a--;)this._animationDataList[a].dispose();this._boneDataList.length= 0;this._skinDataList.length=0;this._animationDataList.length=0;this._animationDataList=this._skinDataList=this._boneDataList=null};a.prototype.getBoneData=function(a){for(var b=this._boneDataList.length;b--;)if(this._boneDataList[b].name==a)return this._boneDataList[b];return null};a.prototype.getSkinData=function(a){if(!a)return this._skinDataList[0];for(var b=this._skinDataList.length;b--;)if(this._skinDataList[b].name==a)return this._skinDataList[b];return null};a.prototype.getAnimationData=function(a){for(var b= this._animationDataList.length;b--;)if(this._animationDataList[b].name==a)return this._animationDataList[b];return null};a.prototype.addBoneData=function(a){if(!a)throw Error();if(0>this._boneDataList.indexOf(a))this._boneDataList[this._boneDataList.length]=a;else throw Error();};a.prototype.addSkinData=function(a){if(!a)throw Error();if(0>this._skinDataList.indexOf(a))this._skinDataList[this._skinDataList.length]=a;else throw Error();};a.prototype.addAnimationData=function(a){if(!a)throw Error(); 0>this._animationDataList.indexOf(a)&&(this._animationDataList[this._animationDataList.length]=a)};a.prototype.sortBoneDataList=function(){var a=this._boneDataList.length;if(0!=a){for(var b=[];a--;){for(var c=this._boneDataList[a],d=0,e=c;e&&e.parent;)d++,e=this.getBoneData(e.parent);b[a]={level:d,boneData:c}}b.sort(this.sortBoneData);for(a=b.length;a--;)this._boneDataList[a]=b[a].boneData}};a.prototype.sortBoneData=function(a,b){return a.level>b.level?1:-1};return a}();a.ArmatureData=w;w.prototype.__class__= "dragonBones.objects.ArmatureData";var A=function(){function a(){this._armatureDataList=[];this._subTexturePivots={}}a.prototype.getArmatureNames=function(){var a=[],b;for(b in this._armatureDataList)a[a.length]=this._armatureDataList[b].name;return a};a.prototype.getArmatureDataList=function(){return this._armatureDataList};a.prototype.dispose=function(){for(var a in this._armatureDataList)this._armatureDataList[a].dispose();this._armatureDataList.length=0;this._subTexturePivots=this._armatureDataList= null};a.prototype.getArmatureData=function(a){for(var b=this._armatureDataList.length;b--;)if(this._armatureDataList[b].name==a)return this._armatureDataList[b];return null};a.prototype.addArmatureData=function(a){if(!a)throw Error();if(0>this._armatureDataList.indexOf(a))this._armatureDataList[this._armatureDataList.length]=a;else throw Error();};a.prototype.removeArmatureData=function(a){a=this._armatureDataList.indexOf(a);0<=a&&this._armatureDataList.splice(a,1)};a.prototype.removeArmatureDataByName= function(a){for(var b=this._armatureDataList.length;b--;)this._armatureDataList[b].name==a&&this._armatureDataList.splice(b,1)};a.prototype.getSubTexturePivot=function(a){return this._subTexturePivots[a]};a.prototype.addSubTexturePivot=function(a,b,c){var d=this._subTexturePivots[c];d?(d.x=a,d.y=b):this._subTexturePivots[c]=d=new e.Point(a,b);return d};a.prototype.removeSubTexturePivot=function(a){if(a)delete this._subTexturePivots[a];else for(a in this._subTexturePivots)delete this._subTexturePivots[a]}; return a}();a.SkeletonData=A;A.prototype.__class__="dragonBones.objects.SkeletonData";g=function(){function a(){}a.parseTextureAtlasData=function(a,c){"undefined"===typeof c&&(c=1);if(!a)throw Error();var d={};d.__name=a[b.ConstValues.A_NAME];var f=a[b.ConstValues.SUB_TEXTURE],g;for(g in f){var k=f[g],n=k[b.ConstValues.A_NAME],k=new e.Rectangle(Number(k[b.ConstValues.A_X])/c,Number(k[b.ConstValues.A_Y])/c,Number(k[b.ConstValues.A_WIDTH])/c,Number(k[b.ConstValues.A_HEIGHT])/c);d[n]=k}return d};a.parseSkeletonData= function(c){if(!c)throw Error();var d=Number(c[b.ConstValues.A_FRAME_RATE]),e=new A;e.name=c[b.ConstValues.A_NAME];c=c[b.ConstValues.ARMATURE];for(var f in c)e.addArmatureData(a.parseArmatureData(c[f],e,d));return e};a.parseArmatureData=function(c,d,e){var f=new w;f.name=c[b.ConstValues.A_NAME];var g=c[b.ConstValues.BONE],k;for(k in g)f.addBoneData(a.parseBoneData(g[k]));g=c[b.ConstValues.SKIN];for(k in g)f.addSkinData(a.parseSkinData(g[k],d));b.DBDataUtil.transformArmatureData(f);f.sortBoneDataList(); c=c[b.ConstValues.ANIMATION];for(k in c)f.addAnimationData(a.parseAnimationData(c[k],f,e));return f};a.parseBoneData=function(c){var d=new x;d.name=c[b.ConstValues.A_NAME];d.parent=c[b.ConstValues.A_PARENT];d.length=Number(c[b.ConstValues.A_LENGTH])||0;var e=Number(c[b.ConstValues.A_SCALE_MODE]);!isNaN(e)&&e&&(d.scaleMode=e);if(e=c[b.ConstValues.A_FIXED_ROTATION])d.fixedRotation=e;a.parseTransform(c[b.ConstValues.TRANSFORM],d.global);d.transform.copy(d.global);return d};a.parseSkinData=function(c, d){var e=new D;e.name=c[b.ConstValues.A_NAME];var f=c[b.ConstValues.SLOT],g;for(g in f)e.addSlotData(a.parseSlotData(f[g],d));return e};a.parseSlotData=function(c,d){var e=new B;e.name=c[b.ConstValues.A_NAME];e.parent=c[b.ConstValues.A_PARENT];e.zOrder=Number(c[b.ConstValues.A_Z_ORDER]);e.blendMode=c[b.ConstValues.A_BLENDMODE];e.blendMode||(e.blendMode="normal");var f=c[b.ConstValues.DISPLAY],g;for(g in f)e.addDisplayData(a.parseDisplayData(f[g],d));return e};a.parseDisplayData=function(c,d){var e= new r;e.name=c[b.ConstValues.A_NAME];e.type=c[b.ConstValues.A_TYPE];e.pivot=d.addSubTexturePivot(0,0,e.name);a.parseTransform(c[b.ConstValues.TRANSFORM],e.transform,e.pivot);return e};a.parseAnimationData=function(c,d,e){var f=new l;f.name=c[b.ConstValues.A_NAME];f.frameRate=e;f.loop=Number(c[b.ConstValues.A_LOOP])||0;f.fadeInTime=Number(c[b.ConstValues.A_FADE_IN_TIME]);f.duration=Number(c[b.ConstValues.A_DURATION])/e;f.scale=Number(c[b.ConstValues.A_SCALE]);if(c.hasOwnProperty(b.ConstValues.A_TWEEN_EASING)){var g= c[b.ConstValues.A_TWEEN_EASING];f.tweenEasing=void 0==g||null==g?NaN:Number(g)}else f.tweenEasing=NaN;a.parseTimeline(c,f,a.parseMainFrame,e);var k,g=c[b.ConstValues.TIMELINE],n;for(n in g)k=g[n],c=a.parseTransformTimeline(k,f.duration,e),k=k[b.ConstValues.A_NAME],f.addTimeline(c,k);b.DBDataUtil.addHideTimeline(f,d);b.DBDataUtil.transformAnimationData(f,d);return f};a.parseTimeline=function(a,c,d,e){var f=0,g;a=a[b.ConstValues.FRAME];for(var k in a)g=d(a[k],e),g.position=f,c.addFrame(g),f+=g.duration; g&&(g.duration=c.duration-g.position)};a.parseTransformTimeline=function(c,d,e){var f=new s;f.duration=d;a.parseTimeline(c,f,a.parseTransformFrame,e);f.scale=Number(c[b.ConstValues.A_SCALE]);f.offset=Number(c[b.ConstValues.A_OFFSET]);return f};a.parseFrame=function(a,c,d){c.duration=Number(a[b.ConstValues.A_DURATION])/d;c.action=a[b.ConstValues.A_ACTION];c.event=a[b.ConstValues.A_EVENT];c.sound=a[b.ConstValues.A_SOUND]};a.parseMainFrame=function(b,c){var e=new d;a.parseFrame(b,e,c);return e};a.parseTransformFrame= function(c,d){var g=new f;a.parseFrame(c,g,d);g.visible=1!=Number(c[b.ConstValues.A_HIDE]);if(c.hasOwnProperty(b.ConstValues.A_TWEEN_EASING)){var k=c[b.ConstValues.A_TWEEN_EASING];g.tweenEasing=void 0==k||null==k?NaN:Number(k)}else g.tweenEasing=0;g.tweenRotate=Number(c[b.ConstValues.A_TWEEN_ROTATE])||0;g.displayIndex=Number(c[b.ConstValues.A_DISPLAY_INDEX])||0;g.zOrder=Number(c[b.ConstValues.A_Z_ORDER])||0;a.parseTransform(c[b.ConstValues.TRANSFORM],g.global,g.pivot);g.transform.copy(g.global);if(k= c[b.ConstValues.COLOR_TRANSFORM])g.color=new e.ColorTransform,g.color.alphaOffset=Number(k[b.ConstValues.A_ALPHA_OFFSET]),g.color.redOffset=Number(k[b.ConstValues.A_RED_OFFSET]),g.color.greenOffset=Number(k[b.ConstValues.A_GREEN_OFFSET]),g.color.blueOffset=Number(k[b.ConstValues.A_BLUE_OFFSET]),g.color.alphaMultiplier=0.01*Number(k[b.ConstValues.A_ALPHA_MULTIPLIER]),g.color.redMultiplier=0.01*Number(k[b.ConstValues.A_RED_MULTIPLIER]),g.color.greenMultiplier=0.01*Number(k[b.ConstValues.A_GREEN_MULTIPLIER]), g.color.blueMultiplier=0.01*Number(k[b.ConstValues.A_BLUE_MULTIPLIER]);return g};a.parseTransform=function(a,c,d){"undefined"===typeof d&&(d=null);a&&(c&&(c.x=Number(a[b.ConstValues.A_X]),c.y=Number(a[b.ConstValues.A_Y]),c.skewX=Number(a[b.ConstValues.A_SKEW_X])*b.ConstValues.ANGLE_TO_RADIAN,c.skewY=Number(a[b.ConstValues.A_SKEW_Y])*b.ConstValues.ANGLE_TO_RADIAN,c.scaleX=Number(a[b.ConstValues.A_SCALE_X]),c.scaleY=Number(a[b.ConstValues.A_SCALE_Y])),d&&(d.x=Number(a[b.ConstValues.A_PIVOT_X]),d.y= Number(a[b.ConstValues.A_PIVOT_Y])))};return a}();a.DataParser=g;g.prototype.__class__="dragonBones.objects.DataParser"})(d.objects||(d.objects={}));var a=d.objects;(function(b){var c=function(b){function c(){b.call(this);this._dataDic={};this._textureAtlasDic={};this._textureAtlasLoadingDic={}}__extends(c,b);c.prototype.getSkeletonData=function(a){return this._dataDic[a]};c.prototype.addSkeletonData=function(a,b){"undefined"===typeof b&&(b=null);if(!a)throw Error();b=b||a.name;if(!b)throw Error("Unnamed data!"); this._dataDic[b]=a};c.prototype.removeSkeletonData=function(a){delete this._dataDic[a]};c.prototype.getTextureAtlas=function(a){return this._textureAtlasDic[a]};c.prototype.addTextureAtlas=function(a,b){"undefined"===typeof b&&(b=null);if(!a)throw Error();b=b||a.name;if(!b)throw Error("Unnamed data!");this._textureAtlasDic[b]=a};c.prototype.removeTextureAtlas=function(a){delete this._textureAtlasDic[a]};c.prototype.dispose=function(a){"undefined"===typeof a&&(a=!0);if(a){for(var b in this._dataDic)this._dataDic[b].dispose(); for(b in this._textureAtlasDic)this._textureAtlasDic[b].dispose()}this._currentTextureAtlasName=this._currentDataName=this._textureAtlasLoadingDic=this._textureAtlasDic=this._dataDic=null};c.prototype.buildArmature=function(b,c,d,e,f){if(d){var g=this._dataDic[d];if(g)var k=g.getArmatureData(b)}else for(d in this._dataDic)if(g=this._dataDic[d],k=g.getArmatureData(b))break;if(!k)return null;this._currentDataName=d;this._currentTextureAtlasName=e||d;e=this._generateArmature();e.name=b;var h,n,m=k.getBoneDataList(), s;for(s in m)n=m[s],h=new r,h.name=n.name,h.fixedRotation=n.fixedRotation,h.scaleMode=n.scaleMode,h.origin.copy(n.transform),k.getBoneData(n.parent)?e.addChild(h,n.parent):e.addChild(h,null);if(c&&c!=b){var l=g.getArmatureData(c);if(!l)for(d in this._dataDic)if(g=this._dataDic[d],l=g.getArmatureData(c))break}l?e.animation.setAnimationDataList(l.getAnimationDataList()):e.animation.setAnimationDataList(k.getAnimationDataList());h=k.getSkinData(f);if(!h)throw Error();b=[];d=h.getSlotDataList();for(s in d)if(g= d[s],h=e.getBone(g.parent)){f=g.getDisplayDataList();c=this._generateSlot();c.name=g.name;c._blendMode=g.blendMode;c._originZOrder=g.zOrder;c._dislayDataList=f;b.length=0;for(g=f.length;g--;)switch(k=f[g],k.type){case a.DisplayData.ARMATURE:(k=this.buildArmature(k.name,null,this._currentDataName,this._currentTextureAtlasName,null))&&(b[g]=k);break;default:b[g]=this._generateDisplay(this._textureAtlasDic[this._currentTextureAtlasName],k.name,k.pivot.x,k.pivot.y)}c.setDisplayList(b);c._changeDisplay(0); h.addChild(c)}e._slotsZOrderChanged=!0;e.advanceTime(0);return e};c.prototype.getTextureDisplay=function(a,b,c,d){if(b)var e=this._textureAtlasDic[b];if(!e&&!b)for(b in this._textureAtlasDic){e=this._textureAtlasDic[b];if(e.getRegion(a))break;e=null}if(e){if(isNaN(c)||isNaN(d))if(b=this._dataDic[b])if(b=b.getSubTexturePivot(a))c=b.x,d=b.y;return this._generateDisplay(e,a,c,d)}return null};c.prototype._generateArmature=function(){return null};c.prototype._generateSlot=function(){return null};c.prototype._generateDisplay= function(a,b,c,d){return null};return c}(f.EventDispatcher);b.BaseFactory=c;c.prototype.__class__="dragonBones.factorys.BaseFactory"})(d.factorys||(d.factorys={}));(function(b){var d=function(){function a(){}a.ANGLE_TO_RADIAN=Math.PI/180;a.DRAGON_BONES="dragonBones";a.ARMATURE="armature";a.SKIN="skin";a.BONE="bone";a.SLOT="slot";a.DISPLAY="display";a.ANIMATION="animation";a.TIMELINE="timeline";a.FRAME="frame";a.TRANSFORM="transform";a.COLOR_TRANSFORM="colorTransform";a.TEXTURE_ATLAS="TextureAtlas"; a.SUB_TEXTURE="SubTexture";a.A_VERSION="version";a.A_IMAGE_PATH="imagePath";a.A_FRAME_RATE="frameRate";a.A_NAME="name";a.A_PARENT="parent";a.A_LENGTH="length";a.A_TYPE="type";a.A_FADE_IN_TIME="fadeInTime";a.A_DURATION="duration";a.A_SCALE="scale";a.A_OFFSET="offset";a.A_LOOP="loop";a.A_EVENT="event";a.A_SOUND="sound";a.A_ACTION="action";a.A_HIDE="hide";a.A_TWEEN_EASING="tweenEasing";a.A_TWEEN_ROTATE="tweenRotate";a.A_DISPLAY_INDEX="displayIndex";a.A_Z_ORDER="z";a.A_BLENDMODE="blendMode";a.A_WIDTH= "width";a.A_HEIGHT="height";a.A_SCALE_MODE="scaleMode";a.A_FIXED_ROTATION="fixedRotation";a.A_X="x";a.A_Y="y";a.A_SKEW_X="skX";a.A_SKEW_Y="skY";a.A_SCALE_X="scX";a.A_SCALE_Y="scY";a.A_PIVOT_X="pX";a.A_PIVOT_Y="pY";a.A_ALPHA_OFFSET="aO";a.A_RED_OFFSET="rO";a.A_GREEN_OFFSET="gO";a.A_BLUE_OFFSET="bO";a.A_ALPHA_MULTIPLIER="aM";a.A_RED_MULTIPLIER="rM";a.A_GREEN_MULTIPLIER="gM";a.A_BLUE_MULTIPLIER="bM";return a}();b.ConstValues=d;d.prototype.__class__="dragonBones.utils.ConstValues";var f=function(){function a(){} a.transformPointWithParent=function(b,c){var d=a._helpMatrix;a.transformToMatrix(c,d);d.invert();var e=b.x,f=b.y;b.x=d.a*e+d.c*f+d.tx;b.y=d.d*f+d.b*e+d.ty;b.skewX=a.formatRadian(b.skewX-c.skewX);b.skewY=a.formatRadian(b.skewY-c.skewY)};a.transformToMatrix=function(a,b){b.a=a.scaleX*Math.cos(a.skewY);b.b=a.scaleX*Math.sin(a.skewY);b.c=-a.scaleY*Math.sin(a.skewX);b.d=a.scaleY*Math.cos(a.skewX);b.tx=a.x;b.ty=a.y};a.formatRadian=function(b){b%=a.DOUBLE_PI;b>Math.PI&&(b-=a.DOUBLE_PI);b<-Math.PI&&(b+=a.DOUBLE_PI); return b};a.DOUBLE_PI=2*Math.PI;a._helpMatrix=new e.Matrix;return a}();b.TransformUtil=f;f.prototype.__class__="dragonBones.utils.TransformUtil";d=function(){function b(){}b.transformArmatureData=function(a){for(var b=a.getBoneDataList(),c=b.length,d,e;c--;)if(d=b[c],d.parent&&(e=a.getBoneData(d.parent)))d.transform.copy(d.global),f.transformPointWithParent(d.transform,e.global)};b.transformArmatureDataAnimations=function(a){for(var c=a.getAnimationDataList(),d=c.length;d--;)b.transformAnimationData(c[d], a)};b.transformAnimationData=function(a,c){for(var d=c.getSkinData(null),e=c.getBoneDataList(),d=d.getSlotDataList(),g=e.length,h,m,s,l,r,C,z,E,v,H;g--;)if(h=e[g],m=a.getTimeline(h.name)){s=null;for(var K in d)if(s=d[K],s.parent==h.name)break;l=h.parent?a.getTimeline(h.parent):null;r=m.getFrameList();E=z=C=null;H=r.length;for(var G=0;GJ&&(v.transform.skewX+=2*Math.PI,v.transform.skewY+=2*Math.PI),1E.tweenRotate&&(v.transform.skewX+=2*Math.PI*(E.tweenRotate+1),v.transform.skewY+=2*Math.PI*(E.tweenRotate+1))):(v.transform.skewX=E.transform.skewX+f.formatRadian(v.transform.skewX-E.transform.skewX),v.transform.skewY=E.transform.skewY+f.formatRadian(v.transform.skewY-E.transform.skewY))}E=v}m.transformed=!0}};b.getTimelineTransform=function(a,b,d){for(var e=a.getFrameList(),g=e.length,h;g--;)if(a=e[g],a.position<=b&&a.position+a.duration>b){h=a.tweenEasing; g==e.length-1||isNaN(h)||b==a.position?d.copy(a.global):(b=(b-a.position)/a.duration,h&&(b=c.TimelineState.getEaseValue(b,h)),e=e[g+1],d.x=a.global.x+(e.global.x-a.global.x)*b,d.y=a.global.y+(e.global.y-a.global.y)*b,d.skewX=f.formatRadian(a.global.skewX+(e.global.skewX-a.global.skewX)*b),d.skewY=f.formatRadian(a.global.skewY+(e.global.skewY-a.global.skewY)*b),d.scaleX=a.global.scaleX+(e.global.scaleX-a.global.scaleX)*b,d.scaleY=a.global.scaleY+(e.global.scaleY-a.global.scaleY)*b);break}};b.addHideTimeline= function(b,c){for(var d=c.getBoneDataList(),e=d.length,f;e--;)f=d[e],f=f.name,b.getTimeline(f)||b.addTimeline(a.TransformTimeline.HIDE_TIMELINE,f)};b._helpTransform1=new a.DBTransform;b._helpTransform2=new a.DBTransform;return b}();b.DBDataUtil=d;d.prototype.__class__="dragonBones.utils.DBDataUtil"})(d.utils||(d.utils={}));var b=d.utils,g=function(){function b(){this.global=new a.DBTransform;this.origin=new a.DBTransform;this.offset=new a.DBTransform;this.tween=new a.DBTransform;this.tween.scaleX= this.tween.scaleY=0;this._globalTransformMatrix=new e.Matrix;this._visible=!0;this._isDisplayOnStage=this._isColorChanged=!1;this._scaleType=0;this.fixedRotation=!1}b.prototype.getVisible=function(){return this._visible};b.prototype.setVisible=function(a){this._visible=a};b.prototype._setParent=function(a){this.parent=a};b.prototype._setArmature=function(a){this.armature&&this.armature._removeDBObject(this);(this.armature=a)&&this.armature._addDBObject(this)};b.prototype.dispose=function(){this._globalTransformMatrix= this.tween=this.offset=this.origin=this.global=this.armature=this.parent=null};b.prototype._update=function(){this.global.scaleX=(this.origin.scaleX+this.tween.scaleX)*this.offset.scaleX;this.global.scaleY=(this.origin.scaleY+this.tween.scaleY)*this.offset.scaleY;if(this.parent){var a=this.origin.x+this.offset.x+this.tween.x,b=this.origin.y+this.offset.y+this.tween.y,c=this.parent._globalTransformMatrix;this._globalTransformMatrix.tx=this.global.x=c.a*a+c.c*b+c.tx;this._globalTransformMatrix.ty=this.global.y= c.d*b+c.b*a+c.ty;this.fixedRotation?(this.global.skewX=this.origin.skewX+this.offset.skewX+this.tween.skewX,this.global.skewY=this.origin.skewY+this.offset.skewY+this.tween.skewY):(this.global.skewX=this.origin.skewX+this.offset.skewX+this.tween.skewX+this.parent.global.skewX,this.global.skewY=this.origin.skewY+this.offset.skewY+this.tween.skewY+this.parent.global.skewY);this.parent.scaleMode>=this._scaleType&&(this.global.scaleX*=this.parent.global.scaleX,this.global.scaleY*=this.parent.global.scaleY)}else this._globalTransformMatrix.tx= this.global.x=this.origin.x+this.offset.x+this.tween.x,this._globalTransformMatrix.ty=this.global.y=this.origin.y+this.offset.y+this.tween.y,this.global.skewX=this.origin.skewX+this.offset.skewX+this.tween.skewX,this.global.skewY=this.origin.skewY+this.offset.skewY+this.tween.skewY;this._globalTransformMatrix.a=this.global.scaleX*Math.cos(this.global.skewY);this._globalTransformMatrix.b=this.global.scaleX*Math.sin(this.global.skewY);this._globalTransformMatrix.c=-this.global.scaleY*Math.sin(this.global.skewX); this._globalTransformMatrix.d=this.global.scaleY*Math.cos(this.global.skewX)};return b}();d.DBObject=g;g.prototype.__class__="dragonBones.DBObject";var s=function(a){function b(c){a.call(this);this._displayBridge=c;this._displayList=[];this._displayIndex=-1;this._scaleType=1;this._offsetZOrder=this._tweenZorder=this._originZOrder=0;this._isHideDisplay=this._isDisplayOnStage=!1;this._blendMode="normal";this._displayBridge.updateBlendMode(this._blendMode)}__extends(b,a);b.prototype.getZOrder=function(){return this._originZOrder+ this._tweenZorder+this._offsetZOrder};b.prototype.setZOrder=function(a){this.getZOrder()!=a&&(this._offsetZOrder=a-this._originZOrder-this._tweenZorder,this.armature&&(this.armature._slotsZOrderChanged=!0))};b.prototype.getDisplay=function(){var a=this._displayList[this._displayIndex];return a instanceof l?a.getDisplay():a};b.prototype.setDisplay=function(a){this._displayList[this._displayIndex]=a;this._setDisplay(a)};b.prototype.getBlendMode=function(){return this._blendMode};b.prototype.setBlendMode= function(a){this._blendMode!=a&&(this._blendMode=a,this._displayBridge.getDisplay()&&this._displayBridge.updateBlendMode(this._blendMode))};b.prototype.getChildArmature=function(){var a=this._displayList[this._displayIndex];return a instanceof l?a:null};b.prototype.setChildArmature=function(a){(this._displayList[this._displayIndex]=a)&&this._setDisplay(a.getDisplay())};b.prototype.getDisplayList=function(){return this._displayList};b.prototype.setDisplayList=function(a){if(!a)throw Error();for(var b= this._displayList.length=a.length;b--;)this._displayList[b]=a[b];0<=this._displayIndex&&(a=this._displayIndex,this._displayIndex=-1,this._changeDisplay(a))};b.prototype._setDisplay=function(a){this._displayBridge.getDisplay()?this._displayBridge.setDisplay(a):(this._displayBridge.setDisplay(a),this.armature&&(this._displayBridge.addDisplay(this.armature.getDisplay(),-1),this.armature._slotsZOrderChanged=!0));this.updateChildArmatureAnimation();a&&this._displayBridge.updateBlendMode(this._blendMode); !this._isHideDisplay&&this._displayBridge.getDisplay()?this._isDisplayOnStage=!0:this._isDisplayOnStage=!1};b.prototype._changeDisplay=function(a){if(0>a)this._isHideDisplay||(this._isHideDisplay=!0,this._displayBridge.removeDisplay(),this.updateChildArmatureAnimation());else{if(this._isHideDisplay){this._isHideDisplay=!1;var b=!0;this.armature&&(this._displayBridge.addDisplay(this.armature.getDisplay(),-1),this.armature._slotsZOrderChanged=!0)}var c=this._displayList.length;a>=c&&0this._slotList.indexOf(a)&&(this._slotList[this._slotList.length]=a):a instanceof r&&0>this._boneList.indexOf(a)&& (this._boneList[this._boneList.length]=a,this._sortBoneList())};b.prototype._removeDBObject=function(a){a instanceof s?(a=this._slotList.indexOf(a),0<=a&&this._slotList.splice(a,1)):a instanceof r&&(a=this._boneList.indexOf(a),0<=a&&this._boneList.splice(a,1))};b.prototype._sortBoneList=function(){var a=this._boneList.length;if(0!=a){for(var b=[],c,d,e;a--;){c=0;for(e=d=this._boneList[a];e;)c++,e=e.parent;b[a]={level:c,bone:d}}b.sort(this.sortBone);for(a=b.length;a--;)this._boneList[a]=b[a].bone}}; b.prototype._arriveAtFrame=function(a,c,d,e){a.event&&this.hasEventListener(f.FrameEvent.ANIMATION_FRAME_EVENT)&&(c=new f.FrameEvent(f.FrameEvent.ANIMATION_FRAME_EVENT),c.animationState=d,c.frameLabel=a.event,this._eventList.push(c));a.sound&&b._soundManager.hasEventListener(f.SoundEvent.SOUND)&&(c=new f.SoundEvent(f.SoundEvent.SOUND),c.armature=this,c.animationState=d,c.sound=a.sound,b._soundManager.dispatchEvent(c));a.action&&d.isPlaying&&this.animation.gotoAndPlay(a.action)};b.prototype.sortSlot= function(a,b){return a.getZOrder()c?a.addChild(this._display):a.addChildAt(this._display,Math.min(c,a.numChildren)))};a.prototype.removeDisplay=function(){this._display&&this._display._parent&&this._display._parent.removeChild(this._display)};a.RADIAN_TO_ANGLE=180/Math.PI;return a}();d.DragonBonesEgretBridge=c;c.prototype.__class__="dragonBones.display.DragonBonesEgretBridge"})(d.display||(d.display={}));var e=d.display;(function(e){var c=function(){function a(a, c,e){"undefined"===typeof e&&(e=1);this.texture=a;this.textureAtlasRawData=c;this._textureData={};this.scale=e;this.name=c[d.utils.ConstValues.A_NAME];this.parseData(c);this.spriteSheet=new egret.SpriteSheet(a)}a.prototype.getTexture=function(a){var c=this.spriteSheet.getTexture(a);c||(c=this._textureData[a],c=this.spriteSheet.createTexture(a,c.x,c.y,c.width,c.height));return c};a.prototype.dispose=function(){this.texture=null};a.prototype.getRegion=function(a){throw Error("error");};a.prototype.parseData= function(a){for(var c=a.SubTexture.length,d=0;d=b&&(this.queueIndex=0);c=this.itemListDic[a[this.queueIndex]];if(0>16)+","+((d&65280)>>8)+","+(d&255)+","+c+")";this.fillStyleColor=a;this.commandQueue.push(new e(this._setStyle,this,[a]))};d.drawRect=function(d,c,a,b){this.commandQueue.push(new e(function(a,b,c,d){var e=this.renderContext;this.canvasContext.beginPath();this.canvasContext.rect(e._transformTx+a,e._transformTy+b,c,d);this.canvasContext.closePath()},this,[d,c,a,b]));this._fill()};d.drawCircle=function(d,c,a){this.commandQueue.push(new e(function(a, c,d){var e=this.renderContext;this.canvasContext.beginPath();this.canvasContext.arc(e._transformTx+a,e._transformTy+c,d,0,2*Math.PI);this.canvasContext.closePath()},this,[d,c,a]));this._fill()};d.lineStyle=function(d,c,a,b,g,s,r,l){"undefined"===typeof d&&(d=NaN);"undefined"===typeof c&&(c=0);"undefined"===typeof a&&(a=1);"undefined"===typeof b&&(b=!1);"undefined"===typeof g&&(g="normal");"undefined"===typeof s&&(s=null);"undefined"===typeof r&&(r=null);"undefined"===typeof l&&(l=3);this.strokeStyleColor&& (this.createEndLineCommand(),this.commandQueue.push(this.endLineCommand));this.strokeStyleColor=c="rgba("+(c>>16)+","+((c&65280)>>8)+","+(c&255)+","+a+")";this.commandQueue.push(new e(function(a,b){this.canvasContext.lineWidth=a;this.canvasContext.strokeStyle=b;this.canvasContext.beginPath()},this,[d,c]));"undefined"===typeof this.lineX&&(this.lineY=this.lineX=0);this.moveTo(this.lineX,this.lineY)};d.lineTo=function(d,c){this.commandQueue.push(new e(function(a,b){var c=this.renderContext;this.canvasContext.lineTo(c._transformTx+ a,c._transformTy+b)},this,[d,c]));this.lineX=d;this.lineY=c};d.curveTo=function(d,c,a,b){this.commandQueue.push(new e(function(a,b,c,d){var e=this.renderContext;this.canvasContext.quadraticCurveTo(e._transformTx+a,e._transformTy+b,c,d)},this,[d,c,a,b]));this.lineX=a;this.lineY=b};d.moveTo=function(d,c){this.commandQueue.push(new e(function(a,b){var c=this.renderContext;this.canvasContext.moveTo(c._transformTx+a,c._transformTy+b)},this,[d,c]))};d.clear=function(){this.lineY=this.lineX=this.commandQueue.length= 0;this.fillStyleColor=this.strokeStyleColor=null};d.createEndFillCommand=function(){this.endFillCommand||(this.endFillCommand=new e(function(){this.canvasContext.fill();this.canvasContext.closePath()},this,null))};d.endFill=function(){null!=this.fillStyleColor&&this._fill();this.fillStyleColor=null};d._fill=function(){this.fillStyleColor&&(this.createEndFillCommand(),this.commandQueue.push(this.endFillCommand))};d.createEndLineCommand=function(){this.endLineCommand||(this.endLineCommand=new e(function(){this.canvasContext.stroke(); this.canvasContext.closePath()},this,null))};d._draw=function(d){this.renderContext=d;d=this.canvasContext=this.renderContext.canvasContext;d.save();var c=this.commandQueue.length;this.strokeStyleColor&&0=this.size)this._draw(),this.currentBaseTexture=a.webGLTexture;var q=this.worldTransform,p=q.a,t=q.b,y=q.c,B=q.d,x=q.tx,D=q.ty;0==l&&0==h||q.append(1,0,0,1,l,h);1==e/m&&1==f/ k||q.append(m/e,0,0,k/f,0,0);l=q.a;h=q.b;m=q.c;k=q.d;var n=q.tx,w=q.ty;q.a=p;q.b=t;q.c=y;q.d=B;q.tx=x;q.ty=D;p=a._sourceWidth;t=a._sourceHeight;a=e;q=f;b/=p;c/=t;e/=p;f/=t;p=this.vertices;t=4*this.currentBatchSize*this.vertSize;y=this.worldAlpha;p[t++]=n;p[t++]=w;p[t++]=b;p[t++]=c;p[t++]=y;p[t++]=16777215;p[t++]=l*a+n;p[t++]=h*a+w;p[t++]=e+b;p[t++]=c;p[t++]=y;p[t++]=16777215;p[t++]=l*a+m*q+n;p[t++]=k*q+h*a+w;p[t++]=e+b;p[t++]=f+c;p[t++]=y;p[t++]=16777215;p[t++]=m*q+n;p[t++]=k*q+w;p[t++]=b;p[t++]= f+c;p[t++]=y;p[t++]=16777215;this.currentBatchSize++}};c.prototype._draw=function(){if(0!=this.currentBatchSize&&!this.contextLost){var a=d.getTimer();this.start();var b=this.gl;b.bindTexture(b.TEXTURE_2D,this.currentBaseTexture);var c=this.vertices.subarray(0,4*this.currentBatchSize*this.vertSize);b.bufferSubData(b.ARRAY_BUFFER,0,c);b.drawElements(b.TRIANGLES,6*this.currentBatchSize,b.UNSIGNED_SHORT,0);this.currentBatchSize=0;this.renderCost+=d.getTimer()-a;d.Profiler.getInstance().onDrawImage()}}; c.prototype.setTransform=function(a){var b=this.worldTransform;b.a=a.a;b.b=a.b;b.c=a.c;b.d=a.d;b.tx=a.tx;b.ty=a.ty};c.prototype.setAlpha=function(a,b){this.worldAlpha=a;b&&this.setBlendMode(b)};c.prototype.createWebGLTexture=function(a){if(!a.webGLTexture){var b=this.gl;a.webGLTexture=b.createTexture();b.bindTexture(b.TEXTURE_2D,a.webGLTexture);b.pixelStorei(b.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);b.texImage2D(b.TEXTURE_2D,0,b.RGBA,b.RGBA,b.UNSIGNED_BYTE,a._bitmapData);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MAG_FILTER, b.LINEAR);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MIN_FILTER,b.LINEAR);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_S,b.CLAMP_TO_EDGE);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_T,b.CLAMP_TO_EDGE);b.bindTexture(b.TEXTURE_2D,null)}};c.prototype.pushMask=function(a){this._draw();var b=this.gl;0==this.maskList.length&&(b.enable(b.STENCIL_TEST),b.stencilFunc(b.ALWAYS,1,1));var c=this.maskDataFreeList.pop();c?(c.x=a.x,c.y=a.y,c.w=a.width,c.h=a.height):c={x:a.x,y:a.y,w:a.width,h:a.height};this.maskList.push(c); b.colorMask(!1,!1,!1,!1);b.stencilOp(b.KEEP,b.KEEP,b.INCR);this.renderGraphics(c);b.colorMask(!0,!0,!0,!0);b.stencilFunc(b.NOTEQUAL,0,this.maskList.length);b.stencilOp(b.KEEP,b.KEEP,b.KEEP)};c.prototype.popMask=function(){this._draw();var a=this.gl,b=this.maskList.pop();b&&(a.colorMask(!1,!1,!1,!1),a.stencilOp(a.KEEP,a.KEEP,a.DECR),this.renderGraphics(b),a.colorMask(!0,!0,!0,!0),a.stencilFunc(a.NOTEQUAL,0,this.maskList.length),a.stencilOp(a.KEEP,a.KEEP,a.KEEP),this.maskDataFreeList.push(b));0==this.maskList.length&& a.disable(a.STENCIL_TEST)};c.prototype.setupFont=function(a){var b=this.canvasContext,c=a.italic?"italic ":"normal ",c=c+(a.bold?"bold ":"normal "),c=c+(a.size+"px "+a.fontFamily);b.font=c;b.textAlign="left";b.textBaseline="middle"};c.prototype.measureText=function(a){return this.canvasContext.measureText(a).width};c.prototype.renderGraphics=function(a){var b=this.gl,c=this.shaderManager.primitiveShader;this.graphicsPoints?(this.graphicsPoints.length=0,this.graphicsIndices.length=0):(this.graphicsPoints= [],this.graphicsIndices=[],this.graphicsBuffer=b.createBuffer(),this.graphicsIndexBuffer=b.createBuffer());this.updateGraphics(a);this.shaderManager.activateShader(c);b.blendFunc(b.ONE,b.ONE_MINUS_SRC_ALPHA);b.uniformMatrix3fv(c.translationMatrix,!1,this.worldTransform.toArray(!0));b.uniform2f(c.projectionVector,this.projectionX,-this.projectionY);b.uniform2f(c.offsetVector,0,0);b.uniform3fv(c.tintColor,[1,1,1]);b.uniform1f(c.alpha,this.worldAlpha);b.bindBuffer(b.ARRAY_BUFFER,this.graphicsBuffer); b.vertexAttribPointer(c.aVertexPosition,2,b.FLOAT,!1,24,0);b.vertexAttribPointer(c.colorAttribute,4,b.FLOAT,!1,24,8);b.bindBuffer(b.ELEMENT_ARRAY_BUFFER,this.graphicsIndexBuffer);b.drawElements(b.TRIANGLE_STRIP,this.graphicsIndices.length,b.UNSIGNED_SHORT,0);this.shaderManager.activateShader(this.shaderManager.defaultShader)};c.prototype.updateGraphics=function(a){var b=this.gl;this.buildRectangle(a);b.bindBuffer(b.ARRAY_BUFFER,this.graphicsBuffer);b.bufferData(b.ARRAY_BUFFER,new Float32Array(this.graphicsPoints), b.STATIC_DRAW);b.bindBuffer(b.ELEMENT_ARRAY_BUFFER,this.graphicsIndexBuffer);b.bufferData(b.ELEMENT_ARRAY_BUFFER,new Uint16Array(this.graphicsIndices),b.STATIC_DRAW)};c.prototype.buildRectangle=function(a){var b=a.x,c=a.y,d=a.w;a=a.h;var e=this.graphicsPoints,f=this.graphicsIndices,h=e.length/6;e.push(b,c);e.push(0,0,0,1);e.push(b+d,c);e.push(0,0,0,1);e.push(b,c+a);e.push(0,0,0,1);e.push(b+d,c+a);e.push(0,0,0,1);f.push(h,h,h+1,h+2,h+3,h+3)};c.blendModesWebGL={};return c}(d.RendererContext);d.WebGLRenderer= e;e.prototype.__class__="egret.WebGLRenderer"})(egret||(egret={})); (function(d){var e=function(){function d(){}d.compileProgram=function(c,a,b){b=d.compileFragmentShader(c,b);a=d.compileVertexShader(c,a);var e=c.createProgram();c.attachShader(e,a);c.attachShader(e,b);c.linkProgram(e);c.getProgramParameter(e,c.LINK_STATUS)||console.log("\u65e0\u6cd5\u521d\u59cb\u5316\u7740\u8272\u5668");return e};d.compileFragmentShader=function(c,a){return d._compileShader(c,a,c.FRAGMENT_SHADER)};d.compileVertexShader=function(c,a){return d._compileShader(c,a,c.VERTEX_SHADER)};d._compileShader= function(c,a,b){b=c.createShader(b);c.shaderSource(b,a);c.compileShader(b);return c.getShaderParameter(b,c.COMPILE_STATUS)?b:(console.log(c.getShaderInfoLog(b)),null)};d.checkCanUseWebGL=function(){if(void 0==d.canUseWebGL)try{var c=document.createElement("canvas");d.canUseWebGL=!!window.WebGLRenderingContext&&!(!c.getContext("webgl")&&!c.getContext("experimental-webgl"))}catch(a){d.canUseWebGL=!1}return d.canUseWebGL};return d}();d.WebGLUtils=e;e.prototype.__class__="egret.WebGLUtils"})(egret||(egret= {})); (function(d){var e=function(){function a(a){this.maxAttibs=10;this.attribState=[];this.tempAttribState=[];for(var c=0;ca.x||0>a.y||a.x>this.canvas.width||a.y>this.canvas.height?!0:!1};c.prototype.dispatchLeaveStageEvent=function(){d.MainContext.instance.stage.dispatchEventWith(d.Event.LEAVE_STAGE)};c.prototype._onTouchBegin=function(a){var b=this.getLocation(this.canvas,a),c=-1;a.hasOwnProperty("identifier")&&(c=a.identifier);this.onTouchBegan(b.x,b.y,c)};c.prototype._onTouchMove=function(a){var b=this.getLocation(this.canvas, a),c=-1;a.hasOwnProperty("identifier")&&(c=a.identifier);this.onTouchMove(b.x,b.y,c)};c.prototype._onTouchEnd=function(a){var b=this.getLocation(this.canvas,a),c=-1;a.hasOwnProperty("identifier")&&(c=a.identifier);this.onTouchEnd(b.x,b.y,c)};c.prototype.getLocation=function(a,b){var c=document.documentElement,e=window,f,l;"function"===typeof a.getBoundingClientRect?(l=a.getBoundingClientRect(),f=l.left,l=l.top):l=f=0;f+=e.pageXOffset-c.clientLeft;l+=e.pageYOffset-c.clientTop;null!=b.pageX?(c=b.pageX, e=b.pageY):(f-=document.body.scrollLeft,l-=document.body.scrollTop,c=b.clientX,e=b.clientY);var h=d.Point.identity;h.x=(c-f)/d.StageDelegate.getInstance().getScaleX();h.y=(e-l)/d.StageDelegate.getInstance().getScaleY();return h};return c}(d.TouchContext);d.HTML5TouchContext=e;e.prototype.__class__="egret.HTML5TouchContext"})(egret||(egret={})); __extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){var e=function(e){function c(){e.call(this);this._isSupportDOMParser=this._xmlDict=this._parser=null;this._xmlDict={};window.DOMParser?(this._isSupportDOMParser=!0,this._parser=new DOMParser):this._isSupportDOMParser=!1}__extends(c,e);c.getInstance=function(){c._instance||(c._instance=new c);return c._instance};c.prototype.parserXML=function(a){for(var b=0;"\n"==a.charAt(b)||"\t"==a.charAt(b)||"\r"==a.charAt(b)||" "==a.charAt(b);)b++;0!=b&&(a=a.substring(b,a.length));this._isSupportDOMParser? b=this._parser.parseFromString(a,"text/xml"):(b=new ActiveXObject("Microsoft.XMLDOM"),b.async="false",b.loadXML(a));null==b&&d.Logger.info("xml not found!");return b};c._instance=null;return c}(d.HashObject);d.SAXParser=e;e.prototype.__class__="egret.SAXParser"})(egret||(egret={})); var __extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f},LoadingUI=function(d){function e(){d.call(this);this.createView()}__extends(e,d);e.prototype.createView=function(){this.textField=new egret.TextField;this.addChild(this.textField);this.textField.y=300;this.textField.width=480;this.textField.height=100;this.textField.textAlign="center"};e.prototype.setProgress=function(d,c){this.textField.text= "\u6e38\u620f\u52a0\u8f7d\u4e2d..."+d+"/"+c};return e}(egret.Sprite);LoadingUI.prototype.__class__="LoadingUI";var catgame;(function(d){var e=function(){function d(){}d.hitTest=function(c,a){var b=c.getBounds(),d=a.getBounds();b.x=c.x;b.y=c.y;d.x=a.x;d.y=a.y;return b.intersects(d)};return d}();d.GameUtil=e;e.prototype.__class__="catgame.GameUtil";d.createBitmapByName=function(d){var c=new egret.Bitmap;d=RES.getRes(d);c.texture=d;return c}})(catgame||(catgame={})); var __extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f},GameApp=function(d){function e(){d.call(this);this.addEventListener(egret.Event.ADDED_TO_STAGE,this.onAddToStage,this)}__extends(e,d);e.prototype.onAddToStage=function(d){this.loadingView=new LoadingUI;this.stage.addChild(this.loadingView);RES.addEventListener(RES.ResourceEvent.CONFIG_COMPLETE,this.onConfigComplete,this);RES.loadConfig("resource/resource.json", "resource/")};e.prototype.onConfigComplete=function(d){RES.removeEventListener(RES.ResourceEvent.CONFIG_COMPLETE,this.onConfigComplete,this);RES.addEventListener(RES.ResourceEvent.GROUP_COMPLETE,this.onResourceLoadComplete,this);RES.addEventListener(RES.ResourceEvent.GROUP_PROGRESS,this.onResourceProgress,this);RES.loadGroup("preload",0)};e.prototype.onResourceLoadComplete=function(d){"preload"==d.groupName&&(this.stage.removeChild(this.loadingView),RES.removeEventListener(RES.ResourceEvent.GROUP_COMPLETE, this.onResourceLoadComplete,this),RES.removeEventListener(RES.ResourceEvent.GROUP_PROGRESS,this.onResourceProgress,this),this.showfirstpage())};e.prototype.onResourceProgress=function(d){"preload"==d.groupName&&this.loadingView.setProgress(d.itemsLoaded,d.itemsTotal)};e.prototype.showfirstpage=function(){e.stageW=this.stage.stageWidth;e.stageH=this.stage.stageHeight;this.sky=catgame.createBitmapByName("rfbg");this.sky.width=e.stageW;this.sky.height=e.stageH;this.addChild(this.sky);var d=catgame.createBitmapByName("pic"); d.x=(e.stageW-d.width)/2;d.y=0.5*(e.stageH-d.height);this.addChild(d);d=catgame.createBitmapByName("title");d.x=(e.stageW-d.width)/2;d.y=0.2*(e.stageH-625)+25;this.addChild(d);d=catgame.createBitmapByName("txt");d.x=(e.stageW-d.width)/2;d.y=e.stageH-40;this.addChild(d);this.btnStart=catgame.createBitmapByName("btnStart");this.btnStart.x=(e.stageW-this.btnStart.width)/2;this.btnStart.y=0.8*(e.stageH-this.btnStart.height);this.btnStart.touchEnabled=!0;this.btnStart.addEventListener(egret.TouchEvent.TOUCH_TAP, this.gameStart,this);this.addChild(this.btnStart)};e.prototype.gameStart=function(d){this.btnStart.removeEventListener(egret.TouchEvent.TOUCH_TAP,this.gameStart,this);this.removeChild(this.sky);this.removeChild(this.btnStart);this.createGameScene()};e.prototype.createGameScene=function(){for(;this.numChildren;)this.removeChildAt(0);var d=new catgame.GameContainer;d.y=0.36*(this.stage.stageHeight-800);this.addChild(d)};e.getw=function(){return e.stageW};e.geth=function(){return e.stageH};return e}(egret.DisplayObjectContainer); GameApp.prototype.__class__="GameApp";__extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){var e=function(d){function c(){d.call(this);var a=RES.getRes("gz1_json"),b=RES.getRes("gz1_png");this.gzp1_mc=new egret.MovieClip(a,b);this.gzp1_mc.setInterval(3);this.gzp1_mc.scaleX=-1;this.gzp1_mc.gotoAndPlay("guizitaopao");a=RES.getRes("gz2_json");b=RES.getRes("gz2_png");this.gzp2_mc=new egret.MovieClip(a,b);this.gzp2_mc.setInterval(3);this.gzp2_mc.scaleX=-1;this.gzp2_mc.gotoAndPlay("guizitaopao2");a=RES.getRes("yw_json");b=RES.getRes("yw_png");this.yw_mc=new egret.MovieClip(a,b); this.yw_mc.setInterval(3);this.yw_mc.y=30;this.yw_mc.scaleX=-1;this.yw_mc.gotoAndPlay("yanwu");this.gz1_sp=new egret.Sprite;this.gz1_sp.addChild(this.gzp1_mc);this.addChild(this.gz1_sp);this.gz2_sp=new egret.Sprite;this.gz2_sp.addChild(this.gzp2_mc);this.gz2_sp.x=50;this.addChild(this.gz2_sp);this.yw_sp=new egret.Sprite;this.yw_sp.addChild(this.yw_mc);this.yw_sp.x=-50;this.addChild(this.yw_sp)}__extends(c,d);c.prototype.setright=function(){this.gzp1_mc.scaleX=1;this.gz1_sp.x=0;this.yw_mc.scaleX=1; this.gz2_sp.x=50;this.yw_mc.scaleX=1;this.yw_sp.x=100};c.prototype.setleft=function(){this.gzp1_mc.scaleX=-1;this.yw_mc.scaleX=-1;this.gz2_sp.x=50;this.yw_mc.scaleX=-1;this.yw_sp.x=100};return c}(egret.Sprite);d.Enemy=e;e.prototype.__class__="catgame.Enemy"})(catgame||(catgame={}));__extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){var e=function(d){function c(a,b,c){this.curr_id=c;c=RES.getRes("pot"+(2*this.curr_id-1));this.posx=a;this.posy=b;d.call(this,c);this.fill=!1}__extends(c,d);c.prototype.doFillPot=function(){this.texture=RES.getRes("pot2");this.fill=!0};c.prototype.clean=function(){this.prenode=null};c.prototype.getPos=function(){return[this.posx,this.posy]};c.prototype.isFill=function(){return this.fill};return c}(egret.Bitmap);d.Node=e;e.prototype.__class__="catgame.Node"})(catgame||(catgame={})); __extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){var e=function(e){function c(){e.call(this);this.max_id=3;this.isWin=0;this.addEventListener(egret.Event.ADDED_TO_STAGE,this.onAddToStage,this)}__extends(c,e);c.prototype.onAddToStage=function(a){this.removeEventListener(egret.Event.ADDED_TO_STAGE,this.onAddToStage,this);this.createGameScene()};c.prototype.createGameScene=function(){this.width=480;this.height=800;this.scenepanel=new d.ScenePanel;this.addChild(this.scenepanel);this.map=new d.Map;this.addChild(this.map);this.map.addEventListener("nodeClick", this.onNodeClick,this);this.map.addEventListener("weizhu",this.onWeiZhu,this);this.cat=new d.Cat;this.cat.addEventListener("catRun",this.onCatRun,this);this.sharepanel=new d.sharepanel;this.sharepanel.addEventListener("sharenewevent",this.doSharenew,this);this.endpanel=new d.EndPanel;this.endpanel.addEventListener("shareEvent",this.doShare,this);this.endpanel.addEventListener("replayEvent",this.doRestart,this);var a=d.createBitmapByName("txt");a.x=5;a.y=0.36*(810-GameApp.geth());this.addChild(a); this.gameStart(null)};c.prototype.onWeiZhu=function(a){this.cat.weizhu()};c.prototype.doShare=function(a){a=this.endpanel.getname();share(this.map.tap,this.isWin,0,a)};c.prototype.doSharenew=function(a){a=this.sharepanel.gettag();var b=this.endpanel.getname();share(this.map.tap,this.isWin,a,b);this.sharepanel.parent&&this.removeChild(this.sharepanel)};c.prototype.doRestart=function(a){this.gameStart(null)};c.prototype.gameStart=function(a){this.curr_id=Math.ceil(this.max_id*Math.random());this.scenepanel.show(this.curr_id); this.map.init(this.curr_id);this.map.unlock();this.cat.init();this.cat.node=this.map.getNode([4,4]);a=this.map.coverPos2Point([4,4]);this.cat.x=a[0];this.cat.y=a[1]+10;this.addChild(this.cat);this.endpanel.parent&&this.removeChild(this.endpanel);this.sharepanel.parent&&this.removeChild(this.sharepanel);this.map.unlock();this.isWin=0};c.prototype.onNodeClick=function(a){if(this.map.isExit(this.cat.node))this.showResult(!1);else if(this.map.lock(),a=this.map.findPath(this.cat.node),a.length){a=a[0]; var b=this.map.coverPos2Point(a);this.cat.node=this.map.getNode(a);this.cat.run(b)}else this.showResult(!0)};c.prototype.onCatRun=function(a){this.map.unlock()};c.prototype.showResult=function(a){this.isWin=a?1:2;this.map.lock();this.endpanel.score(this.map.tap,a,this.map.orgnum);this.addChild(this.endpanel);this.scenepanel.myclear()};c.yscale=0.36;return c}(egret.DisplayObjectContainer);d.GameContainer=e;e.prototype.__class__="catgame.GameContainer"})(catgame||(catgame={})); __extends=this.__extends||function(d,e){function f(){this.constructor=d}for(var c in e)e.hasOwnProperty(c)&&(d[c]=e[c]);f.prototype=e.prototype;d.prototype=new f}; (function(d){var e=function(e){function c(){e.call(this);this.map=[];this.mapsize=9;this.playTurn=!0;this.block=0.2;this.orgnum=this.tap=0;this.width=480;this.height=800;this.yoffset=GameApp.geth()*(1-d.GameContainer.yscale)/2+80;336c;c++){var d=b[c];0<=d[0]&&0<=d[1]&&d[0]this.yofftop?0:this.yofftop;this.morebtn=this.createBitmapByName("down");this.morebtn.x=(GameApp.getw()-this.morebtn.width)/2;this.morebtn.y=this.yoffset-this.morebtn.height;this.morebtn.touchEnabled=!0;this.morebtn.addEventListener(egret.TouchEvent.TOUCH_TAP,this.doMore,this);this.bg=this.createBitmapByName("victory_bg"); this.bg.x=(this.width-this.bg.width)/2;this.bg.y=this.yofftop+55+(GameApp.geth()-625)/2;this.til1_img=this.createBitmapByName("til1");this.til1_img.x=(this.width-this.til1_img.width)/2;this.til1_img.y=this.bg.y-56;this.til1_img.visible=!1;this.til2_img=this.createBitmapByName("til2");this.til2_img.x=(this.width-this.til2_img.width)/2;this.til2_img.y=this.til1_img.y;this.til2_img.visible=!1;this.enemy_data=new d.EnemyData;this.enemy_img=new egret.Bitmap;this.enemy_img.x=this.bg.x+20;this.enemy_img.y= this.bg.y+40;this.desc_t=new egret.TextField;this.desc_t.width=380;this.desc_t.textColor=0;this.desc_t.textAlign=egret.HorizontalAlign.LEFT;this.desc_t.size=22;this.desc_t.x=50;this.desc_t.y=this.bg.y+230;this.tap_textfeild=new egret.TextField;this.tap_textfeild.width=260;this.tap_textfeild.textColor=0;this.tap_textfeild.textAlign=egret.HorizontalAlign.LEFT;this.tap_textfeild.text="\u60a8\u7528X\u6b65\u6293\u4f4f\u4e86\u5c0f\u65e5\u672c\uff1a";this.tap_textfeild.size=22;this.tap_textfeild.x=this.bg.x+ 160;this.tap_textfeild.y=this.bg.y+60;this.name_t=new egret.TextField;this.name_t.width=260;this.name_t.textColor=16711680;this.name_t.textAlign=egret.HorizontalAlign.CENTER;this.name_t.bold=!0;this.name_t.strokeColor=16777215;this.name_t.stroke=1;this.name_t.text="\u4e1c\u6761\u82f1\u673a";this.name_t.size=22;this.name_t.x=this.bg.x+160;this.name_t.y=this.bg.y+89;this.rank_textfeild=new egret.TextField;this.rank_textfeild.width=280;this.rank_textfeild.textColor=4473924;this.rank_textfeild.textAlign= egret.HorizontalAlign.LEFT;this.rank_textfeild.text="\u795e\u7ecf\u5168\u56fd\u6392\u540d421\u4f4d";this.rank_textfeild.size=22;this.rank_textfeild.x=this.bg.x+160;this.rank_textfeild.y=this.bg.y+120;this.beat_textfeild=new egret.TextField;this.beat_textfeild.width=280;this.beat_textfeild.textColor=16711680;this.beat_textfeild.textAlign=egret.HorizontalAlign.LEFT;this.beat_textfeild.size=22;this.beat_textfeild.text="\u83b7\u5f97\u79f0\u53f7\uff1a\u4e1c\u65b9\u771f\u9f99\uff01";this.beat_textfeild.x= this.bg.x+160;this.beat_textfeild.y=this.bg.y+150;this.share_btn=this.createBitmapByName("share_btn");this.share_btn.x=230-this.share_btn.width;this.share_btn.y=this.bg.y+this.bg.height+20;this.share_btn.touchEnabled=!0;this.share_btn.addEventListener(egret.TouchEvent.TOUCH_TAP,this.doShare,this);this.replay_btn=this.createBitmapByName("replay_btn");this.replay_btn.x=250;this.replay_btn.y=this.share_btn.y;this.replay_btn.touchEnabled=!0;this.replay_btn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.doRepaly,this);var a=RES.getRes("cha_json"),b=RES.getRes("cha_png");this.wrong_mc=new egret.MovieClip(a,b);this.wrong_mc.setInterval(3);this.wrong_mc.x=60;this.wrong_mc.y=100;this.wrong_mc.addEventListener("finish",this.onfinish,this);this.enemy_sp=new egret.Sprite;this.enemy_sp.x=this.enemy_img.x;this.enemy_sp.y=this.enemy_img.y;this.enemy_sp.visible=!1;this.enemy_sp.addChild(this.wrong_mc);this.addChild(this.bg);this.addChild(this.tap_textfeild);this.addChild(this.name_t);this.addChild(this.rank_textfeild); this.addChild(this.beat_textfeild);this.addChild(this.share_btn);this.addChild(this.replay_btn);this.addChild(this.morebtn);this.addChild(this.desc_t);this.addChild(this.enemy_img);this.addChild(this.til1_img);this.addChild(this.til2_img);this.addChild(this.enemy_sp)}__extends(c,e);c.prototype.getname=function(){return this.enemy_names[this.enemy_id-1]};c.prototype.score=function(a,b,c){this.enemy_id=Math.ceil(Math.random()*this.enemy_names.length);c=this.enemy_data.getdata(this.enemy_id);this.desc_t.text= this.enemy_names[this.enemy_id-1]+":"+c.desc;this.enemy_img.texture=RES.getRes(c.win);b?(c=0a?1:1==a?100:2==a?300:this.getn(a-1)+this.getn(a-2)};return c}(egret.Sprite);d.EndPanel=e;e.prototype.__class__="catgame.EndPanel"})(catgame||(catgame={})); (function(d){var e=function(){function d(){this.maxid=14;this.enemydata=[];this.init()}d.prototype.init=function(){this.enemydata[1]={win:"e01",fail:"e21",desc:"\u65e5\u672c\u6cd5\u897f\u65af\u7edf\u6cbb\u96c6\u56e2\u7684\u9b41\u9996\uff0c\u4efb\u65e5\u672c\u5173\u4e1c\u519b\u53f8\u4ee4\u5b98\uff0c\u4ee5\u201c\u5f3a\u5316\u6cbb\u5b89\u201d\u7684\u540d\u4e49\u5927\u6279\u902e\u6355\u548c\u5c60\u6740\u4e2d\u56fd\u4e1c\u5317\u6297\u65e5\u519b\u6c11\uff0c\u592a\u5e73\u6d0b\u6218\u4e89\u7684\u53d1\u52a8\u8005\u3002"}; this.enemydata[2]={win:"e02",fail:"e22",desc:"\u65e5\u672c\u9646\u519b\u5927\u5c06\u3002\u53c2\u4e0e\u7b56\u5212\u4e86\u201c\u4e5d\u4e00\u516b\u4e8b\u53d8\u201d\uff1b\u903c\u8feb\u56fd\u6c11\u515a\u653f\u5e9c\u7b7e\u7f72\u201c\u79e6\u571f\u534f\u5b9a\u201d\uff1b\u7b56\u5212\u4e86\u4ee5\u5206\u88c2\u4e2d\u56fd\u4e3a\u4e3b\u8981\u76ee\u6807\u7684\u201c\u534e\u5317\u81ea\u6cbb\u8fd0\u52a8\u201d\u3002"};this.enemydata[3]={win:"e03",fail:"e23",desc:"\u65e5\u672c\u9646\u519b\u5927\u5c06\u3002\u5236\u9020\u4e86\u60e8\u7edd\u4eba\u5bf0\u3001\u9707\u60ca\u4e16\u754c\u7684\u5357\u4eac\u5927\u5c60\u6740\u3002\u88ab\u5c60\u6740\u7684\u4e2d\u56fd\u519b\u6c11\u8fbe30\u4e07\u4ee5\u4e0a\u3002"}; this.enemydata[4]={win:"e04",fail:"e24",desc:"\u65e5\u672c\u9646\u519b\u5927\u5c06\uff0c\u4ece\u4e8b\u91ce\u6218\u5175\u5668\u88c5\u5907\u7684\u5f00\u53d1\u4e0e\u7814\u5236\uff0c\u4fb5\u534e\u671f\u95f4\uff0c\u6bcf\u5e74\u63b3\u63a0\u6570\u4ee5\u4e07\u8ba1\u7684\u4e2d\u56fd\u52b3\u5de5\u5230\u4e1c\u5317\u548c\u65e5\u672c\u7684\u77ff\u533a\u3002 \u5236\u9020\u4e86\u201c\u4ef0\u5149\u5927\u5c60\u6740\u201d\u3002"};this.enemydata[5]={win:"e05",fail:"e25",desc:"\u65e5\u672c\u5185\u9601\u603b\u7406\u5927\u81e3\uff1b\u53c2\u4e0e\u4fb5\u534e\u6218\u4e89\u7684\u51b3\u7b56\uff0c\u662f\u53d1\u52a8\u5bf9\u534e\u5168\u9762\u4fb5\u7565\u6218\u4e89\u7684\u4e3b\u8c0b\u4e4b\u4e00\u3002"}; this.enemydata[6]={win:"e06",fail:"e26",desc:"\u65e5\u672c\u9646\u519b\u5927\u5c06\uff0c\u66fe\u4efb\u9a7b\u534e\u65e5\u519b\u53c2\u8c0b\u3002\u662f\u5236\u9020\u201c\u4e5d\u4e00\u516b\u201d\u4e8b\u53d8\u7684\u4e3b\u72af\u4e4b\u4e00\u3002\u5236\u9020\u4e86\u5185\u8499\u53e4\u201c\u72ec\u7acb\u201d\u548c\u201c\u7ee5\u8fdc\u4e8b\u4ef6\u201d\u3002"};this.enemydata[7]={win:"e07",fail:"e27",desc:"\u65e5\u672c\u9646\u519b\u4e2d\u5c06\uff0c\u662f\u5236\u9020\u5357\u4eac\u5927\u5c60\u6740\u7684\u4e3b\u8c0b\u4e4b\u4e00\u3002\u8fd8\u5236\u9020\u4e86\u201c\u9a6c\u5c3c\u62c9\u5927\u60e8\u6848\u201d\u3002"}; this.enemydata[8]={win:"e08",fail:"e28",desc:"\u65e5\u672c\u9a7b\u4e2d\u56fd\u3001\u7f8e\u56fd\u7b49\u56fd\u5916\u4ea4\u5b98\uff0c\u4e3a\u65e5\u672c\u4fb5\u534e\u5927\u9020\u8206\u8bba\u30021940\u5e74\u62c5\u4efb\u65e5\u672c\u5916\u76f8\uff0c\u53c2\u4e0e\u7f14\u7ed3\u5fb7\u56fd\u3001\u610f\u5927\u5229\u548c\u65e5\u672c\u7684\u4e09\u56fd\u540c\u8c0b\u3002"};this.enemydata[9]={win:"e09",fail:"e29",desc:"\u65e5\u672c\u6d77\u519b\u5927\u5c06\uff0c \u201c\u4e00.\u4e8c\u516b\u201d\u4e8b\u53d8\u7684\u5236\u9020\u8005\uff0c\u9020\u6210\u4e2d\u56fd\u519b\u6c11\u4f24\u4ea13.4\u4e07\u591a\u4eba\uff0c\u4e94\u516d\u5341\u4e07\u4eba\u65e0\u5bb6\u53ef\u5f52\uff0c\u5077\u88ad\u73cd\u73e0\u6e2f\u7684\u4e3b\u72af\u3002"}; this.enemydata[10]={win:"e10",fail:"e30",desc:"\u5916\u52a1\u7701\u60c5\u62a5\u90e8\u90e8\u957f\u3002\u652f\u6301\u5728\u4e2d\u56fd\u662f\u4e1c\u5317\u5efa\u7acb\u5080\u5121\u653f\u6743\u3002\u529b\u4fc3\u65e5\u3001\u5fb7\u3001\u610f\u3001\u4e09\u56fd\u540c\u76df\u7684\u7ed3\u6210\u3002 "};this.enemydata[11]={win:"e11",fail:"e31",desc:"\u65e5\u672c\u5929\u7687\u5236\u53f8\u6cd5\u5b98\u50da\u7684\u603b\u4ee3\u8868\uff0c\u4e3a\u65e5\u672c\u7684\u519b\u56fd\u4e3b\u4e49\u52bf\u529b\u7684\u53d1\u5c55\u63d0\u4f9b\u4e86\u7406\u8bba\u4f9d\u636e\u4e0e\u5236\u5ea6\u4fdd\u969c\u3002\u88ab\u79f0\u4e3a\u65e5\u672c\u6cd5\u897f\u65af\u6559\u7236\u3002"}; this.enemydata[12]={win:"e12",fail:"e32",desc:"\u9646\u519b\u5927\u5c06\uff0c\u5386\u4efb\u9646\u519b\u7701\u519b\u52a1\u5c40\u957f\u3001\u9646\u519b\u6b21\u5b98\u3001\u7b2c\u4e94\u5e08\u56e2\u56e2\u957f\u3001\u5173\u4e1c\u519b\u53c2\u8c0b\u957f\u7b49\u804c\uff0c\u6b8b\u9177\u9547\u538b\u671d\u9c9c\u4eba\u6c11\u7684\u53cd\u6297\u884c\u52a8\u3002"};this.enemydata[13]={win:"e13",fail:"e33",desc:"\u65e5\u672c\u9646\u519b\u4e0a\u5c06\u3002\u8feb\u4f7f\u56fd\u6c11\u515a\u653f\u5e9c\u7b7e\u8ba2\u4e86\u6709\u635f\u4e2d\u56fd\u4e3b\u6743\u7684\u201c\u4f55\u6885\u534f\u5b9a\u201d\uff0c\u5728\u4e2d\u56fd\u4e1c\u5317\u5b9e\u884c\u6b8b\u9177\u7684\u6b96\u6c11\u7edf\u6cbb\uff0c\u7ed9\u4e1c\u5317\u5730\u533a\u5c45\u6c11\u5e26\u6765\u4e86\u6df1\u91cd\u7684\u707e\u96be\u3002"}; this.enemydata[14]={win:"e14",fail:"e34",desc:"\u4e1c\u6761\u82f1\u673a\u5185\u9601\u7684\u5916\u52a1\u5927\u81e3\uff0c\u53c2\u52a0\u592a\u5e73\u6d0b\u6218\u4e89\u7684\u7b79\u5212\u548c\u51c6\u5907\u3002\u6307\u5bfc\u592a\u5e73\u6d0b\u6218\u4e89\u548c\u5bf9\u534e\u6218\u4e89\u3002"}};d.prototype.getdata=function(c){return 1>c?this.enemydata[1]:c>this.maxid?this.enemydata[14]:this.enemydata[c]};return d}();d.EnemyData=e;e.prototype.__class__="catgame.EnemyData"})(catgame||(catgame={}));