window.SpinePlugin=function(i){var n={};function r(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return i[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}return r.m=i,r.c=n,r.d=function(t,e,i){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(i,n,function(t){return e[t]}.bind(null,n));return i},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=61)}([function(t,e){function s(t,e,i,n){for(var r in e)if(e.hasOwnProperty(r)){var s=(l=e,u=r,d=f=void 0,d=(c=i)?l[u]:Object.getOwnPropertyDescriptor(l,u),!c&&d.value&&"object"==typeof d.value&&(d=d.value),!(!d||!((f=d).get&&"function"==typeof f.get||f.set&&"function"==typeof f.set))&&(void 0===d.enumerable&&(d.enumerable=!0),void 0===d.configurable&&(d.configurable=!0),d));if(!1!==s){if(o=(n||t).prototype,a=r,h=void 0,(h=Object.getOwnPropertyDescriptor(o,a))&&(h.value&&"object"==typeof h.value&&(h=h.value),!1===h.configurable)){if(p.ignoreFinals)continue;throw new Error("cannot override final property '"+r+"', set Class.ignoreFinals = true to skip")}Object.defineProperty(t.prototype,r,s)}else t.prototype[r]=e[r]}var o,a,h,l,u,c,f,d}function o(t,e){if(e){Array.isArray(e)||(e=[e]);for(var i=0;iMath.PI&&(t-=n.PI2),Math.abs(((t+n.TAU)%n.PI2-n.PI2)%n.PI2)}},function(t,e,i){var n=i(3);t.exports=function(t){return t*n.RAD_TO_DEG}},function(t,e){t.exports=function(t,e,i){if(t&&"number"!=typeof t){if(t.hasOwnProperty(e))return t[e];if(-1===e.indexOf("."))return i;for(var n=e.split("."),r=t,s=i,o=0;o=t.length)){for(var i=t.length-1,n=t[e],r=e;r=this.right?this.width=0:this.width=this.right-t,this.x=t}},right:{get:function(){return this.x+this.width},set:function(t){t<=this.x?this.width=0:this.width=t-this.x}},top:{get:function(){return this.y},set:function(t){t>=this.bottom?this.height=0:this.height=this.bottom-t,this.y=t}},bottom:{get:function(){return this.y+this.height},set:function(t){t<=this.y?this.height=0:this.height=t-this.y}},centerX:{get:function(){return this.x+this.width/2},set:function(t){this.x=t-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(t){this.y=t-this.height/2}}});t.exports=u},function(t,e){t.exports={CIRCLE:0,ELLIPSE:1,LINE:2,POINT:3,POLYGON:4,RECTANGLE:5,TRIANGLE:6}},function(t,e,i){var u=i(7),c=function(){var t,e,i,n,r,s,o=arguments[0]||{},a=1,h=arguments.length,l=!1;for("boolean"==typeof o&&(l=o,o=arguments[1]||{},a=2),h===a&&(o=this,--a);as[0]&&(e=1),s[8]>s[3*e+e]&&(e=2),i=a[e],n=a[i],r=Math.sqrt(s[3*e+e]-s[3*i+i]-s[3*n+n]+1),h[e]=.5*r,r=.5/r,h[i]=(s[3*i+e]+s[3*e+i])*r,h[n]=(s[3*n+e]+s[3*e+n])*r,this._x=h[0],this._y=h[1],this._z=h[2],this._w=(s[3*n+i]-s[3*i+n])*r),this.onChangeCallback(this),this}});t.exports=d},function(t,e,i){var r=i(27),s=i(45);t.exports=function(t,e){var i=void 0===t?s():r({},t);if(e)for(var n in e)void 0!==e[n]&&(i[n]=e[n]);return i}},function(t,e){t.exports=function(t,e,i,n,r,s){return void 0===t&&(t=""),void 0===e&&(e=!0),void 0===i&&(i=""),void 0===n&&(n=""),void 0===r&&(r=0),void 0===s&&(s=!1),{responseType:t,async:e,user:i,password:n,timeout:r,headers:void 0,header:void 0,headerValue:void 0,requestedWith:!1,overrideMimeType:void 0,withCredentials:s}}},function(t,e){t.exports={width:0,height:0,displayWidth:{get:function(){return this.scaleX*this.width},set:function(t){this.scaleX=t/this.width}},displayHeight:{get:function(){return this.scaleY*this.height},set:function(t){this.scaleY=t/this.height}},setSize:function(t,e){return this.width=t,this.height=e,this},setDisplaySize:function(t,e){return this.displayWidth=t,this.displayHeight=e,this}}},function(t,e){var i={_depth:0,depth:{get:function(){return this._depth},set:function(t){this.scene.sys.queueDepthSort(),this._depth=t}},setDepth:function(t){return void 0===t&&(t=0),this.depth=t,this}};t.exports=i},function(t,e){t.exports={flipX:!1,flipY:!1,toggleFlipX:function(){return this.flipX=!this.flipX,this},toggleFlipY:function(){return this.flipY=!this.flipY,this},setFlipX:function(t){return this.flipX=t,this},setFlipY:function(t){return this.flipY=t,this},setFlip:function(t,e){return this.flipX=t,this.flipY=e,this},resetFlip:function(){return this.flipX=!1,this.flipY=!1,this}}},function(t,e){var i={scrollFactorX:1,scrollFactorY:1,setScrollFactor:function(t,e){return void 0===e&&(e=t),this.scrollFactorX=t,this.scrollFactorY=e,this}};t.exports=i},function(t,e,i){var n=i(3),r=i(23),h=i(41),s=i(30),o=i(31),l=i(2),a={_scaleX:1,_scaleY:1,_rotation:0,x:0,y:0,z:0,w:0,scale:{get:function(){return(this._scaleX+this._scaleY)/2},set:function(t){this._scaleX=t,0===(this._scaleY=t)?this.renderFlags&=-5:this.renderFlags|=4}},scaleX:{get:function(){return this._scaleX},set:function(t){0===(this._scaleX=t)?this.renderFlags&=-5:this.renderFlags|=4}},scaleY:{get:function(){return this._scaleY},set:function(t){0===(this._scaleY=t)?this.renderFlags&=-5:this.renderFlags|=4}},angle:{get:function(){return o(this._rotation*n.RAD_TO_DEG)},set:function(t){this.rotation=o(t)*n.DEG_TO_RAD}},rotation:{get:function(){return this._rotation},set:function(t){this._rotation=s(t)}},setPosition:function(t,e,i,n){return void 0===t&&(t=0),void 0===e&&(e=t),void 0===i&&(i=0),void 0===n&&(n=0),this.x=t,this.y=e,this.z=i,this.w=n,this},copyPosition:function(t){return void 0!==t.x&&(this.x=t.x),void 0!==t.y&&(this.y=t.y),void 0!==t.z&&(this.z=t.z),void 0!==t.w&&(this.w=t.w),this},setRandomPosition:function(t,e,i,n){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.scene.sys.scale.width),void 0===n&&(n=this.scene.sys.scale.height),this.x=t+Math.random()*i,this.y=e+Math.random()*n,this},setRotation:function(t){return void 0===t&&(t=0),this.rotation=t,this},setAngle:function(t){return void 0===t&&(t=0),this.angle=t,this},setScale:function(t,e){return void 0===t&&(t=1),void 0===e&&(e=t),this.scaleX=t,this.scaleY=e,this},setX:function(t){return void 0===t&&(t=0),this.x=t,this},setY:function(t){return void 0===t&&(t=0),this.y=t,this},setZ:function(t){return void 0===t&&(t=0),this.z=t,this},setW:function(t){return void 0===t&&(t=0),this.w=t,this},getLocalTransformMatrix:function(t){return void 0===t&&(t=new r),t.applyITRS(this.x,this.y,this._rotation,this._scaleX,this._scaleY)},getWorldTransformMatrix:function(t,e){void 0===t&&(t=new r),void 0===e&&(e=new r);var i=this.parentContainer;if(!i)return this.getLocalTransformMatrix(t);for(t.applyITRS(this.x,this.y,this._rotation,this._scaleX,this._scaleY);i;)e.applyITRS(i.x,i.y,i._rotation,i._scaleX,i._scaleY),e.multiply(t,t),i=i.parentContainer;return t},getLocalPoint:function(t,e,i,n){i=i||new l;var r=(n=n||this.scene.sys.cameras.main).scrollX,s=n.scrollY,o=t+r*this.scrollFactorX-r,a=e+s*this.scrollFactorY-s;return this.parentContainer?this.getWorldTransformMatrix().applyInverse(o,a,i):h(o,a,this.x,this.y,this.rotation,this.scaleX,this.scaleY,i),this._originComponent&&(i.x+=this._displayOriginX,i.y+=this._displayOriginY),i},getParentRotation:function(){for(var t=0,e=this.parentContainer;e;)t+=e.rotation,e=e.parentContainer;return t}};t.exports=a},function(t,e){var i={_visible:!0,visible:{get:function(){return this._visible},set:function(t){t?(this._visible=!0,this.renderFlags|=1):(this._visible=!1,this.renderFlags&=-2)}},setVisible:function(t){return this.visible=t,this}};t.exports=i},function(t,e,i){var n=i(0),r=i(53),s=i(219),o=i(226),a=i(54),h=new n({Extends:o,initialize:function(t,e){o.call(this),this.scene=t,this.type=e,this.state=0,this.parentContainer=null,this.name="",this.active=!0,this.tabIndex=-1,this.data=null,this.renderFlags=15,this.cameraFilter=0,this.input=null,this.body=null,this.ignoreDestroy=!1,t.sys.queueDepthSort()},setActive:function(t){return this.active=t,this},setName:function(t){return this.name=t,this},setState:function(t){return this.state=t,this},setDataEnabled:function(){return this.data||(this.data=new s(this)),this},setData:function(t,e){return this.data||(this.data=new s(this)),this.data.set(t,e),this},incData:function(t,e){return this.data||(this.data=new s(this)),this.data.inc(t,e),this},toggleData:function(t){return this.data||(this.data=new s(this)),this.data.toggle(t),this},getData:function(t){return this.data||(this.data=new s(this)),this.data.get(t)},setInteractive:function(t,e,i){return this.scene.sys.input.enable(this,t,e,i),this},disableInteractive:function(){return this.input&&(this.input.enabled=!1),this},removeInteractive:function(){return this.scene.sys.input.clear(this),this.input=void 0,this},addedToScene:function(){},removedFromScene:function(){},update:function(){},toJSON:function(){return r(this)},willRender:function(t){return!(h.RENDER_MASK!==this.renderFlags||0!==this.cameraFilter&&this.cameraFilter&t.id)},getIndexList:function(){for(var t=this,e=this.parentContainer,i=[];e&&(i.unshift(e.getIndex(t)),(t=e).parentContainer);)e=e.parentContainer;return i.unshift(this.scene.sys.displayList.getIndex(t)),i},destroy:function(t){var e;void 0===t&&(t=!1),this.scene&&!this.ignoreDestroy&&(this.preDestroy&&this.preDestroy.call(this),this.emit(a.DESTROY,this),e=this.scene.sys,t||e.displayList.remove(this),this.input&&(e.input.clear(this),this.input=void 0),this.data&&(this.data.destroy(),this.data=void 0),this.body&&(this.body.destroy(),this.body=void 0),t||e.queueDepthSort(),this.active=!1,this.visible=!1,this.scene=void 0,this.parentContainer=void 0,this.removeAllListeners())}});h.RENDER_MASK=15,t.exports=h},function(t,e){t.exports=function(t){var e={name:t.name,type:t.type,x:t.x,y:t.y,depth:t.depth,scale:{x:t.scaleX,y:t.scaleY},origin:{x:t.originX,y:t.originY},flipX:t.flipX,flipY:t.flipY,rotation:t.rotation,alpha:t.alpha,visible:t.visible,blendMode:t.blendMode,textureKey:"",frameKey:"",data:{}};return t.texture&&(e.textureKey=t.texture.key,e.frameKey=t.frame.name),e}},function(t,e,i){t.exports={ADDED_TO_SCENE:i(227),DESTROY:i(228),REMOVED_FROM_SCENE:i(229),VIDEO_COMPLETE:i(230),VIDEO_CREATED:i(231),VIDEO_ERROR:i(232),VIDEO_LOOP:i(233),VIDEO_PLAY:i(234),VIDEO_SEEKED:i(235),VIDEO_SEEKING:i(236),VIDEO_STOP:i(237),VIDEO_TIMEOUT:i(238),VIDEO_UNLOCKED:i(239)}},function(t,e){t.exports=function(t){for(var e=t.length,i=t[0].length,n=new Array(i),r=0;r=n.PI2-i?t=e:(Math.abs(e-t)>Math.PI&&(e>>0,i=(e*=i)>>>0,i+=4294967296*(e-=i);return 2.3283064365386963e-10*((this.n=i)>>>0)},init:function(t){"string"==typeof t?this.state(t):this.sow(t)},sow:function(t){if(this.n=4022871197,this.s0=this.hash(" "),this.s1=this.hash(" "),this.s2=this.hash(" "),this.c=1,t)for(var e=0;e= 0.");if(null==e)throw new Error("name cannot be null.");this.index=t,this.name=e,this.parent=i}function Ee(t,e){if(this.bendDirection=0,this.compress=!1,this.stretch=!1,this.mix=1,this.softness=0,this.active=!1,null==t)throw new Error("data cannot be null.");if(null==e)throw new Error("skeleton cannot be null.");this.data=t,this.mix=t.mix,this.softness=t.softness,this.bendDirection=t.bendDirection,this.compress=t.compress,this.stretch=t.stretch,this.bones=new Array;for(var i=0;i= 0.");if(null==e)throw new Error("name cannot be null.");if(null==i)throw new Error("boneData cannot be null.");this.index=t,this.name=e,this.boneData=i}function Fe(t,e){if(this.rotateMix=0,this.translateMix=0,this.scaleMix=0,this.shearMix=0,this.temp=new N.Vector2,this.active=!1,null==t)throw new Error("data cannot be null.");if(null==e)throw new Error("skeleton cannot be null.");this.data=t,this.rotateMix=t.rotateMix,this.translateMix=t.translateMix,this.scaleMix=t.scaleMix,this.shearMix=t.shearMix,this.bones=new Array;for(var i=0;i>>1;;){if(t[(s+1)*i]<=e?n=s+1:r=s,n==r)return(n+1)*i;s=n+r>>>1}},r.linearSearch=function(t,e,i){for(var n=0,r=t.length-i;n<=r;n+=i)if(t[n]>e)return n;return-1},r);function r(t,e,i){if(null==t)throw new Error("name cannot be null.");if(null==e)throw new Error("timelines cannot be null.");this.name=t,this.timelines=e,this.timelineIds=[];for(var n=0;n 0: "+t);this.curves=B.Utils.newFloatArray((t-1)*M.BEZIER_SIZE)}B.CurveTimeline=s;var o,a=(me(m,o=s),m.prototype.getPropertyId=function(){return(i.rotate<<24)+this.boneIndex},m.prototype.setFrame=function(t,e,i){t<<=1,this.frames[t]=e,this.frames[t+m.ROTATION]=i},m.prototype.apply=function(t,e,i,n,r,s,o){var a=this.frames,h=t.bones[this.boneIndex];if(h.active)if(i=a[a.length-m.ENTRIES]){var u=a[a.length+m.PREV_ROTATION];switch(s){case U.setup:h.rotation=h.data.rotation+u*r;break;case U.first:case U.replace:u+=h.data.rotation-h.rotation,u-=360*(16384-(16384.499999999996-u/360|0));case U.add:h.rotation+=u*r}}else{var c=z.binarySearch(a,i,m.ENTRIES),f=a[c+m.PREV_ROTATION],d=a[c],p=this.getCurvePercent((c>>1)-1,1-(i-d)/(a[c+m.PREV_TIME]-d)),g=f+((g=a[c+m.ROTATION]-f)-360*(16384-(16384.499999999996-g/360|0)))*p;switch(s){case U.setup:h.rotation=h.data.rotation+(g-360*(16384-(16384.499999999996-g/360|0)))*r;break;case U.first:case U.replace:g+=h.data.rotation-h.rotation;case U.add:h.rotation+=(g-360*(16384-(16384.499999999996-g/360|0)))*r}}},m.ENTRIES=2,m.PREV_TIME=-2,m.PREV_ROTATION=-1,m.ROTATION=1,m);function m(t){var e=o.call(this,t)||this;return e.frames=B.Utils.newFloatArray(t<<1),e}B.RotateTimeline=a;var h,l=(me(p,h=s),p.prototype.getPropertyId=function(){return(i.translate<<24)+this.boneIndex},p.prototype.setFrame=function(t,e,i,n){t*=p.ENTRIES,this.frames[t]=e,this.frames[t+p.X]=i,this.frames[t+p.Y]=n},p.prototype.apply=function(t,e,i,n,r,s,o){var a=this.frames,h=t.bones[this.boneIndex];if(h.active)if(i=a[a.length-p.ENTRIES]?(f=a[a.length+p.PREV_X],d=a[a.length+p.PREV_Y]):(f=a[(l=z.binarySearch(a,i,p.ENTRIES))+p.PREV_X],d=a[l+p.PREV_Y],u=a[l],c=this.getCurvePercent(l/p.ENTRIES-1,1-(i-u)/(a[l+p.PREV_TIME]-u)),f+=(a[l+p.X]-f)*c,d+=(a[l+p.Y]-d)*c),s){case U.setup:h.x=h.data.x+f*r,h.y=h.data.y+d*r;break;case U.first:case U.replace:h.x+=(h.data.x+f-h.x)*r,h.y+=(h.data.y+d-h.y)*r;break;case U.add:h.x+=f*r,h.y+=d*r}}},p.ENTRIES=3,p.PREV_TIME=-3,p.PREV_X=-2,p.PREV_Y=-1,p.X=1,p.Y=2,p);function p(t){var e=h.call(this,t)||this;return e.frames=B.Utils.newFloatArray(t*p.ENTRIES),e}B.TranslateTimeline=l;var u,c=(me(x,u=l),x.prototype.getPropertyId=function(){return(i.scale<<24)+this.boneIndex},x.prototype.apply=function(t,e,i,n,r,s,o){var a=this.frames,h=t.bones[this.boneIndex];if(h.active)if(i=a[a.length-x.ENTRIES]?(f=a[a.length+x.PREV_X]*h.data.scaleX,a[a.length+x.PREV_Y]*h.data.scaleY):(f=a[(l=z.binarySearch(a,i,x.ENTRIES))+x.PREV_X],d=a[l+x.PREV_Y],u=a[l],c=this.getCurvePercent(l/x.ENTRIES-1,1-(i-u)/(a[l+x.PREV_TIME]-u)),f=(f+(a[l+x.X]-f)*c)*h.data.scaleX,(d+(a[l+x.Y]-d)*c)*h.data.scaleY),1==r)s==U.add?(h.scaleX+=f-h.data.scaleX,h.scaleY+=d-h.data.scaleY):(h.scaleX=f,h.scaleY=d);else{var p=0,g=0;if(o==v.mixOut)switch(s){case U.setup:p=h.data.scaleX,g=h.data.scaleY,h.scaleX=p+(Math.abs(f)*B.MathUtils.signum(p)-p)*r,h.scaleY=g+(Math.abs(d)*B.MathUtils.signum(g)-g)*r;break;case U.first:case U.replace:p=h.scaleX,g=h.scaleY,h.scaleX=p+(Math.abs(f)*B.MathUtils.signum(p)-p)*r,h.scaleY=g+(Math.abs(d)*B.MathUtils.signum(g)-g)*r;break;case U.add:p=h.scaleX,g=h.scaleY,h.scaleX=p+(Math.abs(f)*B.MathUtils.signum(p)-h.data.scaleX)*r,h.scaleY=g+(Math.abs(d)*B.MathUtils.signum(g)-h.data.scaleY)*r}else switch(s){case U.setup:p=Math.abs(h.data.scaleX)*B.MathUtils.signum(f),g=Math.abs(h.data.scaleY)*B.MathUtils.signum(d),h.scaleX=p+(f-p)*r,h.scaleY=g+(d-g)*r;break;case U.first:case U.replace:p=Math.abs(h.scaleX)*B.MathUtils.signum(f),g=Math.abs(h.scaleY)*B.MathUtils.signum(d),h.scaleX=p+(f-p)*r,h.scaleY=g+(d-g)*r;break;case U.add:p=B.MathUtils.signum(f),g=B.MathUtils.signum(d),h.scaleX=Math.abs(h.scaleX)*p+(f-Math.abs(h.data.scaleX)*p)*r,h.scaleY=Math.abs(h.scaleY)*g+(d-Math.abs(h.data.scaleY)*g)*r}}}},x);function x(t){return u.call(this,t)||this}B.ScaleTimeline=c;var f,d=(me(g,f=l),g.prototype.getPropertyId=function(){return(i.shear<<24)+this.boneIndex},g.prototype.apply=function(t,e,i,n,r,s,o){var a=this.frames,h=t.bones[this.boneIndex];if(h.active)if(i=a[a.length-g.ENTRIES]?(f=a[a.length+g.PREV_X],d=a[a.length+g.PREV_Y]):(f=a[(l=z.binarySearch(a,i,g.ENTRIES))+g.PREV_X],d=a[l+g.PREV_Y],u=a[l],c=this.getCurvePercent(l/g.ENTRIES-1,1-(i-u)/(a[l+g.PREV_TIME]-u)),f+=(a[l+g.X]-f)*c,d+=(a[l+g.Y]-d)*c),s){case U.setup:h.shearX=h.data.shearX+f*r,h.shearY=h.data.shearY+d*r;break;case U.first:case U.replace:h.shearX+=(h.data.shearX+f-h.shearX)*r,h.shearY+=(h.data.shearY+d-h.shearY)*r;break;case U.add:h.shearX+=f*r,h.shearY+=d*r}}},g);function g(t){return f.call(this,t)||this}B.ShearTimeline=d;var y,w=(me(T,y=s),T.prototype.getPropertyId=function(){return(i.color<<24)+this.slotIndex},T.prototype.setFrame=function(t,e,i,n,r,s){t*=T.ENTRIES,this.frames[t]=e,this.frames[t+T.R]=i,this.frames[t+T.G]=n,this.frames[t+T.B]=r,this.frames[t+T.A]=s},T.prototype.apply=function(t,e,i,n,r,s,o){var a=t.slots[this.slotIndex];if(a.bone.active){var h=this.frames;if(i=h[h.length-T.ENTRIES]?(g=h[(c=h.length)+T.PREV_R],v=h[c+T.PREV_G],m=h[c+T.PREV_B],M=h[c+T.PREV_A]):(g=h[(f=z.binarySearch(h,i,T.ENTRIES))+T.PREV_R],v=h[f+T.PREV_G],m=h[f+T.PREV_B],M=h[f+T.PREV_A],d=h[f],p=this.getCurvePercent(f/T.ENTRIES-1,1-(i-d)/(h[f+T.PREV_TIME]-d)),g+=(h[f+T.R]-g)*p,v+=(h[f+T.G]-v)*p,m+=(h[f+T.B]-m)*p,M+=(h[f+T.A]-M)*p),1==r?a.color.set(g,v,m,M):(l=a.color,s==U.setup&&l.setFromColor(a.data.color),l.add((g-l.r)*r,(v-l.g)*r,(m-l.b)*r,(M-l.a)*r))}}},T.ENTRIES=5,T.PREV_TIME=-5,T.PREV_R=-4,T.PREV_G=-3,T.PREV_B=-2,T.PREV_A=-1,T.R=1,T.G=2,T.B=3,T.A=4,T);function T(t){var e=y.call(this,t)||this;return e.frames=B.Utils.newFloatArray(t*T.ENTRIES),e}B.ColorTimeline=w;var E,b=(me(A,E=s),A.prototype.getPropertyId=function(){return(i.twoColor<<24)+this.slotIndex},A.prototype.setFrame=function(t,e,i,n,r,s,o,a,h){t*=A.ENTRIES,this.frames[t]=e,this.frames[t+A.R]=i,this.frames[t+A.G]=n,this.frames[t+A.B]=r,this.frames[t+A.A]=s,this.frames[t+A.R2]=o,this.frames[t+A.G2]=a,this.frames[t+A.B2]=h},A.prototype.apply=function(t,e,i,n,r,s,o){var a=t.slots[this.slotIndex];if(a.bone.active){var h=this.frames;if(i=h[h.length-A.ENTRIES]?(m=h[(d=h.length)+A.PREV_R],M=h[d+A.PREV_G],x=h[d+A.PREV_B],y=h[d+A.PREV_A],w=h[d+A.PREV_R2],T=h[d+A.PREV_G2],E=h[d+A.PREV_B2]):(m=h[(p=z.binarySearch(h,i,A.ENTRIES))+A.PREV_R],M=h[p+A.PREV_G],x=h[p+A.PREV_B],y=h[p+A.PREV_A],w=h[p+A.PREV_R2],T=h[p+A.PREV_G2],E=h[p+A.PREV_B2],g=h[p],v=this.getCurvePercent(p/A.ENTRIES-1,1-(i-g)/(h[p+A.PREV_TIME]-g)),m+=(h[p+A.R]-m)*v,M+=(h[p+A.G]-M)*v,x+=(h[p+A.B]-x)*v,y+=(h[p+A.A]-y)*v,w+=(h[p+A.R2]-w)*v,T+=(h[p+A.G2]-T)*v,E+=(h[p+A.B2]-E)*v),1==r?(a.color.set(m,M,x,y),a.darkColor.set(w,T,E,1)):(l=a.color,u=a.darkColor,s==U.setup&&(l.setFromColor(a.data.color),u.setFromColor(a.data.darkColor)),l.add((m-l.r)*r,(M-l.g)*r,(x-l.b)*r,(y-l.a)*r),u.add((w-u.r)*r,(T-u.g)*r,(E-u.b)*r,0))}}},A.ENTRIES=8,A.PREV_TIME=-8,A.PREV_R=-7,A.PREV_G=-6,A.PREV_B=-5,A.PREV_A=-4,A.PREV_R2=-3,A.PREV_G2=-2,A.PREV_B2=-1,A.R=1,A.G=2,A.B=3,A.A=4,A.R2=5,A.G2=6,A.B2=7,A);function A(t){var e=E.call(this,t)||this;return e.frames=B.Utils.newFloatArray(t*A.ENTRIES),e}B.TwoColorTimeline=b;var R=(S.prototype.getPropertyId=function(){return(i.attachment<<24)+this.slotIndex},S.prototype.getFrameCount=function(){return this.frames.length},S.prototype.setFrame=function(t,e,i){this.frames[t]=e,this.attachmentNames[t]=i},S.prototype.apply=function(t,e,i,n,r,s,o){var a,h,l,u=t.slots[this.slotIndex];u.bone.active&&(o!=v.mixOut?i<(a=this.frames)[0]?s!=U.setup&&s!=U.first||this.setAttachment(t,u,u.data.attachmentName):(h=0,h=i>=a[a.length-1]?a.length-1:z.binarySearch(a,i,1)-1,l=this.attachmentNames[h],t.slots[this.slotIndex].setAttachment(null==l?null:t.getAttachment(this.slotIndex,l))):s==U.setup&&this.setAttachment(t,u,u.data.attachmentName))},S.prototype.setAttachment=function(t,e,i){e.attachment=null==i?null:t.getAttachment(this.slotIndex,i)},S);function S(t){this.frames=B.Utils.newFloatArray(t),this.attachmentNames=new Array(t)}B.AttachmentTimeline=R;var C,I=null,P=(me(_,C=s),_.prototype.getPropertyId=function(){return(i.deform<<27)+ +this.attachment.id+this.slotIndex},_.prototype.setFrame=function(t,e,i){this.frames[t]=e,this.frameVertices[t]=i},_.prototype.apply=function(t,e,i,n,r,s,o){var a=t.slots[this.slotIndex];if(a.bone.active){var h=a.getAttachment();if(h instanceof B.VertexAttachment&&h.deformAttachment==this.attachment){var l=a.deform;0==l.length&&(s=U.setup);var u=this.frameVertices,c=u[0].length,f=this.frames;if(i=f[f.length-1]){var M=u[f.length-1];if(1==r)if(s==U.add)if(null==(d=h).bones)for(var g=d.vertices,x=0;x=a[h-1])return;if(!(i=a[l];l++)n.push(this.events[l])}}},k);function k(t){this.frames=B.Utils.newFloatArray(t),this.events=new Array(t)}B.EventTimeline=L;var O=(F.prototype.getPropertyId=function(){return i.drawOrder<<24},F.prototype.getFrameCount=function(){return this.frames.length},F.prototype.setFrame=function(t,e,i){this.frames[t]=e,this.drawOrders[t]=i},F.prototype.apply=function(t,e,i,n,r,s,o){var a=t.drawOrder,h=t.slots;if(o!=v.mixOut){var l=this.frames;if(i=l[l.length-1]?l.length-1:z.binarySearch(l,i)-1,c=this.drawOrders[u];if(null==c)B.Utils.arrayCopy(h,0,a,0,h.length);else for(var f=0,d=c.length;f=f[f.length-N.ENTRIES]?s==U.setup?(d.mix=d.data.mix+(f[f.length+N.PREV_MIX]-d.data.mix)*r,d.softness=d.data.softness+(f[f.length+N.PREV_SOFTNESS]-d.data.softness)*r,o==v.mixOut?(d.bendDirection=d.data.bendDirection,d.compress=d.data.compress,d.stretch=d.data.stretch):(d.bendDirection=f[f.length+N.PREV_BEND_DIRECTION],d.compress=0!=f[f.length+N.PREV_COMPRESS],d.stretch=0!=f[f.length+N.PREV_STRETCH])):(d.mix+=(f[f.length+N.PREV_MIX]-d.mix)*r,d.softness+=(f[f.length+N.PREV_SOFTNESS]-d.softness)*r,o==v.mixIn&&(d.bendDirection=f[f.length+N.PREV_BEND_DIRECTION],d.compress=0!=f[f.length+N.PREV_COMPRESS],d.stretch=0!=f[f.length+N.PREV_STRETCH])):(h=f[(a=z.binarySearch(f,i,N.ENTRIES))+N.PREV_MIX],l=f[a+N.PREV_SOFTNESS],u=f[a],c=this.getCurvePercent(a/N.ENTRIES-1,1-(i-u)/(f[a+N.PREV_TIME]-u)),s==U.setup?(d.mix=d.data.mix+(h+(f[a+N.MIX]-h)*c-d.data.mix)*r,d.softness=d.data.softness+(l+(f[a+N.SOFTNESS]-l)*c-d.data.softness)*r,o==v.mixOut?(d.bendDirection=d.data.bendDirection,d.compress=d.data.compress,d.stretch=d.data.stretch):(d.bendDirection=f[a+N.PREV_BEND_DIRECTION],d.compress=0!=f[a+N.PREV_COMPRESS],d.stretch=0!=f[a+N.PREV_STRETCH])):(d.mix+=(h+(f[a+N.MIX]-h)*c-d.mix)*r,d.softness+=(l+(f[a+N.SOFTNESS]-l)*c-d.softness)*r,o==v.mixIn&&(d.bendDirection=f[a+N.PREV_BEND_DIRECTION],d.compress=0!=f[a+N.PREV_COMPRESS],d.stretch=0!=f[a+N.PREV_STRETCH])))},N.ENTRIES=6,N.PREV_TIME=-6,N.PREV_MIX=-5,N.PREV_SOFTNESS=-4,N.PREV_BEND_DIRECTION=-3,N.PREV_COMPRESS=-2,N.PREV_STRETCH=-1,N.MIX=1,N.SOFTNESS=2,N.BEND_DIRECTION=3,N.COMPRESS=4,N.STRETCH=5,N);function N(t){var e=V.call(this,t)||this;return e.frames=B.Utils.newFloatArray(t*N.ENTRIES),e}B.IkConstraintTimeline=D;var Y,X=(me(W,Y=s),W.prototype.getPropertyId=function(){return(i.transformConstraint<<24)+this.transformConstraintIndex},W.prototype.setFrame=function(t,e,i,n,r,s){t*=W.ENTRIES,this.frames[t]=e,this.frames[t+W.ROTATE]=i,this.frames[t+W.TRANSLATE]=n,this.frames[t+W.SCALE]=r,this.frames[t+W.SHEAR]=s},W.prototype.apply=function(t,e,i,n,r,s,o){var a=this.frames,h=t.transformConstraints[this.transformConstraintIndex];if(h.active)if(i=a[a.length-W.ENTRIES]?(p=a[(u=a.length)+W.PREV_ROTATE],g=a[u+W.PREV_TRANSLATE],v=a[u+W.PREV_SCALE],m=a[u+W.PREV_SHEAR]):(p=a[(c=z.binarySearch(a,i,W.ENTRIES))+W.PREV_ROTATE],g=a[c+W.PREV_TRANSLATE],v=a[c+W.PREV_SCALE],m=a[c+W.PREV_SHEAR],f=a[c],d=this.getCurvePercent(c/W.ENTRIES-1,1-(i-f)/(a[c+W.PREV_TIME]-f)),p+=(a[c+W.ROTATE]-p)*d,g+=(a[c+W.TRANSLATE]-g)*d,v+=(a[c+W.SCALE]-v)*d,m+=(a[c+W.SHEAR]-m)*d),s==U.setup?(l=h.data,h.rotateMix=l.rotateMix+(p-l.rotateMix)*r,h.translateMix=l.translateMix+(g-l.translateMix)*r,h.scaleMix=l.scaleMix+(v-l.scaleMix)*r,h.shearMix=l.shearMix+(m-l.shearMix)*r):(h.rotateMix+=(p-h.rotateMix)*r,h.translateMix+=(g-h.translateMix)*r,h.scaleMix+=(v-h.scaleMix)*r,h.shearMix+=(m-h.shearMix)*r)}},W.ENTRIES=5,W.PREV_TIME=-5,W.PREV_ROTATE=-4,W.PREV_TRANSLATE=-3,W.PREV_SCALE=-2,W.PREV_SHEAR=-1,W.ROTATE=1,W.TRANSLATE=2,W.SCALE=3,W.SHEAR=4,W);function W(t){var e=Y.call(this,t)||this;return e.frames=B.Utils.newFloatArray(t*W.ENTRIES),e}B.TransformConstraintTimeline=X;var G,H=(me(q,G=s),q.prototype.getPropertyId=function(){return(i.pathConstraintPosition<<24)+this.pathConstraintIndex},q.prototype.setFrame=function(t,e,i){t*=q.ENTRIES,this.frames[t]=e,this.frames[t+q.VALUE]=i},q.prototype.apply=function(t,e,i,n,r,s,o){var a=this.frames,h=t.pathConstraints[this.pathConstraintIndex];if(h.active)if(i=a[a.length-q.ENTRIES]?f=a[a.length+q.PREV_VALUE]:(f=a[(l=z.binarySearch(a,i,q.ENTRIES))+q.PREV_VALUE],u=a[l],c=this.getCurvePercent(l/q.ENTRIES-1,1-(i-u)/(a[l+q.PREV_TIME]-u)),f+=(a[l+q.VALUE]-f)*c),s==U.setup?h.position=h.data.position+(f-h.data.position)*r:h.position+=(f-h.position)*r}},q.ENTRIES=2,q.PREV_TIME=-2,q.PREV_VALUE=-1,q.VALUE=1,q);function q(t){var e=G.call(this,t)||this;return e.frames=B.Utils.newFloatArray(t*q.ENTRIES),e}B.PathConstraintPositionTimeline=H;var j,Z=(me(K,j=H),K.prototype.getPropertyId=function(){return(i.pathConstraintSpacing<<24)+this.pathConstraintIndex},K.prototype.apply=function(t,e,i,n,r,s,o){var a=this.frames,h=t.pathConstraints[this.pathConstraintIndex];if(h.active)if(i=a[a.length-K.ENTRIES]?f=a[a.length+K.PREV_VALUE]:(f=a[(l=z.binarySearch(a,i,K.ENTRIES))+K.PREV_VALUE],u=a[l],c=this.getCurvePercent(l/K.ENTRIES-1,1-(i-u)/(a[l+K.PREV_TIME]-u)),f+=(a[l+K.VALUE]-f)*c),s==U.setup?h.spacing=h.data.spacing+(f-h.data.spacing)*r:h.spacing+=(f-h.spacing)*r}},K);function K(t){return j.call(this,t)||this}B.PathConstraintSpacingTimeline=Z;var Q,J=(me($,Q=s),$.prototype.getPropertyId=function(){return(i.pathConstraintMix<<24)+this.pathConstraintIndex},$.prototype.setFrame=function(t,e,i,n){t*=$.ENTRIES,this.frames[t]=e,this.frames[t+$.ROTATE]=i,this.frames[t+$.TRANSLATE]=n},$.prototype.apply=function(t,e,i,n,r,s,o){var a=this.frames,h=t.pathConstraints[this.pathConstraintIndex];if(h.active)if(i=a[a.length-$.ENTRIES]?(f=a[a.length+$.PREV_ROTATE],d=a[a.length+$.PREV_TRANSLATE]):(f=a[(l=z.binarySearch(a,i,$.ENTRIES))+$.PREV_ROTATE],d=a[l+$.PREV_TRANSLATE],u=a[l],c=this.getCurvePercent(l/$.ENTRIES-1,1-(i-u)/(a[l+$.PREV_TIME]-u)),f+=(a[l+$.ROTATE]-f)*c,d+=(a[l+$.TRANSLATE]-d)*c),s==U.setup?(h.rotateMix=h.data.rotateMix+(f-h.data.rotateMix)*r,h.translateMix=h.data.translateMix+(d-h.data.translateMix)*r):(h.rotateMix+=(f-h.rotateMix)*r,h.translateMix+=(d-h.translateMix)*r)}},$.ENTRIES=3,$.PREV_TIME=-3,$.PREV_ROTATE=-2,$.PREV_TRANSLATE=-1,$.ROTATE=1,$.TRANSLATE=2,$);function $(t){var e=Q.call(this,t)||this;return e.frames=B.Utils.newFloatArray(t*$.ENTRIES),e}B.PathConstraintMixTimeline=J}(ge=ge||{}),function(R){var t=(S.prototype.update=function(t){t*=this.timeScale;for(var e=this.tracks,i=0,n=e.length;i=r.trackEnd&&null==r.mixingFrom){e[i]=null,this.queue.end(r),this.disposeNext(r);continue}if(null!=r.mixingFrom&&this.updateMixingFrom(r,t)){var h=r.mixingFrom;for((r.mixingFrom=null)!=h&&(h.mixingTo=null);null!=h;)this.queue.end(h),h=h.mixingFrom}r.trackTime+=s}}this.queue.drain()},S.prototype.updateMixingFrom=function(t,e){var i=t.mixingFrom;if(null==i)return!0;var n=this.updateMixingFrom(i,e);return i.animationLast=i.nextAnimationLast,i.trackLast=i.nextTrackLast,0=t.mixDuration?(0!=i.totalAlpha&&0!=t.mixDuration||(t.mixingFrom=i.mixingFrom,null!=i.mixingFrom&&(i.mixingFrom.mixingTo=t),t.interruptAlpha=i.interruptAlpha,this.queue.end(i)),n):(i.trackTime+=e*i.timeScale,t.mixTime+=e,!1)},S.prototype.apply=function(t){if(null==t)throw new Error("skeleton cannot be null.");this.animationsChanged&&this._animationsChanged();for(var e=this.events,i=this.tracks,n=!1,r=0,s=i.length;r=o.trackEnd&&null==o.next&&(h=0);var l=o.animationLast,u=o.getAnimationTime(),c=o.animation.timelines.length,f=o.animation.timelines;if(0==r&&1==h||a==R.MixBlend.add)for(var d=0;d=s[s.length-1]?s.length-1:R.Animation.binarySearch(s,i)-1,this.setAttachment(e,a,t.attachmentNames[o],r)),a.attachmentState<=this.unkeyedState&&(a.attachmentState=this.unkeyedState+S.SETUP))},S.prototype.setAttachment=function(t,e,i,n){e.attachment=null==i?null:t.getAttachment(e.data.index,i),n&&(e.attachmentState=this.unkeyedState+S.CURRENT)},S.prototype.applyRotateTimeline=function(t,e,i,n,r,s,o,a){if(a&&(s[o]=0),1!=n){var h=t,l=h.frames,u=e.bones[h.boneIndex];if(u.active){var c=0,f=0;if(i=l[l.length-R.RotateTimeline.ENTRIES]?f=u.data.rotation+l[l.length+R.RotateTimeline.PREV_ROTATION]:(p=l[(d=R.Animation.binarySearch(l,i,R.RotateTimeline.ENTRIES))+R.RotateTimeline.PREV_ROTATION],g=l[d],v=h.getCurvePercent((d>>1)-1,1-(i-g)/(l[d+R.RotateTimeline.PREV_TIME]-g)),f=l[d+R.RotateTimeline.ROTATION]-p,f=p+(f-=360*(16384-(16384.499999999996-f/360|0)))*v+u.data.rotation,f-=360*(16384-(16384.499999999996-f/360|0)))}var m,M,x,y,w=0,T=f-c;0==(T-=360*(16384-(16384.499999999996-T/360|0)))?w=s[o]:(M=m=0,M=a?(m=0,T):(m=s[o],s[o+1]),x=0n||this.queue.event(t,l)}for((t.loop?0==r||s>t.trackTime%r:n<=e&&t.animationLast=this.tracks.length)){var e=this.tracks[t];if(null!=e){this.queue.end(e),this.disposeNext(e);for(var i=e;;){var n=i.mixingFrom;if(null==n)break;this.queue.end(n),i.mixingFrom=null,i.mixingTo=null,i=n}this.tracks[e.trackIndex]=null,this.queue.drain()}}},S.prototype.setCurrent=function(t,e,i){var n=this.expandToIndex(t);this.tracks[t]=e,null!=n&&(i&&this.queue.interrupt(n),((e.mixingFrom=n).mixingTo=e).mixTime=0,null!=n.mixingFrom&&0=this.tracks.length?null:this.tracks[t]},S.prototype.addListener=function(t){if(null==t)throw new Error("listener cannot be null.");this.listeners.push(t)},S.prototype.removeListener=function(t){var e=this.listeners.indexOf(t);0<=e&&this.listeners.splice(e,1)},S.prototype.clearListeners=function(){this.listeners.length=0},S.prototype.clearListenerNotifications=function(){this.queue.clear()},S.emptyAnimation=new R.Animation("",[],0),S.SUBSEQUENT=0,S.FIRST=1,S.HOLD_SUBSEQUENT=2,S.HOLD_FIRST=3,S.HOLD_MIX=4,S.SETUP=1,S.CURRENT=2,S);function S(t){this.tracks=new Array,this.timeScale=1,this.unkeyedState=0,this.events=new Array,this.listeners=new Array,this.queue=new r(this),this.propertyIDs=new R.IntSet,this.animationsChanged=!1,this.trackEntryPool=new R.Pool(function(){return new e}),this.data=t}R.AnimationState=t;var e=(i.prototype.reset=function(){this.next=null,this.mixingFrom=null,this.mixingTo=null,this.animation=null,this.listener=null,this.timelineMode.length=0,this.timelineHoldMix.length=0,this.timelinesRotation.length=0},i.prototype.getAnimationTime=function(){if(this.loop){var t=this.animationEnd-this.animationStart;return 0==t?this.animationStart:this.trackTime%t+this.animationStart}return Math.min(this.trackTime+this.animationStart,this.animationEnd)},i.prototype.setAnimationLast=function(t){this.animationLast=t,this.nextAnimationLast=t},i.prototype.isComplete=function(){return this.trackTime>=this.animationEnd-this.animationStart},i.prototype.resetRotationDirections=function(){this.timelinesRotation.length=0},i);function i(){this.mixBlend=R.MixBlend.replace,this.timelineMode=new Array,this.timelineHoldMix=new Array,this.timelinesRotation=new Array}R.TrackEntry=e;var a,n,r=(s.prototype.start=function(t){this.objects.push(a.start),this.objects.push(t),this.animState.animationsChanged=!0},s.prototype.interrupt=function(t){this.objects.push(a.interrupt),this.objects.push(t)},s.prototype.end=function(t){this.objects.push(a.end),this.objects.push(t),this.animState.animationsChanged=!0},s.prototype.dispose=function(t){this.objects.push(a.dispose),this.objects.push(t)},s.prototype.complete=function(t){this.objects.push(a.complete),this.objects.push(t)},s.prototype.event=function(t,e){this.objects.push(a.event),this.objects.push(t),this.objects.push(e)},s.prototype.drain=function(){if(!this.drainDisabled){this.drainDisabled=!0;for(var t=this.objects,e=this.animState.listeners,i=0;ij.MathUtils.PI?Y-=j.MathUtils.PI2:Y<-j.MathUtils.PI&&(Y+=j.MathUtils.PI2),Y*=e,V=Math.cos(Y),D=Math.sin(Y),R.a=V*L-D*O,R.b=V*k-D*F,R.c=D*L+V*O,R.d=D*k+V*F),R.appliedValid=!1}}}},Ae.prototype.computeWorldPositions=function(t,e,i,n,r){var s=this.target,o=this.position,a=this.spaces,h=j.Utils.setArraySize(this.positions,3*e+2),l=null,u=t.closed,c=t.worldVerticesLength,f=c/6,d=Ae.NONE;if(!t.constantSpeed){var p=t.lengths,g=p[f-=u?1:2];if(n&&(o*=g),r)for(var v=1;v>>1^-(1&i)},e.prototype.readStringRef=function(){var t=this.readInt(!0);return 0==t?null:this.strings[t-1]},e.prototype.readString=function(){var t=this.readInt(!0);switch(t){case 0:return null;case 1:return""}t--;for(var e="",i=0;i>4){case 12:case 13:e+=String.fromCharCode((31&n)<<6|63&this.readByte()),i+=2;break;case 14:e+=String.fromCharCode((15&n)<<12|(63&this.readByte())<<6|63&this.readByte()),i+=3;break;default:e+=String.fromCharCode(n),i++}}return e},e.prototype.readFloat=function(){var t=this.buffer.getFloat32(this.index);return this.index+=4,t},e.prototype.readBoolean=function(){return 0!=this.readByte()},e);function e(t,e,i,n){void 0===e&&(e=new Array),void 0===i&&(i=0),void 0===n&&(n=new DataView(t.buffer)),this.strings=e,this.index=i,this.buffer=n}var N=function(t,e,i,n,r){this.mesh=t,this.skin=e,this.slotIndex=i,this.parent=n,this.inheritDeform=r},u=function(t,e){void 0===t&&(t=null),void 0===e&&(e=null),this.bones=t,this.vertices=e}}(ge=ge||{}),I=ge=ge||{},Pe.prototype.update=function(t,e){if(null==t)throw new Error("skeleton cannot be null.");var i=this.boundingBoxes,n=this.polygons,r=this.polygonPool,s=t.slots,o=s.length;i.length=0,r.freeAll(n);for(var a=n.length=0;a=this.minX&&t<=this.maxX&&e>=this.minY&&e<=this.maxY},Pe.prototype.aabbIntersectsSegment=function(t,e,i,n){var r=this.minX,s=this.minY,o=this.maxX,a=this.maxY;if(t<=r&&i<=r||e<=s&&n<=s||o<=t&&o<=i||a<=e&&a<=n)return!1;var h=(n-e)/(i-t),l=h*(r-t)+e;if(st.minX&&this.minYt.minY},Pe.prototype.containsPoint=function(t,e){for(var i=this.polygons,n=0,r=i.length;n>1,N=this.clipOutput,Y=Z.Utils.setArraySize(l,P+D*d),X=0;X<_;X+=2){var B=N[X],U=N[X+1];Y[P]=B,Y[P+1]=U,Y[P+2]=s.r,Y[P+3]=s.g,Y[P+4]=s.b,Y[P+5]=s.a;var z=B-A,W=U-R,G=(L*z+k*W)*V,H=(F*z+O*W)*V,q=1-G-H;Y[P+6]=x*G+E*H+S*q,Y[P+7]=y*G+b*H+C*q,a&&(Y[P+8]=o.r,Y[P+9]=o.g,Y[P+10]=o.b,Y[P+11]=o.a),P+=d}P=u.length;var j=Z.Utils.setArraySize(u,P+3*(D-2));for(D--,X=1;X>1;a=n.length&&(n.length=t+1),n[t]||(n[t]={}),n[t][e]=i},e.prototype.addSkin=function(t){for(var e=0;e=this.lines.length?null:this.lines[this.index++]},i.prototype.readValue=function(){var t=this.readLine(),e=t.indexOf(":");if(-1==e)throw new Error("Invalid line: "+t);return t.substring(e+1).trim()},i.prototype.readTuple=function(t){var e=this.readLine(),i=e.indexOf(":");if(-1==i)throw new Error("Invalid line: "+e);for(var n=0,r=i+1;n<3;n++){var s=e.indexOf(",",r);if(-1==s)break;t[n]=e.substr(r,s-r).trim(),r=s+1}return t[n]=e.substring(r).trim(),n+1},i);function i(t){this.index=0,this.lines=t.split(/\r\n|\r|\n/)}var g=function(){};d.TextureAtlasPage=g;var n,v=(n=d.TextureRegion,me(r,n),r);function r(){return null!==n&&n.apply(this,arguments)||this}d.TextureAtlasRegion=v}(ge=ge||{}),N=ge=ge||{},Fe.prototype.isActive=function(){return this.active},Fe.prototype.apply=function(){this.update()},Fe.prototype.update=function(){this.data.local?this.data.relative?this.applyRelativeLocal():this.applyAbsoluteLocal():this.data.relative?this.applyRelativeWorld():this.applyAbsoluteWorld()},Fe.prototype.applyAbsoluteWorld=function(){for(var t=this.rotateMix,e=this.translateMix,i=this.scaleMix,n=this.shearMix,r=this.target,s=r.a,o=r.b,a=r.c,h=r.d,l=0N.MathUtils.PI?b-=N.MathUtils.PI2:b<-N.MathUtils.PI&&(b+=N.MathUtils.PI2),b*=t,m=Math.cos(b),M=Math.sin(b),R.a=m*g-M*v,R.b=m*w-M*T,R.c=M*g+m*v,R.d=M*w+m*T,S=!0),0!=e&&(x=this.temp,r.localToWorld(x.set(this.data.offsetX,this.data.offsetY)),R.worldX+=(x.x-R.worldX)*e,R.worldY+=(x.y-R.worldY)*e,S=!0),0N.MathUtils.PI?b-=N.MathUtils.PI2:b<-N.MathUtils.PI&&(b+=N.MathUtils.PI2),b=E+(b+c)*n,A=Math.sqrt(w*w+T*T),R.b=Math.cos(b)*A,R.d=Math.sin(b)*A,S=!0),S&&(R.appliedValid=!1)}},Fe.prototype.applyRelativeWorld=function(){for(var t=this.rotateMix,e=this.translateMix,i=this.scaleMix,n=this.shearMix,r=this.target,s=r.a,o=r.b,a=r.c,h=r.d,l=0N.MathUtils.PI?y-=N.MathUtils.PI2:y<-N.MathUtils.PI&&(y+=N.MathUtils.PI2),y*=t,m=Math.cos(y),M=Math.sin(y),b.a=m*g-M*v,b.b=m*w-M*T,b.c=M*g+m*v,b.d=M*w+m*T,A=!0),0!=e&&(x=this.temp,r.localToWorld(x.set(this.data.offsetX,this.data.offsetY)),b.worldX+=x.x*e,b.worldY+=x.y*e,A=!0),0N.MathUtils.PI?y-=N.MathUtils.PI2:y<-N.MathUtils.PI&&(y+=N.MathUtils.PI2),w=b.b,T=b.d,y=Math.atan2(T,w)+(y-N.MathUtils.PI/2+c)*n,E=Math.sqrt(w*w+T*T),b.b=Math.cos(y)*E,b.d=Math.sin(y)*E,A=!0),A&&(b.appliedValid=!1)}},Fe.prototype.applyAbsoluteLocal=function(){var t=this.rotateMix,e=this.translateMix,i=this.scaleMix,n=this.shearMix,r=this.target;r.appliedValid||r.updateAppliedTransform();for(var s=this.bones,o=0,a=s.length;o>1,n=this.indicesArray,r=n.length=0;r>>24)/255,t.g=((16711680&e)>>>16)/255,t.b=((65280&e)>>>8)/255,t.a=(255&e)/255},r.rgb888ToColor=function(t,e){t.r=((16711680&e)>>>16)/255,t.g=((65280&e)>>>8)/255,t.b=(255&e)/255},r.WHITE=new r(1,1,1,1),r.RED=new r(1,0,0,1),r.GREEN=new r(0,1,0,1),r.BLUE=new r(0,0,1,1),r.MAGENTA=new r(1,0,1,1),r);function r(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.r=t,this.g=e,this.b=i,this.a=n}t.Color=n;var s=(o.clamp=function(t,e,i){return t=e?t:v.setArraySize(t,e,i)},v.newArray=function(t,e){for(var i=new Array(t),n=0;nthis.maxDelta&&(this.delta=this.maxDelta),this.lastTime=t,this.frameCount++,1=this.values.length},R.prototype.addValue=function(t){this.addedValuesthis.values.length-1&&(this.lastValue=0),this.dirty=!0},R.prototype.getMean=function(){if(this.hasEnoughData()){if(this.dirty){for(var t=0,e=0;e>1)*s;var o=t.bone.skeleton,a=t.deform,h=this.vertices,l=this.bones;if(null!=l){for(var u=0,c=0,f=0;fthis.vertices.length)throw Error("Mesh can't store more than "+this.maxVertices()+" vertices");this.vertices.set(t,0),this.verticesLength=t.length},e.prototype.setIndices=function(t){if(this.dirtyIndices=!0,t.length>this.indices.length)throw Error("Mesh can't store more than "+this.maxIndices()+" indices");this.indices.set(t,0),this.indicesLength=t.length},e.prototype.draw=function(t,e){this.drawWithOffset(t,e,0,0this.mesh.getVertices().length||this.indicesLength+i.length>this.mesh.getIndices().length)&&this.flush();var n=this.mesh.numVertices();this.mesh.getVertices().set(e,this.verticesLength),this.verticesLength+=e.length,this.mesh.setVerticesLength(this.verticesLength);for(var r=this.mesh.getIndices(),s=this.indicesLength,o=0;o 0.");null===r&&(r=this.color);var o=2*te.MathUtils.PI/s,a=Math.cos(o),h=Math.sin(o),l=n,u=0;if(t){for(this.check(ie.Filled,3*s+3),s--,f=0;f>1))-2],w=f[p-1],g=0,v=p;g>1,f.numFloats=f.numVertices*T,f.numFloats>f.vertices.length&&(f.vertices=this.vertices=he.Utils.newFloatArray(f.numFloats)),S.computeWorldVertices(E,0,S.worldVerticesLength,f.vertices,0,T),p=S.triangles,A=S.region.renderObject.texture,d=S.uvs,v=S.color}if(null!=A){var C=E.color,I=this.tempColor;I.r=m.r*C.r*v.r,I.g=m.g*C.g*v.g,I.b=m.b*C.b*v.b,I.a=m.a*C.a*v.a,s&&(I.r*=I.a,I.g*=I.a,I.b*=I.a);var P=this.tempColor2;null==E.darkColor?P.set(0,0,0,1):(s?(P.r=E.darkColor.r*I.a,P.g=E.darkColor.g*I.a,P.b=E.darkColor.b*I.a):P.setFromColor(E.darkColor),P.a=s?1:0);var _=E.data.blendMode;if(_!=a&&(a=_,t.setBlendMode(le.WebGLBlendModeConverter.getSourceGLBlendMode(a,s),le.WebGLBlendModeConverter.getDestGLBlendMode(a))),r.isClipping()){r.clipTriangles(f.vertices,f.numFloats,p,p.length,d,I,P,o);var L=new Float32Array(r.clippedVertices),k=r.clippedTriangles;if(null!=this.vertexEffect){var O=this.vertexEffect,F=L;if(o)for(var V=0,D=L.length;V>16&255)/255,r=(t>>8&255)/255,s=(255&t)/255,o=16777215>>24)/255:null,a=this.skeleton;return!e||(i=this.findSlot(e))&&(a=i),a.color.r=n,a.color.g=r,a.color.b=s,null!==o&&(a.color.a=o),this},setSkeletonFromJSON:function(t,e,i,n){return this.setSkeleton(t,e,i,n)},setSkeleton:function(t,e,i,n){this.state&&(this.state.clearListeners(),this.state.clearListenerNotifications());var r=this.plugin.createSkeleton(t,n);this.skeletonData=r.skeletonData,this.preMultipliedAlpha=r.preMultipliedAlpha;var s=r.skeleton;return s.setSkin(),s.setToSetupPose(),this.skeleton=s,r=this.plugin.createAnimationState(s),this.state&&(this.state.clearListeners(),this.state.clearListenerNotifications()),this.state=r.state,this.stateData=r.stateData,this.state.addListener({event:this.onEvent.bind(this),complete:this.onComplete.bind(this),start:this.onStart.bind(this),end:this.onEnd.bind(this),dispose:this.onDispose.bind(this),interrupted:this.onInterrupted.bind(this)}),e&&this.setAnimation(0,e,i),this.root=this.getRootBone(),this.root&&(this.root.rotation=g(f(this.rotation))+90),this.state.apply(s),s.updateCache(),this.updateSize()},onComplete:function(t){this.emit(v.COMPLETE,t)},onDispose:function(t){this.emit(v.DISPOSE,t)},onEnd:function(t){this.emit(v.END,t)},onEvent:function(t,e){this.emit(v.EVENT,t,e)},onInterrupted:function(t){this.emit(v.INTERRUPTED,t)},onStart:function(t){this.emit(v.START,t)},refresh:function(){return this.root&&(this.root.rotation=g(f(this.rotation))+90),this.updateSize(),this.skeleton.updateCache(),this},setSize:function(t,e,i,n){var r=this.skeleton;return void 0===t&&(t=r.data.width),void 0===e&&(e=r.data.height),void 0===i&&(i=0),void 0===n&&(n=0),this.width=t,this.height=e,this.displayOriginX=r.x-i,this.displayOriginY=r.y-n,this},setOffset:function(t,e){var i=this.skeleton;return void 0===t&&(t=0),void 0===e&&(e=0),this.displayOriginX=i.x-t,this.displayOriginY=i.y-e,this},updateSize:function(){var t=this.skeleton,e=this.plugin.renderer.height,i=this.scaleX,n=this.scaleY;t.x=this.x,t.y=e-this.y,t.scaleX=1,t.scaleY=1,t.updateWorldTransform();var r=this.getBounds();return this.width=r.size.x,this.height=r.size.y,this.displayOriginX=this.x-r.offset.x,this.displayOriginY=this.y-(e-(this.height+r.offset.y)),t.scaleX=i,t.scaleY=n,t.updateWorldTransform(),this},scaleX:{get:function(){return this._scaleX},set:function(t){this._scaleX=t,this.refresh()}},scaleY:{get:function(){return this._scaleY},set:function(t){this._scaleY=t,this.refresh()}},getBoneList:function(){var t=[],e=this.skeletonData;if(e)for(var i=0;i=(t=t.toString()).length)switch(n){case 1:t=new Array(e+1-t.length).join(i)+t;break;case 3:var s=Math.ceil((r=e-t.length)/2);t=new Array(1+(r-s)).join(i)+t+new Array(s+1).join(i);break;default:t+=new Array(e+1-t.length).join(i)}return t}},function(t,e){t.exports=function(t){return t.reverse()}},function(t,e){t.exports=function(t){for(var e=0;ee.length&&(s=e.length),i?(n=e[s-1][i],(r=e[s][i])-t<=t-n?e[s]:e[s-1]):(n=e[s-1],(r=e[s])-t<=t-n?r:n)}},function(t,e,i){var h=i(5);t.exports=function(t,e,i,n,r){void 0===n&&(n=0),void 0===r&&(r=t.length);var s=[];if(h(t,n,r))for(var o=n;o=t.length)throw new Error("Supplied index out of bounds");return n!==i&&(t.splice(n,1),t.splice(i,0,e)),e}},function(t,e){t.exports=function(t,e){var i,n,r=t.indexOf(e);return-1!==r&&rt.length-1)throw new Error("Index out of bounds");var r=s(t,e);return i&&i.call(n,r),r}},function(t,e,i){var l=i(5);t.exports=function(t,e,i,n,r){if(void 0===e&&(e=0),void 0===i&&(i=t.length),void 0===r&&(r=t),l(t,e,i)){var s=i-e,o=t.splice(e,s);if(n)for(var a=0;a=e&&t.y<=i&&t.y+t.height>=i)}},function(t,e,i){var o=i(59),a=i(60);t.exports=function(t,e,i,n){void 0===n&&(n=[]),!e&&0this.x2?this.x1=t:this.x2=t}},top:{get:function(){return Math.min(this.y1,this.y2)},set:function(t){this.y1<=this.y2?this.y1=t:this.y2=t}},bottom:{get:function(){return Math.max(this.y1,this.y2)},set:function(t){this.y1>this.y2?this.y1=t:this.y2=t}}});t.exports=l},function(t,e,i){var n=i(12);t.exports=function(t,e,i){return void 0===i&&(i=new n),i.x=t.x1+(t.x2-t.x1)*e,i.y=t.y1+(t.y2-t.y1)*e,i}},function(t,e,i){var f=i(301),d=i(12);t.exports=function(t,e,i,n){void 0===n&&(n=[]),!e&&0