UNPKG

@thetoto/openfl

Version:

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

2 lines 1.3 MB
/*! OpenFL v9.0.2-custom | MIT (c) Joshua Granick and other OpenFL contributors | openfl.org */ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("pako"),require("howler")):"function"==typeof define&&define.amd?define(["pako","howler"],e):"object"==typeof exports?exports.openfl=e(require("pako"),require("howler")):t.openfl=e(t.pako,t.window)}(window,(function(__WEBPACK_EXTERNAL_MODULE__61__,__WEBPACK_EXTERNAL_MODULE__538__){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=488)}([function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default={}},function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default={Enum:{}}},function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t&&t.__esModule?t:{default:t}}},function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){function n(){}n.prototype=t;var i=new n;for(var r in e)i[r]=e[r];return e.toString!==Object.prototype.toString&&(i.toString=e.toString),i}},function(t,e,n){(function(t){("undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(2).default;n(1).default,n(3).default;function r(){return n(25)}var a=function(){};a.__name__="Std",a.__isInterface__=!1,(a.prototype={}).__class__=a.prototype.constructor=i.Std=a,String.prototype.__class__=i.String=String,String.__name__="String",i.Array=Array,Array.__name__="Array",Date.prototype.__class__=i.Date=Date,Date.__name__="Date";i.Int={},i.Dynamic={},i.Float=Number,i.Bool=Boolean,i.Class={},i.Enum={};a.is=function(t,e){return r().default.__instanceof(t,e)},a.string=function(t){return r().default.__string_rec(t,"")},a.int=function(t){return 0|t},a.parseInt=function(t){if(null!=t)for(var e=0,i=t.length;e<i;){var r=e++,a=n(11).default.fastCodeAt(t,r);if(a<=8||a>=14&&32!=a&&45!=a){var s=parseInt(t,"x"==t[r+1]||"X"==t[r+1]?16:10);return isNaN(s)?null:s}}return null},a.parseFloat=function(t){return parseFloat(t)},e.default=a}).call(this,n(0))},function(t,e,n){(function(t){("undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(2).default,r=(n(1).default,n(3).default,n(4).default),a=function(t){Error.call(this),this.val=t,Error.captureStackTrace&&Error.captureStackTrace(this,a)};a.__name__="js._Boot.HaxeError",a.__isInterface__=!1,a.__super__=Error,a.prototype=r(Error.prototype,{}),a.prototype.__class__=a.prototype.constructor=i["js._Boot.HaxeError"]=a,Object.defineProperty(a.prototype,"message",{get:function(){return String(this.val)}}),a.wrap=function(t){return t instanceof Error?t:new a(t)},e.default=a}).call(this,n(0))},function(t,e,n){(function(t){("undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(2).default;n(1).default,n(3).default;function r(){return n(25)}var a=function(){};a.__name__="Reflect",a.__isInterface__=!1,(a.prototype={}).__class__=a.prototype.constructor=i.Reflect=a,a.hasField=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.field=function(t,e){try{return t[e]}catch(t){n(22).default.lastException=t;t instanceof n(6).default&&t.val;return null}},a.setField=function(t,e,n){t[e]=n},a.getProperty=function(t,e){var n;return null==t?null:!!t.__properties__&&(n=t.__properties__["get_"+e])?t[n]():t[e]},a.callMethod=function(t,e,n){return e.apply(t,n)},a.fields=function(t){var e=[];if(null!=t){var n=Object.prototype.hasOwnProperty;for(var i in t)"__id__"!=i&&"hx__closures__"!=i&&n.call(t,i)&&e.push(i)}return e},a.isFunction=function(t){return"function"==typeof t&&!(r().default.isClass(t)||r().default.isEnum(t))},a.compare=function(t,e){return t==e?0:t>e?1:-1},a.compareMethods=function(t,e){return t==e||!(!a.isFunction(t)||!a.isFunction(e))&&(t.scope==e.scope&&t.method==e.method&&null!=t.method)},a.isEnumValue=function(t){return null!=t&&null!=t.__enum__},a.deleteField=function(t,e){return!!a.hasField(t,e)&&(delete t[e],!0)},a.makeVarArgs=function(t){return function(){var e=Array.prototype.slice.call(arguments);return t(e)}},e.default=a}).call(this,n(0))},function(t,e,n){(function(t){("undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(2).default;n(1).default,n(3).default;var r=function(){};r.__name__="HxOverrides",r.__isInterface__=!1,(r.prototype={}).__class__=r.prototype.constructor=i.HxOverrides=r,r.strDate=function(t){switch(t.length){case 8:var e=t.split(":"),i=new Date;return i.setTime(0),i.setUTCHours(e[0]),i.setUTCMinutes(e[1]),i.setUTCSeconds(e[2]),i;case 10:var r=t.split("-");return new Date(r[0],r[1]-1,r[2],0,0,0);case 19:var a=t.split(" "),s=a[0].split("-"),o=a[1].split(":");return new Date(s[0],s[1]-1,s[2],o[0],o[1],o[2]);default:throw new(n(6).default)("Invalid date format : "+t)}},r.cca=function(t,e){var i=t.charCodeAt(e);return i!=i?n(120).default.get_undefined():i},r.substr=function(t,e,n){if(null==n)n=t.length;else if(n<0){if(0!=e)return"";n=t.length+n}return t.substr(e,n)},r.remove=function(t,e){var n=t.indexOf(e);return-1!=n&&(t.splice(n,1),!0)},r.iter=function(t){return{cur:0,arr:t,hasNext:function(){return this.cur<this.arr.length},next:function(){return this.arr[this.cur++]}}},e.default=r}).call(this,n(0))},function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=0;e.default=function(t,e){var i,r;return null==e?null:(r=e._i=e._i||n++,null==t._c?t._c={}:i=t._c[r],null==i&&((i=function(){return i._m.apply(i._s,arguments)})._s=t,i._m=e,t._c[r]=i),i)}},function(t,e,n){(function(t){("undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(2).default,r=(n(1).default,n(3).default,n(9).default);function a(){return n(7)}function s(){return n(5)}var o=function(t,e,n){null==n&&(n=!1),null==e&&(e=!1),this.type=t,this.bubbles=e,this.cancelable=n,this.eventPhase=2};o.__name__="openfl.events.Event",o.__isInterface__=!1,(o.prototype={clone:function(){var t=new o(this.type,this.bubbles,this.cancelable);return t.eventPhase=this.eventPhase,t.target=this.target,t.currentTarget=this.currentTarget,t},formatToString:function(t,e,n,i,s,o){var l=[];return null!=e&&l.push(e),null!=n&&l.push(n),null!=i&&l.push(i),null!=s&&l.push(s),null!=o&&l.push(o),a().default.callMethod(this,r(this,this.__formatToString),[t,l])},isDefaultPrevented:function(){return this.__preventDefault},preventDefault:function(){this.cancelable&&(this.__preventDefault=!0)},stopImmediatePropagation:function(){this.__isCanceled=!0,this.__isCanceledNow=!0},stopPropagation:function(){this.__isCanceled=!0},toString:function(){return this.__formatToString("Event",["type","bubbles","cancelable"])},__formatToString:function(t,e){for(var n="["+t,i=null,r=0;r<e.length;){var o=e[r];++r,n+="string"==typeof(i=a().default.field(this,o))?" "+o+'="'+s().default.string(i)+'"':" "+o+"="+s().default.string(i)}return n+="]"},__init:function(){this.target=null,this.currentTarget=null,this.bubbles=!1,this.cancelable=!1,this.eventPhase=2,this.__isCanceled=!1,this.__isCanceledNow=!1,this.__preventDefault=!1}}).__class__=o.prototype.constructor=i["openfl.events.Event"]=o,o.ACTIVATE="activate",o.ADDED="added",o.ADDED_TO_STAGE="addedToStage",o.CANCEL="cancel",o.CHANGE="change",o.CLEAR="clear",o.CLOSE="close",o.COMPLETE="complete",o.CONNECT="connect",o.CONTEXT3D_CREATE="context3DCreate",o.COPY="copy",o.CUT="cut",o.DEACTIVATE="deactivate",o.ENTER_FRAME="enterFrame",o.EXIT_FRAME="exitFrame",o.FRAME_CONSTRUCTED="frameConstructed",o.FRAME_LABEL="frameLabel",o.FULLSCREEN="fullScreen",o.ID3="id3",o.INIT="init",o.MOUSE_LEAVE="mouseLeave",o.OPEN="open",o.PASTE="paste",o.REMOVED="removed",o.REMOVED_FROM_STAGE="removedFromStage",o.RENDER="render",o.RESIZE="resize",o.SCROLL="scroll",o.SELECT="select",o.SELECT_ALL="selectAll",o.SOUND_COMPLETE="soundComplete",o.TAB_CHILDREN_CHANGE="tabChildrenChange",o.TAB_ENABLED_CHANGE="tabEnabledChange",o.TAB_INDEX_CHANGE="tabIndexChange",o.TEXTURE_READY="textureReady",o.UNLOAD="unload",e.default=o}).call(this,n(0))},function(t,e,n){(function(t){("undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(2).default;n(1).default,n(3).default;function r(){return n(8)}var a=function(){};a.__name__="StringTools",a.__isInterface__=!1,(a.prototype={}).__class__=a.prototype.constructor=i.StringTools=a,a.urlEncode=function(t){return encodeURIComponent(t)},a.urlDecode=function(t){return decodeURIComponent(t.split("+").join(" "))},a.htmlEscape=function(t,e){for(var i=new(n(44).default),r=new(n(492).default)(t);r.hasNext();){var a=r.next();switch(a){case 34:e?i.add("&quot;"):i.addChar(a);break;case 38:i.add("&amp;");break;case 39:e?i.add("&#039;"):i.addChar(a);break;case 60:i.add("&lt;");break;case 62:i.add("&gt;");break;default:i.addChar(a)}}return i.toString()},a.htmlUnescape=function(t){return t.split("&gt;").join(">").split("&lt;").join("<").split("&quot;").join('"').split("&#039;").join("'").split("&amp;").join("&")},a.startsWith=function(t,e){return t.length>=e.length&&0==t.lastIndexOf(e,0)},a.endsWith=function(t,e){var n=e.length,i=t.length;return i>=n&&t.indexOf(e,i-n)==i-n},a.isSpace=function(t,e){var n=r().default.cca(t,e);return n>8&&n<14||32==n},a.ltrim=function(t){for(var e=t.length,n=0;n<e&&a.isSpace(t,n);)++n;return n>0?r().default.substr(t,n,e-n):t},a.rtrim=function(t){for(var e=t.length,n=0;n<e&&a.isSpace(t,e-n-1);)++n;return n>0?r().default.substr(t,0,e-n):t},a.trim=function(t){return a.ltrim(a.rtrim(t))},a.replace=function(t,e,n){return t.split(e).join(n)},a.hex=function(t,e){for(var n="";n="0123456789ABCDEF".charAt(15&t)+n,(t>>>=4)>0;);if(null!=e)for(;n.length<e;)n="0"+n;return n},a.fastCodeAt=function(t,e){return t.charCodeAt(e)},a.isEof=function(t){return t!=t},a.utf16CodePointAt=function(t,e){var n=a.fastCodeAt(t,e);return n>=55296&&n<=56319&&(n=n-55232<<10|1023&a.fastCodeAt(t,e+1)),n},e.default=a}).call(this,n(0))},function(t,e,n){(function(t){("undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i={},r=n(2).default;n(1).default,n(3).default;var a=function(){this.h={}};a.__name__="haxe.ds.StringMap",a.__isInterface__=!1,a.__interfaces__=[n(75).default],(a.prototype={isReserved:function(t){return null!=i[t]},set:function(t,e){this.isReserved(t)?this.setReserved(t,e):this.h[t]=e},get:function(t){return this.isReserved(t)?this.getReserved(t):this.h[t]},exists:function(t){return this.isReserved(t)?this.existsReserved(t):this.h.hasOwnProperty(t)},setReserved:function(t,e){null==this.rh&&(this.rh={}),this.rh["$"+t]=e},getReserved:function(t){return null==this.rh?null:this.rh["$"+t]},existsReserved:function(t){return null!=this.rh&&this.rh.hasOwnProperty("$"+t)},remove:function(t){return this.isReserved(t)?(t="$"+t,!(null==this.rh||!this.rh.hasOwnProperty(t))&&(delete this.rh[t],!0)):!!this.h.hasOwnProperty(t)&&(delete this.h[t],!0)},keys:function(){return n(8).default.iter(this.arrayKeys())},arrayKeys:function(){var t=[];for(var e in this.h)this.h.hasOwnProperty(e)&&t.push(e);if(null!=this.rh)for(var e in this.rh)36==e.charCodeAt(0)&&t.push(e.substr(1));return t},iterator:function(){return new(n(507).default)(this,this.arrayKeys())}}).__class__=a.prototype.constructor=r["haxe.ds.StringMap"]=a;i={};e.default=a}).call(this,n(0))},function(t,e,n){(function(t){("undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(2).default;n(1).default,n(3).default;function r(){return n(6)}function a(){return n(78)}function s(){return n(11)}var o=function(t){this.set_length(t.byteLength),this.b=new Uint8Array(t),this.b.bufferValue=t,t.hxBytes=this,t.bytes=this.b};o.__name__="haxe.io.Bytes",o.__isInterface__=!1,(o.prototype={get:function(t){return this.b[t]},set:function(t,e){this.b[t]=255&e},blit:function(t,e,n,i){if(t<0||n<0||i<0||t+i>this.get_length()||n+i>e.get_length())throw new(r().default)(a().default.OutsideBounds);0==n&&i==e.b.byteLength?this.b.set(e.b,t):this.b.set(e.b.subarray(n,n+i),t)},fill:function(t,e,n){for(var i=0,r=e;i<r;){i++;this.set(t++,n)}},sub:function(t,e){if(t<0||e<0||t+e>this.get_length())throw new(r().default)(a().default.OutsideBounds);return new o(this.b.buffer.slice(t+this.b.byteOffset,t+this.b.byteOffset+e))},compare:function(t){for(var e=this.b,n=t.b,i=0,r=this.get_length()<t.get_length()?this.get_length():t.get_length();i<r;){var a=i++;if(e[a]!=n[a])return e[a]-n[a]}return this.get_length()-t.get_length()},initData:function(){null==this.data&&(this.data=new DataView(this.b.buffer,this.b.byteOffset,this.b.byteLength))},getDouble:function(t){return this.initData(),this.data.getFloat64(t,!0)},getFloat:function(t){return this.initData(),this.data.getFloat32(t,!0)},setDouble:function(t,e){this.initData(),this.data.setFloat64(t,e,!0)},setFloat:function(t,e){this.initData(),this.data.setFloat32(t,e,!0)},getUInt16:function(t){return this.initData(),this.data.getUint16(t,!0)},setUInt16:function(t,e){this.initData(),this.data.setUint16(t,e,!0)},getInt32:function(t){return this.initData(),this.data.getInt32(t,!0)},setInt32:function(t,e){this.initData(),this.data.setInt32(t,e,!0)},getInt64:function(t){return new(n(79).default)(this.getInt32(t+4),this.getInt32(t))},setInt64:function(t,e){this.setInt32(t,e.low),this.setInt32(t+4,e.high)},getString:function(t,e,i){if(t<0||e<0||t+e>this.get_length())throw new(r().default)(a().default.OutsideBounds);for(var s="",o=this.b,l=n(517).default.fromCharCode,u=t,_=t+e;u<_;){var f=o[u++];if(f<128){if(0==f)break;s+=l(f)}else if(f<224)s+=l((63&f)<<6|127&o[u++]);else if(f<240){s+=l((31&f)<<12|(127&o[u++])<<6|127&o[u++])}else{var d=(15&f)<<18|(127&o[u++])<<12|(127&o[u++])<<6|127&o[u++];s+=l(55232+(d>>10)),s+=l(1023&d|56320)}}return s},readString:function(t,e){return this.getString(t,e)},toString:function(){return this.getString(0,this.get_length())},toHex:function(){for(var t=new(n(44).default),e=[],i="0123456789abcdef",r=0,a=i.length;r<a;){var s=r++;e.push(n(8).default.cca(i,s))}for(var o=0,l=this.get_length();o<l;){var u=o++,_=this.get(u);t.addChar(e[_>>4]),t.addChar(e[15&_])}return t.toString()},getData:function(){return this.b.bufferValue},get_length:function(){return this.l},set_length:function(t){return this.l=t}}).__class__=o.prototype.constructor=i["haxe.io.Bytes"]=o,o.alloc=function(t){return new o(new ArrayBuffer(t))},o.ofString=function(t,e){for(var n=[],i=0;i<t.length;){var r=s().default.fastCodeAt(t,i++);55296<=r&&r<=56319&&(r=r-55232<<10|1023&s().default.fastCodeAt(t,i++)),r<=127?n.push(r):r<=2047?(n.push(192|r>>6),n.push(128|63&r)):r<=65535?(n.push(224|r>>12),n.push(128|r>>6&63),n.push(128|63&r)):(n.push(240|r>>18),n.push(128|r>>12&63),n.push(128|r>>6&63),n.push(128|63&r))}return new o(new Uint8Array(n).buffer)},o.ofData=function(t){var e=t.hxBytes;return null!=e?e:new o(t)},o.ofHex=function(t){if(0!=(1&t.length))throw new(r().default)("Not a hex string (odd number of digits)");for(var e=[],n=0,i=t.length>>1;n<i;){var a=s().default.fastCodeAt(t,2*n),l=s().default.fastCodeAt(t,2*n+1);a=(15&a)+9*((64&a)>>6),l=(15&l)+9*((64&l)>>6),e.push(255&(a<<4|l)),++n}return new o(new Uint8Array(e).buffer)},o.fastGet=function(t,e){return t.bytes[e]},e.default=o}).call(this,n(0))},function(t,e,n){(function(t){("undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(2).default;n(1).default,n(3).default;function r(){return n(12)}function a(){return n(562)}function s(){return n(563)}function o(){return n(18)}var l=function(t){null!=t&&(this.__targetDispatcher=t)};l.__name__="openfl.events.EventDispatcher",l.__isInterface__=!1,l.__interfaces__=[n(176).default],(l.prototype={addEventListener:function(t,e,n,i,o){if(null==o&&(o=!1),null==i&&(i=0),null==n&&(n=!1),null!=e)if(null==this.__eventMap&&(this.__eventMap=new(r().default),this.__iterators=new(r().default)),this.__eventMap.exists(t)){for(var l=this.__eventMap.get(t),u=0,_=l.length;u<_;){if(l[u++].match(e,n))return}for(var f=this.__iterators.get(t),d=0;d<f.length;){var h=f[d];++d,h.active&&h.copy()}this.__addListenerByPriority(l,new(a().default)(e,n,i))}else{var c=[];c.push(new(a().default)(e,n,i));var p=new(s().default)(c);this.__eventMap.set(t,c),this.__iterators.set(t,[p])}},dispatchEvent:function(t){return null!=this.__targetDispatcher?t.target=this.__targetDispatcher:t.target=this,this.__dispatchEvent(t)},hasEventListener:function(t){return null!=this.__eventMap&&this.__eventMap.exists(t)},removeEventListener:function(t,e,n){if(null==n&&(n=!1),null!=this.__eventMap&&null!=e){var i=this.__eventMap.get(t);if(null!=i){for(var r=this.__iterators.get(t),a=0,s=i.length;a<s;){var o=a++;if(i[o].match(e,n)){for(var l=0;l<r.length;){var u=r[l];++l,u.remove(i[o],o)}i.splice(o,1);break}}0==i.length&&(this.__eventMap.remove(t),this.__iterators.remove(t)),this.__eventMap.iterator().hasNext()||(this.__eventMap=null,this.__iterators=null)}}},toString:function(){return"[object "+o().default.getClassName(o().default.getClass(this)).split(".").pop()+"]"},willTrigger:function(t){return this.hasEventListener(t)},__dispatchEvent:function(t){if(null==this.__eventMap||null==t)return!0;var e=t.type,i=this.__eventMap.get(e);if(null==i)return!0;null==t.target&&(null!=this.__targetDispatcher?t.target=this.__targetDispatcher:t.target=this),t.currentTarget=this;var r=1==t.eventPhase,a=this.__iterators.get(e),o=a[0];o.active&&(o=new(s().default)(i),a.push(o)),o.start();for(var l=o;l.hasNext();){var u=l.next();if(null!=u&&(u.useCapture==r&&(u.callback(t),t.__isCanceledNow)))break}return o.stop(),o!=a[0]?n(8).default.remove(a,o):o.reset(i),!t.isDefaultPrevented()},__removeAllListeners:function(){this.__eventMap=null,this.__iterators=null},__addListenerByPriority:function(t,e){for(var n=t.length,i=n,r=0,a=n;r<a;){var s=r++;if(t[s].priority<e.priority){i=s;break}}t.splice(i,0,e)}}).__class__=l.prototype.constructor=i["openfl.events.EventDispatcher"]=l,e.default=l}).call(this,n(0))},function(t,e,n){(function(t){("undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(2).default;n(1).default,n(3).default;function r(){return n(28)}var a=function(t,e,n,i){null==i&&(i=0),null==n&&(n=0),null==e&&(e=0),null==t&&(t=0),this.x=t,this.y=e,this.width=n,this.height=i};a.__name__="openfl.geom.Rectangle",a.__isInterface__=!1,(a.prototype={clone:function(){return new a(this.x,this.y,this.width,this.height)},contains:function(t,e){return t>=this.x&&e>=this.y&&t<this.get_right()&&e<this.get_bottom()},containsPoint:function(t){return this.contains(t.x,t.y)},containsRect:function(t){return t.width<=0||t.height<=0?t.x>this.x&&t.y>this.y&&t.get_right()<this.get_right()&&t.get_bottom()<this.get_bottom():t.x>=this.x&&t.y>=this.y&&t.get_right()<=this.get_right()&&t.get_bottom()<=this.get_bottom()},copyFrom:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},equals:function(t){return t==this||null!=t&&this.x==t.x&&this.y==t.y&&this.width==t.width&&this.height==t.height},inflate:function(t,e){this.x-=t,this.width+=2*t,this.y-=e,this.height+=2*e},inflatePoint:function(t){this.inflate(t.x,t.y)},intersection:function(t){var e=this.x<t.x?t.x:this.x,n=this.get_right()>t.get_right()?t.get_right():this.get_right();if(n<=e)return new a;var i=this.y<t.y?t.y:this.y,r=this.get_bottom()>t.get_bottom()?t.get_bottom():this.get_bottom();return r<=i?new a:new a(e,i,n-e,r-i)},intersects:function(t){var e=this.x<t.x?t.x:this.x;if((this.get_right()>t.get_right()?t.get_right():this.get_right())<=e)return!1;var n=this.y<t.y?t.y:this.y;return(this.get_bottom()>t.get_bottom()?t.get_bottom():this.get_bottom())>n},isEmpty:function(){return this.width<=0||this.height<=0},offset:function(t,e){this.x+=t,this.y+=e},offsetPoint:function(t){this.x+=t.x,this.y+=t.y},setEmpty:function(){this.x=this.y=this.width=this.height=0},setTo:function(t,e,n,i){this.x=t,this.y=e,this.width=n,this.height=i},toString:function(){return"(x="+this.x+", y="+this.y+", width="+this.width+", height="+this.height+")"},union:function(t){if(0==this.width||0==this.height)return t.clone();if(0==t.width||0==t.height)return this.clone();var e=this.x>t.x?t.x:this.x,n=this.get_right()<t.get_right()?t.get_right():this.get_right(),i=this.y>t.y?t.y:this.y,r=this.get_bottom()<t.get_bottom()?t.get_bottom():this.get_bottom();return new a(e,i,n-e,r-i)},__contract:function(t,e,n,i){if(0!=this.width||0!=this.height){var r=0,a=0,s=0,o=0;this.x<t&&(r=t-this.x),this.y<e&&(a=e-this.y),this.get_right()>t+n&&(s=t+n-this.get_right()),this.get_bottom()>e+i&&(o=e+i-this.get_bottom()),this.x+=r,this.y+=a,this.width+=s-r,this.height+=o-a}},__expand:function(t,e,n,i){if(0==this.width&&0==this.height)return this.x=t,this.y=e,this.width=n,void(this.height=i);var r=this.get_right(),a=this.get_bottom();this.x>t&&(this.x=t,this.width=r-t),this.y>e&&(this.y=e,this.height=a-e),r<t+n&&(this.width=t+n-this.x),a<e+i&&(this.height=e+i-this.y)},__toLimeRectangle:function(){return null==a.__limeRectangle&&(a.__limeRectangle=new(n(41).default)),a.__limeRectangle.setTo(this.x,this.y,this.width,this.height),a.__limeRectangle},__transform:function(t,e){var n=e.a*this.x+e.c*this.y,i=n,r=e.b*this.x+e.d*this.y,a=r,s=e.a*(this.x+this.width)+e.c*this.y,o=e.b*(this.x+this.width)+e.d*this.y;s<n&&(n=s),o<r&&(r=o),s>i&&(i=s),o>a&&(a=o),(s=e.a*(this.x+this.width)+e.c*(this.y+this.height))<n&&(n=s),(o=e.b*(this.x+this.width)+e.d*(this.y+this.height))<r&&(r=o),s>i&&(i=s),o>a&&(a=o),(s=e.a*this.x+e.c*(this.y+this.height))<n&&(n=s),(o=e.b*this.x+e.d*(this.y+this.height))<r&&(r=o),s>i&&(i=s),o>a&&(a=o),t.setTo(n+e.tx,r+e.ty,i-n,a-r)},get_bottom:function(){return this.y+this.height},set_bottom:function(t){return this.height=t-this.y,t},get_bottomRight:function(){return new(r().default)(this.x+this.width,this.y+this.height)},set_bottomRight:function(t){return this.width=t.x-this.x,this.height=t.y-this.y,t.clone()},get_left:function(){return this.x},set_left:function(t){return this.width-=t-this.x,this.x=t,t},get_right:function(){return this.x+this.width},set_right:function(t){return this.width=t-this.x,t},get_size:function(){return new(r().default)(this.width,this.height)},set_size:function(t){return this.width=t.x,this.height=t.y,t.clone()},get_top:function(){return this.y},set_top:function(t){return this.height-=t-this.y,this.y=t,t},get_topLeft:function(){return new(r().default)(this.x,this.y)},set_topLeft:function(t){return this.x=t.x,this.y=t.y,t.clone()}}).__class__=a.prototype.constructor=i["openfl.geom.Rectangle"]=a,Object.defineProperties(a.prototype,{bottom:{get:function(){return this.get_bottom()},set:function(t){return this.set_bottom(t)}},bottomRight:{get:function(){return this.get_bottomRight()},set:function(t){return this.set_bottomRight(t)}},left:{get:function(){return this.get_left()},set:function(t){return this.set_left(t)}},right:{get:function(){return this.get_right()},set:function(t){return this.set_right(t)}},size:{get:function(){return this.get_size()},set:function(t){return this.set_size(t)}},top:{get:function(){return this.get_top()},set:function(t){return this.set_top(t)}},topLeft:{get:function(){return this.get_topLeft()},set:function(t){return this.set_topLeft(t)}}}),a.__pool=new(n(48).default)((function(){return new a}),(function(t){t.setTo(0,0,0,0)})),e.default=a}).call(this,n(0))},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(25);e.default=function(){return i.__string_rec(this,"")}},function(t,e,n){(function(t){("undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(2).default;n(1).default,n(3).default;function r(){return n(5)}var a=function(){};a.__name__="lime.utils.Log",a.__isInterface__=!1,(a.prototype={}).__class__=a.prototype.constructor=i["lime.utils.Log"]=a,a.level=3,"undefined"==typeof console&&(console={}),null==console.log&&(console.log=function(){}),a.debug=function(t,e){a.level>=4&&console.debug("["+e.className+"] "+r().default.string(t))},a.error=function(t,e){if(a.level>=1){var i="["+e.className+"] ERROR: "+r().default.string(t);if(a.throwErrors)throw new(n(6).default)(i);console.error(i)}},a.info=function(t,e){a.level>=3&&console.info("["+e.className+"] "+r().default.string(t))},a.print=function(t){console.log(t)},a.println=function(t){console.log(t)},a.verbose=function(t,e){a.level>=5&&a.println("["+e.className+"] "+r().default.string(t))},a.warn=function(t,e){a.level>=2&&console.warn("["+e.className+"] WARNING: "+r().default.string(t))},a.throwErrors=!0,e.default=a}).call(this,n(0))},function(t,e,n){(function(t){("undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(2).default,r=n(1).default;n(3).default;function a(){return n(25)}function s(){return n(7)}function o(){return n(6)}function l(){return n(8)}function u(){return n(99)}var _=function(){};_.__name__="Type",_.__isInterface__=!1,(_.prototype={}).__class__=_.prototype.constructor=i.Type=_,_.getClass=function(t){return a().default.getClass(t)},_.getSuperClass=function(t){return t.__super__},_.getClassName=function(t){return t.__name__},_.getEnumName=function(t){return t.__ename__},_.resolveClass=function(t){return i[t]},_.resolveEnum=function(t){return r[t]},_.createInstance=function(t,e){return new(Function.prototype.bind.apply(t,[null].concat(e)))},_.createEmptyInstance=function(t){return Object.create(t.prototype)},_.createEnum=function(t,e,n){var i=s().default.field(t,e);if(null==i)throw new(o().default)("No such constructor "+e);if(s().default.isFunction(i)){if(null==n)throw new(o().default)("Constructor "+e+" need parameters");return s().default.callMethod(t,i,n)}if(null!=n&&0!=n.length)throw new(o().default)("Constructor "+e+" does not need parameters");return i},_.getInstanceFields=function(t){var e=[];for(var n in t.prototype)e.push(n);return l().default.remove(e,"__class__"),l().default.remove(e,"__properties__"),e},_.getEnumConstructs=function(t){return t.__constructs__.slice()},_.typeof=function(t){switch(typeof t){case"boolean":return u().default.TBool;case"function":return a().default.isClass(t)||a().default.isEnum(t)?u().default.TObject:u().default.TFunction;case"number":return Math.ceil(t)==t%2147483648?u().default.TInt:u().default.TFloat;case"object":if(null==t)return u().default.TNull;var e=t.__enum__;if(null!=e)return u().default.TEnum(r[e]);var n=a().default.getClass(t);return null!=n?u().default.TClass(n):u().default.TObject;case"string":return u().default.TClass(String);case"undefined":return u().default.TNull;default:return u().default.TUnknown}},_.enumConstructor=function(t){return r[t.__enum__].__constructs__[t._hx_index]},_.enumParameters=function(t){var e=r[t.__enum__],n=e[e.__constructs__[t._hx_index]].__params__;if(null!=n){for(var i=[],a=0;a<n.length;){var s=n[a];++a,i.push(t[s])}return i}return[]},_.enumIndex=function(t){return t._hx_index},e.default=_}).call(this,n(0))},function(t,e,n){(function(t){("undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(2).default;n(1).default,n(3).default;function r(){return n(49)}function a(){return n(13)}function s(){return n(55)}function o(){return n(24)}var l=function(){};l.__name__="openfl.utils._ByteArray.ByteArray_Impl_",l.__isInterface__=!1,(l.prototype={}).__class__=l.prototype.constructor=i["openfl.utils._ByteArray.ByteArray_Impl_"]=l,l._new=function(t){return null==t&&(t=0),new(r().default)(t)},l.clear=function(t){t.clear()},l.compress=function(t,e){t.compress(e)},l.deflate=function(t){t.deflate()},l.fromArrayBuffer=function(t){return null==t?null:r().default.fromBytes(a().default.ofData(t))},l.fromBytes=function(t){return null==t?null:t instanceof r().default?t:r().default.fromBytes(t)},l.fromBytesData=function(t){return null==t?null:r().default.fromBytes(a().default.ofData(t))},l.fromFile=function(t){return l.fromBytes(s().default.fromFile(t))},l.fromLimeBytes=function(t){return l.fromBytes(t)},l.get=function(t,e){return t.get(e)},l.inflate=function(t){t.inflate()},l.loadFromBytes=function(t){return s().default.loadFromBytes(t).then((function(t){var e=l.fromBytes(t);return o().default.withValue(e)}))},l.loadFromFile=function(t){return s().default.loadFromFile(t).then((function(t){var e=l.fromBytes(t);return o().default.withValue(e)}))},l.readBoolean=function(t){return t.readBoolean()},l.readByte=function(t){return t.readByte()},l.readBytes=function(t,e,n,i){null==i&&(i=0),null==n&&(n=0),t.readBytes(e,n,i)},l.readDouble=function(t){return t.readDouble()},l.readFloat=function(t){return t.readFloat()},l.readInt=function(t){return t.readInt()},l.readMultiByte=function(t,e,n){return t.readMultiByte(e,n)},l.readObject=function(t){return t.readObject()},l.readShort=function(t){return t.readShort()},l.readUTF=function(t){return t.readUTF()},l.readUTFBytes=function(t,e){return t.readUTFBytes(e)},l.readUnsignedByte=function(t){return t.readUnsignedByte()},l.readUnsignedInt=function(t){return t.readUnsignedInt()},l.readUnsignedShort=function(t){return t.readUnsignedShort()},l.set=function(t,e,n){return t.__resize(e+1),t.set(e,n),n},l.toArrayBuffer=function(t){return t.getData()},l.toBytePointer=function(t){return n(581).default.set(l.__bytePointer,t,null,null,t.position),l.__bytePointer},l.toBytes=function(t){return t},l.toBytesData=function(t){return t.getData()},l.toLimeBytes=function(t){return l.toBytes(l.fromBytes(l.toBytes(t)))},l.toString=function(t){return t.toString()},l.uncompress=function(t,e){t.uncompress(e)},l.writeBoolean=function(t,e){t.writeBoolean(e)},l.writeByte=function(t,e){t.writeByte(e)},l.writeBytes=function(t,e,n,i){null==i&&(i=0),null==n&&(n=0),t.writeBytes(e,n,i)},l.writeDouble=function(t,e){t.writeDouble(e)},l.writeFloat=function(t,e){t.writeFloat(e)},l.writeInt=function(t,e){t.writeInt(e)},l.writeMultiByte=function(t,e,n){t.writeMultiByte(e,n)},l.writeObject=function(t,e){t.writeObject(e)},l.writeShort=function(t,e){t.writeShort(e)},l.writeUTF=function(t,e){t.writeUTF(e)},l.writeUTFBytes=function(t,e){t.writeUTFBytes(e)},l.writeUnsignedInt=function(t,e){t.writeUnsignedInt(e)},l.get_bytesAvailable=function(t){return t.get_bytesAvailable()},l.get_defaultEndian=function(){return r().default.get_defaultEndian()},l.set_defaultEndian=function(t){return r().default.set_defaultEndian(t)},l.get_defaultObjectEncoding=function(){return r().default.defaultObjectEncoding},l.set_defaultObjectEncoding=function(t){return r().default.defaultObjectEncoding=t},l.get_endian=function(t){return t.get_endian()},l.set_endian=function(t,e){return t.set_endian(e)},l.get_length=function(t){return null==t?0:t.l},l.set_length=function(t,e){return t.set_length(e),e},l.get_objectEncoding=function(t){return t.objectEncoding},l.set_objectEncoding=function(t,e){return t.objectEncoding=e},l.get_position=function(t){return t.position},l.set_position=function(t,e){return t.position=e},l.__bytePointer=new(n(138).default)(null,0),e.default=l}).call(this,n(0))},function(t,e,n){(function(t){("undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(2).default;n(1).default,n(3).default;var r=function(){this.h={}};r.__name__="haxe.ds.IntMap",r.__isInterface__=!1,r.__interfaces__=[n(75).default],(r.prototype={set:function(t,e){this.h[t]=e},get:function(t){return this.h[t]},exists:function(t){return this.h.hasOwnProperty(t)},remove:function(t){return!!this.h.hasOwnProperty(t)&&(delete this.h[t],!0)},keys:function(){var t=[];for(var e in this.h)this.h.hasOwnProperty(e)&&t.push(0|e);return n(8).default.iter(t)},iterator:function(){return{ref:this.h,it:this.keys(),hasNext:function(){return this.it.hasNext()},next:function(){var t=this.it.next();return this.ref[t]}}}}).__class__=r.prototype.constructor=i["haxe.ds.IntMap"]=r,e.default=r}).call(this,n(0))},function(t,e,n){(function(t){("undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(2).default;n(1).default,n(3).default;function r(){return n(64)}var a=function(){};a.__name__="openfl._Vector.Vector_Impl_",a.__isInterface__=!1,(a.prototype={}).__class__=a.prototype.constructor=i["openfl._Vector.Vector_Impl_"]=a,a._new=function(t,e,n){return null!=n?r().default.ofArray(n):new(r().default)(t,e)},a.concat=function(t,e){return r().default.ofArray(Array.prototype.concat.call(t,e))},a.copy=function(t){return r().default.ofArray(t)},a.filter=function(t,e){return r().default.ofArray(Array.prototype.filter.call(t,e))},a.get=function(t,e){return t[e]},a.indexOf=function(t,e,n){return null==n&&(n=0),Array.prototype.indexOf.call(t,e,n)},a.insertAt=function(t,e,n){(!t.fixed||e<t.get_length())&&Array.prototype.splice.call(t,e,0,n)},a.iterator=function(t){return new(n(38).default)(t)},a.join=function(t,e){return null==e&&(e=","),Array.prototype.join.call(t,e)},a.lastIndexOf=function(t,e,n){return null==n?Array.prototype.lastIndexOf.call(t,e):Array.prototype.lastIndexOf.call(t,e,n)},a.pop=function(t){return t.fixed?null:Array.prototype.pop.call(t)},a.push=function(t,e){return t.fixed?this.length:Array.prototype.push.call(t,e)},a.removeAt=function(t,e){return!t.fixed||e<t.get_length()?Array.prototype.splice.call(t,e,1)[0]:null},a.reverse=function(t){return Array.prototype.reverse.call(t)},a.set=function(t,e,n){return!t.fixed||e<t.get_length()?t[e]=n:n},a.shift=function(t){return t.fixed?null:Array.prototype.shift.call(t)},a.slice=function(t,e,n){return null==n&&(n=16777215),null==e&&(e=0),r().default.ofArray(Array.prototype.slice.call(t,e,n))},a.sort=function(t,e){Array.prototype.sort.call(t,e)},a.splice=function(t,e,n){return r().default.ofArray(Array.prototype.splice.call(t,e,n))},a.toString=function(t){return null!=t?n(5).default.string(t):null},a.unshift=function(t,e){t.fixed||Array.prototype.unshift.call(t,e)},a.ofArray=function(t){return r().default.ofArray(t)},a.convert=function(t){return t},a.get_fixed=function(t){return t.fixed},a.set_fixed=function(t,e){return t.fixed=e},a.get_length=function(t){return t.get_length()},a.set_length=function(t,e){return t.set_length(e)},e.default=a}).call(this,n(0))},function(t,e,n){(function(t){("undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(2).default;n(1).default,n(3).default;function r(){return n(8)}function a(){return n(491)}function s(){return n(5)}var o=function(){};o.__name__="haxe.CallStack",o.__isInterface__=!1,(o.prototype={}).__class__=o.prototype.constructor=i["haxe.CallStack"]=o,o.getStack=function(t){if(null==t)return[];var e=Error.prepareStackTrace;Error.prepareStackTrace=function(t,e){for(var n=[],i=0;i<e.length;){var s=e[i];++i,null!=o.wrapCallSite&&(s=o.wrapCallSite(s));var l=null,u=s.getFunctionName();if(null!=u){var _=u.lastIndexOf(".");if(_>=0){var f=r().default.substr(u,0,_),d=r().default.substr(u,_+1,null);l=a().default.Method(f,d)}}var h=s.getFileName(),c=null==h?-1:h.indexOf("file:");null!=o.wrapCallSite&&c>0&&(h=r().default.substr(h,c+6,null)),n.push(a().default.FilePos(l,h,s.getLineNumber(),s.getColumnNumber()))}return n};var n=o.makeStack(t.stack);return Error.prepareStackTrace=e,n},o.callStack=function(){try{throw new Error}catch(e){o.lastException=e;e instanceof n(6).default&&e.val;var t=o.getStack(e);return t.shift(),t}},o.exceptionStack=function(){return o.getStack(o.lastException)},o.toString=function(t){for(var e=new(n(44).default),i=0;i<t.length;){var r=t[i];++i,e.add("\nCalled from "),o.itemToString(e,r)}return e.toString()},o.itemToString=function(t,e){switch(e._hx_index){case 0:t.add("a C function");break;case 1:var n=e.m;t.add("module "),t.add(n);break;case 2:var i=e.column,r=e.line,a=e.file,s=e.s;null!=s&&(o.itemToString(t,s),t.add(" (")),t.add(a),t.add(" line "),t.add(r),null!=i&&(t.add(" column "),t.add(i)),null!=s&&t.add(")");break;case 3:var l=e.method,u=e.classname;t.add(null==u?"<unknown>":u),t.add("."),t.add(l);break;case 4:var _=e.v;t.add("local function #"),t.add(_)}},o.makeStack=function(t){if(null==t)return[];if("string"==typeof t){var e=t.split("\n");"Error"==e[0]&&e.shift();for(var i=[],r=new(n(26).default)("^ at ([A-Za-z0-9_. ]+) \\(([^)]+):([0-9]+):([0-9]+)\\)$",""),o=0;o<e.length;){var l=e[o];if(++o,r.match(l)){var u=r.matched(1).split("."),_=u.pop(),f=r.matched(2),d=s().default.parseInt(r.matched(3)),h=s().default.parseInt(r.matched(4));i.push(a().default.FilePos("Anonymous function"==_?a().default.LocalFunction():"Global code"==_?null:a().default.Method(u.join("."),_),f,d,h))}else i.push(a().default.Module(n(11).default.trim(l)))}return i}return t},e.default=o}).call(this,n(0))},function(t,e,n){(function(t){("undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(2).default;n(1).default,n(3).default;function r(){return n(6)}function a(){return n(28)}function s(){return n(5)}var o=function(t,e,n,i,r,a){null==a&&(a=0),null==r&&(r=0),null==i&&(i=1),null==n&&(n=0),null==e&&(e=0),null==t&&(t=1),this.a=t,this.b=e,this.c=n,this.d=i,this.tx=r,this.ty=a};o.__name__="openfl.geom.Matrix",o.__isInterface__=!1,(o.prototype={clone:function(){return new o(this.a,this.b,this.c,this.d,this.tx,this.ty)},concat:function(t){var e=this.a*t.a+this.b*t.c;this.b=this.a*t.b+this.b*t.d,this.a=e;var n=this.c*t.a+this.d*t.c;this.d=this.c*t.b+this.d*t.d,this.c=n;var i=this.tx*t.a+this.ty*t.c+t.tx;this.ty=this.tx*t.b+this.ty*t.d+t.ty,this.tx=i},copyColumnFrom:function(t,e){if(t>2)throw new(r().default)("Column "+t+" out of bounds (2)");0==t?(this.a=e.x,this.b=e.y):1==t?(this.c=e.x,this.d=e.y):(this.tx=e.x,this.ty=e.y)},copyColumnTo:function(t,e){if(t>2)throw new(r().default)("Column "+t+" out of bounds (2)");0==t?(e.x=this.a,e.y=this.b,e.z=0):1==t?(e.x=this.c,e.y=this.d,e.z=0):(e.x=this.tx,e.y=this.ty,e.z=1)},copyFrom:function(t){this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.tx=t.tx,this.ty=t.ty},copyRowFrom:function(t,e){if(t>2)throw new(r().default)("Row "+t+" out of bounds (2)");0==t?(this.a=e.x,this.c=e.y,this.tx=e.z):1==t&&(this.b=e.x,this.d=e.y,this.ty=e.z)},copyRowTo:function(t,e){if(t>2)throw new(r().default)("Row "+t+" out of bounds (2)");0==t?(e.x=this.a,e.y=this.c,e.z=this.tx):1==t?(e.x=this.b,e.y=this.d,e.z=this.ty):e.setTo(0,0,1)},createBox:function(t,e,n,i,r){if(null==r&&(r=0),null==i&&(i=0),null==n&&(n=0),0!=n){var a=Math.cos(n),s=Math.sin(n);this.a=a*t,this.b=s*e,this.c=-s*t,this.d=a*e}else this.a=t,this.b=0,this.c=0,this.d=e;this.tx=i,this.ty=r},createGradientBox:function(t,e,n,i,r){if(null==r&&(r=0),null==i&&(i=0),null==n&&(n=0),this.a=t/1638.4,this.d=e/1638.4,0!=n){var a=Math.cos(n),s=Math.sin(n);this.b=s*this.d,this.c=-s*this.a,this.a*=a,this.d*=a}else this.b=0,this.c=0;this.tx=i+t/2,this.ty=r+e/2},deltaTransformPoint:function(t){return new(a().default)(t.x*this.a+t.y*this.c,t.x*this.b+t.y*this.d)},equals:function(t){return null!=t&&this.tx==t.tx&&this.ty==t.ty&&this.a==t.a&&this.b==t.b&&this.c==t.c&&this.d==t.d},identity:function(){this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0},invert:function(){var t=this.a*this.d-this.b*this.c;if(0==t)this.a=this.b=this.c=this.d=0,this.tx=-this.tx,this.ty=-this.ty;else{t=1/t;var e=this.d*t;this.d=this.a*t,this.a=e,this.b*=-t,this.c*=-t;var n=-this.a*this.tx-this.c*this.ty;this.ty=-this.b*this.tx-this.d*this.ty,this.tx=n}return this},rotate:function(t){var e=Math.cos(t),n=Math.sin(t),i=this.a*e-this.b*n;this.b=this.a*n+this.b*e,this.a=i;var r=this.c*e-this.d*n;this.d=this.c*n+this.d*e,this.c=r;var a=this.tx*e-this.ty*n;this.ty=this.tx*n+this.ty*e,this.tx=a},scale:function(t,e){this.a*=t,this.b*=e,this.c*=t,this.d*=e,this.tx*=t,this.ty*=e},setRotation:function(t,e){null==e&&(e=1),this.a=Math.cos(t)*e,this.c=Math.sin(t)*e,this.b=-this.c,this.d=this.a},setTo:function(t,e,n,i,r,a){this.a=t,this.b=e,this.c=n,this.d=i,this.tx=r,this.ty=a},to3DString:function(t){return null==t&&(t=!1),t?"matrix3d("+this.a+", "+this.b+", 0, 0, "+this.c+", "+this.d+", 0, 0, 0, 0, 1, 0, "+s().default.int(this.tx)+", "+s().default.int(this.ty)+", 0, 1)":"matrix3d("+this.a+", "+this.b+", 0, 0, "+this.c+", "+this.d+", 0, 0, 0, 0, 1, 0, "+this.tx+", "+this.ty+", 0, 1)"},toMozString:function(){return"matrix("+this.a+", "+this.b+", "+this.c+", "+this.d+", "+this.tx+"px, "+this.ty+"px)"},toString:function(){return"matrix("+this.a+", "+this.b+", "+this.c+", "+this.d+", "+this.tx+", "+this.ty+")"},transformPoint:function(t){return new(a().default)(this.__transformX(t.x,t.y),this.__transformY(t.x,t.y))},translate:function(t,e){this.tx+=t,this.ty+=e},toArray:function(t){if(null==t&&(t=!1),null==this.__array){var e=new Float32Array(9);this.__array=e}return t?(this.__array[0]=this.a,this.__array[1]=this.b,this.__array[2]=0,this.__array[3]=this.c,this.__array[4]=this.d,this.__array[5]=0,this.__array[6]=this.tx,this.__array[7]=this.ty,this.__array[8]=1):(this.__array[0]=this.a,this.__array[1]=this.c,this.__array[2]=this.tx,this.__array[3]=this.b,this.__array[4]=this.d,this.__array[5]=this.ty,this.__array[6]=0,this.__array[7]=0,this.__array[8]=1),this.__array},__cleanValues:function(){this.a=Math.round(1e3*this.a)/1e3,this.b=Math.round(1e3*this.b)/1e3,this.c=Math.round(1e3*this.c)/1e3,this.d=Math.round(1e3*this.d)/1e3,this.tx=Math.round(10*this.tx)/10,this.ty=Math.round(10*this.ty)/10},__toMatrix3:function(){return o.__matrix3.setTo(this.a,this.b,this.c,this.d,this.tx,this.ty),o.__matrix3},__transformInversePoint:function(t){var e=this.a*this.d-this.b*this.c;if(0==e)t.x=-this.tx,t.y=-this.ty;else{var n=1/e*(this.c*(this.ty-t.y)+this.d*(t.x-this.tx));t.y=1/e*(this.a*(t.y-this.ty)+this.b*(this.tx-t.x)),t.x=n}},__transformInverseX:function(t,e){var n=this.a*this.d-this.b*this.c;return 0==n?-this.tx:1/n*(this.c*(this.ty-e)+this.d*(t-this.tx))},__transformInverseY:function(t,e){var n=this.a*this.d-this.b*this.c;return 0==n?-this.ty:1/n*(this.a*(e-this.ty)+this.b*(this.tx-t))},__transformPoint:function(t){var e=t.x,n=t.y;t.x=this.__transformX(e,n),t.y=this.__transformY(e,n)},__transformX:function(t,e){return t*this.a+e*this.c+this.tx},__transformY:function(t,e){return t*this.b+e*this.d+this.ty},__translateTransformed:function(t,e){this.tx=this.__transformX(t,e),this.ty=this.__transformY(t,e)}}).__class__=o.prototype.constructor=i["openfl.geom.Matrix"]=o,o.__meta__={fields:{equals:{SuppressWarnings:["checkstyle:FieldDocComment"]},to3DString:{SuppressWarnings:["checkstyle:FieldDocComment"]},toMozString:{SuppressWarnings:["checkstyle:FieldDocComment"]}}},o.__identity=new o,o.__pool=new(n(48).default)((function(){return new o}),(function(t){t.identity()})),o.__matrix3=new(n(564).default),e.default=o}).call(this,n(0))},function(t,e,n){(function(t){("undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(2).default,r=(n(1).default,n(3).default,n(9).default);function a(){return n(42)}var s=function(t,e){if(null==e&&(e=!1),null!=t)if(e){var i=new(a().default);i.future=this,n(527).default.queue({promise:i,work:t})}else try{this.value=t(),this.isComplete=!0}catch(t){n(22).default.lastException=t,this.error=t instanceof n(6).default?t.val:t,this.isError=!0}};s.__name__="lime.app.Future",s.__isInterface__=!1,(s.prototype={onComplete:function(t){return null!=t&&(this.isComplete?t(this.value):this.isError||(null==this.__completeListeners&&(this.__completeListeners=[]),this.__completeListeners.push(t))),this},onError:function(t){return null!=t&&(this.isError?t(this.error):this.isComplete||(null==this.__errorListeners&&(this.__errorListeners=[]),this.__errorListeners.push(t))),this},onProgress:function(t){return null!=t&&(null==this.__progressListeners&&(this.__progressListeners=[]),this.__progressListeners.push(t)),this},ready:function(t){return null==t&&(t=-1),this.isComplete||this.isError||n(17).default.warn("Cannot block thread in JavaScript",{fileName:"../node_modules/lime/src/lime/app/Future.hx",lineNumber:209,className:"lime.app.Future",methodName:"ready"}),this},result:function(t){return null==t&&(t=-1),this.ready(t),this.isComplete?this.value:null},then:function(t){if(this.isComplete)return t(this.value);if(this.isError){var e=new s;return e.isError=!0,e.error=this.error,e}var n=new(a().default);return this.onError(r(n,n.error)),this.onProgress(r(n,n.progress)),this.onComplete((function(e){var i=t(e);i.onError(r(n,n.error)),i.onComplete(r(n,n.complete))})),n.future}}).__class__=s.prototype.constructor=i["lime.app.Future"]=s,s.ofEvents=function(t,e,n){var i=new(a().default);return t.add((function(t){i.complete(t)}),!0),null!=e&&e.add((function(t){i.error(t)}),!0),null!=n&&n.add((function(t,e){i.progress(t,e)}),!0),i.future},s.withError=function(t){var e=new s;return e.isError=!0,e.error=t,e},s.withValue=function(t){var e=new s;return e.isComplete=!0,e.value=t,e},e.default=s}).call(this,n(0))},function(t,e,n){(function(t){var i="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:this;i.Object.defineProperty(e,"__esModule",{value:!0});var r=n(2).default,a=n(1).default;n(3).default;function s(){return n(6)}function o(){return n(5)}var l=function(){};l.__name__="js.Boot",l.__isInterface__=!1,(l.prototype={}).__class__=l.prototype.constructor=r["js.Boot"]=l,l.__toStr={}.toString,l.isClass=function(t){return t.__name__},l.isInterface=function(t){return t.__isInterface__},l.isEnum=function(t){return t.__ename__},l.getClass=function(t){if(null==t)return null;if(t instanceof Array)return Array;var e=t.__class__;if(null!=e)return e;var n=l.__nativeClassName(t);return null!=n?l.__resolveNativeClass(n):null},l.__string_rec=function(t,e){if(null==t)return"null";if(e.length>=5)return"<...>";var i=typeof t;switch("function"==i&&(l.isClass(t)||l.isEnum(t))&&(i="object"),i){case"function":return"<function>";case"object":if(t.__enum__){var r=a[t.__enum__],o=r.__constructs__[t._hx_index],u=r[o];return u.__params__?(e+="\t",o+"("+function(n){for(var i=[],r=0,a=u.__params__;r<a.length;){var s=a[r];r+=1,i.push(l.__string_rec(t[s],e))}return i}().join(",")+")"):o}if(t instanceof Array){var _="[";e+="\t";for(var f=0,d=t.length;f<d;){var h=f++;_+=(h>0?",":"")+l.__string_rec(t[h],e)}return _+="]"}var c;try{c=t.toString}catch(t){n(22).default.lastException=t;t instanceof s().default&&t.val;return"???"}if(null!=c&&c!=Object.toString&&"function"==typeof c){var p=t.toString();if("[object Object]"!=p)return p}var m="{\n";e+="\t";var g=null!=t.hasOwnProperty,v=null;for(v in t)g&&!t.hasOwnProperty(v)||"prototype"!=v&&"__class__"!=v&&"__super__"!=v&&"__interfaces__"!=v&&"__properties__"!=v&&(2!=m.length&&(m+=", \n"),m+=e+v+" : "+l.__string_rec(t[v],e));return m+="\n"+(e=e.substring(1))+"}";case"string":return t;default:return String(t)}},l.__interfLoop=function(t,e){if(null==t)return!1;if(t==e)return!0;if(Object.prototype.hasOwnProperty.call(t,"__interfaces__"))for(var n=t.__interfaces__,i=0,r=n.length;i<r;){var a=n[i++];if(a==e||l.__interfLoop(a,e))return!0}return l.__interfLoop(t.__super__,e)},l.__instanceof=function(t,e){if(null==e)return!1;switch(e){case Array:return t instanceof Array;case r.Bool:return"boolean"==typeof t;case r.Dynamic:return null!=t;case r.Float:return"number"==typeof t;case r.Int:return"number"==typeof t&&(0|t)===t;case String:return"string"==typeof t;default:if(null==t)return!1;if("function"==typeof e){if(l.__downcastCheck(t,e))return!0}else if("object"==typeof e&&l.__isNativeObj(e)&&t instanceof e)return!0;return e==r.Class&&null!=t.__name__||(e==r.Enum&&null!=t.__ename__||null!=t.__enum__&&a[t.__enum__]==e)}},l.__downcastCheck=function(t,e){return t instanceof e||!!l.isInterface(e)&&l.__interfLoop(l.getClass(t),e)},l.__implements=function(t,e){return l.__interfLoop(l.getClass(t),e)},l.__cast=function(t,e){if(null==t||l.__instanceof(t,e))return t;throw new(s().default)("Cannot cast "+o().default.string(t)+" to "+o().default.string(e))},l.__nativeClassName=function(t){var e=l.__toStr.call(t).slice(8,-1);return"Object"==e||"Function"==e||"Math"==e||"JSON"==e?null:e},l.__isNativeObj=function(t){return null!=l.__nativeClassName(t)},l.__resolveNativeClass=function(t){return i[t]},e.default=l}).call(this,n(0))},function(t,e,n){(function(t){("undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(2).default;n(1).default,n(3).default;function r(){return n(6)}function a(){return n(8)}var s=function(t,e){this.r=new RegExp(t,e.split("u").join(""))};s.__name__="EReg",s.__isInterface__=!1,(s.prototype={