UNPKG

starling-framework

Version:

A fast, productive library for 2D cross-platform development.

2 lines 610 kB
/*! For license information please see starling.min.js.LICENSE.txt */ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("openfl/errors/ArgumentError"),require("openfl/Vector"),require("openfl/geom/Matrix"),require("openfl/errors/Error"),require("openfl/geom/Point"),require("openfl/geom/Vector3D"),require("openfl/geom/Matrix3D"),require("openfl/Lib"),require("openfl/geom/Rectangle"),require("openfl/display/Shape"),require("openfl/text/TextField"),require("openfl/text/TextFormat"),require("openfl/system/Capabilities"),require("openfl/display/Stage"),require("openfl/events/MouseEvent"),require("openfl/events/TouchEvent"),require("openfl/display3D/Context3D"),require("openfl/text/Font"),require("openfl/errors/RangeError"),require("openfl/system/System"),require("openfl/display/Bitmap"),require("openfl/display/BitmapData"),require("openfl/utils/ByteArray"),require("openfl/display3D/textures/Texture"),require("openfl/events/Event"),require("openfl/display3D/textures/RectangleTexture"),require("openfl/display3D/textures/VideoTexture"),require("openfl/utils/AGALMiniAssembler"),require("openfl/errors/IllegalOperationError"),require("openfl/errors/EOFError"),require("openfl/display/DisplayObjectContainer"),require("openfl/ui/Multitouch"),require("openfl/display/Sprite"),require("openfl/ui/Mouse"),require("openfl/net/URLRequest"),require("openfl/media/Sound"),require("openfl/net/URLLoader"),require("openfl/display/Loader"),require("openfl/system/LoaderContext")):"function"==typeof define&&define.amd?define(["openfl/errors/ArgumentError","openfl/Vector","openfl/geom/Matrix","openfl/errors/Error","openfl/geom/Point","openfl/geom/Vector3D","openfl/geom/Matrix3D","openfl/Lib","openfl/geom/Rectangle","openfl/display/Shape","openfl/text/TextField","openfl/text/TextFormat","openfl/system/Capabilities","openfl/display/Stage","openfl/events/MouseEvent","openfl/events/TouchEvent","openfl/display3D/Context3D","openfl/text/Font","openfl/errors/RangeError","openfl/system/System","openfl/display/Bitmap","openfl/display/BitmapData","openfl/utils/ByteArray","openfl/display3D/textures/Texture","openfl/events/Event","openfl/display3D/textures/RectangleTexture","openfl/display3D/textures/VideoTexture","openfl/utils/AGALMiniAssembler","openfl/errors/IllegalOperationError","openfl/errors/EOFError","openfl/display/DisplayObjectContainer","openfl/ui/Multitouch","openfl/display/Sprite","openfl/ui/Mouse","openfl/net/URLRequest","openfl/media/Sound","openfl/net/URLLoader","openfl/display/Loader","openfl/system/LoaderContext"],e):"object"==typeof exports?exports.starling=e(require("openfl/errors/ArgumentError"),require("openfl/Vector"),require("openfl/geom/Matrix"),require("openfl/errors/Error"),require("openfl/geom/Point"),require("openfl/geom/Vector3D"),require("openfl/geom/Matrix3D"),require("openfl/Lib"),require("openfl/geom/Rectangle"),require("openfl/display/Shape"),require("openfl/text/TextField"),require("openfl/text/TextFormat"),require("openfl/system/Capabilities"),require("openfl/display/Stage"),require("openfl/events/MouseEvent"),require("openfl/events/TouchEvent"),require("openfl/display3D/Context3D"),require("openfl/text/Font"),require("openfl/errors/RangeError"),require("openfl/system/System"),require("openfl/display/Bitmap"),require("openfl/display/BitmapData"),require("openfl/utils/ByteArray"),require("openfl/display3D/textures/Texture"),require("openfl/events/Event"),require("openfl/display3D/textures/RectangleTexture"),require("openfl/display3D/textures/VideoTexture"),require("openfl/utils/AGALMiniAssembler"),require("openfl/errors/IllegalOperationError"),require("openfl/errors/EOFError"),require("openfl/display/DisplayObjectContainer"),require("openfl/ui/Multitouch"),require("openfl/display/Sprite"),require("openfl/ui/Mouse"),require("openfl/net/URLRequest"),require("openfl/media/Sound"),require("openfl/net/URLLoader"),require("openfl/display/Loader"),require("openfl/system/LoaderContext")):t.starling=e(t.openfl.errors.ArgumentError,t.openfl.Vector,t.openfl.geom.Matrix,t.openfl.errors.Error,t.openfl.geom.Point,t.openfl.geom.Vector3D,t.openfl.geom.Matrix3D,t.openfl.Lib,t.openfl.geom.Rectangle,t.openfl.display.Shape,t.openfl.text.TextField,t.openfl.text.TextFormat,t.openfl.system.Capabilities,t.openfl.display.Stage,t.openfl.events.MouseEvent,t.openfl.events.TouchEvent,t.openfl.display3D.Context3D,t.openfl.text.Font,t.openfl.errors.RangeError,t.openfl.system.System,t.openfl.display.Bitmap,t.openfl.display.BitmapData,t.openfl.utils.ByteArray,t.openfl.display3D.textures.Texture,t.openfl.events.Event,t.openfl.display3D.textures.RectangleTexture,t.openfl.display3D.textures.VideoTexture,t.openfl.utils.AGALMiniAssembler,t.openfl.errors.IllegalOperationError,t.openfl.errors.EOFError,t.openfl.display.DisplayObjectContainer,t.openfl.ui.Multitouch,t.openfl.display.Sprite,t.openfl.ui.Mouse,t.openfl.net.URLRequest,t.openfl.media.Sound,t.openfl.net.URLLoader,t.openfl.display.Loader,t.openfl.system.LoaderContext)}(self,((__WEBPACK_EXTERNAL_MODULE__818__,__WEBPACK_EXTERNAL_MODULE__2991__,__WEBPACK_EXTERNAL_MODULE__1264__,__WEBPACK_EXTERNAL_MODULE__8890__,__WEBPACK_EXTERNAL_MODULE__2714__,__WEBPACK_EXTERNAL_MODULE__2628__,__WEBPACK_EXTERNAL_MODULE__440__,__WEBPACK_EXTERNAL_MODULE__2723__,__WEBPACK_EXTERNAL_MODULE__22__,__WEBPACK_EXTERNAL_MODULE__5914__,__WEBPACK_EXTERNAL_MODULE__5734__,__WEBPACK_EXTERNAL_MODULE__2432__,__WEBPACK_EXTERNAL_MODULE__5136__,__WEBPACK_EXTERNAL_MODULE__2582__,__WEBPACK_EXTERNAL_MODULE__5636__,__WEBPACK_EXTERNAL_MODULE__6876__,__WEBPACK_EXTERNAL_MODULE__8822__,__WEBPACK_EXTERNAL_MODULE__4332__,__WEBPACK_EXTERNAL_MODULE__4596__,__WEBPACK_EXTERNAL_MODULE__1164__,__WEBPACK_EXTERNAL_MODULE__3728__,__WEBPACK_EXTERNAL_MODULE__2056__,__WEBPACK_EXTERNAL_MODULE__1682__,__WEBPACK_EXTERNAL_MODULE__1117__,__WEBPACK_EXTERNAL_MODULE__3058__,__WEBPACK_EXTERNAL_MODULE__4845__,__WEBPACK_EXTERNAL_MODULE__3389__,__WEBPACK_EXTERNAL_MODULE__9634__,__WEBPACK_EXTERNAL_MODULE__4862__,__WEBPACK_EXTERNAL_MODULE__9788__,__WEBPACK_EXTERNAL_MODULE__9560__,__WEBPACK_EXTERNAL_MODULE__7004__,__WEBPACK_EXTERNAL_MODULE__1948__,__WEBPACK_EXTERNAL_MODULE__4170__,__WEBPACK_EXTERNAL_MODULE__5176__,__WEBPACK_EXTERNAL_MODULE__1394__,__WEBPACK_EXTERNAL_MODULE__6814__,__WEBPACK_EXTERNAL_MODULE__76__,__WEBPACK_EXTERNAL_MODULE__7298__)=>(()=>{var __webpack_modules__={22:t=>{"use strict";t.exports=__WEBPACK_EXTERNAL_MODULE__22__},42:function(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1714).A,r=(n(7268).A,n(7789).A),s=n(4142).A;function a(){return n(8752)}function o(){return r(n(22))}function u(){return n(7415)}var l=function(t,e,i){null==i&&(i=16777215),this.__bounds=new(o().default)(0,0,t,e);var s=new(n(4865).default)(n(6717).default.VERTEX_FORMAT,4),u=new(n(4451).default)(6);if(a().default.call(this,s,u),0==t||0==e)throw new(n(6507).default)(new(r(n(818)).default)("Invalid size: width and height must not be zero"));this.__setupVertices(),this.set_color(i)};l.__name__="starling.display.Quad",l.__isInterface__=!1,l.__super__=a().default,(l.prototype=s(a().default.prototype,{__setupVertices:function(){var t="position",e="texCoords",n=this.get_style().get_texture(),i=this.get_vertexData(),r=this.get_indexData();r.set_numIndices(0),r.addQuad(0,1,2,3),4!=i.get_numVertices()&&(i.set_numVertices(4),i.trim()),null!=n?(n.setupVertexPositions(i,0,"position",this.__bounds),n.setupTextureCoordinates(i,0,e)):(i.setPoint(0,t,this.__bounds.get_left(),this.__bounds.get_top()),i.setPoint(1,t,this.__bounds.get_right(),this.__bounds.get_top()),i.setPoint(2,t,this.__bounds.get_left(),this.__bounds.get_bottom()),i.setPoint(3,t,this.__bounds.get_right(),this.__bounds.get_bottom()),i.setPoint(0,e,0,0),i.setPoint(1,e,1,0),i.setPoint(2,e,0,1),i.setPoint(3,e,1,1)),this.setRequiresRedraw()},getBounds:function(t,e){if(null==e&&(e=new(o().default)),t==this)e.copyFrom(this.__bounds);else if(t!=this.get_parent()||this.get_isRotated())this.get_is3D()&&null!=this.get_stage()?(this.get_stage().getCameraPosition(t,l.sPoint3D),this.getTransformationMatrix3D(t,l.sMatrix3D),u().default.getBoundsProjected(this.__bounds,l.sMatrix3D,l.sPoint3D,e)):(this.getTransformationMatrix(t,l.sMatrix),u().default.getBounds(this.__bounds,l.sMatrix,e));else{var n=this.get_scaleX(),i=this.get_scaleY();e.setTo(this.get_x()-this.get_pivotX()*n,this.get_y()-this.get_pivotY()*i,this.__bounds.width*n,this.__bounds.height*i),n<0&&(e.width*=-1,e.x-=e.width),i<0&&(e.height*=-1,e.y-=e.height)}return e},hitTest:function(t){return this.get_visible()&&this.get_touchable()&&this.hitTestMask(t)&&this.__bounds.containsPoint(t)?this:null},readjustSize:function(t,e){null==e&&(e=-1),null==t&&(t=-1),t<=0&&(t=null!=this.get_texture()?this.get_texture().get_frameWidth():this.__bounds.width),e<=0&&(e=null!=this.get_texture()?this.get_texture().get_frameHeight():this.__bounds.height),t==this.__bounds.width&&e==this.__bounds.height||(this.__bounds.setTo(0,0,t,e),this.__setupVertices())},set_texture:function(t){return t!=this.get_texture()&&(a().default.prototype.set_texture.call(this,t),this.__setupVertices()),t}})).__class__=l.prototype.constructor=i["starling.display.Quad"]=l,l.fromTexture=function(t){var e=new l(100,100);return e.set_texture(t),e.readjustSize(),e},l.sPoint3D=new(r(n(2628)).default),l.sMatrix=new(r(n(1264)).default),l.sMatrix3D=new(r(n(440)).default),e.default=l},61:(t,e,n)=>{t.exports=n(6195)},76:t=>{"use strict";t.exports=__WEBPACK_EXTERNAL_MODULE__76__},94:(t,e,n)=>{t.exports=n(4072)},105:function(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1714).A;n(7268).A,n(7789).A;var r=function(t){this.offset=0,this.s=t};r.__name__="haxe.iterators.StringKeyValueIterator",r.__isInterface__=!1,(r.prototype={hasNext:function(){return this.offset<this.s.length},next:function(){return{key:this.offset,value:n(1199).default.fastCodeAt(this.s,this.offset++)}}}).__class__=r.prototype.constructor=i["haxe.iterators.StringKeyValueIterator"]=r,e.default=r},163:(t,e,n)=>{t.exports=n(7741)},172:function(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1714).A;function r(){return n(9519)}function s(){return n(2304)}n(7268).A,n(7789).A;var a=function(t,e,n){null==e&&(e=!1),this.type=t,this.bubbles=e,this.data=n};a.__name__="starling.events.Event",a.__isInterface__=!1,(a.prototype={stopPropagation:function(){this.stopsPropagation=!0},stopImmediatePropagation:function(){this.stopsPropagation=this.stopsImmediatePropagation=!0},toString:function(){return n(9937).default.format('[{0} type="{1}" bubbles={2}]',[r().default.getClassName(r().default.getClass(this)).split("::").pop(),this.type,this.bubbles])},setTarget:function(t){this.target=t},setCurrentTarget:function(t){this.currentTarget=t},setData:function(t){this.data=t},reset:function(t,e,n){return null==e&&(e=!1),this.type=t,this.bubbles=e,this.data=n,this.target=this.currentTarget=null,this.stopsPropagation=this.stopsImmediatePropagation=!1,this}}).__class__=a.prototype.constructor=i["starling.events.Event"]=a,a.fromPool=function(t,e,n){return null==e&&(e=!1),0!=a.sEventPool.length?s().default.pop(a.sEventPool).reset(t,e,n):new a(t,e,n)},a.toPool=function(t){t.data=t.target=t.currentTarget=null,s().default.set(a.sEventPool,a.sEventPool.length,t)},a.ADDED="added",a.ADDED_TO_STAGE="addedToStage",a.ENTER_FRAME="enterFrame",a.REMOVED="removed",a.REMOVED_FROM_STAGE="removedFromStage",a.TRIGGERED="triggered",a.RESIZE="resize",a.COMPLETE="complete",a.CONTEXT3D_CREATE="context3DCreate",a.RENDER="render",a.SKIP_FRAME="skipFrame",a.ROOT_CREATED="rootCreated",a.REMOVE_FROM_JUGGLER="removeFromJuggler",a.TEXTURES_RESTORED="texturesRestored",a.IO_ERROR="ioError",a.SECURITY_ERROR="securityError",a.PARSE_ERROR="parseError",a.FATAL_ERROR="fatalError",a.CHANGE="change",a.CANCEL="cancel",a.SCROLL="scroll",a.OPEN="open",a.CLOSE="close",a.SELECT="select",a.READY="ready",a.UPDATE="update",a.sEventPool=s().default._new(),e.default=a},248:function(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1714).A,r=(n(7268).A,n(7789).A,n(4142).A);function s(){return n(6895)}var a=function(t,e,n,i){this.__x=t,this.__y=e,this.__width=n,this.__height=i,s().default.call(this,[t,e,t+n,e,t+n,e+i,t,e+i])};a.__name__="starling.geom.Rectangle",a.__isInterface__=!1,a.__super__=s().default,(a.prototype=r(s().default.prototype,{triangulate:function(t,e){return null==e&&(e=0),null==t&&(t=new(n(4451).default)(6)),t.addTriangle(e,e+1,e+3),t.addTriangle(e+1,e+2,e+3),t},contains:function(t,e){return t>=this.__x&&t<=this.__x+this.__width&&e>=this.__y&&e<=this.__y+this.__height},get_area:function(){return this.__width*this.__height},get_isSimple:function(){return!0},get_isConvex:function(){return!0}})).__class__=a.prototype.constructor=i["starling.geom.Rectangle"]=a,e.default=a},331:(t,e,n)=>{t.exports=n(8353)},349:(t,e,n)=>{t.exports=n(6347)},355:function(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1714).A,r=(n(7268).A,n(7789).A),s=n(4142).A;function a(){return n(4016)}function o(){return r(n(1682))}function u(){return n(1794)}var l=function(){a().default.call(this),this.addMimeTypes(["application/xml","text/xml"]),this.addExtensions(["xml","fnt"])};l.__name__="starling.assets.XmlFactory",l.__isInterface__=!1,l.__super__=a().default,(l.prototype=s(a().default.prototype,{canHandle:function(t){return!!a().default.prototype.canHandle.call(this,t)||t.get_data()instanceof o().default&&n(5397).default.startsWithString(t.get_data(),"<")},create:function(t,e,i,s){var a,l,_=null;a=function(t){var i=_.firstElement().get("imagePath"),r=e.getNameFromUrl(i),s=t.getTexture(r);null!=s?t.addAsset(r,new(n(3147).default)(s,_)):e.log("Cannot create atlas: texture '"+r+"' is missing.")},l=function(t){var i=_.firstElement().elementsNamed("pages").next().elementsNamed("page").next().get("file"),r=e.getNameFromUrl(i),s=t.getTexture(r),a=t.get_registerBitmapFontsWithFontFace()?_.elementsNamed("info").next().get("face"):r;if(null!=s){var o=new(n(5314).default)(s,_);t.addAsset(a,o),n(9427).default.registerCompositor(o,a)}else e.log("Cannot create bitmap font: texture '"+r+"' is missing.")};var f=null;try{t.get_data()instanceof u().default?_=n(5215).default.__cast(t.get_data(),u().default):null!=(f=t.get_data()instanceof o().default?t.get_data():null)&&(_=u().default.parse(f.toString()));var h=_.firstElement().get_nodeName();"TextureAtlas"==h?e.addPostProcessor(a,100):"font"==h&&e.addPostProcessor(l),i(t.get_name(),_),f=null,t.set_data(f)}catch(e){var c=e instanceof n(6507).default?e.val:e;return c instanceof r(n(8890)).default?(f=null,t.set_data(f),void s("Could not parse XML: "+c.message)):(f=null,t.set_data(f),void s("Could not parse XML: "+n(6546).default.string(c)))}}})).__class__=l.prototype.constructor=i["starling.assets.XmlFactory"]=l,e.default=l},357:function(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1714).A,r=(n(7268).A,function(){this.x=this.y=this.rotation=this.currentTime=0,this.totalTime=this.alpha=this.scale=1,this.color=16777215});r.__name__="starling.extensions.Particle",r.__isInterface__=!1,(r.prototype={}).__class__=r.prototype.constructor=i["starling.extensions.Particle"]=r,e.default=r},361:function(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1714).A,r=(n(7268).A,n(7789).A,n(4142).A);function s(){return n(357)}function a(){return n(6174)}var o=function(){s().default.call(this),this.colorArgb=new(a().default),this.colorArgbDelta=new(a().default)};o.__name__="starling.extensions.PDParticle",o.__isInterface__=!1,o.__super__=s().default,(o.prototype=r(s().default.prototype,{})).__class__=o.prototype.constructor=i["starling.extensions.PDParticle"]=o,e.default=o},371:(t,e,n)=>{t.exports=n(6717)},440:t=>{"use strict";t.exports=__WEBPACK_EXTERNAL_MODULE__440__},493:function(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1714).A,r=(n(7268).A,n(7789).A,n(4142).A);function s(){return n(6717)}function a(){return n(6546)}function o(){return n(1121)}function u(){return n(5982)}var l=function(t,e){null==e&&(e=.5),null==t&&(t=.125),s().default.call(this),this._mode="basic",this._threshold=e,this._softness=t,this._alpha=1,this._outerThreshold=this._outerAlphaEnd=0,this._shadowOffsetX=this._shadowOffsetY=0,this._outerColor=0,this._outerAlphaStart=0};l.__name__="starling.styles.DistanceFieldStyle",l.__isInterface__=!1,l.__super__=s().default,(l.prototype=r(s().default.prototype,{copyFrom:function(t){var e=t instanceof l?t:null;null!=e&&(this._mode=e._mode,this._multiChannel=e._multiChannel,this._threshold=e._threshold,this._softness=e._softness,this._alpha=e._alpha,this._outerThreshold=e._outerThreshold,this._outerAlphaEnd=e._outerAlphaEnd,this._shadowOffsetX=e._shadowOffsetX,this._shadowOffsetY=e._shadowOffsetY,this._outerColor=e._outerColor,this._outerAlphaStart=e._outerAlphaStart),s().default.prototype.copyFrom.call(this,t)},createEffect:function(){return new(n(2455).default)},get_vertexFormat:function(){return l.VERTEX_FORMAT},onTargetAssigned:function(t){this.updateVertices()},updateVertices:function(){if(null!=this.get_vertexData()){for(var t=this.get_vertexData().get_numVertices(),e=(this._shadowOffsetX+8)/16,n=(this._shadowOffsetY+8)/16,i=a().default.int(255*this._threshold)|a().default.int(255*this._alpha)<<8|a().default.int(this._softness/2*255)<<16|a().default.int(31.875)<<24,r=a().default.int(255*this._outerThreshold)|a().default.int(255*this._outerAlphaEnd)<<8|a().default.int(255*e)<<16|a().default.int(255*n)<<24,s=o().default.getRed(this._outerColor)|o().default.getGreen(this._outerColor)<<8|o().default.getBlue(this._outerColor)<<16|a().default.int(255*this._outerAlphaStart)<<24,u=0,l=t;u<l;){var _=u++;this.get_vertexData().setUnsignedInt(_,"basic",i),this.get_vertexData().setUnsignedInt(_,"extended",r),this.get_vertexData().setUnsignedInt(_,"outerColor",s)}this.setVertexDataChanged()}},batchVertexData:function(t,e,i,r,o){if(null==o&&(o=-1),null==r&&(r=0),null==e&&(e=0),s().default.prototype.batchVertexData.call(this,t,e,i,r,o),null!=i){var _=Math.sqrt(i.a*i.a+i.c*i.c);if(!u().default.isEquivalent(_,1,.01)){var f=n(5215).default.__cast(t,l).get_vertexData(),h=8/255;o<0&&(o=this.get_vertexData().get_numVertices()-r);for(var c=0,d=o;c<d;){var g=c++,p=this.get_vertexData().getUnsignedInt(r+g,"basic"),m=n(9361).default.toFloat(p>>>24&255)/255*8,x=u().default.clamp(m*_,h,8),v=16777215&p|a().default.int(x/8*255)<<24;f.setUnsignedInt(e+g,"basic",v)}}}},updateEffect:function(t,e){var i=t;if(i.set_mode(this._mode),i.set_multiChannel(this._multiChannel),e.get_is3D())i.set_scale(1);else{var r=e.get_modelviewMatrix(),a=Math.sqrt(r.a*r.a+r.c*r.c);i.set_scale(a*n(3360).default.get_current().get_contentScaleFactor())}s().default.prototype.updateEffect.call(this,t,e)},canBatchWith:function(t){var e=t instanceof l?t:null;return!(null==e||!s().default.prototype.canBatchWith.call(this,t))&&e._mode==this._mode&&e._multiChannel==this._multiChannel},setupBasic:function(){this._mode="basic",this.setRequiresRedraw()},setupOutline:function(t,e,n){null==n&&(n=1),null==e&&(e=0),null==t&&(t=.25),this._mode="outline",this._outerThreshold=u().default.clamp(this._threshold-t,0,this._threshold),this._outerColor=e,this._outerAlphaStart=this._outerAlphaEnd=u().default.clamp(n,0,1),this._shadowOffsetX=this._shadowOffsetY=0,this.updateVertices()},setupGlow:function(t,e,n){null==n&&(n=.5),null==e&&(e=16776960),null==t&&(t=.2),this._mode="glow",this._outerThreshold=u().default.clamp(this._threshold-t,0,this._threshold),this._outerColor=e,this._outerAlphaStart=u().default.clamp(n,0,1),this._outerAlphaEnd=0,this._shadowOffsetX=this._shadowOffsetY=0,this.updateVertices()},setupDropShadow:function(t,e,n,i,r){null==r&&(r=.5),null==i&&(i=0),null==n&&(n=2),null==e&&(e=2),null==t&&(t=.2),this._mode="shadow",this._outerThreshold=u().default.clamp(this._threshold-t,0,this._threshold),this._outerColor=i,this._outerAlphaStart=u().default.clamp(r,0,1),this._outerAlphaEnd=0,this._shadowOffsetX=u().default.clamp(e,-8,8),this._shadowOffsetY=u().default.clamp(n,-8,8),this.updateVertices()},get_mode:function(){return this._mode},set_mode:function(t){return this._mode=t,this.setRequiresRedraw(),t},get_multiChannel:function(){return this._multiChannel},set_multiChannel:function(t){return this._multiChannel=t,this.setRequiresRedraw(),t},get_threshold:function(){return this._threshold},set_threshold:function(t){return t=u().default.clamp(t,0,1),this._threshold!=t&&(this._threshold=t,this.updateVertices()),t},get_softness:function(){return this._softness},set_softness:function(t){return t=u().default.clamp(t,0,1),this._softness!=t&&(this._softness=t,this.updateVertices()),t},get_alpha:function(){return this._alpha},set_alpha:function(t){return t=u().default.clamp(t,0,1),this._alpha!=t&&(this._alpha=t,this.updateVertices()),t},get_outerThreshold:function(){return this._outerThreshold},set_outerThreshold:function(t){return t=u().default.clamp(t,0,1),this._outerThreshold!=t&&(this._outerThreshold=t,this.updateVertices()),t},get_outerAlphaStart:function(){return this._outerAlphaStart},set_outerAlphaStart:function(t){return t=u().default.clamp(t,0,1),this._outerAlphaStart!=t&&(this._outerAlphaStart=t,this.updateVertices()),t},get_outerAlphaEnd:function(){return this._outerAlphaEnd},set_outerAlphaEnd:function(t){return t=u().default.clamp(t,0,1),this._outerAlphaEnd!=t&&(this._outerAlphaEnd=t,this.updateVertices()),t},get_outerColor:function(){return this._outerColor},set_outerColor:function(t){return this._outerColor!=t&&(this._outerColor=t,this.updateVertices()),t},get_shadowOffsetX:function(){return this._shadowOffsetX},set_shadowOffsetX:function(t){return t=u().default.clamp(t,-8,8),this._shadowOffsetX!=t&&(this._shadowOffsetX=t,this.updateVertices()),t},get_shadowOffsetY:function(){return this._shadowOffsetY},set_shadowOffsetY:function(t){return t=u().default.clamp(t,-8,8),this._shadowOffsetY!=t&&(this._shadowOffsetY=t,this.updateVertices()),t}})).__class__=l.prototype.constructor=i["starling.styles.DistanceFieldStyle"]=l,Object.defineProperties(l.prototype,{mode:{get:function(){return this.get_mode()},set:function(t){return this.set_mode(t)}},multiChannel:{get:function(){return this.get_multiChannel()},set:function(t){return this.set_multiChannel(t)}},threshold:{get:function(){return this.get_threshold()},set:function(t){return this.set_threshold(t)}},softness:{get:function(){return this.get_softness()},set:function(t){return this.set_softness(t)}},alpha:{get:function(){return this.get_alpha()},set:function(t){return this.set_alpha(t)}},outerThreshold:{get:function(){return this.get_outerThreshold()},set:function(t){return this.set_outerThreshold(t)}},outerAlphaStart:{get:function(){return this.get_outerAlphaStart()},set:function(t){return this.set_outerAlphaStart(t)}},outerAlphaEnd:{get:function(){return this.get_outerAlphaEnd()},set:function(t){return this.set_outerAlphaEnd(t)}},outerColor:{get:function(){return this.get_outerColor()},set:function(t){return this.set_outerColor(t)}},shadowOffsetX:{get:function(){return this.get_shadowOffsetX()},set:function(t){return this.set_shadowOffsetX(t)}},shadowOffsetY:{get:function(){return this.get_shadowOffsetY()},set:function(t){return this.set_shadowOffsetY(t)}}}),l.VERTEX_FORMAT=s().default.VERTEX_FORMAT.extend("basic:bytes4, extended:bytes4, outerColor:bytes4"),l.MODE_BASIC="basic",l.MODE_OUTLINE="outline",l.MODE_GLOW="glow",l.MODE_SHADOW="shadow",e.default=l},527:function(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1714).A,r=(n(7268).A,n(7789).A),s=n(5235).A,a=n(4142).A;function o(){return n(888)}function u(){return n(3360)}function l(){return n(5982)}function _(){return n(9427)}function f(){return n(6717)}var h=function(){this.__showSkipped=!1,this.__skipCount=0,this.__drawCount=0,this.__gpuMemory=0,this.__memory=0,this.__fps=0,this.__totalTime=0,this.__frameCount=0,o().default.call(this);var t="mini",e=16777215;this.__labels=new(_().default)(90,45),this.__labels.get_format().setTo(t,-1,e,"left","top"),this.__labels.set_batchable(!0),this.__labels.set_x(2),this.__values=new(_().default)(89,45,""),this.__values.get_format().setTo(t,-1,e,"right","top"),this.__values.set_batchable(!0),this.__background=new(n(42).default)(90,45,0),this.updateLabels(),this.__background.get_style().get_type()!=f().default&&this.__background.set_style(new(f().default)),this.__labels.get_style().get_type()!=f().default&&this.__labels.set_style(new(f().default)),this.__values.get_style().get_type()!=f().default&&this.__values.set_style(new(f().default)),this.addChild(this.__background),this.addChild(this.__labels),this.addChild(this.__values),this.addEventListener("addedToStage",s(this,this.onAddedToStage)),this.addEventListener("removedFromStage",s(this,this.onRemovedFromStage))};h.__name__="starling.core.StatsDisplay",h.__isInterface__=!1,h.__super__=o().default,(h.prototype=a(o().default.prototype,{onAddedToStage:function(t){this.addEventListener("enterFrame",s(this,this.onEnterFrame)),u().default.get_current().addEventListener("skipFrame",s(this,this.onSkipFrame)),this.__totalTime=this.__frameCount=this.__skipCount=0,this.update()},onRemovedFromStage:function(t){this.removeEventListener("enterFrame",s(this,this.onEnterFrame)),u().default.get_current().removeEventListener("skipFrame",s(this,this.onSkipFrame))},onEnterFrame:function(t){var e=n(5215).default.__cast(t,n(3349).default);this.__totalTime+=e.get_passedTime(),this.__frameCount++,this.__totalTime>.5&&(this.update(),this.__frameCount=this.__skipCount=0,this.__totalTime=0)},onSkipFrame:function(){this.__skipCount+=1},update:function(){this.__background.set_color(this.__skipCount>this.__frameCount/2?16128:0),this.__fps=this.__totalTime>0?this.__frameCount/this.__totalTime:0,this.__memory=9.5367431640625e-7*r(n(1164)).default.get_totalMemory(),this.__gpuMemory=this.get_supportsGpuMem()?9.5367431640625e-7*u().default.get_current().get_context().totalGPUMemory:-1;var t=this.__totalTime>0?this.__skipCount/this.__totalTime:0,e=this.__showSkipped?l().default.toFixed(t,t<100?1:0):"",i=l().default.toFixed(this.__fps,this.__fps<100?1:0),s=l().default.toFixed(this.__memory,this.__memory<100?1:0),a=l().default.toFixed(this.__gpuMemory,this.__gpuMemory<100?1:0),o=n(6546).default.string(this.__totalTime>0?this.__drawCount-2:this.__drawCount);this.__values.set_text(i+"\n"+(this.__showSkipped?e+"\n":"")+s+"\n"+(this.__gpuMemory>=0?a+"\n":"")+o)},updateLabels:function(){var t=["frames/sec:"];this.__showSkipped&&t.splice(t.length,0,"skipped/sec:"),t.splice(t.length,0,"std memory:"),this.get_supportsGpuMem()&&t.splice(t.length,0,"gpu memory:"),t.splice(t.length,0,"draw calls:"),this.__labels.set_text(t.join("\n")),this.__background.set_height(this.__labels.get_textBounds().height+4)},render:function(t){t.excludeFromCache(this),t.finishMeshBatch(),o().default.prototype.render.call(this,t)},getBounds:function(t,e){return this.__background.getBounds(t,e)},get_supportsGpuMem:function(){return 0!=u().default.get_current().get_context().totalGPUMemory},get_drawCount:function(){return this.__drawCount},set_drawCount:function(t){return this.__drawCount=t},get_fps:function(){return this.__fps},set_fps:function(t){return this.__fps=t},get_memory:function(){return this.__memory},set_memory:function(t){return this.__memory=t},get_gpuMemory:function(){return this.__gpuMemory},set_gpuMemory:function(t){return this.__gpuMemory=t},get_showSkipped:function(){return this.__showSkipped},set_showSkipped:function(t){return this.__showSkipped=t,this.updateLabels(),this.update(),this.__showSkipped}})).__class__=h.prototype.constructor=i["starling.core.StatsDisplay"]=h,Object.defineProperties(h.prototype,{supportsGpuMem:{get:function(){return this.get_supportsGpuMem()}},drawCount:{get:function(){return this.get_drawCount()},set:function(t){return this.set_drawCount(t)}},fps:{get:function(){return this.get_fps()},set:function(t){return this.set_fps(t)}},memory:{get:function(){return this.get_memory()},set:function(t){return this.set_memory(t)}},gpuMemory:{get:function(){return this.get_gpuMemory()},set:function(t){return this.set_gpuMemory(t)}},showSkipped:{get:function(){return this.get_showSkipped()},set:function(t){return this.set_showSkipped(t)}}}),h.UPDATE_INTERVAL=.5,h.B_TO_MB=9.5367431640625e-7,e.default=h},580:function(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1714).A;function r(){return n(2304)}n(7268).A,n(7789).A;var s=function(t){this.init(t)};s.__name__="starling.text.BitmapCharLocation",s.__isInterface__=!1,(s.prototype={init:function(t){return this.char=t,this}}).__class__=s.prototype.constructor=i["starling.text.BitmapCharLocation"]=s,s.instanceFromPool=function(t){var e=s.sInstancePool.length>0?r().default.pop(s.sInstancePool):new s(t);return e.init(t),r().default.set(s.sInstanceLoan,s.sInstanceLoan.length,e),e},s.vectorFromPool=function(){var t=s.sVectorPool.length>0?s.sVectorPool.pop():r().default._new();return t.length=0,s.sVectorLoan[s.sVectorLoan.length]=t,t},s.rechargePool=function(){for(var t,e;s.sInstanceLoan.length>0;)(t=r().default.pop(s.sInstanceLoan)).char=null,r().default.set(s.sInstancePool,s.sInstancePool.length,t);for(;s.sVectorLoan.length>0;)(e=s.sVectorLoan.pop()).length=0,s.sVectorPool[s.sVectorPool.length]=e},s.sInstancePool=r().default._new(),s.sVectorPool=[],s.sInstanceLoan=r().default._new(),s.sVectorLoan=[],e.default=s},616:function(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1714).A;function r(){return n(8330)}function s(){return n(5770)}n(7268).A,n(7789).A;var a=function(t,e){this._onAssign=[],this._onRelease=[],this.add(t,e)};a.__name__="starling.display.SetupAutomator",a.__isInterface__=!1,(a.prototype={add:function(t,e){null!=t&&-1==this._onAssign.indexOf(t)&&(this._onAssign[this._onAssign.length]=t),null!=e&&-1==this._onRelease.indexOf(e)&&(this._onRelease[this._onRelease.length]=e)},remove:function(t,e){null!=t&&r().default.remove(this._onAssign,t),null!=e&&r().default.remove(this._onRelease,e)},onAssign:function(t){for(var e=0,n=this._onAssign.length;e<n;){var i=e++;s().default.execute(this._onAssign[i],[t])}},onRelease:function(t){for(var e=0,n=this._onRelease.length;e<n;){var i=e++;s().default.execute(this._onRelease[i],[t])}}}).__class__=a.prototype.constructor=i["starling.display.SetupAutomator"]=a,e.default=a},644:(t,e,n)=>{t.exports=n(6174)},743:function(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1714).A,r=(n(7268).A,n(7789).A);function s(){return n(2304)}function a(){return r(n(2714))}function o(){return n(3174)}var u=function(t){this.__id=t,this.__tapCount=0,this.__phase="hover",this.__pressure=this.__width=this.__height=1,this.__bubbleChain=s().default._new(),this.__timestamp=this.__startTimestamp=-1};u.__name__="starling.events.Touch",u.__isInterface__=!1,(u.prototype={getLocation:function(t,e){return u.sHelperPoint.setTo(this.__globalX,this.__globalY),t.globalToLocal(u.sHelperPoint,e)},getPreviousLocation:function(t,e){return u.sHelperPoint.setTo(this.__previousGlobalX,this.__previousGlobalY),t.globalToLocal(u.sHelperPoint,e)},getStartLocation:function(t,e){return u.sHelperPoint.setTo(this.__startGlobalX,this.__startGlobalY),t.globalToLocal(u.sHelperPoint,e)},getMovement:function(t,e){return u.getMovementBetween(this.__previousGlobalX,this.__previousGlobalY,this.__globalX,this.__globalY,t,e)},getMovementSinceStart:function(t,e){return u.getMovementBetween(this.__startGlobalX,this.__startGlobalY,this.__globalX,this.__globalY,t,e)},isTouching:function(t){var e=this.__bubbleChain;return-1!=Array.prototype.indexOf.call(e,t,0)},toString:function(){return n(9937).default.format("[Touch {0}: globalX={1}, globalY={2}, phase={3}]",[this.__id,this.__globalX,this.__globalY,this.__phase])},clone:function(){var t=new u(this.__id);return t.__globalX=this.__globalX,t.__globalY=this.__globalY,t.__previousGlobalX=this.__previousGlobalX,t.__previousGlobalY=this.__previousGlobalY,t.__startGlobalX=this.__startGlobalX,t.__startGlobalY=this.__startGlobalY,t.__startTimestamp=this.__startTimestamp,t.__phase=this.__phase,t.__tapCount=this.__tapCount,t.__timestamp=this.__timestamp,t.__pressure=this.__pressure,t.__width=this.__width,t.__height=this.__height,t.__cancelled=this.__cancelled,t.set_target(this.__target),t},updateBubbleChain:function(){if(null!=this.__target){var t=1,e=this.__target;for(this.__bubbleChain.length=1,s().default.set(this.__bubbleChain,0,e);null!=(e=e.get_parent());)s().default.set(this.__bubbleChain,t++,e)}else this.__bubbleChain.length=0},get_id:function(){return this.__id},get_previousGlobalX:function(){return this.__previousGlobalX},get_previousGlobalY:function(){return this.__previousGlobalY},get_startGlobalX:function(){return this.__startGlobalX},get_startGlobalY:function(){return this.__startGlobalY},get_globalX:function(){return this.__globalX},set_globalX:function(t){return this.__globalX!=this.__globalX?this.__previousGlobalX=this.__startGlobalX=t:this.__previousGlobalX=this.__globalX,this.__globalX=t},get_globalY:function(){return this.__globalY},set_globalY:function(t){return this.__globalY!=this.__globalY?this.__previousGlobalY=this.__startGlobalY=t:this.__previousGlobalY=this.__globalY,this.__globalY=t},get_tapCount:function(){return this.__tapCount},set_tapCount:function(t){return this.__tapCount=t},get_phase:function(){return this.__phase},set_phase:function(t){return this.__phase=t,"began"==t&&(this.__startGlobalX=this.__globalX,this.__startGlobalY=this.__globalY,this.__startTimestamp=this.__timestamp),t},get_target:function(){return this.__target},set_target:function(t){return this.__target!=t&&(this.__target=t,this.updateBubbleChain()),this.__target},get_timestamp:function(){return this.__timestamp},set_timestamp:function(t){return this.__startTimestamp<0&&(this.__startTimestamp=t),this.__timestamp=t},get_pressure:function(){return this.__pressure},set_pressure:function(t){return this.__pressure=t},get_width:function(){return this.__width},set_width:function(t){return this.__width=t},get_height:function(){return this.__height},set_height:function(t){return this.__height=t},get_cancelled:function(){return this.__cancelled},set_cancelled:function(t){return this.__cancelled=t},get_duration:function(){return this.__timestamp<0||this.__startTimestamp<0||this.__startTimestamp>this.__timestamp?-1:this.__timestamp-this.__startTimestamp},update:function(t,e,n,i,r,s,a){null==a&&(a=1),null==s&&(s=1),null==r&&(r=1),this.__pressure=r,this.__width=s,this.__height=a,this.set_timestamp(t),this.set_globalX(n),this.set_globalY(i),this.set_phase(e)},dispatchEvent:function(t){null!=this.__target&&t.dispatch(this.__bubbleChain)},get_bubbleChain:function(){var t=this.__bubbleChain;return r(n(2991)).default.ofArray(Array.prototype.concat.call(t))}}).__class__=u.prototype.constructor=i["starling.events.Touch"]=u,Object.defineProperties(u.prototype,{id:{get:function(){return this.get_id()}},previousGlobalX:{get:function(){return this.get_previousGlobalX()}},previousGlobalY:{get:function(){return this.get_previousGlobalY()}},startGlobalX:{get:function(){return this.get_startGlobalX()}},startGlobalY:{get:function(){return this.get_startGlobalY()}},globalX:{get:function(){return this.get_globalX()},set:function(t){return this.set_globalX(t)}},globalY:{get:function(){return this.get_globalY()},set:function(t){return this.set_globalY(t)}},tapCount:{get:function(){return this.get_tapCount()},set:function(t){return this.set_tapCount(t)}},phase:{get:function(){return this.get_phase()},set:function(t){return this.set_phase(t)}},target:{get:function(){return this.get_target()},set:function(t){return this.set_target(t)}},timestamp:{get:function(){return this.get_timestamp()},set:function(t){return this.set_timestamp(t)}},pressure:{get:function(){return this.get_pressure()},set:function(t){return this.set_pressure(t)}},width:{get:function(){return this.get_width()},set:function(t){return this.set_width(t)}},height:{get:function(){return this.get_height()},set:function(t){return this.set_height(t)}},cancelled:{get:function(){return this.get_cancelled()},set:function(t){return this.set_cancelled(t)}},duration:{get:function(){return this.get_duration()}},bubbleChain:{get:function(){return this.get_bubbleChain()}}}),u.getMovementBetween=function(t,e,n,i,r,s){null==s&&(s=new(a().default));var u=o().default.getPoint(t,e),l=o().default.getPoint(n,i);return r.globalToLocal(u,u),r.globalToLocal(l,l),s.setTo(l.x-u.x,l.y-u.y),o().default.putPoint(u),o().default.putPoint(l),s},u.sHelperPoint=new(a().default),e.default=u},758:(t,e,n)=>{t.exports=n(5332)},811:(t,e,n)=>{t.exports=n(357)},818:t=>{"use strict";t.exports=__WEBPACK_EXTERNAL_MODULE__818__},888:function(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1714).A,r=(n(7268).A,n(7789).A,n(4142).A);function s(){return n(5741)}var a=function(){s().default.call(this)};a.__name__="starling.display.Sprite",a.__isInterface__=!1,a.__super__=s().default,(a.prototype=r(s().default.prototype,{})).__class__=a.prototype.constructor=i["starling.display.Sprite"]=a,e.default=a},892:function(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1714).A,r=(n(7268).A,n(7789).A,n(4142).A);function s(){return n(3226)}function a(){return n(7764)}var o=function(){s().default.call(this),this._textureSmoothing="bilinear"};o.__name__="starling.rendering.FilterEffect",o.__isInterface__=!1,o.__super__=s().default,(o.prototype=r(s().default.prototype,{get_programVariantName:function(){return a().default.getTextureVariantBits(this._texture)},createProgram:function(){if(null!=this._texture){var t=o.STD_VERTEX_SHADER,e=o.tex("oc","v0",0,this._texture);return n(9259).default.fromSource(t,e)}return s().default.prototype.createProgram.call(this)},beforeDraw:function(t){if(s().default.prototype.beforeDraw.call(this,t),null!=this._texture){var e=this._textureRepeat&&this._texture.get_root().get_isPotTexture();a().default.setSamplerStateAt(0,this._texture.get_mipMapping(),this._textureSmoothing,e),t.setTextureAt(0,this._texture.get_base()),this.get_vertexFormat().setVertexBufferAt(1,this.get_vertexBuffer(),"texCoords")}},afterDraw:function(t){null!=this._texture&&(t.setTextureAt(0,null),t.setVertexBufferAt(1,null)),s().default.prototype.afterDraw.call(this,t)},get_vertexFormat:function(){return o.VERTEX_FORMAT},get_texture:function(){return this._texture},set_texture:function(t){return this._texture=t},get_textureSmoothing:function(){return this._textureSmoothing},set_textureSmoothing:function(t){return this._textureSmoothing=t},get_textureRepeat:function(){return this._textureRepeat},set_textureRepeat:function(t){return this._textureRepeat=t}})).__class__=o.prototype.constructor=i["starling.rendering.FilterEffect"]=o,Object.defineProperties(o.prototype,{texture:{get:function(){return this.get_texture()},set:function(t){return this.set_texture(t)}},textureSmoothing:{get:function(){return this.get_textureSmoothing()},set:function(t){return this.set_textureSmoothing(t)}},textureRepeat:{get:function(){return this.get_textureRepeat()},set:function(t){return this.set_textureRepeat(t)}}}),o.tex=function(t,e,n,i,r){return null==r&&(r=!0),a().default.createAGALTexOperation(t,e,n,i,r)},o.VERTEX_FORMAT=s().default.VERTEX_FORMAT.extend("texCoords:float2"),o.STD_VERTEX_SHADER="m44 op, va0, vc0 \nmov v0, va1",e.default=o},897:function(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1714).A,r=(n(7268).A,n(7789).A),s=n(4142).A;function a(){return n(4016)}function o(){return r(n(1394))}function u(){return r(n(1682))}function l(){return n(5397)}var _=function(){a().default.call(this),this.addMimeTypes(["audio/mp3","audio/mpeg3","audio/mpeg","audio/ogg"]),this.addExtensions(["mp3","mpeg","ogg","wav"])};_.__name__="starling.assets.SoundFactory",_.__isInterface__=!1,_.__super__=a().default,(_.prototype=s(a().default.prototype,{canHandle:function(t){if(t.get_data()instanceof o().default||a().default.prototype.canHandle.call(this,t))return!0;if(t.get_data()instanceof u().default){var e=t.get_data();return!!l().default.startsWithBytes(e,_.MAGIC_NUMBERS_A)||l().default.startsWithBytes(e,_.MAGIC_NUMBERS_B)}return!1},create:function(t,e,i,s){var a=null;try{if(t.get_data()instanceof o().default)a=n(5215).default.__cast(t.get_data(),o().default);else{var l=t.get_data()instanceof u().default?t.get_data():null;null!=l&&(a=new(o().default)).loadCompressedDataFromByteArray(l,l.length)}i(t.get_name(),a)}catch(t){var _=t instanceof n(6507).default?t.val:t;return _ instanceof r(n(8890)).default?void s("Could not load sound data: "+_.message):void s("Could not load sound data: "+n(6546).default.string(_))}}})).__class__=_.prototype.constructor=i["starling.assets.SoundFactory"]=_,_.MAGIC_NUMBERS_A=[255,251],_.MAGIC_NUMBERS_B=[73,68,51],e.default=_},935:function(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1714).A,r=(n(7268).A,function(){});r.__name__="_Xml.XmlType_Impl_",r.__isInterface__=!1,(r.prototype={}).__class__=r.prototype.constructor=i["_Xml.XmlType_Impl_"]=r,r.toString=function(t){switch(t){case 0:return"Element";case 1:return"PCData";case 2:return"CData";case 3:return"Comment";case 4:return"DocType";case 5:return"ProcessingInstruction";case 6:return"Document"}},r.Element=0,r.PCData=1,r.CData=2,r.Comment=3,r.DocType=4,r.ProcessingInstruction=5,r.Document=6,e.default=r},974:function(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1714).A,r=(n(7268).A,function(t){this.vector=t,this.index=-1});r.__name__="openfl._Vector.VectorIterator",r.__isInterface__=!1,(r.prototype={hasNext:function(){return this.index<this.vector.length-1},next:function(){return this.index++,this.vector[this.index]}}).__class__=r.prototype.constructor=i["openfl._Vector.VectorIterator"]=r,e.default=r},993:(t,e,n)=>{t.exports=n(7087)},1004:function(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1714).A,r=(n(7268).A,function(){});r.__name__="starling.events.TouchPhase",r.__isInterface__=!1,(r.prototype={}).__class__=r.prototype.constructor=i["starling.events.TouchPhase"]=r,r.HOVER="hover",r.BEGAN="began",r.MOVED="moved",r.STATIONARY="stationary",r.ENDED="ended",e.default=r},1047:function(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1714).A,r=(n(7268).A,n(7789).A),s=function(){};s.__name__="starling.animation.BezierEasing",s.__isInterface__=!1,(s.prototype={}).__class__=s.prototype.constructor=i["starling.animation.BezierEasing"]=s,s.create=function(t,e,i,a){if(t<0||t>1||i<0||i>1)throw new(n(6507).default)(new(r(n(818)).default)("x values must be in range [0, 1]"));if(t==e&&i==a)return s.linearEasing;var o=[],u=s.calcBezier(0*s.SAMPLE_STEP_SIZE,t,i);o[0]=u;var l=s.calcBezier(s.SAMPLE_STEP_SIZE,t,i);o[1]=l;var _=s.calcBezier(2*s.SAMPLE_STEP_SIZE,t,i);o[2]=_;var f=s.calcBezier(3*s.SAMPLE_STEP_SIZE,t,i);o[3]=f;var h=s.calcBezier(4*s.SAMPLE_STEP_SIZE,t,i);o[4]=h;var c=s.calcBezier(5*s.SAMPLE_STEP_SIZE,t,i);o[5]=c;var d=s.calcBezier(6*s.SAMPLE_STEP_SIZE,t,i);o[6]=d;var g=s.calcBezier(7*s.SAMPLE_STEP_SIZE,t,i);o[7]=g;var p=s.calcBezier(8*s.SAMPLE_STEP_SIZE,t,i);o[8]=p;var m=s.calcBezier(9*s.SAMPLE_STEP_SIZE,t,i);o[9]=m;var x=s.calcBezier(10*s.SAMPLE_STEP_SIZE,t,i);return o[10]=x,function(n){return 0==n?0:1==n?1:s.calcBezier(function(e){for(var n=0,r=1;10!=r&&o[r]<=e;)n+=s.SAMPLE_STEP_SIZE,++r;--r;var a=n+(e-o[r])/(o[r+1]-o[r])*s.SAMPLE_STEP_SIZE,u=s.getSlope(a,t,i);return u>=.001?s.newtonRaphsonIterate(e,a,t,i):0==u?a:s.binarySubdivide(e,n,n+s.SAMPLE_STEP_SIZE,t,i)}(n),e,a)}},s.calcBezier=function(t,e,n){return(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t},s.getSlope=function(t,e,n){return 3*(1-3*n+3*e)*t*t+2*(3*n-6*e)*t+3*e},s.binarySubdivide=function(t,e,i,r,a){for(var o,u,l=0;;){var _;if((o=s.calcBezier(u=e+(i-e)/2,r,a)-t)>0?i=u:e=u,Math.abs(o)>1e-7?(++l,_=n(9361).default.gt(10,l)):_=!1,!_)break}return u},s.newtonRaphsonIterate=function(t,e,n,i){var r=s.getSlope(e,n,i);if(0==r)return e;var a=s.calcBezier(e,n,i)-t,o=s.getSlope(e-=a/r,n,i);if(0==o)return e;var u=s.calcBezier(e,n,i)-t,l=s.getSlope(e-=u/o,n,i);if(0==l)return e;var _=s.calcBezier(e,n,i)-t,f=s.getSlope(e-=_/l,n,i);return 0==f?e:e-=(s.calcBezier(e,n,i)-t)/f},s.linearEasing=function(t){return t},s.NEWTON_ITERATIONS=4,s.NEWTON_MIN_SLOPE=.001,s.SUBDIVISION_PRECISION=1e-7,s.SUBDIVISION_MAX_ITERATIONS=10,s.SPLINE_TABLE_SIZE=11,s.SAMPLE_STEP_SIZE=.1,e.default=s},1048:(t,e,n)=>{t.exports=n(1750)},1055:(t,e,n)=>{t.exports=n(1473)},1117:t=>{"use strict";t.exports=__WEBPACK_EXTERNAL_MODULE__1117__},1121:function(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1714).A;function r(){return n(6546)}function s(){return n(2304)}function a(){return n(9361)}n(7268).A,n(7789).A;var o=function(){};o.__name__="starling.utils.Color",o.__isInterface__=!1,(o.prototype={}).__class__=o.prototype.constructor=i["starling.utils.Color"]=o,o.getAlpha=function(t){return t>>>24&255},o.getRed=function(t){return t>>>16&255},o.getGreen=function(t){return t>>>8&255},o.getBlue=function(t){return 255&t},o.setAlpha=function(t,e){return 16777215&t|(255&e)<<24},o.setRed=function(t,e){return-16711681&t|(255&e)<<16},o.setGreen=function(t,e){return-65281&t|(255&e)<<8},o.setBlue=function(t,e){return-256&t|255&e},o.rgb=function(t,e,n){return t<<16|e<<8|n},o.argb=function(t,e,n,i){return t<<24|e<<16|n<<8|i},o.hsv=function(t,e,n){var i=0,s=0,a=0,u=Math.floor(6*t),l=6*t-u,_=n*(1-e),f=n*(1-l*e),h=n*(1-(1-l)*e);switch(r().default.int(u%6)){case 0:i=n,s=h,a=_;break;case 1:i=f,s=n,a=_;break;case 2:i=_,s=n,a=h;break;case 3:i=_,s=f,a=n;break;case 4:i=h,s=_,a=n;break;case 5:i=n,s=_,a=f}return o.rgb(Math.ceil(255*i),Math.ceil(255*s),Math.ceil(255*a))},o.hsl=function(t,e,n){var i=0,s=0,a=0,u=(1-Math.abs(2*n-1))*e,l=6*t,_=u*(1-Math.abs(l%2-1)),f=n-u/2;switch(r().default.int(l%6)){case 0:i=u+f,s=_+f,a=f;break;case 1:i=_+f,s=u+f,a=f;break;case 2:i=f,s=u+f,a=_+f;break;case 3:i=f,s=_+f,a=u+f;break;case 4:i=_+f,s=f,a=u+f;break;case 5:i=u+f,s=f,a=_+f}return o.rgb(Math.ceil(255*i),Math.ceil(255*s),Math.ceil(255*a))},o.rgbToHsv=function(t,e){null==e&&(e=s().default._new(3,!0));var n=o.getRed(t)/255,i=o.getGreen(t)/255,r=o.getBlue(t)/255,a=Math.max(n,i),u=Math.max(a,r);a=Math.min(n,i);var l=u-Math.min(a,r);for(0==l?s().default.set(e,0,0):u==n?s().default.set(e,0,(i-r)/l%6/6):u==i?s().default.set(e,0,((r-n)/l+2)/6):u==r&&s().default.set(e,0,((n-i)/l+4)/6);e[0]<0;){var _=e;s().default.set(_,0,_[0]+1)}for(;e[0]>=1;){var f=e;s().default.set(f,0,f[0]-1)}return s().default.set(e,2,u),s().default.set(e,1,0==u?0:l/u),e},o.rgbToHsl=function(t,e){null==e&&(e=s().default._new(3,!0));var n=o.getRed(t)/255,i=o.getGreen(t)/255,r=o.getBlue(t)/255,a=Math.max(n,i),u=Math.max(a,r);a=Math.min(n,i);var l=Math.min(a,r),_=u-l;for(0==_?s().default.set(e,0,0):u==n?s().default.set(e,0,(i-r)/_%6/6):u==i?s().default.set(e,0,((r-n)/_+2)/6):u==r&&s().default.set(e,0,((n-i)/_+4)/6);e[0]<0;){var f=e;s().default.set(f,0,f[0]+1)}for(;e[0]>=1;){var h=e;s().default.set(h,0,h[0]-1)}return s().default.set(e,2,.5*(u+l)),s().default.set(e,1,0==_?0:_/(1-Math.abs(2*e[2]-1))),e},o.toVector=function(t,e){return null==e&&(e=s().default._new(4,!0)),s().default.set(e,0,a().default.toFloat(t>>>16&255)/255),s().default.set(e,1,a().default.toFloat(t>>>8&255)/255),s().default.set(e,2,a().default.toFloat(255&t)/255),s().default.set(e,3,a().default.toFloat(t>>>24&255)/255),e},o.multiply=function(t,e){if(0==e)return 0;var n=r().default.int(a().default.toFloat(t>>>24&255)*e),i=r().default.int(a().default.toFloat(t>>>16&255)*e),s=r().default.int(a().default.toFloat(t>>>8&255)*e),u=r().default.int(a().default.toFloat(255&t)*e);return a().default.gt(n,255)&&(n=255),a().default.gt(i,255)&&(i=255),a().default.gt(s,255)&&(s=255),a().default.gt(u,255)&&(u=255),o.argb(n,i,s,u)},o.interpolate=function(t,e,n){var i=t>>>24&255,s=t>>>16&255,a=t>>>8&255,o=255&t,u=e>>>24&255,l=e>>>16&255,_=e>>>8&255,f=255&e;return r().default.int(i+(u-i)*n)<<24|r().default.int(s+(l-s)*n)<<16|r().default.int(a+(_-a)*n)<<8|r().default.int(o+(f-o)*n)},o.WHITE=16777215,o.SILVER=12632256,o.GRAY=8421504,o.BLACK=0,o.RED=16711680,o.MAROON=8388608,o.YELLOW=16776960,o.OLIVE=8421376,o.LIME=65280,o.GREEN=32768,o.AQUA=65535,o.TEAL=32896,o.BLUE=255,o.NAVY=128,o.FUCHSIA=16711935,o.PURPLE=8388736,e.default=o},1150:(t,e,