/*! OpenFL v7.1.2 | 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.Howler)}("undefined"!=typeof self?self:this,function(__WEBPACK_EXTERNAL_MODULE_93__,__WEBPACK_EXTERNAL_MODULE_283__){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,{configurable:!1,enumerable:!0,get: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=237)}([function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},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(1).default;n(2).default;function r(){return n(20)}function a(){return n(7)}var s=function(){};s.__name__=["Std"],(s.prototype={}).__class__=i.Std=s,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={__name__:["Int"]},i.Dynamic={__name__:["Dynamic"]};(i.Float=Number).__name__=["Float"],(i.Bool=Boolean).__ename__=["Bool"];i.Class={__name__:["Class"]};s.is=function(t,e){return r().default.__instanceof(t,e)},s.string=function(t){return r().default.__string_rec(t,"")},s.int=function(t){return 0|t},s.parseInt=function(t){var e=parseInt(t,10);return 0!=e||120!=a().default.cca(t,1)&&88!=a().default.cca(t,1)||(e=parseInt(t)),isNaN(e)?null:e},s.parseFloat=function(t){return parseFloat(t)},e.default=s}).call(e,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(1).default;n(2).default;function r(){return n(20)}var a=function(){};a.__name__=["Reflect"],(a.prototype={}).__class__=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){return null}},a.setField=function(t,e,n){t[e]=n},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(e,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(1).default,r=(n(2).default,n(3).default),a=function(t){Error.call(this),this.val=t,this.message=String(t),Error.captureStackTrace&&Error.captureStackTrace(this,a)};a.__name__=["js","_Boot","HaxeError"],a.__super__=Error,a.prototype=r(Error.prototype,{}),a.prototype.__class__=i["js._Boot.HaxeError"]=a,a.wrap=function(t){return t instanceof Error?t:new a(t)},e.default=a}).call(e,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(1).default;n(2).default;var r=function(){};r.__name__=["HxOverrides"],(r.prototype={}).__class__=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(145).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").join(">"),e?t.split('"').join(""").split("'").join("'"):t},a.startsWith=function(t,e){return t.length>=e.length&&r().default.substr(t,0,e.length)==e},a.endsWith=function(t,e){var n=e.length,i=t.length;return i>=n&&r().default.substr(t,i-n,n)==e},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;n0?r().default.substr(t,n,e-n):t},a.rtrim=function(t){for(var e=t.length,n=0;n0?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=this.x&&e>=this.y&&tthis.x&&t.y>this.y&&t.get_right()=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.xt.get_right()?t.get_right():this.get_right();if(n<=e)return new a;var i=this.yt.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.xt.get_right()?t.get_right():this.get_right())<=e)return!1;var n=this.yt.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.y?t.y:this.y,r=this.get_bottom()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),ri&&(i=s),o>a&&(a=o),s=e.a*(this.x+this.width)+e.c*(this.y+this.height),o=e.b*(this.x+this.width)+e.d*(this.y+this.height),si&&(i=s),o>a&&(a=o),s=e.a*this.x+e.c*(this.y+this.height),o=e.b*this.x+e.d*(this.y+this.height),si&&(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__=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(67).default)(function(){return new a},function(t){t.setTo(0,0,0,0)}),e.default=a}).call(e,n(0))},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(20);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(1).default;n(2).default;function r(){return n(6)}function a(){return n(260)}function s(){return n(12)}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.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;ithis.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()this.get_length())throw new(r().default)(a().default.OutsideBounds);for(var n="",i=this.b,s=String.fromCharCode,o=t,l=t+e;o>10)),n+=s(1023&_|56320)}}return n},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(31).default),e=[],i="0123456789abcdef",r=0,a=i.length;r>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__=i["haxe.io.Bytes"]=o,o.alloc=function(t){return new o(new ArrayBuffer(t))},o.ofString=function(t){for(var e=[],n=0;n>6),e.push(128|63&i)):i<=65535?(e.push(224|i>>12),e.push(128|i>>6&63),e.push(128|63&i)):(e.push(240|i>>18),e.push(128|i>>12&63),e.push(128|i>>6&63),e.push(128|63&i))}return new o(new Uint8Array(e).buffer)},o.ofData=function(t){var e=t.hxBytes;return null!=e?e:new o(t)},o.fastGet=function(t,e){return t.bytes[e]},e.default=o}).call(e,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(1).default;n(2).default;function r(){return n(45)}function a(){return n(16)}function s(){return n(74)}function o(){return n(24)}var l=function(){};l.__name__=["openfl","utils","_ByteArray","ByteArray_Impl_"],(l.prototype={}).__class__=i["openfl.utils._ByteArray.ByteArray_Impl_"]=l,l._new=function(t){return null==t&&(t=0),new(r().default)(t)},l.get=function(t,e){return t.get(e)},l.set=function(t,e,n){return t.__resize(e+1),t.set(e,n),n},l.fromArrayBuffer=function(t){return null==t?null:r().default.fromBytes(a().default.ofData(t))},l.fromBytes=function(t){return null==t?null:n(4).default.is(t,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.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.fromLimeBytes=function(t){return l.fromBytes(t)},l.toArrayBuffer=function(t){return t.getData()},l.toBytePointer=function(t){return n(308).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.get_length=function(t){return null==t?0:t.l},l.set_length=function(t,e){return t.set_length(e),e},l.__bytePointer=new(n(73).default)(null,0),e.default=l}).call(e,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(1).default;n(2).default;var a=function(){this.h={}};a.__name__=["haxe","ds","StringMap"],a.__interfaces__=[n(107).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(7).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(258).default)(this,this.arrayKeys())},toString:function(){var t=new(n(31).default);t.add("{");for(var e=this.arrayKeys(),i=0,r=e.length;i "),t.add(n(4).default.string(this.get(s))),an.bufferView.byteLength&&(e=n.bufferView.byteLength);var u=n.bufferView.buffer,_=n.bufferView.byteOffset+n.offset,f=a().default.int(e/4);return null!=u?null==f?new Float32Array(u,_):new Float32Array(u,_,f):null;default:return null}},l.toInt32Array=function(t,e){var n=t;if(!n)return null;var i=n.type;switch(s().default.enumIndex(i)){case 0:null==e&&(e=n.buffer.byteLength);var r=n.buffer,o=n.offset,l=a().default.int(e/4);return null!=r?null==l?new Int32Array(r,o):new Int32Array(r,o,l):null;case 1:if(null==e&&(e=n.bufferView.byteLength),0==n.offset&&e==n.bufferView.byteLength&&n.bufferView.constructor==Int32Array)return n.bufferView;var u=n.bufferView.buffer,_=n.bufferView.byteOffset+n.offset,f=a().default.int(e/4);return null!=u?null==f?new Int32Array(u,_):new Int32Array(u,_,f):null;default:return null}},l.toUInt8Array=function(t,e){var n=t;if(!n)return null;var i=n.type;switch(s().default.enumIndex(i)){case 0:null==e&&(e=n.buffer.byteLength);var r=n.buffer,a=n.offset;return null!=r?null==e?new Uint8Array(r,a):new Uint8Array(r,a,e):null;case 1:if(null==e&&(e=n.bufferView.byteLength),0==n.offset&&e==n.bufferView.byteLength&&n.bufferView.constructor==Uint8Array)return n.bufferView;var o=n.bufferView.buffer,l=n.bufferView.byteOffset+n.offset;return null!=o?null==e?new Uint8Array(o,l):new Uint8Array(o,l,e):null;default:return null}},l.toUInt32Array=function(t,e){var n=t;if(!n)return null;var i=n.type;switch(s().default.enumIndex(i)){case 0:null==e&&(e=n.buffer.byteLength);var r=n.buffer,o=n.offset,l=a().default.int(e/4);return null!=r?null==l?new Uint32Array(r,o):new Uint32Array(r,o,l):null;case 1:if(null==e&&(e=n.bufferView.byteLength),0==n.offset&&e==n.bufferView.byteLength&&n.bufferView.constructor==Uint32Array)return n.bufferView;var u=n.bufferView.buffer,_=n.bufferView.byteOffset+n.offset,f=a().default.int(e/4);return null!=u?null==f?new Uint32Array(u,_):new Uint32Array(u,_,f):null;default:return null}},l.toValue=function(t){var e=t;if(!e)return 0;if("number"==typeof e)return e;var n=e.type;return 2==s().default.enumIndex(n)?e.offset:0},l.__withOffset=function(t,e){return null},l.equals=function(t,e){return t==e},l.equalsPointer=function(t,e){return t==e},l.greaterThan=function(t,e){return t>e},l.greaterThanPointer=function(t,e){return o().default.get(t)>o().default.get(e)},l.greaterThanOrEqual=function(t,e){return t>=e},l.greaterThanOrEqualPointer=function(t,e){return o().default.get(t)>=o().default.get(e)},l.lessThan=function(t,e){return t").join(">")},s.__trace=function(t,e){var n,i=null!=e?e.fileName+":"+e.lineNumber+": ":"";if(i+=s.__string_rec(t,""),null!=e&&null!=e.customParams)for(var r=0,a=e.customParams;r":"undefined"!=typeof console&&null!=console.log&&console.log(i)},s.isClass=function(t){return t.__name__},s.isEnum=function(t){return t.__ename__},s.getClass=function(t){if(t instanceof Array&&null==t.__enum__)return Array;var e=t.__class__;if(null!=e)return e;var n=s.__nativeClassName(t);return null!=n?s.__resolveNativeClass(n):null},s.__string_rec=function(t,e){if(null==t)return"null";if(e.length>=5)return"<...>";var n=typeof t;switch("function"==n&&(s.isClass(t)||s.isEnum(t))&&(n="object"),n){case"function":return"";case"object":if(t instanceof Array){if(t.__enum__){if(2==t.length)return t[0];var i=t[0]+"(";e+="\t";for(var r=2,a=t.length;r0?",":"")+s.__string_rec(t[d],e)}return u+="]"}var h;try{h=t.toString}catch(t){return"???"}if(null!=h&&h!=Object.toString&&"function"==typeof h){var c=t.toString();if("[object Object]"!=c)return c}var p=null,g="{\n";e+="\t";var m=null!=t.hasOwnProperty;for(var p in t)m&&!t.hasOwnProperty(p)||"prototype"!=p&&"__class__"!=p&&"__super__"!=p&&"__interfaces__"!=p&&"__properties__"!=p&&(2!=g.length&&(g+=", \n"),g+=e+p+" : "+s.__string_rec(t[p],e));return g+="\n"+(e=e.substring(1))+"}";case"string":return t;default:return String(t)}},s.__interfLoop=function(t,e){if(null==t)return!1;if(t==e)return!0;var n=t.__interfaces__;if(null!=n)for(var i=0,r=n.length;i=4&&console.debug("["+e.className+"] "+t)},r.error=function(t,e){if(r.level>=1){var i="["+e.className+"] ERROR: "+t;if(r.throwErrors)throw new(n(6).default)(i);console.error(i)}},r.info=function(t,e){r.level>=3&&console.info("["+e.className+"] "+t)},r.print=function(t){console.log(t)},r.println=function(t){console.log(t)},r.verbose=function(t,e){r.level>=5&&r.println("["+e.className+"] "+t)},r.warn=function(t,e){r.level>=2&&console.warn("["+e.className+"] WARNING: "+t)},r.throwErrors=!0,e.default=r}).call(e,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(1).default,r=(n(2).default,n(8).default);function a(){return n(39)}var s=function(t,e){if(null==e&&(e=!1),null!=t)if(e){var i=new(a().default);i.future=this,n(274).default.queue({promise:i,work:t})}else try{this.value=t(),this.isComplete=!0}catch(t){t instanceof n(6).default&&(t=t.val),this.error=t,this.isError=!0}};s.__name__=["lime","app","Future"],(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?this:(n(23).default.warn("Cannot block thread in JavaScript",{fileName:"Future.hx",lineNumber:157,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.onError(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__=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(e,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(1).default;n(2).default;function r(){return n(4)}function a(){return n(187)}function s(){return n(10)}function o(){return n(46)}function l(){return n(5)}function u(){return n(12)}function _(){return n(26)}function f(){return n(34)}var d=function(){};d.__name__=["openfl","Lib"],(d.prototype={}).__class__=i["openfl.Lib"]=d,Object.defineProperties(d,{application:{get:function(){return d.get_application()}},current:{get:function(){return d.get_current()}}}),d.as=function(t,e){return r().default.is(t,e)?t:null},d.attach=function(t){return new(a().default)},d.clearInterval=function(t){d.__timers.exists(t)&&(d.__timers.get(t).stop(),d.__timers.remove(t))},d.clearTimeout=function(t){d.__timers.exists(t)&&(d.__timers.get(t).stop(),d.__timers.remove(t))},d.getDefinitionByName=function(t){return s().default.resolveClass(t)},d.getQualifiedClassName=function(t){return s().default.getClassName(s().default.getClass(t))},d.getQualifiedSuperclassName=function(t){var e=s().default.getSuperClass(s().default.getClass(t));return null!=e?s().default.getClassName(e):null},d.getTimer=function(){return o().default.getTimer()},d.getURL=function(t,e){d.navigateToURL(t,e)},d.navigateToURL=function(t,e){null==e&&(e="_blank");var i=t.url;if(r().default.is(t.data,n(134).default)){for(var a="",s=l().default.fields(t.data),_=0;_0&&(a+="&"),a+=u().default.urlEncode(f)+"="+u().default.urlEncode(r().default.string(l().default.field(t.data,f)))}i.indexOf("?")>-1?i+="&"+a:i+="?"+a}o().default.openURL(i,e)},d.notImplemented=function(t){var e=t.className+"."+t.methodName;d.__sentWarnings.exists(e)||(d.__sentWarnings.set(e,!0),n(23).default.warn(t.methodName+" is not implemented",t))},d.preventDefaultTouchMove=function(){n(11).default.get_document().addEventListener("touchmove",function(t){t.preventDefault()},!1)},d.sendToURL=function(t){(new(n(79).default)).load(t)},d.setInterval=function(t,e,n){var i=++d.__lastTimerID,r=new(_().default)(e);return d.__timers.set(i,r),r.run=function(){l().default.callMethod(t,t,n)},i},d.setTimeout=function(t,e,n){var i=++d.__lastTimerID,r=d.__timers,a=_().default.delay(function(){l().default.callMethod(t,t,n)},e);return r.set(i,a),i},d.trace=function(t){n(47).default.trace(t,{fileName:"Lib.hx",lineNumber:282,className:"openfl.Lib",methodName:"trace"})},d.get_application=function(){return f().default.application},d.get_current=function(){return null==f().default.current&&(f().default.current=new(a().default)),f().default.current},d.__lastTimerID=0,d.__sentWarnings=new(n(18).default),d.__timers=new(n(22).default),e.default=d}).call(e,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(1).default;n(2).default;var r=function(t){var e=this;this.id=setInterval(function(){e.run()},t)};r.__name__=["haxe","Timer"],(r.prototype={stop:function(){null!=this.id&&(clearInterval(this.id),this.id=null)},run:function(){}}).__class__=i["haxe.Timer"]=r,r.delay=function(t,e){var n=new r(e);return n.run=function(){n.stop(),t()},n},r.measure=function(t,e){var i=r.stamp(),a=t();return n(47).default.trace(r.stamp()-i+"s",e),a},r.stamp=function(){return n(11).default.get_window().performance.now()/1e3},e.default=r}).call(e,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(1).default;n(2).default;function r(){return n(6)}function a(){return n(7)}var s=function(t,e){this.r=new RegExp(t,e.split("u").join(""))};s.__name__=["EReg"],(s.prototype={match:function(t){return this.r.global&&(this.r.lastIndex=0),this.r.m=this.r.exec(t),this.r.s=t,null!=this.r.m},matched:function(t){if(null!=this.r.m&&t>=0&&t=t.length);){if(!this.matchSub(t,i)){r.add(a().default.substr(t,i,null));break}var s=this.matchedPos();if(r.add(a().default.substr(t,i,s.pos-i)),r.add(e(this)),0==s.len?(r.add(a().default.substr(t,s.pos,1)),i=s.pos+1):i=s.pos+s.len,!this.r.global)break}return!this.r.global&&i>0&&i2)throw new(r().default)("Column "+t+" out of bounds (2)");0==t?(this.a=e.x,this.c=e.y):1==t?(this.b=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.c,e.z=0):1==t?(e.x=this.b,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):1==t?(this.b=e.x,this.d=e.y):(this.tx=e.x,this.ty=e.y)},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.b,e.z=this.tx):1==t?(e.x=this.c,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__=i["openfl.geom.Matrix"]=o,o.__identity=new o,o.__matrix3=new(n(290).default),o.__pool=new(n(67).default)(function(){return new o},function(t){t.identity()}),e.default=o}).call(e,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(1).default;n(2).default;var r=function(t,e){null==e&&(e=0),null==t&&(t=0),this.x=t,this.y=e};r.__name__=["openfl","geom","Point"],(r.prototype={add:function(t){return new r(t.x+this.x,t.y+this.y)},clone:function(){return new r(this.x,this.y)},copyFrom:function(t){this.x=t.x,this.y=t.y},equals:function(t){return null!=t&&t.x==this.x&&t.y==this.y},normalize:function(t){if(0!=this.x||0!=this.y){var e=t/Math.sqrt(this.x*this.x+this.y*this.y);this.x*=e,this.y*=e}},offset:function(t,e){this.x+=t,this.y+=e},setTo:function(t,e){this.x=t,this.y=e},subtract:function(t){return new r(this.x-t.x,this.y-t.y)},toString:function(){return"(x="+this.x+", y="+this.y+")"},__toLimeVector2:function(){return null==r.__limeVector2&&(r.__limeVector2=new(n(42).default)),r.__limeVector2.setTo(this.x,this.y),r.__limeVector2},get_length:function(){return Math.sqrt(this.x*this.x+this.y*this.y)}}).__class__=i["openfl.geom.Point"]=r,Object.defineProperty(r.prototype,"length",{get:function(){return this.get_length()}}),r.distance=function(t,e){var n=t.x-e.x,i=t.y-e.y;return Math.sqrt(n*n+i*i)},r.interpolate=function(t,e,n){return new r(e.x+n*(t.x-e.x),e.y+n*(t.y-e.y))},r.polar=function(t,e){return new r(t*Math.cos(e),t*Math.sin(e))},r.__pool=new(n(67).default)(function(){return new r},function(t){t.setTo(0,0)}),e.default=r}).call(e,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(1).default;n(2).default;function r(){return n(121)}var a=function(t,e){null==e&&(e=0),null==t&&(t=""),this.message=t,this.errorID=e,this.name="Error"};a.__name__=["openfl","errors","Error"],(a.prototype={getStackTrace:function(){return r().default.toString(r().default.exceptionStack())},toString:function(){return null!=this.message?this.message:"Error"}}).__class__=i["openfl.errors.Error"]=a,a.DEFAULT_TO_STRING="Error",e.default=a}).call(e,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(1).default;n(2).default;var r=function(){this.b=""};r.__name__=["StringBuf"],(r.prototype={add:function(t){this.b+=n(4).default.string(t)},addChar:function(t){this.b+=String.fromCharCode(t)},toString:function(){return this.b}}).__class__=i.StringBuf=r,e.default=r}).call(e,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(1).default;n(2).default;function r(){return n(65)}function a(){return n(55)}function s(){return n(42)}function o(){return n(111)}function l(){return n(4)}var u=function(){};u.__name__=["lime","graphics","utils","ImageCanvasUtil"],(u.prototype={}).__class__=i["lime.graphics.utils.ImageCanvasUtil"]=u,u.colorTransform=function(t,e,n){u.convertToData(t),r().default.colorTransform(t,e,n)},u.convertToCanvas=function(t,e){null==e&&(e=!1);var n=t.buffer;null!=n.__srcImage?(null==n.__srcCanvas&&(u.createCanvas(t,n.__srcImage.width,n.__srcImage.height),n.__srcContext.drawImage(n.__srcImage,0,0)),n.__srcImage=null):null==n.__srcCanvas&&null!=n.data?(t.set_transparent(!0),u.createCanvas(t,n.width,n.height),u.createImageData(t),n.__srcContext.putImageData(n.__srcImageData,0,0)):t.type==a().default.DATA&&null!=n.__srcImageData&&t.dirty&&(n.__srcContext.putImageData(n.__srcImageData,0,0),t.dirty=!1),e?(n.data=null,n.__srcImageData=null):null==n.data&&null!=n.__srcImageData&&(n.data=n.__srcImageData.data),t.type=a().default.CANVAS},u.convertToData=function(t,e){null==e&&(e=!1);var n=t.buffer;if(null!=n.__srcImage&&u.convertToCanvas(t),null!=n.__srcCanvas&&null==n.data)u.createImageData(t),t.type==a().default.CANVAS&&(t.dirty=!1);else if(t.type==a().default.CANVAS&&null!=n.__srcCanvas&&t.dirty){if(null==n.__srcImageData)u.createImageData(t);else{n.__srcImageData=n.__srcContext.getImageData(0,0,n.width,n.height);var i,r=n.__srcImageData.data.buffer;i=null!=r?new Uint8Array(r):null,n.data=i}t.dirty=!1}e&&(t.buffer.__srcCanvas=null,t.buffer.__srcContext=null),t.type=a().default.DATA},u.copyChannel=function(t,e,n,i,a,s){u.convertToData(e),u.convertToData(t),r().default.copyChannel(t,e,n,i,a,s)},u.copyPixels=function(t,e,i,r,a,_,f){if(null==f&&(f=!1),!(null==r||r.x>=t.width||r.y>=t.height||null==i||i.width<1||i.height<1)){if(null!=a&&a.get_transparent()){null==_&&(_=new(s().default));var d=t.clone();d.copyChannel(a,new(n(41).default)(_.x,_.y,i.width,i.height),new(s().default)(i.x,i.y),o().default.ALPHA,o().default.ALPHA),e=d}u.convertToCanvas(t,!0),f||t.get_transparent()&&e.get_transparent()&&t.buffer.__srcContext.clearRect(r.x+t.offsetX,r.y+t.offsetY,i.width+t.offsetX,i.height+t.offsetY),u.convertToCanvas(e),null!=e.buffer.get_src()&&(t.buffer.__srcContext.globalCompositeOperation="source-over",t.buffer.__srcContext.drawImage(e.buffer.get_src(),l().default.int(i.x+e.offsetX),l().default.int(i.y+e.offsetY),l().default.int(i.width),l().default.int(i.height),l().default.int(r.x+t.offsetX),l().default.int(r.y+t.offsetY),l().default.int(i.width),l().default.int(i.height))),t.dirty=!0,t.version++}},u.createCanvas=function(t,e,i){var r=t.buffer;null==r.__srcCanvas&&(r.__srcCanvas=n(11).default.get_document().createElement("canvas"),r.__srcCanvas.width=e,r.__srcCanvas.height=i,t.get_transparent()?r.__srcContext=r.__srcCanvas.getContext("2d"):(t.get_transparent()||r.__srcCanvas.setAttribute("moz-opaque","true"),r.__srcContext=r.__srcCanvas.getContext("2d",{alpha:!1})),r.__srcContext.mozImageSmoothingEnabled=!1,r.__srcContext.msImageSmoothingEnabled=!1,r.__srcContext.imageSmoothingEnabled=!1)},u.createImageData=function(t){var e=t.buffer;if(null==e.__srcImageData){null==e.data?e.__srcImageData=e.__srcContext.getImageData(0,0,e.width,e.height):(e.__srcImageData=e.__srcContext.createImageData(e.width,e.height),e.__srcImageData.data.set(e.data));var n,i=e.__srcImageData.data.buffer;n=null!=i?new Uint8Array(i):null,e.data=n}},u.fillRect=function(t,e,n,i){var r,a,s,o;u.convertToCanvas(t),1==i?(r=n>>16&255,a=n>>8&255,s=255&n,o=t.get_transparent()?n>>24&255:255):(r=n>>24&255,a=n>>16&255,s=n>>8&255,o=t.get_transparent()?255&n:255),0==e.x&&0==e.y&&e.width==t.width&&e.height==t.height&&t.get_transparent()&&0==o?t.buffer.__srcCanvas.width=t.buffer.width:(o<255&&t.buffer.__srcContext.clearRect(e.x+t.offsetX,e.y+t.offsetY,e.width+t.offsetX,e.height+t.offsetY),o>0&&(t.buffer.__srcContext.fillStyle="rgba("+r+", "+a+", "+s+", "+o/255+")",t.buffer.__srcContext.fillRect(e.x+t.offsetX,e.y+t.offsetY,e.width+t.offsetX,e.height+t.offsetY)),t.dirty=!0,t.version++)},u.floodFill=function(t,e,n,i,a){u.convertToData(t),r().default.floodFill(t,e,n,i,a)},u.getPixel=function(t,e,n,i){return u.convertToData(t),r().default.getPixel(t,e,n,i)},u.getPixel32=function(t,e,n,i){return u.convertToData(t),r().default.getPixel32(t,e,n,i)},u.getPixels=function(t,e,n){return u.convertToData(t),r().default.getPixels(t,e,n)},u.merge=function(t,e,n,i,a,s,o,l){u.convertToData(e),u.convertToData(t),r().default.merge(t,e,n,i,a,s,o,l)},u.resize=function(t,e,n){var i=t.buffer;if(null==i.__srcCanvas)u.createCanvas(t,e,n),i.__srcContext.drawImage(i.get_src(),0,0,e,n);else{u.convertToCanvas(t,!0);var r=i.__srcCanvas;i.__srcCanvas=null,u.createCanvas(t,e,n),i.__srcContext.drawImage(r,0,0,e,n)}i.__srcImageData=null,i.data=null,t.dirty=!0,t.version++},u.scroll=function(t,e,n){if(e%t.width!=0||n%t.height!=0){var i=t.clone();u.convertToCanvas(t,!0),t.buffer.__srcContext.clearRect(e,n,t.width,t.height),t.buffer.__srcContext.drawImage(i.get_src(),e,n),t.dirty=!0,t.version++}},u.setPixel=function(t,e,n,i,a){u.convertToData(t),r().default.setPixel(t,e,n,i,a)},u.setPixel32=function(t,e,n,i,a){u.convertToData(t),r().default.setPixel32(t,e,n,i,a)},u.setPixels=function(t,e,n,i,a){u.convertToData(t),r().default.setPixels(t,e,n,i,a)},u.sync=function(t,e){null!=t&&(t.type==a().default.CANVAS?u.convertToCanvas(t,e):u.convertToData(t,e))},e.default=u}).call(e,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(15).default,r=n(1).default["lime.graphics.RendererType"]={__ename__:["lime","graphics","RendererType"],__constructs__:["OPENGL","CANVAS","DOM","FLASH","CAIRO","CONSOLE","CUSTOM"]};r.OPENGL=["OPENGL",0],r.OPENGL.toString=i,r.OPENGL.__enum__=r,r.CANVAS=["CANVAS",1],r.CANVAS.toString=i,r.CANVAS.__enum__=r,r.DOM=["DOM",2],r.DOM.toString=i,r.DOM.__enum__=r,r.FLASH=["FLASH",3],r.FLASH.toString=i,r.FLASH.__enum__=r,r.CONSOLE=["CONSOLE",5],r.CONSOLE.toString=i,r.CONSOLE.__enum__=r,r.CAIRO=["CAIRO",4],r.CAIRO.toString=i,r.CAIRO.__enum__=r,r.CUSTOM=["CUSTOM",6],r.CUSTOM.toString=i,r.CUSTOM.__enum__=r,e.default=r}).call(e,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(1).default;n(2).default;var r=function(){};r.__name__=["openfl","_internal","Lib"],(r.prototype={}).__class__=i["openfl._internal.Lib"]=r,r.notImplemented=function(t){var e=t.className+"."+t.methodName;r.__sentWarnings.exists(e)||(r.__sentWarnings.set(e,!0),n(23).default.warn(t.methodName+" is not implemented",t))},r.__sentWarnings=new(n(18).default),e.default=r}).call(e,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(1).default;n(2).default;function r(){return n(5)}var a=function(){this.canceled=!1,this.__listeners=[],this.__priorities=[],this.__repeat=[]};a.__name__=["lime","app","_Event_Void_Void"],(a.prototype={add:function(t,e,n){null==n&&(n=0),null==e&&(e=!1);for(var i=0,r=this.__priorities.length;ithis.__priorities[a])return this.__listeners.splice(a,0,t),this.__priorities.splice(a,0,n),void this.__repeat.splice(a,0,!e)}this.__listeners.push(t),this.__priorities.push(n),this.__repeat.push(!e)},cancel:function(){this.canceled=!0},has:function(t){for(var e=0,n=this.__listeners;e=0;)r().default.compareMethods(this.__listeners[e],t)&&(this.__listeners.splice(e,1),this.__priorities.splice(e,1),this.__repeat.splice(e,1))},dispatch:function(){this.canceled=!1;for(var t=this.__listeners,e=this.__repeat,n=0;n0){for(var n=l().default.__pool.get(),i=0,r=this.__filters;i=0;)(e=t[n]).__update(!0,!1),e.__worldTransformInvalid=!1}return this.__worldTransform},__globalToLocal:function(t,e){return this.__getRenderTransform(),t==e?this.__renderTransform.__transformInversePoint(t):(e.x=this.__renderTransform.__transformInverseX(t.x,t.y),e.y=this.__renderTransform.__transformInverseY(t.x,t.y)),e},__hitTest:function(t,e,n,i,r,a){if(null!=this.__graphics){if(!a.get_visible()||this.__isMask)return!1;if(null!=this.get_mask()&&!this.get_mask().__hitTestMask(t,e))return!1;if(this.__graphics.__hitTest(t,e,n,this.__getRenderTransform()))return null==i||r||i.push(a),!0}return!1},__hitTestMask:function(t,e){return!(null==this.__graphics||!this.__graphics.__hitTest(t,e,!0,this.__getRenderTransform()))},__readGraphicsData:function(t,e){null!=this.__graphics&&this.__graphics.__readGraphicsData(t)},__renderCairo:function(t){},__renderCairoMask:function(t){},__renderCanvas:function(t){(null==this.get_mask()||this.get_mask().get_width()>0&&this.get_mask().get_height()>0)&&(this.__updateCacheBitmap(t,!this.__worldColorTransform.__isDefault()),null==this.__cacheBitmap||this.__cacheBitmapRender?n(158).default.render(this,t):n(115).default.render(this.__cacheBitmap,t))},__renderCanvasMask:function(t){null!=this.__graphics&&n(58).default.renderMask(this.__graphics,t)},__renderDOM:function(t){this.__updateCacheBitmap(t,!this.__worldColorTransform.__isDefault()),null==this.__cacheBitmap||this.__cacheBitmapRender?_().default.render(this,t):(this.__renderDOMClear(t),this.__cacheBitmap.stage=this.stage,n(95).default.render(this.__cacheBitmap,t))},__renderDOMClear:function(t){_().default.clear(this,t)},__renderGL:function(t){this.__updateCacheBitmap(t,!1),null==this.__cacheBitmap||this.__cacheBitmapRender?d().default.render(this,t):f().default.render(this.__cacheBitmap,t)},__renderGLMask:function(t){this.__updateCacheBitmap(t,!1),null==this.__cacheBitmap||this.__cacheBitmapRender?d().default.renderMask(this,t):f().default.renderMask(this.__cacheBitmap,t)},__setParentRenderDirty:function(){var t=null!=this.__renderParent?this.__renderParent:this.parent;null==t||t.__renderDirty||(t.__renderDirty=!0,t.__setParentRenderDirty())},__setRenderDirty:function(){this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty())},__setStageReference:function(t){this.stage=t},__setTransformDirty:function(){this.__transformDirty||(this.__transformDirty=!0,this.__setWorldTransformInvalid(),this.__setParentRenderDirty())},__setWorldTransformInvalid:function(){this.__worldTransformInvalid=!0},__stopAllMovieClips:function(){},__update:function(t,e,n){var i=null!=this.__renderParent?this.__renderParent:this.parent;if(this.__isMask&&null==i&&(i=this.__maskTarget),this.__renderable=this.get_visible()&&0!=this.__scaleX&&0!=this.__scaleY&&!this.__isMask&&(null==i||!i.__isMask),this.__updateTransforms(),this.__transformDirty=!1,null!=n&&this.__updateMask(n),!t)if(m.__supportDOM&&(this.__renderTransformChanged=!this.__renderTransform.equals(this.__renderTransformCache),null==this.__renderTransformCache?this.__renderTransformCache=this.__renderTransform.clone():this.__renderTransformCache.copyFrom(this.__renderTransform)),this.__worldColorTransform.__equals(this.get_transform().get_colorTransform())||(this.__worldColorTransform=this.get_transform().get_colorTransform().__clone()),null!=i){if(m.__supportDOM){var r=i.__worldVisible&&this.get_visible();this.__worldVisibleChanged=this.__worldVisible!=r,this.__worldVisible=r;var a=this.get_alpha()*i.__worldAlpha;this.__worldAlphaChanged=this.__worldAlpha!=a,this.__worldAlpha=a}else this.__worldAlpha=this.get_alpha()*i.__worldAlpha;this.__worldColorTransform.__combine(i.__worldColorTransform),null==this.__blendMode||"normal"==this.__blendMode?this.__worldBlendMode=i.__blendMode:this.__worldBlendMode=this.__blendMode}else this.__worldAlpha=this.get_alpha(),m.__supportDOM&&(this.__worldVisibleChanged=this.__worldVisible!=this.get_visible(),this.__worldVisible=this.get_visible(),this.__worldAlphaChanged=this.__worldAlpha!=this.get_alpha());e&&null!=this.get_mask()&&this.get_mask().__update(t,!0,n)},__updateCacheBitmap:function(t,e){if(this.__cacheBitmapRender)return!1;if(this.get_cacheAsBitmap()){var i=null,r=null;this.__update(!1,!0);var a=null==this.__cacheBitmap||this.__renderDirty&&(e||null!=this.__children&&this.__children.length>0||null!=this.__graphics&&this.__graphics.__dirty)||this.opaqueBackground!=this.__cacheBitmapBackground||!this.__cacheBitmapColorTransform.__equals(this.__worldColorTransform),s=a||!this.__cacheBitmap.__worldTransform.equals(this.__worldTransform),_=null!=this.__filters&&this.__filters.length>0;if(_&&!a)for(var f=0,d=this.__filters;f=.5&&r.height>=.5))return this.__cacheBitmap=null,this.__cacheBitmapData=null,!0;null==this.__cacheBitmap||g!=this.__cacheBitmap.get_width()||m!=this.__cacheBitmap.get_height()?(this.__cacheBitmapData=new(h().default)(g,m,!0,v),null==this.__cacheBitmap&&(this.__cacheBitmap=new(n(89).default)),this.__cacheBitmap.__bitmapData=this.__cacheBitmapData):this.__cacheBitmapData.fillRect(this.__cacheBitmapData.rect,v)}if((s||a)&&(this.__cacheBitmap.__worldTransform.copyFrom(this.__worldTransform),this.__cacheBitmap.__renderTransform.identity(),this.__cacheBitmap.__renderTransform.tx=r.x,this.__cacheBitmap.__renderTransform.ty=r.y,i.concat(this.__renderTransform),i.tx-=Math.round(r.x),i.ty-=Math.round(r.y)),this.__cacheBitmap.smoothing=t.allowSmoothing,this.__cacheBitmap.__renderable=this.__renderable,this.__cacheBitmap.__worldAlpha=this.__worldAlpha,this.__cacheBitmap.__worldBlendMode=this.__worldBlendMode,this.__cacheBitmap.__scrollRect=this.__scrollRect,this.__cacheBitmap.set_mask(this.__mask),a){if(this.__cacheBitmapRender=!0,this.__cacheBitmapData.__draw(this,i,null,null,null,t.allowSmoothing),_){for(var w=!1,y=!1,b=0,x=this.__filters;b1&&(t=1),t!=this.__alpha&&this.__setRenderDirty(),this.__alpha=t},get_blendMode:function(){return this.__blendMode},set_blendMode:function(t){return null==t&&(t="normal"),t!=this.__blendMode&&this.__setRenderDirty(),this.__blendMode=t},get_cacheAsBitmap:function(){return null!=this.__filters||this.__cacheAsBitmap},set_cacheAsBitmap:function(t){return this.__setRenderDirty(),this.__cacheAsBitmap=t},get_cacheAsBitmapMatrix:function(){return this.__cacheAsBitmapMatrix},set_cacheAsBitmapMatrix:function(t){return this.__setRenderDirty(),this.__cacheAsBitmapMatrix=t.clone()},get_filters:function(){return null==this.__filters?[]:this.__filters.slice()},set_filters:function(t){return null!=t&&t.length>0?this.__filters=t:this.__filters=null,this.__setRenderDirty(),t},get_height:function(){var t=l().default.__pool.get();this.__getLocalBounds(t);var e=t.height;return l().default.__pool.release(t),e},set_height:function(t){var e=l().default.__pool.get(),n=o().default.__pool.get();return n.identity(),this.__getBounds(e,n),t!=e.height?this.set_scaleY(t/e.height):this.set_scaleY(1),l().default.__pool.release(e),o().default.__pool.release(n),t},get_loaderInfo:function(){return null!=this.stage?p().default.current.__loaderInfo:null},get_mask:function(){return this.__mask},set_mask:function(t){return t==this.__mask?t:(t!=this.__mask&&(this.__setTransformDirty(),this.__setRenderDirty()),null!=this.__mask&&(this.__mask.__isMask=!1,this.__mask.__maskTarget=null,this.__mask.__setTransformDirty(),this.__mask.__setRenderDirty()),null!=t&&(t.__isMask=!0,t.__maskTarget=this,t.__setWorldTransformInvalid()),null!=this.__cacheBitmap&&this.__cacheBitmap.get_mask()!=t&&this.__cacheBitmap.set_mask(t),this.__mask=t)},get_mouseX:function(){var t=null!=this.stage?this.stage.__mouseX:p().default.current.stage.__mouseX,e=null!=this.stage?this.stage.__mouseY:p().default.current.stage.__mouseY;return this.__getRenderTransform().__transformInverseX(t,e)},get_mouseY:function(){var t=null!=this.stage?this.stage.__mouseX:p().default.current.stage.__mouseX,e=null!=this.stage?this.stage.__mouseY:p().default.current.stage.__mouseY;return this.__getRenderTransform().__transformInverseY(t,e)},get_name:function(){return this.__name},set_name:function(t){return this.__name=t},get_root:function(){return null!=this.stage?p().default.current:null},get_rotation:function(){return this.__rotation},set_rotation:function(t){if(t!=this.__rotation){this.__rotation=t;var e=this.__rotation*(Math.PI/180);this.__rotationSine=Math.sin(e),this.__rotationCosine=Math.cos(e),this.__transform.a=this.__rotationCosine*this.__scaleX,this.__transform.b=this.__rotationSine*this.__scaleX,this.__transform.c=-this.__rotationSine*this.__scaleY,this.__transform.d=this.__rotationCosine*this.__scaleY,this.__setTransformDirty()}return t},get_scaleX:function(){return this.__scaleX},set_scaleX:function(t){if(t!=this.__scaleX)if(this.__scaleX=t,0==this.__transform.b)t!=this.__transform.a&&this.__setTransformDirty(),this.__transform.a=t;else{var e=this.__rotationCosine*t,n=this.__rotationSine*t;this.__transform.a==e&&this.__transform.b==n||this.__setTransformDirty(),this.__transform.a=e,this.__transform.b=n}return t},get_scaleY:function(){return this.__scaleY},set_scaleY:function(t){if(t!=this.__scaleY)if(this.__scaleY=t,0==this.__transform.c)t!=this.__transform.d&&this.__setTransformDirty(),this.__transform.d=t;else{var e=-this.__rotationSine*t,n=this.__rotationCosine*t;this.__transform.d==n&&this.__transform.c==e||this.__setTransformDirty(),this.__transform.c=e,this.__transform.d=n}return t},get_scrollRect:function(){return null==this.__scrollRect?null:this.__scrollRect.clone()},set_scrollRect:function(t){return t!=this.__scrollRect&&(this.__setTransformDirty(),m.__supportDOM&&this.__setRenderDirty()),this.__scrollRect=t},get_transform:function(){return null==this.__objectTransform&&(this.__objectTransform=new(g().default)(this)),this.__objectTransform},set_transform:function(t){if(null==t)throw new(n(6).default)(new(n(129).default)("Parameter transform must be non-null."));return null==this.__objectTransform&&(this.__objectTransform=new(g().default)(this)),this.__setTransformDirty(),this.__objectTransform.set_matrix(t.get_matrix()),this.__objectTransform.set_colorTransform(t.get_colorTransform().__clone()),this.__objectTransform},get_visible:function(){return this.__visible},set_visible:function(t){return t!=this.__visible&&this.__setRenderDirty(),this.__visible=t},get_width:function(){var t=l().default.__pool.get();this.__getLocalBounds(t);var e=t.width;return l().default.__pool.release(t),e},set_width:function(t){var e=l().default.__pool.get(),n=o().default.__pool.get();return n.identity(),this.__getBounds(e,n),t!=e.width?this.set_scaleX(t/e.width):this.set_scaleX(1),l().default.__pool.release(e),o().default.__pool.release(n),t},get_x:function(){return this.__transform.tx},set_x:function(t){return t!=this.__transform.tx&&this.__setTransformDirty(),this.__transform.tx=t},get_y:function(){return this.__transform.ty},set_y:function(t){return t!=this.__transform.ty&&this.__setTransformDirty(),this.__transform.ty=t}}),m.prototype.__class__=i["openfl.display.DisplayObject"]=m,Object.defineProperties(m.prototype,{alpha:{get:function(){return this.get_alpha()},set:function(t){return this.set_alpha(t)}},blendMode:{get:function(){return this.get_blendMode()},set:function(t){return this.set_blendMode(t)}},cacheAsBitmap:{get:function(){return this.get_cacheAsBitmap()},set:function(t){return this.set_cacheAsBitmap(t)}},cacheAsBitmapMatrix:{get:function(){return this.get_cacheAsBitmapMatrix()},set:function(t){return this.set_cacheAsBitmapMatrix(t)}},filters:{get:function(){return this.get_filters()},set:function(t){return this.set_filters(t)}},height:{get:function(){return this.get_height()},set:function(t){return this.set_height(t)}},loaderInfo:{get:function(){return this.get_loaderInfo()}},mask:{get:function(){return this.get_mask()},set:function(t){return this.set_mask(t)}},mouseX:{get:function(){return this.get_mouseX()}},mouseY:{get:function(){return this.get_mouseY()}},name:{get:function(){return this.get_name()},set:function(t){return this.set_name(t)}},root:{get:function(){return this.get_root()}},rotation:{get:function(){return this.get_rotation()},set:function(t){return this.set_rotation(t)}},scaleX:{get:function(){return this.get_scaleX()},set:function(t){return this.set_scaleX(t)}},scaleY:{get:function(){return this.get_scaleY()},set:function(t){return this.set_scaleY(t)}},scrollRect:{get:function(){return this.get_scrollRect()},set:function(t){return this.set_scrollRect(t)}},transform:{get:function(){return this.get_transform()},set:function(t){return this.set_transform(t)}},visible:{get:function(){return this.get_visible()},set:function(t){return this.set_visible(t)}},width:{get:function(){return this.get_width()},set:function(t){return this.set_width(t)}},x:{get:function(){return this.get_x()},set:function(t){return this.set_x(t)}},y:{get:function(){return this.get_y()},set:function(t){return this.set_y(t)}}}),m.__broadcastEvents=new(n(18).default),m.__instanceCount=0,m.__tempStack=new(n(67).default)(function(){return n(21).default._new()},function(t){t.set_length(0)}),e.default=m}).call(e,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(1).default;n(2).default;var r=function(){};r.__name__=["openfl","_internal","stage3D","GLUtils"],(r.prototype={}).__class__=i["openfl._internal.stage3D.GLUtils"]=r,r.CheckGLError=function(){if(r.debug){var t=n(49).default.getError();if(0!=t){var e;switch(t){case 0:e="GL_NO_ERROR";break;case 1280:e="GL_INVALID_ENUM";break;case 1281:e="GL_INVALID_VALUE";break;case 1282:e="GL_INVALID_OPERATION";break;case 1285:e="GL_OUT_OF_MEMORY";break;case 1286:e="GL_INVALID_FRAMEBUFFER_OPERATION";break;default:e=null==t?"null":""+t}throw new(n(6).default)(new(n(38).default)("Error calling openGL api. Error: "+e+"\n"))}}},r.debug=!1,e.default=r}).call(e,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(1).default,r=(n(2).default,n(3).default);function a(){return n(30)}var s=function(t){null==t&&(t=""),a().default.call(this,t,0),this.name="IllegalOperationError"};s.__name__=["openfl","errors","IllegalOperationError"],s.__super__=a().default,(s.prototype=r(a().default.prototype,{})).__class__=i["openfl.errors.IllegalOperationError"]=s,e.default=s}).call(e,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(1).default,r=n(8).default;n(2).default;var a=function(){this.future=new(n(24).default)};a.__name__=["lime","app","Promise"],(a.prototype={complete:function(t){if(!this.future.isError&&(this.future.isComplete=!0,this.future.value=t,null!=this.future.__completeListeners)){for(var e=0,n=this.future.__completeListeners;e>16&255,this.greenOffset=t>>8&255,this.blueOffset=255&t,this.redMultiplier=0,this.greenMultiplier=0,this.blueMultiplier=0,this.get_color()},__toLimeColorMatrix:function(){if(null==a.__limeColorMatrix){var t=new Float32Array(20);a.__limeColorMatrix=t}return a.__limeColorMatrix[0]=this.redMultiplier,a.__limeColorMatrix[4]=this.redOffset/255,a.__limeColorMatrix[6]=this.greenMultiplier,a.__limeColorMatrix[9]=this.greenOffset/255,a.__limeColorMatrix[12]=this.blueMultiplier,a.__limeColorMatrix[14]=this.blueOffset/255,a.__limeColorMatrix[18]=this.alphaMultiplier,a.__limeColorMatrix[19]=this.alphaOffset/255,a.__limeColorMatrix}}).__class__=i["openfl.geom.ColorTransform"]=a,Object.defineProperty(a.prototype,"color",{get:function(){return this.get_color()},set:function(t){return this.set_color(t)}}),e.default=a}).call(e,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(1).default;n(2).default;function r(){return n(42)}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__=["lime","math","Rectangle"],(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&&tthis.x&&t.y>this.y&&t.get_right()=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 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.xt.get_right()?t.get_right():this.get_right();if(n<=e)return new a;var i=this.yt.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.xt.get_right()?t.get_right():this.get_right())<=e)return!1;var n=this.yt.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},transform:function(t){var e=t.a*this.x+t.c*this.y,n=e,i=t.b*this.x+t.d*this.y,r=i,s=t.a*(this.x+this.width)+t.c*this.y,o=t.b*(this.x+this.width)+t.d*this.y;return sn&&(n=s),o>r&&(r=o),s=t.a*(this.x+this.width)+t.c*(this.y+this.height),o=t.b*(this.x+this.width)+t.d*(this.y+this.height),sn&&(n=s),o>r&&(r=o),s=t.a*this.x+t.c*(this.y+this.height),o=t.b*this.x+t.d*(this.y+this.height),sn&&(n=s),o>r&&(r=o),new a(e+t.tx,i+t.ty,n-e,r-i)},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.y?t.y:this.y,r=this.get_bottom()t+n&&(this.width=t+n-this.x),this.get_bottom()>e+i&&(this.height=e+i-this.y))},__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.y>e&&(this.y=e),re},r.toFloat=function(t){return t<0?4294967296+t:t+0},e.default=r}).call(e,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(1).default;n(2).default;function r(){return n(111)}function a(){return n(28)}function s(){return n(49)}function o(){return n(162)}function l(){return n(20)}function u(){return n(14)}function _(){return n(32)}function f(){return n(91)}function d(){return n(33)}function h(){return n(161)}function c(){return n(160)}function p(){return n(45)}function g(){return n(4)}function m(){return n(17)}function v(){return n(178)}function w(){return n(94)}function y(){return n(19)}function b(){return n(55)}function x(){return n(89)}function E(){return n(56)}function T(){return n(24)}var A=function(t,e,i,r){null==r&&(r=-1),null==i&&(i=!0),this.transparent=i,t=null==t?0:t,e=null==e?0:e,t=t<0?0:t,e=e<0?0:e,this.width=t,this.height=e,this.rect=new(u().default)(0,0,t,e),t>0&&e>0&&(i?0==(-16777216&r)&&(r=0):r=-16777216|16777215&r,r=r<<8|r>>>24&255,this.image=new(E().default)(null,0,0,t,e,r),this.image.set_transparent(i),this.__isValid=!0,this.readable=!0),this.__worldTransform=new(a().default),this.__worldColorTransform=new(n(40).default),this.__renderable=!0};A.__name__=["openfl","display","BitmapData"],A.__interfaces__=[n(112).default],(A.prototype={applyFilter:function(t,e,n,i){this.readable&&null!=t&&t.readable&&i.__applyFilter(this,t,e,n)},clone:function(){if(this.__isValid){if(this.readable||null!=this.image)return A.fromImage(this.image.clone(),this.transparent);var t=new A(0,0,this.transparent,0);return t.width=this.width,t.height=this.height,t.rect.copyFrom(this.rect),t.__framebuffer=this.__framebuffer,t.__framebufferContext=this.__framebufferContext,t.__texture=this.__texture,t.__textureContext=this.__textureContext,t.__isValid=!0,t}return new A(this.width,this.height,this.transparent,0)},colorTransform:function(t,e){this.readable&&this.image.colorTransform(t.__toLimeRectangle(),e.__toLimeColorMatrix())},compare:function(t){if(t==this)return 0;if(null==t)return-1;if(0==this.readable||0==t.readable)return-2;if(this.width!=t.width)return-3;if(this.height!=t.height)return-4;if(null!=this.image&&null!=t.image&&this.image.get_format()==t.image.get_format()){for(var e=this.image.get_data(),n=t.image.get_data(),i=!0,r=0,a=e.length;r>>8&255)-(u>>>8&255),h=(255&l)-(255&u),(f=(l>>>16&255)-(u>>>16&255))<0&&(f*=-1),d<0&&(d*=-1),h<0&&(h*=-1),0==f&&0==d&&0==h?0!=(c=(l>>>24&255)-(u>>>24&255))&&(_=(255&c)<<24|(255&(_=(255&(_=(255&(_=(255&_>>>24)<<24|16711680|(255&_>>>8)<<8|255&_)>>>24)<<24|(255&_>>>16)<<16|65280|255&_)>>>24)<<24|(255&_>>>16)<<16|(255&_>>>8)<<8|255)>>>16)<<16|(255&_>>>8)<<8|255&_,o=!0):(_=-16777216|(255&(_=(255&(_=(255&(_=(255&_>>>24)<<24|(255&f)<<16|(255&_>>>8)<<8|255&_)>>>24)<<24|(255&_>>>16)<<16|(255&d)<<8|255&_)>>>24)<<24|(255&_>>>16)<<16|(255&_>>>8)<<8|255&h)>>>16)<<16|(255&_>>>8)<<8|255&_,o=!0)),o&&(null==p&&(p=new A(this.width,this.height,this.transparent||t.transparent,0)),p.setPixel32(b,v,_))}return null==p?0:p},copyChannel:function(t,e,n,i,a){if(this.readable){var s,o;switch(i){case 1:s=r().default.RED;break;case 2:s=r().default.GREEN;break;case 4:s=r().default.BLUE;break;case 8:s=r().default.ALPHA;break;default:return}switch(a){case 1:o=r().default.RED;break;case 2:o=r().default.GREEN;break;case 4:o=r().default.BLUE;break;case 8:o=r().default.ALPHA;break;default:return}this.image.copyChannel(t.image,e.__toLimeRectangle(),n.__toLimeVector2(),s,o)}},copyPixels:function(t,e,n,i,r,a){null==a&&(a=!1),this.readable&&null!=t&&(null!=r&&(A.__tempVector.x=r.x,A.__tempVector.y=r.y),this.image.copyPixels(t.image,e.__toLimeRectangle(),n.__toLimeVector2(),null!=i?i.image:null,null!=r?A.__tempVector:null,a))},dispose:function(){this.image=null,this.width=0,this.height=0,this.rect=null,this.__isValid=!1,this.readable=!1,this.__surface=null,this.__buffer=null,this.__framebuffer=null,this.__framebufferContext=null,this.__texture=null,this.__textureContext=null},disposeImage:function(){this.readable=!1},draw:function(t,e,n,i,r,p){if(null==p&&(p=!1),null==e&&(e=new(a().default),null!=t.__transform&&(e.copyFrom(t.__transform),e.tx=0,e.ty=0)),this.readable){if(null!=n){var g=u().default.__pool.get(),m=a().default.__pool.get();t.__getBounds(g,m);var v=Math.ceil(g.width),w=Math.ceil(g.height),y=new A(v,w,!0,0);y.draw(t),y.colorTransform(y.rect,n),t=y,u().default.__pool.release(g),a().default.__pool.release(m)}_().default.convertToCanvas(this.image);var b=this.image.buffer,x=new(f().default);x.renderType=d().default.CANVAS,x.clearRenderDirty=!1,x.context=b.__srcContext,x.allowSmoothing=p,x.maskManager=new(h().default)(x),x.blendModeManager=new(c().default)(x),x.blendModeManager.setBlendMode(i),p||(b.__srcContext.mozImageSmoothingEnabled=!1,b.__srcContext.msImageSmoothingEnabled=!1,b.__srcContext.imageSmoothingEnabled=!1),null!=r&&x.maskManager.pushRect(r,new(a().default));var E=t.__worldTransform;t.__updateTransforms(e),t.__updateChildren(!1),t.__renderCanvas(x),t.__updateTransforms(E),t.__updateChildren(!0),p||(b.__srcContext.mozImageSmoothingEnabled=!0,b.__srcContext.msImageSmoothingEnabled=!0,b.__srcContext.imageSmoothingEnabled=!0),null!=r&&x.maskManager.popRect(),b.__srcContext.setTransform(1,0,0,1,0,0),b.__srcImageData=null,b.data=null,this.image.dirty=!0,this.image.version++}else if(null!=s().default.context){var T=s().default.context;T.bindFramebuffer(T.FRAMEBUFFER,this.__getFramebuffer(T)),T.viewport(0,0,this.width,this.height);var R=new(o().default)(null,T,this),S=R.renderSession;S.clearRenderDirty=!1,S.shaderManager=l().default.__cast(null,o().default).renderSession.shaderManager;var M=t.__worldTransform;t.__updateTransforms(e),t.__updateChildren(!1),t.__renderGL(R.renderSession),t.__updateTransforms(M),t.__updateChildren(!0),T.bindFramebuffer(T.FRAMEBUFFER,null)}},drawWithQuality:function(t,e,n,i,r,a,s){null==a&&(a=!1),this.draw(t,e,n,i,r,"low"!=s&&a)},encode:function(t,e,i){if(!this.readable||null==t)return i=null;null==i&&(i=new(p().default)(0));var r=this.image;if(!t.equals(this.rect)){var s=a().default.__pool.get();s.tx=Math.round(-t.x),s.ty=Math.round(-t.y);var o=new A(Math.ceil(t.width),Math.ceil(t.height),!0,0);o.draw(this,s),r=o.image,a().default.__pool.release(s)}return g().default.is(e,n(177).default)?(i.writeBytes(m().default.fromBytes(r.encode("png"))),i):g().default.is(e,v().default)?(i.writeBytes(m().default.fromBytes(r.encode("jpg",l().default.__cast(e,v().default).quality))),i):i=null},fillRect:function(t,e){if(null!=t)if(this.transparent&&0==(-16777216&e)&&(e=0),this.readable)this.image.fillRect(t.__toLimeRectangle(),e,1);else if(null!=this.__framebuffer){var n=s().default.context,i=e,r=!this.rect.equals(t);n.bindFramebuffer(n.FRAMEBUFFER,this.__framebuffer),r&&(n.enable(n.SCISSOR_TEST),n.scissor(Math.round(t.x),Math.round(t.y),Math.round(t.width),Math.round(t.height))),n.clearColor((i>>>16&255)/255,(i>>>8&255)/255,(255&i)/255,(i>>>24&255)/255),n.clear(n.COLOR_BUFFER_BIT),r&&n.disable(n.SCISSOR_TEST),n.bindFramebuffer(n.FRAMEBUFFER,null)}},floodFill:function(t,e,n){this.readable&&this.image.floodFill(t,e,n,1)},generateFilterRect:function(t,e){return t.clone()},getBuffer:function(t,e,n){if(null==this.__buffer||this.__bufferContext!=t){var i=new Float32Array(104);this.__bufferData=i,this.__bufferData[0]=this.width,this.__bufferData[1]=this.height,this.__bufferData[3]=1,this.__bufferData[4]=1,this.__bufferData[27]=this.height,this.__bufferData[30]=1,this.__bufferData[52]=this.width,this.__bufferData[55]=1;for(var r=0;r<4;){var a=r++;this.__bufferData[26*a+5]=e,null!=n?(this.__bufferData[26*a+6]=n.redMultiplier,this.__bufferData[26*a+11]=n.greenMultiplier,this.__bufferData[26*a+16]=n.blueMultiplier,this.__bufferData[26*a+21]=n.alphaMultiplier,this.__bufferData[26*a+22]=n.redOffset/255,this.__bufferData[26*a+23]=n.greenOffset/255,this.__bufferData[26*a+24]=n.blueOffset/255,this.__bufferData[26*a+25]=n.alphaOffset/255):(this.__bufferData[26*a+6]=1,this.__bufferData[26*a+11]=1,this.__bufferData[26*a+16]=1,this.__bufferData[26*a+21]=1)}this.__bufferAlpha=e,this.__bufferColorTransform=null!=n?n.__clone():null,this.__bufferContext=t,this.__buffer=t.createBuffer(),t.bindBuffer(t.ARRAY_BUFFER,this.__buffer),w().default.bufferData(t,t.ARRAY_BUFFER,this.__bufferData,t.STATIC_DRAW)}else{var s=!1;if(this.__bufferAlpha!=e){s=!0;for(var o=0;o<4;){var l=o++;this.__bufferData[26*l+5]=e}this.__bufferAlpha=e}if(null==this.__bufferColorTransform&&null!=n||null!=this.__bufferColorTransform&&!this.__bufferColorTransform.__equals(n))if(s=!0,null!=n){null==this.__bufferColorTransform?this.__bufferColorTransform=n.__clone():this.__bufferColorTransform.__copyFrom(n);for(var u=0;u<4;){var _=u++;this.__bufferData[26*_+6]=n.redMultiplier,this.__bufferData[26*_+11]=n.greenMultiplier,this.__bufferData[26*_+16]=n.blueMultiplier,this.__bufferData[26*_+21]=n.alphaMultiplier,this.__bufferData[26*_+22]=n.redOffset/255,this.__bufferData[26*_+23]=n.greenOffset/255,this.__bufferData[26*_+24]=n.blueOffset/255,this.__bufferData[26*_+25]=n.alphaOffset/255}}else for(var f=0;f<4;){var d=f++;this.__bufferData[26*d+6]=1,this.__bufferData[26*d+11]=1,this.__bufferData[26*d+16]=1,this.__bufferData[26*d+21]=1,this.__bufferData[26*d+22]=0,this.__bufferData[26*d+23]=0,this.__bufferData[26*d+24]=0,this.__bufferData[26*d+25]=0}t.bindBuffer(t.ARRAY_BUFFER,this.__buffer),s&&t.bufferData(t.ARRAY_BUFFER,this.__bufferData.byteLength,y().default.fromArrayBufferView(this.__bufferData),t.STATIC_DRAW)}return this.__buffer},getColorBoundsRect:function(t,e,n){if(null==n&&(n=!0),!this.readable)return new(u().default)(0,0,this.width,this.height);if(!this.transparent||(t>>24&255)>0){0==(e>>>24&255)&&0}var i=this.image.getColorBoundsRect(t,e,n,1);return new(u().default)(i.x,i.y,i.width,i.height)},getPixel:function(t,e){return this.readable?this.image.getPixel(t,e,1):0},getPixel32:function(t,e){return this.readable?this.image.getPixel32(t,e,1):0},getPixels:function(t){if(!this.readable)return null;null==t&&(t=this.rect);var e=m().default.fromBytes(this.image.getPixels(t.__toLimeRectangle(),1));return e.set_endian("bigEndian"),e},getSurface:function(){return this.readable?(null==this.__surface&&(this.__surface=n(309).default.fromImage(this.image)),this.__surface):null},getTexture:function(t){if(!this.__isValid)return null;if(null!=this.__texture&&this.__textureContext==t||(this.__textureContext=t,this.__texture=t.createTexture(),t.bindTexture(t.TEXTURE_2D,this.__texture),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),this.__textureVersion=-1),_().default.sync(this.image,!1),null!=this.image&&this.image.version!=this.__textureVersion){var e,i;if(null!=this.__surface&&n(310).default.flush(this.__surface),1==this.image.buffer.bitsPerPixel)e=t.ALPHA,i=t.ALPHA;else{if(null==A.__supportsBGRA){A.__textureInternalFormat=t.RGBA;A.__supportsBGRA=!1,A.__textureFormat=t.RGBA}e=A.__textureInternalFormat,i=A.__textureFormat}t.bindTexture(t.TEXTURE_2D,this.__texture);var r=this.image;r.type==b().default.DATA||r.get_premultiplied()?!r.get_premultiplied()&&r.get_transparent()&&t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,1):t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,1),A.__supportsBGRA||0==r.get_format()||(r=r.clone()).set_format(0),r.type==b().default.DATA?t.texImage2D(t.TEXTURE_2D,0,e,r.buffer.width,r.buffer.height,0,i,t.UNSIGNED_BYTE,y().default.fromArrayBufferView(r.get_data())):w().default.texImage2D(t,t.TEXTURE_2D,0,e,i,t.UNSIGNED_BYTE,r.get_src()),t.bindTexture(t.TEXTURE_2D,null),this.__textureVersion=this.image.version}return this.readable||null==this.image||(this.__surface=null,this.image=null),this.__texture},getVector:function(t){for(var e=this.getPixels(t),i=g().default.int(m().default.get_length(e)/4),r=n(21).default._new(i,!0),a=0,s=i;a>24&255)>e)return!0}else if(g().default.is(i,A)){var f,d,h=i;if(null==r?(f=0,d=0):(f=g().default.int(r.x-t.x),d=g().default.int(r.y-t.y)),this.rect.contains(f,d)){var c=u().default.__pool.get();c.setTo(f,d,Math.min(h.width,this.width-f),Math.min(h.height,this.height-d));var p=this.getPixels(c);c.offset(-f,-d);var v,w,y=h.getPixels(c),b=g().default.int(c.width*c.height);u().default.__pool.release(c);for(var E=0,T=b;E>24&255)>e&&(w>>24&255)>a)return!0}return!1}}else if(g().default.is(i,u().default)){var R=u().default.__pool.get();if(R.copyFrom(i),R.offset(-t.x,-t.y),R.__contract(0,0,this.width,this.height),R.width>0&&R.height>0)for(var S=this.getPixels(R),M=0,I=g().default.int(m().default.get_length(S)/4);M>24&255)>e)return u().default.__pool.release(R),!0}u().default.__pool.release(R)}return!1},lock:function(){},merge:function(t,e,n,i,r,a,s){this.readable&&null!=t&&t.readable&&null!=e&&null!=n&&this.image.merge(t.image,e.__toLimeRectangle(),n.__toLimeVector2(),i,r,a,s)},noise:function(t,e,n,i,r){if(null==r&&(r=!1),null==i&&(i=7),null==n&&(n=255),null==e&&(e=0),this.readable){var a=function(){return t=1103515245*t+12345,g().default.int(Math.abs(t/65536))%32768};a();for(var s=n-e,o=(new(p().default)(0),1==(1&i)),l=(2&i)>>1==1,u=(4&i)>>2==1,_=(8&i)>>3==1,f=0,d=this.height;f>24&255])+(null==i?16711680&o:i[o>>16&255])+(null==r?65280&o:r[o>>8&255])+(null==a?255&o:a[255&o]),d.position=4*p,d.writeUnsignedInt(l)}d.position=0;var m=u().default.__pool.get();m.setTo(n.x,n.y,_,f),this.setPixels(m,d),u().default.__pool.release(m)},perlinNoise:function(t,e,i,r,a,s,o,l,u){(null==l&&(l=!1),null==o&&(o=7),this.readable)&&new(n(311).default)(r,i,.01).fill(this,t,e,0)},scroll:function(t,e){this.readable&&this.image.scroll(t,e)},setPixel:function(t,e,n){this.readable&&this.image.setPixel(t,e,n,1)},setPixel32:function(t,e,n){this.readable&&this.image.setPixel32(t,e,n,1)},setPixels:function(t,e){if(this.readable&&null!=t){var i=t.width*t.height*4;if(n(43).default.toFloat(e.get_bytesAvailable())t.width||e.y>t.height||n.x>this.width||n.y>this.height?0:this.image.threshold(t.image,e.__toLimeRectangle(),n.__toLimeVector2(),i,r,a,s,o,1)},unlock:function(t){},__applyAlpha:function(t){_().default.convertToCanvas(this.image),_().default.createImageData(this.image);for(var e=this.image.buffer.data,n=0,i=m().default.get_length(t);nthis.l){var e=this.l;this.l=this.__length;var n=a().default.alloc(e);n.blit(0,this,0,e),this.__setData(n),this.l=e}var i;switch(t){case"deflate":i=s().default.compress(this);break;case"lzma":i=o().default.compress(this);break;default:i=l().default.compress(this)}null!=i&&(this.__setData(i),this.l=this.__length,this.position=this.l)},deflate:function(){this.compress("deflate")},inflate:function(){this.uncompress("deflate")},readBoolean:function(){if(this.positionthis.l)throw new(u().default)(new(_().default));t.get_length()this.l)throw new(u().default)(new(_().default));return this.position+=t,this.getString(this.position-t,t)},uncompress:function(t){if(null==t&&(t="zlib"),this.__length>this.l){var e=this.l;this.l=this.__length;var n=a().default.alloc(e);n.blit(0,this,0,e),this.__setData(n),this.l=e}var i;switch(t){case"deflate":i=s().default.decompress(this);break;case"lzma":i=o().default.decompress(this);break;default:i=l().default.decompress(this)}null!=i&&(this.__setData(i),this.l=this.__length),this.position=0},writeBoolean:function(t){this.writeByte(t?1:0)},writeByte:function(t){this.__resize(this.position+1),this.set(this.position++,255&t)},writeBytes:function(t,e,n){null==n&&(n=0),null==e&&(e=0),0!=d().default.get_length(t)&&(0==n&&(n=d().default.get_length(t)-e),this.__resize(this.position+n),this.blit(this.position,t,e,n),this.position=this.position+n)},writeDouble:function(t){var e=f().default.doubleToI64(t);"littleEndian"==this.get_endian()?(this.writeInt(e.low),this.writeInt(e.high)):(this.writeInt(e.high),this.writeInt(e.low))},writeFloat:function(t){if("littleEndian"==this.get_endian())this.__resize(this.position+4),this.setFloat(this.position,t),this.position+=4;else{var e=f().default.floatToI32(t);this.writeInt(e)}},writeInt:function(t){this.__resize(this.position+4),"littleEndian"==this.get_endian()?(this.set(this.position++,255&t),this.set(this.position++,t>>8&255),this.set(this.position++,t>>16&255),this.set(this.position++,t>>24&255)):(this.set(this.position++,t>>24&255),this.set(this.position++,t>>16&255),this.set(this.position++,t>>8&255),this.set(this.position++,255&t))},writeMultiByte:function(t,e){this.writeUTFBytes(t)},writeShort:function(t){this.__resize(this.position+2),"littleEndian"==this.get_endian()?(this.set(this.position++,t),this.set(this.position++,t>>8)):(this.set(this.position++,t>>8),this.set(this.position++,t))},writeUnsignedInt:function(t){this.writeInt(t)},writeUTF:function(t){var e=a().default.ofString(t);this.writeShort(e.l),this.writeBytes(d().default.fromBytes(e))},writeUTFBytes:function(t){a().default.ofString(t);this.writeBytes(d().default.fromBytes(a().default.ofString(t)))},__fromBytes:function(t){this.__setData(t),this.l=t.l},__resize:function(t){if(t>this.__length){var e=a().default.alloc(3*(t+1)>>1);if(this.__length>0){var n=this.l;this.l=this.__length,e.blit(0,this,0,this.__length),this.l=n}this.__setData(e)}this.l0&&(this.__resize(t),t-1?l.background=a().default.parseInt(g):l.background=a().default.parseInt("0x"+g)}}}s().default.field(d.windows[0],"rootPath")&&(d.rootPath=s().default.field(d.windows[0],"rootPath"),s().default.deleteField(d.windows[0],"rootPath")),d.windows[0].element=_,d.windows[0].width=i,d.windows[0].height=o,u.__applicationEntryPoint.get(t)(d)}},u.exit=function(t){},u.getDisplay=function(t){if(0==t){var e=new(n(255).default);return e.id=0,e.name="Generic Display",e.dpi=96*r().default.get_window().devicePixelRatio,e.currentMode=new(n(256).default)(r().default.get_window().screen.width,r().default.get_window().screen.height,60,1),e.supportedModes=[e.currentMode],e.bounds=new(n(41).default)(0,0,e.currentMode.width,e.currentMode.height),e}return null},u.getTimer=function(){return a().default.int(r().default.get_window().performance.now())},u.load=function(t,e,i,r){return null==r&&(r=!1),null==i&&(i=0),n(257).default.load(t,e,i,r)},u.openFile=function(t){null!=t&&r().default.get_window().open(t,"_blank")},u.openURL=function(t,e){null==e&&(e="_blank"),null!=t&&r().default.get_window().open(t,e)},u.__copyMissingFields=function(t,e){if(null!=e&&null!=t)for(var n=0,i=s().default.fields(e);n0&&o>0){var d=this.type;switch(s().default.enumIndex(d)){case 0:this.buffer=new(u().default)(null,i,o),a().default.createCanvas(this,i,o),null!=_&&0!=_&&this.fillRect(new(l().default)(0,0,i,o),_);break;case 1:var h,c=i*o*4;h=null!=c?new Uint8Array(c):null,this.buffer=new(u().default)(h,i,o),null!=_&&0!=_&&this.fillRect(new(l().default)(0,0,i,o),_)}}}else this.__fromImageBuffer(t)};d.__name__=["lime","graphics","Image"],(d.prototype={clone:function(){if(null!=this.buffer){this.type==r().default.CANVAS?a().default.convertToCanvas(this):a().default.convertToData(this);var t=new d(this.buffer.clone(),this.offsetX,this.offsetY,this.width,this.height,null,this.type);return t.version=this.version,t}return new d(null,this.offsetX,this.offsetY,this.width,this.height,null,this.type)},colorTransform:function(t,e){if(t=this.__clipRect(t),null!=this.buffer&&null!=t){var i=this.type;switch(s().default.enumIndex(i)){case 0:a().default.colorTransform(this,t,e);break;case 1:a().default.convertToData(this),o().default.colorTransform(this,t,e);break;case 2:t.offset(this.offsetX,this.offsetY),this.buffer.__srcBitmapData.colorTransform(t.__toFlashRectangle(),n(150).default.__toFlashColorTransform(e))}}},copyChannel:function(t,e,i,r,l){if(e=this.__clipRect(e),null!=this.buffer&&null!=e&&(l!=n(111).default.ALPHA||this.get_transparent())&&!(e.width<=0||e.height<=0)){e.x+e.width>t.width&&(e.width=t.width-e.x),e.y+e.height>t.height&&(e.height=t.height-e.y);var u=this.type;switch(s().default.enumIndex(u)){case 0:a().default.copyChannel(this,t,e,i,r,l);break;case 1:a().default.convertToData(this),a().default.convertToData(t),o().default.copyChannel(this,t,e,i,r,l);break;case 2:var _,f;switch(s().default.enumIndex(r)){case 0:_=1;break;case 1:_=2;break;case 2:_=4;break;case 3:_=8}switch(s().default.enumIndex(l)){case 0:f=1;break;case 1:f=2;break;case 2:f=4;break;case 3:f=8}e.offset(t.offsetX,t.offsetY),i.offset(this.offsetX,this.offsetY),this.buffer.__srcBitmapData.copyChannel(t.buffer.get_src(),e.__toFlashRectangle(),i.__toFlashPoint(),_,f)}}},copyPixels:function(t,e,n,i,l,u){if(null==u&&(u=!1),null!=this.buffer&&null!=t&&!(e.width<=0||e.height<=0||this.width<=0||this.height<=0)){e.x+e.width>t.width&&(e.width=t.width-e.x),e.y+e.height>t.height&&(e.height=t.height-e.y),e.x<0&&(e.width+=e.x,e.x=0),e.y<0&&(e.height+=e.y,e.y=0),n.x+e.width>this.width&&(e.width=this.width-n.x),n.y+e.height>this.height&&(e.height=this.height-n.y),n.x<0&&(e.width+=n.x,e.x-=n.x,n.x=0),n.y<0&&(e.height+=n.y,e.y-=n.y,n.y=0),t==this&&n.x>>24)<<16|(255&e>>>16)<<8|255&e>>>8}else switch(n){case 1:r=e;break;case 2:r=(255&e)<<24|(255&e>>>8)<<16|(255&e>>>16)<<8|255&e>>>24;break;default:r=(255&e)<<24|(255&e>>>24)<<16|(255&e>>>16)<<8|255&e>>>8}this.buffer.__srcBitmapData.fillRect(t.__toFlashRectangle(),r)}}},floodFill:function(t,e,n,i){if(null!=this.buffer){var r=this.type;switch(s().default.enumIndex(r)){case 0:a().default.floodFill(this,t,e,n,i);break;case 1:a().default.convertToData(this),o().default.floodFill(this,t,e,n,i);break;case 2:var l;if(null==i){l=(255&n)<<24|(255&n>>>24)<<16|(255&n>>>16)<<8|255&n>>>8}else switch(i){case 1:l=n;break;case 2:l=(255&n)<<24|(255&n>>>8)<<16|(255&n>>>16)<<8|255&n>>>24;break;default:l=(255&n)<<24|(255&n>>>24)<<16|(255&n>>>16)<<8|255&n>>>8}this.buffer.__srcBitmapData.floodFill(t+this.offsetX,e+this.offsetY,l)}}},getColorBoundsRect:function(t,e,n,i){if(null==n&&(n=!0),null==this.buffer)return null;var r=this.type;switch(s().default.enumIndex(r)){case 0:return a().default.convertToData(this),o().default.getColorBoundsRect(this,t,e,n,i);case 1:return o().default.getColorBoundsRect(this,t,e,n,i);case 2:var u=this.buffer.__srcBitmapData.getColorBoundsRect(t,e,n);return new(l().default)(u.x,u.y,u.width,u.height);default:return null}},getPixel:function(t,e,n){if(null==this.buffer||t<0||e<0||t>=this.width||e>=this.height)return 0;var i=this.type;switch(s().default.enumIndex(i)){case 0:return a().default.getPixel(this,t,e,n);case 1:return a().default.convertToData(this),o().default.getPixel(this,t,e,n);case 2:var r=this.buffer.__srcBitmapData.getPixel(t+this.offsetX,e+this.offsetY);if(null==n){return(255&r>>>16)<<24|(255&r>>>8)<<16|(255&r)<<8|255&r>>>24}switch(n){case 1:return r;case 2:return(255&r)<<24|(255&r>>>8)<<16|(255&r>>>16)<<8|255&r>>>24;default:return(255&r>>>16)<<24|(255&r>>>8)<<16|(255&r)<<8|255&r>>>24}break;default:return 0}},getPixel32:function(t,e,n){if(null==this.buffer||t<0||e<0||t>=this.width||e>=this.height)return 0;var i=this.type;switch(s().default.enumIndex(i)){case 0:return a().default.getPixel32(this,t,e,n);case 1:return a().default.convertToData(this),o().default.getPixel32(this,t,e,n);case 2:var r=this.buffer.__srcBitmapData.getPixel32(t+this.offsetX,e+this.offsetY);if(null==n){return(255&r>>>16)<<24|(255&r>>>8)<<16|(255&r)<<8|255&r>>>24}switch(n){case 1:return r;case 2:return(255&r)<<24|(255&r>>>8)<<16|(255&r>>>16)<<8|255&r>>>24;default:return(255&r>>>16)<<24|(255&r>>>8)<<16|(255&r)<<8|255&r>>>24}break;default:return 0}},getPixels:function(t,e){if(null==this.buffer)return null;var n=this.type;switch(s().default.enumIndex(n)){case 0:return a().default.getPixels(this,t,e);case 1:return a().default.convertToData(this),o().default.getPixels(this,t,e);case 2:default:return null}},merge:function(t,e,n,i,r,l,u){if(null!=this.buffer&&null!=t){var _=this.type;switch(s().default.enumIndex(_)){case 0:a().default.convertToCanvas(this),a().default.merge(this,t,e,n,i,r,l,u);break;case 1:a().default.convertToData(this),a().default.convertToData(t),o().default.merge(this,t,e,n,i,r,l,u);break;case 2:e.offset(this.offsetX,this.offsetY),this.buffer.__srcBitmapData.merge(t.buffer.__srcBitmapData,e.__toFlashRectangle(),n.__toFlashPoint(),i,r,l,u);break;default:return}}},resize:function(t,e){var n=this.type;switch(s().default.enumIndex(n)){case 0:a().default.resize(this,t,e);break;case 1:o().default.resize(this,t,e)}this.buffer.width=t,this.buffer.height=e,this.offsetX=0,this.offsetY=0,this.width=t,this.height=e},scroll:function(t,e){if(null!=this.buffer){var i=this.type;switch(s().default.enumIndex(i)){case 0:a().default.scroll(this,t,e);break;case 1:this.copyPixels(this,this.get_rect(),new(n(42).default)(t,e));break;case 2:this.buffer.__srcBitmapData.scroll(t+this.offsetX,e+this.offsetX)}}},setPixel:function(t,e,n,i){if(!(null==this.buffer||t<0||e<0||t>=this.width||e>=this.height)){var r=this.type;switch(s().default.enumIndex(r)){case 0:a().default.setPixel(this,t,e,n,i);break;case 1:a().default.convertToData(this),o().default.setPixel(this,t,e,n,i);break;case 2:var l;if(null==i){l=(255&n)<<24|(255&n>>>24)<<16|(255&n>>>16)<<8|255&n>>>8}else switch(i){case 1:l=n;break;case 2:l=(255&n)<<24|(255&n>>>8)<<16|(255&n>>>16)<<8|255&n>>>24;break;default:l=(255&n)<<24|(255&n>>>24)<<16|(255&n>>>16)<<8|255&n>>>8}this.buffer.__srcBitmapData.setPixel(t+this.offsetX,e+this.offsetX,l)}}},setPixel32:function(t,e,n,i){if(!(null==this.buffer||t<0||e<0||t>=this.width||e>=this.height)){var r=this.type;switch(s().default.enumIndex(r)){case 0:a().default.setPixel32(this,t,e,n,i);break;case 1:a().default.convertToData(this),o().default.setPixel32(this,t,e,n,i);break;case 2:var l;if(null==i){l=(255&n)<<24|(255&n>>>24)<<16|(255&n>>>16)<<8|255&n>>>8}else switch(i){case 1:l=n;break;case 2:l=(255&n)<<24|(255&n>>>8)<<16|(255&n>>>16)<<8|255&n>>>24;break;default:l=(255&n)<<24|(255&n>>>24)<<16|(255&n>>>16)<<8|255&n>>>8}this.buffer.__srcBitmapData.setPixel32(t+this.offsetX,e+this.offsetY,l)}}},setPixels:function(t,e,i,r){if(t=this.__clipRect(t),null!=this.buffer&&null!=t){null==r&&(r=n(64).default.BIG_ENDIAN);var l=this.type;switch(s().default.enumIndex(l)){case 0:a().default.setPixels(this,t,e,i,r);break;case 1:a().default.convertToData(this),o().default.setPixels(this,t,e,i,r)}}},threshold:function(t,e,n,i,r,l,u,_,f){if(null==_&&(_=!1),null==u&&(u=-1),null==l&&(l=0),null==this.buffer||null==t||null==e)return 0;var d=this.type;switch(s().default.enumIndex(d)){case 0:case 1:return a().default.convertToData(this),a().default.convertToData(t),o().default.threshold(this,t,e,n,i,r,l,u,_,f);case 2:var h,c;if(null==f){h=(255&l)<<24|(255&l>>>24)<<16|(255&l>>>16)<<8|255&l>>>8}else switch(f){case 1:h=l;break;case 2:h=(255&l)<<24|(255&l>>>8)<<16|(255&l>>>16)<<8|255&l>>>24;break;default:h=(255&l)<<24|(255&l>>>24)<<16|(255&l>>>16)<<8|255&l>>>8}if(null==f){c=(255&u)<<24|(255&u>>>24)<<16|(255&u>>>16)<<8|255&u>>>8}else switch(f){case 1:c=u;break;case 2:c=(255&u)<<24|(255&u>>>8)<<16|(255&u>>>16)<<8|255&u>>>24;break;default:c=(255&u)<<24|(255&u>>>24)<<16|(255&u>>>16)<<8|255&u>>>8}return e.offset(t.offsetX,t.offsetY),n.offset(this.offsetX,this.offsetY),this.buffer.__srcBitmapData.threshold(t.buffer.get_src(),e.__toFlashRectangle(),n.__toFlashPoint(),i,r,h,c,_)}return 0},__clipRect:function(t){return null==t?null:t.x<0&&(t.width-=-t.x,t.x=0,t.x+t.width<=0)?null:t.y<0&&(t.height-=-t.y,t.y=0,t.y+t.height<=0)?null:t.x+t.width>=this.width&&(t.width-=t.x+t.width-this.width,t.width<=0)?null:t.y+t.height>=this.height&&(t.height-=t.y+t.height-this.height,t.height<=0)?null:t},__fromBase64:function(t,e,n){var i=this,r=new d;r.addEventListener("load",function(t){i.buffer=new(u().default)(null,r.width,r.height),i.buffer.__srcImage=r,i.offsetX=0,i.offsetY=0,i.width=i.buffer.width,i.height=i.buffer.height,null!=n&&n(i)},!1),r.src="data:"+e+";base64,"+t},__fromBytes:function(t,e){var n="";if(d.__isPNG(t))n="image/png";else if(d.__isJPG(t))n="image/jpeg";else{if(!d.__isGIF(t))return;n="image/gif"}this.__fromBase64(d.__base64Encode(t),n,e)},__fromFile:function(t,e,n){var i=this,r=new d;_().default.__isSameOrigin(t)||(r.crossOrigin="Anonymous"),r.onload=function(t){i.buffer=new(u().default)(null,r.width,r.height),i.buffer.__srcImage=r,i.width=r.width,i.height=r.height,null!=e&&e(i)},r.onerror=function(t){null!=n&&n()},r.src=t;r.complete},__fromImageBuffer:function(t){this.buffer=t,null!=t&&(-1==this.width&&(this.width=t.width),-1==this.height&&(this.height=t.height))},get_data:function(){return null==this.buffer.data&&this.buffer.width>0&&this.buffer.height>0&&a().default.convertToData(this),this.buffer.data},set_data:function(t){return this.buffer.data=t},get_format:function(){return this.buffer.format},set_format:function(t){if(this.buffer.format!=t){var e=this.type;1==s().default.enumIndex(e)&&o().default.setFormat(this,t)}return this.buffer.format=t},get_powerOfTwo:function(){return 0!=this.buffer.width&&(this.buffer.width&1+~this.buffer.width)==this.buffer.width&&(0!=this.buffer.height&&(this.buffer.height&1+~this.buffer.height)==this.buffer.height)},set_powerOfTwo:function(t){if(t!=this.get_powerOfTwo()){for(var e=1,n=1;e "),t.add(r().default.string(this.get(a))),e.hasNext()&&t.add(", ")}return t.add("}"),t.toString()}}).__class__=i["haxe.ds.ObjectMap"]=a,a.assignId=function(t){return t.__id__=++a.count},a.getId=function(t){return t.__id__},a.count=0,e.default=a}).call(e,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(1).default;n(2).default;function r(){return n(159)}function a(){return n(28)}function s(){return n(29)}function o(){return n(11)}function l(){return n(116)}function u(){return n(10)}function _(){return n(117)}function f(){return n(21)}function d(){return n(12)}function h(){return n(4)}var c=function(){};c.__name__=["openfl","_internal","renderer","canvas","CanvasGraphics"],(c.prototype={}).__class__=i["openfl._internal.renderer.canvas.CanvasGraphics"]=c,o().default.get_supported()&&(c.hitTestCanvas=o().default.get_document().createElement("canvas"),c.hitTestContext=c.hitTestCanvas.getContext("2d")),c.closePath=function(t){null==t&&(t=!1),null!=c.context.strokeStyle&&(t||c.context.closePath(),c.context.stroke(),t&&c.context.closePath(),c.context.beginPath())},c.createBitmapFill=function(t,e,i){return n(32).default.convertToCanvas(t.image),c.setSmoothing(i),c.context.createPattern(t.image.get_src(),e?"repeat":"no-repeat")},c.createGradientPattern=function(t,e,n,i,r,o,l,u){var _,f,d,h,p,g,m=null,v=null,w=null,y=!1;switch(null==r&&(r=a().default.__pool.get(),y=!0),t){case"linear":(v=s().default.__pool.get()).setTo(-819.2,0),r.__transformPoint(v),(w=s().default.__pool.get()).setTo(819.2,0),r.__transformPoint(w),m=c.context.createLinearGradient(v.x,v.y,w.x,w.y);break;case"radial":(v=s().default.__pool.get()).setTo(1638.4,0),r.__transformPoint(v),m=c.context.createRadialGradient(r.tx,r.ty,0,r.tx,r.ty,Math.abs((v.x-r.tx)/2))}for(var b=0,x=e.length;b>>16,h=(65280&_)>>>8,p=255&_,(g=i[E]/255)<0&&(g=0),g>1&&(g=1),m.addColorStop(g,"rgba("+d+", "+h+", "+p+", "+f+")")}return null!=v&&s().default.__pool.release(v),null!=w&&s().default.__pool.release(w),y&&a().default.__pool.release(r),m},c.createTempPatternCanvas=function(t,e,n,i){var r=o().default.get_document().createElement("canvas"),a=r.getContext("2d");r.width=n,r.height=i;var s=t.image.get_src();return a.fillStyle=a.createPattern(s,e?"repeat":"no-repeat"),a.beginPath(),a.moveTo(0,0),a.lineTo(0,i),a.lineTo(n,i),a.lineTo(n,0),a.lineTo(0,0),a.closePath(),c.hitTesting||a.fill(c.windingRule),r},c.drawRoundRect=function(t,e,n,i,r,a){null==a&&(a=r),a*=.5,(r*=.5)>n/2&&(r=n/2),a>i/2&&(a=i/2);var s=t+n,o=e+i,l=r*c.SIN45-r,u=r*c.TAN22-r,_=a*c.SIN45-a,f=a*c.TAN22-a;c.context.moveTo(s,o-a),c.context.quadraticCurveTo(s,o+f,s+l,o+_),c.context.quadraticCurveTo(s+u,o,s-r,o),c.context.lineTo(t+r,o),c.context.quadraticCurveTo(t-u,o,t-l,o+_),c.context.quadraticCurveTo(t,o+f,t,o-a),c.context.lineTo(t,e+a),c.context.quadraticCurveTo(t,e-f,t-l,e-_),c.context.quadraticCurveTo(t-u,e,t+r,e),c.context.lineTo(s-r,e),c.context.quadraticCurveTo(s+u,e,s+l,e-_),c.context.quadraticCurveTo(s,e-f,s,e+a),c.context.lineTo(s,o-a)},c.endFill=function(){c.context.beginPath(),c.playCommands(c.fillCommands,!1),c.fillCommands.clear()},c.endStroke=function(){c.context.beginPath(),c.playCommands(c.strokeCommands,!0),c.context.closePath(),c.strokeCommands.clear()},c.hitTest=function(t,e,n){if(c.bounds=t.__bounds,c.graphics=t,0==t.__commands.get_length()||null==c.bounds||c.bounds.width<=0||c.bounds.height<=0)return!1;c.hitTesting=!0;var i=t.__renderTransform,r=i.__transformX(e,n),a=i.__transformY(e,n);e=r,n=a,e-=i.__transformX(c.bounds.x,c.bounds.y),n-=i.__transformY(c.bounds.x,c.bounds.y);var s=t.__canvas,o=t.__context;t.__canvas=c.hitTestCanvas,t.__context=c.hitTestContext,(c.context=t.__context).setTransform(i.a,i.b,i.c,i.d,i.tx,i.ty),c.fillCommands.clear(),c.strokeCommands.clear(),c.hasFill=!1,c.hasStroke=!1,c.bitmapFill=null,c.bitmapRepeat=!1,c.windingRule="evenodd";for(var f=new(l().default)(t.__commands),d=0,h=t.__commands.types;d0&&c.endFill(),c.hasFill&&c.context.isPointInPath(e,n,c.windingRule)&&(D=!0),c.strokeCommands.get_length()>0&&c.endStroke(),c.hasStroke&&c.context.isPointInStroke(e,n)&&(D=!0),f.destroy(),t.__canvas=s,t.__context=o,D},c.isCCW=function(t,e,n,i,r,a){return(n-t)*(a-e)-(i-e)*(r-t)<0},c.normalizeUVT=function(t,e){null==e&&(e=!1);for(var n=-1/0,i=-1/0,r=t.get_length(),a=1,s=r+1;a>>16)+", "+((65280&V.int(0))>>>8)+", "+(255&V.int(0))+", "+V.float(0);c.context.fillStyle=W+")"}c.bitmapFill=null,c.setSmoothing(!0),c.hasFill=!0}break;case 2:var H=O.readBeginGradientFill(),z=H.obj(0),Y=H.iArr(0),q=H.fArr(0),K=H.iArr(1),Z=H.obj(1),Q=H.obj(2),J=H.obj(3);c.context.fillStyle=c.createGradientPattern(z,Y,q,K,Z,Q,J,H.float(0)),c.bitmapFill=null,c.setSmoothing(!0),c.hasFill=!0;break;case 3:var $=O.readCubicCurveTo();c.context.bezierCurveTo($.float(0)-n,$.float(1)-i,$.float(2)-n,$.float(3)-i,$.float(4)-n,$.float(5)-i);break;case 4:var tt=O.readCurveTo();c.context.quadraticCurveTo(tt.float(0)-n,tt.float(1)-i,tt.float(2)-n,tt.float(3)-i);break;case 5:var et=O.readDrawCircle();c.context.moveTo(et.float(0)-n+et.float(2),et.float(1)-i),c.context.arc(et.float(0)-n,et.float(1)-i,et.float(2),0,2*Math.PI,!0);break;case 6:var nt=O.readDrawEllipse();m=nt.float(0),v=nt.float(1),b=(w=nt.float(2))/2*.5522848,x=(y=nt.float(3))/2*.5522848,E=(m-=n)+w,T=(v-=i)+y,A=m+w/2,R=v+y/2,c.context.moveTo(m,R),c.context.bezierCurveTo(m,R-x,A-b,v,A,v),c.context.bezierCurveTo(A+b,v,E,R-x,E,R),c.context.bezierCurveTo(E,R+x,A+b,T,A,T),c.context.bezierCurveTo(A-b,T,m,R+x,m,R);break;case 7:var it=O.readDrawRect();S=!1,null==c.bitmapFill||c.hitTesting||(I=0,D=0,C=0,L=0,M=!0,null!=c.pendingMatrix?0!=c.pendingMatrix.b||0!=c.pendingMatrix.c?M=!1:(null==P&&(P=s().default.__pool.get()),null==F&&(F=s().default.__pool.get()),P.setTo(it.float(0),it.float(1)),c.inversePendingMatrix.__transformPoint(P),F.setTo(it.float(0)+it.float(2),it.float(1)+it.float(3)),c.inversePendingMatrix.__transformPoint(F),I=P.y,L=P.x,C=F.y,D=F.x):(I=it.float(1),L=it.float(0),C=it.float(1)+it.float(3),D=it.float(0)+it.float(2)),M&&I>=0&&L>=0&&D<=c.bitmapFill.width&&C<=c.bitmapFill.height&&(S=!0,c.hitTesting||c.context.drawImage(c.bitmapFill.image.get_src(),L,I,D-L,C-I,it.float(0)-n,it.float(1)-i,it.float(2),it.float(3)))),S||c.context.rect(it.float(0)-n,it.float(1)-i,it.float(2),it.float(3));break;case 8:var rt=O.readDrawRoundRect();c.drawRoundRect(rt.float(0)-n,rt.float(1)-i,rt.float(2),rt.float(3),rt.float(4),rt.obj(0));break;case 10:var at=O.readDrawTriangles(),st=at.obj(0),ot=at.obj(1),lt=at.obj(2),ut=null,_t=null==c.bitmapFill;if(_t&&null!=lt)throw"__break__";if(!_t){if(null==lt){lt=f().default._new();for(var ft=0,dt=h().default.int(st.get_length()/2);ft1?c.createTempPatternCanvas(c.bitmapFill,c.bitmapRepeat,h().default.int(c.bounds.width),h().default.int(c.bounds.height)):c.createTempPatternCanvas(c.bitmapFill,c.bitmapRepeat,c.bitmapFill.width,c.bitmapFill.height)}for(var mt,vt,wt,yt,bt,xt,Et,Tt,At,Rt,St,Mt,It,Dt,Ct,Lt,Ot,Pt,Ft,Bt,Nt,kt,Ut,Gt,jt,Vt,Xt,Wt,Ht=0,zt=ot.get_length();Ht0?re.obj(0):1;c.context.lineWidth=ae;var se,oe=null==re.obj(3)?"round":h().default.string(re.obj(3)).toLowerCase();if(c.context.lineJoin=oe,null==re.obj(2))se="round";else se="none"==re.obj(2)?"butt":h().default.string(re.obj(2)).toLowerCase();if(c.context.lineCap=se,c.context.miterLimit=re.float(1),1==re.float(0)){var le=d().default.hex(16777215&re.int(0),6);c.context.strokeStyle="#"+le}else{var ue="rgba("+((16711680&re.int(0))>>>16)+", "+((65280&re.int(0))>>>8)+", "+(255&re.int(0))+", "+re.float(0);c.context.strokeStyle=ue+")"}c.setSmoothing(!0),c.hasStroke=!0}break;case 15:var _e=O.readLineTo();c.context.lineTo(_e.float(0)-n,_e.float(1)-i),r=_e.float(0),a=_e.float(1),r==_&&a==p&&(o=!0);break;case 16:var fe=O.readMoveTo();c.context.moveTo(fe.float(0)-n,fe.float(1)-i),r=fe.float(0),a=fe.float(1),g&&(o=!0),_=fe.float(0),p=fe.float(1),g=!0;break;case 18:c.windingRule="evenodd";break;case 19:c.windingRule="nonzero";break;default:O.skip(k)}}}catch(t){if("__break__"!=t)throw t}null!=P&&s().default.__pool.release(P),null!=F&&s().default.__pool.release(F),O.destroy(),e&&c.hasStroke&&(c.hasFill&&o?(c.context.lineTo(_-n,p-i),c.closePath(!1)):o&&r==_&&a==p&&c.closePath(!1),c.hitTesting||c.context.stroke()),e||(c.hasFill||null!=c.bitmapFill)&&(c.context.translate(-c.bounds.x,-c.bounds.y),null!=c.pendingMatrix?(c.context.transform(c.pendingMatrix.a,c.pendingMatrix.b,c.pendingMatrix.c,c.pendingMatrix.d,c.pendingMatrix.tx,c.pendingMatrix.ty),c.hitTesting||c.context.fill(c.windingRule),c.context.transform(c.inversePendingMatrix.a,c.inversePendingMatrix.b,c.inversePendingMatrix.c,c.inversePendingMatrix.d,c.inversePendingMatrix.tx,c.inversePendingMatrix.ty)):c.hitTesting||c.context.fill(c.windingRule),c.context.translate(c.bounds.x,c.bounds.y),c.context.closePath())},c.render=function(t,e,i){if(t.__update(),t.__dirty){c.hitTesting=!1,c.graphics=t,c.allowSmoothing=e.allowSmoothing,c.bounds=t.__bounds;var r=t.__width,a=t.__height;if(!t.__visible||0==t.__commands.get_length()||null==c.bounds||r<1||a<1)t.__canvas=null,t.__context=null,t.__bitmap=null;else{null==t.__canvas&&(t.__canvas=o().default.get_document().createElement("canvas"),t.__context=t.__canvas.getContext("2d")),c.context=t.__context;var s=t.__renderTransform,f=t.__canvas,d=n(68).default.scale,p=h().default.int(r*d),g=h().default.int(a*d);if(e.renderType==n(33).default.DOM){f.width==p&&f.height==g?c.context.clearRect(0,0,p,g):(f.width=p,f.height=g,f.style.width=r+"px",f.style.height=a+"px");var m=t.__renderTransform;c.context.setTransform(m.a*d,m.b*d,m.c*d,m.d*d,m.tx*d,m.ty*d)}else f.width==p&&f.height==g?(c.context.closePath(),c.context.resetTransform(),c.context.clearRect(0,0,p,g)):(f.width=r,f.height=a),c.context.setTransform(s.a,s.b,s.c,s.d,s.tx,s.ty);c.fillCommands.clear(),c.strokeCommands.clear(),c.hasFill=!1,c.hasStroke=!1,c.bitmapFill=null,c.bitmapRepeat=!1;var v=!1,w=0,y=0;c.windingRule="evenodd";for(var b=new(l().default)(t.__commands),x=0,E=t.__commands.types;x0&&c.endFill(),c.strokeCommands.get_length()>0&&c.endStroke(),b.destroy(),t.__bitmap=n(44).default.fromCanvas(t.__canvas)}t.set___dirty(!1)}},c.renderMask=function(t,e){if(0!=t.__commands.get_length()){c.context=e.context;for(var n,i,r,a,s,o,_,f,d,h,p=new(l().default)(t.__commands),g=0,m=t.__commands.types;g0){var i=this.clipRects[this.numClipRects-1];n.__contract(i.x,i.y,i.width,i.height)}n.height<0&&(n.height=0),n.width<0&&(n.width=0),this.scissorRect(n),this.numClipRects++},popMask:function(){0!=this.stencilReference&&(this.stencilReference>1?(this.gl.stencilOp(this.gl.KEEP,this.gl.KEEP,this.gl.DECR),this.gl.stencilFunc(this.gl.EQUAL,this.stencilReference,255),this.gl.colorMask(!1,!1,!1,!1),this.maskObjects.pop().__renderGLMask(this.renderSession),this.stencilReference--,this.gl.stencilOp(this.gl.KEEP,this.gl.KEEP,this.gl.KEEP),this.gl.stencilFunc(this.gl.EQUAL,this.stencilReference,255),this.gl.colorMask(!0,!0,!0,!0)):(this.stencilReference=0,this.gl.disable(this.gl.STENCIL_TEST)))},popObject:function(t,e){null==e&&(e=!0),null!=t.__mask&&this.popMask(),e&&null!=t.__scrollRect&&this.popRect()},popRect:function(){this.numClipRects>0&&(this.numClipRects--,this.numClipRects>0?this.scissorRect(this.clipRects[this.numClipRects-1]):this.scissorRect())},scissorRect:function(t){if(null!=t){var e=this.renderSession.renderer;this.gl.enable(this.gl.SCISSOR_TEST);var n=this.tempRect;t.__transform(n,e.displayMatrix);var i=Math.floor(n.x),r=Math.floor(e.height-n.y-n.height),a=Math.ceil(n.width),s=Math.ceil(n.height);a<0&&(a=0),s<0&&(s=0),this.gl.scissor(i,r,a,s)}else this.gl.disable(this.gl.SCISSOR_TEST)}})).__class__=i["openfl._internal.renderer.opengl.GLMaskManager"]=o,o.maskShader=new(n(301).default),e.default=o}).call(e,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(1).default,r=(n(2).default,n(3).default);function a(){return n(77)}var s=function(t,e,n,i,r){null==r&&(r=0),null==i&&(i=""),null==n&&(n=!1),null==e&&(e=!1),a().default.call(this,t,e,n,i),this.errorID=r};s.__name__=["openfl","events","ErrorEvent"],s.__super__=a().default,(s.prototype=r(a().default.prototype,{clone:function(){var t=new s(this.type,this.bubbles,this.cancelable,this.text,this.errorID);return t.target=this.target,t.currentTarget=this.currentTarget,t.eventPhase=this.eventPhase,t},toString:function(){return this.__formatToString("ErrorEvent",["type","bubbles","cancelable","text","errorID"])}})).__class__=i["openfl.events.ErrorEvent"]=s,s.ERROR="error",e.default=s}).call(e,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(1).default,r=(n(2).default,n(8).default);function a(){return n(18)}function s(){return n(338)}function o(){return n(6)}function l(){return n(23)}function u(){return n(24)}function _(){return n(63)}var f=function(){};f.__name__=["lime","utils","Assets"],(f.prototype={}).__class__=i["lime.utils.Assets"]=f,f.exists=function(t,e){null==e&&(e="BINARY");var n=new(s().default)(t);return null!=n.library&&n.exists(e)},f.getAsset=function(t,e,n){if(n&&f.cache.enabled)switch(e){case"BINARY":case"TEXT":n=!1;break;case"FONT":var i=f.cache.font.get(t);if(null!=i)return i;break;case"IMAGE":var r=f.cache.image.get(t);if(f.isValidImage(r))return r;break;case"MUSIC":case"SOUND":var a=f.cache.audio.get(t);if(f.isValidAudio(a))return a;break;case"TEMPLATE":throw new(o().default)("Not sure how to get template: "+t);default:return null}var u=new(s().default)(t);if(null!=u.library)if(u.exists(e)){if(u.isLocal(e)){var _=u.library.getAsset(u.symbolName,e);return n&&f.cache.enabled&&f.cache.set(t,e,_),_}l().default.error(e+' asset "'+t+'" exists, but only asynchronously',{fileName:"Assets.hx",lineNumber:160,className:"lime.utils.Assets",methodName:"getAsset"})}else l().default.error("There is no "+e+' asset with an ID of "'+t+'"',{fileName:"Assets.hx",lineNumber:166,className:"lime.utils.Assets",methodName:"getAsset"});else l().default.error(f.__libraryNotFound(u.libraryName),{fileName:"Assets.hx",lineNumber:172,className:"lime.utils.Assets",methodName:"getAsset"});return null},f.getAudioBuffer=function(t,e){return null==e&&(e=!0),f.getAsset(t,"SOUND",e)},f.getBytes=function(t){return f.getAsset(t,"BINARY",!1)},f.getFont=function(t,e){return null==e&&(e=!0),f.getAsset(t,"FONT",e)},f.getImage=function(t,e){return null==e&&(e=!0),f.getAsset(t,"IMAGE",e)},f.getLibrary=function(t){return null!=t&&""!=t||(t="default"),f.libraries.get(t)},f.getPath=function(t){var e=new(s().default)(t);if(null!=e.library){if(e.exists())return e.library.getPath(e.symbolName);l().default.error('There is no asset with an ID of "'+t+'"',{fileName:"Assets.hx",lineNumber:269,className:"lime.utils.Assets",methodName:"getPath"})}else l().default.error(f.__libraryNotFound(e.libraryName),{fileName:"Assets.hx",lineNumber:275,className:"lime.utils.Assets",methodName:"getPath"});return null},f.getText=function(t){return f.getAsset(t,"TEXT",!1)},f.hasLibrary=function(t){return null!=t&&""!=t||(t="default"),f.libraries.exists(t)},f.isLocal=function(t,e,n){if(null==n&&(n=!0),n&&f.cache.enabled&&f.cache.exists(t,e))return!0;var i=new(s().default)(t);return null!=i.library&&i.isLocal(e)},f.isValidAudio=function(t){return null!=t},f.isValidImage=function(t){return null!=t&&null!=t.buffer},f.list=function(t){for(var e=[],n=f.libraries.iterator();n.hasNext();){var i=n.next().list(t);null!=i&&(e=e.concat(i))}return e},f.loadAsset=function(t,e,n){if(n&&f.cache.enabled)switch(e){case"BINARY":case"TEXT":n=!1;break;case"FONT":var i=f.cache.font.get(t);if(null!=i)return u().default.withValue(i);break;case"IMAGE":var r=f.cache.image.get(t);if(f.isValidImage(r))return u().default.withValue(r);break;case"MUSIC":case"SOUND":var a=f.cache.audio.get(t);if(f.isValidAudio(a))return u().default.withValue(a);break;case"TEMPLATE":throw new(o().default)("Not sure how to get template: "+t);default:return null}var l=new(s().default)(t);if(null!=l.library){if(l.exists(e)){var _=l.library.loadAsset(l.symbolName,e);return n&&f.cache.enabled&&_.onComplete(function(n){f.cache.set(t,e,n)}),_}return u().default.withError("There is no "+e+' asset with an ID of "'+t+'"')}return u().default.withError(f.__libraryNotFound(l.libraryName))},f.loadAudioBuffer=function(t,e){return null==e&&(e=!0),f.loadAsset(t,"SOUND",e)},f.loadBytes=function(t){return f.loadAsset(t,"BINARY",!1)},f.loadFont=function(t,e){return null==e&&(e=!0),f.loadAsset(t,"FONT",e)},f.loadImage=function(t,e){return null==e&&(e=!0),f.loadAsset(t,"IMAGE",e)},f.loadLibrary=function(t){var e=new(n(39).default),i=f.getLibrary(t);if(null!=i)return i.load();var a=t,s=null;return f.libraryPaths.exists(t)?(a=f.libraryPaths.get(t),s=f.defaultRootPath):n(12).default.endsWith(a,".bundle")&&(a+="/library.json"),n(103).default.loadFromFile(a,s).onComplete(function(i){if(null!=i){var a=n(137).default.fromManifest(i);if(null==a)e.error('Cannot open library "'+t+'"');else{f.libraries.set(t,a),a.onChange.add(($_=f.onChange,r($_,$_.dispatch)));var s=a.load();e.completeWith(s)}}else e.error('Cannot parse asset manifest for library "'+t+'"')}).onError(function(n){e.error('There is no asset library with an ID of "'+t+'"')}),e.future},f.loadText=function(t){return f.loadAsset(t,"TEXT",!1)},f.registerLibrary=function(t,e){if(f.libraries.exists(t)){if(f.libraries.get(t)==e)return;f.unloadLibrary(t)}null!=e&&e.onChange.add(f.library_onChange),f.libraries.set(t,e)},f.unloadLibrary=function(t){var e=f.libraries.get(t);null!=e&&(f.cache.clear(t+":"),e.onChange.remove(f.library_onChange),e.unload()),f.libraries.remove(t)},f.__libraryNotFound=function(t){return null!=t&&""!=t||(t="default"),null==_().default.current||null==_().default.current.get_preloader()||_().default.current.get_preloader().complete?'There is no asset library named "'+t+'"':'There is no asset library named "'+t+'", or it is not yet preloaded'},f.library_onChange=function(){f.cache.clear(),f.onChange.dispatch()},f.cache=new(n(337).default),f.onChange=new(n(35).default),f.libraries=new(a().default),f.libraryPaths=new(a().default),e.default=f}).call(e,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(1).default,r=(n(2).default,n(3).default);function a(){return n(13)}function s(){return n(395)}var o=function(t,e){this.totalGPUMemory=0,this.profile="baseline",this.driverInfo="OpenGL (Direct blitting)",this.backBufferWidth=0,this.backBufferHeight=0,a().default.call(this),this.__stage3D=t,this.__renderSession=e,s().default.create(this)};o.__name__=["openfl","display3D","Context3D"],o.__super__=a().default,(o.prototype=r(a().default.prototype,{clear:function(t,e,n,i,r,a,o){null==o&&(o=7),null==a&&(a=0),null==r&&(r=1),null==i&&(i=1),null==n&&(n=0),null==e&&(e=0),null==t&&(t=0),s().default.clear(this,t,e,n,i,r,a,o)},configureBackBuffer:function(t,e,n,i,r,a){null==a&&(a=!1),null==r&&(r=!1),null==i&&(i=!0),s().default.configureBackBuffer(this,t,e,n,i,r,a)},createCubeTexture:function(t,e,i,r){return null==r&&(r=0),new(n(106).default)(this,t,e,i,r)},createIndexBuffer:function(t,e){return null==e&&(e="staticDraw"),new(n(216).default)(this,t,e)},createProgram:function(){return new(n(401).default)(this)},createRectangleTexture:function(t,e,i,r){return new(n(142).default)(this,t,e,i,r)},createTexture:function(t,e,i,r,a){return null==a&&(a=0),new(n(104).default)(this,t,e,i,r,a)},createVertexBuffer:function(t,e,i){return null==i&&(i="staticDraw"),new(n(219).default)(this,t,e,i)},createVideoTexture:function(){return new(n(411).default)(this)},dispose:function(t){null==t&&(t=!0),s().default.dispose(this,t)},drawToBitmapData:function(t){null!=t&&s().default.drawToBitmapData(this,t)},drawTriangles:function(t,e,n){null==n&&(n=-1),null==e&&(e=0),null!=this.__program&&s().default.drawTriangles(this,t,e,n)},present:function(){s().default.present(this)},setBlendFactors:function(t,e){s().default.setBlendFactors(this,t,e)},setColorMask:function(t,e,n,i){s().default.setColorMask(this,t,e,n,i)},setCulling:function(t){s().default.setCulling(this,t)},setDepthTest:function(t,e){s().default.setDepthTest(this,t,e)},setProgram:function(t){if(null==t)throw new(n(6).default)(new(n(38).default));s().default.setProgram(this,t)},setProgramConstantsFromByteArray:function(t,e,n,i,r){0!=n&&s().default.setProgramConstantsFromByteArray(this,t,e,n,i,r)},setProgramConstantsFromMatrix:function(t,e,n,i){null==i&&(i=!1),s().default.setProgramConstantsFromMatrix(this,t,e,n,i)},setProgramConstantsFromVector:function(t,e,n,i){null==i&&(i=-1),0!=i&&s().default.setProgramConstantsFromVector(this,t,e,n,i)},setRenderToBackBuffer:function(){s().default.setRenderToBackBuffer(this)},setRenderToTexture:function(t,e,n,i){null==i&&(i=0),null==n&&(n=0),null==e&&(e=!1),s().default.setRenderToTexture(this,t,e,n,i)},setSamplerStateAt:function(t,e,n,i){s().default.setSamplerStateAt(this,t,e,n,i)},setScissorRectangle:function(t){s().default.setScissorRectangle(this,t)},setStencilActions:function(t,e,n,i,r){null==r&&(r="keep"),null==i&&(i="keep"),null==n&&(n="keep"),null==e&&(e="always"),null==t&&(t="frontAndBack"),s().default.setStencilActions(this,t,e,n,i,r)},setStencilReferenceValue:function(t,e,n){null==n&&(n=255),null==e&&(e=255),s().default.setStencilReferenceValue(this,t,e,n)},setTextureAt:function(t,e){s().default.setTextureAt(this,t,e)},setVertexBufferAt:function(t,e,n,i){null==i&&(i="float4"),null==n&&(n=0),s().default.setVertexBufferAt(this,t,e,n,i)},__updateBackbufferViewport:function(){s().default.__updateBackbufferViewportTEMP(this)},__updateBlendFactors:function(){s().default.__updateBlendFactorsTEMP(this)},get_enableErrorChecking:function(){return this.__enableErrorChecking},set_enableErrorChecking:function(t){return s().default.setEnableErrorChecking(t),this.__enableErrorChecking=t}})).__class__=i["openfl.display3D.Context3D"]=o,o.supportsVideoTexture=!0,o.MAX_SAMPLERS=8,o.MAX_ATTRIBUTES=16,o.MAX_PROGRAM_REGISTERS=128,o.TEXTURE_MAX_ANISOTROPY_EXT=0,o.DEPTH_STENCIL=0,o.__stateCache=new(n(413).default),e.default=o}).call(e,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(1).default,r=(n(2).default,n(3).default);function a(){return n(241)}function s(){return n(5)}function o(){return n(7)}function l(){return n(277)}var u=function(){this.onUpdate=new(n(108).default),a().default.call(this),null==u.current&&(u.current=this),this.modules=[],this.windowByID=new(n(22).default),this.backend=new(l().default)(this),this.registerModule(this)};u.__name__=["lime","app","Application"],u.__super__=a().default,u.prototype=r(a().default.prototype,{addModule:function(t){if(t.registerModule(this),this.modules.push(t),this.__renderers.length>0)for(var e=0,n=this.__renderers;e0)for(var r=0,a=this.__windows;r>>24&255)*s().default.unmult)])<<24|(255&s().default.__clamp[Math.round((u>>>16&255)*s().default.unmult)])<<16|(255&s().default.__clamp[Math.round((u>>>8&255)*s().default.unmult)])<<8|255&u),u=(255&c[u>>>24&255])<<24|(255&p[u>>>16&255])<<16|(255&g[u>>>8&255])<<8|255&h[255&u],f&&(0==(255&u)?0!=u&&(u=0):255!=(255&u)&&(s().default.a16=s().default.__alpha16[255&u],u=((u>>>24&255)*s().default.a16>>16&255)<<24|((u>>>16&255)*s().default.a16>>16&255)<<16|((u>>>8&255)*s().default.a16>>16&255)<<8|255&u)),_){case 0:i[l]=u>>>24&255,i[l+1]=u>>>16&255,i[l+2]=u>>>8&255,i[l+3]=255&u;break;case 1:i[l]=255&u,i[l+1]=u>>>24&255,i[l+2]=u>>>16&255,i[l+3]=u>>>8&255;break;case 2:i[l]=u>>>8&255,i[l+1]=u>>>16&255,i[l+2]=u>>>24&255,i[l+3]=255&u}}}t.dirty=!0,t.version++}},f.copyChannel=function(t,e,n,i,a,u){var _,f;switch(o().default.enumIndex(u)){case 0:_=0;break;case 1:_=1;break;case 2:_=2;break;case 3:_=3}switch(o().default.enumIndex(a)){case 0:f=0;break;case 1:f=1;break;case 2:f=2;break;case 3:f=3}var d=e.buffer.data,h=t.buffer.data;if(null!=d&&null!=h){for(var c,p,g,m,v=new(r().default)(e,n),w=new(r().default)(t,new(l().default)(i.x,i.y,v.width,v.height)),y=e.buffer.format,b=t.buffer.format,x=e.buffer.premultiplied,E=t.buffer.premultiplied,T=0,A=0,R=w.height;A>>24&255)*s().default.unmult)])<<24|(255&s().default.__clamp[Math.round((g>>>16&255)*s().default.unmult)])<<16|(255&s().default.__clamp[Math.round((g>>>8&255)*s().default.unmult)])<<8|255&g),b){case 0:m=(255&h[p])<<24|(255&h[p+1])<<16|(255&h[p+2])<<8|255&h[p+3];break;case 1:m=(255&h[p+1])<<24|(255&h[p+2])<<16|(255&h[p+3])<<8|255&h[p];break;case 2:m=(255&h[p+2])<<24|(255&h[p+1])<<16|(255&h[p])<<8|255&h[p+3]}switch(E&&0!=(255&m)&&255!=(255&m)&&(s().default.unmult=255/(255&m),m=(255&s().default.__clamp[Math.round((m>>>24&255)*s().default.unmult)])<<24|(255&s().default.__clamp[Math.round((m>>>16&255)*s().default.unmult)])<<16|(255&s().default.__clamp[Math.round((m>>>8&255)*s().default.unmult)])<<8|255&m),f){case 0:T=g>>>24&255;break;case 1:T=g>>>16&255;break;case 2:T=g>>>8&255;break;case 3:T=255&g}switch(_){case 0:m=(255&T)<<24|(255&m>>>16)<<16|(255&m>>>8)<<8|255&m;break;case 1:m=(255&m>>>24)<<24|(255&T)<<16|(255&m>>>8)<<8|255&m;break;case 2:m=(255&m>>>24)<<24|(255&m>>>16)<<16|(255&T)<<8|255&m;break;case 3:m=(255&m>>>24)<<24|(255&m>>>16)<<16|(255&m>>>8)<<8|255&T}switch(E&&(0==(255&m)?0!=m&&(m=0):255!=(255&m)&&(s().default.a16=s().default.__alpha16[255&m],m=((m>>>24&255)*s().default.a16>>16&255)<<24|((m>>>16&255)*s().default.a16>>16&255)<<16|((m>>>8&255)*s().default.a16>>16&255)<<8|255&m)),b){case 0:h[p]=m>>>24&255,h[p+1]=m>>>16&255,h[p+2]=m>>>8&255,h[p+3]=255&m;break;case 1:h[p]=255&m,h[p+1]=m>>>24&255,h[p+2]=m>>>16&255,h[p+3]=m>>>8&255;break;case 2:h[p]=m>>>8&255,h[p+1]=m>>>16&255,h[p+2]=m>>>24&255,h[p+3]=255&m}c+=4,p+=4}}t.dirty=!0,t.version++}},f.copyPixels=function(t,e,i,a,o,_,f){if(null==f&&(f=!1),t.width==e.width&&t.height==e.height&&i.width==e.width&&i.height==e.height&&0==i.x&&0==i.y&&0==a.x&&0==a.y&&null==o&&null==_&&0==f&&t.get_format()==e.get_format())t.buffer.data.set(e.buffer.data);else{var d=e.buffer.data,h=t.buffer.data;if(null==d||null==h)return;var c,p,g,m,v,w,y,b,x=new(r().default)(e,i),E=new(l().default)(a.x,a.y,x.width,x.height),T=new(r().default)(t,E),A=e.buffer.format,R=t.buffer.format,S=e.buffer.premultiplied,M=t.buffer.premultiplied,I=u().default.int(e.buffer.bitsPerPixel/8),D=u().default.int(t.buffer.bitsPerPixel/8),C=null!=o&&o.get_transparent(),L=f||C&&!t.get_transparent();if(C){null==_&&(_=new(n(42).default));var O,P,F=o.buffer.data,B=o.buffer.format,N=new(r().default)(o,new(l().default)(_.x,_.y,o.width,o.height));if(N.offset(x.x,x.y),T.clip(u().default.int(a.x),u().default.int(a.y),N.width,N.height),L)for(var k=0,U=T.height;k>>24&255)*s().default.unmult)])<<24|(255&s().default.__clamp[Math.round((y>>>16&255)*s().default.unmult)])<<16|(255&s().default.__clamp[Math.round((y>>>8&255)*s().default.unmult)])<<8|255&y),R){case 0:b=(255&h[p])<<24|(255&h[p+1])<<16|(255&h[p+2])<<8|255&h[p+3];break;case 1:b=(255&h[p+1])<<24|(255&h[p+2])<<16|(255&h[p+3])<<8|255&h[p];break;case 2:b=(255&h[p+2])<<24|(255&h[p+1])<<16|(255&h[p])<<8|255&h[p+3]}switch(M&&0!=(255&b)&&255!=(255&b)&&(s().default.unmult=255/(255&b),b=(255&s().default.__clamp[Math.round((b>>>24&255)*s().default.unmult)])<<24|(255&s().default.__clamp[Math.round((b>>>16&255)*s().default.unmult)])<<16|(255&s().default.__clamp[Math.round((b>>>8&255)*s().default.unmult)])<<8|255&b),B){case 0:P=(255&F[O])<<24|(255&F[O+1])<<16|(255&F[O+2])<<8|255&F[O+3];break;case 1:P=(255&F[O+1])<<24|(255&F[O+2])<<16|(255&F[O+3])<<8|255&F[O];break;case 2:P=(255&F[O+2])<<24|(255&F[O+1])<<16|(255&F[O])<<8|255&F[O+3]}if((g=(255&P)/255*((255&y)/255))>0)switch(w=g+(m=(255&b)/255)*(v=1-g),b=(255&(b=(255&(b=(255&(b=(255&s().default.__clamp[Math.round(((y>>>24&255)*g+(b>>>24&255)*m*v)/w)])<<24|(255&b>>>16)<<16|(255&b>>>8)<<8|255&b)>>>24)<<24|(255&s().default.__clamp[Math.round(((y>>>16&255)*g+(b>>>16&255)*m*v)/w)])<<16|(255&b>>>8)<<8|255&b)>>>24)<<24|(255&b>>>16)<<16|(255&s().default.__clamp[Math.round(((y>>>8&255)*g+(b>>>8&255)*m*v)/w)])<<8|255&b)>>>24)<<24|(255&b>>>16)<<16|(255&b>>>8)<<8|255&s().default.__clamp[Math.round(255*w)],M&&(0==(255&b)?0!=b&&(b=0):255!=(255&b)&&(s().default.a16=s().default.__alpha16[255&b],b=((b>>>24&255)*s().default.a16>>16&255)<<24|((b>>>16&255)*s().default.a16>>16&255)<<16|((b>>>8&255)*s().default.a16>>16&255)<<8|255&b)),R){case 0:h[p]=b>>>24&255,h[p+1]=b>>>16&255,h[p+2]=b>>>8&255,h[p+3]=255&b;break;case 1:h[p]=255&b,h[p+1]=b>>>24&255,h[p+2]=b>>>16&255,h[p+3]=b>>>8&255;break;case 2:h[p]=b>>>8&255,h[p+1]=b>>>16&255,h[p+2]=b>>>24&255,h[p+3]=255&b}c+=4,p+=4,O+=4}}else for(var X=0,W=T.height;X>>24&255)*s().default.unmult)])<<24|(255&s().default.__clamp[Math.round((y>>>16&255)*s().default.unmult)])<<16|(255&s().default.__clamp[Math.round((y>>>8&255)*s().default.unmult)])<<8|255&y),B){case 0:P=(255&F[O])<<24|(255&F[O+1])<<16|(255&F[O+2])<<8|255&F[O+3];break;case 1:P=(255&F[O+1])<<24|(255&F[O+2])<<16|(255&F[O+3])<<8|255&F[O];break;case 2:P=(255&F[O+2])<<24|(255&F[O+1])<<16|(255&F[O])<<8|255&F[O+3]}switch(y=(255&y>>>24)<<24|(255&y>>>16)<<16|(255&y>>>8)<<8|255&Math.round((255&P)/255*(255&y)),M&&(0==(255&y)?0!=y&&(y=0):255!=(255&y)&&(s().default.a16=s().default.__alpha16[255&y],y=((y>>>24&255)*s().default.a16>>16&255)<<24|((y>>>16&255)*s().default.a16>>16&255)<<16|((y>>>8&255)*s().default.a16>>16&255)<<8|255&y)),R){case 0:h[p]=y>>>24&255,h[p+1]=y>>>16&255,h[p+2]=y>>>8&255,h[p+3]=255&y;break;case 1:h[p]=255&y,h[p+1]=y>>>24&255,h[p+2]=y>>>16&255,h[p+3]=y>>>8&255;break;case 2:h[p]=y>>>8&255,h[p+1]=y>>>16&255,h[p+2]=y>>>24&255,h[p+3]=255&y}c+=4,p+=4,O+=4}}}else if(L)for(var q=0,K=T.height;q>>24&255)*s().default.unmult)])<<24|(255&s().default.__clamp[Math.round((y>>>16&255)*s().default.unmult)])<<16|(255&s().default.__clamp[Math.round((y>>>8&255)*s().default.unmult)])<<8|255&y),R){case 0:b=(255&h[p])<<24|(255&h[p+1])<<16|(255&h[p+2])<<8|255&h[p+3];break;case 1:b=(255&h[p+1])<<24|(255&h[p+2])<<16|(255&h[p+3])<<8|255&h[p];break;case 2:b=(255&h[p+2])<<24|(255&h[p+1])<<16|(255&h[p])<<8|255&h[p+3]}if(M&&0!=(255&b)&&255!=(255&b)&&(s().default.unmult=255/(255&b),b=(255&s().default.__clamp[Math.round((b>>>24&255)*s().default.unmult)])<<24|(255&s().default.__clamp[Math.round((b>>>16&255)*s().default.unmult)])<<16|(255&s().default.__clamp[Math.round((b>>>8&255)*s().default.unmult)])<<8|255&b),0==(w=(g=(255&y)/255)+(m=(255&b)/255)*(v=1-g)))b=0;else b=(255&(b=(255&(b=(255&(b=(255&s().default.__clamp[Math.round(((y>>>24&255)*g+(b>>>24&255)*m*v)/w)])<<24|(255&b>>>16)<<16|(255&b>>>8)<<8|255&b)>>>24)<<24|(255&s().default.__clamp[Math.round(((y>>>16&255)*g+(b>>>16&255)*m*v)/w)])<<16|(255&b>>>8)<<8|255&b)>>>24)<<24|(255&b>>>16)<<16|(255&s().default.__clamp[Math.round(((y>>>8&255)*g+(b>>>8&255)*m*v)/w)])<<8|255&b)>>>24)<<24|(255&b>>>16)<<16|(255&b>>>8)<<8|255&s().default.__clamp[Math.round(255*w)];switch(M&&(0==(255&b)?0!=b&&(b=0):255!=(255&b)&&(s().default.a16=s().default.__alpha16[255&b],b=((b>>>24&255)*s().default.a16>>16&255)<<24|((b>>>16&255)*s().default.a16>>16&255)<<16|((b>>>8&255)*s().default.a16>>16&255)<<8|255&b)),R){case 0:h[p]=b>>>24&255,h[p+1]=b>>>16&255,h[p+2]=b>>>8&255,h[p+3]=255&b;break;case 1:h[p]=255&b,h[p+1]=b>>>24&255,h[p+2]=b>>>16&255,h[p+3]=b>>>8&255;break;case 2:h[p]=b>>>8&255,h[p+1]=b>>>16&255,h[p+2]=b>>>24&255,h[p+3]=255&b}c+=4,p+=4}}else if(A==R&&S==M&&I==D)for(var $=0,tt=T.height;$>>24&255)*s().default.unmult)])<<24|(255&s().default.__clamp[Math.round((y>>>16&255)*s().default.unmult)])<<16|(255&s().default.__clamp[Math.round((y>>>8&255)*s().default.unmult)])<<8|255&y),M&&(0==(255&y)?0!=y&&(y=0):255!=(255&y)&&(s().default.a16=s().default.__alpha16[255&y],y=((y>>>24&255)*s().default.a16>>16&255)<<24|((y>>>16&255)*s().default.a16>>16&255)<<16|((y>>>8&255)*s().default.a16>>16&255)<<8|255&y)),R){case 0:h[p]=y>>>24&255,h[p+1]=y>>>16&255,h[p+2]=y>>>8&255,h[p+3]=255&y;break;case 1:h[p]=255&y,h[p+1]=y>>>24&255,h[p+2]=y>>>16&255,h[p+3]=y>>>8&255;break;case 2:h[p]=y>>>8&255,h[p+1]=y>>>16&255,h[p+2]=y>>>24&255,h[p+3]=255&y}c+=4,p+=4}}}t.dirty=!0,t.version++},f.fillRect=function(t,e,n,i){var a;switch(i){case 1:a=(255&n>>>16)<<24|(255&n>>>8)<<16|(255&n)<<8|255&n>>>24;break;case 2:a=(255&n>>>8)<<24|(255&n>>>16)<<16|(255&n>>>24)<<8|255&n;break;default:a=n}t.get_transparent()||(a=(255&a>>>24)<<24|(255&a>>>16)<<16|(255&a>>>8)<<8|255);var o=t.buffer.data;if(null!=o){var l=t.buffer.format;t.buffer.premultiplied&&(0==(255&a)?0!=a&&(a=0):255!=(255&a)&&(s().default.a16=s().default.__alpha16[255&a],a=((a>>>24&255)*s().default.a16>>16&255)<<24|((a>>>16&255)*s().default.a16>>16&255)<<16|((a>>>8&255)*s().default.a16>>16&255)<<8|255&a));for(var u,_=new(r().default)(t,e),f=0,d=_.height;f>>24&255,o[g+1]=a>>>16&255,o[g+2]=a>>>8&255,o[g+3]=255&a;break;case 1:o[g]=255&a,o[g+1]=a>>>24&255,o[g+2]=a>>>16&255,o[g+3]=a>>>8&255;break;case 2:o[g]=a>>>8&255,o[g+1]=a>>>16&255,o[g+2]=a>>>24&255,o[g+3]=255&a}}}t.dirty=!0,t.version++}},f.floodFill=function(t,e,n,i,r){var a=t.buffer.data;if(null!=a){1==r&&(i=(16777215&i)<<8|i>>24&255);var o,l=t.buffer.format,u=t.buffer.premultiplied,_=i,f=(n+t.offsetY)*(4*t.buffer.width)+4*(e+t.offsetX);switch(l){case 0:o=(255&a[f])<<24|(255&a[f+1])<<16|(255&a[f+2])<<8|255&a[f+3];break;case 1:o=(255&a[f+1])<<24|(255&a[f+2])<<16|(255&a[f+3])<<8|255&a[f];break;case 2:o=(255&a[f+2])<<24|(255&a[f+1])<<16|(255&a[f])<<8|255&a[f+3]}if(u&&0!=(255&o)&&255!=(255&o)&&(s().default.unmult=255/(255&o),o=(255&s().default.__clamp[Math.round((o>>>24&255)*s().default.unmult)])<<24|(255&s().default.__clamp[Math.round((o>>>16&255)*s().default.unmult)])<<16|(255&s().default.__clamp[Math.round((o>>>8&255)*s().default.unmult)])<<8|255&o),t.get_transparent()||(_=(255&_>>>24)<<24|(255&_>>>16)<<16|(255&_>>>8)<<8|255,o=(255&o>>>24)<<24|(255&o>>>16)<<16|(255&o>>>8)<<8|255),_!=o){u&&(0==(255&_)?0!=_&&(_=0):255!=(255&_)&&(s().default.a16=s().default.__alpha16[255&_],_=((_>>>24&255)*s().default.a16>>16&255)<<24|((_>>>16&255)*s().default.a16>>16&255)<<16|((_>>>8&255)*s().default.a16>>16&255)<<8|255&_));var d,h,c,p,g,m,v=[0,-1,1,0],w=[-1,0,0,1],y=-t.offsetX,b=-t.offsetY,x=y+t.width,E=b+t.height,T=[];for(T.push(e),T.push(n);T.length>0;){h=T.pop(),d=T.pop();for(var A=0;A<4;){var R=A++;if(p=h+w[R],!((c=d+v[R])=x||p>=E)){switch(g=4*(p*t.width+c),l){case 0:m=(255&a[g])<<24|(255&a[g+1])<<16|(255&a[g+2])<<8|255&a[g+3];break;case 1:m=(255&a[g+1])<<24|(255&a[g+2])<<16|(255&a[g+3])<<8|255&a[g];break;case 2:m=(255&a[g+2])<<24|(255&a[g+1])<<16|(255&a[g])<<8|255&a[g+3]}if(u&&0!=(255&m)&&255!=(255&m)&&(s().default.unmult=255/(255&m),m=(255&s().default.__clamp[Math.round((m>>>24&255)*s().default.unmult)])<<24|(255&s().default.__clamp[Math.round((m>>>16&255)*s().default.unmult)])<<16|(255&s().default.__clamp[Math.round((m>>>8&255)*s().default.unmult)])<<8|255&m),m==o){switch(l){case 0:a[g]=_>>>24&255,a[g+1]=_>>>16&255,a[g+2]=_>>>8&255,a[g+3]=255&_;break;case 1:a[g]=255&_,a[g+1]=_>>>24&255,a[g+2]=_>>>16&255,a[g+3]=_>>>8&255;break;case 2:a[g]=_>>>8&255,a[g+1]=_>>>16&255,a[g+2]=_>>>24&255,a[g+3]=255&_}T.push(c),T.push(p)}}}}t.dirty=!0,t.version++}}},f.gaussianBlur=function(t,e,n,i,r,a,s,o){var l;null==o&&(o=1),null==s&&(s=1),null==a&&(a=4),null==r&&(r=4),l=t.buffer.premultiplied||e.buffer.premultiplied?function(t,e){var n=u().default.int(t);return n<0?0:n>255?255:n}:function(t,e){var n=u().default.int(t/e*255);return n<0?0:n>255?255:n};var d=function(t,e){var n=Math.sqrt(12*t*t/e+1),i=Math.floor(n);i%2==0&&--i;for(var r=i+2,a=(12*t*t-e*i*i-4*e*i-3*e)/(-4*i-4),s=Math.round(a),o=[],l=0,u=e;l=0;){for(I=v-1;I>=0;)f.translatePixel(g,e.get_rect(),t.get_rect(),i,I,D,o,l),--I;--D}return t.dirty=!0,t.version++,e.dirty=!0,e.version++,g==t.get_data()?t:e},f.calculateSourceOffset=function(t,e,n,i){var r=n-u().default.int(e.x),a=i-u().default.int(e.y);return r<0||a<0||r>=t.width||a>=t.height?-1:4*(a*u().default.int(t.width)+r)},f.translatePixel=function(t,e,n,i,r,a,s,o){var l=4*(a*u().default.int(n.width)+r),d=f.calculateSourceOffset(e,i,r,a),h=d>=0?u().default.int(_().default.toFloat(t[d+3])*s):0;h=h<0?0:h>255?255:h,t[l]=d>=0?o(_().default.toFloat(t[d]),h):0,t[l+1]=d>=0?o(_().default.toFloat(t[d+1]),h):0,t[l+2]=d>=0?o(_().default.toFloat(t[d+2]),h):0,t[l+3]=h},f.getColorBoundsRect=function(t,e,n,i,r){var a,s,o,u,_=t.width+1,f=0,d=t.height+1,h=0;switch(r){case 1:a=(255&n>>>16)<<24|(255&n>>>8)<<16|(255&n)<<8|255&n>>>24;s=(255&e>>>16)<<24|(255&e>>>8)<<16|(255&e)<<8|255&e>>>24;break;case 2:a=(255&n>>>8)<<24|(255&n>>>16)<<16|(255&n>>>24)<<8|255&n;s=(255&e>>>8)<<24|(255&e>>>16)<<16|(255&e>>>24)<<8|255&e;break;default:a=n,s=e}t.get_transparent()||(a=(255&a>>>24)<<24|(255&a>>>16)<<16|(255&a>>>8)<<8|255,s=(255&s>>>24)<<24|(255&s>>>16)<<16|(255&s>>>8)<<8|255);for(var c,p=0,g=t.width;pf&&(f=c);break}}if(u)break}for(var S,M=0,I=t.height;Mh&&(h=S);break}}if(u)break}var G=f-_,j=h-d;return G>0&&++G,j>0&&++j,G<0&&(G=0),j<0&&(j=0),_==f&&(G=1),d==h&&(j=1),_>t.width&&(_=0),d>t.height&&(d=0),new(l().default)(_,d,G,j)},f.getPixel=function(t,e,n,i){var r,a=t.buffer.data,o=4*(n+t.offsetY)*t.buffer.width+4*(e+t.offsetX),l=t.buffer.premultiplied;switch(t.buffer.format){case 0:r=(255&a[o])<<24|(255&a[o+1])<<16|(255&a[o+2])<<8|255&a[o+3];break;case 1:r=(255&a[o+1])<<24|(255&a[o+2])<<16|(255&a[o+3])<<8|255&a[o];break;case 2:r=(255&a[o+2])<<24|(255&a[o+1])<<16|(255&a[o])<<8|255&a[o+3]}switch(l&&0!=(255&r)&&255!=(255&r)&&(s().default.unmult=255/(255&r),r=(255&s().default.__clamp[Math.round((r>>>24&255)*s().default.unmult)])<<24|(255&s().default.__clamp[Math.round((r>>>16&255)*s().default.unmult)])<<16|(255&s().default.__clamp[Math.round((r>>>8&255)*s().default.unmult)])<<8|255&r),r=(255&r>>>24)<<24|(255&r>>>16)<<16|(255&r>>>8)<<8|0,i){case 1:return(255&r)<<24|(255&r>>>24)<<16|(255&r>>>16)<<8|255&r>>>8;case 2:return(255&r>>>8)<<24|(255&r>>>16)<<16|(255&r>>>24)<<8|255&r;default:return r}},f.getPixel32=function(t,e,n,i){var r,a=t.buffer.data,o=4*(n+t.offsetY)*t.buffer.width+4*(e+t.offsetX),l=t.buffer.premultiplied;switch(t.buffer.format){case 0:r=(255&a[o])<<24|(255&a[o+1])<<16|(255&a[o+2])<<8|255&a[o+3];break;case 1:r=(255&a[o+1])<<24|(255&a[o+2])<<16|(255&a[o+3])<<8|255&a[o];break;case 2:r=(255&a[o+2])<<24|(255&a[o+1])<<16|(255&a[o])<<8|255&a[o+3]}switch(l&&0!=(255&r)&&255!=(255&r)&&(s().default.unmult=255/(255&r),r=(255&s().default.__clamp[Math.round((r>>>24&255)*s().default.unmult)])<<24|(255&s().default.__clamp[Math.round((r>>>16&255)*s().default.unmult)])<<16|(255&s().default.__clamp[Math.round((r>>>8&255)*s().default.unmult)])<<8|255&r),i){case 1:return(255&r)<<24|(255&r>>>24)<<16|(255&r>>>16)<<8|255&r>>>8;case 2:return(255&r>>>8)<<24|(255&r>>>16)<<16|(255&r>>>24)<<8|255&r;default:return r}},f.getPixels=function(t,e,i){if(null==t.buffer.data)return null;for(var a,o,l=u().default.int(e.width*e.height),_=n(16).default.alloc(4*l),f=t.buffer.data,d=t.buffer.format,h=t.buffer.premultiplied,c=new(r().default)(t,e),p=0,g=0,m=c.height;g>>24&255)*s().default.unmult)])<<24|(255&s().default.__clamp[Math.round((o>>>16&255)*s().default.unmult)])<<16|(255&s().default.__clamp[Math.round((o>>>8&255)*s().default.unmult)])<<8|255&o),i){case 1:o=(255&o)<<24|(255&o>>>24)<<16|(255&o>>>16)<<8|255&o>>>8;break;case 2:o=(255&o>>>8)<<24|(255&o>>>16)<<16|(255&o>>>24)<<8|255&o}_.set(p++,o>>>24&255),_.set(p++,o>>>16&255),_.set(p++,o>>>8&255),_.set(p++,255&o),a+=4}}return _},f.merge=function(t,e,n,i,a,o,_,f){if(null!=t.buffer.data&&null!=e.buffer.data){for(var d,h,c,p,g=new(r().default)(e,n),m=new(r().default)(t,new(l().default)(i.x,i.y,g.width,g.height)),v=e.buffer.data,w=t.buffer.data,y=e.buffer.format,b=t.buffer.format,x=e.buffer.premultiplied,E=t.buffer.premultiplied,T=0,A=m.height;T>>24&255)*s().default.unmult)])<<24|(255&s().default.__clamp[Math.round((c>>>16&255)*s().default.unmult)])<<16|(255&s().default.__clamp[Math.round((c>>>8&255)*s().default.unmult)])<<8|255&c),b){case 0:p=(255&w[h])<<24|(255&w[h+1])<<16|(255&w[h+2])<<8|255&w[h+3];break;case 1:p=(255&w[h+1])<<24|(255&w[h+2])<<16|(255&w[h+3])<<8|255&w[h];break;case 2:p=(255&w[h+2])<<24|(255&w[h+1])<<16|(255&w[h])<<8|255&w[h+3]}switch(E&&0!=(255&p)&&255!=(255&p)&&(s().default.unmult=255/(255&p),p=(255&s().default.__clamp[Math.round((p>>>24&255)*s().default.unmult)])<<24|(255&s().default.__clamp[Math.round((p>>>16&255)*s().default.unmult)])<<16|(255&s().default.__clamp[Math.round((p>>>8&255)*s().default.unmult)])<<8|255&p),p=(255&(p=(255&(p=(255&(p=(255&u().default.int(((c>>>24&255)*a+(p>>>24&255)*(256-a))/256))<<24|(255&p>>>16)<<16|(255&p>>>8)<<8|255&p)>>>24)<<24|(255&u().default.int(((c>>>16&255)*o+(p>>>16&255)*(256-o))/256))<<16|(255&p>>>8)<<8|255&p)>>>24)<<24|(255&p>>>16)<<16|(255&u().default.int(((c>>>8&255)*_+(p>>>8&255)*(256-_))/256))<<8|255&p)>>>24)<<24|(255&p>>>16)<<16|(255&p>>>8)<<8|255&u().default.int(((255&c)*f+(255&p)*(256-f))/256),E&&(0==(255&p)?0!=p&&(p=0):255!=(255&p)&&(s().default.a16=s().default.__alpha16[255&p],p=((p>>>24&255)*s().default.a16>>16&255)<<24|((p>>>16&255)*s().default.a16>>16&255)<<16|((p>>>8&255)*s().default.a16>>16&255)<<8|255&p)),b){case 0:w[h]=p>>>24&255,w[h+1]=p>>>16&255,w[h+2]=p>>>8&255,w[h+3]=255&p;break;case 1:w[h]=255&p,w[h+1]=p>>>24&255,w[h+2]=p>>>16&255,w[h+3]=p>>>8&255;break;case 2:w[h]=p>>>8&255,w[h+1]=p>>>16&255,w[h+2]=p>>>24&255,w[h+3]=255&p}d+=4,h+=4}}t.dirty=!0,t.version++}},f.multiplyAlpha=function(t){var e=t.buffer.data;if(null!=e&&t.buffer.transparent){for(var n,i=t.buffer.format,r=0,a=u().default.int(e.length/4);r>>24&255)*s().default.a16>>16&255)<<24|((n>>>16&255)*s().default.a16>>16&255)<<16|((n>>>8&255)*s().default.a16>>16&255)<<8|255&n),i){case 0:e[_]=n>>>24&255,e[_+1]=n>>>16&255,e[_+2]=n>>>8&255,e[_+3]=255&n;break;case 1:e[_]=255&n,e[_+1]=n>>>24&255,e[_+2]=n>>>16&255,e[_+3]=n>>>8&255;break;case 2:e[_]=n>>>8&255,e[_+1]=n>>>16&255,e[_+2]=n>>>24&255,e[_+3]=255&n}}t.buffer.premultiplied=!0,t.dirty=!0,t.version++}},f.resize=function(t,e,i){var r=t.buffer;if(r.width!=e||r.height!=i){var a,s=e*i*4;a=null!=s?new Uint8Array(s):null;for(var o,l,f,d,h,c,p,g,m,v,w,y,b,x=new(n(110).default)(a,e,i),E=t.width,T=t.height,A=t.get_data(),R=x.data,S=0,M=i;S>>16)<<24|(255&i>>>8)<<16|(255&i)<<8|255&i>>>24;break;case 2:a=(255&i>>>8)<<24|(255&i>>>16)<<16|(255&i>>>24)<<8|255&i;break;default:a=i}var o=0,l=t.buffer.data,u=4*(n+t.offsetY)*t.buffer.width+4*(e+t.offsetX),_=t.buffer.premultiplied;switch(t.buffer.format){case 0:o=(255&l[u])<<24|(255&l[u+1])<<16|(255&l[u+2])<<8|255&l[u+3];break;case 1:o=(255&l[u+1])<<24|(255&l[u+2])<<16|(255&l[u+3])<<8|255&l[u];break;case 2:o=(255&l[u+2])<<24|(255&l[u+1])<<16|(255&l[u])<<8|255&l[u+3]}_&&0!=(255&o)&&255!=(255&o)&&(s().default.unmult=255/(255&o),o=(255&s().default.__clamp[Math.round((o>>>24&255)*s().default.unmult)])<<24|(255&s().default.__clamp[Math.round((o>>>16&255)*s().default.unmult)])<<16|(255&s().default.__clamp[Math.round((o>>>8&255)*s().default.unmult)])<<8|255&o),a=(255&a>>>24)<<24|(255&a>>>16)<<16|(255&a>>>8)<<8|255&(255&o);var f=t.buffer.data,d=4*(n+t.offsetY)*t.buffer.width+4*(e+t.offsetX);switch(t.buffer.premultiplied&&(0==(255&a)?0!=a&&(a=0):255!=(255&a)&&(s().default.a16=s().default.__alpha16[255&a],a=((a>>>24&255)*s().default.a16>>16&255)<<24|((a>>>16&255)*s().default.a16>>16&255)<<16|((a>>>8&255)*s().default.a16>>16&255)<<8|255&a)),t.buffer.format){case 0:f[d]=a>>>24&255,f[d+1]=a>>>16&255,f[d+2]=a>>>8&255,f[d+3]=255&a;break;case 1:f[d]=255&a,f[d+1]=a>>>24&255,f[d+2]=a>>>16&255,f[d+3]=a>>>8&255;break;case 2:f[d]=a>>>8&255,f[d+1]=a>>>16&255,f[d+2]=a>>>24&255,f[d+3]=255&a}t.dirty=!0,t.version++},f.setPixel32=function(t,e,n,i,r){var a;switch(r){case 1:a=(255&i>>>16)<<24|(255&i>>>8)<<16|(255&i)<<8|255&i>>>24;break;case 2:a=(255&i>>>8)<<24|(255&i>>>16)<<16|(255&i>>>24)<<8|255&i;break;default:a=i}t.get_transparent()||(a=(255&a>>>24)<<24|(255&a>>>16)<<16|(255&a>>>8)<<8|255);var o=t.buffer.data,l=4*(n+t.offsetY)*t.buffer.width+4*(e+t.offsetX);switch(t.buffer.premultiplied&&(0==(255&a)?0!=a&&(a=0):255!=(255&a)&&(s().default.a16=s().default.__alpha16[255&a],a=((a>>>24&255)*s().default.a16>>16&255)<<24|((a>>>16&255)*s().default.a16>>16&255)<<16|((a>>>8&255)*s().default.a16>>16&255)<<8|255&a)),t.buffer.format){case 0:o[l]=a>>>24&255,o[l+1]=a>>>16&255,o[l+2]=a>>>8&255,o[l+3]=255&a;break;case 1:o[l]=255&a,o[l+1]=a>>>24&255,o[l+2]=a>>>16&255,o[l+3]=a>>>8&255;break;case 2:o[l]=a>>>8&255,o[l+1]=a>>>16&255,o[l+2]=a>>>24&255,o[l+3]=255&a}t.dirty=!0,t.version++},f.setPixels=function(t,e,i,a,o){if(null!=t.buffer.data){for(var l,u,_,f=t.buffer.data,d=t.buffer.format,h=t.buffer.premultiplied,c=new(r().default)(t,e),p=t.get_transparent(),g=i.bytes,m=i.offset,v=o!=n(64).default.BIG_ENDIAN,w=0,y=c.height;w>>16)<<24|(255&u>>>8)<<16|(255&u)<<8|255&u>>>24;break;case 2:_=(255&u>>>8)<<24|(255&u>>>16)<<16|(255&u>>>24)<<8|255&u;break;default:_=u}p||(_=(255&_>>>24)<<24|(255&_>>>16)<<16|(255&_>>>8)<<8|255);var A=l+4*T;switch(h&&(0==(255&_)?0!=_&&(_=0):255!=(255&_)&&(s().default.a16=s().default.__alpha16[255&_],_=((_>>>24&255)*s().default.a16>>16&255)<<24|((_>>>16&255)*s().default.a16>>16&255)<<16|((_>>>8&255)*s().default.a16>>16&255)<<8|255&_)),d){case 0:f[A]=_>>>24&255,f[A+1]=_>>>16&255,f[A+2]=_>>>8&255,f[A+3]=255&_;break;case 1:f[A]=255&_,f[A+1]=_>>>24&255,f[A+2]=_>>>16&255,f[A+3]=_>>>8&255;break;case 2:f[A]=_>>>8&255,f[A+1]=_>>>16&255,f[A+2]=_>>>24&255,f[A+3]=255&_}}}t.dirty=!0,t.version++}},f.threshold=function(t,e,n,i,a,o,u,_,d,h){var c,p,g,m;switch(h){case 1:c=(255&u>>>16)<<24|(255&u>>>8)<<16|(255&u)<<8|255&u>>>24;p=(255&_>>>16)<<24|(255&_>>>8)<<16|(255&_)<<8|255&_>>>24;g=(255&o>>>16)<<24|(255&o>>>8)<<16|(255&o)<<8|255&o>>>24;break;case 2:c=(255&u>>>8)<<24|(255&u>>>16)<<16|(255&u>>>24)<<8|255&u;p=(255&_>>>8)<<24|(255&_>>>16)<<16|(255&_>>>24)<<8|255&_;g=(255&o>>>8)<<24|(255&o>>>16)<<16|(255&o>>>24)<<8|255&o;break;default:c=u,p=_,g=o}switch(a){case"!=":m=0;break;case"<":m=2;break;case"<=":m=3;break;case"==":m=1;break;case">":m=4;break;case">=":m=5;break;default:m=-1}if(-1==m)return 0;var v=e.buffer.data,w=t.buffer.data;if(null==v||null==w)return 0;for(var y,b,x,E,T,A=0,R=new(r().default)(e,n),S=new(r().default)(t,new(l().default)(i.x,i.y,R.width,R.height)),M=e.buffer.format,I=t.buffer.format,D=e.buffer.premultiplied,C=t.buffer.premultiplied,L=0,O=S.height;L>>24&255)*s().default.unmult)])<<24|(255&s().default.__clamp[Math.round((x>>>16&255)*s().default.unmult)])<<16|(255&s().default.__clamp[Math.round((x>>>8&255)*s().default.unmult)])<<8|255&x),T=f.__pixelCompare(x&p,g),m){case 0:E=0!=T;break;case 1:E=0==T;break;case 2:E=-1==T;break;case 3:E=0==T||-1==T;break;case 4:E=1==T;break;case 5:E=0==T||1==T;break;default:E=!1}if(E){switch(C&&(0==(255&c)?0!=c&&(c=0):255!=(255&c)&&(s().default.a16=s().default.__alpha16[255&c],c=((c>>>24&255)*s().default.a16>>16&255)<<24|((c>>>16&255)*s().default.a16>>16&255)<<16|((c>>>8&255)*s().default.a16>>16&255)<<8|255&c)),I){case 0:w[b]=c>>>24&255,w[b+1]=c>>>16&255,w[b+2]=c>>>8&255,w[b+3]=255&c;break;case 1:w[b]=255&c,w[b+1]=c>>>24&255,w[b+2]=c>>>16&255,w[b+3]=c>>>8&255;break;case 2:w[b]=c>>>8&255,w[b+1]=c>>>16&255,w[b+2]=c>>>24&255,w[b+3]=255&c}++A}else if(d)switch(C&&(0==(255&x)?0!=x&&(x=0):255!=(255&x)&&(s().default.a16=s().default.__alpha16[255&x],x=((x>>>24&255)*s().default.a16>>16&255)<<24|((x>>>16&255)*s().default.a16>>16&255)<<16|((x>>>8&255)*s().default.a16>>16&255)<<8|255&x)),I){case 0:w[b]=x>>>24&255,w[b+1]=x>>>16&255,w[b+2]=x>>>8&255,w[b+3]=255&x;break;case 1:w[b]=255&x,w[b+1]=x>>>24&255,w[b+2]=x>>>16&255,w[b+3]=x>>>8&255;break;case 2:w[b]=x>>>8&255,w[b+1]=x>>>16&255,w[b+2]=x>>>24&255,w[b+3]=255&x}y+=4,b+=4}}return A>0&&(t.dirty=!0,t.version++),A},f.unmultiplyAlpha=function(t){var e=t.buffer.data;if(null!=e){for(var n,i=t.buffer.format,r=0,a=u().default.int(e.length/4);r>>24&255)*s().default.unmult)])<<24|(255&s().default.__clamp[Math.round((n>>>16&255)*s().default.unmult)])<<16|(255&s().default.__clamp[Math.round((n>>>8&255)*s().default.unmult)])<<8|255&n);var _=4*o;switch(i){case 0:e[_]=n>>>24&255,e[_+1]=n>>>16&255,e[_+2]=n>>>8&255,e[_+3]=255&n;break;case 1:e[_]=255&n,e[_+1]=n>>>24&255,e[_+2]=n>>>16&255,e[_+3]=n>>>8&255;break;case 2:e[_]=n>>>8&255,e[_+1]=n>>>16&255,e[_+2]=n>>>24&255,e[_+3]=255&n}}t.buffer.premultiplied=!1,t.dirty=!0,t.version++}},f.__pixelCompare=function(t,e){var n,i;return(n=t>>>24&255)!=(i=e>>>24&255)?_().default.gt(n,i)?1:-1:(n=t>>>16&255)!=(i=e>>>16&255)?_().default.gt(n,i)?1:-1:(n=t>>>8&255)!=(i=e>>>8&255)?_().default.gt(n,i)?1:-1:(n=255&t)!=(i=255&e)?_().default.gt(n,i)?1:-1:0},e.default=f}).call(e,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(1).default,r=function(){};r.__name__=["openfl","display","IShaderDrawable"],(r.prototype={}).__class__=i["openfl.display.IShaderDrawable"]=r,e.default=r}).call(e,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(1).default;n(2).default;function r(){return n(57)}var a=function(t,e,i){null!=t&&(this.create=t),null!=e&&(this.clean=e),null!=i&&this.set_size(i),this.__pool=new(r().default),this.activeObjects=0,this.inactiveObjects=0,this.__inactiveObject0=null,this.__inactiveObject1=null,this.__inactiveObjectList=new(n(48).default)};a.__name__=["lime","utils","ObjectPool"],(a.prototype={add:function(t){this.__pool.exists(t)||(this.__pool.set(t,!1),this.clean(t),this.__addInactive(t))},clean:function(t){},clear:function(){this.__pool=new(r().default),this.activeObjects=0,this.inactiveObjects=0,this.__inactiveObject0=null,this.__inactiveObject1=null,this.__inactiveObjectList.clear()},create:function(){return null},get:function(){var t=null;return this.inactiveObjects>0?t=this.__getInactive():(null==this.__size||this.activeObjects0&&(this.__inactiveObject0=this.__inactiveObjectList.pop()),this.__inactiveObjectList.length>0&&(this.__inactiveObject1=this.__inactiveObjectList.pop())),this.inactiveObjects--,this.activeObjects++,t},__removeInactive:function(t){if(!(t<=0||0==this.inactiveObjects)&&(null!=this.__inactiveObject0&&(this.__pool.remove(this.__inactiveObject0),this.__inactiveObject0=null,this.inactiveObjects--,--t),0!=t&&0!=this.inactiveObjects&&(null!=this.__inactiveObject1&&(this.__pool.remove(this.__inactiveObject1),this.__inactiveObject1=null,this.inactiveObjects--,--t),0!=t&&0!=this.inactiveObjects)))for(var e=this.__inactiveObjectList.iterator();e.hasNext();){var n=e.next();if(this.__pool.remove(n),this.__inactiveObjectList.remove(n),this.inactiveObjects--,0==--t||0==this.inactiveObjects)return}},get_size:function(){return this.__size},set_size:function(t){if(null==t)this.__size=null;else{var e=this.inactiveObjects+this.activeObjects;if(this.__size=t,e>t)this.__removeInactive(e-t);else if(t>e)for(var n,i=0,r=t-e;i0&&(this.__visible=!0)},beginGradientFill:function(t,e,n,i,r,a,s,o){null==o&&(o=0),null==s&&(s="rgb"),null==a&&(a="pad"),this.__commands.beginGradientFill(t,e,n,i,r,a,s,o);for(var l=0;l0){this.__visible=!0;break}}},clear:function(){this.__commands.clear(),this.__strokePadding=0,null!=this.__bounds&&(this.set___dirty(!0),this.__transformDirty=!0,this.__bounds=null),this.__visible=!1,this.moveTo(0,0)},copyFrom:function(t){this.__bounds=null!=t.__bounds?t.__bounds.clone():null,this.__commands=t.__commands.copy(),this.set___dirty(!0),this.__strokePadding=t.__strokePadding,this.__positionX=t.__positionX,this.__positionY=t.__positionY,this.__transformDirty=!0,this.__visible=t.__visible},cubicCurveTo:function(t,e,n,i,r,a){var s,o,l,u;if(this.__inflateBounds(this.__positionX-this.__strokePadding,this.__positionY-this.__strokePadding),this.__inflateBounds(this.__positionX+this.__strokePadding,this.__positionY+this.__strokePadding),s=r,l=r,!(tthis.__positionX||t>r&&tthis.__positionX||n>r&&n0&&h<1&&(s=this.__calculateBezierCubicPoint(h,this.__positionX,t,n,r)),c>0&&c<1&&(l=this.__calculateBezierCubicPoint(c,this.__positionX,t,n,r))}if(o=a,u=a,!(ethis.__positionX||e>a&&ethis.__positionX||i>a&&i0&&v<1&&(o=this.__calculateBezierCubicPoint(v,this.__positionX,e,i,a)),w>0&&w<1&&(u=this.__calculateBezierCubicPoint(w,this.__positionX,e,i,a))}this.__inflateBounds(s-this.__strokePadding,o-this.__strokePadding),this.__inflateBounds(s+this.__strokePadding,o+this.__strokePadding),this.__inflateBounds(l-this.__strokePadding,u-this.__strokePadding),this.__inflateBounds(l+this.__strokePadding,u+this.__strokePadding),this.__positionX=r,this.__positionY=a,this.__inflateBounds(this.__positionX-this.__strokePadding,this.__positionY-this.__strokePadding),this.__inflateBounds(this.__positionX+this.__strokePadding,this.__positionY+this.__strokePadding),this.__commands.cubicCurveTo(t,e,n,i,r,a),this.set___dirty(!0)},curveTo:function(t,e,n,i){var r,a;if(this.__inflateBounds(this.__positionX-this.__strokePadding,this.__positionY-this.__strokePadding),this.__inflateBounds(this.__positionX+this.__strokePadding,this.__positionY+this.__strokePadding),tthis.__positionX||t>n&&tthis.__positionY||e>i&&ethis.__strokePadding&&(this.__strokePadding=t):t/2>this.__strokePadding&&(this.__strokePadding=t/2)),this.__commands.lineStyle(t,e,n,i,r,a,s,o),null!=t&&(this.__visible=!0)},lineTo:function(t,e){isFinite(t)&&isFinite(e)&&(this.__inflateBounds(this.__positionX-this.__strokePadding,this.__positionY-this.__strokePadding),this.__inflateBounds(this.__positionX+this.__strokePadding,this.__positionY+this.__strokePadding),this.__positionX=t,this.__positionY=e,this.__inflateBounds(this.__positionX-this.__strokePadding,this.__positionY-this.__strokePadding),this.__inflateBounds(this.__positionX+2*this.__strokePadding,this.__positionY+this.__strokePadding),this.__commands.lineTo(t,e),this.set___dirty(!0))},moveTo:function(t,e){this.__positionX=t,this.__positionY=e,this.__commands.moveTo(t,e)},readGraphicsData:function(t){null==t&&(t=!0);var e=s().default._new();return this.__owner.__readGraphicsData(e,t),e},__calculateBezierCubicPoint:function(t,e,n,i,r){var a=1-t;return e*(a*a*a)+3*n*t*(a*a)+3*i*a*(t*t)+r*(t*t*t)},__calculateBezierQuadPoint:function(t,e,n,i){var r=1-t;return r*r*e+2*r*t*n+t*t*i},__cleanup:function(){null!=this.__bounds&&(this.set___dirty(!0),this.__transformDirty=!0),this.__bitmap=null,this.__canvas=null,this.__context=null},__getBounds:function(t,e){if(null!=this.__bounds){var n=o().default.__pool.get();this.__bounds.__transform(n,e),t.__expand(n.x,n.y,n.width,n.height),o().default.__pool.release(n)}},__hitTest:function(t,e,i,r){if(null==this.__bounds)return!1;var a=r.__transformInverseX(t,e),s=r.__transformInverseY(t,e);return!!(a>this.__bounds.x&&s>this.__bounds.y&&this.__bounds.contains(a,s))&&(!i||n(58).default.hitTest(this,a,s))},__inflateBounds:function(t,e){if(null==this.__bounds)return this.__bounds=new(o().default)(t,e,0,0),void(this.__transformDirty=!0);tthis.__bounds.x+this.__bounds.width&&(this.__bounds.width=t-this.__bounds.x),e>this.__bounds.y+this.__bounds.height&&(this.__bounds.height=e-this.__bounds.y)},__readGraphicsData:function(t){for(var e,i=new(n(116).default)(this.__commands),r=null,a=0,s=this.__commands.types;a=1||this.__height>=1)&&this.set___dirty(!0),this.__width=0,void(this.__height=0);null!=f.maxTextureWidth&&i>f.maxTextureWidth&&(i=f.maxTextureWidth,e=f.maxTextureWidth/this.__bounds.width),null!=f.maxTextureWidth&&r>f.maxTextureHeight&&(r=f.maxTextureHeight,n=f.maxTextureHeight/this.__bounds.height),this.__renderTransform.a=i/this.__bounds.width,this.__renderTransform.d=r/this.__bounds.height;var a=1/this.__renderTransform.a,s=1/this.__renderTransform.d;this.__worldTransform.a=a*t.a,this.__worldTransform.b=a*t.b,this.__worldTransform.c=s*t.c,this.__worldTransform.d=s*t.d;var o=this.__bounds.x,l=this.__bounds.y,u=o*t.a+l*t.c+t.tx,_=o*t.b+l*t.d+t.ty;this.__worldTransform.tx=Math.floor(u),this.__worldTransform.ty=Math.floor(_),this.__renderTransform.tx=this.__worldTransform.__transformInverseX(u,_),this.__renderTransform.ty=this.__worldTransform.__transformInverseY(u,_);var d=Math.ceil(i+this.__renderTransform.tx),h=Math.ceil(r+this.__renderTransform.ty);d==this.__width&&h==this.__height||this.set___dirty(!0),this.__width=d,this.__height=h}}},set___dirty:function(t){return t&&null!=this.__owner&&this.__owner.__setRenderDirty(),this.__dirty=t}}).__class__=i["openfl.display.Graphics"]=f,f.maxTextureHeight=null,f.maxTextureWidth=null,e.default=f}).call(e,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(15).default,r=n(1).default["openfl.display.GraphicsFillType"]={__ename__:["openfl","display","GraphicsFillType"],__constructs__:["SOLID_FILL","GRADIENT_FILL","BITMAP_FILL","END_FILL"]};r.BITMAP_FILL=["BITMAP_FILL",2],r.BITMAP_FILL.toString=i,r.BITMAP_FILL.__enum__=r,r.GRADIENT_FILL=["GRADIENT_FILL",1],r.GRADIENT_FILL.toString=i,r.GRADIENT_FILL.__enum__=r,r.END_FILL=["END_FILL",3],r.END_FILL.toString=i,r.END_FILL.__enum__=r,r.SOLID_FILL=["SOLID_FILL",0],r.SOLID_FILL.toString=i,r.SOLID_FILL.__enum__=r,e.default=r}).call(e,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(1).default,r=(n(2).default,n(3).default);function a(){return n(30)}var s=function(t){null==t&&(t=""),a().default.call(this,t),this.name="ArgumentError"};s.__name__=["openfl","errors","ArgumentError"],s.__super__=a().default,(s.prototype=r(a().default.prototype,{})).__class__=i["openfl.errors.ArgumentError"]=s,e.default=s}).call(e,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(1).default,r=function(){};r.__name__=["openfl","display","IGraphicsFill"],(r.prototype={}).__class__=i["openfl.display.IGraphicsFill"]=r,e.default=r}).call(e,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(1).default,r=function(t,e){this.bytes=t,this.offset=e};r.__name__=["lime","utils","BytePointerData"],(r.prototype={}).__class__=i["lime.utils.BytePointerData"]=r,e.default=r}).call(e,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(1).default;n(2).default;function r(){return n(16)}var a=function(){};a.__name__=["lime","utils","_Bytes","Bytes_Impl_"],(a.prototype={}).__class__=i["lime.utils._Bytes.Bytes_Impl_"]=a,a._new=function(t,e){return new(r().default)(e)},a.alloc=function(t){var e=r().default.alloc(t);return a._new(e.get_length(),e.getData())},a.fastGet=function(t,e){return r().default.fastGet(t,e)},a.fromBytes=function(t){return null==t?null:a._new(t.get_length(),t.getData())},a.fromFile=function(t){return null},a.loadFromBytes=function(t){return n(24).default.withValue(a.fromBytes(t))},a.loadFromFile=function(t){return(new(n(306).default)).load(t)},a.ofData=function(t){var e=r().default.ofData(t);return a._new(e.get_length(),e.getData())},a.ofString=function(t){var e=r().default.ofString(t);return a._new(e.get_length(),e.getData())},e.default=a}).call(e,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(1).default,r=(n(2).default,n(3).default);function a(){return n(36)}var s=function(){a().default.call(this),this.doubleClickEnabled=!1,this.mouseEnabled=!0,this.needsSoftKeyboard=!1,this.__tabEnabled=null,this.__tabIndex=-1};s.__name__=["openfl","display","InteractiveObject"],s.__super__=a().default,(s.prototype=r(a().default.prototype,{requestSoftKeyboard:function(){return n(34).default.notImplemented({fileName:"InteractiveObject.hx",lineNumber:55,className:"openfl.display.InteractiveObject",methodName:"requestSoftKeyboard"}),!1},__allowMouseFocus:function(){return this.get_tabEnabled()},__getInteractive:function(t){return null!=t&&(t.push(this),null!=this.parent&&this.parent.__getInteractive(t)),!0},__hitTest:function(t,e,n,i,r,s){return!(!s.get_visible()||this.__isMask||r&&!this.mouseEnabled)&&a().default.prototype.__hitTest.call(this,t,e,n,i,r,s)},get_tabEnabled:function(){return 1==this.__tabEnabled},set_tabEnabled:function(t){return this.__tabEnabled=t},get_tabIndex:function(){return this.__tabIndex},set_tabIndex:function(t){return this.__tabIndex=t}})).__class__=i["openfl.display.InteractiveObject"]=s,Object.defineProperties(s.prototype,{tabEnabled:{get:function(){return this.get_tabEnabled()},set:function(t){return this.set_tabEnabled(t)}},tabIndex:{get:function(){return this.get_tabIndex()},set:function(t){return this.set_tabIndex(t)}}}),e.default=s}).call(e,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(15).default,r=n(1).default["lime.ui.MouseCursor"]={__ename__:["lime","ui","MouseCursor"],__constructs__:["ARROW","CROSSHAIR","DEFAULT","MOVE","POINTER","RESIZE_NESW","RESIZE_NS","RESIZE_NWSE","RESIZE_WE","TEXT","WAIT","WAIT_ARROW","CUSTOM"]};r.MOVE=["MOVE",3],r.MOVE.toString=i,r.MOVE.__enum__=r,r.RESIZE_NESW=["RESIZE_NESW",5],r.RESIZE_NESW.toString=i,r.RESIZE_NESW.__enum__=r,r.ARROW=["ARROW",0],r.ARROW.toString=i,r.ARROW.__enum__=r,r.POINTER=["POINTER",4],r.POINTER.toString=i,r.POINTER.__enum__=r,r.RESIZE_NWSE=["RESIZE_NWSE",7],r.RESIZE_NWSE.toString=i,r.RESIZE_NWSE.__enum__=r,r.CROSSHAIR=["CROSSHAIR",1],r.CROSSHAIR.toString=i,r.CROSSHAIR.__enum__=r,r.RESIZE_NS=["RESIZE_NS",6],r.RESIZE_NS.toString=i,r.RESIZE_NS.__enum__=r,r.RESIZE_WE=["RESIZE_WE",8],r.RESIZE_WE.toString=i,r.RESIZE_WE.__enum__=r,r.TEXT=["TEXT",9],r.TEXT.toString=i,r.TEXT.__enum__=r,r.WAIT=["WAIT",10],r.WAIT.toString=i,r.WAIT.__enum__=r,r.DEFAULT=["DEFAULT",2],r.DEFAULT.toString=i,r.DEFAULT.__enum__=r,r.CUSTOM=["CUSTOM",12],r.CUSTOM.toString=i,r.CUSTOM.__enum__=r,r.WAIT_ARROW=["WAIT_ARROW",11],r.WAIT_ARROW.toString=i,r.WAIT_ARROW.__enum__=r,e.default=r}).call(e,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(1).default,r=(n(2).default,n(3).default);function a(){return n(9)}var s=function(t,e,n,i){null==i&&(i=""),null==n&&(n=!1),null==e&&(e=!1),a().default.call(this,t,e,n),this.text=i};s.__name__=["openfl","events","TextEvent"],s.__super__=a().default,(s.prototype=r(a().default.prototype,{clone:function(){var t=new s(this.type,this.bubbles,this.cancelable,this.text);return t.target=this.target,t.currentTarget=this.currentTarget,t.eventPhase=this.eventPhase,t},toString:function(){return this.__formatToString("TextEvent",["type","bubbles","cancelable","text"])}})).__class__=i["openfl.events.TextEvent"]=s,s.LINK="link",s.TEXT_INPUT="textInput",e.default=s}).call(e,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(1).default,r=(n(2).default,function(){this.__bottomExtension=0,this.__leftExtension=0,this.__needSecondBitmapData=!0,this.__numShaderPasses=0,this.__preserveObject=!1,this.__rightExtension=0,this.__topExtension=0});r.__name__=["openfl","filters","BitmapFilter"],(r.prototype={clone:function(){return new r},__applyFilter:function(t,e,n,i){return e},__initShader:function(t,e){return t.shaderManager.defaultShader}}).__class__=i["openfl.filters.BitmapFilter"]=r,e.default=r}).call(e,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(1).default,r=(n(2).default,n(8).default),a=n(3).default;function s(){return n(13)}function o(){return n(9)}function l(){return n(4)}function u(){return n(5)}function _(){return n(16)}var f=function(t){s().default.call(this),this.bytesLoaded=0,this.bytesTotal=0,this.dataFormat="text",null!=t&&this.load(t)};f.__name__=["openfl","net","URLLoader"],f.__super__=s().default,(f.prototype=a(s().default.prototype,{close:function(){null!=this.__httpRequest&&this.__httpRequest.cancel()},load:function(t){var e=this;if("binary"==this.dataFormat){var i=new(n(335).default);this.__prepareRequest(i,t),i.load().onProgress(r(this,this.httpRequest_onProgress)).onError(r(this,this.httpRequest_onError)).onComplete(function(t){e.__dispatchStatus(),e.data=t;var n=new(o().default)("complete");e.dispatchEvent(n)})}else{var a=new(n(192).default);this.__prepareRequest(a,t),a.load().onProgress(r(this,this.httpRequest_onProgress)).onError(r(this,this.httpRequest_onError)).onComplete(function(t){e.__dispatchStatus(),e.data=t;var n=new(o().default)("complete");e.dispatchEvent(n)})}},__dispatchStatus:function(){var t=new(n(193).default)("httpStatus",!1,!1,this.__httpRequest.responseStatus);t.responseURL=this.__httpRequest.uri;var e=[];if(this.__httpRequest.enableResponseHeaders&&null!=this.__httpRequest.responseHeaders)for(var i=0,r=this.__httpRequest.responseHeaders;i-1?h.add(v.toGLSL()+" = 1.0 / "+w.toGLSL()+"; // rcp"):h.add(v.toGLSL()+" = vec4(1) / "+w.toGLSL()+"; // rcp"),d.addDR(v,u().default.VECTOR_4),d.addSR(w,u().default.VECTOR_4);break;case 6:h.add(v.toGLSL()+" = min("+w.toGLSL()+", "+y.toGLSL()+"); // min"),d.addDR(v,u().default.VECTOR_4),d.addSR(w,u().default.VECTOR_4),d.addSR(y,u().default.VECTOR_4);break;case 7:h.add(v.toGLSL()+" = max("+w.toGLSL()+", "+y.toGLSL()+"); // max"),d.addDR(v,u().default.VECTOR_4),d.addSR(w,u().default.VECTOR_4),d.addSR(y,u().default.VECTOR_4);break;case 8:h.add(v.toGLSL()+" = fract("+w.toGLSL()+"); // frc"),d.addDR(v,u().default.VECTOR_4),d.addSR(w,u().default.VECTOR_4);break;case 9:h.add(v.toGLSL()+" = sqrt("+w.toGLSL()+"); // sqrt"),d.addDR(v,u().default.VECTOR_4),d.addSR(w,u().default.VECTOR_4);break;case 10:h.add(v.toGLSL()+" = inversesqrt("+w.toGLSL()+"); // rsq"),d.addDR(v,u().default.VECTOR_4),d.addSR(w,u().default.VECTOR_4);break;case 11:h.add(v.toGLSL()+" = pow("+w.toGLSL()+", "+y.toGLSL()+"); // pow"),d.addDR(v,u().default.VECTOR_4),d.addSR(w,u().default.VECTOR_4),d.addSR(y,u().default.VECTOR_4);break;case 12:h.add(v.toGLSL()+" = log2("+w.toGLSL()+"); // log"),d.addDR(v,u().default.VECTOR_4),d.addSR(w,u().default.VECTOR_4);break;case 13:h.add(v.toGLSL()+" = exp2("+w.toGLSL()+"); // exp"),d.addDR(v,u().default.VECTOR_4),d.addSR(w,u().default.VECTOR_4);break;case 14:h.add(v.toGLSL()+" = normalize("+w.toGLSL()+"); // normalize"),d.addDR(v,u().default.VECTOR_4),d.addSR(w,u().default.VECTOR_4);break;case 15:h.add(v.toGLSL()+" = sin("+w.toGLSL()+"); // sin"),d.addDR(v,u().default.VECTOR_4),d.addSR(w,u().default.VECTOR_4);break;case 16:h.add(v.toGLSL()+" = cos("+w.toGLSL()+"); // cos"),d.addDR(v,u().default.VECTOR_4),d.addSR(w,u().default.VECTOR_4);break;case 17:w.sourceMask=y.sourceMask=7,h.add(v.toGLSL()+" = cross(vec3("+w.toGLSL()+"), vec3("+y.toGLSL()+")); // crs"),d.addDR(v,u().default.VECTOR_4),d.addSR(w,u().default.VECTOR_4),d.addSR(y,u().default.VECTOR_4);break;case 18:w.sourceMask=y.sourceMask=7,h.add(v.toGLSL()+" = vec4(dot(vec3("+w.toGLSL()+"), vec3("+y.toGLSL()+")))"+v.getWriteMask()+"; // dp3"),d.addDR(v,u().default.VECTOR_4),d.addSR(w,u().default.VECTOR_4),d.addSR(y,u().default.VECTOR_4);break;case 19:w.sourceMask=y.sourceMask=15,h.add(v.toGLSL()+" = vec4(dot(vec4("+w.toGLSL()+"), vec4("+y.toGLSL()+")))"+v.getWriteMask()+"; // dp4"),d.addDR(v,u().default.VECTOR_4),d.addSR(w,u().default.VECTOR_4),d.addSR(y,u().default.VECTOR_4);break;case 20:h.add(v.toGLSL()+" = abs("+w.toGLSL()+"); // abs"),d.addDR(v,u().default.VECTOR_4),d.addSR(w,u().default.VECTOR_4);break;case 21:h.add(v.toGLSL()+" = -"+w.toGLSL()+"; // neg"),d.addDR(v,u().default.VECTOR_4),d.addSR(w,u().default.VECTOR_4);break;case 22:h.add(v.toGLSL()+" = clamp("+w.toGLSL()+", 0.0, 1.0); // saturate"),d.addDR(v,u().default.VECTOR_4),d.addSR(w,u().default.VECTOR_4);break;case 23:var b=d.getRegisterUsage(y);b!=u().default.VECTOR_4&&b!=u().default.VECTOR_4_ARRAY?(h.add(v.toGLSL()+" = "+w.toGLSL()+" * mat3("+y.toGLSL(!1)+"); // m33"),d.addDR(v,u().default.VECTOR_4),d.addSR(w,u().default.VECTOR_4),d.addSR(y,u().default.MATRIX_4_4)):(w.sourceMask=y.sourceMask=7,h.add(v.toGLSL()+" = vec3(dot("+w.toGLSL(!0)+","+y.toGLSL(!0,0)+"), dot("+w.toGLSL(!0)+","+y.toGLSL(!0,1)+"),dot("+w.toGLSL(!0)+","+y.toGLSL(!0,2)+")); // m33"),d.addDR(v,u().default.VECTOR_4),d.addSR(w,u().default.VECTOR_4),d.addSR(y,u().default.VECTOR_4,0),d.addSR(y,u().default.VECTOR_4,1),d.addSR(y,u().default.VECTOR_4,2));break;case 24:var x=d.getRegisterUsage(y);x!=u().default.VECTOR_4&&x!=u().default.VECTOR_4_ARRAY?(h.add(v.toGLSL()+" = "+w.toGLSL()+" * "+y.toGLSL(!1)+"; // m44"),d.addDR(v,u().default.VECTOR_4),d.addSR(w,u().default.VECTOR_4),d.addSR(y,u().default.MATRIX_4_4)):(w.sourceMask=y.sourceMask=15,h.add(v.toGLSL()+" = vec4(dot("+w.toGLSL(!0)+","+y.toGLSL(!0,0)+"), dot("+w.toGLSL(!0)+","+y.toGLSL(!0,1)+"), dot("+w.toGLSL(!0)+","+y.toGLSL(!0,2)+"), dot("+w.toGLSL(!0)+","+y.toGLSL(!0,3)+")); // m44"),d.addDR(v,u().default.VECTOR_4),d.addSR(w,u().default.VECTOR_4),d.addSR(y,u().default.VECTOR_4,0),d.addSR(y,u().default.VECTOR_4,1),d.addSR(y,u().default.VECTOR_4,2),d.addSR(y,u().default.VECTOR_4,3));break;case 25:v.mask&=7;var E=d.getRegisterUsage(y);E!=u().default.VECTOR_4&&E!=u().default.VECTOR_4_ARRAY?(h.add(v.toGLSL()+" = "+w.toGLSL()+" * "+y.toGLSL(!1)+"; // m34"),d.addDR(v,u().default.VECTOR_4),d.addSR(w,u().default.VECTOR_4),d.addSR(y,u().default.MATRIX_4_4)):(w.sourceMask=y.sourceMask=15,h.add(v.toGLSL()+" = vec3(dot("+w.toGLSL(!0)+","+y.toGLSL(!0,0)+"), dot("+w.toGLSL(!0)+","+y.toGLSL(!0,1)+"),dot("+w.toGLSL(!0)+","+y.toGLSL(!0,2)+")); // m34"),d.addDR(v,u().default.VECTOR_4),d.addSR(w,u().default.VECTOR_4),d.addSR(y,u().default.VECTOR_4,0),d.addSR(y,u().default.VECTOR_4,1),d.addSR(y,u().default.VECTOR_4,2));break;case 39:w.sourceMask=15,h.add("if (any(lessThan("+w.toGLSL()+", vec4(0)))) discard;"),d.addSR(w,u().default.VECTOR_4);break;case 40:var T=n(406).default.parse(m,f);switch(T.d){case 0:2==T.t?(w.sourceMask=3,d.addSaR(T,u().default.SAMPLER_2D_ALPHA),h.add("if ("+T.toGLSL()+"_alphaEnabled) {\n"),h.add("\t\t"+v.toGLSL()+" = vec4(texture2D("+T.toGLSL()+", "+w.toGLSL()+").xyz, texture2D("+T.toGLSL()+"_alpha, "+w.toGLSL()+").x); // tex + alpha\n"),h.add("\t} else {\n"),h.add("\t\t"+v.toGLSL()+" = texture2D("+T.toGLSL()+", "+w.toGLSL()+"); // tex\n"),h.add("\t}")):(w.sourceMask=3,d.addSaR(T,u().default.SAMPLER_2D),h.add(v.toGLSL()+" = texture2D("+T.toGLSL()+", "+w.toGLSL()+"); // tex"));break;case 1:2==T.t?(w.sourceMask=7,d.addSaR(T,u().default.SAMPLER_CUBE_ALPHA),h.add("if ("+T.toGLSL()+"_alphaEnabled) {\n"),h.add("\t\t"+v.toGLSL()+" = vec4(textureCube("+T.toGLSL()+", "+w.toGLSL()+").xyz, textureCube("+T.toGLSL()+"_alpha, "+w.toGLSL()+").x); // tex + alpha\n"),h.add("\t} else {\n"),h.add("\t\t"+v.toGLSL()+" = textureCube("+T.toGLSL()+", "+w.toGLSL()+"); // tex"),h.add("\t}")):(w.sourceMask=7,h.add(v.toGLSL()+" = textureCube("+T.toGLSL()+", "+w.toGLSL()+"); // tex"),d.addSaR(T,u().default.SAMPLER_CUBE))}d.addDR(v,u().default.VECTOR_4),d.addSR(w,u().default.VECTOR_4),null!=e&&(e[T.n]=T.toSamplerState());break;case 41:w.sourceMask=y.sourceMask=15,h.add(v.toGLSL()+" = vec4(greaterThanEqual("+w.toGLSL()+", "+y.toGLSL()+"))"+v.getWriteMask()+"; // ste"),d.addDR(v,u().default.VECTOR_4),d.addSR(w,u().default.VECTOR_4),d.addSR(y,u().default.VECTOR_4);break;case 42:w.sourceMask=y.sourceMask=15,h.add(v.toGLSL()+" = vec4(lessThan("+w.toGLSL()+", "+y.toGLSL()+"))"+v.getWriteMask()+"; // slt"),d.addDR(v,u().default.VECTOR_4),d.addSR(w,u().default.VECTOR_4),d.addSR(y,u().default.VECTOR_4);break;case 44:w.sourceMask=y.sourceMask=15,h.add(v.toGLSL()+" = vec4(equal("+w.toGLSL()+", "+y.toGLSL()+"))"+v.getWriteMask()+"; // seq"),d.addDR(v,u().default.VECTOR_4),d.addSR(w,u().default.VECTOR_4),d.addSR(y,u().default.VECTOR_4);break;case 45:w.sourceMask=y.sourceMask=15,h.add(v.toGLSL()+" = vec4(notEqual("+w.toGLSL()+", "+y.toGLSL()+"))"+v.getWriteMask()+"; // sne"),d.addDR(v,u().default.VECTOR_4),d.addSR(w,u().default.VECTOR_4),d.addSR(y,u().default.VECTOR_4);break;default:throw new(a().default)(new(s().default)("Opcode "+c))}h.add("\n")}if(null==_.limitedProfile){var A=n(49).default.getParameter(7938);_.limitedProfile=A.indexOf("OpenGL ES")>-1||A.indexOf("WebGL")>-1}var R=new(o().default);return R.add("// AGAL "+(f==r().default.VERTEX?"vertex":"fragment")+" shader\n"),_.limitedProfile?(R.add("#version 100\n"),R.add("precision highp float;\n")):R.add("#version 120\n"),R.add(d.toGLSL(!1)),f==r().default.VERTEX&&R.add("uniform vec4 vcPositionScale;\n"),R.add("void main() {\n"),R.add(d.toGLSL(!0)),R.add(h.toString()),f==r().default.VERTEX&&R.add("\tgl_Position *= vcPositionScale;\n"),R.add("}\n"),R.toString()},_.limitedProfile=!0,e.default=_}).call(e,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(1).default;n(2).default;var r=function(){};r.__name__=["lime","system","Clipboard"],(r.prototype={}).__class__=i["lime.system.Clipboard"]=r,r.__update=function(){r._text!=r._text&&r.onUpdate.dispatch()},r.get_text=function(){return r._text},r.set_text=function(t){var e=r._text;r._text=t;var i=n(63).default.current.get_window();return null!=i&&i.backend.setClipboard(t),r._text!=e&&r.onUpdate.dispatch(),t},r.onUpdate=new(n(35).default),e.default=r}).call(e,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(1).default;n(2).default;function r(){return n(86)}function a(){return n(247)}var s=function(t){this.onDisconnect=new(n(35).default),this.onButtonUp=new(a().default),this.onButtonDown=new(a().default),this.onAxisMove=new(n(248).default),this.id=t,this.connected=!0};s.__name__=["lime","ui","Gamepad"],(s.prototype={get_guid:function(){return r().default.__getDeviceData()[this.id].id},get_name:function(){return r().default.__getDeviceData()[this.id].id}}).__class__=i["lime.ui.Gamepad"]=s,s.addMappings=function(t){},s.__connect=function(t){if(!s.devices.exists(t)){var e=new s(t);s.devices.set(t,e),s.onConnect.dispatch(e)}},s.__disconnect=function(t){var e=s.devices.get(t);null!=e&&(e.connected=!1),s.devices.remove(t),null!=e&&e.onDisconnect.dispatch()},s.devices=new(n(22).default),s.onConnect=new(n(246).default),e.default=s}).call(e,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(1).default;n(2).default;function r(){return n(108)}var a=function(t){this.onTrackballMove=new(n(243).default),this.onHatMove=new(n(244).default),this.onDisconnect=new(n(35).default),this.onButtonUp=new(r().default),this.onButtonDown=new(r().default),this.onAxisMove=new(n(245).default),this.id=t,this.connected=!0};a.__name__=["lime","ui","Joystick"],(a.prototype={get_guid:function(){return a.__getDeviceData()[this.id].id},get_name:function(){return a.__getDeviceData()[this.id].id},get_numAxes:function(){return a.__getDeviceData()[this.id].axes.length},get_numButtons:function(){return a.__getDeviceData()[this.id].buttons.length},get_numHats:function(){return 0},get_numTrackballs:function(){return 0}}).__class__=i["lime.ui.Joystick"]=a,a.__connect=function(t){if(!a.devices.exists(t)){var e=new a(t);a.devices.set(t,e),a.onConnect.dispatch(e)}},a.__disconnect=function(t){var e=a.devices.get(t);null!=e&&(e.connected=!1),a.devices.remove(t),null!=e&&e.onDisconnect.dispatch()},a.__getDeviceData=function(){return navigator.getGamepads?navigator.getGamepads():navigator.webkitGetGamepads?navigator.webkitGetGamepads():null},a.devices=new(n(22).default),a.onConnect=new(n(242).default),e.default=a}).call(e,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(15).default,r=n(1).default["lime.graphics.opengl.GLContextType"]={__ename__:["lime","graphics","opengl","GLContextType"],__constructs__:["OPENGL","GLES","WEBGL"]};r.OPENGL=["OPENGL",0],r.OPENGL.toString=i,r.OPENGL.__enum__=r,r.WEBGL=["WEBGL",2],r.WEBGL.toString=i,r.WEBGL.__enum__=r,r.GLES=["GLES",1],r.GLES.toString=i,r.GLES.__enum__=r,e.default=r}).call(e,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(1).default;n(2).default;function r(){return n(282)}function a(){return n(283)}function s(){return n(39)}var o=function(){};o.__name__=["lime","media","AudioBuffer"],(o.prototype={dispose:function(){this.__srcHowl.unload()},get_src:function(){return this.__srcHowl},set_src:function(t){return this.__srcHowl=t}}).__class__=i["lime.media.AudioBuffer"]=o;var l=o.prototype;Object.defineProperties(l,{src:{get:l.get_src,set:l.set_src}}),o.fromBase64=function(t){if(null==t)return null;-1==t.indexOf(",")&&(t="data:"+o.__getCodec(r().default.decode(t))+";base64,"+t);var e=new o;return e.set_src(new(a().Howl)({src:[t],html5:!0,preload:!1})),e},o.fromBytes=function(t){if(null==t)return null;var e=new o;return e.set_src(new(a().Howl)({src:["data:"+o.__getCodec(t)+";base64,"+r().default.encode(t)],html5:!0,preload:!1})),e},o.fromFile=function(t){if(null==t)return null;var e=new o;return e.__srcHowl=new(a().Howl)({src:[t],preload:!1}),e},o.fromFiles=function(t){var e=new o;return e.__srcHowl=new(a().Howl)({src:t,preload:!1}),e},o.fromVorbisFile=function(t){return null},o.loadFromFile=function(t){var e=new(s().default),n=o.fromFile(t);return null!=n?null!=n&&(n.__srcHowl.on("load",function(){e.complete(n)}),n.__srcHowl.on("loaderror",function(t,n){e.error(n)}),n.__srcHowl.load()):e.error(null),e.future},o.loadFromFiles=function(t){var e=new(s().default),n=o.fromFiles(t);return null!=n?(n.__srcHowl.on("load",function(){e.complete(n)}),n.__srcHowl.on("loaderror",function(){e.error(null)}),n.__srcHowl.load()):e.error(null),e.future},o.__getCodec=function(t){switch(t.getString(0,4)){case"OggS":return"audio/ogg";case"RIFF":if("WAVE"==t.getString(8,4))return"audio/wav";var e=t.get(2),i=t.get(1);switch(t.get(0)){case 73:if(68==i&&51==e)return"audio/mp3";break;case 255:switch(i){case 250:case 251:return"audio/mp3"}}break;case"fLaC":return"audio/flac";default:var r=t.get(2),a=t.get(1);switch(t.get(0)){case 73:if(68==a&&51==r)return"audio/mp3";break;case 255:switch(a){case 250:case 251:return"audio/mp3"}}}return n(23).default.error("Unsupported sound format",{fileName:"AudioBuffer.hx",lineNumber:493,className:"lime.media.AudioBuffer",methodName:"__getCodec"}),null},e.default=o}).call(e,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(1).default,r=(n(2).default,n(3).default);function a(){return n(36)}function s(){return n(14)}function o(){return n(115)}function l(){return n(95)}function u(){return n(126)}var _=function(t,e,n){null==n&&(n=!1),a().default.call(this),this.__bitmapData=t,this.pixelSnapping=e,this.smoothing=n,null==e&&(this.pixelSnapping="auto")};_.__name__=["openfl","display","Bitmap"],_.__interfaces__=[n(66).default],_.__super__=a().default,(_.prototype=r(a().default.prototype,{__enterFrame:function(t){if(null!=this.__bitmapData&&null!=this.__bitmapData.image){var e=this.__bitmapData.image;this.__bitmapData.image.version!=this.__imageVersion&&(this.__setRenderDirty(),this.__imageVersion=e.version)}},__getBounds:function(t,e){if(null!=this.__bitmapData){var n=s().default.__pool.get();n.setTo(0,0,this.__bitmapData.width,this.__bitmapData.height),n.__transform(n,e),t.__expand(n.x,n.y,n.width,n.height),s().default.__pool.release(n)}},__hitTest:function(t,e,n,i,r,a){if(!a.get_visible()||this.__isMask||null==this.__bitmapData)return!1;if(null!=this.get_mask()&&!this.get_mask().__hitTestMask(t,e))return!1;this.__getRenderTransform();var s=this.__renderTransform.__transformInverseX(t,e),o=this.__renderTransform.__transformInverseY(t,e);return s>0&&o>0&&s<=this.__bitmapData.width&&o<=this.__bitmapData.height&&(!(null!=this.__scrollRect&&!this.__scrollRect.contains(s,o))&&(null==i||r||i.push(a),!0))},__hitTestMask:function(t,e){if(null==this.__bitmapData)return!1;this.__getRenderTransform();var n=this.__renderTransform.__transformInverseX(t,e),i=this.__renderTransform.__transformInverseY(t,e);return n>0&&i>0&&n<=this.__bitmapData.width&&i<=this.__bitmapData.height},__renderCairo:function(t){},__renderCairoMask:function(t){t.cairo.rectangle(0,0,this.get_width(),this.get_height())},__renderCanvas:function(t){this.__updateCacheBitmap(t,!this.__worldColorTransform.__isDefault()),null==this.__cacheBitmap||this.__cacheBitmapRender?o().default.render(this,t):o().default.render(this.__cacheBitmap,t)},__renderCanvasMask:function(t){t.context.rect(0,0,this.get_width(),this.get_height())},__renderDOM:function(t){this.__updateCacheBitmap(t,!this.__worldColorTransform.__isDefault()),null==this.__cacheBitmap||this.__cacheBitmapRender?l().default.render(this,t):(this.__renderDOMClear(t),this.__cacheBitmap.stage=this.stage,l().default.render(this.__cacheBitmap,t))},__renderDOMClear:function(t){l().default.clear(this,t)},__renderGL:function(t){this.__updateCacheBitmap(t,!1),null==this.__cacheBitmap||this.__cacheBitmapRender?u().default.render(this,t):u().default.render(this.__cacheBitmap,t)},__renderGLMask:function(t){this.__updateCacheBitmap(t,!1),null==this.__cacheBitmap||this.__cacheBitmapRender?u().default.renderMask(this,t):u().default.renderMask(this.__cacheBitmap,t)},__updateCacheBitmap:function(t,e){return null!=this.get_filters()&&a().default.prototype.__updateCacheBitmap.call(this,t,e)},__updateMask:function(t){null!=this.__bitmapData&&(t.__commands.overrideMatrix(this.__worldTransform),t.beginFill(0),t.drawRect(0,0,this.__bitmapData.width,this.__bitmapData.height),null==t.__bounds&&(t.__bounds=new(s().default)),this.__getBounds(t.__bounds,n(28).default.__identity),a().default.prototype.__updateMask.call(this,t))},get_bitmapData:function(){return this.__bitmapData},set_bitmapData:function(t){this.__bitmapData=t,this.smoothing=!1,this.__setRenderDirty();null!=this.__filters&&this.__filters.length;return this.__imageVersion=-1,this.__bitmapData},get_height:function(){return null!=this.__bitmapData?this.__bitmapData.height*Math.abs(this.get_scaleY()):0},set_height:function(t){return null!=this.__bitmapData?(t!=this.__bitmapData.height&&(this.__setRenderDirty(),this.set_scaleY(t/this.__bitmapData.height)),t):0},get_width:function(){return null!=this.__bitmapData?this.__bitmapData.width*Math.abs(this.__scaleX):0},set_width:function(t){return null!=this.__bitmapData?(t!=this.__bitmapData.width&&(this.__setRenderDirty(),this.set_scaleX(t/this.__bitmapData.width)),t):0}})).__class__=i["openfl.display.Bitmap"]=_,Object.defineProperty(_.prototype,"bitmapData",{get:function(){return this.get_bitmapData()},set:function(t){return this.set_bitmapData(t)}}),e.default=_}).call(e,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(1).default;n(2).default;var r=function(t,e,n){this.construct(this,t,e)};r.__name__=["openfl","VectorData"],r.prototype={construct:function(t,e,n){return null!=e&&(t.length=e),t.fixed=1==n,t},concat:function(t){return r.ofArray(Array.prototype.concat.call(this,t))},copy:function(){return r.ofArray(this)},get:function(t){return this[t]},indexOf:function(t,e){return null==e&&(e=0),-1},insertAt:function(t,e){(!this.fixed||tthis.__children.length||e<0)throw new(s().default)("Invalid index position "+e);if(t.parent==this)this.__children[e]!=t&&(o().default.remove(this.__children,t),this.__children.splice(e,0,t),this.__setRenderDirty());else{null!=t.parent&&t.parent.removeChild(t),this.__children.splice(e,0,t),t.parent=this;var a=null!=this.stage&&null==t.stage;a&&this.__setStageReference(this.stage),t.__setTransformDirty(),t.__setRenderDirty(),this.__setRenderDirty();var u=new(l().default)("added",!0);if(u.target=t,t.__dispatchWithCapture(u),a){var _=new(l().default)("addedToStage",!1,!1);t.__dispatchWithCapture(_),t.__dispatchChildren(_)}}return t},areInaccessibleObjectsUnderPoint:function(t){return!1},contains:function(t){for(;t!=this&&null!=t;)t=t.parent;return t==this},getChildAt:function(t){return t>=0&&t=0&&tthis.__children.length-1)){if(ethis.__children.length)throw new(s().default)(new(n(182).default)("The supplied index is out of bounds."));for(var i=e-t;i>=0;)this.removeChildAt(t),--i}},resolve:function(t){if(null==this.__children)return null;for(var e=0,n=this.__children;e=0&&e<=this.__children.length&&t.parent==this&&(o().default.remove(this.__children,t),this.__children.splice(e,0,t))},stopAllMovieClips:function(){this.__stopAllMovieClips()},swapChildren:function(t,e){if(t.parent==this&&e.parent==this){var n=this.__children.indexOf(t),i=this.__children.indexOf(e);this.__children[n]=e,this.__children[i]=t,this.__setRenderDirty()}},swapChildrenAt:function(t,e){var n=this.__children[t];this.__children[t]=this.__children[e],this.__children[e]=n,n=null,this.__setRenderDirty()},__dispatchChildren:function(t){if(null!=this.__children)for(var e=0,n=this.__children;e=0&&!(((_=this.__children[o].__getInteractive(null))||this.mouseEnabled&&!f)&&this.__children[o].__hitTest(t,e,n,i,!0,this.__children[o])&&(f=!0,_&&i.length>l)););if(f)return i.splice(l,0,a),!0}}else for(;--o>=0;)if(this.__children[o].__hitTest(t,e,n,null,!0,this.__children[o]))return null!=i&&i.push(a),!0}else for(;--o>=0;)this.__children[o].__hitTest(t,e,n,i,!1,this.__children[o]);return!1},__hitTestMask:function(t,e){for(var n=this.__children.length;--n>=0;)if(this.__children[n].__hitTestMask(t,e))return!0;return!1},__readGraphicsData:function(t,e){if(a().default.prototype.__readGraphicsData.call(this,t,e),e)for(var n=0,i=this.__children;n0)if(t.maskManager.pushObject(this),t.filterManager.pushObject(this),t.clearRenderDirty){for(var e=0,n=this.__children;e0&&(t.filterManager.popObject(this),t.maskManager.popObject(this))}},__renderGLMask:function(t){if(a().default.prototype.__renderGLMask.call(this,t),null==this.__cacheBitmap||this.__cacheBitmapRender){if(t.clearRenderDirty){for(var e=0,n=this.__children;e=0){for(var r=e,s=i.length,l=0;l=0){for(var s=e,l=i.length,u=0;u>10)},r.encodeLowSurrogate=function(t){return 1023&t|56320},r.isScalar=function(t){return 0<=t&&t<=1114111&&!r.isHighSurrogate(t)&&!r.isLowSurrogate(t)},r.isHighSurrogate=function(t){return 55296<=t&&t<=56319},r.isLowSurrogate=function(t){return 56320<=t&&t<=57343},r.minCodePoint=0,r.maxCodePoint=1114111,r.minHighSurrogate=55296,r.maxHighSurrogate=56319,r.minLowSurrogate=56320,r.maxLowSurrogate=57343,e.default=r}).call(e,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(1).default,r=(n(2).default,n(3).default);function a(){return n(78)}var s=function(t,e,n,i,r,s,o,l){null==l&&(l=!1),null==o&&(o=!1),null==s&&(s=1),null==r&&(r=2),null==i&&(i=6),null==n&&(n=6),null==e&&(e=1),null==t&&(t=16711680),a().default.call(this),this.__color=t,this.__alpha=e,this.set_blurX(n),this.set_blurY(i),this.__strength=r,this.set_quality(s),this.__inner=o,this.__knockout=l,this.__needSecondBitmapData=!0,this.__preserveObject=!0,this.__renderDirty=!0};s.__name__=["openfl","filters","GlowFilter"],s.__super__=a().default,(s.prototype=r(a().default.prototype,{clone:function(){return new s(this.__color,this.__alpha,this.__blurX,this.__blurY,this.__strength,this.__quality,this.__inner,this.__knockout)},__applyFilter:function(t,e,i,r){var a=this.__color>>16&255,s=this.__color>>8&255,o=255&this.__color;return e.colorTransform(e.rect,new(n(40).default)(0,0,0,1,a,s,o,255*this.__alpha)),n(65).default.gaussianBlur(t.image,e.image,i.__toLimeRectangle(),r.__toLimeVector2(),this.__blurX,this.__blurY,this.__quality,this.__strength)==t.image?t:e},__initShader:function(t,e){return null},get_alpha:function(){return this.__alpha},set_alpha:function(t){return t!=this.__alpha&&(this.__renderDirty=!0),this.__alpha=t},get_blurX:function(){return this.__blurX},set_blurX:function(t){return t!=this.__blurX&&(this.__blurX=t,this.__renderDirty=!0,this.__leftExtension=t>0?Math.ceil(t):0,this.__rightExtension=this.__leftExtension),t},get_blurY:function(){return this.__blurY},set_blurY:function(t){return t!=this.__blurY&&(this.__blurY=t,this.__renderDirty=!0,this.__topExtension=t>0?Math.ceil(t):0,this.__bottomExtension=this.__topExtension),t},get_color:function(){return this.__color},set_color:function(t){return t!=this.__color&&(this.__renderDirty=!0),this.__color=t},get_inner:function(){return this.__inner},set_inner:function(t){return t!=this.__inner&&(this.__renderDirty=!0),this.__inner=t},get_knockout:function(){return this.__knockout},set_knockout:function(t){return t!=this.__knockout&&(this.__renderDirty=!0),this.__knockout=t},get_quality:function(){return this.__quality},set_quality:function(t){return this.__horizontalPasses=this.__blurX<=0?0:Math.round(this.__blurX*(t/4))+1,this.__verticalPasses=this.__blurY<=0?0:Math.round(this.__blurY*(t/4))+1,this.__numShaderPasses=this.__horizontalPasses+this.__verticalPasses,t!=this.__quality&&(this.__renderDirty=!0),this.__quality=t},get_strength:function(){return this.__strength},set_strength:function(t){return t!=this.__strength&&(this.__renderDirty=!0),this.__strength=t}})).__class__=i["openfl.filters.GlowFilter"]=s,Object.defineProperties(s.prototype,{alpha:{get:function(){return this.get_alpha()},set:function(t){return this.set_alpha(t)}},blurX:{get:function(){return this.get_blurX()},set:function(t){return this.set_blurX(t)}},blurY:{get:function(){return this.get_blurY()},set:function(t){return this.set_blurY(t)}},color:{get:function(){return this.get_color()},set:function(t){return this.set_color(t)}},inner:{get:function(){return this.get_inner()},set:function(t){return this.set_inner(t)}},knockout:{get:function(){return this.get_knockout()},set:function(t){return this.set_knockout(t)}},quality:{get:function(){return this.get_quality()},set:function(t){return this.set_quality(t)}},strength:{get:function(){return this.get_strength()},set:function(t){return this.set_strength(t)}}}),e.default=s}).call(e,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(1).default,r=(n(2).default,n(3).default);function a(){return n(60)}var s=function(t,e,n,i,r){null==r&&(r=0),null==i&&(i=""),null==n&&(n=!1),null==e&&(e=!0),a().default.call(this,t,e,n,i,r)};s.__name__=["openfl","events","IOErrorEvent"],s.__super__=a().default,(s.prototype=r(a().default.prototype,{clone:function(){var t=new s(this.type,this.bubbles,this.cancelable,this.text,this.errorID);return t.target=this.target,t.currentTarget=this.currentTarget,t.eventPhase=this.eventPhase,t},toString:function(){return this.__formatToString("IOErrorEvent",["type","bubbles","cancelable","text","errorID"])}})).__class__=i["openfl.events.IOErrorEvent"]=s,s.IO_ERROR="ioError",e.default=s}).call(e,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(1).default,r=(n(2).default,n(3).default);function a(){return n(136)}function s(){return n(17)}function o(){return n(24)}var l=function(t){a().default.call(this,t)};l.__name__=["openfl","text","Font"],l.__super__=a().default,(l.prototype=r(a().default.prototype,{__fromLimeFont:function(t){this.__copyFrom(t)},__initialize:function(){return this.__initialized},get_fontName:function(){return this.name},set_fontName:function(t){return this.name=t}})).__class__=i["openfl.text.Font"]=l,Object.defineProperty(l.prototype,"fontName",{get:function(){return this.get_fontName()},set:function(t){return this.set_fontName(t)}}),l.enumerateFonts=function(t){return null==t&&(t=!1),l.__registeredFonts},l.fromBytes=function(t){var e=new l;return e.__fromBytes(s().default.toBytes(t)),e},l.fromFile=function(t){var e=new l;return e.__fromFile(t),e},l.loadFromBytes=function(t){return a().default.loadFromBytes(s().default.toBytes(t)).then(function(t){var e=new l;return e.__fromLimeFont(t),o().default.withValue(e)})},l.loadFromFile=function(t){return a().default.loadFromFile(t).then(function(t){var e=new l;return e.__fromLimeFont(t),o().default.withValue(e)})},l.loadFromName=function(t){return a().default.loadFromName(t).then(function(t){var e=new l;return e.__fromLimeFont(t),o().default.withValue(e)})},l.registerFont=function(t){var e=n(20).default.__cast(n(10).default.createInstance(t,[]),l);null!=e&&(l.__registeredFonts.push(e),l.__fontByName.set(e.name,e))},l.__fontByName=new(n(18).default),l.__registeredFonts=[],e.default=l}).call(e,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(1).default;n(2).default;function r(){return n(74)}function a(){return n(24)}function s(){return n(7)}function o(){return n(12)}var l=function(){this.assets=[],this.libraryArgs=[],this.version=2};l.__name__=["lime","utils","AssetManifest"],(l.prototype={serialize:function(){var t={};return t.version=this.version,t.libraryType=this.libraryType,t.libraryArgs=this.libraryArgs,t.name=this.name,t.assets=n(198).default.run(this.assets),JSON.stringify(t)}}).__class__=i["lime.utils.AssetManifest"]=l,l.fromBytes=function(t,e){return null!=t?l.parse(t.getString(0,t.get_length()),e):null},l.fromFile=function(t,e){return t=l.__resolvePath(t),e=l.__resolveRootPath(e,t),null==t?null:l.fromBytes(r().default.fromFile(t),e)},l.loadFromBytes=function(t,e){return a().default.withValue(l.fromBytes(t,e))},l.loadFromFile=function(t,e){return t=l.__resolvePath(t),e=l.__resolveRootPath(e,t),null==t?null:r().default.loadFromFile(t).then(function(t){return a().default.withValue(l.fromBytes(t,e))})},l.parse=function(t,e){if(null==t||""==t)return null;var i=JSON.parse(t),r=new l;return r.name=i.name,r.libraryType=i.libraryType,r.libraryArgs=i.libraryArgs,r.assets=n(199).default.run(i.assets),null!=e&&(r.rootPath=e),r},l.__resolvePath=function(t){if(null==t)return null;var e,n=t.indexOf("?");for(e=n>-1?s().default.substr(t,0,n):t,o().default.replace(e,"\\","/");o().default.endsWith(e,"/");)e=s().default.substr(e,0,e.length-1);return o().default.endsWith(e,".bundle")?n>-1?e+"/library.json"+s().default.substr(t,n,null):e+"/library.json":t},l.__resolveRootPath=function(t,e){if(null!=t)return t;var i=e.indexOf("?");for(t=i>-1?s().default.substr(e,0,i):e,o().default.replace(t,"\\","/");o().default.endsWith(t,"/");){if("/"==t)return t;t=s().default.substr(t,0,t.length-1)}return o().default.endsWith(t,".bundle")?t:n(80).default.directory(t)},e.default=l}).call(e,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(1).default,r=(n(2).default,n(3).default);function a(){return n(82)}function s(){return n(397)}var o=function(t,e,n,i,r,o){a().default.call(this,t),this.__width=e,this.__height=n,this.__optimizeForRenderToTexture=r,this.__streamingLevels=o,s().default.create(this,this.__context.__renderSession)};o.__name__=["openfl","display3D","textures","Texture"],o.__super__=a().default,(o.prototype=r(a().default.prototype,{uploadCompressedTextureFromByteArray:function(t,e,i){null==i&&(i=!1);var r=this;i?n(26).default.delay(function(){s().default.uploadCompressedTextureFromByteArray(r,r.__context.__renderSession,t,e),r.dispatchEvent(new(n(9).default)("textureReady"))},1):s().default.uploadCompressedTextureFromByteArray(this,this.__context.__renderSession,t,e)},uploadFromBitmapData:function(t,e,n){null==n&&(n=!1),null==e&&(e=0),s().default.uploadFromBitmapData(this,this.__context.__renderSession,t,e,n)},uploadFromByteArray:function(t,e,n){null==n&&(n=0),s().default.uploadFromByteArray(this,this.__context.__renderSession,t,e,n)},uploadFromTypedArray:function(t,e){null==e&&(e=0),s().default.uploadFromTypedArray(this,this.__context.__renderSession,t,e)},__setSamplerState:function(t){s().default.setSamplerState(this,this.__context.__renderSession,t)}})).__class__=i["openfl.display3D.textures.Texture"]=o,o.__lowMemoryMode=!1,e.default=o}).call(e,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(1).default;n(2).default;function r(){return n(37)}var a=function(){};a.__name__=["openfl","_internal","stage3D","opengl","GLTextureBase"],(a.prototype={}).__class__=i["openfl._internal.stage3D.opengl.GLTextureBase"]=a,a.create=function(t,e){var i=e.gl;if(t.__textureID=i.createTexture(),t.__textureContext=i,null==a.__supportsBGRA){a.__textureInternalFormat=i.RGBA;a.__supportsBGRA=!1,a.__textureFormat=i.RGBA}null==a.__compressedTextureFormats&&(a.__compressedTextureFormats=new(n(396).default)(i)),t.__internalFormat=a.__textureInternalFormat,t.__format=a.__textureFormat},a.dispose=function(t,e){var n=e.gl;null!=t.__alphaTexture&&t.__alphaTexture.dispose(),n.deleteTexture(t.__textureID)},a.getImage=function(t,e,i){var r=i.image;if(!i.__isValid||null==r)return null;n(32).default.sync(r,!1);var a=e.gl;return r.type==n(55).default.DATA||r.get_premultiplied()?!r.get_premultiplied()&&r.get_transparent()&&(a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL,0),(r=r.clone()).set_premultiplied(!0)):a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL,1),0!=r.get_format()&&((r=r.clone()).set_format(0),r.buffer.premultiplied=!0),r},a.setSamplerState=function(t,e,n){if(!n.equals(t.__samplerState)){var i=e.gl;i.bindTexture(t.__textureTarget,t.__textureID),r().default.CheckGLError(),i.texParameteri(t.__textureTarget,i.TEXTURE_MIN_FILTER,n.minFilter),r().default.CheckGLError(),i.texParameteri(t.__textureTarget,i.TEXTURE_MAG_FILTER,n.magFilter),r().default.CheckGLError(),i.texParameteri(t.__textureTarget,i.TEXTURE_WRAP_S,n.wrapModeS),r().default.CheckGLError(),i.texParameteri(t.__textureTarget,i.TEXTURE_WRAP_T,n.wrapModeT),r().default.CheckGLError();n.lodBias;t.__samplerState=n,t.__samplerState.__samplerDirty=!1}},a.__supportsBGRA=null,a.__compressedTextureFormats=null,e.default=a}).call(e,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(1).default,r=(n(2).default,n(3).default);function a(){return n(82)}function s(){return n(399)}var o=function(t,e,n,i,r){a().default.call(this,t),this.__size=e,this.__optimizeForRenderToTexture=i,this.__streamingLevels=r,s().default.create(this,this.__context.__renderSession)};o.__name__=["openfl","display3D","textures","CubeTexture"],o.__super__=a().default,(o.prototype=r(a().default.prototype,{uploadCompressedTextureFromByteArray:function(t,e,i){null==i&&(i=!1);var r=this;i?n(26).default.delay(function(){s().default.uploadCompressedTextureFromByteArray(r,r.__context.__renderSession,t,e),r.dispatchEvent(new(n(9).default)("textureReady"))},1):s().default.uploadCompressedTextureFromByteArray(this,this.__context.__renderSession,t,e)},uploadFromBitmapData:function(t,e,n,i){null==i&&(i=!1),null==n&&(n=0),null!=t&&s().default.uploadFromBitmapData(this,this.__context.__renderSession,t,e,n,i)},uploadFromByteArray:function(t,e,n,i){null==i&&(i=0),s().default.uploadFromByteArray(this,this.__context.__renderSession,t,e,n,i)},uploadFromTypedArray:function(t,e,n){null==n&&(n=0),null!=t&&s().default.uploadFromTypedArray(this,this.__context.__renderSession,t,e,n)},__setSamplerState:function(t){s().default.setSamplerState(this,this.__context.__renderSession,t)}})).__class__=i["openfl.display3D.textures.CubeTexture"]=o,e.default=o}).call(e,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(1).default,r=function(){};r.__name__=["haxe","IMap"],(r.prototype={}).__class__=i["haxe.IMap"]=r,e.default=r}).call(e,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(1).default;n(2).default;function r(){return n(5)}var a=function(){this.canceled=!1,this.__listeners=[],this.__priorities=[],this.__repeat=[]};a.__name__=["lime","app","_Event_Int_Void"],(a.prototype={add:function(t,e,n){null==n&&(n=0),null==e&&(e=!1);for(var i=0,r=this.__priorities.length;ithis.__priorities[a])return this.__listeners.splice(a,0,t),this.__priorities.splice(a,0,n),void this.__repeat.splice(a,0,!e)}this.__listeners.push(t),this.__priorities.push(n),this.__repeat.push(!e)},cancel:function(){this.canceled=!0},has:function(t){for(var e=0,n=this.__listeners;e=0;)r().default.compareMethods(this.__listeners[e],t)&&(this.__listeners.splice(e,1),this.__priorities.splice(e,1),this.__repeat.splice(e,1))},dispatch:function(t){this.canceled=!1;for(var e=this.__listeners,n=this.__repeat,i=0;i=0){var f=r().default.substr(u,0,_),d=r().default.substr(u,_+1,null);l=a().default.Method(f,d)}}n.push(a().default.FilePos(l,o.getFileName(),o.getLineNumber()))}return n};var n=s.makeStack(t.stack);return Error.prepareStackTrace=e,n},s.callStack=function(){try{throw new Error}catch(e){e instanceof n(6).default&&(e=e.val);var t=s.getStack(e);return t.shift(),t}},s.exceptionStack=function(){return s.getStack(s.lastException)},s.toString=function(t){for(var e=new(n(31).default),i=0;i 0.0) {\n\t\t\t\t\t\n\t\t\t\t\tgl_FragColor = vec4 (color.rgb * color.a * vAlpha, color.a * vAlpha);\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t\tgl_FragColor = vec4 (0.0, 0.0, 0.0, 0.0);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\tgl_FragColor = color * vAlpha;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}"),null==this.__glVertexSource&&(this.__glVertexSource="attribute float aAlpha;\n\t\tattribute vec4 aColorMultipliers0;\n\t\tattribute vec4 aColorMultipliers1;\n\t\tattribute vec4 aColorMultipliers2;\n\t\tattribute vec4 aColorMultipliers3;\n\t\tattribute vec4 aColorOffsets;\n\t\tattribute vec4 aPosition;\n\t\tattribute vec2 aTexCoord;\n\t\tvarying float vAlpha;\n\t\tvarying vec4 vColorMultipliers0;\n\t\tvarying vec4 vColorMultipliers1;\n\t\tvarying vec4 vColorMultipliers2;\n\t\tvarying vec4 vColorMultipliers3;\n\t\tvarying vec4 vColorOffsets;\n\t\tvarying vec2 vTexCoord;\n\t\t\n\t\tuniform mat4 uMatrix;\n\t\tuniform bool uColorTransform;\n\t\t\n\t\tvoid main(void) {\n\t\t\t\n\t\t\tvAlpha = aAlpha;\n\t\t\tvTexCoord = aTexCoord;\n\t\t\t\n\t\t\tif (uColorTransform) {\n\t\t\t\t\n\t\t\t\tvColorMultipliers0 = aColorMultipliers0;\n\t\t\t\tvColorMultipliers1 = aColorMultipliers1;\n\t\t\t\tvColorMultipliers2 = aColorMultipliers2;\n\t\t\t\tvColorMultipliers3 = aColorMultipliers3;\n\t\t\t\tvColorOffsets = aColorOffsets;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tgl_Position = uMatrix * aPosition;\n\t\t\t\n\t\t}"),this.byteCode=t,this.precisionHint="full",this.__glSourceDirty=!0,this.__numPasses=1};_.__name__=["openfl","display","Shader"],(_.prototype={__disable:function(){null!=this.glProgram&&this.__disableGL()},__disableGL:function(){null!=this.get_data().uImage0&&(this.get_data().uImage0.input=null);for(var t=0,e=this.__paramBool;t0&&this.gl.enable(this.gl.TEXTURE_2D)},__init:function(){null==this.__data&&(this.__data=new(a().default)(null)),null==this.__glFragmentSource||null==this.__glVertexSource||null!=this.glProgram&&!this.__glSourceDirty||this.__initGL()},__initGL:function(){if(this.__glSourceDirty||null==this.__isUniform){this.__glSourceDirty=!1,this.glProgram=null,this.__isUniform=new(n(18).default),this.__inputBitmapData=[],this.__paramBool=[],this.__paramFloat=[],this.__paramInt=[];var t=new Float32Array(4);this.__uniformMatrix2=t;var e=new Float32Array(9);this.__uniformMatrix3=e;var i=new Float32Array(16);this.__uniformMatrix4=i,this.__processGLData(this.get_glVertexSource(),"attribute"),this.__processGLData(this.get_glVertexSource(),"uniform"),this.__processGLData(this.get_glFragmentSource(),"uniform")}if(null!=this.gl&&null==this.glProgram){var r="#ifdef GL_ES\n\t\t\t\tprecision "+("full"==this.precisionHint?"mediump":"lowp")+" float;\n\t\t\t\t#endif\n\t\t\t\t"+this.get_glFragmentSource();if(this.glProgram=n(300).default.createProgram(this.get_glVertexSource(),r),null!=this.glProgram){for(var a=0,s=this.__inputBitmapData;a0?(g.w=Math.sqrt(1+v)/2,g.x=(i.get(6)-i.get(9))/(4*g.w),g.y=(i.get(8)-i.get(2))/(4*g.w),g.z=(i.get(1)-i.get(4))/(4*g.w)):i.get(0)>i.get(5)&&i.get(0)>i.get(10)?(g.x=Math.sqrt(1+i.get(0)-i.get(5)-i.get(10))/2,g.w=(i.get(6)-i.get(9))/(4*g.x),g.y=(i.get(1)+i.get(4))/(4*g.x),g.z=(i.get(8)+i.get(2))/(4*g.x)):i.get(5)>i.get(10)?(g.y=Math.sqrt(1+i.get(5)-i.get(0)-i.get(10))/2,g.x=(i.get(1)+i.get(4))/(4*g.y),g.w=(i.get(8)-i.get(2))/(4*g.y),g.z=(i.get(6)+i.get(9))/(4*g.y)):(g.z=Math.sqrt(1+i.get(10)-i.get(0)-i.get(5))/2,g.x=(i.get(8)+i.get(2))/(4*g.z),g.y=(i.get(6)+i.get(9))/(4*g.z),g.w=(i.get(1)-i.get(4))/(4*g.z))}return e.push(r),e.push(g),e.push(s),e},deltaTransformVector:function(t){var e=t.x,n=t.y,i=t.z;return new(a().default)(e*this.rawData.get(0)+n*this.rawData.get(4)+i*this.rawData.get(8)+this.rawData.get(3),e*this.rawData.get(1)+n*this.rawData.get(5)+i*this.rawData.get(9)+this.rawData.get(7),e*this.rawData.get(2)+n*this.rawData.get(6)+i*this.rawData.get(10)+this.rawData.get(11),0)},identity:function(){this.rawData=r().default.ofArray([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])},interpolateTo:function(t,e){for(var n=0;n<16;){var i=n++;this.rawData.set(i,this.rawData.get(i)+(t.rawData.get(i)-this.rawData.get(i))*e)}},invert:function(){var t=this.get_determinant(),e=Math.abs(t)>1e-11;if(e){t=1/t;var n=this.rawData.get(0),i=this.rawData.get(4),r=this.rawData.get(8),a=this.rawData.get(12),s=this.rawData.get(1),o=this.rawData.get(5),l=this.rawData.get(9),u=this.rawData.get(13),_=this.rawData.get(2),f=this.rawData.get(6),d=this.rawData.get(10),h=this.rawData.get(14),c=this.rawData.get(3),p=this.rawData.get(7),g=this.rawData.get(11),m=this.rawData.get(15);this.rawData.set(0,t*(o*(d*m-h*g)-l*(f*m-h*p)+u*(f*g-d*p))),this.rawData.set(1,-t*(s*(d*m-h*g)-l*(_*m-h*c)+u*(_*g-d*c))),this.rawData.set(2,t*(s*(f*m-h*p)-o*(_*m-h*c)+u*(_*p-f*c))),this.rawData.set(3,-t*(s*(f*g-d*p)-o*(_*g-d*c)+l*(_*p-f*c))),this.rawData.set(4,-t*(i*(d*m-h*g)-r*(f*m-h*p)+a*(f*g-d*p))),this.rawData.set(5,t*(n*(d*m-h*g)-r*(_*m-h*c)+a*(_*g-d*c))),this.rawData.set(6,-t*(n*(f*m-h*p)-i*(_*m-h*c)+a*(_*p-f*c))),this.rawData.set(7,t*(n*(f*g-d*p)-i*(_*g-d*c)+r*(_*p-f*c))),this.rawData.set(8,t*(i*(l*m-u*g)-r*(o*m-u*p)+a*(o*g-l*p))),this.rawData.set(9,-t*(n*(l*m-u*g)-r*(s*m-u*c)+a*(s*g-l*c))),this.rawData.set(10,t*(n*(o*m-u*p)-i*(s*m-u*c)+a*(s*p-o*c))),this.rawData.set(11,-t*(n*(o*g-l*p)-i*(s*g-l*c)+r*(s*p-o*c))),this.rawData.set(12,-t*(i*(l*h-u*d)-r*(o*h-u*f)+a*(o*d-l*f))),this.rawData.set(13,t*(n*(l*h-u*d)-r*(s*h-u*_)+a*(s*d-l*_))),this.rawData.set(14,-t*(n*(o*h-u*f)-i*(s*h-u*_)+a*(s*f-o*_))),this.rawData.set(15,t*(n*(o*d-l*f)-i*(s*d-l*_)+r*(s*f-o*_)))}return e},pointAt:function(t,e,n){null==e&&(e=new(a().default)(0,0,-1)),null==n&&(n=new(a().default)(0,-1,0));var i,r=e.subtract(t),s=n.clone();r.normalize(),s.normalize();var o=r.clone();o.scaleBy(s.dotProduct(r)),(s=s.subtract(o)).get_length()>0?s.normalize():s=0!=r.x?new(a().default)(-r.y,r.x,0):new(a().default)(1,0,0),(i=s.crossProduct(r)).normalize(),this.rawData.set(0,i.x),this.rawData.set(4,i.y),this.rawData.set(8,i.z),this.rawData.set(12,0),this.rawData.set(1,s.x),this.rawData.set(5,s.y),this.rawData.set(9,s.z),this.rawData.set(13,0),this.rawData.set(2,r.x),this.rawData.set(6,r.y),this.rawData.set(10,r.z),this.rawData.set(14,0),this.rawData.set(3,t.x),this.rawData.set(7,t.y),this.rawData.set(11,t.z),this.rawData.set(15,1)},prepend:function(t){var e=t.rawData.get(0),n=t.rawData.get(4),i=t.rawData.get(8),r=t.rawData.get(12),a=t.rawData.get(1),s=t.rawData.get(5),o=t.rawData.get(9),l=t.rawData.get(13),u=t.rawData.get(2),_=t.rawData.get(6),f=t.rawData.get(10),d=t.rawData.get(14),h=t.rawData.get(3),c=t.rawData.get(7),p=t.rawData.get(11),g=t.rawData.get(15),m=this.rawData.get(0),v=this.rawData.get(4),w=this.rawData.get(8),y=this.rawData.get(12),b=this.rawData.get(1),x=this.rawData.get(5),E=this.rawData.get(9),T=this.rawData.get(13),A=this.rawData.get(2),R=this.rawData.get(6),S=this.rawData.get(10),M=this.rawData.get(14),I=this.rawData.get(3),D=this.rawData.get(7),C=this.rawData.get(11),L=this.rawData.get(15);this.rawData.set(0,e*m+a*v+u*w+h*y),this.rawData.set(1,e*b+a*x+u*E+h*T),this.rawData.set(2,e*A+a*R+u*S+h*M),this.rawData.set(3,e*I+a*D+u*C+h*L),this.rawData.set(4,n*m+s*v+_*w+c*y),this.rawData.set(5,n*b+s*x+_*E+c*T),this.rawData.set(6,n*A+s*R+_*S+c*M),this.rawData.set(7,n*I+s*D+_*C+c*L),this.rawData.set(8,i*m+o*v+f*w+p*y),this.rawData.set(9,i*b+o*x+f*E+p*T),this.rawData.set(10,i*A+o*R+f*S+p*M),this.rawData.set(11,i*I+o*D+f*C+p*L),this.rawData.set(12,r*m+l*v+d*w+g*y),this.rawData.set(13,r*b+l*x+d*E+g*T),this.rawData.set(14,r*A+l*R+d*S+g*M),this.rawData.set(15,r*I+l*D+d*C+g*L)},prependRotation:function(t,e,n){var i,r,a=0;i=r=a,null!=n&&(i=n.x,r=n.y,a=n.z);var o=t*Math.PI/180,l=Math.cos(o),u=Math.sin(o),_=e.x,f=e.y,d=e.z,h=_*_,c=f*f,p=d*d,g=h+c+p;if(0!=g){var m=Math.sqrt(g);_/=m,f/=m,d/=m,h/=g,c/=g,p/=g}var v=1-l,w=new s,y=w.rawData;y.set(0,h+(c+p)*l),y.set(1,_*f*v+d*u),y.set(2,_*d*v-f*u),y.set(4,_*f*v-d*u),y.set(5,c+(h+p)*l),y.set(6,f*d*v+_*u),y.set(8,_*d*v+f*u),y.set(9,f*d*v-_*u),y.set(10,p+(h+c)*l),y.set(12,(i*(c+p)-_*(r*f+a*d))*v+(r*d-a*f)*u),y.set(13,(r*(h+p)-f*(i*_+a*d))*v+(a*_-i*d)*u),y.set(14,(a*(h+c)-d*(i*_+r*f))*v+(i*f-r*_)*u),this.prepend(w)},prependScale:function(t,e,n){this.prepend(new s(r().default.ofArray([t,0,0,0,0,e,0,0,0,0,n,0,0,0,0,1])))},prependTranslation:function(t,e,n){var i=new s;i.set_position(new(a().default)(t,e,n)),this.prepend(i)},recompose:function(t,e){if(t.get_length()<3||0==t.get(2).x||0==t.get(2).y||0==t.get(2).z)return!1;null==e&&(e="eulerAngles"),this.identity();var n=[];if(n[0]=n[1]=n[2]=t.get(2).x,n[4]=n[5]=n[6]=t.get(2).y,n[8]=n[9]=n[10]=t.get(2).z,null==e){var i=t.get(1).x,r=t.get(1).y,a=t.get(1).z,s=t.get(1).w;"axisAngle"==e&&(i*=Math.sin(s/2),r*=Math.sin(s/2),a*=Math.sin(s/2),s=Math.cos(s/2)),this.rawData.set(0,(1-2*r*r-2*a*a)*n[0]),this.rawData.set(1,(2*i*r+2*s*a)*n[1]),this.rawData.set(2,(2*i*a-2*s*r)*n[2]),this.rawData.set(3,0),this.rawData.set(4,(2*i*r-2*s*a)*n[4]),this.rawData.set(5,(1-2*i*i-2*a*a)*n[5]),this.rawData.set(6,(2*r*a+2*s*i)*n[6]),this.rawData.set(7,0),this.rawData.set(8,(2*i*a+2*s*r)*n[8]),this.rawData.set(9,(2*r*a-2*s*i)*n[9]),this.rawData.set(10,(1-2*i*i-2*r*r)*n[10]),this.rawData.set(11,0),this.rawData.set(12,t.get(0).x),this.rawData.set(13,t.get(0).y),this.rawData.set(14,t.get(0).z),this.rawData.set(15,1)}else if("eulerAngles"==e){var o=Math.cos(t.get(1).x),l=Math.cos(t.get(1).y),u=Math.cos(t.get(1).z),_=Math.sin(t.get(1).x),f=Math.sin(t.get(1).y),d=Math.sin(t.get(1).z);this.rawData.set(0,l*u*n[0]),this.rawData.set(1,l*d*n[1]),this.rawData.set(2,-f*n[2]),this.rawData.set(3,0),this.rawData.set(4,(_*f*u-o*d)*n[4]),this.rawData.set(5,(_*f*d+o*u)*n[5]),this.rawData.set(6,_*l*n[6]),this.rawData.set(7,0),this.rawData.set(8,(o*f*u+_*d)*n[8]),this.rawData.set(9,(o*f*d-_*u)*n[9]),this.rawData.set(10,o*l*n[10]),this.rawData.set(11,0),this.rawData.set(12,t.get(0).x),this.rawData.set(13,t.get(0).y),this.rawData.set(14,t.get(0).z),this.rawData.set(15,1)}else{var h=t.get(1).x,c=t.get(1).y,p=t.get(1).z,g=t.get(1).w;"axisAngle"==e&&(h*=Math.sin(g/2),c*=Math.sin(g/2),p*=Math.sin(g/2),g=Math.cos(g/2)),this.rawData.set(0,(1-2*c*c-2*p*p)*n[0]),this.rawData.set(1,(2*h*c+2*g*p)*n[1]),this.rawData.set(2,(2*h*p-2*g*c)*n[2]),this.rawData.set(3,0),this.rawData.set(4,(2*h*c-2*g*p)*n[4]),this.rawData.set(5,(1-2*h*h-2*p*p)*n[5]),this.rawData.set(6,(2*c*p+2*g*h)*n[6]),this.rawData.set(7,0),this.rawData.set(8,(2*h*p+2*g*c)*n[8]),this.rawData.set(9,(2*c*p-2*g*h)*n[9]),this.rawData.set(10,(1-2*h*h-2*c*c)*n[10]),this.rawData.set(11,0),this.rawData.set(12,t.get(0).x),this.rawData.set(13,t.get(0).y),this.rawData.set(14,t.get(0).z),this.rawData.set(15,1)}return 0==t.get(2).x&&this.rawData.set(0,1e-15),0==t.get(2).y&&this.rawData.set(5,1e-15),0==t.get(2).z&&this.rawData.set(10,1e-15),!(0==t.get(2).x||0==t.get(2).y||0==t.get(2).y)},transformVector:function(t){var e=t.x,n=t.y,i=t.z;return new(a().default)(e*this.rawData.get(0)+n*this.rawData.get(4)+i*this.rawData.get(8)+this.rawData.get(12),e*this.rawData.get(1)+n*this.rawData.get(5)+i*this.rawData.get(9)+this.rawData.get(13),e*this.rawData.get(2)+n*this.rawData.get(6)+i*this.rawData.get(10)+this.rawData.get(14),e*this.rawData.get(3)+n*this.rawData.get(7)+i*this.rawData.get(11)+this.rawData.get(15))},transformVectors:function(t,e){for(var n,i,r,a=0;a+3<=t.get_length();)n=t.get(a),i=t.get(a+1),r=t.get(a+2),e.set(a,n*this.rawData.get(0)+i*this.rawData.get(4)+r*this.rawData.get(8)+this.rawData.get(12)),e.set(a+1,n*this.rawData.get(1)+i*this.rawData.get(5)+r*this.rawData.get(9)+this.rawData.get(13)),e.set(a+2,n*this.rawData.get(2)+i*this.rawData.get(6)+r*this.rawData.get(10)+this.rawData.get(14)),a+=3},transpose:function(){var t=this.rawData.copy();this.rawData.set(1,t.get(4)),this.rawData.set(2,t.get(8)),this.rawData.set(3,t.get(12)),this.rawData.set(4,t.get(1)),this.rawData.set(6,t.get(9)),this.rawData.set(7,t.get(13)),this.rawData.set(8,t.get(2)),this.rawData.set(9,t.get(6)),this.rawData.set(11,t.get(14)),this.rawData.set(12,t.get(3)),this.rawData.set(13,t.get(7)),this.rawData.set(14,t.get(11))},get_determinant:function(){return(this.rawData.get(0)*this.rawData.get(5)-this.rawData.get(4)*this.rawData.get(1))*(this.rawData.get(10)*this.rawData.get(15)-this.rawData.get(14)*this.rawData.get(11))-(this.rawData.get(0)*this.rawData.get(9)-this.rawData.get(8)*this.rawData.get(1))*(this.rawData.get(6)*this.rawData.get(15)-this.rawData.get(14)*this.rawData.get(7))+(this.rawData.get(0)*this.rawData.get(13)-this.rawData.get(12)*this.rawData.get(1))*(this.rawData.get(6)*this.rawData.get(11)-this.rawData.get(10)*this.rawData.get(7))+(this.rawData.get(4)*this.rawData.get(9)-this.rawData.get(8)*this.rawData.get(5))*(this.rawData.get(2)*this.rawData.get(15)-this.rawData.get(14)*this.rawData.get(3))-(this.rawData.get(4)*this.rawData.get(13)-this.rawData.get(12)*this.rawData.get(5))*(this.rawData.get(2)*this.rawData.get(11)-this.rawData.get(10)*this.rawData.get(3))+(this.rawData.get(8)*this.rawData.get(13)-this.rawData.get(12)*this.rawData.get(9))*(this.rawData.get(2)*this.rawData.get(7)-this.rawData.get(6)*this.rawData.get(3))},get_position:function(){return new(a().default)(this.rawData.get(12),this.rawData.get(13),this.rawData.get(14))},set_position:function(t){return this.rawData.set(12,t.x),this.rawData.set(13,t.y),this.rawData.set(14,t.z),t}}).__class__=i["openfl.geom.Matrix3D"]=s,Object.defineProperties(s.prototype,{determinant:{get:function(){return this.get_determinant()},set:function(t){return this.set_determinant(t)}},position:{get:function(){return this.get_position()},set:function(t){return this.set_position(t)}}}),s.create2D=function(t,e,n,i){null==i&&(i=0),null==n&&(n=1);var a=i*Math.PI/180,o=Math.cos(a),l=Math.sin(a);return new s(r().default.ofArray([o*n,-l*n,0,0,l*n,o*n,0,0,0,0,1,0,t,e,0,1]))},s.createABCD=function(t,e,n,i,a,o){return new s(r().default.ofArray([t,e,0,0,n,i,0,0,0,0,1,0,a,o,0,1]))},s.createOrtho=function(t,e,n,i,a,o){var l=1/(e-t),u=1/(i-n),_=1/(o-a);return new s(r().default.ofArray([2*l,0,0,0,0,2*u,0,0,0,0,-2*_,0,-(t+e)*l,-(n+i)*u,-(a+o)*_,1]))},s.interpolate=function(t,e,n){for(var i=new s,r=0;r<16;){var a=r++;i.rawData.set(a,t.rawData.get(a)+(e.rawData.get(a)-t.rawData.get(a))*n)}return i},s.__getAxisRotation=function(t,e,n,i){var r=new s,o=new(a().default)(t,e,n),l=-i*(Math.PI/180),u=Math.cos(l),_=Math.sin(l),f=1-u;r.rawData.set(0,u+o.x*o.x*f),r.rawData.set(5,u+o.y*o.y*f),r.rawData.set(10,u+o.z*o.z*f);var d=o.x*o.y*f,h=o.z*_;return r.rawData.set(4,d+h),r.rawData.set(1,d-h),d=o.x*o.z*f,h=o.y*_,r.rawData.set(8,d-h),r.rawData.set(2,d+h),d=o.y*o.z*f,h=o.x*_,r.rawData.set(9,d+h),r.rawData.set(6,d-h),r},e.default=s}).call(e,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(1).default,r=(n(2).default,function(t,e,n,i){null==i&&(i=0),null==n&&(n=0),null==e&&(e=0),null==t&&(t=0),this.w=i,this.x=t,this.y=e,this.z=n});r.__name__=["openfl","geom","Vector3D"],(r.prototype={add:function(t){return new r(this.x+t.x,this.y+t.y,this.z+t.z)},clone:function(){return new r(this.x,this.y,this.z,this.w)},copyFrom:function(t){this.x=t.x,this.y=t.y,this.z=t.z},crossProduct:function(t){return new r(this.y*t.z-this.z*t.y,this.z*t.x-this.x*t.z,this.x*t.y-this.y*t.x,1)},decrementBy:function(t){this.x-=t.x,this.y-=t.y,this.z-=t.z},dotProduct:function(t){return this.x*t.x+this.y*t.y+this.z*t.z},equals:function(t,e){return null==e&&(e=!1),this.x==t.x&&this.y==t.y&&this.z==t.z&&(!e||this.w==t.w)},incrementBy:function(t){this.x+=t.x,this.y+=t.y,this.z+=t.z},nearEquals:function(t,e,n){return null==n&&(n=!1),Math.abs(this.x-t.x)o().default.get_length(this.__text)-1)return null;var e=new(l().default);return this.__getCharBoundaries(t,e)?e:null},getCharIndexAtPoint:function(t,e){if(t<=2||t>this.get_width()+4||e<=0||e>this.get_height()+4)return-1;this.__updateLayout(),t+=this.get_scrollH();for(var n=0,i=this.get_scrollV()-1;n=o.offsetY&&e<=o.offsetY+o.height&&t>=o.offsetX&&t<=o.offsetX+o.width){for(var l=0,u=0,_=o.positions.length;u<_;){var f=u++;if(l+=o.getAdvance(f),t<=o.offsetX+l)return o.startIndex+f}return o.endIndex}}return-1},getFirstCharInParagraph:function(t){if(t<0||t>o().default.get_length(this.__text)-1)return 0;for(var e=this.__textEngine.getLineBreakIndex(),n=0;e>-1;){if(e<=t)n=e+1;else if(e>t)break;e=this.__textEngine.getLineBreakIndex(e+1)}return n},getLineIndexAtPoint:function(t,e){if(this.__updateLayout(),t<=2||t>this.get_width()+4||e<=0||e>this.get_height()+4)return-1;for(var n=0,i=this.get_scrollV()-1;n=o.offsetY&&e<=o.offsetY+o.height)return o.lineIndex}return-1},getLineIndexOfChar:function(t){if(t<0||t>o().default.get_length(this.__text))return-1;this.__updateLayout();for(var e=0,n=this.__textEngine.layoutGroups;e=t)return i.lineIndex}return-1},getLineLength:function(t){if(this.__updateLayout(),t<0||t>this.__textEngine.numLines-1)return 0;for(var e=-1,n=-1,i=0,r=this.__textEngine.layoutGroups;ithis.__textEngine.numLines-1)return-1;for(var e=0,n=this.__textEngine.layoutGroups;ethis.__textEngine.numLines-1)return null;for(var e=-1,n=-1,i=0,r=this.__textEngine.layoutGroups;io().default.get_length(this.__text)-1)return 0;var e=this.getFirstCharInParagraph(t),n=this.__textEngine.getLineBreakIndex(t)+1;return 0==n&&(n=o().default.get_length(this.__text)),n-e},getTextFormat:function(t,e){null==e&&(e=0),null==t&&(t=0);for(var n=null,i=0,r=this.__textEngine.textFormatRanges;i=t||a.start<=e&&a.end>=e)&&(null==n?n=a.format.clone():(a.format.font!=n.font&&(n.font=null),a.format.size!=n.size&&(n.size=null),a.format.color!=n.color&&(n.color=null),a.format.bold!=n.bold&&(n.bold=null),a.format.italic!=n.italic&&(n.italic=null),a.format.underline!=n.underline&&(n.underline=null),a.format.url!=n.url&&(n.url=null),a.format.target!=n.target&&(n.target=null),a.format.align!=n.align&&(n.align=null),a.format.leftMargin!=n.leftMargin&&(n.leftMargin=null),a.format.rightMargin!=n.rightMargin&&(n.rightMargin=null),a.format.indent!=n.indent&&(n.indent=null),a.format.leading!=n.leading&&(n.leading=null),a.format.blockIndent!=n.blockIndent&&(n.blockIndent=null),a.format.bullet!=n.bullet&&(n.bullet=null),a.format.kerning!=n.kerning&&(n.kerning=null),a.format.letterSpacing!=n.letterSpacing&&(n.letterSpacing=null),a.format.tabStops!=n.tabStops&&(n.tabStops=null)))}return n},replaceSelectedText:function(t){if(""!=t||this.__selectionIndex!=this.__caretIndex){var e=this.__caretIndexthis.__selectionIndex?this.__caretIndex:this.__selectionIndex;if(!(e==i&&this.__textEngine.maxChars>0&&o().default.get_length(this.__text)==this.__textEngine.maxChars)){if(e>o().default.get_length(this.__text)&&(e=o().default.get_length(this.__text)),i>o().default.get_length(this.__text)&&(i=o().default.get_length(this.__text)),io().default.get_length(this.__text)&&(a=o().default.get_length(this.__text)),this.setSelection(a,a),this.__updateScrollH()}}},replaceText:function(t,e,n){if(!(eo().default.get_length(this.__text)||null==n)){this.__updateText(o().default.substring(this.__text,0,t)+n+o().default.substring(this.__text,e)),e>o().default.get_length(this.__text)&&(e=o().default.get_length(this.__text));for(var i,r=n.length-(e-t),a=0;a=e?(i.end+=r,++a):i.start>=t&&i.end<=e?(a>0?this.__textEngine.textFormatRanges.splice(a,1):(i.start=0,i.end=t+n.length,++a),r-=i.end-i.start):i.start>t&&i.start<=e?(i.start+=r,++a):++a;this.__updateScrollH(),this.__dirty=!0,this.__layoutDirty=!0,this.__setRenderDirty()}},setSelection:function(t,e){this.__selectionIndex=t,this.__caretIndex=e,this.__stopCursorTimer(),this.__startCursorTimer()},setTextFormat:function(t,e,n){null==n&&(n=0),null==e&&(e=0);var i,r=o().default.get_length(this.get_text());if(e<0&&(e=0),n<0&&(n=0),0==n&&(n=0==e?r:e+1),!(n=r){this.__textFormat.__merge(t);for(var a=0,s=this.__textEngine.textFormatRanges.get_length();a0;){if(--f,(i=this.__textEngine.textFormatRanges.get(f)).start==e&&i.end==n)return i.format=x.__defaultTextFormat.clone(),void i.format.__merge(t);i.start>=e&&i.end<=n&&(_=this.__textEngine.textFormatRanges.indexOf(i,0))>-1&&this.__textEngine.textFormatRanges.splice(_,1)}var d=null,h=null;if(e>0)for(var c=0,p=this.__textEngine.textFormatRanges.get_length();c=e){d=i;break}}if(n=0;)if((i=this.__textEngine.textFormatRanges.get(m)).start<=n){h=i;break}h==d&&(h=new(u().default)(h.format.clone(),h.start,h.end),this.__textEngine.textFormatRanges.push(h)),null!=d&&(d.end=e),null!=h&&(h.start=n);var v=x.__defaultTextFormat.clone();v.__merge(t),this.__textEngine.textFormatRanges.push(new(u().default)(v,e,n)),this.__textEngine.textFormatRanges.sort(function(t,e){return t.starte.start||t.end>e.end?1:0})}this.__dirty=!0,this.__layoutDirty=!0,this.__setRenderDirty()}},__allowMouseFocus:function(){return!("input"!=this.__textEngine.type&&!this.get_tabEnabled())||this.get_selectable()},__caretBeginningOfLine:function(){this.__selectionIndex==this.__caretIndex||this.__caretIndex0&&this.__caretIndex--},__caretPreviousLine:function(t,e){null==t&&(t=this.getLineIndexOfChar(this.__caretIndex)),t>0?(null==e&&(e=this.__caretIndex),this.__caretIndex=this.__getCharIndexOnDifferentLine(e,t-1)):this.__caretIndex=0},__disableInput:function(){this.__inputEnabled&&null!=this.stage&&(this.stage.window.set_enableTextEvents(!1),this.stage.window.onTextInput.remove(r(this,this.window_onTextInput)),this.stage.window.onKeyDown.remove(r(this,this.window_onKeyDown)),this.__inputEnabled=!1,this.__stopCursorTimer())},__dispatch:function(t){if(2==t.eventPhase&&"mouseUp"==t.type){var e=this.__getGroup(this.get_mouseX(),this.get_mouseY(),!0);if(null!=e){var i=e.format.url;null!=i&&""!=i&&(n(12).default.startsWith(i,"event:")?this.dispatchEvent(new(n(77).default)("link",!1,!1,f().default.substr(i,6,null))):n(25).default.getURL(new(n(196).default)(i)))}}return s().default.prototype.__dispatch.call(this,t)},__enableInput:function(){null!=this.stage&&(this.stage.window.set_enableTextEvents(!0),this.__inputEnabled||(this.stage.window.set_enableTextEvents(!0),this.stage.window.onTextInput.has(r(this,this.window_onTextInput))||(this.stage.window.onTextInput.add(r(this,this.window_onTextInput)),this.stage.window.onKeyDown.add(r(this,this.window_onKeyDown))),this.__inputEnabled=!0,this.__startCursorTimer()))},__fromSymbol:function(t,e){this.__symbol=e,this.set_width(e.width),this.set_height(e.height),this.__offsetX=e.x,this.__offsetY=e.y,this.set_multiline(e.multiline),this.set_wordWrap(e.wordWrap),this.set_displayAsPassword(e.password),e.border&&(this.set_border(!0),this.set_background(!0)),this.set_selectable(e.selectable),e.input&&this.set_type("input");var i=new(d().default);null!=e.color&&(i.color=16777215&e.color),i.size=Math.round(e.fontHeight/20);var r=t.symbols.get(e.fontID);null!=r&&(i.__ascent=r.ascent/20/1024,i.__descent=r.descent/20/1024),i.font=e.fontName;var a=!1,s=i.font;if(null==s)a=!0;else switch(s){case"":case"_sans":case"_serif":case"_typewriter":a=!0;break;default:for(var o=0,l=h().default.enumerateFonts();oo().default.get_length(this.__text)-1)return!1;this.__updateLayout();for(var n=0,i=this.__textEngine.layoutGroups;n=r.startIndex&&t<=r.endIndex)try{for(var a=r.offsetX,s=0,l=t-r.startIndex;so().default.get_length(this.__text))return-1;if(e<0||e>this.__textEngine.numLines-1)return-1;for(var n=null,i=null,r=0,a=this.__textEngine.layoutGroups;r=s.startIndex&&t<=s.endIndex){n=s.offsetX;for(var l=0,u=t-s.startIndex;lthis.__textEngine.textHeight&&(e=this.__textEngine.textHeight);for(var s,o,l=!0,u=0,_=this.__textEngine.layoutGroups.get_length();u<_;){var f=u++;if(s=this.__textEngine.layoutGroups.get(f),o=f=s.offsetY&&e<=s.offsetY+s.height||!n&&null==o)&&(t>=s.offsetX&&t<=s.offsetX+s.width||!n&&(null==o||o.lineIndex!=s.lineIndex)))return s}return null},__getPosition:function(t,e){var n=this.__getGroup(t,e);if(null==n)return o().default.get_length(this.__text);for(var i=0,r=0,a=n.positions.length;r0)if(this.__caretIndex>=o().default.get_length(this.get_text()))this.set_scrollH(Math.ceil(t));else{var e=l().default.__pool.get();this.__getCharBoundaries(this.__caretIndex,e),e.xthis.get_scrollH()+this.__textEngine.width&&this.set_scrollH(Math.ceil(e.x-this.__textEngine.width-2)),l().default.__pool.release(e)}else this.set_scrollH(0)}},__updateText:function(t){if(v().default.__supportDOM&&this.__renderedOnCanvasWhileOnDOM&&(this.__forceCachedBitmapUpdate=this.__text!=t),this.__textEngine.set_text(t),this.__text=this.__textEngine.text,o().default.get_length(this.__text)1&&this.__textEngine.textFormatRanges.splice(1,this.__textEngine.textFormatRanges.get_length()-1);var e=this.__textEngine.textFormatRanges.get(0);e.format=this.__textFormat,e.start=0,this.__renderedOnCanvasWhileOnDOM?(e.end=t.length,this.__updateText(t)):(e.end=this.__rawHtmlText.length,this.__updateText(this.__rawHtmlText))}else this.__updateText(t);return t},get_length:function(){return null!=this.__text?o().default.get_length(this.__text):0},get_maxChars:function(){return this.__textEngine.maxChars},set_maxChars:function(t){return t!=this.__textEngine.maxChars&&(this.__textEngine.maxChars=t,this.__dirty=!0,this.__layoutDirty=!0,this.__setRenderDirty()),t},get_maxScrollH:function(){return this.__updateLayout(),this.__textEngine.maxScrollH},get_maxScrollV:function(){return this.__updateLayout(),this.__textEngine.maxScrollV},get_mouseWheelEnabled:function(){return this.__mouseWheelEnabled},set_mouseWheelEnabled:function(t){return this.__mouseWheelEnabled=t},get_multiline:function(){return this.__textEngine.multiline},set_multiline:function(t){return t!=this.__textEngine.multiline&&(this.__dirty=!0,this.__layoutDirty=!0,this.__updateText(this.__text),this.__updateScrollH(),this.__setRenderDirty()),this.__textEngine.multiline=t},get_numLines:function(){return this.__updateLayout(),this.__textEngine.numLines},get_restrict:function(){return this.__textEngine.restrict},set_restrict:function(t){return this.__textEngine.restrict!=t&&(this.__textEngine.set_restrict(t),this.__updateText(this.__text)),t},get_scrollH:function(){return this.__textEngine.scrollH},set_scrollH:function(t){return this.__updateLayout(),t>this.__textEngine.maxScrollH&&(t=this.__textEngine.maxScrollH),t<0&&(t=0),t!=this.__textEngine.scrollH&&(this.__dirty=!0,this.__setRenderDirty(),this.dispatchEvent(new(w().default)("scroll"))),this.__textEngine.scrollH=t},get_scrollV:function(){return this.__textEngine.scrollV},set_scrollV:function(t){return this.__updateLayout(),t>this.__textEngine.maxScrollV&&(t=this.__textEngine.maxScrollV),t<1&&(t=1),t!=this.__textEngine.scrollV&&(this.__dirty=!0,this.__setRenderDirty(),this.dispatchEvent(new(w().default)("scroll"))),this.__textEngine.scrollV=t},get_selectable:function(){return this.__textEngine.selectable},set_selectable:function(t){return t!=this.__textEngine.selectable&&"input"==this.get_type()&&(null!=this.stage&&this.stage.get_focus()==this?this.__startTextInput():t||this.__stopTextInput()),this.__textEngine.selectable=t},get_selectionBeginIndex:function(){return _().default.int(Math.min(this.__caretIndex,this.__selectionIndex))},get_selectionEndIndex:function(){return _().default.int(Math.max(this.__caretIndex,this.__selectionIndex))},get_sharpness:function(){return this.__textEngine.sharpness},set_sharpness:function(t){return t!=this.__textEngine.sharpness&&(this.__dirty=!0,this.__setRenderDirty()),this.__textEngine.sharpness=t},get_tabEnabled:function(){return null==this.__tabEnabled?"input"==this.__textEngine.type:this.__tabEnabled},get_text:function(){return this.__text},set_text:function(t){if(!this.__isHTML&&this.__text==t)return t;this.__dirty=!0,this.__layoutDirty=!0,this.__setRenderDirty(),this.__textEngine.textFormatRanges.get_length()>1&&this.__textEngine.textFormatRanges.splice(1,this.__textEngine.textFormatRanges.get_length()-1);var e=t,n=this.__textEngine.textFormatRanges.get(0);return n.format=this.__textFormat,n.start=0,n.end=o().default.get_length(e),this.__isHTML=!1,this.__updateText(t),t},get_textColor:function(){return this.__textFormat.color},set_textColor:function(t){t!=this.__textFormat.color&&(this.__dirty=!0,this.__setRenderDirty());for(var e=0,n=this.__textEngine.textFormatRanges;e=0){this.__updateLayout();var e=this.__getPosition(this.get_mouseX()+this.get_scrollH(),this.get_mouseY());e!=this.__caretIndex&&(this.__caretIndex=e,v().default.__supportDOM?this.__renderedOnCanvasWhileOnDOM&&(this.__forceCachedBitmapUpdate=!0):(this.__dirty=!0,this.__setRenderDirty()))}},stage_onMouseUp:function(t){if(null!=this.stage&&(this.stage.removeEventListener("mouseMove",r(this,this.stage_onMouseMove)),this.stage.removeEventListener("mouseUp",r(this,this.stage_onMouseUp)),this.stage.get_focus()==this)){this.__getWorldTransform(),this.__updateLayout();this.__worldTransform.__transformInverseX(this.get_x(),this.get_y()),this.__worldTransform.__transformInverseY(this.get_x(),this.get_y());var e,n,i=this.__getPosition(this.get_mouseX()+this.get_scrollH(),this.get_mouseY());e=_().default.int(Math.min(this.__selectionIndex,i)),n=_().default.int(Math.max(this.__selectionIndex,i)),this.__selectionIndex=e,this.__caretIndex=n,this.__inputEnabled&&(this.this_onFocusIn(null),this.__stopCursorTimer(),this.__startCursorTimer(),v().default.__supportDOM&&this.__renderedOnCanvasWhileOnDOM&&(this.__forceCachedBitmapUpdate=!0))}},this_onAddedToStage:function(t){this.this_onFocusIn(null)},this_onFocusIn:function(t){"input"==this.get_type()&&null!=this.stage&&this.stage.get_focus()==this&&this.__startTextInput()},this_onFocusOut:function(t){this.__stopCursorTimer(),null!=t.relatedObject&&_().default.is(t.relatedObject,x)?(this.stage.window.onTextInput.remove(r(this,this.window_onTextInput)),this.stage.window.onKeyDown.remove(r(this,this.window_onKeyDown)),this.__inputEnabled=!1):this.__stopTextInput(),this.__selectionIndex!=this.__caretIndex&&(this.__selectionIndex=this.__caretIndex,this.__dirty=!0,this.__setRenderDirty())},this_onKeyDown:function(t){this.get_selectable()&&"input"!=this.get_type()&&67==t.keyCode&&(t.commandKey||t.ctrlKey)&&this.__caretIndex!=this.__selectionIndex&&y().default.set_text(o().default.substring(this.__text,this.__caretIndex,this.__selectionIndex))},this_onMouseDown:function(t){(this.get_selectable()||"input"==this.get_type())&&(this.__updateLayout(),this.__caretIndex=this.__getPosition(this.get_mouseX()+this.get_scrollH(),this.get_mouseY()),this.__selectionIndex=this.__caretIndex,v().default.__supportDOM||(this.__dirty=!0,this.__setRenderDirty()),this.stage.addEventListener("mouseMove",r(this,this.stage_onMouseMove)),this.stage.addEventListener("mouseUp",r(this,this.stage_onMouseUp)))},window_onKeyDown:function(t,e){switch(t){case 8:this.__selectionIndex==this.__caretIndex&&this.__caretIndex>0&&(this.__selectionIndex=this.__caretIndex-1),this.__selectionIndex!=this.__caretIndex&&(this.replaceSelectedText(""),this.__selectionIndex=this.__caretIndex,this.dispatchEvent(new(w().default)("change",!0)));break;case 97:(b().default.get_metaKey(e)||b().default.get_ctrlKey(e))&&(this.__caretIndex=o().default.get_length(this.__text),this.__selectionIndex=0);break;case 99:(b().default.get_metaKey(e)||b().default.get_ctrlKey(e))&&this.__caretIndex!=this.__selectionIndex&&y().default.set_text(o().default.substring(this.__text,this.__caretIndex,this.__selectionIndex));break;case 120:(b().default.get_metaKey(e)||b().default.get_ctrlKey(e))&&this.__caretIndex!=this.__selectionIndex&&(y().default.set_text(o().default.substring(this.__text,this.__caretIndex,this.__selectionIndex)),this.replaceSelectedText(""),this.dispatchEvent(new(w().default)("change",!0)));break;case 127:this.__selectionIndex==this.__caretIndex&&this.__caretIndex=r().default.uLength(t)?null:r().default.uCharCodeAt(t,e)},u.fromCharCode=function(t){if(!a().default.isScalar(t))throw new(s().default)(new(o().default)(t));var e=t;return l().default.fromCodePoint(e)},u.fromCharCodes=function(t){for(var e="",n=0;n0?r().default.setField(this,a().default.urlDecode(s().default.substr(u,0,_)),a().default.urlDecode(s().default.substr(u,_+1,null))):0!=_&&r().default.setField(this,a().default.urlDecode(u),"")}},toString:function(){for(var t=[],e=r().default.fields(this),n=0;n|:;_-+=?,. "),null},getGlyphMetrics:function(t){return null},renderGlyph:function(t,e){return null},renderGlyphs:function(t,e){return null},__copyFrom:function(t){null!=t&&(this.ascender=t.ascender,this.descender=t.descender,this.height=t.height,this.name=t.name,this.numGlyphs=t.numGlyphs,this.src=t.src,this.underlinePosition=t.underlinePosition,this.underlineThickness=t.underlineThickness,this.unitsPerEM=t.unitsPerEM,this.__fontID=t.__fontID,this.__fontPath=t.__fontPath)},__fromBytes:function(t){this.__fontPath=null},__fromFile:function(t){this.__fontPath=t},__initializeSource:function(){},__loadFromName:function(t){var e=this,i=new(n(39).default);this.name=t;var o=a().default.get_navigator().userAgent.toLowerCase();if(!(o.indexOf(" safari/")>=0&&o.indexOf(" chrome/")<0)&&a().default.get_document().fonts&&($_=a().default.get_document().fonts,r($_,$_.load)))a().default.get_document().fonts.load("1em '"+t+"'").then(function(t){i.complete(e)},function(n){s().default.warn('Could not load web font "'+t+'"',{fileName:"Font.hx",lineNumber:516,className:"lime.text.Font",methodName:"__loadFromName"}),i.complete(e)});else{var l,_,f=u.__measureFontNode("'"+t+"', sans-serif"),d=u.__measureFontNode("'"+t+"', serif"),h=f.offsetWidth,c=d.offsetWidth,p=-1,g=0;p=a().default.get_window().setInterval(function(){g+=1,l=f.offsetWidth!=h||d.offsetWidth!=c,_=50*g>=3e3,(l||_)&&(a().default.get_window().clearInterval(p),f.parentNode.removeChild(f),d.parentNode.removeChild(d),f=null,d=null,_&&s().default.warn('Could not load web font "'+t+'"',{fileName:"Font.hx",lineNumber:552,className:"lime.text.Font",methodName:"__loadFromName"}),i.complete(e))},50)}return i.future},__setSize:function(t){}}).__class__=i["lime.text.Font"]=u,u.fromBytes=function(t){if(null==t)return null;var e=new u;return e.__fromBytes(t),e},u.fromFile=function(t){if(null==t)return null;var e=new u;return e.__fromFile(t),e},u.loadFromBytes=function(t){return o().default.withValue(u.fromBytes(t))},u.loadFromFile=function(t){return(new(n(336).default)).load(t).then(function(t){return null!=t?o().default.withValue(t):o().default.withError("")})},u.loadFromName=function(t){return(new u).__loadFromName(t)},u.__measureFontNode=function(t){var e=a().default.get_document().createElement("span");e.setAttribute("aria-hidden","true");var n=a().default.get_document().createTextNode("BESbswy");e.appendChild(n);var i=e.style;return i.display="block",i.position="absolute",i.top="-9999px",i.left="-9999px",i.fontSize="300px",i.width="auto",i.height="auto",i.lineHeight="normal",i.margin="0",i.padding="0",i.fontVariant="normal",i.whiteSpace="nowrap",i.fontFamily=t,a().default.get_document().body.appendChild(e),e},e.default=u}).call(e,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(1).default,r=(n(2).default,n(8).default);function a(){return n(20)}function s(){return n(6)}function o(){return n(88)}function l(){return n(10)}function u(){return n(16)}function _(){return n(74)}function f(){return n(136)}function d(){return n(56)}function h(){return n(24)}function c(){return n(18)}function p(){return n(23)}function g(){return n(5)}function m(){return n(4)}function v(){return n(103)}var w=function(){this.types=new(c().default),this.sizes=new(c().default),this.preload=new(c().default),this.paths=new(c().default),this.pathGroups=new(c().default),this.classTypes=new(c().default),this.cachedText=new(c().default),this.cachedImages=new(c().default),this.cachedFonts=new(c().default),this.cachedBytes=new(c().default),this.cachedAudioBuffers=new(c().default),this.onChange=new(n(35).default),this.bytesLoaded=0,this.bytesTotal=0};w.__name__=["lime","utils","AssetLibrary"],(w.prototype={exists:function(t,e){var n=null!=e?a().default.__cast(e,String):null,i=this.types.get(t);if(null!=i){if(i==n||("SOUND"==n||"MUSIC"==n)&&("MUSIC"==i||"SOUND"==i))return!0;if("BINARY"==n||null==n||"BINARY"==i&&"TEXT"==n)return!0}return!1},getAsset:function(t,e){switch(e){case"BINARY":return this.getBytes(t);case"FONT":return this.getFont(t);case"IMAGE":return this.getImage(t);case"MUSIC":case"SOUND":return this.getAudioBuffer(t);case"TEMPLATE":throw new(s().default)("Not sure how to get template: "+t);case"TEXT":return this.getText(t);default:throw new(s().default)("Unknown asset type: "+e)}},getAudioBuffer:function(t){return this.cachedAudioBuffers.exists(t)?this.cachedAudioBuffers.get(t):this.classTypes.exists(t)?o().default.fromBytes(a().default.__cast(l().default.createInstance(this.classTypes.get(t),[]),u().default)):o().default.fromFile(this.paths.get(t))},getBytes:function(t){if(this.cachedBytes.exists(t))return this.cachedBytes.get(t);if(this.cachedText.exists(t)){var e=_().default.ofString(this.cachedText.get(t));return this.cachedBytes.set(t,e),e}return this.classTypes.exists(t)?a().default.__cast(l().default.createInstance(this.classTypes.get(t),[]),u().default):_().default.fromFile(this.paths.get(t))},getFont:function(t){return this.cachedFonts.exists(t)?this.cachedFonts.get(t):this.classTypes.exists(t)?a().default.__cast(l().default.createInstance(this.classTypes.get(t),[]),f().default):f().default.fromFile(this.paths.get(t))},getImage:function(t){return this.cachedImages.exists(t)?this.cachedImages.get(t):this.classTypes.exists(t)?a().default.__cast(l().default.createInstance(this.classTypes.get(t),[]),d().default):d().default.fromFile(this.paths.get(t))},getPath:function(t){return this.paths.get(t)},getText:function(t){if(this.cachedText.exists(t))return this.cachedText.get(t);var e=this.getBytes(t);return null==e?null:e.getString(0,e.get_length())},isLocal:function(t,e){if(this.classTypes.exists(t))return!0;switch(null!=e?a().default.__cast(e,String):null){case"FONT":return this.cachedFonts.exists(t);case"IMAGE":return this.cachedImages.exists(t);case"MUSIC":case"SOUND":return this.cachedAudioBuffers.exists(t);default:return!!this.cachedBytes.exists(t)||this.cachedText.exists(t)}},list:function(t){for(var e=null!=t?a().default.__cast(t,String):null,n=[],i=this.types.keys();i.hasNext();){var r=i.next();(null==e||this.exists(r,t))&&n.push(r)}return n},loadAsset:function(t,e){switch(e){case"BINARY":return this.loadBytes(t);case"FONT":return this.loadFont(t);case"IMAGE":return this.loadImage(t);case"MUSIC":case"SOUND":return this.loadAudioBuffer(t);case"TEMPLATE":throw new(s().default)("Not sure how to load template: "+t);case"TEXT":return this.loadText(t);default:throw new(s().default)("Unknown asset type: "+e)}},load:function(){if(this.loaded)return h().default.withValue(this);if(null==this.promise){this.promise=new(n(39).default),this.bytesLoadedCache=new(c().default),this.assetsLoaded=0,this.assetsTotal=1;for(var t=this.preload.keys();t.hasNext();){var e=t.next();if(this.preload.get(e)){p().default.verbose("Preloading asset: "+e+" ["+this.types.get(e)+"]",{fileName:"AssetLibrary.hx",lineNumber:440,className:"lime.utils.AssetLibrary",methodName:"load"});var i=this.types.get(e);if(null!=i)switch(i){case"BINARY":this.assetsTotal++;var a=this.loadBytes(e);a.onProgress(function(t,e){return function(n,i){e[0](t[0],n,i)}}([e],[r(this,this.load_onProgress)])),a.onError(function(t,e){return function(n){e[0](t[0],n)}}([e],[r(this,this.load_onError)])),a.onComplete(function(t,e){return function(n){e[0](t[0],n)}}([e],[r(this,this.loadBytes_onComplete)]));break;case"FONT":this.assetsTotal++;var s=this.loadFont(e);s.onProgress(function(t,e){return function(n,i){e[0](t[0],n,i)}}([e],[r(this,this.load_onProgress)])),s.onError(function(t,e){return function(n){e[0](t[0],n)}}([e],[r(this,this.load_onError)])),s.onComplete(function(t,e){return function(n){e[0](t[0],n)}}([e],[r(this,this.loadFont_onComplete)]));break;case"IMAGE":this.assetsTotal++;var o=this.loadImage(e);o.onProgress(function(t,e){return function(n,i){e[0](t[0],n,i)}}([e],[r(this,this.load_onProgress)])),o.onError(function(t,e){return function(n){e[0](t[0],n)}}([e],[r(this,this.load_onError)])),o.onComplete(function(t,e){return function(n){e[0](t[0],n)}}([e],[r(this,this.loadImage_onComplete)]));break;case"MUSIC":case"SOUND":this.assetsTotal++;var l=this.loadAudioBuffer(e);l.onProgress(function(t,e){return function(n,i){e[0](t[0],n,i)}}([e],[r(this,this.load_onProgress)])),l.onError(function(t,e){return function(n){e[0](t[0],n)}}([e],[r(this,this.load_onError)])),l.onComplete(function(t,e){return function(n){e[0](t[0],n)}}([e],[r(this,this.loadAudioBuffer_onComplete)]));break;case"TEXT":this.assetsTotal++;var u=this.loadText(e);u.onProgress(function(t,e){return function(n,i){e[0](t[0],n,i)}}([e],[r(this,this.load_onProgress)])),u.onError(function(t,e){return function(n){e[0](t[0],n)}}([e],[r(this,this.load_onError)])),u.onComplete(function(t,e){return function(n){e[0](t[0],n)}}([e],[r(this,this.loadText_onComplete)]))}}}this.__assetLoaded(null)}return this.promise.future},loadAudioBuffer:function(t){return this.cachedAudioBuffers.exists(t)?h().default.withValue(this.cachedAudioBuffers.get(t)):this.classTypes.exists(t)?h().default.withValue(l().default.createInstance(this.classTypes.get(t),[])):this.pathGroups.exists(t)?o().default.loadFromFiles(this.pathGroups.get(t)):o().default.loadFromFile(this.paths.get(t))},loadBytes:function(t){return this.cachedBytes.exists(t)?h().default.withValue(this.cachedBytes.get(t)):this.classTypes.exists(t)?h().default.withValue(l().default.createInstance(this.classTypes.get(t),[])):_().default.loadFromFile(this.paths.get(t))},loadFont:function(t){if(this.cachedFonts.exists(t))return h().default.withValue(this.cachedFonts.get(t));if(this.classTypes.exists(t)){var e=l().default.createInstance(this.classTypes.get(t),[]);return e.__loadFromName(e.name)}return f().default.loadFromName(this.paths.get(t))},loadImage:function(t){return this.cachedImages.exists(t)?h().default.withValue(this.cachedImages.get(t)):this.classTypes.exists(t)?h().default.withValue(l().default.createInstance(this.classTypes.get(t),[])):d().default.loadFromFile(this.paths.get(t))},loadText:function(t){if(this.cachedText.exists(t))return h().default.withValue(this.cachedText.get(t));if(this.cachedBytes.exists(t)||this.classTypes.exists(t)){var e=this.getBytes(t);if(null==e)return h().default.withValue(null);var i=e.getString(0,e.get_length());return this.cachedText.set(t,i),h().default.withValue(i)}return(new(n(192).default)).load(this.paths.get(t))},unload:function(){},__assetLoaded:function(t){if(this.assetsLoaded++,null!=t&&p().default.verbose("Loaded asset: "+t+" ["+this.types.get(t)+"] ("+(this.assetsLoaded-1)+"/"+(this.assetsTotal-1)+")",{fileName:"AssetLibrary.hx",lineNumber:686,className:"lime.utils.AssetLibrary",methodName:"__assetLoaded"}),null!=t){var e=this.sizes.get(t);if(this.bytesLoadedCache.exists(t)){var n=this.bytesLoadedCache.get(t);n=2,s=t.rootPath;null==s&&(s=""),""!=s&&(s+="/");for(var o=0,u=t.assets;o-1){this.cachedAudioBuffers.set(r,e);break}}}this.__assetLoaded(t)},loadBytes_onComplete:function(t,e){this.cachedBytes.set(t,e),this.__assetLoaded(t)},loadFont_onComplete:function(t,e){this.cachedFonts.set(t,e),this.__assetLoaded(t)},loadImage_onComplete:function(t,e){this.cachedImages.set(t,e),this.__assetLoaded(t)},loadText_onComplete:function(t,e){this.cachedText.set(t,e),this.__assetLoaded(t)},load_onError:function(t,e){null!=e&&""!=e?this.promise.error('Error loading asset "'+t+'": '+m().default.string(e)):this.promise.error('Error loading asset "'+t+'"')},load_onProgress:function(t,e,n){if(e>0){var i,r=this.sizes.get(t);if(n>0?((i=e/n)>1&&(i=1),e=Math.floor(i*r)):e>r&&(e=r),this.bytesLoadedCache.exists(t)){var a=this.bytesLoadedCache.get(t);e!=a&&(this.bytesLoaded+=e-a)}else this.bytesLoaded+=e;this.bytesLoadedCache.set(t,e),this.promise.progress(this.bytesLoaded,this.bytesTotal)}}}).__class__=i["lime.utils.AssetLibrary"]=w,w.fromBytes=function(t,e){return w.fromManifest(v().default.fromBytes(t,e))},w.fromFile=function(t,e){return w.fromManifest(v().default.fromFile(t,e))},w.fromManifest=function(t){if(null==t)return null;var e=null;if(null==t.libraryType)e=new w;else{var n=l().default.resolveClass(t.libraryType);if(null==n)return p().default.warn("Could not find library type: "+t.libraryType,{fileName:"AssetLibrary.hx",lineNumber:140,className:"lime.utils.AssetLibrary",methodName:"fromManifest"}),null;e=l().default.createInstance(n,t.libraryArgs)}return e.__fromManifest(t),e},w.loadFromBytes=function(t,e){return v().default.loadFromBytes(t,e).then(function(t){return w.loadFromManifest(t)})},w.loadFromFile=function(t,e){return v().default.loadFromFile(t,e).then(function(t){return w.loadFromManifest(t)})},w.loadFromManifest=function(t){var e=w.fromManifest(t);return null!=e?e.load():h().default.withError("Could not load asset manifest")},e.default=w}).call(e,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(1).default;n(2).default;function r(){return n(27)}function a(){return n(131)}function s(){return n(4)}function o(){return n(343)}function l(){return n(11)}function u(){return n(12)}function _(){return n(102)}function f(){return n(21)}var d=function(t){this.textField=t,this.width=100,this.height=100,this.set_text(""),this.bounds=new(n(14).default)(0,0,0,0),this.type="dynamic",this.autoSize="none",this.embedFonts=!1,this.selectable=!0,this.borderColor=0,this.border=!1,this.backgroundColor=16777215,this.background=!1,this.gridFitType="pixel",this.maxChars=0,this.multiline=!1,this.sharpness=0,this.scrollH=0,this.scrollV=1,this.wordWrap=!1,this.lineAscents=f().default._new(),this.lineBreaks=f().default._new(),this.lineDescents=f().default._new(),this.lineLeadings=f().default._new(),this.lineHeights=f().default._new(),this.lineWidths=f().default._new(),this.layoutGroups=f().default._new(),this.textFormatRanges=f().default._new(),d.__canvas=l().default.get_document().createElement("canvas"),d.__context=d.__canvas.getContext("2d")};d.__name__=["openfl","_internal","text","TextEngine"],d.prototype={createRestrictRegexp:function(t){var e="",n=[];return new(r().default)("\\^(.-.|.)","gu").map(t,function(t){return e+=t.matched(1),""}).length>0&&n.push("[^"+t+"]"),e.length>0&&n.push("["+e+"]"),new(r().default)("("+n.join("|")+")","g")},getBounds:function(){var t=this.border?1:0;this.bounds.width=this.width+t,this.bounds.height=this.height+t},getLine:function(t){return t<0||t>this.lineBreaks.get_length()+1?null:0==this.lineBreaks.get_length()?this.text:a().default.substring(this.text,t>0?this.lineBreaks.get(t-1):0,this.lineBreaks.get(t))},getLineBreakIndex:function(t){null==t&&(t=0);var e=a().default.indexOf(this.text,"
",t),n=a().default.indexOf(this.text,"\n",t),i=a().default.indexOf(this.text,"\r",t);return-1==n&&-1==e?i:-1==i&&-1==e?n:-1==i&&-1==n?e:-1==n?s().default.int(Math.min(e,i)):-1==i?s().default.int(Math.min(e,n)):-1==e?s().default.int(Math.min(n,i)):s().default.int(Math.min(Math.min(n,i),e))},getLineMeasurements:function(){this.lineAscents.set_length(0),this.lineDescents.set_length(0),this.lineLeadings.set_length(0),this.lineHeights.set_length(0),this.lineWidths.set_length(0);var t=0,e=0,n=null,i=0,r=0,a=0;this.textWidth=0,this.textHeight=0,this.numLines=1,this.bottomScrollV=0,this.maxScrollH=0;for(var o=0,l=this.layoutGroups;othis.numLines-1;)this.lineAscents.push(t),this.lineDescents.push(e),this.lineLeadings.push(null!=n?n:0),this.lineHeights.push(i),this.lineWidths.push(r),t=0,e=0,n=null,i=0,r=0,this.numLines++,this.textHeight<=this.height-2&&this.bottomScrollV++;t=Math.max(t,u.ascent),e=Math.max(e,u.descent),n=null==n?u.leading:s().default.int(Math.max(n,u.leading)),i=Math.max(i,u.height),(r=u.offsetX-2+u.width)>this.textWidth&&(this.textWidth=r),(a=u.offsetY-2+u.ascent+u.descent)>this.textHeight&&(this.textHeight=a)}if(0==this.textHeight&&null!=this.textField){var _,f,d,h=this.textField.__textFormat;null!=h.__ascent?(_=h.size*h.__ascent,f=h.size*h.__descent):(_=h.size,f=.185*h.size),_+f+(d=h.leading),t=_,e=f,n=d,a=_+f,this.textHeight=a}if(this.lineAscents.push(t),this.lineDescents.push(e),this.lineLeadings.push(null!=n?n:0),this.lineHeights.push(i),this.lineWidths.push(r),1==this.numLines?(this.bottomScrollV=1,n>0&&(this.textHeight+=n)):this.textHeight<=this.height-2&&this.bottomScrollV++,"none"!=this.autoSize)switch(this.autoSize){case"center":case"left":case"right":this.wordWrap||(this.width=this.textWidth+4),this.height=this.textHeight+4,this.bottomScrollV=this.numLines}this.textWidth>this.width-4?this.maxScrollH=s().default.int(this.textWidth-this.width+4):this.maxScrollH=0,this.maxScrollV=this.numLines-this.bottomScrollV+1},getLayoutGroups:function(){if(this.layoutGroups.set_length(0),null!=this.text&&!a().default.equals(this.text,"")){var t,e=-1,i=null,s=n(130).default.__defaultTextFormat.clone(),u=0,_=0,f=0,h=0,c=null,p=null,g=0,m=0,v=0,w=-2,y=a().default.indexOf(this.text," "),b=this.getLineBreakIndex(),x=2,E=2,T=0,A=0,R=null;ev&&(v=m),_>f&&(f=_),R=i.format;for(var S=a().default.get_length(this.text)+1;T-1&&(-1==y||b=b){if(T<=b){if(this.wordWrap&&w<=T&&this.width>=4)for(var M=a().default.substring(this.text,T,b),I=d.__context.measureText(M).width;x+I>this.width-2;){for(var D=1;T+Dthis.width-2){--D;break}++D}if(0==D&&I>this.width-4&&(D=a().default.get_length(this.text)),0==D){x=2,E+=c.height,++A;break}var L=T+D;null==c||c.startIndex!=c.endIndex?(c=new(o().default)(i.format,T,L),this.layoutGroups.push(c)):(c.format=i.format,c.startIndex=T,c.endIndex=L);var O=this.text,P=T+D,F=[];if(null==this.__useIntAdvances&&(this.__useIntAdvances=new(r().default)("Trident/7.0","").match(l().default.get_navigator().userAgent)),this.__useIntAdvances)for(var B,N=0,k=T,U=P;kf&&(f=_),m>v&&(v=m);for(var Z=0,Q=this.layoutGroups;ZA)break;J.ascent=f,J.height=v}}E+=v,f=0,v=0,++A,x=2,T+=D;var $=this.text,tt=[];if(null==this.__useIntAdvances&&(this.__useIntAdvances=new(r().default)("Trident/7.0","").match(l().default.get_navigator().userAgent)),this.__useIntAdvances)for(var et,nt=0,it=T,rt=b;itv&&(v=m),_>f&&(f=_),R=i.format),b>=a().default.get_length(this.text)-1&&(E-=v),_>f&&(f=_),m>v&&(v=m);for(var Dt=0,Ct=this.layoutGroups;DtA)break;Lt.ascent=f,Lt.height=v}}E+=v,f=0,v=0,++A,x=2,T=b+1,b=this.getLineBreakIndex(T)}else if(i.end>=y&&y>-1&&T-1&&bi.end)&&(Ot=i.end);var Pt=this.text,Ft=[];if(null==this.__useIntAdvances&&(this.__useIntAdvances=new(r().default)("Trident/7.0","").match(l().default.get_navigator().userAgent)),this.__useIntAdvances)for(var Bt,Nt=0,kt=T,Ut=Ot;kt0&&T==w){++T;var Kt=p.shift();g-=Kt,x+=Kt}if(p.length>0&&Ot==y+1)--Ot,g-=p.pop()}if(this.wordWrap)if(x+g>this.width-2)if(t=!0,p.length>0&&Ot==y+1)x+g-p[p.length-1]<=this.width-2&&(t=!1);if(t){if("justify"!=R.align&&(null!=c||this.layoutGroups.get_length()>0)){var Zt=c;null==Zt&&(Zt=this.layoutGroups.get(this.layoutGroups.get_length()-1)),Zt.width-=Zt.getAdvance(Zt.positions.length-1),Zt.endIndex--}for(var Qt=this.layoutGroups.get_length()-1,Jt=0;c=this.layoutGroups.get(Qt),Qt>0&&c.startIndex>w;)++Jt,--Qt;if(T==w+1){_>f&&(f=_),m>v&&(v=m);for(var $t=0,te=this.layoutGroups;$tA)break;ee.ascent=f,ee.height=v}}E+=v,f=0,v=0,++A,x=2}if(x=2,Jt>0)for(var ne=this.layoutGroups.get(this.layoutGroups.get_length()-Jt).offsetX,ie=this.layoutGroups.get_length()-Jt,re=this.layoutGroups.get_length();ie=4)for(var se=a().default.substring(this.text,T,Ot),oe=d.__context.measureText(se).width;x+oe>this.width-2;){for(var le=1;T+lethis.width-2){--le;break}++le}if(0==le&&oe>this.width-4&&(le=a().default.get_length(this.text)),0==le){x=2,E+=c.height,++A;break}var _e=T+le;null==c||c.startIndex!=c.endIndex?(c=new(o().default)(i.format,T,_e),this.layoutGroups.push(c)):(c.format=i.format,c.startIndex=T,c.endIndex=_e);var fe=this.text,de=T+le,he=[];if(null==this.__useIntAdvances&&(this.__useIntAdvances=new(r().default)("Trident/7.0","").match(l().default.get_navigator().userAgent)),this.__useIntAdvances)for(var ce,pe=0,ge=T,me=de;gef&&(f=_),m>v&&(v=m);for(var Me=0,Ie=this.layoutGroups;MeA)break;De.ascent=f,De.height=v}}E+=v,f=0,v=0,++A,x=2,T+=le;var Ce=this.text,Le=[];if(null==this.__useIntAdvances&&(this.__useIntAdvances=new(r().default)("Trident/7.0","").match(l().default.get_navigator().userAgent)),this.__useIntAdvances)for(var Oe,Pe=0,Fe=T,Be=Ot;Fev&&(v=m),_>f&&(f=_)):(b==w&&(c.endIndex=b,b-c.startIndex-c.positions.length<0&&c.positions.push(0),T=b+1),w=y,y=ze),b>-1&&b<=T&&(y>b||-1==y)||T>a().default.get_length(this.text)||y>i.end)break}else{if(T>i.end)break;if(T=4)for(var Ye=i.end,qe=a().default.substring(this.text,T,Ye),Ke=d.__context.measureText(qe).width;x+Ke>this.width-2;){for(var Ze=1;T+Zethis.width-2){--Ze;break}++Ze}if(0==Ze&&Ke>this.width-4&&(Ze=a().default.get_length(this.text)),0==Ze){x=2,E+=c.height,++A;break}var Je=T+Ze;null==c||c.startIndex!=c.endIndex?(c=new(o().default)(i.format,T,Je),this.layoutGroups.push(c)):(c.format=i.format,c.startIndex=T,c.endIndex=Je);var $e=this.text,tn=T+Ze,en=[];if(null==this.__useIntAdvances&&(this.__useIntAdvances=new(r().default)("Trident/7.0","").match(l().default.get_navigator().userAgent)),this.__useIntAdvances)for(var nn,rn=0,an=T,sn=tn;anf&&(f=_),m>v&&(v=m);for(var mn=0,vn=this.layoutGroups;mnA)break;wn.ascent=f,wn.height=v}}E+=v,f=0,v=0,++A,x=2,T+=Ze;var yn=this.text,bn=[];if(null==this.__useIntAdvances&&(this.__useIntAdvances=new(r().default)("Trident/7.0","").match(l().default.get_navigator().userAgent)),this.__useIntAdvances)for(var xn,En=0,Tn=T,An=Ye;Tnv&&(v=m),_>f&&(f=_),T==i.end){_>f&&(f=_),m>v&&(v=m);for(var pi=0,gi=this.layoutGroups;piA)break;mi.ascent=f,mi.height=v}}E+=v,f=0,v=0,++A,x=2,++T;break}}}},setTextAlignment:function(){for(var t,e,n=-1,i=0,r=this.width-4,s=0,o=this.layoutGroups.get_length();s1){t=this.layoutGroups.get(l+e-1);var d=a().default.charCodeAt(this.text,t.endIndex);if(t.endIndex1&&32!=a().default.charCodeAt(this.text,this.layoutGroups.get(h).startIndex-1)&&(this.layoutGroups.get(l+h).offsetX+=i*(h-1),++h),this.layoutGroups.get(l+h).offsetX+=i*h,++h0&&(t.offsetX+=i)}},update:function(){null==this.text||0==this.textFormatRanges.get_length()?(this.lineAscents.set_length(0),this.lineBreaks.set_length(0),this.lineDescents.set_length(0),this.lineLeadings.set_length(0),this.lineHeights.set_length(0),this.lineWidths.set_length(0),this.layoutGroups.set_length(0),this.textWidth=0,this.textHeight=0,this.numLines=1,this.maxScrollH=0,this.maxScrollV=1,this.bottomScrollV=1):(this.getLayoutGroups(),this.getLineMeasurements(),this.setTextAlignment()),this.getBounds()},set_restrict:function(t){return a().default.equals(this.restrict,t)?this.restrict:(this.restrict=t,null==this.restrict||0==a().default.get_length(this.restrict)?this.__restrictRegexp=null:this.__restrictRegexp=this.createRestrictRegexp(t),this.restrict)},set_text:function(t){return null==t?this.text=t:(null!=this.__restrictRegexp&&(t=this.__restrictRegexp.split(t).join("")),this.maxChars>0&&t.length>this.maxChars&&(t=n(7).default.substr(t,0,this.maxChars)),this.text=t,this.text)}},d.prototype.__class__=i["openfl._internal.text.TextEngine"]=d,d.findFont=function(t){return null},d.findFontVariant=function(t){var e=t.font,n=t.bold,i=t.italic,r=u().default.replace(u().default.replace(e," Normal","")," Regular","");return n&&i&&_().default.__fontByName.exists(r+" Bold Italic")?d.findFont(r+" Bold Italic"):n&&_().default.__fontByName.exists(r+" Bold")?d.findFont(r+" Bold"):i&&_().default.__fontByName.exists(r+" Italic")?d.findFont(r+" Italic"):d.findFont(e)},d.getFormatHeight=function(t){var e,n;return d.__context.font=d.getFont(t),null!=t.__ascent?(e=t.size*t.__ascent,n=t.size*t.__descent):(e=t.size,n=.185*t.size),e+n+t.leading},d.getFont=function(t){var e=t.font,n=t.bold,i=t.italic;null==e&&(e="_serif");var a=u().default.replace(u().default.replace(e," Normal","")," Regular","");n&&i&&_().default.__fontByName.exists(a+" Bold Italic")?(e=a+" Bold Italic",n=!1,i=!1):n&&_().default.__fontByName.exists(a+" Bold")?(e=a+" Bold",n=!1):i&&_().default.__fontByName.exists(a+" Italic")?(e=a+" Italic",i=!1):(n&&(e.indexOf(" Bold ")>-1||u().default.endsWith(e," Bold"))&&(n=!1),i&&(e.indexOf(" Italic ")>-1||u().default.endsWith(e," Italic"))&&(i=!1));var s,o=i?"italic ":"normal ";switch(o+="normal ",o+=n?"bold ":"normal ",o+=t.size+"px",o+="/"+(t.leading+t.size+3)+"px ",e){case"_sans":s="sans-serif";break;case"_serif":s="serif";break;case"_typewriter":s="monospace";break;default:s="'"+new(r().default)("^[\\s'\"]+(.*)[\\s'\"]+$","").replace(e,"$1")+"'"}return o+=""+s},d.getFontInstance=function(t){return null},d.UTF8_TAB=9,d.UTF8_ENDLINE=10,d.UTF8_SPACE=32,d.UTF8_HYPHEN=45,d.__defaultFonts=new(n(18).default),e.default=d}).call(e,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(1).default,r=(n(2).default,n(3).default);function a(){return n(13)}function s(){return n(11)}var o=function(){a().default.call(this),this.applicationDomain=n(208).default.currentDomain,this.bytesLoaded=0,this.bytesTotal=0,this.childAllowsParent=!0,this.parameters={}};o.__name__=["openfl","display","LoaderInfo"],o.__super__=a().default,(o.prototype=r(a().default.prototype,{__complete:function(){this.__completed||(this.bytesLoaded16,antialias:l().default.hasField(i.config,"antialiasing")&&i.config.antialiasing>0,depth:!l().default.hasField(i.config,"depthBuffer")||i.config.depthBuffer,premultipliedAlpha:!0,stencil:l().default.hasField(i.config,"stencilBuffer")&&i.config.stencilBuffer,preserveDrawingBuffer:!1};this.__webgl=n(414).default.getContextWebGL(this.__canvas,s),null!=this.__webgl?(this.__renderContext=new(n(153).default)(this.__webgl),u().default.context=this.__renderContext,this.context3D=new(o().default)(this,e),e.element.appendChild(this.__canvas),this.__style=this.__canvas.style,this.__style.setProperty("position","absolute",null),this.__style.setProperty("top","0",null),this.__style.setProperty("left","0",null),this.__style.setProperty(e.transformOriginProperty,"0 0 0",null),this.__style.setProperty("z-index","-1",null),this.__dispatchCreate()):this.__dispatchError()}},__dispatchError:function(){this.__contextRequested=!1,this.dispatchEvent(new(n(60).default)("error",!1,!1,"Context3D not available"))},__dispatchCreate:function(){this.__contextRequested&&(this.__contextRequested=!1,this.dispatchEvent(new(n(9).default)("context3DCreate")))},__renderCairo:function(t,e){this.visible&&this.__contextRequested&&(this.__dispatchError(),this.__contextRequested=!1)},__renderCanvas:function(t,e){this.visible&&this.__contextRequested&&(this.__dispatchError(),this.__contextRequested=!1)},__renderDOM:function(t,e){this.visible&&(this.__contextRequested&&null==this.context3D&&this.__createContext(t,e),null!=this.context3D&&(u().default.context=this.__renderContext,this.__resetContext3DStates()))},__renderGL:function(t,e){this.visible&&(this.__contextRequested&&null==this.context3D&&this.__createContext(t,e),null!=this.context3D&&(this.__resetContext3DStates(),n(415).default.render(this,e)))},__resize:function(t,e){null!=this.__canvas&&(this.__canvas.width=t,this.__canvas.height=e)},__resetContext3DStates:function(){this.context3D.__updateBlendFactors(),this.context3D.__updateBackbufferViewport()},get_x:function(){return this.__x},set_x:function(t){return this.__x==t?t:(this.__x=t,null!=this.context3D&&this.context3D.__updateBackbufferViewport(),t)},get_y:function(){return this.__y},set_y:function(t){return this.__y==t?t:(this.__y=t,null!=this.context3D&&this.context3D.__updateBackbufferViewport(),t)}})).__class__=i["openfl.display.Stage3D"]=_,Object.defineProperties(_.prototype,{x:{get:function(){return this.get_x()},set:function(t){return this.set_x(t)}},y:{get:function(){return this.get_y()},set:function(t){return this.set_y(t)}}}),e.default=_}).call(e,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(1).default,r=(n(2).default,n(3).default);function a(){return n(82)}function s(){return n(398)}var o=function(t,e,n,i,r){a().default.call(this,t),this.__width=e,this.__height=n,this.__optimizeForRenderToTexture=r,s().default.create(this,this.__context.__renderSession)};o.__name__=["openfl","display3D","textures","RectangleTexture"],o.__super__=a().default,(o.prototype=r(a().default.prototype,{uploadFromBitmapData:function(t){s().default.uploadFromBitmapData(this,this.__context.__renderSession,t)},uploadFromByteArray:function(t,e){s().default.uploadFromByteArray(this,this.__context.__renderSession,t,e)},uploadFromTypedArray:function(t){s().default.uploadFromTypedArray(this,this.__context.__renderSession,t)},__setSamplerState:function(t){s().default.setSamplerState(this,this.__context.__renderSession,t)}})).__class__=i["openfl.display3D.textures.RectangleTexture"]=o,e.default=o}).call(e,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(15).default,r=n(1).default["openfl._internal.stage3D._AGALConverter.ProgramType"]={__ename__:["openfl","_internal","stage3D","_AGALConverter","ProgramType"],__constructs__:["VERTEX","FRAGMENT"]};r.VERTEX=["VERTEX",0],r.VERTEX.toString=i,r.VERTEX.__enum__=r,r.FRAGMENT=["FRAGMENT",1],r.FRAGMENT.toString=i,r.FRAGMENT.__enum__=r,e.default=r}).call(e,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(1).default,r=(n(2).default,n(3).default);function a(){return n(9)}var s=function(t,e,n,i){null==n&&(n=!1),null==e&&(e=!1),this.info=i,a().default.call(this,t,e,n)};s.__name__=["openfl","events","NetStatusEvent"],s.__super__=a().default,(s.prototype=r(a().default.prototype,{clone:function(){var t=new s(this.type,this.bubbles,this.cancelable,this.info);return t.target=this.target,t.currentTarget=this.currentTarget,t.eventPhase=this.eventPhase,t},toString:function(){return this.__formatToString("NetStatusEvent",["type","bubbles","cancelable","info"])}})).__class__=i["openfl.events.NetStatusEvent"]=s,s.NET_STATUS="netStatus",e.default=s}).call(e,n(0))},function(module,exports,__webpack_require__){(function(global){var $global="undefined"!=typeof window?window:void 0!==global?global:"undefined"!=typeof self?self:this;$global.Object.defineProperty(exports,"__esModule",{value:!0});var __map_reserved={},$hxClasses=__webpack_require__(1).default,Lib=function(){};Lib.__name__=["js","Lib"],Lib.prototype={},Lib.prototype.__class__=$hxClasses["js.Lib"]=Lib,Lib.eval=function(code){return eval(code)},Lib.get_undefined=function(){},exports.default=Lib}).call(exports,__webpack_require__(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(1).default,r=function(){};r.__name__=["lime","app","IModule"],(r.prototype={}).__class__=i["lime.app.IModule"]=r,e.default=r}).call(e,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(1).default;n(2).default;function r(){return n(148)}function a(){return n(35)}function s(){return n(251)}function o(){return n(252)}function l(){return n(253)}function u(){return n(5)}var _=function(t){this.onTextInput=new(r().default),this.onTextEdit=new(n(250).default),this.onRestore=new(a().default),this.onResize=new(n(149).default),this.onMove=new(s().default),this.onMouseWheel=new(s().default),this.onMouseUp=new(o().default),this.onMouseMoveRelative=new(s().default),this.onMouseMove=new(s().default),this.onMouseDown=new(o().default),this.onMinimize=new(a().default),this.onLeave=new(a().default),this.onKeyUp=new(l().default),this.onKeyDown=new(l().default),this.onFullscreen=new(a().default),this.onFocusOut=new(a().default),this.onFocusIn=new(a().default),this.onEnter=new(a().default),this.onDropFile=new(r().default),this.onDeactivate=new(a().default),this.onCreate=new(a().default),this.onClose=new(a().default),this.onActivate=new(a().default),this.config=t,this.__width=0,this.__height=0,this.__fullscreen=!1,this.__scale=1,this.__x=0,this.__y=0,this.__title="",this.id=-1,null!=t&&(u().default.hasField(t,"width")&&(this.__width=t.width),u().default.hasField(t,"height")&&(this.__height=t.height),u().default.hasField(t,"x")&&(this.__x=t.x),u().default.hasField(t,"y")&&(this.__y=t.y),u().default.hasField(t,"fullscreen")&&(this.__fullscreen=t.fullscreen),u().default.hasField(t,"borderless")&&(this.__borderless=t.borderless),u().default.hasField(t,"resizable")&&(this.__resizable=t.resizable),u().default.hasField(t,"title")&&(this.__title=t.title)),this.backend=new(n(254).default)(this)};_.__name__=["lime","ui","Window"],(_.prototype={alert:function(t,e){this.backend.alert(t,e)},close:function(){this.backend.close()},create:function(t){this.application=t,null==this.config&&(this.config={}),this.backend.create(t),null!=this.renderer&&this.renderer.create()},focus:function(){this.backend.focus()},move:function(t,e){this.backend.move(t,e),this.__x=t,this.__y=e},resize:function(t,e){this.backend.resize(t,e),this.__width=t,this.__height=e},setIcon:function(t){null!=t&&this.backend.setIcon(t)},toString:function(){return"[object Window]"},get_display:function(){return this.backend.getDisplay()},get_displayMode:function(){return this.backend.getDisplayMode()},set_displayMode:function(t){return this.backend.setDisplayMode(t)},get_borderless:function(){return this.__borderless},set_borderless:function(t){return this.__borderless=this.backend.setBorderless(t)},get_enableTextEvents:function(){return this.backend.getEnableTextEvents()},set_enableTextEvents:function(t){return this.backend.setEnableTextEvents(t)},get_fullscreen:function(){return this.__fullscreen},set_fullscreen:function(t){return this.__fullscreen=this.backend.setFullscreen(t)},get_height:function(){return this.__height},set_height:function(t){return this.resize(this.__width,t),this.__height},get_maximized:function(){return this.__maximized},set_maximized:function(t){return this.__minimized=!1,this.__maximized=this.backend.setMaximized(t)},get_minimized:function(){return this.__minimized},set_minimized:function(t){return this.__maximized=!1,this.__minimized=this.backend.setMinimized(t)},get_resizable:function(){return this.__resizable},set_resizable:function(t){return this.__resizable=this.backend.setResizable(t),this.__resizable},get_scale:function(){return this.__scale},get_title:function(){return this.__title},set_title:function(t){return this.__title=this.backend.setTitle(t)},get_width:function(){return this.__width},set_width:function(t){return this.resize(t,this.__height),this.__width},get_x:function(){return this.__x},set_x:function(t){return this.move(t,this.__y),this.__x},get_y:function(){return this.__y},set_y:function(t){return this.move(this.__x,t),this.__y}}).__class__=i["lime.ui.Window"]=_;var f=_.prototype;Object.defineProperties(f,{borderless:{get:f.get_borderless,set:f.set_borderless},display:{get:f.get_display},displayMode:{get:f.get_displayMode,set:f.set_displayMode},enableTextEvents:{get:f.get_enableTextEvents,set:f.set_enableTextEvents},fullscreen:{get:f.get_fullscreen,set:f.set_fullscreen},height:{get:f.get_height,set:f.set_height},maximized:{get:f.get_maximized,set:f.set_maximized},resizable:{get:f.get_resizable,set:f.set_resizable},scale:{get:f.get_scale},title:{get:f.get_title,set:f.set_title},width:{get:f.get_width,set:f.set_width},x:{get:f.get_x,set:f.set_y},y:{get:f.get_x,set:f.set_y}}),e.default=_}).call(e,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(1).default;n(2).default;function r(){return n(5)}var a=function(){this.canceled=!1,this.__listeners=[],this.__priorities=[],this.__repeat=[]};a.__name__=["lime","app","_Event_String_Void"],(a.prototype={add:function(t,e,n){null==n&&(n=0),null==e&&(e=!1);for(var i=0,r=this.__priorities.length;ithis.__priorities[a])return this.__listeners.splice(a,0,t),this.__priorities.splice(a,0,n),void this.__repeat.splice(a,0,!e)}this.__listeners.push(t),this.__priorities.push(n),this.__repeat.push(!e)},cancel:function(){this.canceled=!0},has:function(t){for(var e=0,n=this.__listeners;e=0;)r().default.compareMethods(this.__listeners[e],t)&&(this.__listeners.splice(e,1),this.__priorities.splice(e,1),this.__repeat.splice(e,1))},dispatch:function(t){this.canceled=!1;for(var e=this.__listeners,n=this.__repeat,i=0;ithis.__priorities[a])return this.__listeners.splice(a,0,t),this.__priorities.splice(a,0,n),void this.__repeat.splice(a,0,!e)}this.__listeners.push(t),this.__priorities.push(n),this.__repeat.push(!e)},cancel:function(){this.canceled=!0},has:function(t){for(var e=0,n=this.__listeners;e=0;)r().default.compareMethods(this.__listeners[e],t)&&(this.__listeners.splice(e,1),this.__priorities.splice(e,1),this.__repeat.splice(e,1))},dispatch:function(t,e){this.canceled=!1;for(var n=this.__listeners,i=this.__repeat,r=0;r255&&(n=255),n<0&&(n=0),a.__alphaTable[r]=n}return a.__alphaTable},a.getBlueTable=function(t){if(null==a.__blueTable){var e=new Uint8Array(256);a.__blueTable=e}for(var n,i=0;i<256;){var r=i++;(n=Math.floor(r*t[12]+255*t[14]))>255&&(n=255),n<0&&(n=0),a.__blueTable[r]=n}return a.__blueTable},a.getGreenTable=function(t){if(null==a.__greenTable){var e=new Uint8Array(256);a.__greenTable=e}for(var n,i=0;i<256;){var r=i++;(n=Math.floor(r*t[6]+255*t[9]))>255&&(n=255),n<0&&(n=0),a.__greenTable[r]=n}return a.__greenTable},a.getRedTable=function(t){if(null==a.__redTable){var e=new Uint8Array(256);a.__redTable=e}for(var n,i=0;i<256;){var r=i++;(n=Math.floor(r*t[0]+255*t[4]))>255&&(n=255),n<0&&(n=0),a.__redTable[r]=n}return a.__redTable},a.__toFlashColorTransform=function(t){return null},a.get_alphaMultiplier=function(t){return t[18]},a.set_alphaMultiplier=function(t,e){return t[18]=e},a.get_alphaOffset=function(t){return 255*t[19]},a.set_alphaOffset=function(t,e){return t[19]=e/255},a.get_blueMultiplier=function(t){return t[12]},a.set_blueMultiplier=function(t,e){return t[12]=e},a.get_blueOffset=function(t){return 255*t[14]},a.set_blueOffset=function(t,e){return t[14]=e/255},a.get_color=function(t){return r().default.int(255*t[4])<<16|r().default.int(255*t[9])<<8|r().default.int(255*t[14])},a.set_color=function(t,e){return t[4]=(e>>16&255)/255,t[9]=(e>>8&255)/255,t[14]=(255&e)/255,t[0]=0,t[6]=0,t[12]=0,a.get_color(t)},a.get_greenMultiplier=function(t){return t[6]},a.set_greenMultiplier=function(t,e){return t[6]=e},a.get_greenOffset=function(t){return 255*t[9]},a.set_greenOffset=function(t,e){return t[9]=e/255},a.get_redMultiplier=function(t){return t[0]},a.set_redMultiplier=function(t,e){return t[0]=e},a.get_redOffset=function(t){return 255*t[4]},a.set_redOffset=function(t,e){return t[4]=e/255},a.get=function(t,e){return t[e]},a.set=function(t,e,n){return t[e]=n},a.__identity=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],e.default=a}).call(e,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(1).default,r=(n(2).default,function(){});r.__name__=["lime","math","color","_RGBA","RGBA_Impl_"],(r.prototype={}).__class__=i["lime.math.color._RGBA.RGBA_Impl_"]=r;var a=new Uint32Array(256);r.__alpha16=a;for(var s=0;s<256;){var o=s++;r.__alpha16[o]=Math.ceil(257.00392156862745*o)}var l=new Uint8Array(510);r.__clamp=l;for(var u=0;u<255;){var _=u++;r.__clamp[_]=_}for(var f=255;f<511;){var d=f++;r.__clamp[d]=255}r._new=function(t){return null==t&&(t=0),t},r.create=function(t,e,n,i){return(255&t)<<24|(255&e)<<16|(255&n)<<8|255&i},r.multiplyAlpha=function(t){0==(255&t)?0!=t&&(t=0):255!=(255&t)&&(t=((t>>>24&255)*(r.a16=r.__alpha16[255&t])>>16&255)<<24|((t>>>16&255)*r.a16>>16&255)<<16|((t>>>8&255)*r.a16>>16&255)<<8|255&t)},r.readUInt8=function(t,e,n,i,a){switch(null==a&&(a=!1),null==i&&(i=0),i){case 0:t=(255&e[n])<<24|(255&e[n+1])<<16|(255&e[n+2])<<8|255&e[n+3];break;case 1:t=(255&e[n+1])<<24|(255&e[n+2])<<16|(255&e[n+3])<<8|255&e[n];break;case 2:t=(255&e[n+2])<<24|(255&e[n+1])<<16|(255&e[n])<<8|255&e[n+3]}a&&0!=(255&t)&&255!=(255&t)&&(r.unmult=255/(255&t),t=(255&r.__clamp[Math.round((t>>>24&255)*r.unmult)])<<24|(255&r.__clamp[Math.round((t>>>16&255)*r.unmult)])<<16|(255&r.__clamp[Math.round((t>>>8&255)*r.unmult)])<<8|255&t)},r.set=function(t,e,n,i,r){(255&e)<<24|(255&n)<<16|(255&i)<<8|255&r},r.unmultiplyAlpha=function(t){0!=(255&t)&&255!=(255&t)&&(r.unmult=255/(255&t),t=(255&r.__clamp[Math.round((t>>>24&255)*r.unmult)])<<24|(255&r.__clamp[Math.round((t>>>16&255)*r.unmult)])<<16|(255&r.__clamp[Math.round((t>>>8&255)*r.unmult)])<<8|255&t)},r.writeUInt8=function(t,e,n,i,a){switch(null==a&&(a=!1),null==i&&(i=0),a&&(0==(255&t)?0!=t&&(t=0):255!=(255&t)&&(t=((t>>>24&255)*(r.a16=r.__alpha16[255&t])>>16&255)<<24|((t>>>16&255)*r.a16>>16&255)<<16|((t>>>8&255)*r.a16>>16&255)<<8|255&t)),i){case 0:e[n]=t>>>24&255,e[n+1]=t>>>16&255,e[n+2]=t>>>8&255,e[n+3]=255&t;break;case 1:e[n]=255&t,e[n+1]=t>>>24&255,e[n+2]=t>>>16&255,e[n+3]=t>>>8&255;break;case 2:e[n]=t>>>8&255,e[n+1]=t>>>16&255,e[n+2]=t>>>24&255,e[n+3]=255&t}},r.__fromARGB=function(t){return(255&t>>>16)<<24|(255&t>>>8)<<16|(255&t)<<8|255&t>>>24},r.__fromBGRA=function(t){return(255&t>>>8)<<24|(255&t>>>16)<<16|(255&t>>>24)<<8|255&t},r.get_a=function(t){return 255&t},r.set_a=function(t,e){return t=(255&t>>>24)<<24|(255&t>>>16)<<16|(255&t>>>8)<<8|255&e,e},r.get_b=function(t){return t>>>8&255},r.set_b=function(t,e){return t=(255&t>>>24)<<24|(255&t>>>16)<<16|(255&e)<<8|255&t,e},r.get_g=function(t){return t>>>16&255},r.set_g=function(t,e){return t=(255&t>>>24)<<24|(255&e)<<16|(255&t>>>8)<<8|255&t,e},r.get_r=function(t){return t>>>24&255},r.set_r=function(t,e){return t=(255&e)<<24|(255&t>>>16)<<16|(255&t>>>8)<<8|255&t,e},e.default=r}).call(e,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(15).default,r=n(1).default.ValueType={__ename__:["ValueType"],__constructs__:["TNull","TInt","TFloat","TBool","TObject","TFunction","TClass","TEnum","TUnknown"]};r.TClass=function(t){var e=["TClass",6,t];return e.__enum__=r,e.toString=i,e},r.TNull=["TNull",0],r.TNull.toString=i,r.TNull.__enum__=r,r.TObject=["TObject",4],r.TObject.toString=i,r.TObject.__enum__=r,r.TFunction=["TFunction",5],r.TFunction.toString=i,r.TFunction.__enum__=r,r.TInt=["TInt",1],r.TInt.toString=i,r.TInt.__enum__=r,r.TUnknown=["TUnknown",8],r.TUnknown.toString=i,r.TUnknown.__enum__=r,r.TEnum=function(t){var e=["TEnum",7,t];return e.__enum__=r,e.toString=i,e},r.TFloat=["TFloat",2],r.TFloat.toString=i,r.TFloat.__enum__=r,r.TBool=["TBool",3],r.TBool.toString=i,r.TBool.__enum__=r,e.default=r}).call(e,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(1).default;n(2).default;function r(){return n(19)}function a(){return n(20)}function s(){return n(4)}function o(){return n(54)}function l(){return n(5)}var u=function(t){if(this.MAX_CLIENT_WAIT_TIMEOUT_WEBGL=37447,this.TIMEOUT_IGNORED=-1,this.INVALID_INDEX=-1,this.DEPTH32F_STENCIL8=36013,this.DEPTH_COMPONENT32F=36012,this.DYNAMIC_COPY=35050,this.DYNAMIC_READ=35049,this.STATIC_COPY=35046,this.STATIC_READ=35045,this.STREAM_COPY=35042,this.STREAM_READ=35041,this.DEPTH_COMPONENT24=33190,this.MAX=32776,this.MIN=32775,this.STENCIL=6146,this.DEPTH=6145,this.COLOR=6144,this.SYNC_FLUSH_COMMANDS_BIT=1,this.WAIT_FAILED=37149,this.CONDITION_SATISFIED=37148,this.TIMEOUT_EXPIRED=37147,this.ALREADY_SIGNALED=37146,this.SIGNALED=37145,this.UNSIGNALED=37144,this.SYNC_GPU_COMMANDS_COMPLETE=37143,this.SYNC_FENCE=37142,this.SYNC_FLAGS=37141,this.SYNC_STATUS=37140,this.SYNC_CONDITION=37139,this.OBJECT_TYPE=37138,this.UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER=35398,this.UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER=35396,this.UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES=35395,this.UNIFORM_BLOCK_ACTIVE_UNIFORMS=35394,this.UNIFORM_BLOCK_DATA_SIZE=35392,this.UNIFORM_BLOCK_BINDING=35391,this.UNIFORM_IS_ROW_MAJOR=35390,this.UNIFORM_MATRIX_STRIDE=35389,this.UNIFORM_ARRAY_STRIDE=35388,this.UNIFORM_OFFSET=35387,this.UNIFORM_BLOCK_INDEX=35386,this.UNIFORM_SIZE=35384,this.UNIFORM_TYPE=35383,this.ACTIVE_UNIFORM_BLOCKS=35382,this.UNIFORM_BUFFER_OFFSET_ALIGNMENT=35380,this.MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS=35379,this.MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS=35377,this.MAX_UNIFORM_BLOCK_SIZE=35376,this.MAX_UNIFORM_BUFFER_BINDINGS=35375,this.MAX_COMBINED_UNIFORM_BLOCKS=35374,this.MAX_FRAGMENT_UNIFORM_BLOCKS=35373,this.MAX_VERTEX_UNIFORM_BLOCKS=35371,this.UNIFORM_BUFFER_SIZE=35370,this.UNIFORM_BUFFER_START=35369,this.UNIFORM_BUFFER_BINDING=35368,this.UNIFORM_BUFFER=35345,this.FRAMEBUFFER_INCOMPLETE_MULTISAMPLE=36182,this.FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER=36052,this.RENDERBUFFER_SAMPLES=36011,this.READ_FRAMEBUFFER_BINDING=36010,this.DRAW_FRAMEBUFFER=36009,this.READ_FRAMEBUFFER=36008,this.DRAW_FRAMEBUFFER_BINDING=36006,this.DEPTH24_STENCIL8=35056,this.FRAMEBUFFER_DEFAULT=33304,this.FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE=33303,this.FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE=33302,this.FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE=33301,this.FRAMEBUFFER_ATTACHMENT_BLUE_SIZE=33300,this.FRAMEBUFFER_ATTACHMENT_GREEN_SIZE=33299,this.FRAMEBUFFER_ATTACHMENT_RED_SIZE=33298,this.FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE=33297,this.FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING=33296,this.TRANSFORM_FEEDBACK_BINDING=36389,this.TRANSFORM_FEEDBACK_ACTIVE=36388,this.TRANSFORM_FEEDBACK_PAUSED=36387,this.TRANSFORM_FEEDBACK=36386,this.TRANSFORM_FEEDBACK_BUFFER_BINDING=35983,this.TRANSFORM_FEEDBACK_BUFFER=35982,this.SEPARATE_ATTRIBS=35981,this.INTERLEAVED_ATTRIBS=35980,this.MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS=35979,this.MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS=35978,this.TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN=35976,this.TRANSFORM_FEEDBACK_BUFFER_SIZE=35973,this.TRANSFORM_FEEDBACK_BUFFER_START=35972,this.TRANSFORM_FEEDBACK_VARYINGS=35971,this.MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS=35968,this.TRANSFORM_FEEDBACK_BUFFER_MODE=35967,this.VERTEX_ATTRIB_ARRAY_DIVISOR=35070,this.VERTEX_ATTRIB_ARRAY_INTEGER=35069,this.SIGNED_NORMALIZED=36764,this.UNSIGNED_NORMALIZED=35863,this.UNSIGNED_INT_VEC4=36296,this.UNSIGNED_INT_VEC3=36295,this.UNSIGNED_INT_VEC2=36294,this.FLOAT_MAT4x3=35690,this.FLOAT_MAT4x2=35689,this.FLOAT_MAT3x4=35688,this.FLOAT_MAT3x2=35687,this.FLOAT_MAT2x4=35686,this.FLOAT_MAT2x3=35685,this.COPY_WRITE_BUFFER_BINDING=36663,this.COPY_READ_BUFFER_BINDING=36662,this.COPY_WRITE_BUFFER=36663,this.COPY_READ_BUFFER=36662,this.PIXEL_UNPACK_BUFFER_BINDING=35055,this.PIXEL_PACK_BUFFER_BINDING=35053,this.PIXEL_UNPACK_BUFFER=35052,this.PIXEL_PACK_BUFFER=35051,this.SAMPLER_BINDING=35097,this.MAX_SAMPLES=36183,this.UNSIGNED_INT_SAMPLER_2D_ARRAY=36311,this.UNSIGNED_INT_SAMPLER_CUBE=36308,this.UNSIGNED_INT_SAMPLER_3D=36307,this.UNSIGNED_INT_SAMPLER_2D=36306,this.INT_SAMPLER_2D_ARRAY=36303,this.INT_SAMPLER_CUBE=36300,this.INT_SAMPLER_3D=36299,this.INT_SAMPLER_2D=36298,this.SAMPLER_CUBE_SHADOW=36293,this.SAMPLER_2D_ARRAY_SHADOW=36292,this.SAMPLER_2D_ARRAY=36289,this.SAMPLER_2D_SHADOW=35682,this.SAMPLER_3D=35679,this.COLOR_ATTACHMENT15=36079,this.COLOR_ATTACHMENT14=36078,this.COLOR_ATTACHMENT13=36077,this.COLOR_ATTACHMENT12=36076,this.COLOR_ATTACHMENT11=36075,this.COLOR_ATTACHMENT10=36074,this.COLOR_ATTACHMENT9=36073,this.COLOR_ATTACHMENT8=36072,this.COLOR_ATTACHMENT7=36071,this.COLOR_ATTACHMENT6=36070,this.COLOR_ATTACHMENT5=36069,this.COLOR_ATTACHMENT4=36068,this.COLOR_ATTACHMENT3=36067,this.COLOR_ATTACHMENT2=36066,this.COLOR_ATTACHMENT1=36065,this.MAX_COLOR_ATTACHMENTS=36063,this.DRAW_BUFFER15=34868,this.DRAW_BUFFER14=34867,this.DRAW_BUFFER13=34866,this.DRAW_BUFFER12=34865,this.DRAW_BUFFER11=34864,this.DRAW_BUFFER10=34863,this.DRAW_BUFFER9=34862,this.DRAW_BUFFER8=34861,this.DRAW_BUFFER7=34860,this.DRAW_BUFFER6=34859,this.DRAW_BUFFER5=34858,this.DRAW_BUFFER4=34857,this.DRAW_BUFFER3=34856,this.DRAW_BUFFER2=34855,this.DRAW_BUFFER1=34854,this.DRAW_BUFFER0=34853,this.MAX_DRAW_BUFFERS=34852,this.ANY_SAMPLES_PASSED_CONSERVATIVE=36202,this.ANY_SAMPLES_PASSED=35887,this.QUERY_RESULT_AVAILABLE=34919,this.QUERY_RESULT=34918,this.CURRENT_QUERY=34917,this.INT_2_10_10_10_REV=36255,this.RG_INTEGER=33320,this.RG=33319,this.HALF_FLOAT=5131,this.UNSIGNED_INT_24_8=34042,this.FLOAT_32_UNSIGNED_INT_24_8_REV=36269,this.UNSIGNED_INT_5_9_9_9_REV=35902,this.UNSIGNED_INT_10F_11F_11F_REV=35899,this.UNSIGNED_INT_2_10_10_10_REV=33640,this.TEXTURE_IMMUTABLE_LEVELS=33503,this.TEXTURE_IMMUTABLE_FORMAT=37167,this.RGB10_A2UI=36975,this.RGBA8_SNORM=36759,this.RGB8_SNORM=36758,this.RG8_SNORM=36757,this.R8_SNORM=36756,this.RG32UI=33340,this.RG32I=33339,this.RG16UI=33338,this.RG16I=33337,this.RG8UI=33336,this.RG8I=33335,this.R32UI=33334,this.R32I=33333,this.R16UI=33332,this.R16I=33331,this.R8UI=33330,this.R8I=33329,this.RG32F=33328,this.RG16F=33327,this.R32F=33326,this.R16F=33325,this.RG8=33323,this.R8=33321,this.RGBA_INTEGER=36249,this.RGB_INTEGER=36248,this.RED_INTEGER=36244,this.RGB8I=36239,this.RGBA8I=36238,this.RGB16I=36233,this.RGBA16I=36232,this.RGB32I=36227,this.RGBA32I=36226,this.RGB8UI=36221,this.RGBA8UI=36220,this.RGB16UI=36215,this.RGBA16UI=36214,this.RGB32UI=36209,this.RGBA32UI=36208,this.RGB9_E5=35901,this.R11F_G11F_B10F=35898,this.TEXTURE_BINDING_2D_ARRAY=35869,this.TEXTURE_2D_ARRAY=35866,this.RGB16F=34843,this.RGBA16F=34842,this.RGB32F=34837,this.RGBA32F=34836,this.COMPARE_REF_TO_TEXTURE=34894,this.SRGB8_ALPHA8=35907,this.SRGB8=35905,this.SRGB=35904,this.TEXTURE_COMPARE_FUNC=34893,this.TEXTURE_COMPARE_MODE=34892,this.TEXTURE_MAX_LEVEL=33085,this.TEXTURE_BASE_LEVEL=33084,this.TEXTURE_MAX_LOD=33083,this.TEXTURE_MIN_LOD=33082,this.TEXTURE_WRAP_R=32882,this.TEXTURE_3D=32879,this.RGB10_A2=32857,this.RGBA8=32856,this.RGB8=32849,this.RED=6403,this.MAX_ELEMENT_INDEX=36203,this.MAX_SERVER_WAIT_TIMEOUT=37137,this.MAX_FRAGMENT_INPUT_COMPONENTS=37157,this.MAX_VERTEX_OUTPUT_COMPONENTS=37154,this.VERTEX_ARRAY_BINDING=34229,this.RASTERIZER_DISCARD=35977,this.FRAGMENT_SHADER_DERIVATIVE_HINT=35723,this.MAX_VARYING_COMPONENTS=35659,this.MAX_PROGRAM_TEXEL_OFFSET=35077,this.MIN_PROGRAM_TEXEL_OFFSET=35076,this.MAX_ARRAY_TEXTURE_LAYERS=35071,this.MAX_VERTEX_UNIFORM_COMPONENTS=35658,this.MAX_FRAGMENT_UNIFORM_COMPONENTS=35657,this.MAX_TEXTURE_LOD_BIAS=34045,this.MAX_ELEMENTS_INDICES=33001,this.MAX_ELEMENTS_VERTICES=33e3,this.MAX_3D_TEXTURE_SIZE=32883,this.UNPACK_IMAGE_HEIGHT=32878,this.UNPACK_SKIP_IMAGES=32877,this.TEXTURE_BINDING_3D=32874,this.PACK_SKIP_PIXELS=3332,this.PACK_SKIP_ROWS=3331,this.PACK_ROW_LENGTH=3330,this.UNPACK_SKIP_PIXELS=3316,this.UNPACK_SKIP_ROWS=3315,this.UNPACK_ROW_LENGTH=3314,this.READ_BUFFER=3074,this.BROWSER_DEFAULT_WEBGL=37444,this.UNPACK_COLORSPACE_CONVERSION_WEBGL=37443,this.CONTEXT_LOST_WEBGL=37442,this.UNPACK_PREMULTIPLY_ALPHA_WEBGL=37441,this.UNPACK_FLIP_Y_WEBGL=37440,this.INVALID_FRAMEBUFFER_OPERATION=1286,this.MAX_RENDERBUFFER_SIZE=34024,this.RENDERBUFFER_BINDING=36007,this.FRAMEBUFFER_BINDING=36006,this.FRAMEBUFFER_UNSUPPORTED=36061,this.FRAMEBUFFER_INCOMPLETE_DIMENSIONS=36057,this.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT=36055,this.FRAMEBUFFER_INCOMPLETE_ATTACHMENT=36054,this.FRAMEBUFFER_COMPLETE=36053,this.NONE=0,this.DEPTH_STENCIL_ATTACHMENT=33306,this.STENCIL_ATTACHMENT=36128,this.DEPTH_ATTACHMENT=36096,this.COLOR_ATTACHMENT0=36064,this.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE=36051,this.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL=36050,this.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME=36049,this.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE=36048,this.RENDERBUFFER_STENCIL_SIZE=36181,this.RENDERBUFFER_DEPTH_SIZE=36180,this.RENDERBUFFER_ALPHA_SIZE=36179,this.RENDERBUFFER_BLUE_SIZE=36178,this.RENDERBUFFER_GREEN_SIZE=36177,this.RENDERBUFFER_RED_SIZE=36176,this.RENDERBUFFER_INTERNAL_FORMAT=36164,this.RENDERBUFFER_HEIGHT=36163,this.RENDERBUFFER_WIDTH=36162,this.DEPTH_STENCIL=34041,this.STENCIL_INDEX8=36168,this.STENCIL_INDEX=6401,this.DEPTH_COMPONENT16=33189,this.RGB565=36194,this.RGB5_A1=32855,this.RGBA4=32854,this.RENDERBUFFER=36161,this.FRAMEBUFFER=36160,this.HIGH_INT=36341,this.MEDIUM_INT=36340,this.LOW_INT=36339,this.HIGH_FLOAT=36338,this.MEDIUM_FLOAT=36337,this.LOW_FLOAT=36336,this.COMPILE_STATUS=35713,this.POINT_SPRITE=34913,this.VERTEX_PROGRAM_POINT_SIZE=34370,this.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING=34975,this.VERTEX_ATTRIB_ARRAY_POINTER=34373,this.VERTEX_ATTRIB_ARRAY_NORMALIZED=34922,this.VERTEX_ATTRIB_ARRAY_TYPE=34341,this.VERTEX_ATTRIB_ARRAY_STRIDE=34340,this.VERTEX_ATTRIB_ARRAY_SIZE=34339,this.VERTEX_ATTRIB_ARRAY_ENABLED=34338,this.SAMPLER_CUBE=35680,this.SAMPLER_2D=35678,this.FLOAT_MAT4=35676,this.FLOAT_MAT3=35675,this.FLOAT_MAT2=35674,this.BOOL_VEC4=35673,this.BOOL_VEC3=35672,this.BOOL_VEC2=35671,this.BOOL=35670,this.INT_VEC4=35669,this.INT_VEC3=35668,this.INT_VEC2=35667,this.FLOAT_VEC4=35666,this.FLOAT_VEC3=35665,this.FLOAT_VEC2=35664,this.MIRRORED_REPEAT=33648,this.CLAMP_TO_EDGE=33071,this.REPEAT=10497,this.ACTIVE_TEXTURE=34016,this.TEXTURE31=34015,this.TEXTURE30=34014,this.TEXTURE29=34013,this.TEXTURE28=34012,this.TEXTURE27=34011,this.TEXTURE26=34010,this.TEXTURE25=34009,this.TEXTURE24=34008,this.TEXTURE23=34007,this.TEXTURE22=34006,this.TEXTURE21=34005,this.TEXTURE20=34004,this.TEXTURE19=34003,this.TEXTURE18=34002,this.TEXTURE17=34001,this.TEXTURE16=34e3,this.TEXTURE15=33999,this.TEXTURE14=33998,this.TEXTURE13=33997,this.TEXTURE12=33996,this.TEXTURE11=33995,this.TEXTURE10=33994,this.TEXTURE9=33993,this.TEXTURE8=33992,this.TEXTURE7=33991,this.TEXTURE6=33990,this.TEXTURE5=33989,this.TEXTURE4=33988,this.TEXTURE3=33987,this.TEXTURE2=33986,this.TEXTURE1=33985,this.TEXTURE0=33984,this.MAX_CUBE_MAP_TEXTURE_SIZE=34076,this.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074,this.TEXTURE_CUBE_MAP_POSITIVE_Z=34073,this.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072,this.TEXTURE_CUBE_MAP_POSITIVE_Y=34071,this.TEXTURE_CUBE_MAP_NEGATIVE_X=34070,this.TEXTURE_CUBE_MAP_POSITIVE_X=34069,this.TEXTURE_BINDING_CUBE_MAP=34068,this.TEXTURE_CUBE_MAP=34067,this.TEXTURE=5890,this.TEXTURE_2D=3553,this.TEXTURE_WRAP_T=10243,this.TEXTURE_WRAP_S=10242,this.TEXTURE_MIN_FILTER=10241,this.TEXTURE_MAG_FILTER=10240,this.LINEAR_MIPMAP_LINEAR=9987,this.NEAREST_MIPMAP_LINEAR=9986,this.LINEAR_MIPMAP_NEAREST=9985,this.NEAREST_MIPMAP_NEAREST=9984,this.LINEAR=9729,this.NEAREST=9728,this.VERSION=7938,this.RENDERER=7937,this.VENDOR=7936,this.DECR_WRAP=34056,this.INCR_WRAP=34055,this.INVERT=5386,this.DECR=7683,this.INCR=7682,this.REPLACE=7681,this.KEEP=7680,this.ALWAYS=519,this.GEQUAL=518,this.NOTEQUAL=517,this.GREATER=516,this.LEQUAL=515,this.EQUAL=514,this.LESS=513,this.NEVER=512,this.CURRENT_PROGRAM=35725,this.SHADING_LANGUAGE_VERSION=35724,this.ACTIVE_ATTRIBUTES=35721,this.ACTIVE_UNIFORMS=35718,this.ATTACHED_SHADERS=35717,this.VALIDATE_STATUS=35715,this.LINK_STATUS=35714,this.DELETE_STATUS=35712,this.SHADER_TYPE=35663,this.MAX_FRAGMENT_UNIFORM_VECTORS=36349,this.MAX_TEXTURE_IMAGE_UNITS=34930,this.MAX_VERTEX_TEXTURE_IMAGE_UNITS=35660,this.MAX_COMBINED_TEXTURE_IMAGE_UNITS=35661,this.MAX_VARYING_VECTORS=36348,this.MAX_VERTEX_UNIFORM_VECTORS=36347,this.MAX_VERTEX_ATTRIBS=34921,this.VERTEX_SHADER=35633,this.FRAGMENT_SHADER=35632,this.UNSIGNED_SHORT_5_6_5=33635,this.UNSIGNED_SHORT_5_5_5_1=32820,this.UNSIGNED_SHORT_4_4_4_4=32819,this.LUMINANCE_ALPHA=6410,this.LUMINANCE=6409,this.RGBA=6408,this.RGB=6407,this.ALPHA=6406,this.DEPTH_COMPONENT=6402,this.FLOAT=5126,this.UNSIGNED_INT=5125,this.INT=5124,this.UNSIGNED_SHORT=5123,this.SHORT=5122,this.UNSIGNED_BYTE=5121,this.BYTE=5120,this.GENERATE_MIPMAP_HINT=33170,this.NICEST=4354,this.FASTEST=4353,this.DONT_CARE=4352,this.COMPRESSED_TEXTURE_FORMATS=34467,this.SAMPLE_COVERAGE_INVERT=32939,this.SAMPLE_COVERAGE_VALUE=32938,this.SAMPLES=32937,this.SAMPLE_BUFFERS=32936,this.TEXTURE_BINDING_2D=32873,this.POLYGON_OFFSET_FACTOR=32824,this.POLYGON_OFFSET_UNITS=10752,this.STENCIL_BITS=3415,this.DEPTH_BITS=3414,this.ALPHA_BITS=3413,this.BLUE_BITS=3412,this.GREEN_BITS=3411,this.RED_BITS=3410,this.SUBPIXEL_BITS=3408,this.MAX_VIEWPORT_DIMS=3386,this.MAX_TEXTURE_SIZE=3379,this.PACK_ALIGNMENT=3333,this.UNPACK_ALIGNMENT=3317,this.COLOR_WRITEMASK=3107,this.COLOR_CLEAR_VALUE=3106,this.SCISSOR_BOX=3088,this.VIEWPORT=2978,this.STENCIL_BACK_WRITEMASK=36005,this.STENCIL_BACK_VALUE_MASK=36004,this.STENCIL_BACK_REF=36003,this.STENCIL_BACK_PASS_DEPTH_PASS=34819,this.STENCIL_BACK_PASS_DEPTH_FAIL=34818,this.STENCIL_BACK_FAIL=34817,this.STENCIL_BACK_FUNC=34816,this.STENCIL_WRITEMASK=2968,this.STENCIL_VALUE_MASK=2963,this.STENCIL_REF=2967,this.STENCIL_PASS_DEPTH_PASS=2966,this.STENCIL_PASS_DEPTH_FAIL=2965,this.STENCIL_FAIL=2964,this.STENCIL_FUNC=2962,this.STENCIL_CLEAR_VALUE=2961,this.DEPTH_FUNC=2932,this.DEPTH_CLEAR_VALUE=2931,this.DEPTH_WRITEMASK=2930,this.DEPTH_RANGE=2928,this.FRONT_FACE=2886,this.CULL_FACE_MODE=2885,this.ALIASED_LINE_WIDTH_RANGE=33902,this.ALIASED_POINT_SIZE_RANGE=33901,this.LINE_WIDTH=2849,this.CCW=2305,this.CW=2304,this.OUT_OF_MEMORY=1285,this.INVALID_OPERATION=1282,this.INVALID_VALUE=1281,this.INVALID_ENUM=1280,this.NO_ERROR=0,this.SAMPLE_COVERAGE=32928,this.SAMPLE_ALPHA_TO_COVERAGE=32926,this.POLYGON_OFFSET_FILL=32823,this.SCISSOR_TEST=3089,this.DEPTH_TEST=2929,this.STENCIL_TEST=2960,this.DITHER=3024,this.BLEND=3042,this.CULL_FACE=2884,this.FRONT_AND_BACK=1032,this.BACK=1029,this.FRONT=1028,this.CURRENT_VERTEX_ATTRIB=34342,this.BUFFER_USAGE=34661,this.BUFFER_SIZE=34660,this.DYNAMIC_DRAW=35048,this.STATIC_DRAW=35044,this.STREAM_DRAW=35040,this.ELEMENT_ARRAY_BUFFER_BINDING=34965,this.ARRAY_BUFFER_BINDING=34964,this.ELEMENT_ARRAY_BUFFER=34963,this.ARRAY_BUFFER=34962,this.BLEND_COLOR=32773,this.ONE_MINUS_CONSTANT_ALPHA=32772,this.CONSTANT_ALPHA=32771,this.ONE_MINUS_CONSTANT_COLOR=32770,this.CONSTANT_COLOR=32769,this.BLEND_SRC_ALPHA=32971,this.BLEND_DST_ALPHA=32970,this.BLEND_SRC_RGB=32969,this.BLEND_DST_RGB=32968,this.FUNC_REVERSE_SUBTRACT=32779,this.FUNC_SUBTRACT=32778,this.BLEND_EQUATION_ALPHA=34877,this.BLEND_EQUATION_RGB=32777,this.BLEND_EQUATION=32777,this.FUNC_ADD=32774,this.SRC_ALPHA_SATURATE=776,this.ONE_MINUS_DST_COLOR=775,this.DST_COLOR=774,this.ONE_MINUS_DST_ALPHA=773,this.DST_ALPHA=772,this.ONE_MINUS_SRC_ALPHA=771,this.SRC_ALPHA=770,this.ONE_MINUS_SRC_COLOR=769,this.SRC_COLOR=768,this.ONE=1,this.ZERO=0,this.TRIANGLE_FAN=6,this.TRIANGLE_STRIP=5,this.TRIANGLES=4,this.LINE_STRIP=3,this.LINE_LOOP=2,this.LINES=1,this.POINTS=0,this.COLOR_BUFFER_BIT=16384,this.STENCIL_BUFFER_BIT=1024,this.DEPTH_BUFFER_BIT=256,this.__context=t,this.version=1,this.type=n(87).default.WEBGL,null!=t){var e=t;l().default.hasField(e,"rawgl")&&(e=l().default.field(t,"rawgl")),l().default.hasField(n(11).default.get_window(),"WebGL2RenderingContext")&&s().default.is(e,WebGL2RenderingContext)&&(this.version=2)}};u.__name__=["lime","_backend","html5","HTML5GLRenderContext"],(u.prototype={activeTexture:function(t){this.__context.activeTexture(t)},attachShader:function(t,e){this.__context.attachShader(t,e)},beginQuery:function(t,e){this.__context.beginQuery(t,e)},beginTransformFeedback:function(t){this.__context.beginTransformFeedback(t)},bindAttribLocation:function(t,e,n){this.__context.bindAttribLocation(t,e,n)},bindBuffer:function(t,e){this.__context.bindBuffer(t,e)},bindBufferBase:function(t,e,n){this.__context.bindBufferBase(t,e,n)},bindBufferRange:function(t,e,n,i,a){this.__context.bindBufferRange(t,e,n,r().default.fromInt(r().default.toValue(i)),r().default.fromInt(a))},bindFramebuffer:function(t,e){this.__context.bindFramebuffer(t,e)},bindRenderbuffer:function(t,e){this.__context.bindRenderbuffer(t,e)},bindSampler:function(t,e){this.__context.bindSampler(t,e)},bindTexture:function(t,e){this.__context.bindTexture(t,e)},bindTransformFeedback:function(t,e){this.__context.bindTransformFeedback(t,e)},bindVertexArray:function(t){this.__context.bindVertexArray(t)},blendColor:function(t,e,n,i){this.__context.blendColor(t,e,n,i)},blendEquation:function(t){this.__context.blendEquation(t)},blendEquationSeparate:function(t,e){this.__context.blendEquationSeparate(t,e)},blendFunc:function(t,e){this.__context.blendFunc(t,e)},blendFuncSeparate:function(t,e,n,i){this.__context.blendFuncSeparate(t,e,n,i)},blitFramebuffer:function(t,e,n,i,r,a,s,o,l,u){this.__context.blitFramebuffer(t,e,n,i,r,a,s,o,l,u)},bufferData:function(t,e,n,i){this.__context.bufferData(t,r().default.toBufferView(n,e),i)},bufferDataWEBGL:function(t,e,n,i,r){null!=i?this.__context.bufferData(t,e,n,i,r):this.__context.bufferData(t,e,n)},bufferSubData:function(t,e,n,i){this.__context.bufferSubData(t,e,r().default.toBufferView(i,n))},bufferSubDataWEBGL:function(t,e,n,i,r){null!=i?this.__context.bufferSubData(t,e,n,i,r):this.__context.bufferSubData(t,e,n)},checkFramebufferStatus:function(t){return this.__context.checkFramebufferStatus(t)},clear:function(t){this.__context.clear(t)},clearBufferfi:function(t,e,n,i){this.__context.clearBufferfi(t,e,n,i)},clearBufferfv:function(t,e,n){this.__context.clearBufferfv(t,e,r().default.toFloat32Array(n))},clearBufferfvWEBGL:function(t,e,n,i){this.__context.clearBufferfv(t,e,n,i)},clearBufferiv:function(t,e,n){this.__context.clearBufferiv(t,e,r().default.toInt32Array(n))},clearBufferivWEBGL:function(t,e,n,i){this.__context.clearBufferiv(t,e,n,i)},clearBufferuiv:function(t,e,n){this.__context.clearBufferuiv(t,e,r().default.toUInt32Array(n))},clearBufferuivWEBGL:function(t,e,n,i){this.__context.clearBufferuiv(t,e,n,i)},clearColor:function(t,e,n,i){this.__context.clearColor(t,e,n,i)},clearDepth:function(t){this.__context.clearDepth(t)},clearDepthf:function(t){this.clearDepth(t)},clearStencil:function(t){this.__context.clearStencil(t)},clientWaitSync:function(t,e,n){return this.__context.clientWaitSync(t,e,n)},copyBufferSubData:function(t,e,n,i,r){},colorMask:function(t,e,n,i){this.__context.colorMask(t,e,n,i)},compileShader:function(t){this.__context.compileShader(t)},compressedTexImage2D:function(t,e,n,i,a,s,o,l){this.__context.compressedTexImage2D(t,e,n,i,a,s,r().default.toBufferView(l,o))},compressedTexImage2DWEBGL:function(t,e,n,i,r,a,s,o,l){null!=o?this.__context.compressedTexImage2D(t,e,n,i,r,a,s,o,l):this.__context.compressedTexImage2D(t,e,n,i,r,a,s)},compressedTexImage3D:function(t,e,n,i,a,s,o,l,u){this.__context.compressedTexImage3D(t,e,n,i,a,s,o,r().default.toBufferView(u,l))},compressedTexImage3DWEBGL:function(t,e,n,i,r,a,s,o,l,u){this.__context.compressedTexImage3D(t,e,n,i,r,a,s,o,l,u)},compressedTexSubImage2D:function(t,e,n,i,a,s,o,l,u){this.__context.compressedTexSubImage2D(t,e,n,i,a,s,o,r().default.toBufferView(u,l))},compressedTexSubImage2DWEBGL:function(t,e,n,i,r,a,s,o,l,u){null!=l?this.__context.compressedTexSubImage2D(t,e,n,i,r,a,s,o,l,u):this.__context.compressedTexSubImage2D(t,e,n,i,r,a,s,o)},compressedTexSubImage3D:function(t,e,n,i,a,s,o,l,u,_,f){this.__context.compressedTexSubImage3D(t,e,n,i,a,s,o,l,u,r().default.toBufferView(f,_))},compressedTexSubImage3DWEBGL:function(t,e,n,i,r,a,s,o,l,u,_,f){this.__context.compressedTexSubImage3D(t,e,n,i,r,a,s,o,l,u,_,f)},copySubBufferData:function(t,e,n,i,a){this.__context.copySubBufferData(t,e,r().default.fromInt(r().default.toValue(n)),r().default.fromInt(r().default.toValue(i)),a)},copyTexImage2D:function(t,e,n,i,r,a,s,o){this.__context.copyTexImage2D(t,e,n,i,r,a,s,o)},copyTexSubImage2D:function(t,e,n,i,r,a,s,o){this.__context.copyTexSubImage2D(t,e,n,i,r,a,s,o)},copyTexSubImage3D:function(t,e,n,i,r,a,s,o,l){this.__context.copyTexSubImage3D(t,e,n,i,r,a,s,o,l)},createBuffer:function(){return this.__context.createBuffer()},createFramebuffer:function(){return this.__context.createFramebuffer()},createProgram:function(){return this.__context.createProgram()},createQuery:function(){return this.__context.createQuery()},createRenderbuffer:function(){return this.__context.createRenderbuffer()},createSampler:function(){return this.__context.createSampler()},createShader:function(t){return this.__context.createShader(t)},createTexture:function(){return this.__context.createTexture()},createTransformFeedback:function(){return this.__context.createTransformFeedback()},createVertexArray:function(){return this.__context.createVertexArray()},cullFace:function(t){this.__context.cullFace(t)},deleteBuffer:function(t){this.__context.deleteBuffer(t)},deleteFramebuffer:function(t){this.__context.deleteFramebuffer(t)},deleteProgram:function(t){this.__context.deleteProgram(t)},deleteQuery:function(t){this.__context.deleteQuery(t)},deleteRenderbuffer:function(t){this.__context.deleteRenderbuffer(t)},deleteSampler:function(t){this.__context.deleteSampler(t)},deleteShader:function(t){this.__context.deleteShader(t)},deleteSync:function(t){this.__context.deleteSync(t)},deleteTexture:function(t){this.__context.deleteTexture(t)},deleteTransformFeedback:function(t){this.__context.deleteTransformFeedback(t)},deleteVertexArray:function(t){this.__context.deleteVertexArray(t)},depthFunc:function(t){this.__context.depthFunc(t)},depthMask:function(t){this.__context.depthMask(t)},depthRange:function(t,e){this.__context.depthRange(t,e)},depthRangef:function(t,e){this.depthRange(t,e)},detachShader:function(t,e){this.__context.detachShader(t,e)},disable:function(t){this.__context.disable(t)},disableVertexAttribArray:function(t){this.__context.disableVertexAttribArray(t)},drawArrays:function(t,e,n){this.__context.drawArrays(t,e,n)},drawArraysInstanced:function(t,e,n,i){this.__context.drawArraysInstanced(t,e,n,i)},drawBuffers:function(t){this.__context.drawBuffers(t)},drawElements:function(t,e,n,i){this.__context.drawElements(t,e,n,r().default.toValue(i))},drawElementsInstanced:function(t,e,n,i,a){this.__context.drawElementsInstanced(t,e,n,r().default.fromInt(r().default.toValue(i)),a)},drawRangeElements:function(t,e,n,i,a,s){this.__context.drawRangeElements(t,e,n,i,a,r().default.fromInt(r().default.toValue(s)))},enable:function(t){this.__context.enable(t)},enableVertexAttribArray:function(t){this.__context.enableVertexAttribArray(t)},endQuery:function(t){this.__context.endQuery(t)},endTransformFeedback:function(){this.__context.endTransformFeedback()},fenceSync:function(t,e){return this.__context.fenceSync(t,e)},finish:function(){this.__context.finish()},flush:function(){this.__context.flush()},framebufferRenderbuffer:function(t,e,n,i){this.__context.framebufferRenderbuffer(t,e,n,i)},framebufferTexture2D:function(t,e,n,i,r){this.__context.framebufferTexture2D(t,e,n,i,r)},framebufferTextureLayer:function(t,e,n,i,r){this.__context.framebufferTextureLayer(t,e,n,i,r)},frontFace:function(t){this.__context.frontFace(t)},generateMipmap:function(t){this.__context.generateMipmap(t)},getActiveAttrib:function(t,e){return this.__context.getActiveAttrib(t,e)},getActiveUniform:function(t,e){return this.__context.getActiveUniform(t,e)},getActiveUniformBlocki:function(t,e,n){return this.getActiveUniformBlockParameter(t,e,n)},getActiveUniformBlockiv:function(t,e,n,i){r().default.toInt32Array(i)[0]=this.getActiveUniformBlockParameter(t,e,n)},getActiveUniformBlockName:function(t,e){return this.__context.getActiveUniformBlockName(t,e)},getActiveUniformBlockParameter:function(t,e,n){return this.__context.getActiveUniformBlockParameter(t,e,n)},getActiveUniforms:function(t,e,n){return this.__context.getActiveUniforms(t,e,n)},getActiveUniformsiv:function(t,e,n,i){},getAttachedShaders:function(t){return this.__context.getAttachedShaders(t)},getAttribLocation:function(t,e){return this.__context.getAttribLocation(t,e)},getBoolean:function(t){return this.getParameter(t)},getBooleanv:function(t,e){var n=r().default.toUInt8Array(e),s=this.getParameter(t);if(s instanceof Array&&null==s.__enum__)for(var o=s,l=0,u=o.length;l0&&(i+="&"),i+=r().default.urlEncode(o)+"="+r().default.urlEncode(a().default.string(this.parent.formData.get(o)))}"GET"==this.parent.method&&""!=i&&(t.indexOf("?")>-1?t+="&"+i:t+="?"+i,i="")}this.request.open(a().default.string(this.parent.method),t,!0),this.parent.timeout>0&&(this.request.timeout=this.parent.timeout),this.binary&&(this.request.responseType="arraybuffer");for(var l=null,u=0,_=this.parent.headers;u<_.length;){var f=_[u];++u,"Content-Type"==f.name?l=f.value:this.request.setRequestHeader(f.name,f.value)}null!=this.parent.contentType&&(l=this.parent.contentType),null==l&&(null!=this.parent.data?l="application/octet-stream":""!=i&&(l="application/x-www-form-urlencoded")),null!=l&&this.request.setRequestHeader("Content-Type",l),this.parent.withCredentials&&(this.request.withCredentials=!0),null!=this.parent.data?this.request.send(this.parent.data.getData()):this.request.send(i)},loadData:function(t){var e=new(s().default);return f.activeRequests=200&&n.request.status<400||n.validStatus0&&0==n.request.status)){var i=null;""==n.request.responseType?null!=n.request.responseText&&(i=l().default.ofString(n.request.responseText)):null!=n.request.response&&(i=l().default.ofData(n.request.response)),n.processResponse(),e.complete(i)}else n.processResponse(),e.error(n.request.status);n.request=null,f.activeRequests--,f.processQueue()}})},__loadText:function(t,e){var n=this;this.binary=!1,this.load(t,function(t){e.progress(t.loaded,t.total)},function(t){4==n.request.readyState&&(null!=n.request.status&&(n.request.status>=200&&n.request.status<=400||n.validStatus0&&0==n.request.status)?(n.processResponse(),e.complete(n.request.responseText)):(n.processResponse(),e.error(n.request.status)),n.request=null,f.activeRequests--,f.processQueue())})}}).__class__=i["lime._backend.html5.HTML5HTTPRequest"]=f,f.loadImage=function(t){var e=new(s().default);return f.activeRequests0){f.activeRequests++;var t=f.requestQueue.pop();switch(t.type){case"BINARY":t.instance.__loadData(t.uri,t.promise);break;case"IMAGE":f.__loadImage(t.uri,t.promise);break;case"TEXT":t.instance.__loadText(t.uri,t.promise);break;default:f.activeRequests--}}},f.__fixHostname=function(t){return null==t?"":t},f.__fixPort=function(t,e){if(null==t||""==t)switch(e){case"ftp:":return"21";case"gopher:":return"70";case"http:":return"80";case"https:":return"443";case"ws:":return"80";case"wss:":return"443";default:return""}return t},f.__fixProtocol=function(t){return null==t||""==t?"http:":t},f.__isSameOrigin=function(t){null==f.originElement&&(f.originElement=u().default.get_document().createElement("a"),f.originHostname=f.__fixHostname(u().default.get_location().hostname),f.originProtocol=f.__fixProtocol(u().default.get_location().protocol),f.originPort=f.__fixPort(u().default.get_location().port,f.originProtocol));var e=f.originElement;e.href=t,""==e.hostname&&(e.href=e.href);var n=f.__fixHostname(e.hostname),i=f.__fixProtocol(e.protocol),r=f.__fixPort(e.port,i);return!("file:"==i||!(""==n||n==f.originHostname))&&(""==r||r==f.originPort)},f.__loadImage=function(t,e){var i=new Image;if(f.__isSameOrigin(t)||(i.crossOrigin="Anonymous"),null==f.supportsImageProgress&&(f.supportsImageProgress="onprogress"in i),f.supportsImageProgress||r().default.startsWith(t,"data:"))i.addEventListener("load",function(t){var r=new(n(110).default)(null,i.width,i.height);r.__srcImage=i,f.activeRequests--,f.processQueue(),e.complete(new(_().default)(r))},!1),i.addEventListener("progress",function(t){e.progress(t.loaded,t.total)},!1),i.addEventListener("error",function(t){f.activeRequests--,f.processQueue(),e.error(t.detail)},!1),i.src=t;else{var a=new XMLHttpRequest;a.onload=function(t){f.activeRequests--,f.processQueue(),(new(_().default)).__fromBytes(l().default.ofData(a.response),function(t){e.complete(t)})},a.onerror=function(t){e.error(t.message)},a.onprogress=function(t){t.lengthComputable&&e.progress(t.loaded,t.total)},a.open("GET",t,!0),a.responseType="arraybuffer",a.overrideMimeType("text/plain; charset=x-user-defined"),a.send(null)}},f.activeRequests=0,f.requestLimit=4,f.requestQueue=new(n(48).default),e.default=f}).call(e,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(1).default,r=function(t,e){null==e&&(e=""),this.name=t,this.value=e};r.__name__=["lime","net","HTTPRequestHeader"],(r.prototype={}).__class__=i["lime.net.HTTPRequestHeader"]=r,e.default=r}).call(e,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(1).default;n(2).default;function r(){return n(16)}function a(){return n(6)}var s=function(t){for(var e=t.get_length(),n=1;e>1<8||e!=1<>l&u))}return l>0&&s.set(f++,i.get(o<>3,s=r().default.alloc(i),o=0,l=0,u=0,_=0;_>l&255)}return s}}).__class__=i["haxe.crypto.BaseCode"]=s,e.default=s}).call(e,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(1).default,r=function(){};r.__name__=["openfl","events","IEventDispatcher"],(r.prototype={}).__class__=i["openfl.events.IEventDispatcher"]=r,e.default=r}).call(e,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(1).default;n(2).default;function r(){return n(4)}var a=function(){};a.__name__=["openfl","_internal","renderer","canvas","CanvasDisplayObject"],(a.prototype={}).__class__=i["openfl._internal.renderer.canvas.CanvasDisplayObject"]=a,a.render=function(t,e){if((null!=t.opaqueBackground||null!=t.__graphics)&&t.__renderable&&!(t.__worldAlpha<=0)){if(null!=t.opaqueBackground&&!t.__cacheBitmapRender&&t.get_width()>0&&t.get_height()>0){e.blendModeManager.setBlendMode(t.__worldBlendMode),e.maskManager.pushObject(t);var i=e.context,a=t.__renderTransform;e.roundPixels?i.setTransform(a.a,a.b,a.c,a.d,r().default.int(a.tx),r().default.int(a.ty)):i.setTransform(a.a,a.b,a.c,a.d,a.tx,a.ty);var s=t.opaqueBackground;i.fillStyle="rgb("+(s>>>16&255)+","+(s>>>8&255)+","+(255&s)+")",i.fillRect(0,0,t.get_width(),t.get_height()),e.maskManager.popObject(t)}null!=t.__graphics&&n(291).default.render(t,e)}},e.default=a}).call(e,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(1).default;n(2).default;function r(){return n(117)}var a=function(){null==a.empty?(this.types=[],this.b=[],this.i=[],this.f=[],this.o=[],this.ff=[],this.ii=[],this.copyOnWrite=!0):this.clear()};a.__name__=["openfl","_internal","renderer","DrawCommandBuffer"],a.prototype={append:function(t){if(0==this.get_length())return this.types=t.types,this.b=t.b,this.i=t.i,this.f=t.f,this.o=t.o,this.ff=t.ff,this.ii=t.ii,this.copyOnWrite=t.copyOnWrite=!0,t;for(var e=new(n(116).default)(t),i=0,r=t.types;i0||this.offsetY>0)&&(this.gl.clearColor(0,0,0,1),this.gl.enable(this.gl.SCISSOR_TEST),this.offsetX>0&&(this.gl.scissor(0,0,this.offsetX,this.height),this.gl.clear(this.gl.COLOR_BUFFER_BIT),this.gl.scissor(this.offsetX+this.displayWidth,0,this.width,this.height),this.gl.clear(this.gl.COLOR_BUFFER_BIT)),this.offsetY>0&&(this.gl.scissor(0,0,this.width,this.offsetY),this.gl.clear(this.gl.COLOR_BUFFER_BIT),this.gl.scissor(0,this.offsetY+this.displayHeight,this.width,this.height),this.gl.clear(this.gl.COLOR_BUFFER_BIT)),this.gl.disable(this.gl.SCISSOR_TEST))},renderStage3D:function(){for(var t=0,e=this.stage.stage3Ds;t0&&e>0&&(null==this.renderTargetA||this.renderTargetA.width==t&&this.renderTargetA.height==e||(this.renderTargetA=l().default.fromTexture(this.stage.stage3Ds.get(0).context3D.createRectangleTexture(t,e,"bgra",!0)),this.gl.bindTexture(this.gl.TEXTURE_2D,this.renderTargetA.getTexture(this.gl)),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,this.gl.CLAMP_TO_EDGE),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,this.gl.CLAMP_TO_EDGE)),null==this.renderTargetB||this.renderTargetB.width==t&&this.renderTargetB.height==e||(this.renderTargetB=l().default.fromTexture(this.stage.stage3Ds.get(0).context3D.createRectangleTexture(t,e,"bgra",!0)),this.gl.bindTexture(this.gl.TEXTURE_2D,this.renderTargetB.getTexture(this.gl)),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,this.gl.CLAMP_TO_EDGE),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,this.gl.CLAMP_TO_EDGE))),this.displayMatrix=null==this.defaultRenderTarget?this.stage.__displayMatrix:new(s().default);var n=null==this.defaultRenderTarget?this.stage.stageWidth:this.defaultRenderTarget.width,i=null==this.defaultRenderTarget?this.stage.stageHeight:this.defaultRenderTarget.height;this.offsetX=Math.round(this.displayMatrix.__transformX(0,0)),this.offsetY=Math.round(this.displayMatrix.__transformY(0,0)),this.displayWidth=Math.round(this.displayMatrix.__transformX(n,0)-this.offsetX),this.displayHeight=Math.round(this.displayMatrix.__transformY(0,i)-this.offsetY),this.projection=o().default.createOrtho(this.offsetX,this.displayWidth+this.offsetX,this.offsetY,this.displayHeight+this.offsetY,-1e3,1e3),this.projectionFlipped=o().default.createOrtho(this.offsetX,this.displayWidth+this.offsetX,this.displayHeight+this.offsetY,this.offsetY,-1e3,1e3)}})).__class__=i["openfl._internal.renderer.opengl.GLRenderer"]=_,e.default=_}).call(e,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(1).default,r=(n(2).default,function(t,e,n,i){null==i&&(i=0),null==n&&(n=0),null==e&&(e=0),null==t&&(t=0),this.w=i,this.x=t,this.y=e,this.z=n});r.__name__=["lime","math","Vector4"],(r.prototype={add:function(t){return new r(this.x+t.x,this.y+t.y,this.z+t.z)},clone:function(){return new r(this.x,this.y,this.z,this.w)},copyFrom:function(t){this.x=t.x,this.y=t.y,this.z=t.z},crossProduct:function(t){return new r(this.y*t.z-this.z*t.y,this.z*t.x-this.x*t.z,this.x*t.y-this.y*t.x,1)},decrementBy:function(t){this.x-=t.x,this.y-=t.y,this.z-=t.z},dotProduct:function(t){return this.x*t.x+this.y*t.y+this.z*t.z},equals:function(t,e){return null==e&&(e=!1),this.x==t.x&&this.y==t.y&&this.z==t.z&&(!e||this.w==t.w)},incrementBy:function(t){this.x+=t.x,this.y+=t.y,this.z+=t.z},nearEquals:function(t,e,n){return null==n&&(n=!1),Math.abs(this.x-t.x)n/2&&(r=n/2),s>i/2&&(s=i/2);var o=t+n,l=e+i,u=r*a.SIN45-r,_=r*a.TAN22-r,f=s*a.SIN45-s,d=s*a.TAN22-s;this.moveTo(o,l-s),this.curveTo(o,l+d,o+u,l+f),this.curveTo(o+_,l,o-r,l),this.lineTo(t+r,l),this.curveTo(t-_,l,t-u,l+f),this.curveTo(t,l+d,t,l-s),this.lineTo(t,e+s),this.curveTo(t,e-d,t-u,e-f),this.curveTo(t-_,e,t+r,e),this.lineTo(o-r,e),this.curveTo(o+_,e,o+u,e-f),this.curveTo(o,e-d,o,e+s),this.lineTo(o,l-s)}}).__class__=i["openfl.display.GraphicsPath"]=a,a.SIN45=.7071067811865476,a.TAN22=.41421356237309503,e.default=a}).call(e,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(1).default,r=function(){};r.__name__=["openfl","display","IGraphicsPath"],(r.prototype={}).__class__=i["openfl.display.IGraphicsPath"]=r,e.default=r}).call(e,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(1).default;n(2).default;var r=function(t,e,i,r){null==r&&(r=!1),null==i&&(i=!0),this.bitmapData=t,this.matrix=e,this.repeat=i,this.smooth=r,this.__graphicsDataType=n(50).default.BITMAP,this.__graphicsFillType=n(70).default.BITMAP_FILL};r.__name__=["openfl","display","GraphicsBitmapFill"],r.__interfaces__=[n(72).default,n(51).default],(r.prototype={}).__class__=i["openfl.display.GraphicsBitmapFill"]=r,e.default=r}).call(e,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(1).default;n(2).default;var r=function(t,e){null==e&&(e=1),null==t&&(t=0),this.alpha=e,this.color=t,this.__graphicsDataType=n(50).default.SOLID,this.__graphicsFillType=n(70).default.SOLID_FILL};r.__name__=["openfl","display","GraphicsSolidFill"],r.__interfaces__=[n(72).default,n(51).default],(r.prototype={}).__class__=i["openfl.display.GraphicsSolidFill"]=r,e.default=r}).call(e,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(1).default;n(2).default;var r=function(t,e,i,r,a,s,o,l){null==l&&(l=0),null==t&&(t="linear"),null==s&&(s="pad"),null==o&&(o="rgb"),this.type=t,this.colors=e,this.alphas=i,this.ratios=r,this.matrix=a,this.spreadMethod=s,this.interpolationMethod=o,this.focalPointRatio=l,this.__graphicsDataType=n(50).default.GRADIENT,this.__graphicsFillType=n(70).default.GRADIENT_FILL};r.__name__=["openfl","display","GraphicsGradientFill"],r.__interfaces__=[n(72).default,n(51).default],(r.prototype={}).__class__=i["openfl.display.GraphicsGradientFill"]=r,e.default=r}).call(e,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(1).default;n(2).default;var r=function(){this.__graphicsDataType=n(50).default.END,this.__graphicsFillType=n(70).default.END_FILL};r.__name__=["openfl","display","GraphicsEndFill"],r.__interfaces__=[n(72).default,n(51).default],(r.prototype={}).__class__=i["openfl.display.GraphicsEndFill"]=r,e.default=r}).call(e,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(1).default;n(2).default;var r=function(t,e,i,r,a,s,o){null==s&&(s=3),null==a&&(a="round"),null==r&&(r="none"),null==i&&(i="normal"),null==e&&(e=!1),null==t&&(t=NaN),this.caps=r,this.fill=o,this.joints=a,this.miterLimit=s,this.pixelHinting=e,this.scaleMode=i,this.thickness=t,this.__graphicsDataType=n(50).default.STROKE};r.__name__=["openfl","display","GraphicsStroke"],r.__interfaces__=[n(171).default,n(51).default],(r.prototype={}).__class__=i["openfl.display.GraphicsStroke"]=r,e.default=r}).call(e,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(1).default,r=function(){};r.__name__=["openfl","display","IGraphicsStroke"],(r.prototype={}).__class__=i["openfl.display.IGraphicsStroke"]=r,e.default=r}).call(e,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(1).default,r=function(t){};r.__name__=["openfl","display","ShaderData"],(r.prototype={}).__class__=i["openfl.display.ShaderData"]=r,e.default=r}).call(e,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(1).default,r=function(){this.channels=0,this.height=0,this.index=0,this.width=0};r.__name__=["openfl","display","ShaderInput"],(r.prototype={}).__class__=i["openfl.display.ShaderInput"]=r,e.default=r}).call(e,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(1).default,r=function(){this.index=0};r.__name__=["openfl","display","ShaderParameter"],(r.prototype={}).__class__=i["openfl.display.ShaderParameter"]=r,e.default=r}).call(e,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(1).default,r=(n(2).default,n(3).default);function a(){return n(124)}var s=function(){a().default.call(this,"End of file was encountered"),this.name="EOFError",this.errorID=2030};s.__name__=["openfl","errors","EOFError"],s.__super__=a().default,(s.prototype=r(a().default.prototype,{})).__class__=i["openfl.errors.EOFError"]=s,e.default=s}).call(e,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(1).default;n(2).default;var r=function(t){this.uri=t,this.contentType="application/x-www-form-urlencoded",this.followRedirects=!0,this.enableResponseHeaders=!1,this.formData=new(n(18).default),this.headers=[],this.method="GET",this.timeout=3e4,this.withCredentials=!1,this.backend=new(n(154).default),this.backend.init(this)};r.__name__=["lime","net","_HTTPRequest","AbstractHTTPRequest"],r.__interfaces__=[n(307).default],(r.prototype={cancel:function(){this.backend.cancel()},load:function(t){return null}}).__class__=i["lime.net._HTTPRequest.AbstractHTTPRequest"]=r,e.default=r}).call(e,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(1).default,r=function(t){null==t&&(t=!1),this.fastCompression=t};r.__name__=["openfl","display","PNGEncoderOptions"],(r.prototype={}).__class__=i["openfl.display.PNGEncoderOptions"]=r,e.default=r}).call(e,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(1).default,r=function(t){null==t&&(t=80),this.quality=t};r.__name__=["openfl","display","JPEGEncoderOptions"],(r.prototype={}).__class__=i["openfl.display.JPEGEncoderOptions"]=r,e.default=r}).call(e,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(1).default;n(2).default;function r(){return n(315)}var a=function(){};a.__name__=["openfl","_internal","renderer","dom","DOMDisplayObject"],(a.prototype={}).__class__=i["openfl._internal.renderer.dom.DOMDisplayObject"]=a,a.clear=function(t,e){r().default.clear(t,e)},a.render=function(t,e){null!=t.opaqueBackground&&!t.__cacheBitmapRender&&t.get_width()>0&&t.get_height();r().default.render(t,e)},e.default=a}).call(e,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(1).default;n(2).default;function r(){return n(14)}function a(){return n(316)}var s=function(){};s.__name__=["openfl","_internal","renderer","opengl","GLDisplayObject"],(s.prototype={}).__class__=i["openfl._internal.renderer.opengl.GLDisplayObject"]=s,s.render=function(t,e){if((null!=t.opaqueBackground||null!=t.__graphics)&&t.__renderable&&!(t.__worldAlpha<=0)){if(null!=t.opaqueBackground&&!t.__cacheBitmapRender&&t.get_width()>0&&t.get_height()>0){e.blendModeManager.setBlendMode(t.__worldBlendMode),e.maskManager.pushObject(t);var n=e.gl,i=r().default.__pool.get();i.setTo(0,0,t.get_width(),t.get_height()),e.maskManager.pushRect(i,t.__renderTransform);var s=t.opaqueBackground;n.clearColor((s>>>16&255)/255,(s>>>8&255)/255,(255&s)/255,1),n.clear(n.COLOR_BUFFER_BIT),e.maskManager.popRect(),e.maskManager.popObject(t),r().default.__pool.release(i)}null!=t.__graphics&&a().default.render(t,e)}},s.renderMask=function(t,e){if(null!=t.opaqueBackground||null!=t.__graphics){if(null!=t.opaqueBackground&&!t.__cacheBitmapRender&&t.get_width()>0&&t.get_height()>0)e.gl;null!=t.__graphics&&a().default.renderMask(t,e)}},e.default=s}).call(e,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(1).default;n(2).default;function r(){return n(40)}var a=function(t){this.__colorTransform=new(r().default),this.concatenatedColorTransform=new(r().default),this.pixelBounds=new(n(14).default),this.__displayObject=t,this.__hasMatrix=!0};a.__name__=["openfl","geom","Transform"],(a.prototype={get_colorTransform:function(){return this.__colorTransform},set_colorTransform:function(t){return this.__colorTransform.__equals(t)||(this.__colorTransform.__copyFrom(t),null!=t&&this.__displayObject.set_alpha(t.alphaMultiplier),this.__displayObject.__setRenderDirty()),this.__colorTransform},get_concatenatedMatrix:function(){return this.__hasMatrix?this.__displayObject.__getWorldTransform().clone():null},get_matrix:function(){return this.__hasMatrix?this.__displayObject.__transform.clone():null},set_matrix:function(t){return null==t?(this.__hasMatrix=!1,null):(this.__hasMatrix=!0,this.__hasMatrix3D=!1,null!=this.__displayObject&&this.__setTransform(t.a,t.b,t.c,t.d,t.tx,t.ty),t)},get_matrix3D:function(){if(this.__hasMatrix3D){var t=this.__displayObject.__transform;return new(n(127).default)(n(90).default.ofArray([t.a,t.b,0,0,t.c,t.d,0,0,0,0,1,0,t.tx,t.ty,0,1]))}return null},set_matrix3D:function(t){return null==t?(this.__hasMatrix3D=!1,null):(this.__hasMatrix=!1,this.__hasMatrix3D=!0,this.__setTransform(t.rawData.get(0),t.rawData.get(1),t.rawData.get(5),t.rawData.get(6),t.rawData.get(12),t.rawData.get(13)),t)},__setTransform:function(t,e,n,i,r,a){if(null!=this.__displayObject){var s=0,o=0;s=0==e?t:Math.sqrt(t*t+e*e),o=0==n?t:Math.sqrt(n*n+i*i),this.__displayObject.__scaleX=s,this.__displayObject.__scaleY=o;var l=180/Math.PI*Math.atan2(i,n)-90;if(l!=this.__displayObject.__rotation){this.__displayObject.__rotation=l;var u=l*(Math.PI/180);this.__displayObject.__rotationSine=Math.sin(u),this.__displayObject.__rotationCosine=Math.cos(u)}this.__displayObject.__transform.a=t,this.__displayObject.__transform.b=e,this.__displayObject.__transform.c=n,this.__displayObject.__transform.d=i,this.__displayObject.__transform.tx=r,this.__displayObject.__transform.ty=a,this.__displayObject.__setTransformDirty()}}}).__class__=i["openfl.geom.Transform"]=a,Object.defineProperties(a.prototype,{colorTransform:{get:function(){return this.get_colorTransform()},set:function(t){return this.set_colorTransform(t)}},concatenatedMatrix:{get:function(){return this.get_concatenatedMatrix()},set:function(t){return this.set_concatenatedMatrix(t)}},matrix:{get:function(){return this.get_matrix()},set:function(t){return this.set_matrix(t)}},matrix3D:{get:function(){return this.get_matrix3D()},set:function(t){return this.set_matrix3D(t)}}}),e.default=a}).call(e,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(1).default,r=(n(2).default,n(3).default);function a(){return n(30)}var s=function(t){null==t&&(t=""),a().default.call(this,t,0),this.name="RangeError"};s.__name__=["openfl","errors","RangeError"],s.__super__=a().default,(s.prototype=r(a().default.prototype,{})).__class__=i["openfl.errors.RangeError"]=s,e.default=s}).call(e,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(1).default,r=(n(2).default,n(3).default);function a(){return n(184)}var s=function(t){a().default.call(this),this.index=t};s.__name__=["lime","text","unifill","InvalidCodeUnitSequence"],s.__super__=a().default,(s.prototype=r(a().default.prototype,{toString:function(){return"InvalidCodeUnitSequence(index: "+this.index+")"}})).__class__=i["lime.text.unifill.InvalidCodeUnitSequence"]=s,e.default=s}).call(e,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(1).default;n(2).default;var r=function(){};r.__name__=["lime","text","unifill","Exception"],(r.prototype={toString:function(){throw new(n(6).default)(null)}}).__class__=i["lime.text.unifill.Exception"]=r,e.default=r}).call(e,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(1).default,r=function(t,e,n,i,r,a){this.x=t,this.width=e,this.height=n,this.ascent=i,this.descent=r,this.leading=a};r.__name__=["openfl","text","TextLineMetrics"],(r.prototype={}).__class__=i["openfl.text.TextLineMetrics"]=r,e.default=r}).call(e,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(1).default,r=function(t,e,n){this.format=t,this.start=e,this.end=n};r.__name__=["openfl","_internal","text","TextFormatRange"],(r.prototype={}).__class__=i["openfl._internal.text.TextFormatRange"]=r,e.default=r}).call(e,n(0))},function(module,exports,__webpack_require__){(function(global){var $global="undefined"!=typeof window?window:void 0!==global?global:"undefined"!=typeof self?self:this;$global.Object.defineProperty(exports,"__esModule",{value:!0});var __map_reserved={},$hxClasses=__webpack_require__(1).default,$import=__webpack_require__(2).default,$bind=__webpack_require__(8).default,$extend=__webpack_require__(3).default;function openfl_display_Sprite(){return __webpack_require__(97)}function haxe_ds_IntMap(){return __webpack_require__(22)}function Std(){return __webpack_require__(4)}function Type(){return __webpack_require__(10)}function openfl_display_FrameLabel(){return __webpack_require__(188)}function js__$Boot_HaxeError(){return __webpack_require__(6)}function haxe_Log(){return __webpack_require__(47)}function haxe_CallStack(){return __webpack_require__(121)}function lime_utils_Log(){return __webpack_require__(23)}function openfl__$internal_timeline_FrameObjectType(){return __webpack_require__(333)}function openfl_display__$MovieClip_FrameSymbolInstance(){return __webpack_require__(334)}function openfl_errors_ArgumentError(){return __webpack_require__(71)}function openfl_filters_BlurFilter(){return __webpack_require__(189)}function openfl_filters_ColorMatrixFilter(){return __webpack_require__(190)}function openfl_filters_DropShadowFilter(){return __webpack_require__(191)}function openfl_filters_GlowFilter(){return __webpack_require__(100)}function Reflect(){return __webpack_require__(5)}var MovieClip=function(){openfl_display_Sprite().default.call(this),this.__currentFrame=1,this.__currentLabels=[],this.__totalFrames=0,this.enabled=!0,null!=MovieClip.__initSymbol&&(this.__swf=MovieClip.__initSWF,this.__symbol=MovieClip.__initSymbol,MovieClip.__initSWF=null,MovieClip.__initSymbol=null,this.__fromSymbol(this.__swf,this.__symbol))};MovieClip.__name__=["openfl","display","MovieClip"],MovieClip.__super__=openfl_display_Sprite().default,MovieClip.prototype=$extend(openfl_display_Sprite().default.prototype,{addFrameScript:function(t,e){if(!(t<0)){var n=t+1;null!=e?(null==this.__frameScripts&&(this.__frameScripts=new(haxe_ds_IntMap().default)),this.__frameScripts.set(n,e)):null!=this.__frameScripts&&this.__frameScripts.remove(n)}},gotoAndPlay:function(t,e){this.play(),this.__goto(this.__resolveFrameReference(t))},gotoAndStop:function(t,e){this.stop(),this.__goto(this.__resolveFrameReference(t))},nextFrame:function(){this.stop(),this.__goto(this.__currentFrame+1)},play:function(){null==this.__symbol||this.__playing||this.__totalFrames<2||(this.__playing=!0,this.__frameTime=Std().default.int(1e3/this.__swf.frameRate),this.__timeElapsed=0)},prevFrame:function(){this.stop(),this.__goto(this.__currentFrame-1)},stop:function(){this.__playing=!1},__enterFrame:function(t){if(null!=this.__symbol&&this.__playing){var e=this.__getNextFrame(t);if(this.__lastFrameScriptEval==e)return;if(null!=this.__frameScripts){if(e0&&v.push(y))}m.sort($bind(this,this.__sortDepths));for(var b,x=0,E=m.length;xR.depth&&h<=R.clipDepth){p.set_mask(R.displayObject),g=!0;break}}v.length>0&&!g&&null!=p.get_mask()&&p.set_mask(null)}for(var S=m.length,M=this.__children.length;S1&&this.play(),this.__enterFrame(0)}},__getNextFrame:function(t){this.__timeElapsed+=t;var e=this.__currentFrame+Math.floor(this.__timeElapsed/this.__frameTime);return e<1&&(e=1),e>this.__totalFrames&&(e=Math.floor((e-1)%this.__totalFrames)+1),this.__timeElapsed%=this.__frameTime,e},__goto:function(t){null!=this.__symbol&&(t<1?t=1:t>this.__totalFrames&&(t=this.__totalFrames),this.__currentFrame=t,this.__enterFrame(0))},__resolveFrameReference:function(t){if("number"==typeof t&&(0|t)===t)return t;if("string"==typeof t){for(var e=t,n=0,i=this.__currentLabels;n0?Math.ceil(t):0,this.__rightExtension=this.__leftExtension),t},get_blurY:function(){return this.__blurY},set_blurY:function(t){return t!=this.__blurY&&(this.__blurY=t,this.__renderDirty=!0,this.__topExtension=t>0?Math.ceil(t):0,this.__bottomExtension=this.__topExtension),t},get_quality:function(){return this.__quality},set_quality:function(t){return this.__horizontalPasses=this.__blurX<=0?0:Math.round(this.__blurX*(t/4))+1,this.__verticalPasses=this.__blurY<=0?0:Math.round(this.__blurY*(t/4))+1,this.__numShaderPasses=this.__horizontalPasses+this.__verticalPasses,t!=this.__quality&&(this.__renderDirty=!0),this.__quality=t}})).__class__=i["openfl.filters.BlurFilter"]=s,Object.defineProperties(s.prototype,{blurX:{get:function(){return this.get_blurX()},set:function(t){return this.set_blurX(t)}},blurY:{get:function(){return this.get_blurY()},set:function(t){return this.set_blurY(t)}},quality:{get:function(){return this.get_quality()},set:function(t){return this.set_quality(t)}}}),e.default=s}).call(e,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(1).default,r=(n(2).default,n(3).default);function a(){return n(78)}function s(){return n(32)}function o(){return n(4)}function l(){return n(151)}var u=function(t){a().default.call(this),this.set_matrix(t),this.__numShaderPasses=0,this.__needSecondBitmapData=!1};u.__name__=["openfl","filters","ColorMatrixFilter"],u.__super__=a().default,(u.prototype=r(a().default.prototype,{clone:function(){return new u(this.__matrix)},__applyFilter:function(t,e,n,i){var r=e.image,a=t.image;s().default.convertToData(r),s().default.convertToData(a);for(var u,_,f,d=r.get_data(),h=a.get_data(),c=o().default.int(i.x-n.x),p=o().default.int(i.y-n.y),g=4*e.width,m=4*t.width,v=r.buffer.format,w=a.buffer.format,y=r.buffer.premultiplied,b=a.buffer.premultiplied,x=0,E=o().default.int(n.y),T=o().default.int(n.height);E>>24&255)*l().default.unmult)])<<24|(255&l().default.__clamp[Math.round((u>>>16&255)*l().default.unmult)])<<16|(255&l().default.__clamp[Math.round((u>>>8&255)*l().default.unmult)])<<8|255&u),0==(255&u))x=0;else x=(255&(x=(255&(x=(255&(x=(255&o().default.int(Math.max(0,Math.min(this.__matrix[0]*(u>>>24&255)+this.__matrix[1]*(u>>>16&255)+this.__matrix[2]*(u>>>8&255)+this.__matrix[3]*(255&u)+this.__matrix[4],255))))<<24|(255&x>>>16)<<16|(255&x>>>8)<<8|255&x)>>>24)<<24|(255&o().default.int(Math.max(0,Math.min(this.__matrix[5]*(u>>>24&255)+this.__matrix[6]*(u>>>16&255)+this.__matrix[7]*(u>>>8&255)+this.__matrix[8]*(255&u)+this.__matrix[9],255))))<<16|(255&x>>>8)<<8|255&x)>>>24)<<24|(255&x>>>16)<<16|(255&o().default.int(Math.max(0,Math.min(this.__matrix[10]*(u>>>24&255)+this.__matrix[11]*(u>>>16&255)+this.__matrix[12]*(u>>>8&255)+this.__matrix[13]*(255&u)+this.__matrix[14],255))))<<8|255&x)>>>24)<<24|(255&x>>>16)<<16|(255&x>>>8)<<8|255&o().default.int(Math.max(0,Math.min(this.__matrix[15]*(u>>>24&255)+this.__matrix[16]*(u>>>16&255)+this.__matrix[17]*(u>>>8&255)+this.__matrix[18]*(255&u)+this.__matrix[19],255)));switch(b&&(0==(255&x)?0!=x&&(x=0):255!=(255&x)&&(l().default.a16=l().default.__alpha16[255&x],x=((x>>>24&255)*l().default.a16>>16&255)<<24|((x>>>16&255)*l().default.a16>>16&255)<<16|((x>>>8&255)*l().default.a16>>16&255)<<8|255&x)),w){case 0:h[f]=x>>>24&255,h[f+1]=x>>>16&255,h[f+2]=x>>>8&255,h[f+3]=255&x;break;case 1:h[f]=255&x,h[f+1]=x>>>24&255,h[f+2]=x>>>16&255,h[f+3]=x>>>8&255;break;case 2:h[f]=x>>>8&255,h[f+1]=x>>>16&255,h[f+2]=x>>>24&255,h[f+3]=255&x}}return t.image.dirty=!0,t},__initShader:function(t,e){return null},get_matrix:function(){return this.__matrix},set_matrix:function(t){return null==t&&(t=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]),this.__matrix=t}})).__class__=i["openfl.filters.ColorMatrixFilter"]=u,Object.defineProperties(u.prototype,{matrix:{get:function(){return this.get_matrix()},set:function(t){return this.set_matrix(t)}}}),e.default=u}).call(e,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(1).default,r=(n(2).default,n(3).default);function a(){return n(78)}function s(){return n(4)}var o=function(t,e,n,i,r,s,o,l,u,_,f){null==f&&(f=!1),null==_&&(_=!1),null==u&&(u=!1),null==l&&(l=1),null==o&&(o=1),null==s&&(s=4),null==r&&(r=4),null==i&&(i=1),null==n&&(n=0),null==e&&(e=45),null==t&&(t=4),a().default.call(this),this.__offsetX=0,this.__offsetY=0,this.__distance=t,this.__angle=e,this.__color=n,this.__alpha=i,this.__blurX=r,this.__blurY=s,this.__strength=o,this.__quality=l,this.__inner=u,this.__knockout=_,this.__hideObject=f,this.__updateSize(),this.__needSecondBitmapData=!0,this.__preserveObject=!this.__hideObject,this.__renderDirty=!0};o.__name__=["openfl","filters","DropShadowFilter"],o.__super__=a().default,(o.prototype=r(a().default.prototype,{clone:function(){return new o(this.__distance,this.__angle,this.__color,this.__alpha,this.__blurX,this.__blurY,this.__strength,this.__quality,this.__inner,this.__knockout,this.__hideObject)},__applyFilter:function(t,e,i,r){var a=this.__color>>24&255,s=this.__color>>16&255,o=this.__color>>8&255,l=255&this.__color;return e.colorTransform(e.rect,new(n(40).default)(0,0,0,1,s,o,l,a)),r.x+=this.__offsetX,r.y+=this.__offsetY,n(65).default.gaussianBlur(t.image,e.image,i.__toLimeRectangle(),r.__toLimeVector2(),this.__blurX,this.__blurY,this.__quality,this.__strength)==t.image?t:e},__updateSize:function(){this.__offsetX=s().default.int(this.__distance*Math.cos(this.__angle*Math.PI/180)),this.__offsetY=s().default.int(this.__distance*Math.sin(this.__angle*Math.PI/180)),this.__topExtension=Math.ceil((this.__offsetY<0?-this.__offsetY:0)+this.__blurY),this.__bottomExtension=Math.ceil((this.__offsetY>0?this.__offsetY:0)+this.__blurY),this.__leftExtension=Math.ceil((this.__offsetX<0?-this.__offsetX:0)+this.__blurX),this.__rightExtension=Math.ceil((this.__offsetX>0?this.__offsetX:0)+this.__blurX)},get_alpha:function(){return this.__alpha},set_alpha:function(t){return t!=this.__alpha&&(this.__renderDirty=!0),this.__alpha=t},get_angle:function(){return this.__angle},set_angle:function(t){return t!=this.__angle&&(this.__angle=t,this.__renderDirty=!0,this.__updateSize()),t},get_blurX:function(){return this.__blurX},set_blurX:function(t){return t!=this.__blurX&&(this.__blurX=t,this.__renderDirty=!0,this.__updateSize()),t},get_blurY:function(){return this.__blurY},set_blurY:function(t){return t!=this.__blurY&&(this.__blurY=t,this.__renderDirty=!0,this.__updateSize()),t},get_color:function(){return this.__color},set_color:function(t){return t!=this.__color&&(this.__renderDirty=!0),this.__color=t},get_distance:function(){return this.__distance},set_distance:function(t){return t!=this.__distance&&(this.__distance=t,this.__renderDirty=!0,this.__updateSize()),t},get_hideObject:function(){return this.__hideObject},set_hideObject:function(t){return t!=this.__hideObject&&(this.__renderDirty=!0,this.__preserveObject=!t),this.__hideObject=t},get_inner:function(){return this.__inner},set_inner:function(t){return t!=this.__inner&&(this.__renderDirty=!0),this.__inner=t},get_knockout:function(){return this.__knockout},set_knockout:function(t){return t!=this.__knockout&&(this.__renderDirty=!0),this.__knockout=t},get_quality:function(){return this.__quality},set_quality:function(t){return t!=this.__quality&&(this.__renderDirty=!0),this.__quality=t},get_strength:function(){return this.__strength},set_strength:function(t){return t!=this.__strength&&(this.__renderDirty=!0),this.__strength=t}})).__class__=i["openfl.filters.DropShadowFilter"]=o,Object.defineProperties(o.prototype,{alpha:{get:function(){return this.get_alpha()},set:function(t){return this.set_alpha(t)}},angle:{get:function(){return this.get_angle()},set:function(t){return this.set_angle(t)}},blurX:{get:function(){return this.get_blurX()},set:function(t){return this.set_blurX(t)}},blurY:{get:function(){return this.get_blurY()},set:function(t){return this.set_blurY(t)}},color:{get:function(){return this.get_color()},set:function(t){return this.set_color(t)}},distance:{get:function(){return this.get_distance()},set:function(t){return this.set_distance(t)}},hideObject:{get:function(){return this.get_hideObject()},set:function(t){return this.set_hideObject(t)}},inner:{get:function(){return this.get_inner()},set:function(t){return this.set_inner(t)}},knockout:{get:function(){return this.get_knockout()},set:function(t){return this.set_knockout(t)}},quality:{get:function(){return this.get_quality()},set:function(t){return this.set_quality(t)}},strength:{get:function(){return this.get_strength()},set:function(t){return this.set_strength(t)}}}),e.default=o}).call(e,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(1).default,r=(n(2).default,n(8).default),a=n(3).default;function s(){return n(176)}var o=function(t){s().default.call(this,t)};o.__name__=["lime","net","_HTTPRequest_String"],o.__super__=s().default,(o.prototype=a(s().default.prototype,{load:function(t){var e=this;null!=t&&(this.uri=t);var i=new(n(39).default),a=this.backend.loadText(this.uri);return a.onProgress(r(i,i.progress)),a.onError(r(i,i.error)),a.onComplete(function(t){e.responseData=t,i.complete(e.responseData)}),i.future}})).__class__=i["lime.net._HTTPRequest_String"]=o,e.default=o}).call(e,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(1).default,r=(n(2).default,n(3).default);function a(){return n(9)}var s=function(t,e,n,i,r){null==r&&(r=!1),null==i&&(i=0),null==n&&(n=!1),null==e&&(e=!1),this.status=i,this.redirected=r,a().default.call(this,t,e,n)};s.__name__=["openfl","events","HTTPStatusEvent"],s.__super__=a().default,(s.prototype=r(a().default.prototype,{clone:function(){var t=new s(this.type,this.bubbles,null,this.status,this.redirected);return t.target=this.target,t.currentTarget=this.currentTarget,t.eventPhase=this.eventPhase,t},toString:function(){return this.__formatToString("HTTPStatusEvent",["type","bubbles","cancelable","status","redirected"])}})).__class__=i["openfl.events.HTTPStatusEvent"]=s,s.HTTP_RESPONSE_STATUS="httpResponseStatus",s.HTTP_STATUS="httpStatus",e.default=s}).call(e,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(1).default,r=function(t,e){null==e&&(e=""),null==t&&(t=""),this.name=t,this.value=e};r.__name__=["openfl","net","URLRequestHeader"],(r.prototype={}).__class__=i["openfl.net.URLRequestHeader"]=r,e.default=r}).call(e,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(1).default,r=(n(2).default,n(3).default);function a(){return n(60)}var s=function(t,e,n,i,r){null==r&&(r=0),null==i&&(i=""),null==n&&(n=!1),null==e&&(e=!1),a().default.call(this,t,e,n,i,r)};s.__name__=["openfl","events","SecurityErrorEvent"],s.__super__=a().default,(s.prototype=r(a().default.prototype,{clone:function(){var t=new s(this.type,this.bubbles,this.cancelable,this.text,this.errorID);return t.target=this.target,t.currentTarget=this.currentTarget,t.eventPhase=this.eventPhase,t},toString:function(){return this.__formatToString("SecurityErrorEvent",["type","bubbles","cancelable","text","errorID"])}})).__class__=i["openfl.events.SecurityErrorEvent"]=s,s.SECURITY_ERROR="securityError",e.default=s}).call(e,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(1).default;n(2).default;function r(){return n(197)}var a=function(t){null!=t&&(this.url=t),this.contentType=null,this.followRedirects=r().default.followRedirects,this.idleTimeout=r().default.idleTimeout>0?r().default.idleTimeout:3e4,this.manageCookies=r().default.manageCookies,this.method="GET",this.requestHeaders=[],this.userAgent=r().default.userAgent};a.__name__=["openfl","net","URLRequest"],(a.prototype={}).__class__=i["openfl.net.URLRequest"]=a,e.default=a}).call(e,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(1).default,r=function(){};r.__name__=["openfl","net","URLRequestDefaults"],(r.prototype={}).__class__=i["openfl.net.URLRequestDefaults"]=r,r.followRedirects=!0,r.idleTimeout=0,r.manageCookies=!1,e.default=r}).call(e,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(1).default;n(2).default;function r(){return n(5)}function a(){return n(10)}function s(){return n(4)}function o(){return n(6)}function l(){return n(18)}var u=function(){this.buf=new(n(31).default),this.cache=[],this.useCache=u.USE_CACHE,this.useEnumIndex=u.USE_ENUM_INDEX,this.shash=new(l().default),this.scount=0};u.__name__=["haxe","Serializer"],u.prototype={toString:function(){return this.buf.toString()},serializeString:function(t){var e=this.shash.get(t);if(null!=e)return this.buf.add("R"),void this.buf.add(e);this.shash.set(t,this.scount++),this.buf.add("y"),t=n(12).default.urlEncode(t),this.buf.add(t.length),this.buf.add(":"),this.buf.add(t)},serializeRef:function(t){for(var e=typeof t,n=0,i=this.cache.length;n0&&(1==c?this.buf.add("n"):(this.buf.add("u"),this.buf.add(c)),c=0),this.serialize(t[m]))}c>0&&(1==c?this.buf.add("n"):(this.buf.add("u"),this.buf.add(c))),this.buf.add("h");break;case Date:var v=t;this.buf.add("v"),this.buf.add(v.getTime());break;case n(48).default:this.buf.add("l");for(var w=t.iterator();w.hasNext();){var y=w.next();this.serialize(y)}this.buf.add("h");break;case n(22).default:this.buf.add("q");for(var b=t,x=b.keys();x.hasNext();){var E=x.next();this.buf.add(":"),this.buf.add(E),this.serialize(b.get(E))}this.buf.add("h");break;case n(57).default:this.buf.add("M");for(var T=t,A=T.keys();A.hasNext();){var R=A.next(),S=r().default.field(R,"__id__");r().default.deleteField(R,"__id__"),this.serialize(R),r().default.setField(R,"__id__",S),this.serialize(T.get(R))}this.buf.add("h");break;case l().default:this.buf.add("b");for(var M=t,I=M.keys();I.hasNext();){var D=I.next();this.serializeString(D),this.serialize(M.get(D))}this.buf.add("h");break;case n(16).default:var C=t;this.buf.add("s"),this.buf.add(Math.ceil(8*C.get_length()/6)),this.buf.add(":");var L=0,O=C.get_length()-2,P=u.BASE64_CODES;if(null==P){var F=u.BASE64.length;P=new Array(F);for(var B=0,N=u.BASE64.length;B>2]),this.buf.addChar(P[63&(U<<4|G>>4)]),this.buf.addChar(P[63&(G<<2|j>>6)]),this.buf.addChar(P[63&j])}if(L==O){var V=C.get(L++),X=C.get(L++);this.buf.addChar(P[V>>2]),this.buf.addChar(P[63&(V<<4|X>>4)]),this.buf.addChar(P[X<<2&63])}else if(L==O+1){var W=C.get(L++);this.buf.addChar(P[W>>2]),this.buf.addChar(P[W<<4&63])}break;default:this.useCache&&this.cache.pop(),null!=t.hxSerialize?(this.buf.add("C"),this.serializeString(a().default.getClassName(h)),this.useCache&&this.cache.push(t),t.hxSerialize(this),this.buf.add("g")):(this.buf.add("c"),this.serializeString(a().default.getClassName(h)),this.useCache&&this.cache.push(t),this.serializeFields(t))}break;case 7:var H=e[2];if(this.useCache){if(this.serializeRef(t))return;this.cache.pop()}this.buf.add(this.useEnumIndex?"j":"w"),this.serializeString(a().default.getEnumName(H)),this.useEnumIndex?(this.buf.add(":"),this.buf.add(t[1])):this.serializeString(t[0]),this.buf.add(":");var z=t.length;this.buf.add(z-2);for(var Y=2,q=z;Y57)break;t=10*t+(i-48),this.pos++}else{if(this.pos!=n)break;e=!0,this.pos++}}return e&&(t*=-1),t},readFloat:function(){for(var t=this.pos;;){var e=this.get(this.pos);if(r().default.isEof(e))break;if(!(e>=43&&e<58||101==e||69==e))break;this.pos++}return n(4).default.parseFloat(a().default.substr(this.buf,t,this.pos-t))},unserializeObject:function(t){for(;;){if(this.pos>=this.length)throw new(s().default)("Invalid object");if(103==this.get(this.pos))break;var e=this.unserialize();if("string"!=typeof e)throw new(s().default)("Invalid object key");var i=this.unserialize();n(5).default.setField(t,e,i)}this.pos++},unserializeEnum:function(t,e){if(58!=this.get(this.pos++))throw new(s().default)("Invalid enum format");var n=this.readDigits();if(0==n)return o().default.createEnum(t,e);for(var i=[];n-- >0;)i.push(this.unserialize());return o().default.createEnum(t,e,i)},unserialize:function(){switch(this.get(this.pos++)){case 65:var t=this.unserialize(),e=this.resolver.resolveClass(t);if(null==e)throw new(s().default)("Class not found "+t);return e;case 66:var i=this.unserialize(),l=this.resolver.resolveEnum(i);if(null==l)throw new(s().default)("Enum not found "+i);return l;case 67:var _=this.unserialize(),f=this.resolver.resolveClass(_);if(null==f)throw new(s().default)("Class not found "+_);var d=o().default.createEmptyInstance(f);if(this.cache.push(d),d.hxUnserialize(this),103!=this.get(this.pos++))throw new(s().default)("Invalid custom data");return d;case 77:var h=new(n(57).default);this.cache.push(h);for(this.buf;104!=this.get(this.pos);){var c=this.unserialize();h.set(c,this.unserialize())}return this.pos++,h;case 82:var p=this.readDigits();if(p<0||p>=this.scache.length)throw new(s().default)("Invalid string reference");return this.scache[p];case 97:this.buf;var g=[];for(this.cache.push(g);;){var m=this.get(this.pos);if(104==m){this.pos++;break}if(117==m){this.pos++;var v=this.readDigits();g[g.length+v-1]=null}else g.push(this.unserialize())}return g;case 98:var w=new(n(18).default);this.cache.push(w);for(this.buf;104!=this.get(this.pos);){var y=this.unserialize();w.set(y,this.unserialize())}return this.pos++,w;case 99:var b=this.unserialize(),x=this.resolver.resolveClass(b);if(null==x)throw new(s().default)("Class not found "+b);var E=o().default.createEmptyInstance(x);return this.cache.push(E),this.unserializeObject(E),E;case 100:return this.readFloat();case 102:return!1;case 105:return this.readDigits();case 106:var T=this.unserialize(),A=this.resolver.resolveEnum(T);if(null==A)throw new(s().default)("Enum not found "+T);this.pos++;var R=this.readDigits(),S=o().default.getEnumConstructs(A)[R];if(null==S)throw new(s().default)("Unknown enum index "+T+"@"+R);var M=this.unserializeEnum(A,S);return this.cache.push(M),M;case 107:return NaN;case 108:var I=new(n(48).default);this.cache.push(I);for(this.buf;104!=this.get(this.pos);)I.add(this.unserialize());return this.pos++,I;case 109:return-1/0;case 110:return null;case 111:var D={};return this.cache.push(D),this.unserializeObject(D),D;case 112:return 1/0;case 113:var C=new(n(22).default);this.cache.push(C);this.buf;for(var L=this.get(this.pos++);58==L;){var O=this.readDigits();C.set(O,this.unserialize()),L=this.get(this.pos++)}if(104!=L)throw new(s().default)("Invalid IntMap format");return C;case 114:var P=this.readDigits();if(P<0||P>=this.cache.length)throw new(s().default)("Invalid reference");return this.cache[P];case 115:var F=this.readDigits(),B=this.buf;if(58!=this.get(this.pos++)||this.length-this.pos>2)+(U>=2?U-1:0),j=k+(F-U),V=n(16).default.alloc(G),X=0;k>4);var z=N[r().default.fastCodeAt(B,k++)];V.set(X++,H<<4|z>>2);var Y=N[r().default.fastCodeAt(B,k++)];V.set(X++,z<<6|Y)}if(U>=2){var q=N[r().default.fastCodeAt(B,k++)],K=N[r().default.fastCodeAt(B,k++)];if(V.set(X++,q<<2|K>>4),3==U){var Z=N[r().default.fastCodeAt(B,k++)];V.set(X++,K<<4|Z>>2)}}return this.pos+=F,this.cache.push(V),V;case 116:return!0;case 118:var Q;if(this.get(this.pos)>=48&&this.get(this.pos)<=57&&this.get(this.pos+1)>=48&&this.get(this.pos+1)<=57&&this.get(this.pos+2)>=48&&this.get(this.pos+2)<=57&&this.get(this.pos+3)>=48&&this.get(this.pos+3)<=57&&45==this.get(this.pos+4))Q=a().default.strDate(a().default.substr(this.buf,this.pos,19)),this.pos+=19;else{var J=this.readFloat();Q=new Date(J)}return this.cache.push(Q),Q;case 119:var $=this.unserialize(),tt=this.resolver.resolveEnum($);if(null==tt)throw new(s().default)("Enum not found "+$);var et=this.unserializeEnum(tt,this.unserialize());return this.cache.push(et),et;case 120:throw s().default.wrap(this.unserialize());case 121:var nt=this.readDigits();if(58!=this.get(this.pos++)||this.length-this.pos0},r.set_altKey=function(t,e){return e?768:268434687,e},r.get_capsLock=function(t){return!((8192&t)<=0)||(8192&t)>0},r.set_capsLock=function(t,e){return e?8192:268427263,e},r.get_ctrlKey=function(t){return!((64&t)<=0)||(128&t)>0},r.set_ctrlKey=function(t,e){return e?192:268435263,e},r.get_metaKey=function(t){return!((1024&t)<=0)||(2048&t)>0},r.set_metaKey=function(t,e){return e?3072:268432383,e},r.get_numLock=function(t){return!((4096&t)<=0)||(4096&t)>0},r.set_numLock=function(t,e){return e?4096:268431359,e},r.get_shiftKey=function(t){return!((1&t)<=0)||(2&t)>0},r.set_shiftKey=function(t,e){return e?3:268435452,e},r.NONE=0,r.LEFT_SHIFT=1,r.RIGHT_SHIFT=2,r.LEFT_CTRL=64,r.RIGHT_CTRL=128,r.LEFT_ALT=256,r.RIGHT_ALT=512,r.LEFT_META=1024,r.RIGHT_META=2048,r.NUM_LOCK=4096,r.CAPS_LOCK=8192,r.MODE=16384,r.CTRL=192,r.SHIFT=3,r.ALT=768,r.META=3072,e.default=r}).call(e,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(1).default,r=(n(2).default,n(8).default);function a(){return n(61)}function s(){return n(44)}function o(){return n(17)}function l(){return n(102)}function u(){return n(7)}function _(){return n(4)}function f(){return n(202)}function d(){return n(23)}function h(){return n(203)}function c(){return n(39)}function p(){return n(10)}var g=function(){};g.__name__=["openfl","utils","Assets"],(g.prototype={}).__class__=i["openfl.utils.Assets"]=g,g.addEventListener=function(t,e,n,i,r){null==r&&(r=!1),null==i&&(i=0),null==n&&(n=!1),a().default.onChange.has(g.LimeAssets_onChange)||a().default.onChange.add(g.LimeAssets_onChange),g.dispatcher.addEventListener(t,e,n,i,r)},g.dispatchEvent=function(t){return g.dispatcher.dispatchEvent(t)},g.exists=function(t,e){return a().default.exists(t,e)},g.getBitmapData=function(t,e){if(null==e&&(e=!0),e&&g.cache.get_enabled()&&g.cache.hasBitmapData(t)){var n=g.cache.getBitmapData(t);if(g.isValidBitmapData(n))return n}var i=a().default.getImage(t,!1);if(null!=i){var r=s().default.fromImage(i);return e&&g.cache.get_enabled()&&g.cache.setBitmapData(t,r),r}return null},g.getBytes=function(t){return o().default.fromBytes(a().default.getBytes(t))},g.getFont=function(t,e){if(null==e&&(e=!0),e&&g.cache.get_enabled()&&g.cache.hasFont(t))return g.cache.getFont(t);var n=a().default.getFont(t,!1);if(null!=n){var i=new(l().default);return i.__fromLimeFont(n),e&&g.cache.get_enabled()&&g.cache.setFont(t,i),i}return new(l().default)},g.getLibrary=function(t){return a().default.getLibrary(t)},g.getMovieClip=function(t){var e=t.substring(0,t.indexOf(":")),n=u().default.substr(t,t.indexOf(":")+1,null),i=g.getLibrary(e);if(null!=i){if(_().default.is(i,f().default)){var r=i;if(r.exists(n,"MOVIE_CLIP"))return r.isLocal(n,"MOVIE_CLIP")?r.getMovieClip(n):(d().default.error('MovieClip asset "'+t+'" exists, but only asynchronously',{fileName:"Assets.hx",lineNumber:176,className:"openfl.utils.Assets",methodName:"getMovieClip"}),null)}d().default.error('There is no MovieClip asset with an ID of "'+t+'"',{fileName:"Assets.hx",lineNumber:185,className:"openfl.utils.Assets",methodName:"getMovieClip"})}else d().default.error('There is no asset library named "'+e+'"',{fileName:"Assets.hx",lineNumber:189,className:"openfl.utils.Assets",methodName:"getMovieClip"});return null},g.getMusic=function(t,e){return null==e&&(e=!0),g.getSound(t,e)},g.getPath=function(t){return a().default.getPath(t)},g.getSound=function(t,e){if(null==e&&(e=!0),e&&g.cache.get_enabled()&&g.cache.hasSound(t)){var n=g.cache.getSound(t);if(g.isValidSound(n))return n}var i=a().default.getAudioBuffer(t,!1);if(null!=i){var r=h().default.fromAudioBuffer(i);return e&&g.cache.get_enabled()&&g.cache.setSound(t,r),r}return null},g.getText=function(t){return a().default.getText(t)},g.hasEventListener=function(t){return g.dispatcher.hasEventListener(t)},g.hasLibrary=function(t){return a().default.hasLibrary(t)},g.isLocal=function(t,e,n){if(null==n&&(n=!0),n&&g.cache.get_enabled()){if(("IMAGE"==e||null==e)&&g.cache.hasBitmapData(t))return!0;if(("FONT"==e||null==e)&&g.cache.hasFont(t))return!0;if(("SOUND"==e||"MUSIC"==e||null==e)&&g.cache.hasSound(t))return!0}var i=t.substring(0,t.indexOf(":")),r=u().default.substr(t,t.indexOf(":")+1,null),a=g.getLibrary(i);return null!=a&&a.isLocal(r,e)},g.isValidBitmapData=function(t){return null!=t&&null!=t.image},g.isValidSound=function(t){return!0},g.list=function(t){return a().default.list(t)},g.loadBitmapData=function(t,e){null==e&&(e=!0),null==e&&(e=!0);var n=new(c().default);if(e&&g.cache.get_enabled()&&g.cache.hasBitmapData(t)){var i=g.cache.getBitmapData(t);if(g.isValidBitmapData(i))return n.complete(i),n.future}return a().default.loadImage(t,!1).onComplete(function(i){if(null!=i){var r=s().default.fromImage(i);e&&g.cache.get_enabled()&&g.cache.setBitmapData(t,r),n.complete(r)}else n.error('[Assets] Could not load Image "'+t+'"')}).onError(r(n,n.error)).onProgress(r(n,n.progress)),n.future},g.loadBytes=function(t){var e=new(c().default),n=a().default.loadBytes(t);return n.onComplete(function(t){e.complete(o().default.fromBytes(t))}),n.onProgress(function(t,n){e.progress(t,n)}),n.onError(function(t){e.error(t)}),e.future},g.loadFont=function(t,e){null==e&&(e=!0),null==e&&(e=!0);var n=new(c().default);if(e&&g.cache.get_enabled()&&g.cache.hasFont(t)){var i=g.cache.getFont(t);return n.complete(i),n.future}return a().default.loadFont(t).onComplete(function(i){var r=new(l().default);r.__fromLimeFont(i),e&&g.cache.get_enabled()&&g.cache.setFont(t,r),n.complete(r)}).onError(r(n,n.error)).onProgress(r(n,n.progress)),n.future},g.loadLibrary=function(t){return a().default.loadLibrary(t)},g.loadMusic=function(t,e){return null==e&&(e=!0),null==e&&(e=!0),new(n(24).default)(function(){return g.getMusic(t,e)})},g.loadMovieClip=function(t){var e=new(c().default),n=t.substring(0,t.indexOf(":")),i=u().default.substr(t,t.indexOf(":")+1,null),r=g.getLibrary(n);if(null!=r){if(_().default.is(r,f().default)){var a=r;if(a.exists(i,"MOVIE_CLIP"))return e.completeWith(a.loadMovieClip(i)),e.future}e.error('[Assets] There is no MovieClip asset with an ID of "'+t+'"')}else e.error('[Assets] There is no asset library named "'+n+'"');return e.future},g.loadSound=function(t,e){null==e&&(e=!0),null==e&&(e=!0);var n=new(c().default);return a().default.loadAudioBuffer(t,e).onComplete(function(i){if(null!=i){var r=h().default.fromAudioBuffer(i);e&&g.cache.get_enabled()&&g.cache.setSound(t,r),n.complete(r)}else n.error('[Assets] Could not load Sound "'+t+'"')}).onError(r(n,n.error)).onProgress(r(n,n.progress)),n.future},g.loadText=function(t){return a().default.loadText(t)},g.registerLibrary=function(t,e){a().default.registerLibrary(t,e)},g.removeEventListener=function(t,e,n){null==n&&(n=!1),g.dispatcher.removeEventListener(t,e,n)},g.resolveClass=function(t){return p().default.resolveClass(t)},g.resolveEnum=function(t){return p().default.resolveEnum(t)},g.unloadLibrary=function(t){a().default.unloadLibrary(t)},g.LimeAssets_onChange=function(){g.dispatchEvent(new(n(9).default)("change"))},g.cache=new(n(368).default),g.dispatcher=new(n(13).default),e.default=g}).call(e,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(1).default,r=(n(2).default,n(3).default);function a(){return n(137)}function s(){return n(24)}function o(){return n(103)}function l(){return n(17)}var u=function(){a().default.call(this)};u.__name__=["openfl","utils","AssetLibrary"],u.__super__=a().default,(u.prototype=r(a().default.prototype,{exists:function(t,e){return null!=this.__proxy?this.__proxy.exists(t,e):a().default.prototype.exists.call(this,t,e)},getAsset:function(t,e){return null!=this.__proxy?this.__proxy.getAsset(t,e):a().default.prototype.getAsset.call(this,t,e)},getAudioBuffer:function(t){return null!=this.__proxy?this.__proxy.getAudioBuffer(t):a().default.prototype.getAudioBuffer.call(this,t)},getBytes:function(t){return null!=this.__proxy?this.__proxy.getBytes(t):a().default.prototype.getBytes.call(this,t)},getFont:function(t){return null!=this.__proxy?this.__proxy.getFont(t):a().default.prototype.getFont.call(this,t)},getImage:function(t){return null!=this.__proxy?this.__proxy.getImage(t):a().default.prototype.getImage.call(this,t)},getMovieClip:function(t){return null},getPath:function(t){return null!=this.__proxy?this.__proxy.getPath(t):a().default.prototype.getPath.call(this,t)},getText:function(t){return null!=this.__proxy?this.__proxy.getText(t):a().default.prototype.getText.call(this,t)},isLocal:function(t,e){return null!=this.__proxy?this.__proxy.isLocal(t,e):a().default.prototype.isLocal.call(this,t,e)},list:function(t){return null!=this.__proxy?this.__proxy.list(t):a().default.prototype.list.call(this,t)},loadAsset:function(t,e){return null!=this.__proxy?this.__proxy.loadAsset(t,e):a().default.prototype.loadAsset.call(this,t,e)},load:function(){return null!=this.__proxy?this.__proxy.load():a().default.prototype.load.call(this)},loadAudioBuffer:function(t){return null!=this.__proxy?this.__proxy.loadAudioBuffer(t):a().default.prototype.loadAudioBuffer.call(this,t)},loadBytes:function(t){return null!=this.__proxy?this.__proxy.loadBytes(t):a().default.prototype.loadBytes.call(this,t)},loadFont:function(t){return null!=this.__proxy?this.__proxy.loadFont(t):a().default.prototype.loadFont.call(this,t)},loadImage:function(t){return null!=this.__proxy?this.__proxy.loadImage(t):a().default.prototype.loadImage.call(this,t)},loadMovieClip:function(t){var e=this;return new(s().default)(function(){return e.getMovieClip(t)})},loadText:function(t){return null!=this.__proxy?this.__proxy.loadText(t):a().default.prototype.loadText.call(this,t)},unload:function(){return null!=this.__proxy?void this.__proxy.unload():void a().default.prototype.unload.call(this)}})).__class__=i["openfl.utils.AssetLibrary"]=u,u.fromBytes=function(t,e){return u.fromManifest(o().default.fromBytes(l().default.toBytes(t),e))},u.fromFile=function(t,e){return u.fromManifest(o().default.fromFile(t,e))},u.fromManifest=function(t){var e=a().default.fromManifest(t);if(null!=e){if(n(4).default.is(e,u))return e;var i=new u;return i.__proxy=e,i}return null},u.loadFromBytes=function(t,e){return o().default.loadFromBytes(l().default.toBytes(t),e).then(function(t){return u.loadFromManifest(t)})},u.loadFromFile=function(t,e){return o().default.loadFromFile(t,e).then(function(t){return u.loadFromManifest(t)})},u.loadFromManifest=function(t){var e=u.fromManifest(t);return null!=e?e.load().then(function(t){return s().default.withValue(t)}):s().default.withError("Could not load asset manifest")},e.default=u}).call(e,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(1).default,r=(n(2).default,n(8).default),a=n(3).default;function s(){return n(13)}function o(){return n(88)}function l(){return n(101)}function u(){return n(17)}function _(){return n(9)}function f(){return n(4)}function d(){return n(204)}function h(){return n(24)}var c=function(t,e){s().default.call(this,this),this.bytesLoaded=0,this.bytesTotal=0,this.isBuffering=!1,this.url=null,null!=t&&this.load(t,e)};c.__name__=["openfl","media","Sound"],c.__super__=s().default,(c.prototype=a(s().default.prototype,{close:function(){null!=this.__buffer&&this.__buffer.dispose()},load:function(t,e){var i=this;this.url=t.url;var a=n(61).default.getLibrary("default");null!=a&&a.cachedAudioBuffers.exists(this.url)?this.AudioBuffer_onURLLoad(a.cachedAudioBuffers.get(this.url)):o().default.loadFromFile(this.url).onComplete(r(this,this.AudioBuffer_onURLLoad)).onError(function(t){i.AudioBuffer_onURLLoad(null)})},loadCompressedDataFromByteArray:function(t,e){if(null==t||e<=0)this.dispatchEvent(new(l().default)("ioError"));else{if(u().default.get_length(t)>e){var i=new(n(45).default)(e);i.writeBytes(t,0,e),t=i}this.__buffer=o().default.fromBytes(u().default.toBytes(t)),null==this.__buffer?this.dispatchEvent(new(l().default)("ioError")):this.dispatchEvent(new(_().default)("complete"))}},loadPCMFromByteArray:function(t,e,n,i,r){if(null==r&&(r=44100),null==i&&(i=!0),null==n&&(n="float"),null!=t){var a=new(o().default);a.bitsPerSample="float"==n?32:16,a.channels=i?2:1;var s,d=u().default.toArrayBuffer(t);s=null!=d?new Uint8Array(d,0):null,a.data=s,a.sampleRate=f().default.int(r),this.__buffer=a,this.dispatchEvent(new(_().default)("complete"))}else this.dispatchEvent(new(l().default)("ioError"))},play:function(t,e,i){if(null==e&&(e=0),null==t&&(t=0),d().default.__soundChannels.length>=32)return null;i=null==i?new(n(81).default):i.clone();var r=d().default.__soundTransform.pan+i.pan;r>1&&(r=1),r<-1&&(r=-1);var a=d().default.__soundTransform.volume*i.volume,s=new(n(370).default)(this.__buffer);s.offset=f().default.int(t),e>1&&s.set_loops(e-1),s.set_gain(a);var o=s.get_position();return o.x=r,o.z=-1*Math.sqrt(1-Math.pow(r,2)),s.set_position(o),new(n(205).default)(s,i)},get_id3:function(){return new(n(206).default)},get_length:function(){return null!=this.__buffer?f().default.int(1e3*this.__buffer.get_src().duration()):0},AudioBuffer_onURLLoad:function(t){null==t?this.dispatchEvent(new(l().default)("ioError")):(this.__buffer=t,this.dispatchEvent(new(_().default)("complete")))}})).__class__=i["openfl.media.Sound"]=c,Object.defineProperties(c.prototype,{id3:{get:function(){return this.get_id3()}},length:{get:function(){return this.get_length()}}}),c.fromAudioBuffer=function(t){var e=new c;return e.__buffer=t,e},c.fromFile=function(t){return c.fromAudioBuffer(o().default.fromFile(t))},c.loadFromFile=function(t){return o().default.loadFromFile(t).then(function(t){return h().default.withValue(c.fromAudioBuffer(t))})},c.loadFromFiles=function(t){return o().default.loadFromFiles(t).then(function(t){return h().default.withValue(c.fromAudioBuffer(t))})},e.default=c}).call(e,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(1).default;n(2).default;var r=function(){};r.__name__=["openfl","media","SoundMixer"],(r.prototype={}).__class__=i["openfl.media.SoundMixer"]=r,Object.defineProperty(r,"soundTransform",{get:function(){return r.get_soundTransform()},set:function(t){return r.set_soundTransform(t)}}),r.areSoundsInaccessible=function(){return!1},r.stopAll=function(){for(var t=0,e=r.__soundChannels;t1&&(e=1);var n=o().default.__soundTransform.volume*this.__soundTransform.volume;if(this.__isValid){this.__source.set_gain(n);var i=this.__source.get_position();return i.x=e,i.z=-1*Math.sqrt(1-Math.pow(e,2)),this.__source.set_position(i),t}}return t},source_onComplete:function(){o().default.__unregisterSoundChannel(this),this.__dispose(),this.dispatchEvent(new(n(9).default)("soundComplete"))}})).__class__=i["openfl.media.SoundChannel"]=l,Object.defineProperties(l.prototype,{position:{get:function(){return this.get_position()},set:function(t){return this.set_position(t)}},soundTransform:{get:function(){return this.get_soundTransform()},set:function(t){return this.set_soundTransform(t)}}}),e.default=l}).call(e,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(1).default,r=function(){};r.__name__=["openfl","media","ID3Info"],(r.prototype={}).__class__=i["openfl.media.ID3Info"]=r,e.default=r}).call(e,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(1).default,r=(n(2).default,n(3).default);function a(){return n(13)}var s=function(){a().default.call(this)};s.__name__=["openfl","events","UncaughtErrorEvents"],s.__super__=a().default,(s.prototype=r(a().default.prototype,{})).__class__=i["openfl.events.UncaughtErrorEvents"]=s,e.default=s}).call(e,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(1).default;n(2).default;function r(){return n(10)}var a=function(t){this.parentDomain=null!=t?t:a.currentDomain};a.__name__=["openfl","system","ApplicationDomain"],a.prototype={getDefinition:function(t){return r().default.resolveClass(t)},hasDefinition:function(t){return null!=r().default.resolveClass(t)}},a.prototype.__class__=i["openfl.system.ApplicationDomain"]=a,a.currentDomain=new a(null),e.default=a}).call(e,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(1).default,r=(n(2).default,n(3).default);function a(){return n(13)}function s(){return n(210)}function o(){return n(140)}function l(){return n(9)}var u=function(){a().default.call(this),u.__instances.push(this)};u.__name__=["openfl","ui","GameInput"],u.__super__=a().default,u.prototype=r(a().default.prototype,{addEventListener:function(t,e,n,i,r){if(null==r&&(r=!1),null==i&&(i=0),null==n&&(n=!1),a().default.prototype.addEventListener.call(this,t,e,n,i,r),"deviceAdded"==t)for(var o=0,l=u.__deviceList;o=0&&t=0&&to().default.get_length(t))throw new(r().default)(new(a().default)("ATF length exceeds byte array length"));this.data=t};l.__name__=["openfl","_internal","stage3D","atf","ATFReader"],(l.prototype={readHeader:function(t,e,n){var i=this.data.readUnsignedByte(),s=i>>7;if(!n&&0!=s)throw new(r().default)(new(a().default)("ATF Cube map not expected"));if(n&&1!=s)throw new(r().default)(new(a().default)("ATF Cube map expected"));if(this.cubeMap=n,this.atfFormat=127&i,3!=this.atfFormat&&5!=this.atfFormat)throw new(r().default)(new(a().default)("Only ATF block compressed textures without JPEG-XR+LZMA are supported"));if(this.width=1<>d,this.height>>d,g,m)}}},__readUInt24:function(t){var e=t.readUnsignedByte()<<16;return e|=t.readUnsignedByte()<<8,e|=t.readUnsignedByte()},__readUInt32:function(t){var e=t.readUnsignedByte()<<24;return e|=t.readUnsignedByte()<<16,e|=t.readUnsignedByte()<<8,e|=t.readUnsignedByte()}}).__class__=i["openfl._internal.stage3D.atf.ATFReader"]=l,e.default=l}).call(e,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(1).default;n(2).default;function r(){return n(400)}var a=function(t,e,n){this.__context=t,this.__numIndices=e,r().default.create(this,this.__context.__renderSession,n)};a.__name__=["openfl","display3D","IndexBuffer3D"],(a.prototype={dispose:function(){r().default.dispose(this,this.__context.__renderSession)},uploadFromByteArray:function(t,e,n,i){r().default.uploadFromByteArray(this,this.__context.__renderSession,t,e,n,i)},uploadFromTypedArray:function(t,e){null==e&&(e=-1),r().default.uploadFromTypedArray(this,this.__context.__renderSession,t)},uploadFromVector:function(t,e,n){r().default.uploadFromVector(this,this.__context.__renderSession,t,e,n)}}).__class__=i["openfl.display3D.IndexBuffer3D"]=a,e.default=a}).call(e,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(1).default;n(2).default;function r(){return n(19)}function a(){return n(37)}function s(){return n(83)}function o(){return n(6)}function l(){return n(38)}function u(){return n(48)}function _(){return n(12)}function f(){return n(4)}function d(){return n(23)}function h(){return n(47)}function c(){return n(408)}function p(){return n(409)}function g(){return n(30)}var m=function(){};m.__name__=["openfl","_internal","stage3D","opengl","GLProgram3D"],(m.prototype={}).__class__=i["openfl._internal.stage3D.opengl.GLProgram3D"]=m,m.dispose=function(t,e){m.program=t,m.renderSession=e,m.__deleteShaders()},m.flushUniform=function(t,e){var n=4*t.regIndex;switch(t.type){case 35664:e.uniform2fv(t.location,t.regCount,r().default.fromArrayBufferView(m.__getUniformRegisters(t,n,2*t.regCount)));break;case 35665:e.uniform3fv(t.location,t.regCount,r().default.fromArrayBufferView(m.__getUniformRegisters(t,n,3*t.regCount)));break;case 35666:e.uniform4fv(t.location,t.regCount,r().default.fromArrayBufferView(m.__getUniformRegisters(t,n,4*t.regCount)));break;case 35674:e.uniformMatrix2fv(t.location,t.size,!1,r().default.fromArrayBufferView(m.__getUniformRegisters(t,n,2*t.size*2)));break;case 35675:e.uniformMatrix3fv(t.location,t.size,!1,r().default.fromArrayBufferView(m.__getUniformRegisters(t,n,3*t.size*3)));break;case 35676:e.uniformMatrix4fv(t.location,t.size,!1,r().default.fromArrayBufferView(m.__getUniformRegisters(t,n,4*t.size*4)));break;default:e.uniform4fv(t.location,t.regCount,r().default.fromArrayBufferView(m.__getUniformRegisters(t,n,4*t.regCount)))}a().default.CheckGLError()},m.setPositionScale=function(t,e,n){e.gl.uniform4fv(t.__positionScale.location,1,r().default.fromArrayBufferView(n)),a().default.CheckGLError()},m.upload=function(t,e,n,i){m.program=t,m.renderSession=e;var r=[],a=s().default.convertToGLSL(n,null),o=s().default.convertToGLSL(i,r);m.__uploadFromGLSL(a,o);for(var l=0,u=r.length;l=0&&(b.name=b.name.substring(0,x)),b.type){case 35674:b.regCount=2;break;case 35675:b.regCount=3;break;case 35676:b.regCount=4;break;default:b.regCount=1}if(b.regCount*=b.size,m.program.__uniforms.add(b),"vcPositionScale"==b.name)m.program.__positionScale=b;else if(_().default.startsWith(b.name,"vc"))b.regIndex=f().default.parseInt(b.name.substring(2)),b.regData=m.program.__context.__vertexConstants,i.add(b);else if(_().default.startsWith(b.name,"fc"))b.regIndex=f().default.parseInt(b.name.substring(2)),b.regData=m.program.__context.__fragmentConstants,r.add(b);else if(_().default.startsWith(b.name,"sampler")&&-1==b.name.indexOf("alpha")){b.regIndex=f().default.parseInt(b.name.substring(7)),m.program.__samplerUniforms.add(b);for(var E=0,T=b.regCount;E=65&&t<=90)return t-65+65}else{switch(t){case 8:return 8;case 9:return 9;case 13:return 13;case 27:return 27;case 32:return 32;case 186:return 59;case 187:return 61;case 188:return 44;case 189:return 45;case 190:return 46;case 191:return 47;case 192:return 96;case 219:return 91;case 220:return 92;case 221:return 93;case 222:return 39}if(t>=48&&t<=57)return t-48+48;if(t>=65&&t<=90)return t-65+97}if(t>=96&&t<=105)return t-96+48;switch(t){case 8:return 8;case 13:return 13;case 46:return 127;case 106:return 42;case 107:return 43;case 108:return 44;case 110:return 45;case 111:return 46}return 0},r.__getKeyLocation=function(t){switch(t){case 1073741908:case 1073741909:case 1073741910:case 1073741911:case 1073741912:case 1073741913:case 1073741914:case 1073741915:case 1073741916:case 1073741917:case 1073741918:case 1073741919:case 1073741920:case 1073741921:case 1073741922:case 1073741923:case 1073742044:return 3;case 1073742048:case 1073742049:case 1073742050:case 1073742051:return 1;case 1073742052:case 1073742053:case 1073742054:case 1073742055:return 2;default:return 0}},r.NUMBER_0=48,r.NUMBER_1=49,r.NUMBER_2=50,r.NUMBER_3=51,r.NUMBER_4=52,r.NUMBER_5=53,r.NUMBER_6=54,r.NUMBER_7=55,r.NUMBER_8=56,r.NUMBER_9=57,r.A=65,r.B=66,r.C=67,r.D=68,r.E=69,r.F=70,r.G=71,r.H=72,r.I=73,r.J=74,r.K=75,r.L=76,r.M=77,r.N=78,r.O=79,r.P=80,r.Q=81,r.R=82,r.S=83,r.T=84,r.U=85,r.V=86,r.W=87,r.X=88,r.Y=89,r.Z=90,r.NUMPAD_0=96,r.NUMPAD_1=97,r.NUMPAD_2=98,r.NUMPAD_3=99,r.NUMPAD_4=100,r.NUMPAD_5=101,r.NUMPAD_6=102,r.NUMPAD_7=103,r.NUMPAD_8=104,r.NUMPAD_9=105,r.NUMPAD_MULTIPLY=106,r.NUMPAD_ADD=107,r.NUMPAD_ENTER=108,r.NUMPAD_SUBTRACT=109,r.NUMPAD_DECIMAL=110,r.NUMPAD_DIVIDE=111,r.F1=112,r.F2=113,r.F3=114,r.F4=115,r.F5=116,r.F6=117,r.F7=118,r.F8=119,r.F9=120,r.F10=121,r.F11=122,r.F12=123,r.F13=124,r.F14=125,r.F15=126,r.BACKSPACE=8,r.TAB=9,r.ALTERNATE=18,r.ENTER=13,r.COMMAND=15,r.SHIFT=16,r.CONTROL=17,r.BREAK=19,r.CAPS_LOCK=20,r.NUMPAD=21,r.ESCAPE=27,r.SPACE=32,r.PAGE_UP=33,r.PAGE_DOWN=34,r.END=35,r.HOME=36,r.LEFT=37,r.RIGHT=39,r.UP=38,r.DOWN=40,r.INSERT=45,r.DELETE=46,r.NUMLOCK=144,r.SEMICOLON=186,r.EQUAL=187,r.COMMA=188,r.MINUS=189,r.PERIOD=190,r.SLASH=191,r.BACKQUOTE=192,r.LEFTBRACKET=219,r.BACKSLASH=220,r.RIGHTBRACKET=221,r.QUOTE=222,e.default=r}).call(e,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(1).default,r=(n(2).default,n(3).default);function a(){return n(9)}var s=function(t,e,n,i,r,s,o,l,u,_,f){null==f&&(f=!1),null==_&&(_=!1),null==u&&(u=!1),null==l&&(l=!1),null==o&&(o=!1),null==r&&(r=0),null==i&&(i=0),null==n&&(n=!1),null==e&&(e=!1),a().default.call(this,t,e,n),this.charCode=i,this.keyCode=r,this.keyLocation=null!=s?s:0,this.ctrlKey=o,this.altKey=l,this.shiftKey=u,this.controlKey=_,this.commandKey=f};s.__name__=["openfl","events","KeyboardEvent"],s.__super__=a().default,(s.prototype=r(a().default.prototype,{clone:function(){var t=new s(this.type,this.bubbles,this.cancelable,this.charCode,this.keyCode,this.keyLocation,this.ctrlKey,this.altKey,this.shiftKey,this.controlKey,this.commandKey);return t.target=this.target,t.currentTarget=this.currentTarget,t.eventPhase=this.eventPhase,t},toString:function(){return this.__formatToString("KeyboardEvent",["type","bubbles","cancelable","charCode","keyCode","keyLocation","ctrlKey","altKey","shiftKey"])}})).__class__=i["openfl.events.KeyboardEvent"]=s,s.KEY_DOWN="keyDown",s.KEY_UP="keyUp",e.default=s}).call(e,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(1).default;n(2).default;function r(){return n(416)}function a(){return n(76)}var s=function(){};s.__name__=["openfl","ui","Mouse"],(s.prototype={}).__class__=i["openfl.ui.Mouse"]=s,Object.defineProperty(s,"cursor",{get:function(){return s.get_cursor()},set:function(t){return s.set_cursor(t)}}),s.hide=function(){r().default.hide()},s.show=function(){r().default.show()},s.get_cursor=function(){return s.__cursor},s.set_cursor=function(t){switch(t){case"arrow":r().default.set_cursor(a().default.ARROW);break;case"button":r().default.set_cursor(a().default.POINTER);break;case"crosshair":r().default.set_cursor(a().default.CROSSHAIR);break;case"custom":r().default.set_cursor(a().default.CUSTOM);break;case"hand":r().default.set_cursor(a().default.MOVE);break;case"ibeam":r().default.set_cursor(a().default.TEXT);break;case"resize_nesw":r().default.set_cursor(a().default.RESIZE_NESW);break;case"resize_ns":r().default.set_cursor(a().default.RESIZE_NS);break;case"resize_nwse":r().default.set_cursor(a().default.RESIZE_NWSE);break;case"resize_we":r().default.set_cursor(a().default.RESIZE_WE);break;case"wait":r().default.set_cursor(a().default.WAIT);break;case"waitarrow":r().default.set_cursor(a().default.WAIT_ARROW)}return s.__cursor=t},s.supportsCursor=!0,s.supportsNativeCursor=!0,s.__cursor="auto",e.default=s}).call(e,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(1).default;n(2).default;function r(){return n(63)}var a=function(){};a.__name__=["lime","_backend","html5","HTML5Mouse"],(a.prototype={}).__class__=i["lime._backend.html5.HTML5Mouse"]=a,a.hide=function(){if(!a.__hidden){a.__hidden=!0;for(var t=0,e=r().default.current.get_windows();t-1){if(m>=p.__data.length){W(Y,X);continue}if(null==(g=p.__data[m])){W(Y,X);continue}y=g.width,b=g.height,x=g.__uvX,E=g.__uvY,T=g.__uvWidth,A=g.__uvHeight}else{if(null==(V=this.get_rect())){W(Y,X);continue}if(y=V.width,b=V.height,y<=0||b<=0){W(Y,X);continue}v=p.__bitmapData.width,w=p.__bitmapData.height,x=V.x/v,E=V.y/w,T=V.get_right()/v,A=V.get_bottom()/w}R=(d=this.get_matrix()).__transformX(0,0),S=d.__transformY(0,0),M=d.__transformX(y,0),I=d.__transformY(y,0),D=d.__transformX(0,b),C=d.__transformY(0,b),L=d.__transformX(y,b),O=d.__transformY(y,b),c*=i,(h=this.get_colorTransform()).__combine(a),P=h.redMultiplier,F=h.greenMultiplier,B=h.blueMultiplier,N=h.alphaMultiplier,k=h.redOffset,U=h.greenOffset,G=h.blueOffset,j=h.alphaOffset,this.__bufferData[X]=R,this.__bufferData[X+1]=S,this.__bufferData[X+2]=x,this.__bufferData[X+3]=E,this.__bufferData[X+25]=M,this.__bufferData[X+25+1]=I,this.__bufferData[X+25+2]=T,this.__bufferData[X+25+3]=E,this.__bufferData[X+50]=D,this.__bufferData[X+50+1]=C,this.__bufferData[X+50+2]=x,this.__bufferData[X+50+3]=A,this.__bufferData[X+75]=D,this.__bufferData[X+75+1]=C,this.__bufferData[X+75+2]=x,this.__bufferData[X+75+3]=A,this.__bufferData[X+100]=M,this.__bufferData[X+100+1]=I,this.__bufferData[X+100+2]=T,this.__bufferData[X+100+3]=E,this.__bufferData[X+125]=L,this.__bufferData[X+125+1]=O,this.__bufferData[X+125+2]=T,this.__bufferData[X+125+3]=A;for(var q=0;q<6;){var K=q++;this.__bufferData[X+25*K+4]=c,this.__bufferData[X+25*K+5]=P,this.__bufferData[X+25*K+10]=F,this.__bufferData[X+25*K+15]=B,this.__bufferData[X+25*K+20]=N,this.__bufferData[X+25*K+21]=k/255,this.__bufferData[X+25*K+22]=U/255,this.__bufferData[X+25*K+23]=G/255,this.__bufferData[X+25*K+24]=j/255}this.__bufferSkipped.set(Y,!1)}else W(Y,X)}t.bufferData(t.ARRAY_BUFFER,this.__bufferData.byteLength,n(19).default.fromArrayBufferView(this.__bufferData),t.DYNAMIC_DRAW),this.__cacheAlpha=i,this.__cacheDefaultTileset=e,this.__bufferDirty=!1}return this.__buffer},get_alpha:function(){return this.__data.get(11+21*this.position)},set_alpha:function(t){return this.__dirty.set(2+5*this.position,!0),this.__data.set(11+21*this.position,t)},get_colorTransform:function(){null==this.__colorTransform&&(this.__colorTransform=new(n(40).default));var t=12+21*this.position,e=this.__data.get(t);this.__colorTransform.redMultiplier=e;var i=this.__data.get(t+1);this.__colorTransform.greenMultiplier=i;var r=this.__data.get(t+2);this.__colorTransform.blueMultiplier=r;var a=this.__data.get(t+3);this.__colorTransform.alphaMultiplier=a;var s=this.__data.get(t+4);this.__colorTransform.redOffset=s;var o=this.__data.get(t+5);this.__colorTransform.greenOffset=o;var l=this.__data.get(t+6);this.__colorTransform.blueOffset=l;var u=this.__data.get(t+7);return this.__colorTransform.alphaOffset=u,this.__colorTransform},set_colorTransform:function(t){var e=12+21*this.position;return null!=t?(this.__data.set(e,t.redMultiplier),this.__data.set(e+1,t.greenMultiplier),this.__data.set(e+2,t.blueMultiplier),this.__data.set(e+3,t.alphaMultiplier),this.__data.set(e+4,t.redOffset),this.__data.set(e+5,t.greenOffset),this.__data.set(e+6,t.blueOffset),this.__data.set(e+7,t.alphaOffset)):(this.__data.set(e,1),this.__data.set(e+1,1),this.__data.set(e+2,1),this.__data.set(e+3,1),this.__data.set(e+4,0),this.__data.set(e+5,0),this.__data.set(e+6,0),this.__data.set(e+7,0)),this.__dirty.set(3+5*this.position,!0),t},get_id:function(){return n(4).default.int(this.__data.get(21*this.position))},set_id:function(t){return this.__dirty.set(5*this.position,!0),this.__data.set(21*this.position,t),t},get_length:function(){return this.__length},set_length:function(t){if(this.__data.set_length(21*t),this.__dirty.set_length(5*t),this.__shaders.set_length(t),this.__tilesets.set_length(t),this.__visible.set_length(t),t>this.__length){for(var e=this.position,n=this.__length,i=t;n0&&e<65535&&this.connect(t,e)};c.__name__=["openfl","net","Socket"],c.__interfaces__=[n(123).default,n(92).default],c.__super__=s().default,(c.prototype=a(s().default.prototype,{connect:function(t,e){if(null==e&&(e=0),null!=this.__socket&&this.close(),e<0||e>65535)throw new(o().default)(new(n(230).default)("Invalid socket port number specified."));this.__timestamp=n(26).default.stamp(),this.__host=t,this.__port=e;var i=new(l().default)(0);this.__output=i,this.__output.set_endian(this.__endian);var a=new(l().default)(0);this.__input=a,this.__input.set_endian(this.__endian);var s=new(l().default)(0);this.__inputBuffer=s,this.__inputBuffer.set_endian(this.__endian),"https:"==n(11).default.get_location().protocol&&(this.secure=!0);var _=this.secure?"wss":"ws",f=new(n(27).default)("^(.*://)?([A-Za-z0-9\\-\\.]+)/?(.*)","g");f.match(t);var d=f.matched(2),h=f.matched(3);this.__socket=new WebSocket(_+"://"+d+":"+e+"/"+h),this.__socket.binaryType="arraybuffer",this.__socket.onopen=r(this,this.socket_onOpen),this.__socket.onmessage=r(this,this.socket_onMessage),this.__socket.onclose=r(this,this.socket_onClose),this.__socket.onerror=r(this,this.socket_onError),u().default.current.addEventListener("enterFrame",r(this,this.this_onEnterFrame))},close:function(){if(null==this.__socket)throw new(o().default)(new(_().default)("Operation attempted on invalid socket."));this.__cleanSocket()},flush:function(){if(null==this.__socket)throw new(o().default)(new(_().default)("Operation attempted on invalid socket."));if(f().default.get_length(this.__output)>0)try{var t=f().default.toArrayBuffer(this.__output);t.byteLength>f().default.get_length(this.__output)&&(t=t.slice(0,f().default.get_length(this.__output))),this.__socket.send(t);var e=new(l().default)(0);this.__output=e,this.__output.set_endian(this.__endian)}catch(t){throw new(o().default)(new(_().default)("Operation attempted on invalid socket."))}},readBoolean:function(){if(null==this.__socket)throw new(o().default)(new(_().default)("Operation attempted on invalid socket."));return this.__input.readBoolean()},readByte:function(){if(null==this.__socket)throw new(o().default)(new(_().default)("Operation attempted on invalid socket."));return this.__input.readByte()},readBytes:function(t,e,n){if(null==n&&(n=0),null==e&&(e=0),null==this.__socket)throw new(o().default)(new(_().default)("Operation attempted on invalid socket."));this.__input.readBytes(t,e,n)},readDouble:function(){if(null==this.__socket)throw new(o().default)(new(_().default)("Operation attempted on invalid socket."));return this.__input.readDouble()},readFloat:function(){if(null==this.__socket)throw new(o().default)(new(_().default)("Operation attempted on invalid socket."));return this.__input.readFloat()},readInt:function(){if(null==this.__socket)throw new(o().default)(new(_().default)("Operation attempted on invalid socket."));return this.__input.readInt()},readMultiByte:function(t,e){if(null==this.__socket)throw new(o().default)(new(_().default)("Operation attempted on invalid socket."));return this.__input.readMultiByte(t,e)},readShort:function(){if(null==this.__socket)throw new(o().default)(new(_().default)("Operation attempted on invalid socket."));return this.__input.readShort()},readUnsignedByte:function(){if(null==this.__socket)throw new(o().default)(new(_().default)("Operation attempted on invalid socket."));return this.__input.readUnsignedByte()},readUnsignedInt:function(){if(null==this.__socket)throw new(o().default)(new(_().default)("Operation attempted on invalid socket."));return this.__input.readUnsignedInt()},readUnsignedShort:function(){if(null==this.__socket)throw new(o().default)(new(_().default)("Operation attempted on invalid socket."));return this.__input.readUnsignedShort()},readUTF:function(){if(null==this.__socket)throw new(o().default)(new(_().default)("Operation attempted on invalid socket."));return this.__input.readUTF()},readUTFBytes:function(t){if(null==this.__socket)throw new(o().default)(new(_().default)("Operation attempted on invalid socket."));return this.__input.readUTFBytes(t)},writeBoolean:function(t){if(null==this.__socket)throw new(o().default)(new(_().default)("Operation attempted on invalid socket."));this.__output.writeBoolean(t)},writeByte:function(t){if(null==this.__socket)throw new(o().default)(new(_().default)("Operation attempted on invalid socket."));this.__output.writeByte(t)},writeBytes:function(t,e,n){if(null==n&&(n=0),null==e&&(e=0),null==this.__socket)throw new(o().default)(new(_().default)("Operation attempted on invalid socket."));this.__output.writeBytes(t,e,n)},writeDouble:function(t){if(null==this.__socket)throw new(o().default)(new(_().default)("Operation attempted on invalid socket."));this.__output.writeDouble(t)},writeFloat:function(t){if(null==this.__socket)throw new(o().default)(new(_().default)("Operation attempted on invalid socket."));this.__output.writeFloat(t)},writeInt:function(t){if(null==this.__socket)throw new(o().default)(new(_().default)("Operation attempted on invalid socket."));this.__output.writeInt(t)},writeMultiByte:function(t,e){if(null==this.__socket)throw new(o().default)(new(_().default)("Operation attempted on invalid socket."));this.__output.writeUTFBytes(t)},writeShort:function(t){if(null==this.__socket)throw new(o().default)(new(_().default)("Operation attempted on invalid socket."));this.__output.writeShort(t)},writeUnsignedInt:function(t){if(null==this.__socket)throw new(o().default)(new(_().default)("Operation attempted on invalid socket."));this.__output.writeUnsignedInt(t)},writeUTF:function(t){if(null==this.__socket)throw new(o().default)(new(_().default)("Operation attempted on invalid socket."));this.__output.writeUTF(t)},writeUTFBytes:function(t){if(null==this.__socket)throw new(o().default)(new(_().default)("Operation attempted on invalid socket."));this.__output.writeUTFBytes(t)},__cleanSocket:function(){try{this.__socket.close()}catch(t){}this.__socket=null,this.__connected=!1,u().default.current.removeEventListener("enterFrame",r(this,this.this_onEnterFrame))},socket_onClose:function(t){this.dispatchEvent(new(d().default)("close"))},socket_onError:function(t){this.dispatchEvent(new(d().default)("ioError"))},socket_onMessage:function(t){if("string"==typeof t.data){this.__inputBuffer.position=f().default.get_length(this.__inputBuffer);var e=this.__inputBuffer.position;this.__inputBuffer.writeUTFBytes(t.data),this.__inputBuffer.position=e}else{f().default.fromArrayBuffer(t.data).readBytes(this.__inputBuffer,f().default.get_length(this.__inputBuffer))}if(h().default.gt(this.__inputBuffer.get_bytesAvailable(),0)){var i=new(l().default)(0),r=this.__inputBuffer.get_bytesAvailable();this.__input.readBytes(i,0,this.__input.get_bytesAvailable()),this.__inputBuffer.position=0,this.__inputBuffer.readBytes(i,i.position,f().default.get_length(this.__inputBuffer)),i.position=0,this.__input=i,this.__input.set_endian(this.__endian),this.__inputBuffer.clear(),this.dispatchEvent(new(n(53).default)("socketData",!1,!1,h().default.toFloat(r),0))}},socket_onOpen:function(t){this.__connected=!0,this.dispatchEvent(new(d().default)("connect"))},this_onEnterFrame:function(t){null!=this.__socket&&this.flush()},get_bytesAvailable:function(){return this.__input.get_bytesAvailable()},get_bytesPending:function(){return f().default.get_length(this.__output)},get_connected:function(){return this.__connected},get_endian:function(){return this.__endian},set_endian:function(t){return this.__endian=t,null!=this.__input&&this.__input.set_endian(t),null!=this.__inputBuffer&&this.__inputBuffer.set_endian(t),null!=this.__output&&this.__output.set_endian(t),this.__endian}})).__class__=i["openfl.net.Socket"]=c,Object.defineProperties(c.prototype,{bytesAvailable:{get:function(){return this.get_bytesAvailable()}},bytesPending:{get:function(){return this.get_bytesPending()}},connected:{get:function(){return this.get_connected()}},endian:{get:function(){return this.get_endian()},set:function(t){return this.set_endian(t)}}}),e.default=c}).call(e,n(0))},function(t,e,n){t.exports={desktop:n(238),display:n(286),display3D:n(436),errors:n(459),events:n(468),external:n(496),filters:n(499),geom:n(507),media:n(520),net:n(532),profiler:n(563),sensors:n(566),system:n(572),text:n(586),ui:n(598),utils:n(609),Assets:n(626),Lib:n(627),Memory:n(628),Vector:n(630)}},function(t,e,n){t.exports={Clipboard:n(239).default,ClipboardFormats:n(284).default,ClipboardTransferMode:n(285).default}},function(t,e,n){t.exports=n(240)},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(1).default;n(2).default;function r(){return n(84)}function a(){return n(4)}var s=function(){};s.__name__=["openfl","desktop","Clipboard"],(s.prototype={clear:function(){this.__systemClipboard?r().default.set_text(null):(this.__htmlText=null,this.__richText=null,this.__text=null)},clearData:function(t){if(this.__systemClipboard)switch(t){case"air:html":case"air:rtf":case"air:txt":r().default.set_text(null)}else switch(t){case"air:html":this.__htmlText=null;break;case"air:rtf":this.__richText=null;break;case"air:txt":this.__text=null}},getData:function(t,e){if(null==e&&(e="originalPreferred"),this.__systemClipboard)switch(t){case"air:html":case"air:rtf":case"air:txt":return r().default.get_text();default:return null}else switch(t){case"air:html":return this.__htmlText;case"air:rtf":return this.__richText;case"air:txt":return this.__text;default:return null}},hasFormat:function(t){if(this.__systemClipboard)switch(t){case"air:html":case"air:rtf":case"air:txt":return null!=r().default.get_text();default:return!1}else switch(t){case"air:html":return null!=this.__htmlText;case"air:rtf":return null!=this.__richText;case"air:txt":return null!=this.__text;default:return!1}},setData:function(t,e,n){if(null==n&&(n=!0),this.__systemClipboard)switch(t){case"air:html":case"air:rtf":case"air:txt":return r().default.set_text(a().default.string(e)),!0;default:return!1}else switch(t){case"air:html":return this.__htmlText=a().default.string(e),!0;case"air:rtf":return this.__richText=a().default.string(e),!0;case"air:txt":return this.__text=a().default.string(e),!0;default:return!1}},setDataHandler:function(t,e,i){return null==i&&(i=!0),n(34).default.notImplemented({fileName:"Clipboard.hx",lineNumber:210,className:"openfl.desktop.Clipboard",methodName:"setDataHandler"}),!1},get_formats:function(){var t=["air:txt"];return this.hasFormat("air:html")&&t.push("air:html"),this.hasFormat("air:rtf")&&t.push("air:rtf"),this.hasFormat("air:txt")&&t.push("air:txt"),t}}).__class__=i["openfl.desktop.Clipboard"]=s,t.Object.defineProperty(s,"generalClipboard",{get:function(){return s.get_generalClipboard()}});var o=s.prototype;t.Object.defineProperty(o,"formats",{get:function(){return this.get_formats()}}),s.get_generalClipboard=function(){return null==s.__generalClipboard&&((s.__generalClipboard=new s).__systemClipboard=!0),s.__generalClipboard},e.default=s}).call(e,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(1).default,r=n(8).default;n(2).default;function a(){return n(85)}function s(){return n(86)}function o(){return n(109)}function l(){return n(7)}var u=function(){this.onExit=new(n(108).default),this.__renderers=[],this.__windows=[]};u.__name__=["lime","app","Module"],u.__interfaces__=[n(146).default],(u.prototype={addRenderer:function(t){var e=r(this,this.render),n=t;t.onRender.add(function(){e(n)});var i=r(this,this.onRenderContextLost),a=t;t.onContextLost.add(function(){i(a)});var s=r(this,this.onRenderContextRestored),o=t;t.onContextRestored.add(function(t){s(o,t)}),this.__renderers.push(t)},addWindow:function(t){var e=r(this,this.onWindowActivate),n=t;t.onActivate.add(function(){e(n)});var i=r(this,this.__onWindowClose),a=t;t.onClose.add(function(){i(a)},!1,-1e4);var s=r(this,this.onWindowCreate),o=t;t.onCreate.add(function(){s(o)});var l=r(this,this.onWindowDeactivate),u=t;t.onDeactivate.add(function(){l(u)});var _=r(this,this.onWindowDropFile),f=t;t.onDropFile.add(function(t){_(f,t)});var d=r(this,this.onWindowEnter),h=t;t.onEnter.add(function(){d(h)});var c=r(this,this.onWindowFocusIn),p=t;t.onFocusIn.add(function(){c(p)});var g=r(this,this.onWindowFocusOut),m=t;t.onFocusOut.add(function(){g(m)});var v=r(this,this.onWindowFullscreen),w=t;t.onFullscreen.add(function(){v(w)});var y=r(this,this.onKeyDown),b=t;t.onKeyDown.add(function(t,e){y(b,t,e)});var x=r(this,this.onKeyUp),E=t;t.onKeyUp.add(function(t,e){x(E,t,e)});var T=r(this,this.onWindowLeave),A=t;t.onLeave.add(function(){T(A)});var R=r(this,this.onWindowMinimize),S=t;t.onMinimize.add(function(){R(S)});var M=r(this,this.onMouseDown),I=t;t.onMouseDown.add(function(t,e,n){M(I,t,e,n)});var D=r(this,this.onMouseMove),C=t;t.onMouseMove.add(function(t,e){D(C,t,e)});var L=r(this,this.onMouseMoveRelative),O=t;t.onMouseMoveRelative.add(function(t,e){L(O,t,e)});var P=r(this,this.onMouseUp),F=t;t.onMouseUp.add(function(t,e,n){P(F,t,e,n)});var B=r(this,this.onMouseWheel),N=t;t.onMouseWheel.add(function(t,e){B(N,t,e)});var k=r(this,this.onWindowMove),U=t;t.onMove.add(function(t,e){k(U,t,e)});var G=r(this,this.onWindowResize),j=t;t.onResize.add(function(t,e){G(j,t,e)});var V=r(this,this.onWindowRestore),X=t;t.onRestore.add(function(){V(X)});var W=r(this,this.onTextEdit),H=t;t.onTextEdit.add(function(t,e,n){W(H,t,e,n)});var z=r(this,this.onTextInput),Y=t;t.onTextInput.add(function(t){z(Y,t)}),t.id>-1&&this.onWindowCreate(t),this.__windows.push(t)},registerModule:function(t){this.__application=t,t.onExit.add(r(this,this.onModuleExit),!1,0),t.onUpdate.add(r(this,this.update));for(var e=a().default.devices.iterator();e.hasNext();){var n=e.next();this.__onGamepadConnect(n)}a().default.onConnect.add(r(this,this.__onGamepadConnect));for(var i=s().default.devices.iterator();i.hasNext();){var l=i.next();this.__onJoystickConnect(l)}s().default.onConnect.add(r(this,this.__onJoystickConnect)),o().default.onCancel.add(r(this,this.onTouchCancel)),o().default.onStart.add(r(this,this.onTouchStart)),o().default.onMove.add(r(this,this.onTouchMove)),o().default.onEnd.add(r(this,this.onTouchEnd))},removeRenderer:function(t){null!=t&&this.__renderers.indexOf(t)>-1&&l().default.remove(this.__renderers,t)},removeWindow:function(t){null!=t&&this.__windows.indexOf(t)>-1&&l().default.remove(this.__windows,t)},setPreloader:function(t){null!=this.__preloader&&(this.__preloader.onProgress.remove(r(this,this.onPreloadProgress)),this.__preloader.onComplete.remove(r(this,this.onPreloadComplete))),this.__preloader=t,null==t||t.complete?this.onPreloadComplete():(t.onProgress.add(r(this,this.onPreloadProgress)),t.onComplete.add(r(this,this.onPreloadComplete)))},unregisterModule:function(t){this.__application.onExit.remove(r(this,this.onModuleExit)),this.__application.onUpdate.remove(r(this,this.update)),a().default.onConnect.remove(r(this,this.__onGamepadConnect)),s().default.onConnect.remove(r(this,this.__onJoystickConnect)),o().default.onCancel.remove(r(this,this.onTouchCancel)),o().default.onStart.remove(r(this,this.onTouchStart)),o().default.onMove.remove(r(this,this.onTouchMove)),o().default.onEnd.remove(r(this,this.onTouchEnd)),this.onModuleExit(0)},onGamepadAxisMove:function(t,e,n){},onGamepadButtonDown:function(t,e){},onGamepadButtonUp:function(t,e){},onGamepadConnect:function(t){},onGamepadDisconnect:function(t){},onJoystickAxisMove:function(t,e,n){},onJoystickButtonDown:function(t,e){},onJoystickButtonUp:function(t,e){},onJoystickConnect:function(t){},onJoystickDisconnect:function(t){},onJoystickHatMove:function(t,e,n){},onJoystickTrackballMove:function(t,e,n,i){},onKeyDown:function(t,e,n){},onKeyUp:function(t,e,n){},onModuleExit:function(t){},onMouseDown:function(t,e,n,i){},onMouseMove:function(t,e,n){},onMouseMoveRelative:function(t,e,n){},onMouseUp:function(t,e,n,i){},onMouseWheel:function(t,e,n){},onPreloadComplete:function(){},onPreloadProgress:function(t,e){},onRenderContextLost:function(t){},onRenderContextRestored:function(t,e){},onTextEdit:function(t,e,n,i){},onTextInput:function(t,e){},onTouchCancel:function(t){},onTouchEnd:function(t){},onTouchMove:function(t){},onTouchStart:function(t){},onWindowActivate:function(t){},onWindowClose:function(t){},onWindowCreate:function(t){},onWindowDeactivate:function(t){},onWindowDropFile:function(t,e){},onWindowEnter:function(t){},onWindowFocusIn:function(t){},onWindowFocusOut:function(t){},onWindowFullscreen:function(t){},onWindowLeave:function(t){},onWindowMove:function(t,e,n){},onWindowMinimize:function(t){},onWindowResize:function(t,e,n){},onWindowRestore:function(t){},render:function(t){},update:function(t){},__onGamepadConnect:function(t){this.onGamepadConnect(t);var e=r(this,this.onGamepadAxisMove),n=t;t.onAxisMove.add(function(t,i){e(n,t,i)});var i=r(this,this.onGamepadButtonDown),a=t;t.onButtonDown.add(function(t){i(a,t)});var s=r(this,this.onGamepadButtonUp),o=t;t.onButtonUp.add(function(t){s(o,t)});var l=r(this,this.onGamepadDisconnect),u=t;t.onDisconnect.add(function(){l(u)})},__onJoystickConnect:function(t){this.onJoystickConnect(t);var e=r(this,this.onJoystickAxisMove),n=t;t.onAxisMove.add(function(t,i){e(n,t,i)});var i=r(this,this.onJoystickButtonDown),a=t;t.onButtonDown.add(function(t){i(a,t)});var s=r(this,this.onJoystickButtonUp),o=t;t.onButtonUp.add(function(t){s(o,t)});var l=r(this,this.onJoystickDisconnect),u=t;t.onDisconnect.add(function(){l(u)});var _=r(this,this.onJoystickHatMove),f=t;t.onHatMove.add(function(t,e){_(f,t,e)});var d=r(this,this.onJoystickTrackballMove),h=t;t.onTrackballMove.add(function(t,e,n){d(h,t,e,n)})},__onWindowClose:function(t){this.onWindowClose(t),l().default.remove(this.__windows,t)}}).__class__=i["lime.app.Module"]=u,e.default=u}).call(e,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(1).default;n(2).default;function r(){return n(5)}var a=function(){this.canceled=!1,this.__listeners=[],this.__priorities=[],this.__repeat=[]};a.__name__=["lime","app","_Event_lime_ui_Joystick_Void"],(a.prototype={add:function(t,e,n){null==n&&(n=0),null==e&&(e=!1);for(var i=0,r=this.__priorities.length;ithis.__priorities[a])return this.__listeners.splice(a,0,t),this.__priorities.splice(a,0,n),void this.__repeat.splice(a,0,!e)}this.__listeners.push(t),this.__priorities.push(n),this.__repeat.push(!e)},cancel:function(){this.canceled=!0},has:function(t){for(var e=0,n=this.__listeners;e=0;)r().default.compareMethods(this.__listeners[e],t)&&(this.__listeners.splice(e,1),this.__priorities.splice(e,1),this.__repeat.splice(e,1))},dispatch:function(t){this.canceled=!1;for(var e=this.__listeners,n=this.__repeat,i=0;ithis.__priorities[a])return this.__listeners.splice(a,0,t),this.__priorities.splice(a,0,n),void this.__repeat.splice(a,0,!e)}this.__listeners.push(t),this.__priorities.push(n),this.__repeat.push(!e)},cancel:function(){this.canceled=!0},has:function(t){for(var e=0,n=this.__listeners;e=0;)r().default.compareMethods(this.__listeners[e],t)&&(this.__listeners.splice(e,1),this.__priorities.splice(e,1),this.__repeat.splice(e,1))},dispatch:function(t,e,n){this.canceled=!1;for(var i=this.__listeners,r=this.__repeat,a=0;athis.__priorities[a])return this.__listeners.splice(a,0,t),this.__priorities.splice(a,0,n),void this.__repeat.splice(a,0,!e)}this.__listeners.push(t),this.__priorities.push(n),this.__repeat.push(!e)},cancel:function(){this.canceled=!0},has:function(t){for(var e=0,n=this.__listeners;e=0;)r().default.compareMethods(this.__listeners[e],t)&&(this.__listeners.splice(e,1),this.__priorities.splice(e,1),this.__repeat.splice(e,1))},dispatch:function(t,e){this.canceled=!1;for(var n=this.__listeners,i=this.__repeat,r=0;rthis.__priorities[a])return this.__listeners.splice(a,0,t),this.__priorities.splice(a,0,n),void this.__repeat.splice(a,0,!e)}this.__listeners.push(t),this.__priorities.push(n),this.__repeat.push(!e)},cancel:function(){this.canceled=!0},has:function(t){for(var e=0,n=this.__listeners;e=0;)r().default.compareMethods(this.__listeners[e],t)&&(this.__listeners.splice(e,1),this.__priorities.splice(e,1),this.__repeat.splice(e,1))},dispatch:function(t,e){this.canceled=!1;for(var n=this.__listeners,i=this.__repeat,r=0;rthis.__priorities[a])return this.__listeners.splice(a,0,t),this.__priorities.splice(a,0,n),void this.__repeat.splice(a,0,!e)}this.__listeners.push(t),this.__priorities.push(n),this.__repeat.push(!e)},cancel:function(){this.canceled=!0},has:function(t){for(var e=0,n=this.__listeners;e=0;)r().default.compareMethods(this.__listeners[e],t)&&(this.__listeners.splice(e,1),this.__priorities.splice(e,1),this.__repeat.splice(e,1))},dispatch:function(t){this.canceled=!1;for(var e=this.__listeners,n=this.__repeat,i=0;ithis.__priorities[a])return this.__listeners.splice(a,0,t),this.__priorities.splice(a,0,n),void this.__repeat.splice(a,0,!e)}this.__listeners.push(t),this.__priorities.push(n),this.__repeat.push(!e)},cancel:function(){this.canceled=!0},has:function(t){for(var e=0,n=this.__listeners;e=0;)r().default.compareMethods(this.__listeners[e],t)&&(this.__listeners.splice(e,1),this.__priorities.splice(e,1),this.__repeat.splice(e,1))},dispatch:function(t){this.canceled=!1;for(var e=this.__listeners,n=this.__repeat,i=0;ithis.__priorities[a])return this.__listeners.splice(a,0,t),this.__priorities.splice(a,0,n),void this.__repeat.splice(a,0,!e)}this.__listeners.push(t),this.__priorities.push(n),this.__repeat.push(!e)},cancel:function(){this.canceled=!0},has:function(t){for(var e=0,n=this.__listeners;e=0;)r().default.compareMethods(this.__listeners[e],t)&&(this.__listeners.splice(e,1),this.__priorities.splice(e,1),this.__repeat.splice(e,1))},dispatch:function(t,e){this.canceled=!1;for(var n=this.__listeners,i=this.__repeat,r=0;rthis.__priorities[a])return this.__listeners.splice(a,0,t),this.__priorities.splice(a,0,n),void this.__repeat.splice(a,0,!e)}this.__listeners.push(t),this.__priorities.push(n),this.__repeat.push(!e)},cancel:function(){this.canceled=!0},has:function(t){for(var e=0,n=this.__listeners;e=0;)r().default.compareMethods(this.__listeners[e],t)&&(this.__listeners.splice(e,1),this.__priorities.splice(e,1),this.__repeat.splice(e,1))},dispatch:function(t){this.canceled=!1;for(var e=this.__listeners,n=this.__repeat,i=0;ithis.__priorities[a])return this.__listeners.splice(a,0,t),this.__priorities.splice(a,0,n),void this.__repeat.splice(a,0,!e)}this.__listeners.push(t),this.__priorities.push(n),this.__repeat.push(!e)},cancel:function(){this.canceled=!0},has:function(t){for(var e=0,n=this.__listeners;e=0;)r().default.compareMethods(this.__listeners[e],t)&&(this.__listeners.splice(e,1),this.__priorities.splice(e,1),this.__repeat.splice(e,1))},dispatch:function(t,e,n){this.canceled=!1;for(var i=this.__listeners,r=this.__repeat,a=0;athis.__priorities[a])return this.__listeners.splice(a,0,t),this.__priorities.splice(a,0,n),void this.__repeat.splice(a,0,!e)}this.__listeners.push(t),this.__priorities.push(n),this.__repeat.push(!e)},cancel:function(){this.canceled=!0},has:function(t){for(var e=0,n=this.__listeners;e=0;)r().default.compareMethods(this.__listeners[e],t)&&(this.__listeners.splice(e,1),this.__priorities.splice(e,1),this.__repeat.splice(e,1))},dispatch:function(t,e){this.canceled=!1;for(var n=this.__listeners,i=this.__repeat,r=0;rthis.__priorities[a])return this.__listeners.splice(a,0,t),this.__priorities.splice(a,0,n),void this.__repeat.splice(a,0,!e)}this.__listeners.push(t),this.__priorities.push(n),this.__repeat.push(!e)},cancel:function(){this.canceled=!0},has:function(t){for(var e=0,n=this.__listeners;e=0;)r().default.compareMethods(this.__listeners[e],t)&&(this.__listeners.splice(e,1),this.__priorities.splice(e,1),this.__repeat.splice(e,1))},dispatch:function(t,e,n){this.canceled=!1;for(var i=this.__listeners,r=this.__repeat,a=0;athis.__priorities[a])return this.__listeners.splice(a,0,t),this.__priorities.splice(a,0,n),void this.__repeat.splice(a,0,!e)}this.__listeners.push(t),this.__priorities.push(n),this.__repeat.push(!e)},cancel:function(){this.canceled=!0},has:function(t){for(var e=0,n=this.__listeners;e=0;)r().default.compareMethods(this.__listeners[e],t)&&(this.__listeners.splice(e,1),this.__priorities.splice(e,1),this.__repeat.splice(e,1))},dispatch:function(t,e){this.canceled=!1;for(var n=this.__listeners,i=this.__repeat,r=0;r0&&this.parent.onTextInput.dispatch(e),d.textInput.value=d.dummyCharacter}},handleMouseEvent:function(t){var e=0,n=0;if("wheel"!=t.type){if(null!=this.element)if(null!=this.canvas){var i=this.canvas.getBoundingClientRect();e=(t.clientX-i.left)*(this.parent.get_width()/i.width),n=(t.clientY-i.top)*(this.parent.get_height()/i.height)}else if(null!=this.div){var r=this.div.getBoundingClientRect();e=t.clientX-r.left,n=t.clientY-r.top}else{var a=this.element.getBoundingClientRect();e=(t.clientX-a.left)*(this.parent.get_width()/a.width),n=(t.clientY-a.top)*(this.parent.get_height()/a.height)}else e=t.clientX,n=t.clientY;switch(t.type){case"mousedown":this.parent.onMouseDown.dispatch(e,n,t.button),this.parent.onMouseDown.canceled&&t.preventDefault();break;case"mouseenter":t.target==this.element&&(this.parent.onEnter.dispatch(),this.parent.onEnter.canceled&&t.preventDefault());break;case"mouseleave":t.target==this.element&&(this.parent.onLeave.dispatch(),this.parent.onLeave.canceled&&t.preventDefault());break;case"mousemove":e==this.cacheMouseX&&n==this.cacheMouseY||(this.parent.onMouseMove.dispatch(e,n),this.parent.onMouseMoveRelative.dispatch(e-this.cacheMouseX,n-this.cacheMouseY),(this.parent.onMouseMove.canceled||this.parent.onMouseMoveRelative.canceled)&&t.preventDefault());break;case"mouseup":this.parent.onMouseUp.dispatch(e,n,t.button),this.parent.onMouseUp.canceled&&t.preventDefault()}this.cacheMouseX=e,this.cacheMouseY=n}else this.parent.onMouseWheel.dispatch(t.deltaX,-t.deltaY),this.parent.onMouseWheel.canceled&&t.preventDefault()},handlePasteEvent:function(t){if(t.clipboardData.types.indexOf("text/plain")>-1){var e=t.clipboardData.getData("text/plain");o().default.set_text(e),this.enableTextEvents&&this.parent.onTextInput.dispatch(e),t.preventDefault()}},handleResizeEvent:function(t){this.primaryTouch=null,this.updateSize()},handleTouchEvent:function(t){t.preventDefault();var e=null;null!=this.element&&(e=null!=this.canvas?this.canvas.getBoundingClientRect():null!=this.div?this.div.getBoundingClientRect():this.element.getBoundingClientRect());var n,i,r,a,s,o=this.setWidth,l=this.setHeight;0!=o&&0!=l||(null!=e?(o=e.width,l=e.height):(o=1,l=1));for(var u=0,f=t.changedTouches;ut.width&&(e.width=t.width-e.x),e.y+e.height>t.height&&(e.height=t.height-e.y),e.width<0&&(e.width=0),e.height<0&&(e.height=0),this.rect=e),this.stride=t.buffer.get_stride(),this.__update()});r.__name__=["lime","graphics","utils","_ImageDataUtil","ImageDataView"],(r.prototype={clip:function(t,e,n,i){this.rect.__contract(t,e,n,i),this.__update()},hasRow:function(t){return t>=0&&tthis.__priorities[a])return this.__listeners.splice(a,0,t),this.__priorities.splice(a,0,n),void this.__repeat.splice(a,0,!e)}this.__listeners.push(t),this.__priorities.push(n),this.__repeat.push(!e)},cancel:function(){this.canceled=!0},has:function(t){for(var e=0,n=this.__listeners;e=0;)r().default.compareMethods(this.__listeners[e],t)&&(this.__listeners.splice(e,1),this.__priorities.splice(e,1),this.__repeat.splice(e,1))},dispatch:function(t){this.canceled=!1;for(var e=this.__listeners,n=this.__repeat,i=0;i16,antialias:o().default.hasField(this.parent.window.config,"antialiasing")&&this.parent.window.config.antialiasing>0,depth:!o().default.hasField(this.parent.window.config,"depthBuffer")||this.parent.window.config.depthBuffer,premultipliedAlpha:!0,stencil:o().default.hasField(this.parent.window.config,"stencilBuffer")&&this.parent.window.config.stencilBuffer,preserveDrawingBuffer:!1},f=["webgl","experimental-webgl"];i&&f.unshift("webgl2");for(var d=0;d0&&t.height>0)){var e=n(11).default.get_document().createElement("canvas");return e.width=u().default.int(t.width),e.height=u().default.int(t.height),e.getContext("2d").drawImage(this.parent.window.backend.canvas,-t.x,-t.y),n(56).default.fromCanvas(e)}return null},render:function(){}}).__class__=i["lime._backend.html5.HTML5Renderer"]=_,e.default=_}).call(e,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(15).default,r=n(1).default["lime.graphics.RenderContext"]={__ename__:["lime","graphics","RenderContext"],__constructs__:["OPENGL","CANVAS","DOM","FLASH","CAIRO","CONSOLE","CUSTOM","NONE"]};r.OPENGL=function(t){var e=["OPENGL",0,t];return e.__enum__=r,e.toString=i,e},r.CANVAS=function(t){var e=["CANVAS",1,t];return e.__enum__=r,e.toString=i,e},r.DOM=function(t){var e=["DOM",2,t];return e.__enum__=r,e.toString=i,e},r.NONE=["NONE",7],r.NONE.toString=i,r.NONE.__enum__=r,r.FLASH=function(t){var e=["FLASH",3,t];return e.__enum__=r,e.toString=i,e},r.CONSOLE=function(t){var e=["CONSOLE",5,t];return e.__enum__=r,e.toString=i,e},r.CAIRO=function(t){var e=["CAIRO",4,t];return e.__enum__=r,e.toString=i,e},r.CUSTOM=function(t){var e=["CUSTOM",6,t];return e.__enum__=r,e.toString=i,e},e.default=r}).call(e,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(1).default;n(2).default;function r(){return n(268)}var a=function(t,e,n){null==n&&(n=0),null!=t?(this.bufferView=t,this.type=r().default.BUFFER_VIEW):null!=e?(this.buffer=e,this.type=r().default.BUFFER):this.type=r().default.VALUE,this.offset=n};a.__name__=["lime","utils","DataPointerObject"],(a.prototype={}).__class__=i["lime.utils.DataPointerObject"]=a,e.default=a}).call(e,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(15).default,r=n(1).default["lime.utils.DataPointerObjectType"]={__ename__:["lime","utils","DataPointerObjectType"],__constructs__:["BUFFER","BUFFER_VIEW","VALUE"]};r.VALUE=["VALUE",2],r.VALUE.toString=i,r.VALUE.__enum__=r,r.BUFFER=["BUFFER",0],r.BUFFER.toString=i,r.BUFFER.__enum__=r,r.BUFFER_VIEW=["BUFFER_VIEW",1],r.BUFFER_VIEW.toString=i,r.BUFFER_VIEW.__enum__=r,e.default=r}).call(e,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(1).default,r=(n(2).default,function(){});r.__name__=["lime","system","_CFFIPointer","CFFIPointer_Impl_"],(r.prototype={}).__class__=i["lime.system._CFFIPointer.CFFIPointer_Impl_"]=r,r._new=function(t){return t},r.get=function(t){return 0},r.equals=function(t,e){return r.get(t)==e},r.equalsPointer=function(t,e){return r.get(t)==r.get(e)},r.greaterThan=function(t,e){return r.get(t)>e},r.greaterThanPointer=function(t,e){return r.get(t)>r.get(e)},r.greaterThanOrEqual=function(t,e){return r.get(t)>=e},r.greaterThanOrEqualPointer=function(t,e){return r.get(t)>=r.get(e)},r.lessThan=function(t,e){return r.get(t)0&&(u.set(_++,66),u.set(_++,77),u.setInt32(_,u.get_length()),_+=4,u.setUInt16(_,0),_+=2,u.setUInt16(_,0),_+=2,u.setInt32(_,i+o),_+=4),u.setInt32(_,o),_+=4,u.setInt32(_,t.width),_+=4,u.setInt32(_,e==r().default.ICO?2*t.height:t.height),_+=4,u.setUInt16(_,1),_+=2,u.setUInt16(_,e==r().default.RGB?24:32),_+=2,u.setInt32(_,e==r().default.BITFIELD?3:0),_+=4,u.setInt32(_,l),_+=4,u.setInt32(_,11824),_+=4,u.setInt32(_,11824),_+=4,u.setInt32(_,0),_+=4,u.setInt32(_,0),_+=4,e==r().default.BITFIELD){u.setInt32(_,16711680),_+=4,u.setInt32(_,65280),_+=4,u.setInt32(_,255),_+=4,u.setInt32(_,-16777216),_+=4,u.set(_++,32),u.set(_++,110),u.set(_++,105),u.set(_++,87);for(var f=0;f<48;){f++;u.set(_++,0)}}var d,h,c,p,g=t.getPixels(new(n(41).default)(0,0,t.width,t.height),1),m=0;if(null!=e)switch(a().default.enumIndex(e)){case 0:for(var v=0,w=t.height;vthis.__priorities[a])return this.__listeners.splice(a,0,t),this.__priorities.splice(a,0,n),void this.__repeat.splice(a,0,!e)}this.__listeners.push(t),this.__priorities.push(n),this.__repeat.push(!e)},cancel:function(){this.canceled=!0},has:function(t){for(var e=0,n=this.__listeners;e=0;)r().default.compareMethods(this.__listeners[e],t)&&(this.__listeners.splice(e,1),this.__priorities.splice(e,1),this.__repeat.splice(e,1))},dispatch:function(t){this.canceled=!1;for(var e=this.__listeners,n=this.__repeat,i=0;i=65&&t<=90)return t+32;switch(t){case 16:return 1073742049;case 17:return 1073742048;case 18:return 1073742050;case 20:return 1073741881;case 33:return 1073741899;case 34:return 1073741902;case 35:return 1073741901;case 36:return 1073741898;case 37:return 1073741904;case 38:return 1073741906;case 39:return 1073741903;case 40:return 1073741905;case 45:return 1073741897;case 46:return 127;case 96:return 1073741922;case 97:return 1073741913;case 98:return 1073741914;case 99:return 1073741915;case 100:return 1073741916;case 101:return 1073741917;case 102:return 1073741918;case 103:return 1073741919;case 104:return 1073741920;case 105:return 1073741921;case 106:return 1073741909;case 107:return 1073741911;case 109:return 1073741910;case 110:return 1073741923;case 111:return 1073741908;case 112:return 1073741882;case 113:return 1073741883;case 114:return 1073741884;case 115:return 1073741885;case 116:return 1073741886;case 117:return 1073741887;case 118:return 1073741888;case 119:return 1073741889;case 120:return 1073741890;case 121:return 1073741891;case 122:return 1073741892;case 123:return 1073741893;case 124:return 1073741928;case 125:return 1073741929;case 126:return 1073741930;case 144:return 1073741907;case 186:return 59;case 187:return 61;case 188:return 44;case 189:return 45;case 190:return 46;case 191:return 47;case 192:return 96;case 219:return 91;case 220:return 92;case 221:return 93;case 222:return 39}return t},create:function(t){},exec:function(){if(a().default.get_window().addEventListener("keydown",r(this,this.handleKeyEvent),!1),a().default.get_window().addEventListener("keyup",r(this,this.handleKeyEvent),!1),a().default.get_window().addEventListener("focus",r(this,this.handleWindowEvent),!1),a().default.get_window().addEventListener("blur",r(this,this.handleWindowEvent),!1),a().default.get_window().addEventListener("resize",r(this,this.handleWindowEvent),!1),a().default.get_window().addEventListener("beforeunload",r(this,this.handleWindowEvent),!1),CanvasRenderingContext2D.prototype.isPointInStroke||(CanvasRenderingContext2D.prototype.isPointInStroke=function(t,e,n){return!1}),CanvasRenderingContext2D.prototype.isPointInPath||(CanvasRenderingContext2D.prototype.isPointInPath=function(t,e,n){return!1}),"performance"in window==0&&(window.performance={}),"now"in window.performance==0){var t=Date.now();performance.timing&&performance.timing.navigationStart&&(t=performance.timing.navigationStart),window.performance.now=function(){return Date.now()-t}}for(var e=0,n=["ms","moz","webkit","o"],i=0;i=this.nextUpdate&&(this.deltaTime=this.currentUpdate-this.lastUpdate,this.parent.onUpdate.dispatch(n(4).default.int(this.deltaTime)),null!=this.parent.get_renderer()&&null!=this.parent.get_renderer().context&&(this.parent.get_renderer().render(),this.parent.get_renderer().onRender.dispatch(),this.parent.get_renderer().onRender.canceled||this.parent.get_renderer().flip()),this.framePeriod<0?(this.nextUpdate=this.currentUpdate,this.nextUpdate=this.currentUpdate):this.nextUpdate=this.currentUpdate+this.framePeriod,this.lastUpdate=this.currentUpdate),a().default.get_window().requestAnimationFrame(r(this,this.handleApplicationEvent))},handleKeyEvent:function(t){if(null!=this.parent.get_window()){var e=this.convertKeyCode(null!=t.keyCode?t.keyCode:t.which),n=(t.shiftKey?3:0)|(t.ctrlKey?192:0)|(t.altKey?768:0)|(t.metaKey?3072:0);"keydown"==t.type?(this.parent.get_window().onKeyDown.dispatch(e,n),this.parent.get_window().onKeyDown.canceled&&t.preventDefault()):(this.parent.get_window().onKeyUp.dispatch(e,n),this.parent.get_window().onKeyUp.canceled&&t.preventDefault())}},handleWindowEvent:function(t){if(null!=this.parent.get_window())switch(t.type){case"beforeunload":t.defaultPrevented||(this.parent.get_window().onClose.dispatch(),null!=this.parent.get_window()&&this.parent.get_window().onClose.canceled&&t.preventDefault());break;case"blur":this.parent.get_window().onFocusOut.dispatch(),this.parent.get_window().onDeactivate.dispatch();break;case"focus":this.parent.get_window().onFocusIn.dispatch(),this.parent.get_window().onActivate.dispatch();break;case"resize":this.parent.get_window().backend.handleResizeEvent(t)}},setFrameRate:function(t){return this.framePeriod=t>=60?-1:t>0?1e3/t:1e3,t},updateGameDevices:function(){var t=s().default.__getDeviceData();if(null!=t)for(var e,i,r,a,l,u=0,_=t.length;u<_;){if(null!=(a=t[e=u++])){if(!this.gameDeviceCache.exists(e)){(l=new(n(278).default)).id=e,l.connected=a.connected;for(var f=0,d=a.buttons.length;f0?r.onButtonDown.dispatch(b):r.onButtonUp.dispatch(b),null!=i){switch(b){case 0:m=0;break;case 1:m=1;break;case 2:m=2;break;case 3:m=3;break;case 4:m=9;break;case 5:m=10;break;case 8:m=4;break;case 9:m=6;break;case 10:m=7;break;case 11:m=8;break;case 12:m=11;break;case 13:m=12;break;case 14:m=13;break;case 15:m=14;break;case 16:m=5;break;default:continue}v>0?i.onButtonDown.dispatch(m):i.onButtonUp.dispatch(m)}l.buttons[b]=v}}for(var x=0,E=a.axes.length;x2)throw new(r().default)("Column "+t+" out of bounds (2)");0==t?(this.a=e.x,this.c=e.y):1==t?(this.b=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.c,e.z=0):1==t?(e.x=this.b,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):1==t?(this.b=e.x,this.d=e.y):(this.tx=e.x,this.ty=e.y)},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.b,e.z=this.tx):1==t?(e.x=this.c,e.y=this.d,e.z=this.ty):e.setTo(0,0,1)},createBox:function(t,e,n,i,r){null==r&&(r=0),null==i&&(i=0),null==n&&(n=0),this.a=t,this.d=e,this.b=n,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},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},deltaTransformVector2:function(t){return new(a().default)(t.x*this.a+t.y*this.c,t.x*this.b+t.y*this.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},mult:function(t){var e=this.clone();return e.concat(t),e},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?"Matrix33d("+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)":"Matrix33d("+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"Matrix3("+this.a+", "+this.b+", "+this.c+", "+this.d+", "+this.tx+"px, "+this.ty+"px)"},toString:function(){return"Matrix3("+this.a+", "+this.b+", "+this.c+", "+this.d+", "+this.tx+", "+this.ty+")"},transformVector2:function(t){return new(a().default)(this.__transformX(t),this.__transformY(t))},translate:function(t,e){this.tx+=t,this.ty+=e},__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},__transformX:function(t){return t.x*this.a+t.y*this.c+this.tx},__transformY:function(t){return t.x*this.b+t.y*this.d+this.ty},__translateTransformed:function(t){this.tx=this.__transformX(t),this.ty=this.__transformY(t)}}).__class__=i["lime.math.Matrix3"]=o,o.__identity=new o,e.default=o}).call(e,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(1).default;n(2).default;function r(){return n(4)}var a=function(){};a.__name__=["openfl","_internal","renderer","canvas","CanvasShape"],(a.prototype={}).__class__=i["openfl._internal.renderer.canvas.CanvasShape"]=a,a.render=function(t,e){if(t.__renderable&&!(t.__worldAlpha<=0)){var i=t.__graphics;if(null!=i){n(58).default.render(i,e,t.__renderTransform);i.__bounds;var a=i.__width,s=i.__height;if(null!=i.__canvas){var o=e.context,l=t.__scrollRect;if(a>0&&s>0&&(null==l||l.width>0&&l.height>0)){e.blendModeManager.setBlendMode(t.__worldBlendMode),e.maskManager.pushObject(t),o.globalAlpha=t.__worldAlpha;var u=i.__worldTransform;if(e.roundPixels?o.setTransform(u.a,u.b,u.c,u.d,r().default.int(u.tx),r().default.int(u.ty)):o.setTransform(u.a,u.b,u.c,u.d,u.tx,u.ty),e.renderType==n(33).default.DOM){var _=1/n(68).default.scale;o.scale(_,_)}o.drawImage(i.__canvas,0,0),e.maskManager.popObject(t)}}}}},e.default=a}).call(e,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(1).default,r=function(t){this.vector=t,this.index=-1};r.__name__=["openfl","_Vector","VectorIterator"],(r.prototype={hasNext:function(){return this.index1e-11;if(n){e=1/e;var i=t[0],r=t[4],a=t[8],o=t[12],l=t[1],u=t[5],_=t[9],f=t[13],d=t[2],h=t[6],c=t[10],p=t[14],g=t[3],m=t[7],v=t[11],w=t[15];t[0]=e*(u*(c*w-p*v)-_*(h*w-p*m)+f*(h*v-c*m)),t[1]=-e*(l*(c*w-p*v)-_*(d*w-p*g)+f*(d*v-c*g)),t[2]=e*(l*(h*w-p*m)-u*(d*w-p*g)+f*(d*m-h*g)),t[3]=-e*(l*(h*v-c*m)-u*(d*v-c*g)+_*(d*m-h*g)),t[4]=-e*(r*(c*w-p*v)-a*(h*w-p*m)+o*(h*v-c*m)),t[5]=e*(i*(c*w-p*v)-a*(d*w-p*g)+o*(d*v-c*g)),t[6]=-e*(i*(h*w-p*m)-r*(d*w-p*g)+o*(d*m-h*g)),t[7]=e*(i*(h*v-c*m)-r*(d*v-c*g)+a*(d*m-h*g)),t[8]=e*(r*(_*w-f*v)-a*(u*w-f*m)+o*(u*v-_*m)),t[9]=-e*(i*(_*w-f*v)-a*(l*w-f*g)+o*(l*v-_*g)),t[10]=e*(i*(u*w-f*m)-r*(l*w-f*g)+o*(l*m-u*g)),t[11]=-e*(i*(u*v-_*m)-r*(l*v-_*g)+a*(l*m-u*g)),t[12]=-e*(r*(_*p-f*c)-a*(u*p-f*h)+o*(u*c-_*h)),t[13]=e*(i*(_*p-f*c)-a*(l*p-f*d)+o*(l*c-_*d)),t[14]=-e*(i*(u*p-f*h)-r*(l*p-f*d)+o*(l*h-u*d)),t[15]=e*(i*(u*c-_*h)-r*(l*c-_*d)+a*(l*h-u*d))}return n},s.pointAt=function(t,e,n,i){null==n&&(n=new(a().default)(0,0,-1)),null==i&&(i=new(a().default)(0,-1,0));var r,s=n.subtract(e),o=i.clone();s.normalize(),o.normalize();var l=s.clone();l.scaleBy(o.dotProduct(s)),(o=o.subtract(l)).get_length()>0?o.normalize():o=0!=s.x?new(a().default)(-s.y,s.x,0):new(a().default)(1,0,0),(r=o.crossProduct(s)).normalize(),t[0]=r.x,t[4]=r.y,t[8]=r.z,t[12]=0,t[1]=o.x,t[5]=o.y,t[9]=o.z,t[13]=0,t[2]=s.x,t[6]=s.y,t[10]=s.z,t[14]=0,t[3]=e.x,t[7]=e.y,t[11]=e.z,t[15]=1},s.prepend=function(t,e){var n=s.get(e,0),i=s.get(e,4),r=s.get(e,8),a=s.get(e,12),o=s.get(e,1),l=s.get(e,5),u=s.get(e,9),_=s.get(e,13),f=s.get(e,2),d=s.get(e,6),h=s.get(e,10),c=s.get(e,14),p=s.get(e,3),g=s.get(e,7),m=s.get(e,11),v=s.get(e,15),w=t[0],y=t[4],b=t[8],x=t[12],E=t[1],T=t[5],A=t[9],R=t[13],S=t[2],M=t[6],I=t[10],D=t[14],C=t[3],L=t[7],O=t[11],P=t[15];t[0]=n*w+o*y+f*b+p*x,t[1]=n*E+o*T+f*A+p*R,t[2]=n*S+o*M+f*I+p*D,t[3]=n*C+o*L+f*O+p*P,t[4]=i*w+l*y+d*b+g*x,t[5]=i*E+l*T+d*A+g*R,t[6]=i*S+l*M+d*I+g*D,t[7]=i*C+l*L+d*O+g*P,t[8]=r*w+u*y+h*b+m*x,t[9]=r*E+u*T+h*A+m*R,t[10]=r*S+u*M+h*I+m*D,t[11]=r*C+u*L+h*O+m*P,t[12]=a*w+_*y+c*b+v*x,t[13]=a*E+_*T+c*A+v*R,t[14]=a*S+_*M+c*I+v*D,t[15]=a*C+_*L+c*O+v*P},s.prependRotation=function(t,e,n,i){var r=s.__getAxisRotation(t,n.x,n.y,n.z,e);if(null!=i){var a=i;s.appendTranslation(r,a.x,a.y,a.z)}s.prepend(t,r)},s.prependScale=function(t,e,n,i){var r,a=[e,0,0,0,0,n,0,0,0,0,i,0,0,0,0,1];r=null!=a?new Float32Array(a):null,s.prepend(t,s._new(r))},s.prependTranslation=function(t,e,n,i){var r=s._new();s.set_position(r,new(a().default)(e,n,i)),s.prepend(t,r)},s.transformVector=function(t,e){var n=e.x,i=e.y,r=e.z;return new(a().default)(n*t[0]+i*t[4]+r*t[8]+t[12],n*t[1]+i*t[5]+r*t[9]+t[13],n*t[2]+i*t[6]+r*t[10]+t[14],n*t[3]+i*t[7]+r*t[11]+t[15])},s.transformVectors=function(t,e,n){for(var i,r,a,s=0;s+3<=e.length;)i=e[s],r=e[s+1],a=e[s+2],n[s]=i*t[0]+r*t[4]+a*t[8]+t[12],n[s+1]=i*t[1]+r*t[5]+a*t[9]+t[13],n[s+2]=i*t[2]+r*t[6]+a*t[10]+t[14],s+=3},s.transpose=function(t){var e=t[1];t[1]=t[4],t[4]=e;var n=t[2];t[2]=t[8],t[8]=n;var i=t[3];t[3]=t[12],t[12]=i;var r=t[6];t[6]=t[9],t[9]=r;var a=t[7];t[7]=t[13],t[13]=a;var s=t[11];t[11]=t[14],t[14]=s},s.__getAxisRotation=function(t,e,n,i,r){var o=s._new(),l=new(a().default)(e,n,i),u=-r*(Math.PI/180),_=Math.cos(u),f=Math.sin(u),d=1-_;s.set(o,0,_+l.x*l.x*d),s.set(o,5,_+l.y*l.y*d),s.set(o,10,_+l.z*l.z*d);var h=l.x*l.y*d,c=l.z*f;return s.set(o,4,h+c),s.set(o,1,h-c),h=l.x*l.z*d,c=l.y*f,s.set(o,8,h-c),s.set(o,2,h+c),h=l.y*l.z*d,c=l.x*f,s.set(o,9,h+c),s.set(o,6,h-c),o},s.__swap=function(t,e,n){var i=t[e];t[e]=t[n],t[n]=i},s.get_determinant=function(t){return(t[0]*t[5]-t[4]*t[1])*(t[10]*t[15]-t[14]*t[11])-(t[0]*t[9]-t[8]*t[1])*(t[6]*t[15]-t[14]*t[7])+(t[0]*t[13]-t[12]*t[1])*(t[6]*t[11]-t[10]*t[7])+(t[4]*t[9]-t[8]*t[5])*(t[2]*t[15]-t[14]*t[3])-(t[4]*t[13]-t[12]*t[5])*(t[2]*t[11]-t[10]*t[3])+(t[8]*t[13]-t[12]*t[9])*(t[2]*t[7]-t[6]*t[3])},s.get_position=function(t){return new(a().default)(t[12],t[13],t[14])},s.set_position=function(t,e){return t[12]=e.x,t[13]=e.y,t[14]=e.z,e},s.get=function(t,e){return t[e]},s.set=function(t,e,n){return t[e]=n,n},s.__identity=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],e.default=s}).call(e,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(15).default,r=n(1).default["haxe.StackItem"]={__ename__:["haxe","StackItem"],__constructs__:["CFunction","Module","FilePos","Method","LocalFunction"]};r.Module=function(t){var e=["Module",1,t];return e.__enum__=r,e.toString=i,e},r.Method=function(t,e){var n=["Method",3,t,e];return n.__enum__=r,n.toString=i,n},r.LocalFunction=function(t){var e=["LocalFunction",4,t];return e.__enum__=r,e.toString=i,e},r.FilePos=function(t,e,n){var a=["FilePos",2,t,e,n];return a.__enum__=r,a.toString=i,a},r.CFunction=["CFunction",0],r.CFunction.toString=i,r.CFunction.__enum__=r,e.default=r}).call(e,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(1).default,r=(n(2).default,n(3).default);function a(){return n(119)}var s=function(t){a().default.call(this),this.gl=t,this.setBlendMode("normal"),t.enable(t.BLEND)};s.__name__=["openfl","_internal","renderer","opengl","GLBlendModeManager"],s.__super__=a().default,(s.prototype=r(a().default.prototype,{setBlendMode:function(t){if(this.currentBlendMode!=t)switch(this.currentBlendMode=t,t){case"add":this.gl.blendEquation(this.gl.FUNC_ADD),this.gl.blendFunc(this.gl.ONE,this.gl.ONE);break;case"multiply":this.gl.blendEquation(this.gl.FUNC_ADD),this.gl.blendFunc(this.gl.DST_COLOR,this.gl.ONE_MINUS_SRC_ALPHA);break;case"screen":this.gl.blendEquation(this.gl.FUNC_ADD),this.gl.blendFunc(this.gl.ONE,this.gl.ONE_MINUS_SRC_COLOR);break;case"subtract":this.gl.blendEquation(this.gl.FUNC_REVERSE_SUBTRACT),this.gl.blendFunc(this.gl.ONE,this.gl.ONE);break;default:this.gl.blendEquation(this.gl.FUNC_ADD),this.gl.blendFunc(this.gl.ONE,this.gl.ONE_MINUS_SRC_ALPHA)}}})).__class__=i["openfl._internal.renderer.opengl.GLBlendModeManager"]=s,e.default=s}).call(e,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(1).default,r=(n(2).default,n(3).default);function a(){return n(297)}function s(){return n(19)}var o=function(t,e){a().default.call(this,e),this.renderer=t,this.gl=e.gl,this.filterDepth=0,this.matrix=new(n(28).default)};o.__name__=["openfl","_internal","renderer","opengl","GLFilterManager"],o.__super__=a().default,(o.prototype=r(a().default.prototype,{pushObject:function(t){return this.renderSession.shaderManager.defaultShader},popObject:function(t){},renderPass:function(t,e){if(null!=t&&null!=e){e.get_data().uImage0.input=t;var n=this.renderSession.allowSmoothing&&this.renderSession.upscaled;e.get_data().uImage0.smoothing=n,e.get_data().uMatrix.value=this.renderer.getMatrix(this.matrix),null!=e.get_data().uColorTransform&&(null==e.get_data().uColorTransform.value&&(e.get_data().uColorTransform.value=[]),e.get_data().uColorTransform.value[0]=!1),this.renderSession.shaderManager.setShader(e),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,t.getBuffer(this.gl,1,null)),this.gl.vertexAttribPointer(e.get_data().aPosition.index,3,this.gl.FLOAT,!1,104,s().default.fromInt(0)),this.gl.vertexAttribPointer(e.get_data().aTexCoord.index,2,this.gl.FLOAT,!1,104,s().default.fromInt(12)),this.gl.vertexAttribPointer(e.get_data().aAlpha.index,1,this.gl.FLOAT,!1,104,s().default.fromInt(20)),this.gl.drawArrays(this.gl.TRIANGLE_STRIP,0,4)}}})).__class__=i["openfl._internal.renderer.opengl.GLFilterManager"]=o,e.default=o}).call(e,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(1).default,r=function(t){this.renderSession=t};r.__name__=["openfl","_internal","renderer","AbstractFilterManager"],(r.prototype={pushObject:function(t){return null},popObject:function(t){}}).__class__=i["openfl._internal.renderer.AbstractFilterManager"]=r,e.default=r}).call(e,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(1).default,r=(n(2).default,n(3).default);function a(){return n(299)}var s=function(t){a().default.call(this),this.gl=t,this.defaultShader=new(n(122).default),this.initShader(this.defaultShader)};s.__name__=["openfl","_internal","renderer","opengl","GLShaderManager"],s.__super__=a().default,(s.prototype=r(a().default.prototype,{initShader:function(t){return null!=t?(null==t.gl&&(t.gl=this.gl,t.__init()),t):this.defaultShader},setShader:function(t){if(this.currentShader!=t){if(null!=this.currentShader&&this.currentShader.__disable(),null==t)return this.currentShader=null,void this.gl.useProgram(null);this.currentShader=t,this.initShader(t),this.gl.useProgram(t.glProgram),this.currentShader.__enable()}},updateShader:function(t){null!=this.currentShader&&this.currentShader.__update()}})).__class__=i["openfl._internal.renderer.opengl.GLShaderManager"]=s,e.default=s}).call(e,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(1).default,r=function(){};r.__name__=["openfl","_internal","renderer","AbstractShaderManager"],(r.prototype={initShader:function(t){return t},setShader:function(t){},updateShader:function(t){}}).__class__=i["openfl._internal.renderer.AbstractShaderManager"]=r,e.default=r}).call(e,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(1).default;n(2).default;function r(){return n(49)}function a(){return n(23)}var s=function(){};s.__name__=["lime","utils","GLUtils"],(s.prototype={}).__class__=i["lime.utils.GLUtils"]=s,s.compileShader=function(t,e){var n=r().default.createShader(e);if(r().default.shaderSource(n,t),r().default.compileShader(n),0==r().default.getShaderParameter(n,35713)){var i;switch(e){case 35632:i="Error compiling fragment shader";break;case 35633:i="Error compiling vertex shader";break;default:i="Error compiling unknown shader type"}i+="\n"+r().default.getShaderInfoLog(n),a().default.error(i,{fileName:"GLUtils.hx",lineNumber:35,className:"lime.utils.GLUtils",methodName:"compileShader"})}return n},s.createProgram=function(t,e){var n=s.compileShader(t,35633),i=s.compileShader(e,35632),o=r().default.createProgram();if(r().default.attachShader(o,n),r().default.attachShader(o,i),r().default.linkProgram(o),0==r().default.getProgramParameter(o,35714)){var l="Unable to initialize the shader program";l+="\n"+r().default.getProgramInfoLog(o),a().default.error(l,{fileName:"GLUtils.hx",lineNumber:58,className:"lime.utils.GLUtils",methodName:"createProgram"})}return o},e.default=s}).call(e,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(1).default,r=(n(2).default,n(3).default);function a(){return n(122)}var s=function(t){null==this.__glFragmentSource&&(this.__glFragmentSource="varying vec2 vTexCoord;\n\t\t\n\t\tuniform sampler2D uImage0;\n\t\t\n\t\tvoid main(void) {\n\t\t\t\n\t\t\tvec4 color = texture2D (uImage0, vTexCoord);\n\t\t\t\n\t\t\tif (color.a == 0.0) {\n\t\t\t\t\n\t\t\t\tdiscard;\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\tgl_FragColor = color;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}"),null==this.__glVertexSource&&(this.__glVertexSource="attribute vec4 aPosition;\n\t\tattribute vec2 aTexCoord;\n\t\tvarying vec2 vTexCoord;\n\t\t\n\t\tuniform mat4 uMatrix;\n\t\t\n\t\tvoid main(void) {\n\t\t\t\n\t\t\tvTexCoord = aTexCoord;\n\t\t\t\n\t\t\tgl_Position = uMatrix * aPosition;\n\t\t\t\n\t\t}"),a().default.call(this,t)};s.__name__=["openfl","_internal","renderer","opengl","GLMaskShader"],s.__super__=a().default,(s.prototype=r(a().default.prototype,{})).__class__=i["openfl._internal.renderer.opengl.GLMaskShader"]=s,e.default=s}).call(e,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(1).default;n(2).default;function r(){return n(16)}var a=function(){};a.__name__=["lime","utils","compress","Deflate"],(a.prototype={}).__class__=i["lime.utils.compress.Deflate"]=a,a.compress=function(t){var e=n(93).deflateRaw(t.getData());return r().default.ofData(e)},a.decompress=function(t){var e=n(93).inflateRaw(t.getData());return r().default.ofData(e)},e.default=a}).call(e,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(1).default,r=function(){};r.__name__=["lime","utils","compress","LZMA"],(r.prototype={}).__class__=i["lime.utils.compress.LZMA"]=r,r.compress=function(t){return null},r.decompress=function(t){return null},e.default=r}).call(e,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(1).default;n(2).default;function r(){return n(16)}var a=function(){};a.__name__=["lime","utils","compress","Zlib"],(a.prototype={}).__class__=i["lime.utils.compress.Zlib"]=a,a.compress=function(t){var e=n(93).deflate(t.getData());return r().default.ofData(e)},a.decompress=function(t){var e=n(93).inflate(t.getData());return r().default.ofData(e)},e.default=a}).call(e,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(1).default;n(2).default;function r(){return n(4)}var a=function(){};a.__name__=["haxe","io","FPHelper"],(a.prototype={}).__class__=i["haxe.io.FPHelper"]=a,a.i32ToFloat=function(t){var e=t>>>23&255,n=8388607&t;return 0==n&&0==e?0:(1-(t>>>31<<1))*(1+Math.pow(2,-23)*n)*Math.pow(2,e-127)},a.floatToI32=function(t){if(0==t)return 0;var e=t<0?-t:t,n=Math.floor(Math.log(e)/.6931471805599453);n<-127?n=-127:n>128&&(n=128);var i=Math.round(8388608*(e/Math.pow(2,n)-1));return 8388608==i&&n<128&&(i=0,++n),(t<0?-2147483648:0)|n+127<<23|i},a.i64ToDouble=function(t,e){var n=(e>>20&2047)-1023,i=4294967296*(1048575&e)+2147483648*(t>>>31)+(2147483647&t);return 0==i&&-1023==n?0:(1-(e>>>31<<1))*(1+Math.pow(2,-52)*i)*Math.pow(2,n)},a.doubleToI64=function(t){var e=a.i64tmp;if(0==t)e.low=0,e.high=0;else if(isFinite(t)){var n=t<0?-t:t,i=Math.floor(Math.log(n)/.6931471805599453),s=Math.round(4503599627370496*(n/Math.pow(2,i)-1)),o=r().default.int(s),l=r().default.int(s/4294967296);e.low=o,e.high=(t<0?-2147483648:0)|i+1023<<20|l}else t>0?(e.low=0,e.high=2146435072):(e.low=0,e.high=-1048576);return e},a.i64tmp=new(n(54).default)(0,0),a.LN2=.6931471805599453,e.default=a}).call(e,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(1).default,r=(n(2).default,n(3).default);function a(){return n(125)}var s=function(t){a().default.call(this,t)};s.__name__=["lime","net","_HTTPRequest_lime_utils_Bytes"],s.__super__=a().default,(s.prototype=r(a().default.prototype,{fromBytes:function(t){return n(74).default.fromBytes(t)}})).__class__=i["lime.net._HTTPRequest_lime_utils_Bytes"]=s,e.default=s}).call(e,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(1).default,r=function(){};r.__name__=["lime","net","_IHTTPRequest"],(r.prototype={}).__class__=i["lime.net._IHTTPRequest"]=r,e.default=r}).call(e,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(1).default;n(2).default;function r(){return n(73)}function a(){return n(16)}function s(){return n(4)}var o=function(){};o.__name__=["lime","utils","_BytePointer","BytePointer_Impl_"],(o.prototype={}).__class__=i["lime.utils._BytePointer.BytePointer_Impl_"]=o,o._new=function(t,e){return null==e&&(e=0),new(r().default)(t,e)},o.set=function(t,e,n,i,r){null!=i&&(e=a().default.ofData(i)),null!=e||null==n?(t.bytes=e,t.offset=null!=r?r:0):(t.bytes=a().default.ofData(n.buffer),t.offset=null!=r?n.byteOffset+r:n.byteOffset)},o.__arrayGet=function(t,e){return null!=t.bytes?t.bytes.get(e+t.offset):0},o.__arraySet=function(t,e,n){return null==t.bytes&&t.bytes.set(e+t.offset,n),n},o.fromArrayBufferView=function(t){return null==t?null:new(r().default)(a().default.ofData(t.buffer),t.byteOffset)},o.fromArrayBuffer=function(t){return null==t?null:new(r().default)(a().default.ofData(t),0)},o.fromBytes=function(t){return new(r().default)(t,0)},o.fromBytesData=function(t){return null==t?new(r().default)(null,0):new(r().default)(a().default.ofData(t),0)},o.fromFile=function(t){return new(r().default)(n(74).default.fromFile(t),0)},o.fromLimeBytes=function(t){return new(r().default)(t,0)},o.toUInt8Array=function(t){var e=t.bytes.getData(),n=s().default.int(t.offset/8);return null!=e?new Uint8Array(e,n):null},o.toUInt8ClampedArray=function(t){if(null==t||null==t.bytes)return null;var e=t.bytes.getData(),n=s().default.int(t.offset/8);return null!=e?new Uint8ClampedArray(e,n):null},o.toInt8Array=function(t){if(null==t||null==t.bytes)return null;var e=t.bytes.getData(),n=s().default.int(t.offset/8);return null!=e?new Int8Array(e,n):null},o.toUInt16Array=function(t){if(null==t||null==t.bytes)return null;var e=t.bytes.getData(),n=s().default.int(t.offset/16);return null!=e?new Uint16Array(e,n):null},o.toInt16Array=function(t){if(null==t||null==t.bytes)return null;var e=t.bytes.getData(),n=s().default.int(t.offset/16);return null!=e?new Int16Array(e,n):null},o.toUInt32Array=function(t){if(null==t||null==t.bytes)return null;var e=t.bytes.getData(),n=s().default.int(t.offset/32);return null!=e?new Uint32Array(e,n):null},o.toInt32Array=function(t){if(null==t||null==t.bytes)return null;var e=t.bytes.getData(),n=s().default.int(t.offset/32);return null!=e?new Int32Array(e,n):null},o.toFloat32Array=function(t){if(null==t||null==t.bytes)return null;var e=t.bytes.getData(),n=s().default.int(t.offset/32);return null!=e?new Float32Array(e,n):null},o.toFloat64Array=function(t){if(null==t||null==t.bytes)return null;var e=t.bytes.getData(),n=s().default.int(t.offset/64);return null!=e?new Float64Array(e,n):null},e.default=o}).call(e,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(1).default;n(2).default;var r=function(){};r.__name__=["lime","graphics","cairo","_CairoImageSurface","CairoImageSurface_Impl_"],(r.prototype={}).__class__=i["lime.graphics.cairo._CairoImageSurface.CairoImageSurface_Impl_"]=r,r._new=function(t,e,n){return 0},r.create=function(t,e,n,i,r){return 0},r.fromImage=function(t){return null},r.get_data=function(t){return n(19).default.fromInt(0)},r.get_format=function(t){return 0},r.get_height=function(t){return 0},r.get_stride=function(t){return 0},r.get_width=function(t){return 0},e.default=r}).call(e,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(1).default,r=function(){};r.__name__=["lime","graphics","cairo","_CairoSurface","CairoSurface_Impl_"],(r.prototype={}).__class__=i["lime.graphics.cairo._CairoSurface.CairoSurface_Impl_"]=r,r.flush=function(t){},e.default=r}).call(e,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(1).default;n(2).default;function r(){return n(4)}var a=function(t,e,n){null==t&&(t=123),null==n&&(n=.5),this.octaves=null==e?4:e,this.baseFactor=.015625,this.seedOffset(t),this.octFreqPers(n)};a.__name__=["openfl","_internal","utils","PerlinNoise"],(a.prototype={fill:function(t,e,n,i,s){var o=e*this.baseFactor+this.iXoffset;n=n*this.baseFactor+this.iYoffset,i=i*this.baseFactor+this.iZoffset;for(var l=t.width,u=t.height,_=a.P,f=this.octaves,d=this.aOctFreq,h=this.aOctPers,c=0,p=u;c0){var i=this.clipRects[this.numClipRects-1];n.__contract(i.x,i.y,i.width,i.height)}n.height<0&&(n.height=0),n.width<0&&(n.width=0),this.currentClipRect=n,this.numClipRects++},popMask:function(){this.popRect()},popObject:function(t,e){null==e&&(e=!0),null!=t.__mask&&this.popMask(),e&&null!=t.__scrollRect&&this.popRect()},popRect:function(){this.numClipRects>0&&(this.numClipRects--,this.numClipRects>0?this.currentClipRect=this.clipRects[this.numClipRects-1]:this.currentClipRect=null)},updateClip:function(t){if(null==this.currentClipRect)t.__worldClipChanged=null!=t.__worldClip,t.__worldClip=null;else{null==t.__worldClip&&(t.__worldClip=new(s().default));var e=s().default.__pool.get(),n=o().default.__pool.get();n.copyFrom(t.__renderTransform),n.invert(),this.currentClipRect.__transform(e,n),e.equals(t.__worldClip)?t.__worldClipChanged=!1:(t.__worldClip.copyFrom(e),t.__worldClipChanged=!0),s().default.__pool.release(e),o().default.__pool.release(n)}}})).__class__=i["openfl._internal.renderer.dom.DOMMaskManager"]=l,e.default=l}).call(e,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(1).default,r=(n(2).default,n(3).default);function a(){return n(119)}var s=function(t){a().default.call(this),this.renderSession=t};s.__name__=["openfl","_internal","renderer","dom","DOMBlendModeManager"],s.__super__=a().default,(s.prototype=r(a().default.prototype,{setBlendMode:function(t){if(this.currentBlendMode!=t&&(this.currentBlendMode=t,null!=this.renderSession.context))switch(t){case"add":this.renderSession.context.globalCompositeOperation="lighter";break;case"alpha":this.renderSession.context.globalCompositeOperation="destination-in";break;case"darken":this.renderSession.context.globalCompositeOperation="darken";break;case"difference":this.renderSession.context.globalCompositeOperation="difference";break;case"erase":this.renderSession.context.globalCompositeOperation="destination-out";break;case"hardlight":this.renderSession.context.globalCompositeOperation="hard-light";break;case"layer":this.renderSession.context.globalCompositeOperation="source-over";break;case"lighten":this.renderSession.context.globalCompositeOperation="lighten";break;case"multiply":this.renderSession.context.globalCompositeOperation="multiply";break;case"overlay":this.renderSession.context.globalCompositeOperation="overlay";break;case"screen":this.renderSession.context.globalCompositeOperation="screen";break;default:this.renderSession.context.globalCompositeOperation="source-over"}}})).__class__=i["openfl._internal.renderer.dom.DOMBlendModeManager"]=s,e.default=s}).call(e,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(1).default;n(2).default;function r(){return n(52)}var a=function(){};a.__name__=["openfl","_internal","renderer","dom","DOMShape"],(a.prototype={}).__class__=i["openfl._internal.renderer.dom.DOMShape"]=a,a.clear=function(t,e){null!=t.__canvas&&(e.element.removeChild(t.__canvas),t.__canvas=null,t.__style=null)},a.render=function(t,e){var i=t.__graphics;if(null!=t.stage&&t.__worldVisible&&t.__renderable&&null!=i){if(n(58).default.render(i,e,t.__renderTransform),(i.__dirty||t.__worldAlphaChanged||t.__canvas!=i.__canvas)&&(null!=i.__canvas?t.__canvas!=i.__canvas&&(null!=t.__canvas&&e.element.removeChild(t.__canvas),t.__canvas=i.__canvas,t.__context=i.__context,r().default.initializeElement(t,t.__canvas,e)):a.clear(t,e)),null!=t.__canvas){e.maskManager.pushObject(t);var s=t.__renderTransform;t.__renderTransform=i.__worldTransform,i.__transformDirty&&(i.__transformDirty=!1,t.__renderTransformChanged=!0),r().default.updateClip(t,e),r().default.applyStyle(t,e,!0,!0,!0),t.__renderTransform=s,e.maskManager.popObject(t)}}else a.clear(t,e)},e.default=a}).call(e,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(1).default;n(2).default;function r(){return n(58)}function a(){return n(19)}var s=function(){};s.__name__=["openfl","_internal","renderer","opengl","GLShape"],(s.prototype={}).__class__=i["openfl._internal.renderer.opengl.GLShape"]=s,s.render=function(t,e){if(t.__renderable&&!(t.__worldAlpha<=0)){var n=t.__graphics;if(null!=n){r().default.render(n,e,t.__renderTransform);n.__bounds;if(null!=n.__bitmap&&n.__visible){var i=e.renderer,s=e.gl;e.blendModeManager.setBlendMode(t.__worldBlendMode),e.maskManager.pushObject(t);var o=e.filterManager.pushObject(t);e.shaderManager.setShader(o),o.get_data().uImage0.input=n.__bitmap,o.get_data().uImage0.smoothing=e.allowSmoothing,o.get_data().uMatrix.value=i.getMatrix(n.__worldTransform);var l=!t.__worldColorTransform.__isDefault();null==o.get_data().uColorTransform.value&&(o.get_data().uColorTransform.value=[]),o.get_data().uColorTransform.value[0]=l,e.shaderManager.updateShader(o),s.bindBuffer(s.ARRAY_BUFFER,n.__bitmap.getBuffer(s,t.__worldAlpha,t.__worldColorTransform)),s.vertexAttribPointer(o.get_data().aPosition.index,3,s.FLOAT,!1,104,a().default.fromInt(0)),s.vertexAttribPointer(o.get_data().aTexCoord.index,2,s.FLOAT,!1,104,a().default.fromInt(12)),s.vertexAttribPointer(o.get_data().aAlpha.index,1,s.FLOAT,!1,104,a().default.fromInt(20)),s.vertexAttribPointer(o.get_data().aColorMultipliers0.index,4,s.FLOAT,!1,104,a().default.fromInt(24)),s.vertexAttribPointer(o.get_data().aColorMultipliers1.index,4,s.FLOAT,!1,104,a().default.fromInt(40)),s.vertexAttribPointer(o.get_data().aColorMultipliers2.index,4,s.FLOAT,!1,104,a().default.fromInt(56)),s.vertexAttribPointer(o.get_data().aColorMultipliers3.index,4,s.FLOAT,!1,104,a().default.fromInt(72)),s.vertexAttribPointer(o.get_data().aColorOffsets.index,4,s.FLOAT,!1,104,a().default.fromInt(88)),s.drawArrays(s.TRIANGLE_STRIP,0,4),e.filterManager.popObject(t),e.maskManager.popObject(t)}}}},s.renderMask=function(t,e){var i=t.__graphics;if(null!=i){r().default.render(i,e,t.__renderTransform);i.__bounds;if(null!=i.__bitmap){var s=e.renderer,o=e.gl,l=n(59).default.maskShader;e.shaderManager.setShader(l),l.get_data().uImage0.input=i.__bitmap,l.get_data().uImage0.smoothing=e.allowSmoothing,l.get_data().uMatrix.value=s.getMatrix(i.__worldTransform),e.shaderManager.updateShader(l),o.bindBuffer(o.ARRAY_BUFFER,i.__bitmap.getBuffer(o,t.__worldAlpha,t.__worldColorTransform)),o.vertexAttribPointer(l.get_data().aPosition.index,3,o.FLOAT,!1,104,a().default.fromInt(0)),o.vertexAttribPointer(l.get_data().aTexCoord.index,2,o.FLOAT,!1,104,a().default.fromInt(12)),o.drawArrays(o.TRIANGLE_STRIP,0,4)}}},e.default=s}).call(e,n(0))},function(t,e,n){t.exports=n(44)},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.BitmapDataChannel=t.exports.default={ALPHA:8,BLUE:4,GREEN:2,RED:1}},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.BlendMode=t.exports.default={ADD:"add",ALPHA:"alpha",DARKEN:"darken",DIFFERENCE:"difference",ERASE:"erase",HARDLIGHT:"hardlight",INVERT:"invert",LAYER:"layer",LIGHTEN:"lighten",MULTIPLY:"multiply",NORMAL:"normal",OVERLAY:"overlay",SCREEN:"screen",SHADER:"shader",SUBTRACT:"subtract"}},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.CapsStyle=t.exports.default={NONE:"none",ROUND:"round",SQUARE:"square"}},function(t,e,n){t.exports=n(36)},function(t,e,n){t.exports=n(96)},function(t,e,n){t.exports=n(324)},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(1).default,r=(n(2).default,n(3).default);function a(){return n(97)}function s(){return n(52)}var o=function(t){a().default.call(this),this.__element=t};o.__name__=["openfl","display","DOMSprite"],o.__super__=a().default,(o.prototype=r(a().default.prototype,{__renderDOM:function(t){null!=this.stage&&this.__worldVisible&&this.__renderable?(this.__active||(s().default.initializeElement(this,this.__element,t),this.__active=!0),s().default.updateClip(this,t),s().default.applyStyle(this,t,!0,!0,!0)):this.__active&&(t.element.removeChild(this.__element),this.__active=!1),a().default.prototype.__renderDOM.call(this,t)}})).__class__=i["openfl.display.DOMSprite"]=o,e.default=o}).call(e,n(0))},function(t,e,n){t.exports=n(326)},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(1).default,r=(n(2).default,n(8).default),a=n(3).default;function s(){return n(130)}var o=function(t,e,i){null==i&&(i=0),null==e&&(e=10),null==t&&(t=10),s().default.call(this),this.set_x(t),this.set_y(e),this.currentFPS=0,this.set_selectable(!1),this.mouseEnabled=!1,this.set_defaultTextFormat(new(n(135).default)("_sans",12,i)),this.set_text("FPS: "),this.cacheCount=0,this.times=[],this.addEventListener("enterFrame",r(this,this.this_onEnterFrame))};o.__name__=["openfl","display","FPS"],o.__super__=s().default,(o.prototype=a(s().default.prototype,{this_onEnterFrame:function(t){var e=n(26).default.stamp();for(this.times.push(e);this.times[0]=0?r().default.codePointCount(t,0,i):-1},s.uLastIndexOf=function(t,e,n){null==n&&(n=t.length-1);var i=t.lastIndexOf(e,r().default.offsetByCodePoints(t,0,n));return i>=0?r().default.codePointCount(t,0,i):-1},s.uSplit=function(t,e){if(0==e.length){for(var n=[],i=new(a().default)(t,0,t.length);i.hasNext();){var s=i.next();n.push(r().default.charAt(t,s))}return n}return t.split(e)},s.uSubstr=function(t,e,n){var i=r().default.offsetByCodePoints(t,e>=0?0:t.length,e),a=null==n?t.length:n<0?i:r().default.offsetByCodePoints(t,i,n);return t.substring(i,a)},s.uSubstring=function(t,e,n){var i=e<0?0:r().default.offsetByCodePoints(t,0,e),a=null==n?t.length:n<0?0:r().default.offsetByCodePoints(t,0,n);return t.substring(i,a)},s.uIterator=function(t){return new(n(330).default)(t)},s.uCompare=function(t,e){for(var n=new(a().default)(t,0,t.length),i=new(a().default)(e,0,e.length);n.hasNext()&&i.hasNext();){var s=r().default.codePointAt(t,n.next()),o=r().default.codePointAt(e,i.next());if(so)return 1}return i.hasNext()?-1:n.hasNext()?1:0},s.uToString=function(t){return r().default.fromCodePoints(t)},s.uAddChar=function(t,e){n(133).default.encode_code_point(function(e){t.addChar(e)},e)},e.default=s}).call(e,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(1).default,r=(n(2).default,n(132).default);function a(){return n(99)}function s(){return n(31)}function o(){return n(133)}function l(){return n(12)}function u(){return n(7)}var _=function(){};_.__name__=["lime","text","unifill","_Utf16","Utf16_Impl_"],(_.prototype={}).__class__=i["lime.text.unifill._Utf16.Utf16_Impl_"]=_,_.fromCodePoint=function(t){if(t<=65535)return String.fromCharCode(t);var e=a().default.encodeHighSurrogate(t),n=a().default.encodeLowSurrogate(t);return String.fromCharCode(e)+String.fromCharCode(n)},_.fromCodePoints=function(t){for(var e=new(s().default),n=r(t)();n.hasNext();){var i=n.next();o().default.encode_code_point(function(t){e.addChar(t)},i)}return e.toString()},_.fromString=function(t){return t},_.fromArray=function(t){for(var e=new(s().default),n=0;n=0){for(var i=e,r=t.length,a=0;a1&&n.splice(1,n.get_length()-1),t=l.__regexEntities[3].replace(t,"<"),t=l.__regexEntities[4].replace(t,">");var u=n.get(0);return u.format=e,u.start=0,u.end=t.length,t}n.splice(0,n.get_length()),t="";for(var _=0,f=r.length;_"),r[d]=i}for(var h,c=[e.clone()],p=!1,g=0;g"),b=y+1,x=m.indexOf(" "),E=m.substring(w?1:0,x>-1&&x0&&(t+="\n",p=!0),b-1){switch(E.toLowerCase()){case"a":l.__regexHref.match(m)&&(v.url=l.__getAttributeMatch(l.__regexHref));break;case"b":v.bold=!0;break;case"em":case"i":v.italic=!0;break;case"font":if(l.__regexFace.match(m)&&(v.font=l.__getAttributeMatch(l.__regexFace)),l.__regexColor.match(m)&&(v.color=o().default.parseInt("0x"+l.__getAttributeMatch(l.__regexColor))),l.__regexSize.match(m)){var T=l.__getAttributeMatch(l.__regexSize),A=a().default.cca(T,0);if(43==A||45==A){var R=c.length>=2?c[c.length-2]:e;v.size=R.size+o().default.parseInt(T)}else v.size=o().default.parseInt(T)}break;case"p":n.get_length()>0&&!p&&(t+="\n"),l.__regexAlign.match(m)&&(v.align=l.__getAttributeMatch(l.__regexAlign).toLowerCase());break;case"textformat":if(l.__regexBlockIndent.match(m)&&(v.blockIndent=o().default.parseInt(l.__getAttributeMatch(l.__regexBlockIndent))),l.__regexIndent.match(m)&&(v.indent=o().default.parseInt(l.__getAttributeMatch(l.__regexIndent))),l.__regexLeading.match(m)&&(v.leading=o().default.parseInt(l.__getAttributeMatch(l.__regexLeading))),l.__regexLeftMargin.match(m)&&(v.leftMargin=o().default.parseInt(l.__getAttributeMatch(l.__regexLeftMargin))),l.__regexRightMargin.match(m)&&(v.rightMargin=o().default.parseInt(l.__getAttributeMatch(l.__regexRightMargin))),l.__regexTabStops.match(m)){for(var S=l.__getAttributeMatch(l.__regexTabStops).split(" "),M=[],I=0;I","gi"),l.__regexBlockIndent=new(r().default)("blockindent=(\"([^\"]+)\"|'([^']+)')","i"),l.__regexColor=new(r().default)("color=(\"#([^\"]+)\"|'#([^']+)')","i"),l.__regexEntities=[new(r().default)(""","g"),new(r().default)("'","g"),new(r().default)("&","g"),new(r().default)("<","g"),new(r().default)(">","g"),new(r().default)(" ","g")],l.__regexFace=new(r().default)("face=(\"([^\"]+)\"|'([^']+)')","i"),l.__regexHTMLTag=new(r().default)("<.*?>","g"),l.__regexHref=new(r().default)("href=(\"([^\"]+)\"|'([^']+)')","i"),l.__regexIndent=new(r().default)(" indent=(\"([^\"]+)\"|'([^']+)')","i"),l.__regexLeading=new(r().default)("leading=(\"([^\"]+)\"|'([^']+)')","i"),l.__regexLeftMargin=new(r().default)("leftmargin=(\"([^\"]+)\"|'([^']+)')","i"),l.__regexRightMargin=new(r().default)("rightmargin=(\"([^\"]+)\"|'([^']+)')","i"),l.__regexSize=new(r().default)("size=(\"([^\"]+)\"|'([^']+)')","i"),l.__regexTabStops=new(r().default)("tabstops=(\"([^\"]+)\"|'([^']+)')","i"),e.default=l}).call(e,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(1).default;n(2).default;function r(){return n(131)}function a(){return n(11)}function s(){return n(4)}function o(){return n(12)}function l(){return n(138)}var u=function(){};u.__name__=["openfl","_internal","renderer","canvas","CanvasTextField"],(u.prototype={}).__class__=i["openfl._internal.renderer.canvas.CanvasTextField"]=u,u.render=function(t,e,i){var _=t.__textEngine,f=_.bounds,d=t.__graphics;if(t.__dirty&&(t.__updateLayout(),null==d.__bounds&&(d.__bounds=new(n(14).default)),d.__bounds.copyFrom(f)),d.__update(),t.__dirty||d.__dirty){var h=d.__width,c=d.__height;if((null!=_.text&&!r().default.equals(_.text,"")||_.background||_.border||_.__hasFocus||"input"==_.type&&_.selectable)&&(!(_.width<=0||_.height<=0)||"none"==_.autoSize)){null==t.__graphics.__canvas&&(t.__graphics.__canvas=a().default.get_document().createElement("canvas"),t.__graphics.__context=t.__graphics.__canvas.getContext("2d")),u.context=d.__context;var p=d.__renderTransform;if(e.renderType==n(33).default.DOM){var g=n(68).default.scale;d.__canvas.width=s().default.int(h*g),d.__canvas.height=s().default.int(c*g),d.__canvas.style.width=h+"px",d.__canvas.style.height=c+"px",u.context.setTransform(p.a*g,p.b*g,p.c*g,p.d*g,p.tx*g,p.ty*g)}else d.__canvas.width=h,d.__canvas.height=c,u.context.setTransform(p.a,p.b,p.c,p.d,p.tx,p.ty);if(null==u.clearRect&&(u.clearRect="undefined"!=typeof navigator&&void 0!==navigator.isCocoonJS),u.clearRect&&u.context.clearRect(0,0,d.__canvas.width,d.__canvas.height),null!=_.text&&""!=_.text||_.__hasFocus){var m=_.text;if(!e.allowSmoothing||"advanced"==_.antiAliasType&&400==_.sharpness?(d.__context.mozImageSmoothingEnabled=!1,d.__context.msImageSmoothingEnabled=!1,d.__context.imageSmoothingEnabled=!1):(d.__context.mozImageSmoothingEnabled=!0,d.__context.msImageSmoothingEnabled=!0,d.__context.imageSmoothingEnabled=!0),_.border||_.background){if(u.context.rect(.5,.5,f.width-1,f.height-1),_.background){var v=o().default.hex(16777215&_.backgroundColor,6);u.context.fillStyle="#"+v,u.context.fill()}if(_.border){u.context.lineWidth=1;var w=o().default.hex(16777215&_.borderColor,6);u.context.strokeStyle="#"+w,u.context.stroke()}}u.context.textBaseline="top",u.context.textAlign="start";for(var y,b=-t.get_scrollH(),x=0,E=0,T=t.get_scrollV()-1;Et.get_scrollV()+_.bottomScrollV-2)break;if(D.format.underline){u.context.beginPath(),u.context.strokeStyle="#000000",u.context.lineWidth=.5;var C=D.offsetX+b,L=D.offsetY+R+x+D.ascent;u.context.moveTo(C,L),u.context.lineTo(C+D.width,L),u.context.stroke()}u.context.font=l().default.getFont(D.format);var O=o().default.hex(16777215&D.format.color,6);if(u.context.fillStyle="#"+O,S&&(R=.185*D.format.size),null!=t.__filters&&t.__filters.length>0&&s().default.is(t.__filters[0],n(100).default)){var P=t.__filters[0],F=u.context.globalAlpha,B=P.get_alpha();u.context.globalAlpha=F*B;var N=o().default.hex(16777215&P.get_color(),6);u.context.strokeStyle="#"+N;var k=P.get_blurX(),U=P.get_blurY();u.context.lineWidth=Math.max(k,U),u.context.strokeText(r().default.substring(m,D.startIndex,D.endIndex),D.offsetX+b,D.offsetY+R+x),u.context.strokeStyle=null,u.context.globalAlpha=F}if(u.context.fillText(r().default.substring(m,D.startIndex,D.endIndex),D.offsetX+b,D.offsetY+R+x),t.__caretIndex>-1&&_.selectable)if(t.__selectionIndex==t.__caretIndex){if(t.__showCursor&&D.startIndex<=t.__caretIndex&&D.endIndex>=t.__caretIndex){y=0;for(var G=0,j=t.__caretIndex-D.startIndex;G=t.__caretIndex||D.startIndex<=t.__selectionIndex&&D.endIndex>=t.__selectionIndex||D.startIndex>t.__caretIndex&&D.endIndext.__selectionIndex&&D.endIndexZ&&(Z=D.startIndex),D.endIndex=r().default.get_length(_.text)?(K=t.getCharBoundaries(r().default.get_length(_.text)-1)).x+=K.width+2:K=t.getCharBoundaries(Q),null!=q&&null!=K&&(u.context.fillStyle="#000000",u.context.fillRect(q.x+b,q.y+x,K.x-q.x,D.height),u.context.fillStyle="#FFFFFF",u.context.fillText(r().default.substring(m,Z,Q),b+q.x,D.offsetY+R+x))}}}}else{if(_.border||_.background){if(_.border?u.context.rect(.5,.5,f.width-1,f.height-1):u.context.rect(0,0,f.width,f.height),_.background){var J=o().default.hex(16777215&_.backgroundColor,6);u.context.fillStyle="#"+J,u.context.fill()}if(_.border){u.context.lineWidth=1,u.context.lineCap="square";var $=o().default.hex(16777215&_.borderColor,6);u.context.strokeStyle="#"+$,u.context.stroke()}}if(t.__caretIndex>-1&&_.selectable&&t.__showCursor){for(var tt=-t.get_scrollH(),et=0,nt=0,it=t.get_scrollV()-1;nt"),n.style.setProperty("font",s().default.getFont(t.__textFormat),null),n.style.setProperty("pointer-events","none",null),n.style.position="absolute",n.style.top="110%",a().default.get_document().body.appendChild(n)),e.__measuredWidth=n.clientWidth,null==t.__div&&(n.style.width=o().default.string(e.width-4)+"px"),e.__measuredHeight=n.clientHeight,null==t.__div&&a().default.get_document().body.removeChild(n)},_.render=function(t,e){var i=t.__textEngine;if(null!=t.stage&&t.__worldVisible&&t.__renderable){if(t.__dirty||t.__renderTransformChanged||null==t.__div)if(""!=i.text||i.background||i.border||"input"==i.type){null==t.__div&&(t.__div=a().default.get_document().createElement("div"),l().default.initializeElement(t,t.__div,e),t.__style.setProperty("outline","none",null),t.__div.addEventListener("input",function(e){if(e.preventDefault(),t.get_htmlText()!=t.__div.innerHTML){t.set_htmlText(t.__div.innerHTML);t.__displayAsPassword;t.__dirty=!1}},!0)),i.wordWrap?t.__style.setProperty("word-wrap","break-word",null):t.__style.setProperty("white-space","nowrap",null),t.__style.setProperty("overflow","hidden",null),i.selectable?(t.__style.setProperty("cursor","text",null),t.__style.setProperty("-webkit-user-select","text",null),t.__style.setProperty("-moz-user-select","text",null),t.__style.setProperty("-ms-user-select","text",null),t.__style.setProperty("-o-user-select","text",null)):t.__style.setProperty("cursor","inherit",null),t.__div.contentEditable="input"==i.type;var f=t.__style;i.background?f.setProperty("background-color","#"+u().default.hex(16777215&i.backgroundColor,6),null):f.removeProperty("background-color");var d=i.width,h=i.height,c=1,p=t.__textFormat.size,g=p,m=t.__renderTransform;1==m.a&&1==m.d||(m.a==m.d?(c=m.a,m.a=m.d=1):m.a>m.d?(c=m.a,m.d/=m.a,m.a=1):(c=m.d,m.a/=m.d,m.d=1),g*=c,d=Math.ceil(d*c),h=Math.ceil(h*c)),t.__textFormat.size=g;var v=i.text,w=0;if(t.__isHTML){for(var y=v;_.__regexFont.match(y);){var b=_.__regexFont.matched(0),x="";if(_.__regexFace.match(b)&&(x+="font-family:'"+_.__getAttributeMatch(_.__regexFace)+"';"),_.__regexColor.match(b)&&(x+="color:#"+_.__getAttributeMatch(_.__regexColor)+";"),_.__regexSize.match(b)){var E=_.__getAttributeMatch(_.__regexSize),T=n(7).default.cca(E,0);w=o().default.parseFloat(E)*c,x+="font-size:"+(43==T||45==T?g+w:w)+"px;"}v=u().default.replace(v,b,""),y=_.__regexFont.matchedRight()}v=_.__regexCloseFont.replace(v,"")}else v=u().default.htmlEscape(v);v=u().default.replace(v,"

"),t.__div.innerHTML=new(r().default)("\n","g").replace(t.__div.innerHTML,"
"),t.__div.innerHTML=new(r().default)("\r","g").replace(t.__div.innerHTML,"
"),f.setProperty("font",s().default.getFont(t.__textFormat),null),t.__textFormat.size=p,t.__textFormat.leading=A,f.setProperty("top","3px",null),i.border?(f.setProperty("border","solid 1px #"+u().default.hex(16777215&i.borderColor,6),null),t.__renderTransform.translate(-1,-1),t.__renderTransformChanged=!0,t.__transformDirty=!0):""!=f.border&&(f.removeProperty("border"),t.__renderTransformChanged=!0),f.setProperty("color","#"+u().default.hex(16777215&t.__textFormat.color,6),null),f.setProperty("width",d+"px",null),f.setProperty("height",h+"px",null),t.__textFormat.align){case"center":f.setProperty("text-align","center",null);break;case"right":f.setProperty("text-align","right",null);break;default:f.setProperty("text-align","left",null)}t.__dirty=!1}else null!=t.__div&&(e.element.removeChild(t.__div),t.__div=null);if(null!=t.__div){var R=e.roundPixels;e.roundPixels=!0,l().default.updateClip(t,e),l().default.applyStyle(t,e,!0,!0,!0),e.roundPixels=R}}else _.clear(t,e)},_.__getAttributeMatch=function(t){return null!=t.matched(2)?t.matched(2):t.matched(3)},_.__regexColor=new(r().default)("color=(\"#([^\"]+)\"|'#([^']+)')","i"),_.__regexFace=new(r().default)("face=(\"([^\"]+)\"|'([^']+)')","i"),_.__regexFont=new(r().default)("]+)>","gi"),_.__regexCloseFont=new(r().default)("","gi"),_.__regexSize=new(r().default)("size=(\"([^\"]+)\"|'([^']+)')","i"),e.default=_}).call(e,n(0))},function(t,e,n){t.exports=n(188)},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.GradientType=t.exports.default={LINEAR:"linear",RADIAL:"radial"}},function(t,e,n){t.exports=n(69)},function(t,e,n){t.exports=n(166)},function(t,e,n){t.exports=n(169)},function(t,e,n){t.exports=n(168)},function(t,e,n){t.exports=n(164)},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.GraphicsPathCommand=t.exports.default={CUBIC_CURVE_TO:6,CURVE_TO:3,LINE_TO:2,MOVE_TO:1,NO_OP:0,WIDE_LINE_TO:5,WIDE_MOVE_TO:4}},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.GraphicsPathWinding=t.exports.default={EVEN_ODD:"evenOdd",NON_ZERO:"nonZero"}},function(t,e,n){t.exports=n(167)},function(t,e,n){t.exports=n(170)},function(t,e,n){t.exports=n(112)},function(t,e,n){t.exports=n(51)},function(t,e,n){t.exports=n(72)},function(t,e,n){t.exports=n(165)},function(t,e,n){t.exports=n(171)},function(t,e,n){t.exports=n(75)},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.InterpolationMethod=t.exports.default={LINEAR_RGB:"linearRGB",RGB:"rgb"}},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.JointStyle=t.exports.default={BEVEL:"bevel",MITER:"miter",ROUND:"round"}},function(t,e,n){t.exports=n(178)},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.LineScaleMode=t.exports.default={HORIZONTAL:"horizontal",NONE:"none",NORMAL:"normal",VERTICAL:"vertical"}},function(t,e,n){t.exports=n(367)},function(module,exports,__webpack_require__){(function(global){var $global="undefined"!=typeof window?window:void 0!==global?global:"undefined"!=typeof self?self:this;$global.Object.defineProperty(exports,"__esModule",{value:!0});var __map_reserved={},$hxClasses=__webpack_require__(1).default,$import=__webpack_require__(2).default,$bind=__webpack_require__(8).default,$extend=__webpack_require__(3).default;function openfl_display_DisplayObjectContainer(){return __webpack_require__(96)}function openfl__$internal_Lib(){return __webpack_require__(34)}function openfl_Lib(){return __webpack_require__(25)}function StringTools(){return __webpack_require__(12)}function openfl_display_BitmapData(){return __webpack_require__(44)}function openfl_net_URLLoader(){return __webpack_require__(79)}function openfl_utils_Assets(){return __webpack_require__(201)}function openfl_events_Event(){return __webpack_require__(9)}function openfl_events_IOErrorEvent(){return __webpack_require__(101)}function Std(){return __webpack_require__(4)}function openfl_display_Bitmap(){return __webpack_require__(89)}function openfl_events_ProgressEvent(){return __webpack_require__(53)}function lime_utils_AssetManifest(){return __webpack_require__(103)}function haxe_io_Path(){return __webpack_require__(80)}function lime_utils_AssetLibrary(){return __webpack_require__(137)}function openfl_utils_AssetLibrary(){return __webpack_require__(202)}function openfl_display_Sprite(){return __webpack_require__(97)}function openfl_display_LoaderInfo(){return __webpack_require__(139)}var Loader=function(){openfl_display_DisplayObjectContainer().default.call(this),this.contentLoaderInfo=openfl_display_LoaderInfo().default.create(this),this.uncaughtErrorEvents=this.contentLoaderInfo.uncaughtErrorEvents};Loader.__name__=["openfl","display","Loader"],Loader.__super__=openfl_display_DisplayObjectContainer().default,Loader.prototype=$extend(openfl_display_DisplayObjectContainer().default.prototype,{close:function(){openfl__$internal_Lib().default.notImplemented({fileName:"Loader.hx",lineNumber:59,className:"openfl.display.Loader",methodName:"close"})},load:function(t,e){if(this.contentLoaderInfo.loaderURL=openfl_Lib().default.get_current().get_loaderInfo().url,this.contentLoaderInfo.url=t.url,this.__unloaded=!1,null==t.contentType||""==t.contentType){var n="";this.__path=t.url;var i=this.__path.indexOf("?");for(i>-1&&(this.__path=this.__path.substring(0,i));StringTools().default.endsWith(this.__path,"/");)this.__path=this.__path.substring(0,this.__path.length-1);StringTools().default.endsWith(this.__path,".bundle")&&(this.__path+="/library.json",t.url=i>-1?this.__path+t.url.substring(i):this.__path);var r,a=this.__path.lastIndexOf(".");switch(a>-1&&(n=this.__path.substring(a+1)),n){case"gif":r="image/gif";break;case"jpeg":case"jpg":r="image/jpeg";break;case"js":r="application/javascript";break;case"json":r="application/json";break;case"png":r="image/png";break;case"swf":r="application/x-shockwave-flash";break;default:r="application/x-www-form-urlencoded"}this.contentLoaderInfo.contentType=r}else this.contentLoaderInfo.contentType=t.contentType;if(this.contentLoaderInfo.contentType.indexOf("image/")>-1&&"GET"==t.method&&(null==t.requestHeaders||0==t.requestHeaders.length)&&null==t.userAgent)openfl_display_BitmapData().default.loadFromFile(t.url).onComplete($bind(this,this.BitmapData_onLoad)).onError($bind(this,this.BitmapData_onError)).onProgress($bind(this,this.BitmapData_onProgress));else{var s=new(openfl_net_URLLoader().default);s.dataFormat="binary",(this.contentLoaderInfo.contentType.indexOf("/json")>-1||this.contentLoaderInfo.contentType.indexOf("/javascript")>-1||this.contentLoaderInfo.contentType.indexOf("/ecmascript")>-1)&&(s.dataFormat="text"),s.addEventListener("complete",$bind(this,this.loader_onComplete)),s.addEventListener("ioError",$bind(this,this.loader_onError)),s.addEventListener("progress",$bind(this,this.loader_onProgress)),s.load(t)}},loadBytes:function(t,e){openfl_display_BitmapData().default.loadFromBytes(t).onComplete($bind(this,this.BitmapData_onLoad)).onError($bind(this,this.BitmapData_onError))},unload:function(){if(!this.__unloaded){for(;this.get_numChildren()>0;)this.removeChildAt(0);null!=this.__library&&(openfl_utils_Assets().default.unloadLibrary(this.contentLoaderInfo.url),this.__library=null),this.content=null,this.contentLoaderInfo.url=null,this.contentLoaderInfo.contentType=null,this.contentLoaderInfo.content=null,this.contentLoaderInfo.bytesLoaded=0,this.contentLoaderInfo.bytesTotal=0,this.contentLoaderInfo.width=0,this.contentLoaderInfo.height=0,this.__unloaded=!0,this.contentLoaderInfo.dispatchEvent(new(openfl_events_Event().default)("unload"))}},unloadAndStop:function(t){null==t&&(t=!0),null!=this.content&&this.content.__stopAllMovieClips();for(var e=0,n=this.get_numChildren();e-1){var manifest=lime_utils_AssetManifest().default.parse(loader.data,haxe_io_Path().default.directory(this.__path));if(null==manifest)return void this.__dispatchError("Cannot parse asset manifest");var library=lime_utils_AssetLibrary().default.fromManifest(manifest);if(null==library)return void this.__dispatchError("Cannot open library");Std().default.is(library,openfl_utils_AssetLibrary().default)&&library.load().onComplete(function(t){_gthis.__library=library,openfl_utils_Assets().default.registerLibrary(_gthis.contentLoaderInfo.url,_gthis.__library),null==manifest.name||openfl_utils_Assets().default.hasLibrary(manifest.name)||openfl_utils_Assets().default.registerLibrary(manifest.name,_gthis.__library),_gthis.content=_gthis.__library.getMovieClip(""),_gthis.contentLoaderInfo.content=_gthis.content,_gthis.addChild(_gthis.content),_gthis.contentLoaderInfo.dispatchEvent(new(openfl_events_Event().default)("complete"))}).onError(function(t){_gthis.__dispatchError(t)})}else null!=this.contentLoaderInfo.contentType&&(this.contentLoaderInfo.contentType.indexOf("/javascript")>-1||this.contentLoaderInfo.contentType.indexOf("/ecmascript")>-1)?(this.content=new(openfl_display_Sprite().default),this.contentLoaderInfo.content=this.content,this.addChild(this.content),eval("(function () {"+Std().default.string(loader.data)+"})()"),this.contentLoaderInfo.dispatchEvent(new(openfl_events_Event().default)("complete"))):openfl_display_BitmapData().default.loadFromBytes(loader.data).onComplete($bind(this,this.BitmapData_onLoad)).onError($bind(this,this.BitmapData_onError))},loader_onError:function(t){t.target=this.contentLoaderInfo,this.contentLoaderInfo.dispatchEvent(t)},loader_onProgress:function(t){t.target=this.contentLoaderInfo,this.contentLoaderInfo.dispatchEvent(t)}}),Loader.prototype.__class__=$hxClasses["openfl.display.Loader"]=Loader,exports.default=Loader}).call(exports,__webpack_require__(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(1).default;n(2).default;function r(){return n(18)}function a(){return n(12)}function s(){return n(61)}var o=function(){this.__enabled=!0,this.bitmapData=new(r().default),this.font=new(r().default),this.sound=new(r().default)};o.__name__=["openfl","utils","AssetCache"],o.__interfaces__=[n(369).default],(o.prototype={clear:function(t){if(null==t)this.bitmapData=new(r().default),this.font=new(r().default),this.sound=new(r().default);else{for(var e=this.bitmapData.keys();e.hasNext();){var n=e.next();a().default.startsWith(n,t)&&this.removeBitmapData(n)}for(var i=this.font.keys();i.hasNext();){var s=i.next();a().default.startsWith(s,t)&&this.removeFont(s)}for(var o=this.sound.keys();o.hasNext();){var l=o.next();a().default.startsWith(l,t)&&this.removeSound(l)}}},getBitmapData:function(t){return this.bitmapData.get(t)},getFont:function(t){return this.font.get(t)},getSound:function(t){return this.sound.get(t)},hasBitmapData:function(t){return this.bitmapData.exists(t)},hasFont:function(t){return this.font.exists(t)},hasSound:function(t){return this.sound.exists(t)},removeBitmapData:function(t){return s().default.cache.image.remove(t),this.bitmapData.remove(t)},removeFont:function(t){return s().default.cache.font.remove(t),this.font.remove(t)},removeSound:function(t){return s().default.cache.audio.remove(t),this.sound.remove(t)},setBitmapData:function(t,e){this.bitmapData.set(t,e)},setFont:function(t,e){this.font.set(t,e)},setSound:function(t,e){this.sound.set(t,e)},get_enabled:function(){return this.__enabled},set_enabled:function(t){return this.__enabled=t}}).__class__=i["openfl.utils.AssetCache"]=o;var l=o.prototype;t.Object.defineProperty(l,"enabled",{get:function(){return this.get_enabled()},set:function(t){return this.set_enabled(t)}}),e.default=o}).call(e,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(1).default,r=function(){};r.__name__=["openfl","utils","IAssetCache"],(r.prototype={}).__class__=i["openfl.utils.IAssetCache"]=r,e.default=r}).call(e,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(1).default;n(2).default;var r=function(t,e,i,r){null==r&&(r=0),null==e&&(e=0),this.onComplete=new(n(35).default),this.buffer=t,this.offset=e,this.backend=new(n(371).default)(this),null!=i&&0!=i&&this.set_length(i),this.set_loops(r),null!=t&&this.init()};r.__name__=["lime","media","AudioSource"],(r.prototype={dispose:function(){this.backend.dispose()},init:function(){this.backend.init()},play:function(){this.backend.play()},pause:function(){this.backend.pause()},stop:function(){this.backend.stop()},get_currentTime:function(){return this.backend.getCurrentTime()},set_currentTime:function(t){return this.backend.setCurrentTime(t)},get_gain:function(){return this.backend.getGain()},set_gain:function(t){return this.backend.setGain(t)},get_length:function(){return this.backend.getLength()},set_length:function(t){return this.backend.setLength(t)},get_loops:function(){return this.backend.getLoops()},set_loops:function(t){return this.backend.setLoops(t)},get_position:function(){return this.backend.getPosition()},set_position:function(t){return this.backend.setPosition(t)}}).__class__=i["lime.media.AudioSource"]=r,e.default=r}).call(e,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(1).default,r=n(8).default;n(2).default;function a(){return n(4)}var s=function(t){this.parent=t,this.id=-1,this.gain=1,this.position=new(n(163).default)};s.__name__=["lime","_backend","html5","HTML5AudioSource"],(s.prototype={dispose:function(){},init:function(){},play:function(){if(!this.playing&&null!=this.parent.buffer){this.playing=!0;var t=this.getCurrentTime();this.completed=!1;var e=this.parent.buffer.__srcHowl._volume;this.parent.buffer.__srcHowl._volume=this.parent.get_gain(),this.id=this.parent.buffer.__srcHowl.play(),this.parent.buffer.__srcHowl._volume=e,this.setPosition(this.parent.get_position()),this.parent.buffer.__srcHowl.on("end",r(this,this.howl_onEnd),this.id),this.setCurrentTime(t)}},pause:function(){this.playing=!1,null!=this.parent.buffer&&this.parent.buffer.__srcHowl.pause(this.id)},stop:function(){this.playing=!1,null!=this.parent.buffer&&this.parent.buffer.__srcHowl.stop(this.id)},howl_onEnd:function(){if(this.playing=!1,this.loops>0)return this.loops--,this.stop(),void this.play();this.parent.buffer.__srcHowl.stop(this.id),this.completed=!0,this.parent.onComplete.dispatch()},getCurrentTime:function(){if(-1==this.id)return 0;if(this.completed)return this.getLength();if(null!=this.parent.buffer){var t=a().default.int(1e3*this.parent.buffer.__srcHowl.seek(this.id))-this.parent.offset;return t<0?0:t}return 0},setCurrentTime:function(t){if(null!=this.parent.buffer){var e=(t+this.parent.offset)/1e3;e<0&&(e=0),this.parent.buffer.__srcHowl.seek(e,this.id)}return t},getGain:function(){return this.gain},setGain:function(t){return null!=this.parent.buffer&&-1!=this.id&&this.parent.buffer.__srcHowl.volume(t,this.id),this.gain=t},getLength:function(){return 0!=this.length?this.length:null!=this.parent.buffer?a().default.int(1e3*this.parent.buffer.__srcHowl.duration()):0},setLength:function(t){return this.length=t},getLoops:function(){return this.loops},setLoops:function(t){return this.loops=t},getPosition:function(){return this.position},setPosition:function(t){return this.position.x=t.x,this.position.y=t.y,this.position.z=t.z,this.position.w=t.w,this.position}}).__class__=i["lime._backend.html5.HTML5AudioSource"]=s,e.default=s}).call(e,n(0))},function(t,e,n){t.exports=n(139)},function(t,e,n){t.exports=n(187)},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.PixelSnapping=t.exports.default={ALWAYS:"always",AUTO:"auto",NEVER:"never"}},function(t,e,n){t.exports=n(177)},function(t,e,n){t.exports=n(377)},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(1).default,r=(n(2).default,n(8).default),a=n(3).default;function s(){return n(378)}function o(){return n(25)}function l(){return n(9)}var u=function(t){s().default.call(this),this.display=t,null!=t&&(t.addEventListener("unload",r(this,this.display_onUnload)),o().default.get_current().addChild(t))};u.__name__=["openfl","display","Preloader"],u.__super__=s().default,(u.prototype=a(s().default.prototype,{start:function(){if(!this.simulateProgress)if(this.ready=!0,o().default.get_current().get_loaderInfo().__complete(),null!=this.display){var t=new(l().default)("complete",!0,!0);this.display.dispatchEvent(t),t.isDefaultPrevented()||this.display.dispatchEvent(new(l().default)("unload"))}else s().default.prototype.start.call(this)},update:function(t,e){o().default.get_current().get_loaderInfo().__update(t,e),null!=this.display&&this.display.dispatchEvent(new(n(53).default)("progress",!0,!0,t,e))},display_onUnload:function(t){null!=this.display&&(this.display.removeEventListener("unload",r(this,this.display_onUnload)),this.display.parent==o().default.get_current()&&o().default.get_current().removeChild(this.display),o().default.get_current().stage.set_focus(null),this.display=null),this.ready&&!this.simulateProgress&&s().default.prototype.start.call(this)}})).__class__=i["openfl.display.Preloader"]=u,e.default=u}).call(e,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(1).default,r=(n(2).default,n(8).default);function a(){return n(23)}function s(){return n(18)}var o=function(){this.bytesTotalCache=new(s().default),this.bytesLoadedCache2=new(s().default),this.bytesLoadedCache=new(n(57).default),this.onProgress=new(n(149).default),this.onComplete=new(n(35).default),this.bytesLoaded=0,this.bytesTotal=0,this.libraries=[],this.libraryNames=[],this.onProgress.add(r(this,this.update))};o.__name__=["lime","app","Preloader"],(o.prototype={addLibrary:function(t){this.libraries.push(t)},addLibraryName:function(t){-1==this.libraryNames.indexOf(t)&&this.libraryNames.push(t)},create:function(t){},load:function(){for(var t=this,e=0,n=this.libraries;e0&&(t.bytesTotalCache.exists(e[0])||(t.bytesTotalCache.set(e[0],i),t.bytesTotal+=i-200),n>i&&(n=i),t.bytesLoadedCache2.exists(e[0])?t.bytesLoaded+=n-t.bytesLoadedCache2.get(e[0]):t.bytesLoaded+=n,t.bytesLoadedCache2.set(e[0],n),t.simulateProgress||t.onProgress.dispatch(t.bytesLoaded,t.bytesTotal))}}(r)).onComplete(function(e){return function(n){var i=200;t.bytesTotalCache.exists(e[0])&&(i=t.bytesTotalCache.get(e[0])),t.bytesLoadedCache2.exists(e[0])?t.bytesLoaded+=i-t.bytesLoadedCache2.get(e[0]):t.bytesLoaded+=i,t.loadedAssetLibrary(e[0])}}(r)).onError(function(t){a().default.error(t,{fileName:"Preloader.hx",lineNumber:335,className:"lime.app.Preloader",methodName:"updateProgress"})})}}this.simulateProgress||this.loadedLibraries!=this.libraries.length+this.libraryNames.length||(this.preloadComplete||(this.preloadComplete=!0,a().default.verbose("Preload complete",{fileName:"Preloader.hx",lineNumber:349,className:"lime.app.Preloader",methodName:"updateProgress"})),this.start())}}).__class__=i["lime.app.Preloader"]=o,e.default=o}).call(e,n(0))},function(t,e,n){t.exports=n(122)},function(t,e,n){t.exports=n(172)},function(t,e,n){t.exports=n(173)},function(t,e,n){t.exports=n(383)},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(1).default,r=(n(2).default,n(3).default);function a(){return n(13)}var s=function(t,e,n,i){null==i&&(i=0),null==n&&(n=0),a().default.call(this),this.height=i,this.width=0,this.progress=0};s.__name__=["openfl","display","ShaderJob"],s.__super__=a().default,(s.prototype=r(a().default.prototype,{cancel:function(){},start:function(t){null==t&&(t=!1)}})).__class__=i["openfl.display.ShaderJob"]=s,e.default=s}).call(e,n(0))},function(t,e,n){t.exports=n(174)},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.ShaderParameterType=t.exports.default={BOOL:"bool",BOOL2:"bool2",BOOL3:"bool3",BOOL4:"bool4",FLOAT:"float",FLOAT2:"float2",FLOAT3:"float3",FLOAT4:"float4",INT:"int",INT2:"int2",INT3:"int3",INT4:"int4",MATRIX2X2:"matrix2x2",MATRIX2X3:"matrix2x3",MATRIX2X4:"matrix2x4",MATRIX3X2:"matrix3x2",MATRIX3X3:"matrix3x3",MATRIX3X4:"matrix3x4",MATRIX4X2:"matrix4x2",MATRIX4X3:"matrix4x3",MATRIX4X4:"matrix4x4"}},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.ClipboardFormats=t.exports.default={FAST:"fast",FULL:"full"}},function(t,e,n){t.exports=n(388)},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(1).default,r=(n(2).default,n(3).default);function a(){return n(36)}var s=function(){a().default.call(this)};s.__name__=["openfl","display","Shape"],s.__interfaces__=[n(66).default],s.__super__=a().default,(s.prototype=r(a().default.prototype,{get_graphics:function(){return null==this.__graphics&&(this.__graphics=new(n(69).default)(this)),this.__graphics}})).__class__=i["openfl.display.Shape"]=s,Object.defineProperty(s.prototype,"graphics",{get:function(){return this.get_graphics()}}),e.default=s}).call(e,n(0))},function(t,e,n){t.exports=n(390)},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(1).default,r=(n(2).default,n(8).default),a=n(3).default;function s(){return n(75)}function o(){return n(14)}function l(){return n(81)}function u(){return n(36)}var _=function(t,e,n,i){if(s().default.call(this),this.enabled=!0,this.trackAsMenu=!1,this.useHandCursor=!0,this.__upState=null!=t?t:new(u().default),this.__overState=e,this.__downState=n,this.__hitTestState=null!=i?i:new(u().default),this.addEventListener("mouseDown",r(this,this.__this_onMouseDown)),this.addEventListener("mouseOut",r(this,this.__this_onMouseOut)),this.addEventListener("mouseOver",r(this,this.__this_onMouseOver)),this.addEventListener("mouseUp",r(this,this.__this_onMouseUp)),this.__tabEnabled=!0,this.set___currentState(this.__upState),null!=_.__initSymbol){var a=_.__initSWF;this.__symbol=_.__initSymbol,_.__initSWF=null,_.__initSymbol=null,this.__fromSymbol(a,this.__symbol)}};_.__name__=["openfl","display","SimpleButton"],_.__super__=s().default,_.prototype=a(s().default.prototype,{__fromSymbol:function(t,e){this.__symbol=e,null!=e.downState&&this.set_downState(e.downState.__createObject(t)),null!=e.hitState&&this.set_hitTestState(e.hitState.__createObject(t)),null!=e.overState&&this.set_overState(e.overState.__createObject(t)),null!=e.upState&&this.set_upState(e.upState.__createObject(t))},__getBounds:function(t,e){s().default.prototype.__getBounds.call(this,t,e),null!=e&&(this.__updateTransforms(e),this.__updateChildren(!0)),this.__currentState.__getBounds(t,this.__currentState.__worldTransform),null!=e&&(this.__updateTransforms(),this.__updateChildren(!0))},__getRenderBounds:function(t,e){null==this.__scrollRect?(s().default.prototype.__getBounds.call(this,t,e),null!=e&&(this.__updateTransforms(e),this.__updateChildren(!0)),this.__currentState.__getRenderBounds(t,this.__currentState.__worldTransform),null!=e&&(this.__updateTransforms(),this.__updateChildren(!0))):s().default.prototype.__getRenderBounds.call(this,t,e)},__getCursor:function(){return this.useHandCursor&&!this.__ignoreEvent?n(76).default.POINTER:null},__hitTest:function(t,e,n,i,r,a){var s=!1;if(null!=this.get_hitTestState())this.get_hitTestState().__hitTest(t,e,n,i,r,a)&&(null!=i&&(0==i.length?i[0]=a:i[i.length-1]=a),s=!0);else if(null!=this.__currentState){if(!a.get_visible()||this.__isMask||r&&!this.mouseEnabled)return!1;if(null!=this.get_mask()&&!this.get_mask().__hitTestMask(t,e))return!1;this.__currentState.__hitTest(t,e,n,i,r,a)&&(s=r)}if(null!=i)for(;i.length>1&&i[i.length-1]==i[i.length-2];)i.pop();return s},__hitTestMask:function(t,e){var n=!1;return this.__currentState.__hitTestMask(t,e)&&(n=!0),n},__renderCairo:function(t){!this.__renderable||this.__worldAlpha<=0||null==this.__currentState||(t.maskManager.pushObject(this),this.__currentState.__renderCairo(t),t.maskManager.popObject(this))},__renderCairoMask:function(t){this.__currentState.__renderCairoMask(t)},__renderCanvas:function(t){!this.__renderable||this.__worldAlpha<=0||null==this.__currentState||(t.maskManager.pushObject(this),this.__currentState.__renderCanvas(t),t.maskManager.popObject(this))},__renderCanvasMask:function(t){var e=o().default.__pool.get();this.__getLocalBounds(e),t.context.rect(0,0,e.width,e.height),o().default.__pool.release(e),this.__currentState.__renderCanvasMask(t)},__renderDOM:function(t){t.maskManager.pushObject(this);for(var e=0,n=this.__previousStates;e-1&&this.__previousStates.splice(e,1)}null!=t&&(t.__renderParent=this,t.__setRenderDirty()),this.__setRenderDirty()}return this.__currentState=t,t},__this_onMouseDown:function(t){this.set___currentState(this.get_downState())},__this_onMouseOut:function(t){this.__ignoreEvent=!1,this.get_upState()!=this.__currentState&&this.set___currentState(this.get_upState())},__this_onMouseOver:function(t){t.buttonDown&&(this.__ignoreEvent=!0),this.get_overState()==this.__currentState||null==this.get_overState()||this.__ignoreEvent||this.set___currentState(this.get_overState())},__this_onMouseUp:function(t){this.__ignoreEvent=!1,null!=this.get_overState()?this.set___currentState(this.get_overState()):this.set___currentState(this.get_upState())}}),_.prototype.__class__=i["openfl.display.SimpleButton"]=_,Object.defineProperties(_.prototype,{downState:{get:function(){return this.get_downState()},set:function(t){return this.set_downState(t)}},hitTestState:{get:function(){return this.get_hitTestState()},set:function(t){return this.set_hitTestState(t)}},overState:{get:function(){return this.get_overState()},set:function(t){return this.set_overState(t)}},soundTransform:{get:function(){return this.get_soundTransform()},set:function(t){return this.set_soundTransform(t)}},upState:{get:function(){return this.get_upState()},set:function(t){return this.set_upState(t)}}}),e.default=_}).call(e,n(0))},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.SpreadMethod=t.exports.default={PAD:"pad",REFLECT:"reflect",REPEAT:"repeat"}},function(t,e,n){t.exports=n(97)},function(t,e,n){t.exports=n(394)},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(1).default,r=n(8).default,a=(n(2).default,n(3).default);function s(){return n(96)}function o(){return n(85)}function l(){return n(109)}function u(){return n(209)}function _(){return n(6)}function f(){return n(9)}function d(){return n(4)}function h(){return n(212)}function c(){return n(141)}function p(){return n(10)}function g(){return n(36)}function m(){return n(25)}function v(){return n(121)}function w(){return n(5)}function y(){return n(113)}function b(){return n(200)}function x(){return n(221)}function E(){return n(29)}function T(){return n(417)}function A(){return n(224)}function R(){return n(7)}function S(){return n(418)}function M(){return n(114)}function I(){return n(225)}function D(){return n(63)}var C=function(t,e,i,r,a){if(null==e&&(e=0),null==t&&(t=0),s().default.call(this),isNaN(t))this.window=t,this.set_color(e);else{null==m().default.get_current().__loaderInfo&&(m().default.get_current().__loaderInfo=n(139).default.create(null),m().default.get_current().__loaderInfo.content=m().default.get_current());var o=0==t&&0==t;this.element=n(11).default.get_document().createElement("div"),o&&(this.element.style.width="100%",this.element.style.height="100%"),null==a&&(a={}),a.width=t,a.height=e,a.element=this.element,a.resizable=o,w().default.hasField(a,"stencilBuffer")||(a.stencilBuffer=!0),w().default.hasField(a,"depthBuffer")||(a.depthBuffer=!0),w().default.hasField(a,"background")||(a.background=null),this.window=new(n(147).default)(a),this.window.stage=this;var l=new(D().default);l.create({}),l.createWindow(this.window),l.exec(),this.set_color(i)}if(this.set_name(null),this.__contentsScaleFactor=this.window.get_scale(),this.__deltaTime=0,this.__displayState="normal",this.__mouseX=0,this.__mouseY=0,this.__lastClickTime=0,this.__logicalWidth=0,this.__logicalHeight=0,this.__displayMatrix=new(n(28).default),this.__renderDirty=!0,this.__wasFullscreen=this.window.get_fullscreen(),this.stage3Ds=n(21).default._new(),this.stage3Ds.push(new(c().default)),this.__resize(),this.stage=this,this.align="topLeft",this.allowsFullScreen=!1,this.allowsFullScreenInteractive=!1,this.quality="high",this.scaleMode="noScale",this.showDefaultContextMenu=!0,this.softKeyboardRect=new(n(14).default),this.stageFocusRect=!0,this.__macKeyboard=/AppleWebKit/.test(navigator.userAgent)&&/Mobile\/\w+/.test(navigator.userAgent)||/Mac/.test(navigator.platform),this.__clearBeforeRender=!0,this.__stack=[],this.__rollOutStack=[],this.__touchData=new(n(22).default),null==m().default.get_current().stage&&this.stage.addChild(m().default.get_current()),this.window.config.resizable||this.__setLogicalSize(this.window.config.width,this.window.config.height),null!=r){g().default.__initStage=this;var u=p().default.createInstance(r,[]);this.addChild(u)}D().default.current.addModule(this)};C.__name__=["openfl","display","Stage"],C.__interfaces__=[n(146).default],C.__super__=s().default,(C.prototype=a(s().default.prototype,{addRenderer:function(t){var e=r(this,this.render),n=t;t.onRender.add(function(){e(n)});var i=r(this,this.onRenderContextLost),a=t;t.onContextLost.add(function(){i(a)});var s=r(this,this.onRenderContextRestored),o=t;t.onContextRestored.add(function(t){s(o,t)})},addWindow:function(t){if(this.window==t){var e=r(this,this.onWindowActivate),n=t;t.onActivate.add(function(){e(n)});var i=r(this,this.onWindowClose),a=t;t.onClose.add(function(){i(a)},!1,-9e3);var s=r(this,this.onWindowCreate),o=t;t.onCreate.add(function(){s(o)});var l=r(this,this.onWindowDeactivate),u=t;t.onDeactivate.add(function(){l(u)});var _=r(this,this.onWindowDropFile),f=t;t.onDropFile.add(function(t){_(f,t)});var d=r(this,this.onWindowEnter),h=t;t.onEnter.add(function(){d(h)});var c=r(this,this.onWindowFocusIn),p=t;t.onFocusIn.add(function(){c(p)});var g=r(this,this.onWindowFocusOut),m=t;t.onFocusOut.add(function(){g(m)});var v=r(this,this.onWindowFullscreen),w=t;t.onFullscreen.add(function(){v(w)});var y=r(this,this.onKeyDown),b=t;t.onKeyDown.add(function(t,e){y(b,t,e)});var x=r(this,this.onKeyUp),E=t;t.onKeyUp.add(function(t,e){x(E,t,e)});var T=r(this,this.onWindowLeave),A=t;t.onLeave.add(function(){T(A)});var R=r(this,this.onWindowMinimize),S=t;t.onMinimize.add(function(){R(S)});var M=r(this,this.onMouseDown),I=t;t.onMouseDown.add(function(t,e,n){M(I,t,e,n)});var D=r(this,this.onMouseMove),C=t;t.onMouseMove.add(function(t,e){D(C,t,e)});var L=r(this,this.onMouseMoveRelative),O=t;t.onMouseMoveRelative.add(function(t,e){L(O,t,e)});var P=r(this,this.onMouseUp),F=t;t.onMouseUp.add(function(t,e,n){P(F,t,e,n)});var B=r(this,this.onMouseWheel),N=t;t.onMouseWheel.add(function(t,e){B(N,t,e)});var k=r(this,this.onWindowMove),U=t;t.onMove.add(function(t,e){k(U,t,e)});var G=r(this,this.onWindowResize),j=t;t.onResize.add(function(t,e){G(j,t,e)});var V=r(this,this.onWindowRestore),X=t;t.onRestore.add(function(){V(X)});var W=r(this,this.onTextEdit),H=t;t.onTextEdit.add(function(t,e,n){W(H,t,e,n)});var z=r(this,this.onTextInput),Y=t;t.onTextInput.add(function(t){z(Y,t)}),t.id>-1&&this.onWindowCreate(t)}},registerModule:function(t){t.onExit.add(r(this,this.onModuleExit),!1,0),t.onUpdate.add(r(this,this.update));for(var e=o().default.devices.iterator();e.hasNext();){var n=e.next();this.__onGamepadConnect(n)}o().default.onConnect.add(r(this,this.__onGamepadConnect)),l().default.onStart.add(r(this,this.onTouchStart)),l().default.onMove.add(r(this,this.onTouchMove)),l().default.onEnd.add(r(this,this.onTouchEnd))},removeRenderer:function(t){},removeWindow:function(t){},setPreloader:function(t){},unregisterModule:function(t){t.onExit.remove(r(this,this.onModuleExit)),t.onUpdate.remove(r(this,this.update)),o().default.onConnect.remove(r(this,this.__onGamepadConnect)),l().default.onStart.remove(r(this,this.onTouchStart)),l().default.onMove.remove(r(this,this.onTouchMove)),l().default.onEnd.remove(r(this,this.onTouchEnd))},invalidate:function(){this.__invalidated=!0},localToGlobal:function(t){return t.clone()},onGamepadAxisMove:function(t,e,n){try{u().default.__onGamepadAxisMove(t,e,n)}catch(t){t instanceof _().default&&(t=t.val),this.__handleError(t)}},onGamepadButtonDown:function(t,e){try{u().default.__onGamepadButtonDown(t,e)}catch(t){t instanceof _().default&&(t=t.val),this.__handleError(t)}},onGamepadButtonUp:function(t,e){try{u().default.__onGamepadButtonUp(t,e)}catch(t){t instanceof _().default&&(t=t.val),this.__handleError(t)}},onGamepadConnect:function(t){try{u().default.__onGamepadConnect(t)}catch(t){t instanceof _().default&&(t=t.val),this.__handleError(t)}},onGamepadDisconnect:function(t){try{u().default.__onGamepadDisconnect(t)}catch(t){t instanceof _().default&&(t=t.val),this.__handleError(t)}},onJoystickAxisMove:function(t,e,n){},onJoystickButtonDown:function(t,e){},onJoystickButtonUp:function(t,e){},onJoystickConnect:function(t){},onJoystickDisconnect:function(t){},onJoystickHatMove:function(t,e,n){},onJoystickTrackballMove:function(t,e,n){},onKeyDown:function(t,e,n){null!=this.window&&this.window==t&&this.__onKey("keyDown",e,n)},onKeyUp:function(t,e,n){null!=this.window&&this.window==t&&this.__onKey("keyUp",e,n)},onModuleExit:function(t){null!=this.window&&this.__broadcastEvent(new(f().default)("deactivate"))},onMouseDown:function(t,e,n,i){if(null!=this.window&&this.window==t){var r;switch(i){case 1:r="middleMouseDown";break;case 2:r="rightMouseDown";break;default:r="mouseDown"}this.__onMouse(r,d().default.int(e*t.get_scale()),d().default.int(n*t.get_scale()),i)}},onMouseMove:function(t,e,n){null!=this.window&&this.window==t&&this.__onMouse("mouseMove",d().default.int(e*t.get_scale()),d().default.int(n*t.get_scale()),0)},onMouseMoveRelative:function(t,e,n){},onMouseUp:function(t,e,n,i){if(null!=this.window&&this.window==t){var r;switch(i){case 1:r="middleMouseUp";break;case 2:r="rightMouseUp";break;default:r="mouseUp"}this.__onMouse(r,d().default.int(e*t.get_scale()),d().default.int(n*t.get_scale()),i),this.showDefaultContextMenu||2!=i||t.onMouseUp.cancel()}},onMouseWheel:function(t,e,n){null!=this.window&&this.window==t&&this.__onMouseWheel(d().default.int(e*t.get_scale()),d().default.int(n*t.get_scale()))},onPreloadComplete:function(){},onPreloadProgress:function(t,e){},onRenderContextLost:function(t){this.__renderer=null},onRenderContextRestored:function(t,e){this.__createRenderer()},onTextEdit:function(t,e,n,i){},onTextInput:function(t,e){if(null!=this.window&&this.window==t){var i=[];null==this.__focus?this.__getInteractive(i):this.__focus.__getInteractive(i);var r=new(n(77).default)("textInput",!0,!1,e);i.length>0?(i.reverse(),this.__dispatchStack(r,i)):this.__dispatchEvent(r)}},onTouchMove:function(t){this.__onTouch("touchMove",t)},onTouchEnd:function(t){this.__primaryTouch==t&&(this.__primaryTouch=null),this.__onTouch("touchEnd",t)},onTouchStart:function(t){null==this.__primaryTouch&&(this.__primaryTouch=t),this.__onTouch("touchBegin",t)},onWindowActivate:function(t){null!=this.window&&this.window},onWindowClose:function(t){this.window==t&&(this.window=null),this.__primaryTouch=null,this.__broadcastEvent(new(f().default)("deactivate"))},onWindowCreate:function(t){null!=this.window&&this.window==t&&null!=t.renderer&&this.__createRenderer()},onWindowDeactivate:function(t){null!=this.window&&this.window},onWindowDropFile:function(t,e){},onWindowEnter:function(t){},onWindowFocusIn:function(t){null!=this.window&&this.window==t&&(this.__renderDirty=!0,this.__broadcastEvent(new(f().default)("activate")),this.set_focus(this.__cacheFocus))},onWindowFocusOut:function(t){if(null!=this.window&&this.window==t){this.__primaryTouch=null,this.__broadcastEvent(new(f().default)("deactivate"));var e=this.get_focus();this.set_focus(null),this.__cacheFocus=e}},onWindowFullscreen:function(t){null!=this.window&&this.window==t&&(this.__resize(),this.__wasFullscreen||(this.__wasFullscreen=!0,"normal"==this.__displayState&&(this.__displayState="fullScreenInteractive"),this.__dispatchEvent(new(h().default)("fullScreen",!1,!1,!1,!0))))},onWindowLeave:function(t){null!=this.window&&this.window==t&&this.__dispatchEvent(new(f().default)("mouseLeave"))},onWindowMinimize:function(t){null!=this.window&&this.window},onWindowMove:function(t,e,n){},onWindowResize:function(t,e,n){null!=this.window&&this.window==t&&(this.__renderDirty=!0,this.__resize(),this.__wasFullscreen&&!t.get_fullscreen()&&(this.__wasFullscreen=!1,this.__displayState="normal",this.__dispatchEvent(new(h().default)("fullScreen",!1,!1,!0,!0))))},onWindowRestore:function(t){null!=this.window&&this.window},render:function(t){if(null!=t.window&&t.window==this.window&&!this.__rendering){if(this.__rendering=!0,null!=this.__renderer&&(c().default.__active||this.stage3Ds.get(0).__contextRequested)&&(this.__renderer.clear(),this.__renderer.renderStage3D(),this.__renderDirty=!0),this.__broadcastEvent(new(f().default)("enterFrame")),this.__broadcastEvent(new(f().default)("frameConstructed")),this.__broadcastEvent(new(f().default)("exitFrame")),this.__invalidated&&(this.__invalidated=!1,this.__broadcastEvent(new(f().default)("render"))),this.__renderable=!0,this.__enterFrame(this.__deltaTime),this.__deltaTime=0,this.__update(!1,!0),null!=this.__renderer&&this.__renderDirty){if(c().default.__active||this.__renderer.clear(),t.type==n(33).default.CAIRO){var e=t.context;if(4==p().default.enumIndex(e))e[2]}this.__renderer.render()}else t.onRender.cancel();this.__rendering=!1}},update:function(t){this.__deltaTime=t},__broadcastEvent:function(t){if(g().default.__broadcastEvents.exists(t.type))for(var e=g().default.__broadcastEvents.get(t.type),n=0;n=0;){if(e[a].__dispatch(t),t.__isCanceled)return;--a}}}}catch(t){t instanceof _().default&&(t=t.val),this.__handleError(t)}},__dispatchTarget:function(t,e){try{return t.__dispatchEvent(e)}catch(t){return t instanceof _().default&&(t=t.val),this.__handleError(t),!1}},__drag:function(t){var e=this.__dragObject.parent;null!=e&&e.__getWorldTransform().__transformInversePoint(t);var n=t.x+this.__dragOffsetX,i=t.y+this.__dragOffsetY;null!=this.__dragBounds&&(nthis.__dragBounds.get_right()&&(n=this.__dragBounds.get_right()),ithis.__dragBounds.get_bottom()&&(i=this.__dragBounds.get_bottom())),this.__dragObject.set_x(n),this.__dragObject.set_y(i)},__getInteractive:function(t){return null!=t&&t.push(this),!0},__globalToLocal:function(t,e){return t!=e&&e.copyFrom(t),e},__handleError:function(t){var e=new(n(220).default)("uncaughtError",!0,!0,t);if(m().default.get_current().__loaderInfo.uncaughtErrorEvents.dispatchEvent(e),!e.__preventDefault){try{var i=v().default.lastException;if(null!=i&&w().default.hasField(i,"stack")&&null!=i.stack&&""!=i.stack)console.log(i.stack),t.stack=i.stack;else{var r=v().default.toString(v().default.callStack());console.log(r)}}catch(t){}throw t}},__onKey:function(t,e,i){y().default.__altKey=b().default.get_altKey(i),y().default.__commandKey=b().default.get_metaKey(i),y().default.__ctrlKey=b().default.get_ctrlKey(i),y().default.__shiftKey=b().default.get_shiftKey(i);var r=[];if(null==this.__focus?this.__getInteractive(r):this.__focus.__getInteractive(r),r.length>0){var a=x().default.__getKeyLocation(e),s=x().default.__convertKeyCode(e),o=x().default.__getCharCode(s,b().default.get_shiftKey(i)),l=new(n(222).default)(t,!0,!0,o,s,a,this.__macKeyboard?b().default.get_ctrlKey(i)||b().default.get_metaKey(i):b().default.get_ctrlKey(i),b().default.get_altKey(i),b().default.get_shiftKey(i),b().default.get_ctrlKey(i),b().default.get_metaKey(i));r.reverse(),this.__dispatchStack(l,r),l.__preventDefault&&("keyDown"==t?this.window.onKeyDown.cancel():this.window.onKeyUp.cancel())}},__onGamepadConnect:function(t){this.onGamepadConnect(t);var e=r(this,this.onGamepadAxisMove),n=t;t.onAxisMove.add(function(t,i){e(n,t,i)});var i=r(this,this.onGamepadButtonDown),a=t;t.onButtonDown.add(function(t){i(a,t)});var s=r(this,this.onGamepadButtonUp),o=t;t.onButtonUp.add(function(t){s(o,t)});var l=r(this,this.onGamepadDisconnect),u=t;t.onDisconnect.add(function(){l(u)})},__onMouse:function(t,e,i,r){if(!(r>2)){var a=E().default.__pool.get();a.setTo(e,i),this.__displayMatrix.__transformInversePoint(a),this.__mouseX=a.x,this.__mouseY=a.y;var s=[],o=null;this.__hitTest(this.__mouseX,this.__mouseY,!0,s,!0,this)?o=s[s.length-1]:(o=this,s=[this]),null==o&&(o=this);var l=null;switch(t){case"middleMouseDown":this.__mouseDownMiddle=o;break;case"middleMouseUp":this.__mouseDownMiddle==o&&(l="middleClick"),this.__mouseDownMiddle=null;break;case"mouseDown":o.__allowMouseFocus()?this.set_focus(o):this.set_focus(null),this.__mouseDownLeft=o,y().default.__buttonDown=!0;break;case"mouseUp":null!=this.__mouseDownLeft&&(y().default.__buttonDown=!1,this.__mouseX<0||this.__mouseY<0?this.__dispatchEvent(y().default.__create("releaseOutside",1,this.__mouseX,this.__mouseY,new(E().default)(this.__mouseX,this.__mouseY),this)):this.__mouseDownLeft==o&&(l="click"),this.__mouseDownLeft=null);break;case"rightMouseDown":this.__mouseDownRight=o;break;case"rightMouseUp":this.__mouseDownRight==o&&(l="rightClick"),this.__mouseDownRight=null}var u,_=E().default.__pool.get();if(this.__dispatchStack(y().default.__create(t,r,this.__mouseX,this.__mouseY,o.__globalToLocal(a,_),o),s),null!=l&&(this.__dispatchStack(y().default.__create(l,r,this.__mouseX,this.__mouseY,o.__globalToLocal(a,_),o),s),"mouseUp"==t&&n(20).default.__cast(o,n(75).default).doubleClickEnabled)){var f=m().default.getTimer();f-this.__lastClickTime<500?(this.__dispatchStack(y().default.__create("doubleClick",r,this.__mouseX,this.__mouseY,o.__globalToLocal(a,_),o),s),this.__lastClickTime=0):this.__lastClickTime=f}if("auto"==n(223).default.__cursor){var d=null;if(null!=this.__mouseDownLeft)d=this.__mouseDownLeft.__getCursor();else for(var h=0;h>>16,i=(65280&t)>>>8,r=255&t;return this.__colorSplit=[e/255,i/255,r/255],this.__colorString="#"+n(12).default.hex(16777215&t,6),this.__color=t},get_contentsScaleFactor:function(){return this.__contentsScaleFactor},get_displayState:function(){return this.__displayState},set_displayState:function(t){return null!=this.window&&("normal"==t?this.window.get_fullscreen()&&this.window.set_fullscreen(!1):this.window.get_fullscreen()||this.window.set_fullscreen(!0)),this.__displayState=t},get_focus:function(){return this.__focus},set_focus:function(t){if(t!=this.__focus){var e=this.__focus;if(this.__focus=t,this.__cacheFocus=t,null!=e){var n=new(I().default)("focusOut",!0,!1,t,!1,0),i=[];e.__getInteractive(i),i.reverse(),this.__dispatchStack(n,i)}if(null!=t){var r=new(I().default)("focusIn",!0,!1,e,!1,0),a=[];t.__getInteractive(a),a.reverse(),this.__dispatchStack(r,a)}}return t},get_frameRate:function(){return null!=this.application?this.application.get_frameRate():0},set_frameRate:function(t){return null!=this.application?this.application.set_frameRate(t):t},get_fullScreenHeight:function(){return Math.ceil(this.window.get_display().currentMode.height*this.window.get_scale())},get_fullScreenWidth:function(){return Math.ceil(this.window.get_display().currentMode.width*this.window.get_scale())},set_height:function(t){return this.get_height()},get_mouseX:function(){return this.__mouseX},get_mouseY:function(){return this.__mouseY},set_rotation:function(t){return 0},set_scaleX:function(t){return 0},set_scaleY:function(t){return 0},set_transform:function(t){return this.get_transform()},set_width:function(t){return this.get_width()},set_x:function(t){return 0},set_y:function(t){return 0}})).__class__=i["openfl.display.Stage"]=C,Object.defineProperties(C.prototype,{color:{get:function(){return this.get_color()},set:function(t){return this.set_color(t)}},contentsScaleFactor:{get:function(){return this.get_contentsScaleFactor()}},displayState:{get:function(){return this.get_displayState()},set:function(t){return this.set_displayState(t)}},focus:{get:function(){return this.get_focus()},set:function(t){return this.set_focus(t)}},frameRate:{get:function(){return this.get_frameRate()},set:function(t){return this.set_frameRate(t)}},fullScreenHeight:{get:function(){return this.get_fullScreenHeight()}},fullScreenWidth:{get:function(){return this.get_fullScreenWidth()}}}),e.default=C}).call(e,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(1).default;n(2).default;function r(){return n(5)}function a(){return n(62)}function s(){return n(37)}function o(){return n(4)}function l(){return n(19)}function u(){return n(38)}function _(){return n(6)}function f(){return n(17)}function d(){return n(43)}function h(){return n(104)}function c(){return n(142)}function p(){return n(30)}function g(){return n(141)}var m=function(){};m.__name__=["openfl","_internal","stage3D","opengl","GLContext3D"],(m.prototype={}).__class__=i["openfl._internal.stage3D.opengl.GLContext3D"]=m,m.create=function(t){var e=t.__renderSession.gl,i=new Float32Array(512);t.__vertexConstants=i;var o=new Float32Array(512);t.__fragmentConstants=o;var l,u=[1,1,1,1];l=null!=u?new Float32Array(u):null,t.__positionScale=l,t.__samplerDirty=0,t.__samplerTextures=n(21).default._new(8),t.__samplerStates=[];for(var _=0;_<8;){var f=_++;t.__samplerStates[f]=new(n(214).default)(e.LINEAR,e.LINEAR,e.CLAMP_TO_EDGE,e.CLAMP_TO_EDGE)}t.maxBackBufferHeight=t.maxBackBufferWidth=e.getParameter(e.MAX_VIEWPORT_DIMS),t.__backBufferAntiAlias=0,t.__backBufferEnableDepthAndStencil=!0,t.__backBufferWantsBestResolution=!1,t.__frameCount=0,t.__rttDepthAndStencil=!1,t.__samplerDirty=0,t.__stencilCompareMode="always",t.__stencilRef=0,t.__stencilReadMask=255;var d=e.getExtension("EXT_texture_filter_anisotropic");if(null!=d&&r().default.hasField(d,"MAX_TEXTURE_MAX_ANISOTROPY_EXT")||(d=e.getExtension("MOZ_EXT_texture_filter_anisotropic")),null!=d&&r().default.hasField(d,"MAX_TEXTURE_MAX_ANISOTROPY_EXT")||(d=e.getExtension("WEBKIT_EXT_texture_filter_anisotropic")),t.__supportsPackedDepthStencil=!0,a().default.DEPTH_STENCIL=e.DEPTH_STENCIL,t.__supportsAnisotropicFiltering=null!=d,t.__supportsAnisotropicFiltering){a().default.TEXTURE_MAX_ANISOTROPY_EXT=d.TEXTURE_MAX_ANISOTROPY_EXT;var h=e.getParameter(d.MAX_TEXTURE_MAX_ANISOTROPY_EXT);t.__maxAnisotropyTexture2D=h,t.__maxAnisotropyTexture2D=h}s().default.CheckGLError();var c=e.getParameter(e.VENDOR);s().default.CheckGLError();var p=e.getParameter(e.VERSION);s().default.CheckGLError();var g=e.getParameter(e.RENDERER);s().default.CheckGLError();var m=e.getParameter(e.SHADING_LANGUAGE_VERSION);s().default.CheckGLError(),t.driverInfo="OpenGL Vendor="+c+" Version="+p+" Renderer="+g+" GLSL="+m},m.clear=function(t,e,n,i,r,a,o,l){null==l&&(l=7),null==o&&(o=0),null==a&&(a=1),null==r&&(r=1),null==i&&(i=0),null==n&&(n=0),null==e&&(e=0);var u=t.__renderSession.gl,_=0;0!=(1&l)&&(_|=u.COLOR_BUFFER_BIT,u.clearColor(e,n,i,r),s().default.CheckGLError()),0!=(2&l)&&(_|=u.DEPTH_BUFFER_BIT,u.depthMask(!0),u.clearDepthf(a),s().default.CheckGLError()),0!=(4&l)&&(_|=u.STENCIL_BUFFER_BIT,u.clearStencil(o),s().default.CheckGLError()),u.clear(_),s().default.CheckGLError()},m.configureBackBuffer=function(t,e,n,i,r,s,o){null==o&&(o=!1),null==s&&(s=!1),null==r&&(r=!0),m.context=t,m.gl=t.__renderSession.gl,m.__updateBackbufferViewport(),t.backBufferWidth=e,t.backBufferHeight=n,t.__backBufferAntiAlias=i,t.__backBufferEnableDepthAndStencil=r,t.__backBufferWantsBestResolution=s,a().default.__stateCache.clearSettings()},m.dispose=function(t,e){null==e&&(e=!0)},m.drawToBitmapData=function(t,e){var i=t.__stage3D.__stage.window;if(null!=i){var r=i.renderer.readPixels(),a=r.height-t.backBufferHeight;e.image.copyPixels(r,new(n(41).default)(o().default.int(t.__stage3D.get_x()),o().default.int(t.__stage3D.get_y()+a),t.backBufferWidth,t.backBufferHeight),new(n(42).default))}},m.drawTriangles=function(t,e,n,i){if(null==i&&(i=-1),null==n&&(n=0),null!=t.__program){m.context=t,m.gl=t.__renderSession.gl,m.__flushSamplerState(),t.__program.__flush();var r=-1==i?e.__numIndices:3*i;m.gl.bindBuffer(m.gl.ELEMENT_ARRAY_BUFFER,e.__id),s().default.CheckGLError(),m.gl.drawElements(m.gl.TRIANGLES,r,e.__elementType,l().default.fromInt(n)),s().default.CheckGLError()}},m.present=function(t){},m.setBlendFactors=function(t,e,n){var i=a().default.__stateCache.updateBlendSrcFactor(e),r=a().default.__stateCache.updateBlendDestFactor(n);(i||r)&&(m.context=t,m.gl=t.__renderSession.gl,m.__updateBlendFactors())},m.setColorMask=function(t,e,n,i,r){t.__renderSession.gl.colorMask(e,n,i,r)},m.setCulling=function(t,e){var n=t.__renderSession.gl;if(a().default.__stateCache.updateCullingMode(e))switch(e){case"back":n.enable(n.CULL_FACE),n.cullFace(n.FRONT);break;case"front":n.enable(n.CULL_FACE),n.cullFace(n.BACK);break;case"frontAndBack":n.enable(n.CULL_FACE),n.cullFace(n.FRONT_AND_BACK);break;case"none":n.disable(n.CULL_FACE);break;default:return new(u().default)}return null},m.setDepthTest=function(t,e,n){var i=t.__renderSession.gl,r=t.__backBufferEnableDepthAndStencil;if(a().default.__stateCache.updateDepthTestEnabled(r)&&(r?i.enable(i.DEPTH_TEST):i.disable(i.DEPTH_TEST)),a().default.__stateCache.updateDepthTestMask(e)&&i.depthMask(e),a().default.__stateCache.updateDepthCompareMode(n))switch(n){case"always":i.depthFunc(i.ALWAYS);break;case"equal":i.depthFunc(i.EQUAL);break;case"greater":i.depthFunc(i.GREATER);break;case"greaterEqual":i.depthFunc(i.GEQUAL);break;case"less":i.depthFunc(i.LESS);break;case"lessEqual":i.depthFunc(i.LEQUAL);break;case"never":i.depthFunc(i.NEVER);break;case"notEqual":i.depthFunc(i.NOTEQUAL);break;default:throw new(_().default)(new(u().default))}},m.setEnableErrorChecking=function(t){s().default.debug=t},m.setProgram=function(t,e){if(a().default.__stateCache.updateProgram3D(e)){e.__use(),e.__setPositionScale(t.__positionScale),t.__program=e,t.__samplerDirty|=t.__program.__samplerUsageMask;for(var n=0;n<8;){var i=n++;t.__samplerStates[i].copyFrom(t.__program.__getSamplerState(i))}}},m.setProgramConstantsFromByteArray=function(t,e,n,i,r,a){t.__renderSession.gl;-1==i&&(i=(f().default.get_length(r)>>2)-a);for(var s="vertex"==e,l=s?t.__vertexConstants:t.__fragmentConstants,u=f().default.toBytes(r),_=f().default.get_length(r),h=null==_?new Float32Array(u.getData(),0):new Float32Array(u.getData(),0,_),c=4*n,p=o().default.int(d().default.toFloat(a)/d().default.toFloat(4)),g=0,m=4*i;g>2);for(var a="vertex"==e,s=a?t.__vertexConstants:t.__fragmentConstants,o=i,l=0,u=4*n,_=0,f=r;_8)throw new(_().default)(new(p().default)("sampler out of range"));var a=t.__renderSession.gl,s=t.__samplerStates[e];switch(n){case"clamp":s.set_wrapModeS(a.CLAMP_TO_EDGE),s.set_wrapModeT(a.CLAMP_TO_EDGE);break;case"clamp_u_repeat_y":s.set_wrapModeS(a.CLAMP_TO_EDGE),s.set_wrapModeT(a.REPEAT);break;case"repeat":s.set_wrapModeS(a.REPEAT),s.set_wrapModeT(a.REPEAT);break;case"repeat_u_clamp_y":s.set_wrapModeS(a.REPEAT),s.set_wrapModeT(a.CLAMP_TO_EDGE);break;default:throw new(_().default)(new(p().default)("wrap bad enum"))}switch(i){case"anisotropic16x":t.__supportsAnisotropicFiltering&&s.set_maxAniso(t.__maxAnisotropyTexture2D<16?t.__maxAnisotropyTexture2D:16);break;case"anisotropic2x":t.__supportsAnisotropicFiltering&&s.set_maxAniso(t.__maxAnisotropyTexture2D<2?t.__maxAnisotropyTexture2D:2);break;case"anisotropic4x":t.__supportsAnisotropicFiltering&&s.set_maxAniso(t.__maxAnisotropyTexture2D<4?t.__maxAnisotropyTexture2D:4);break;case"anisotropic8x":t.__supportsAnisotropicFiltering&&s.set_maxAniso(t.__maxAnisotropyTexture2D<8?t.__maxAnisotropyTexture2D:8);break;case"linear":s.set_magFilter(a.LINEAR),t.__supportsAnisotropicFiltering&&s.set_maxAniso(1);break;case"nearest":s.set_magFilter(a.NEAREST),t.__supportsAnisotropicFiltering&&s.set_maxAniso(1);break;default:throw new(_().default)(new(p().default)("filter bad enum"))}switch(r){case"miplinear":s.set_minFilter("nearest"==i?a.NEAREST_MIPMAP_LINEAR:a.LINEAR_MIPMAP_LINEAR);break;case"mipnearest":s.set_minFilter("nearest"==i?a.NEAREST_MIPMAP_NEAREST:a.LINEAR_MIPMAP_NEAREST);break;case"mipnone":s.set_minFilter("nearest"==i?a.NEAREST:a.LINEAR);break;default:throw new(_().default)(new(p().default)("mipfiter bad enum"))}},m.setScissorRectangle=function(t,e){m.context=t,m.gl=t.__renderSession.gl,t.__scissorRectangle=null!=e?e.clone():null,m.__updateScissorRectangle()},m.setStencilActions=function(t,e,n,i,r,a){null==a&&(a="keep"),null==r&&(r="keep"),null==i&&(i="keep"),null==n&&(n="always"),null==e&&(e="frontAndBack"),m.context=t,m.gl=t.__renderSession.gl,t.__stencilCompareMode=n,m.gl.stencilOpSeparate(m.__getGLTriangleFace(e),m.__getGLStencilAction(a),m.__getGLStencilAction(r),m.__getGLStencilAction(i)),m.gl.stencilFunc(m.__getGLCompareMode(t.__stencilCompareMode),t.__stencilRef,t.__stencilReadMask)},m.setStencilReferenceValue=function(t,e,n,i){null==i&&(i=255),null==n&&(n=255),m.context=t,m.gl=t.__renderSession.gl,t.__stencilReadMask=n,t.__stencilRef=e,m.gl.stencilFunc(m.__getGLCompareMode(t.__stencilCompareMode),t.__stencilRef,t.__stencilReadMask),m.gl.stencilMask(i)},m.setTextureAt=function(t,e,n){t.__samplerTextures.get(e)!=n&&(t.__samplerTextures.set(e,n),t.__samplerDirty|=1<0&&m.context.backBufferHeight>0&&m.__setViewport(o().default.int(m.context.__stage3D.get_x()),o().default.int(m.context.__stage3D.get_y()),m.context.backBufferWidth,m.context.backBufferHeight)},e.default=m}).call(e,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(1).default;n(2).default;function r(){return n(22)}var a=function(t){this.__formatMapAlpha=new(r().default),this.__formatMap=new(r().default),this.checkDXT(t),this.checkETC1(t),this.checkPVRTC(t)};a.__name__=["openfl","_internal","stage3D","GLCompressedTextureFormats"],(a.prototype={checkDXT:function(t){var e=t.getExtension("WEBGL_compressed_texture_s3tc");if(null!=e){var n=e.COMPRESSED_RGBA_S3TC_DXT1_EXT;this.__formatMap.set(0,n);var i=e.COMPRESSED_RGBA_S3TC_DXT5_EXT;this.__formatMapAlpha.set(0,i)}},checkETC1:function(t){var e=t.getExtension("WEBGL_compressed_texture_etc1");if(null!=e){var n=e.COMPRESSED_RGB_ETC1_WEBGL;this.__formatMap.set(2,n);var i=e.COMPRESSED_RGB_ETC1_WEBGL;this.__formatMapAlpha.set(2,i)}},checkPVRTC:function(t){var e=t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");if(null!=e){var n=e.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;this.__formatMap.set(1,n);var i=e.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;this.__formatMapAlpha.set(1,i)}},toTextureFormat:function(t,e){return t?this.__formatMapAlpha.get(e):this.__formatMap.get(e)}}).__class__=i["openfl._internal.stage3D.GLCompressedTextureFormats"]=a,e.default=a}).call(e,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(1).default;n(2).default;function r(){return n(37)}function a(){return n(19)}function s(){return n(105)}var o=function(){};o.__name__=["openfl","_internal","stage3D","opengl","GLTexture"],(o.prototype={}).__class__=i["openfl._internal.stage3D.opengl.GLTexture"]=o,o.create=function(t,e){var n=e.gl;t.__textureTarget=n.TEXTURE_2D,n.bindTexture(t.__textureTarget,t.__textureID),r().default.CheckGLError(),n.texImage2D(t.__textureTarget,0,t.__internalFormat,t.__width,t.__height,0,t.__format,n.UNSIGNED_BYTE,a().default.fromInt(0)),r().default.CheckGLError(),n.bindTexture(t.__textureTarget,null),o.uploadFromTypedArray(t,e,null)},o.uploadCompressedTextureFromByteArray=function(t,e,i,o){var l=new(n(215).default)(i,o),u=l.readHeader(t.__width,t.__height,!1),_=e.gl;_.bindTexture(t.__textureTarget,t.__textureID),r().default.CheckGLError();var f=!1;if(l.readTextures(function(e,i,o,l,d,h,c){var p=s().default.__compressedTextureFormats.toTextureFormat(u,o);if(0!=p)if(f=!0,t.__format=p,t.__internalFormat=p,u&&2==o){var g=n(4).default.int(h/2);_.compressedTexImage2D(t.__textureTarget,i,t.__internalFormat,l,d,0,g,a().default.fromBytes(c)),r().default.CheckGLError();var m=new(n(104).default)(t.__context,t.__width,t.__height,"compressed",t.__optimizeForRenderToTexture,t.__streamingLevels);m.__format=p,m.__internalFormat=p,_.bindTexture(m.__textureTarget,m.__textureID),r().default.CheckGLError();var v=m.__textureTarget,w=m.__internalFormat,y=new(n(73).default)(c,g);_.compressedTexImage2D(v,i,w,l,d,0,g,a().default.fromBytesPointer(y)),r().default.CheckGLError(),t.__alphaTexture=m}else _.compressedTexImage2D(t.__textureTarget,i,t.__internalFormat,l,d,0,h,a().default.fromBytes(c)),r().default.CheckGLError()}),!f){var d=t.__width*t.__height*4,h=null!=d?new Uint8Array(d):null;_.texImage2D(t.__textureTarget,0,t.__internalFormat,t.__width,t.__height,0,t.__format,_.UNSIGNED_BYTE,a().default.fromArrayBufferView(h)),r().default.CheckGLError()}_.bindTexture(t.__textureTarget,null),r().default.CheckGLError()},o.uploadFromBitmapData=function(t,e,i,r,a){if(null!=i){var s=t.__width>>r,l=t.__height>>r;if(0!=s||0!=l){if(0==s&&(s=1),0==l&&(l=1),i.width!=s||i.height!=l){var u=new(n(44).default)(s,l,!0,0);u.draw(i),i=u}var _=t.__getImage(i);o.uploadFromTypedArray(t,e,_.get_data(),r)}}},o.uploadFromByteArray=function(t,e,i,r,a){if(null==a&&(a=0),0!=r){var s,l=n(17).default.toArrayBuffer(i);s=null!=l?new Uint8Array(l,r):null,o.uploadFromTypedArray(t,e,s,a)}else o.uploadFromTypedArray(t,e,i.b,a)},o.uploadFromTypedArray=function(t,e,n,i){if(null==i&&(i=0),null!=n){var s=e.gl,o=t.__width>>i,l=t.__height>>i;0==o&&0==l||(0==o&&(o=1),0==l&&(l=1),s.bindTexture(t.__textureTarget,t.__textureID),r().default.CheckGLError(),s.texImage2D(t.__textureTarget,i,t.__internalFormat,o,l,0,t.__format,s.UNSIGNED_BYTE,a().default.fromArrayBufferView(n)),r().default.CheckGLError(),s.bindTexture(t.__textureTarget,null),r().default.CheckGLError())}},o.setSamplerState=function(t,e,i){if(!i.equals(t.__samplerState)){var a=e.gl;i.minFilter==a.NEAREST||i.minFilter==a.LINEAR||i.mipmapGenerated||(a.generateMipmap(a.TEXTURE_2D),r().default.CheckGLError(),i.mipmapGenerated=!0),0!=i.maxAniso&&(a.texParameterf(a.TEXTURE_2D,n(62).default.TEXTURE_MAX_ANISOTROPY_EXT,i.maxAniso),r().default.CheckGLError())}s().default.setSamplerState(t,e,i)},e.default=o}).call(e,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(1).default;n(2).default;function r(){return n(37)}var a=function(){};a.__name__=["openfl","_internal","stage3D","opengl","GLRectangleTexture"],(a.prototype={}).__class__=i["openfl._internal.stage3D.opengl.GLRectangleTexture"]=a,a.create=function(t,e){var n=e.gl;t.__textureTarget=n.TEXTURE_2D,a.uploadFromTypedArray(t,e,null)},a.uploadFromBitmapData=function(t,e,n){if(null!=n){var i=t.__getImage(n);null!=i&&a.uploadFromTypedArray(t,e,i.get_data())}},a.uploadFromByteArray=function(t,e,i,r){if(0!=r){var s,o=n(17).default.toArrayBuffer(i);s=null!=o?new Uint8Array(o,r):null,a.uploadFromTypedArray(t,e,s)}else a.uploadFromTypedArray(t,e,i.b)},a.uploadFromTypedArray=function(t,e,i){var a=e.gl;a.bindTexture(t.__textureTarget,t.__textureID),r().default.CheckGLError(),a.texImage2D(t.__textureTarget,0,t.__internalFormat,t.__width,t.__height,0,t.__format,a.UNSIGNED_BYTE,n(19).default.fromArrayBufferView(i)),r().default.CheckGLError(),a.bindTexture(t.__textureTarget,null),r().default.CheckGLError()},a.setSamplerState=function(t,e,i){if(!i.equals(t.__samplerState)){var a=e.gl;0!=i.maxAniso&&(a.texParameterf(a.TEXTURE_2D,n(62).default.TEXTURE_MAX_ANISOTROPY_EXT,i.maxAniso),r().default.CheckGLError())}n(105).default.setSamplerState(t,e,i)},e.default=a}).call(e,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(1).default;n(2).default;function r(){return n(37)}function a(){return n(105)}function s(){return n(19)}var o=function(){};o.__name__=["openfl","_internal","stage3D","opengl","GLCubeTexture"],(o.prototype={}).__class__=i["openfl._internal.stage3D.opengl.GLCubeTexture"]=o,o.create=function(t,e){var n=e.gl;t.__textureTarget=n.TEXTURE_CUBE_MAP,t.__uploadedSides=0},o.uploadCompressedTextureFromByteArray=function(t,e,i,l){var u=new(n(215).default)(i,l),_=u.readHeader(t.__size,t.__size,!0),f=e.gl;f.bindTexture(t.__textureTarget,t.__textureID),r().default.CheckGLError();var d=!1;if(u.readTextures(function(e,i,l,u,h,c,p){var g=a().default.__compressedTextureFormats.toTextureFormat(_,l);if(0!=g){d=!0;var m=o.__sideToTarget(f,e);if(t.__format=g,t.__internalFormat=g,_&&2==l){var v=n(4).default.int(c/2);f.compressedTexImage2D(m,i,t.__internalFormat,u,h,0,v,s().default.fromBytes(p)),r().default.CheckGLError();var w=new(n(106).default)(t.__context,t.__size,"compressed",t.__optimizeForRenderToTexture,t.__streamingLevels);w.__format=g,w.__internalFormat=g,f.bindTexture(w.__textureTarget,w.__textureID),r().default.CheckGLError();var y=w.__internalFormat,b=new(n(73).default)(p,v);f.compressedTexImage2D(m,i,y,u,h,0,v,s().default.fromBytesPointer(b)),r().default.CheckGLError(),t.__alphaTexture=w}else f.compressedTexImage2D(m,i,t.__internalFormat,u,h,0,c,s().default.fromBytes(p)),r().default.CheckGLError()}}),!d)for(var h=0;h<6;){var c=h++,p=t.__size*t.__size*4,g=null!=p?new Uint8Array(p):null,m=o.__sideToTarget(f,c);f.texImage2D(m,0,t.__internalFormat,t.__size,t.__size,0,t.__format,f.UNSIGNED_BYTE,s().default.fromArrayBufferView(g)),r().default.CheckGLError()}f.bindTexture(t.__textureTarget,null),r().default.CheckGLError()},o.uploadFromBitmapData=function(t,e,n,i,r,a){if(null==a&&(a=!1),null==r&&(r=0),0!=t.__size>>r){var s=t.__getImage(n);o.uploadFromTypedArray(t,e,s.get_data(),i,r)}},o.uploadFromByteArray=function(t,e,i,r,a,s){if(0!=r){var l,u=n(17).default.toArrayBuffer(i);l=null!=u?new Uint8Array(u,r):null,o.uploadFromTypedArray(t,e,l,a,s)}else o.uploadFromTypedArray(t,e,i.b,a,s)},o.uploadFromTypedArray=function(t,e,n,i,a){if(null!=n){var l=e.gl,u=t.__size>>a;if(0!=u){var _=o.__sideToTarget(l,i);l.bindTexture(l.TEXTURE_CUBE_MAP,t.__textureID),r().default.CheckGLError(),l.texImage2D(_,a,t.__internalFormat,u,u,0,t.__format,l.UNSIGNED_BYTE,s().default.fromArrayBufferView(n)),r().default.CheckGLError(),l.bindTexture(t.__textureTarget,null),r().default.CheckGLError(),t.__uploadedSides|=1<>>24&15,n.mask=t>>>16&15,n.n=65535&t,n},e.default=r}).call(e,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(1).default;n(2).default;function r(){return n(83)}function a(){return n(54)}var s=function(){};s.__name__=["openfl","_internal","stage3D","_AGALConverter","SourceRegister"],(s.prototype={toGLSL:function(t,e){if(null==e&&(e=0),null==t&&(t=!0),3==this.type)return this.programType==n(143).default.VERTEX?"gl_Position":"gl_FragColor";var i=228==this.s&&15==this.sourceMask,a="";if(5!=this.type&&!i)for(var s=0;s<4;){var o=s++;if(0!=(this.sourceMask&1<>2*o&3){case 0:a+="x";break;case 1:a+="y";break;case 2:a+="z";break;case 3:a+="w"}}var l=r().default.prefixFromType(this.type,this.programType);if(0==this.d)l+=this.n+e;else{l+=this.o;var u=String.fromCharCode(n(7).default.cca("x",0)+this.q);l+="[ int("+(r().default.prefixFromType(this.itype,this.programType)+this.n+"."+u)+") +"+e+"]"}return t&&""!=a&&(l+="."+a),l}}).__class__=i["openfl._internal.stage3D._AGALConverter.SourceRegister"]=s,s.parse=function(t,e,n){var i=new s;i.programType=e;var r,o=63;if(0==(o&=63))r=new(a().default)(t.high,t.low);else if(o<32){r=new(a().default)(t.high>>o,t.high<<32-o|t.low>>>o)}else{r=new(a().default)(t.high>>31,t.high>>o-32)}var l=new(a().default)(0,1),u=new(a().default)(r.high&l.high,r.low&l.low);i.d=u.low;var _,f=48;if(0==(f&=63))_=new(a().default)(t.high,t.low);else if(f<32){_=new(a().default)(t.high>>f,t.high<<32-f|t.low>>>f)}else{_=new(a().default)(t.high>>31,t.high>>f-32)}var d=new(a().default)(0,3),h=new(a().default)(_.high&d.high,_.low&d.low);i.q=h.low;var c,p=40;if(0==(p&=63))c=new(a().default)(t.high,t.low);else if(p<32){c=new(a().default)(t.high>>p,t.high<<32-p|t.low>>>p)}else{c=new(a().default)(t.high>>31,t.high>>p-32)}var g=new(a().default)(0,15),m=new(a().default)(c.high&g.high,c.low&g.low);i.itype=m.low;var v,w=32;if(0==(w&=63))v=new(a().default)(t.high,t.low);else if(w<32){v=new(a().default)(t.high>>w,t.high<<32-w|t.low>>>w)}else{v=new(a().default)(t.high>>31,t.high>>w-32)}var y=new(a().default)(0,15),b=new(a().default)(v.high&y.high,v.low&y.low);i.type=b.low;var x,E=24;if(0==(E&=63))x=new(a().default)(t.high,t.low);else if(E<32){x=new(a().default)(t.high>>E,t.high<<32-E|t.low>>>E)}else{x=new(a().default)(t.high>>31,t.high>>E-32)}var T=new(a().default)(0,255),A=new(a().default)(x.high&T.high,x.low&T.low);i.s=A.low;var R,S=16;if(0==(S&=63))R=new(a().default)(t.high,t.low);else if(S<32){R=new(a().default)(t.high>>S,t.high<<32-S|t.low>>>S)}else{R=new(a().default)(t.high>>31,t.high>>S-32)}var M=new(a().default)(0,255),I=new(a().default)(R.high&M.high,R.low&M.low);i.o=I.low;var D=new(a().default)(0,65535),C=new(a().default)(t.high&D.high,t.low&D.low);return i.n=C.low,i.sourceMask=n,i},e.default=s}).call(e,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(1).default;n(2).default;function r(){return n(6)}function a(){return n(38)}function s(){return n(54)}var o=function(){};o.__name__=["openfl","_internal","stage3D","_AGALConverter","SamplerRegister"],(o.prototype={toGLSL:function(){return n(83).default.prefixFromType(this.type,this.programType)+this.n},toSamplerState:function(){var t=0,e=0,i=0,s=0;switch(this.f){case 0:t=9728;break;case 1:t=9729;break;default:throw new(r().default)(new(a().default))}switch(this.m){case 0:e=0!=this.f?9729:9728;break;case 1:e=0!=this.f?9985:9984;break;case 2:e=0!=this.f?9987:9986;break;default:throw new(r().default)(new(a().default))}switch(this.w){case 0:i=33071,s=33071;break;case 1:i=10497,s=10497;break;default:throw new(r().default)(new(a().default))}var o=4==(4&this.s),l=1==(1&this.s),u=2==this.t,_=(this.b<<24>>24)/8;return new(n(214).default)(e,t,i,s,_,0,o,l,!1,u)}}).__class__=i["openfl._internal.stage3D._AGALConverter.SamplerRegister"]=o,o.parse=function(t,e){var n=new o;n.programType=e;var i,r=60;if(0==(r&=63))i=new(s().default)(t.high,t.low);else if(r<32){i=new(s().default)(t.high>>r,t.high<<32-r|t.low>>>r)}else{i=new(s().default)(t.high>>31,t.high>>r-32)}var a=new(s().default)(0,15),l=new(s().default)(i.high&a.high,i.low&a.low);n.f=l.low;var u,_=56;if(0==(_&=63))u=new(s().default)(t.high,t.low);else if(_<32){u=new(s().default)(t.high>>_,t.high<<32-_|t.low>>>_)}else{u=new(s().default)(t.high>>31,t.high>>_-32)}var f=new(s().default)(0,15),d=new(s().default)(u.high&f.high,u.low&f.low);n.m=d.low;var h,c=52;if(0==(c&=63))h=new(s().default)(t.high,t.low);else if(c<32){h=new(s().default)(t.high>>c,t.high<<32-c|t.low>>>c)}else{h=new(s().default)(t.high>>31,t.high>>c-32)}var p=new(s().default)(0,15),g=new(s().default)(h.high&p.high,h.low&p.low);n.w=g.low;var m,v=48;if(0==(v&=63))m=new(s().default)(t.high,t.low);else if(v<32){m=new(s().default)(t.high>>v,t.high<<32-v|t.low>>>v)}else{m=new(s().default)(t.high>>31,t.high>>v-32)}var w=new(s().default)(0,15),y=new(s().default)(m.high&w.high,m.low&w.low);n.s=y.low;var b,x=44;if(0==(x&=63))b=new(s().default)(t.high,t.low);else if(x<32){b=new(s().default)(t.high>>x,t.high<<32-x|t.low>>>x)}else{b=new(s().default)(t.high>>31,t.high>>x-32)}var E=new(s().default)(0,15),T=new(s().default)(b.high&E.high,b.low&E.low);n.d=T.low;var A,R=40;if(0==(R&=63))A=new(s().default)(t.high,t.low);else if(R<32){A=new(s().default)(t.high>>R,t.high<<32-R|t.low>>>R)}else{A=new(s().default)(t.high>>31,t.high>>R-32)}var S=new(s().default)(0,15),M=new(s().default)(A.high&S.high,A.low&S.low);n.t=M.low;var I,D=32;if(0==(D&=63))I=new(s().default)(t.high,t.low);else if(D<32){I=new(s().default)(t.high>>D,t.high<<32-D|t.low>>>D)}else{I=new(s().default)(t.high>>31,t.high>>D-32)}var C=new(s().default)(0,15),L=new(s().default)(I.high&C.high,I.low&C.low);n.type=L.low;var O,P=16;if(0==(P&=63))O=new(s().default)(t.high,t.low);else if(P<32){O=new(s().default)(t.high>>P,t.high<<32-P|t.low>>>P)}else{O=new(s().default)(t.high>>31,t.high>>P-32)}var F=new(s().default)(0,255),B=new(s().default)(O.high&F.high,O.low&F.low);n.b=B.low;var N=new(s().default)(0,65535),k=new(s().default)(t.high&N.high,t.low&N.low);return n.n=k.low,n},e.default=o}).call(e,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(1).default;n(2).default;var r=function(t){this.gl=t,this.isDirty=!0;var e=new(n(73).default)(null,0);this.regDataPointer=e};r.__name__=["openfl","display3D","Uniform"],(r.prototype={flush:function(){n(217).default.flushUniform(this,this.gl)}}).__class__=i["openfl.display3D.Uniform"]=r,e.default=r}).call(e,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(1).default,r=n(132).default,a=function(){};a.__name__=["Lambda"],(a.prototype={}).__class__=i.Lambda=a,a.array=function(t){for(var e=[],n=r(t)();n.hasNext();){var i=n.next();e.push(i)}return e},e.default=a}).call(e,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(1).default;n(2).default;var r=function(t){this.__uniforms=t,this.__uniforms.sort(function(t,e){return n(5).default.compare(t.regIndex,e.regIndex)});for(var e=0,i=0,r=this.__uniforms;ie&&(e=a.regIndex+a.regCount)}this.__registerLookup=n(21).default._new(e);for(var s=0,o=this.__uniforms;sthis.__registerLookup.get_length()&&(n=this.__registerLookup.get_length());for(var i=t;ithis.__tiles.get_length()&&--e}return this.__tiles.insertAt(e,t),t.parent=this,this.__tileArrayDirty=!0,this.numTiles++,this.__setRenderDirty(),t},addTiles:function(t){for(var e=0;e-1},getTileAt:function(t){if(t>=0&&tthis.__tiles.get_length()&&this.numTiles--,this.numTiles<=0&&null!=this.__tileArray&&this.__tileArray.set_length(0),this.__setRenderDirty()}return t},removeTileAt:function(t){return t>=0&&tthis.__tiles.get_length()-1&&(e=this.__tiles.get_length()-1);for(var n=this.__tiles.splice(t,e-t+1),i=0;i0&&o>0&&s<=this.__width&&o<=this.__height&&(null==i||r||i.push(a),!0)},__renderCairo:function(t){},__renderCanvas:function(t){this.__updateCacheBitmap(t,!this.__worldColorTransform.__isDefault()),null==this.__cacheBitmap||this.__cacheBitmapRender?(n(158).default.render(this,t),n(229).default.render(this,t)):n(115).default.render(this.__cacheBitmap,t)},__renderDOM:function(t){this.__updateCacheBitmap(t,!this.__worldColorTransform.__isDefault()),null==this.__cacheBitmap||this.__cacheBitmapRender?(n(179).default.render(this,t),l().default.render(this,t)):(this.__renderDOMClear(t),this.__cacheBitmap.stage=this.stage,n(95).default.render(this.__cacheBitmap,t))},__renderDOMClear:function(t){l().default.clear(this,t)},__renderFlash:function(){n(430).default.render(this)},__renderGL:function(t){this.__updateCacheBitmap(t,!1),null==this.__cacheBitmap||this.__cacheBitmapRender?(_().default.render(this,t),f().default.render(this,t)):u().default.render(this.__cacheBitmap,t)},__renderGLMask:function(t){this.__updateCacheBitmap(t,!1),null==this.__cacheBitmap||this.__cacheBitmapRender?(_().default.renderMask(this,t),f().default.renderMask(this,t)):u().default.renderMask(this.__cacheBitmap,t)},__updateCacheBitmap:function(t,e){return null!=this.get_filters()&&a().default.prototype.__updateCacheBitmap.call(this,t,e)},__updateTileArray:function(){if(this.__tiles.get_length()>0){var t;null==this.__tileArray&&(this.__tileArray=new(s().default)),this.__tileArray.set_length(this.numTiles);for(var e=0,n=this.__tiles.get_length();e0?(null==t.__canvas&&(t.__canvas=n(11).default.get_document().createElement("canvas"),t.__context=t.__canvas.getContext("2d"),r().default.initializeElement(t,t.__canvas,e)),t.__canvas.width=t.__width,t.__canvas.height=t.__height,t.__context.globalAlpha=t.__worldAlpha,e.context=t.__context,n(229).default.render(t,e),e.context=null,r().default.updateClip(t,e),r().default.applyStyle(t,e,!0,!1,!0)):a.clear(t,e)},e.default=a}).call(e,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(1).default;n(2).default;var r=function(){};r.__name__=["openfl","_internal","renderer","flash","FlashTilemap"],(r.prototype={}).__class__=i["openfl._internal.renderer.flash.FlashTilemap"]=r,r.render=function(t){},r.defaultColorTransform=new(n(40).default),r.destPoint=new(n(29).default),r.sourceRect=new(n(14).default),e.default=r}).call(e,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(1).default;n(2).default;function r(){return n(14)}function a(){return n(19)}var s=function(){};s.__name__=["openfl","_internal","renderer","opengl","GLTilemap"],(s.prototype={}).__class__=i["openfl._internal.renderer.opengl.GLTilemap"]=s,s.render=function(t,e){if(t.__renderable&&!(t.__worldAlpha<=0)&&(t.__updateTileArray(),null!=t.__tileArray&&0!=t.__tileArray.get_length())){var n=e.renderer,i=e.gl;e.blendModeManager.setBlendMode(t.__worldBlendMode),e.maskManager.pushObject(t),e.filterManager.pushObject(t);var s=e.shaderManager.initShader(t.shader),o=n.getMatrix(t.__renderTransform),l=e.allowSmoothing&&t.smoothing,u=r().default.__pool.get();u.setTo(0,0,t.__width,t.__height),e.maskManager.pushRect(u,t.__renderTransform);var _=t.__tileArray,f=s,d=t.__tileset;_.__updateGLBuffer(i,d,t.__worldAlpha,t.__worldColorTransform),i.vertexAttribPointer(s.get_data().aPosition.index,2,i.FLOAT,!1,100,a().default.fromInt(0)),i.vertexAttribPointer(s.get_data().aTexCoord.index,2,i.FLOAT,!1,100,a().default.fromInt(8)),i.vertexAttribPointer(s.get_data().aAlpha.index,1,i.FLOAT,!1,100,a().default.fromInt(16)),i.vertexAttribPointer(s.get_data().aColorMultipliers0.index,4,i.FLOAT,!1,100,a().default.fromInt(20)),i.vertexAttribPointer(s.get_data().aColorMultipliers1.index,4,i.FLOAT,!1,100,a().default.fromInt(36)),i.vertexAttribPointer(s.get_data().aColorMultipliers2.index,4,i.FLOAT,!1,100,a().default.fromInt(52)),i.vertexAttribPointer(s.get_data().aColorMultipliers3.index,4,i.FLOAT,!1,100,a().default.fromInt(68)),i.vertexAttribPointer(s.get_data().aColorOffsets.index,4,i.FLOAT,!1,100,a().default.fromInt(84));var h=null,c=null,p=0,g=_.__bufferSkipped,m=_.__length;_.position=0;for(var v,w=null,y=!1,b=0,x=m+1;b=0?new(r().default)(this.__data[t].x,this.__data[t].y,this.__data[t].width,this.__data[t].height):null},get_bitmapData:function(){return this.__bitmapData},set_bitmapData:function(t){this.__bitmapData=t;for(var e=0,n=this.__data;e0&&(t+=".bind("+l+")")}try{o=n(145).default.eval(t)}catch(t){return null}return n(152).default.TFunction!=n(10).default.typeof(o)?null:null==e?o():null==i?o(e):null==r?o(e,i):null==a?o(e,i,r):null==s?o(e,i,r,a):o(e,i,r,a,s)},a.available=!0,a.marshallExceptions=!1,e.default=a}).call(e,n(0))},function(t,e,n){t.exports={BitmapFilter:n(500).default,BitmapFilterQuality:n(501).default,BitmapFilterType:n(502).default,BlurFilter:n(503).default,ColorMatrixFilter:n(504).default,DropShadowFilter:n(505).default,GlowFilter:n(506).default}},function(t,e,n){t.exports=n(78)},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.BitmapFilterQuality=t.exports.default={HIGH:3,MEDIUM:2,LOW:1}},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.BitmapFilterType=t.exports.default={FULL:"full",INNER:"inner",OUTER:"outer"}},function(t,e,n){t.exports=n(189)},function(t,e,n){t.exports=n(190)},function(t,e,n){t.exports=n(191)},function(t,e,n){t.exports=n(100)},function(t,e,n){t.exports={ColorTransform:n(508).default,Matrix:n(509).default,Matrix3D:n(510).default,Orientation3D:n(511).default,PerspectiveProjection:n(512).default,Point:n(514).default,Rectangle:n(515).default,Transform:n(516).default,Utils3D:n(517).default,Vector3D:n(519).default}},function(t,e,n){t.exports=n(40)},function(t,e,n){t.exports=n(28)},function(t,e,n){t.exports=n(127)},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.Orientation3D=t.exports.default={AXIS_ANGLE:"axisAngle",EULER_ANGLES:"eulerAngles",QUATERNION:"quaternion"}},function(t,e,n){t.exports=n(513)},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(1).default;n(2).default;function r(){return n(25)}var a=function(){this.__fieldOfView=0,this.focalLength=0,this.matrix3D=new(n(127).default),this.projectionCenter=new(n(29).default)(r().default.get_current().stage.stageWidth/2,r().default.get_current().stage.stageHeight/2)};a.__name__=["openfl","geom","PerspectiveProjection"],(a.prototype={toMatrix3D:function(){if(null==this.projectionCenter)return null;var t=this.matrix3D.rawData;return t.set(0,this.focalLength),t.set(5,this.focalLength),t.set(11,1),t.set(15,0),this.matrix3D},get_fieldOfView:function(){return this.__fieldOfView},set_fieldOfView:function(t){var e=.017453292519943295*t;this.__fieldOfView=e;var n=1/Math.tan(e/2);return this.focalLength=r().default.get_current().stage.stageWidth*(r().default.get_current().stage.stageWidth/r().default.get_current().stage.stageHeight)/2*n,this.__fieldOfView}}).__class__=i["openfl.geom.PerspectiveProjection"]=a,Object.defineProperty(a.prototype,"fieldOfView",{get:function(){return this.get_fieldOfView()},set:function(t){return this.set_fieldOfView(t)}}),a.TO_RADIAN=.017453292519943295,e.default=a}).call(e,n(0))},function(t,e,n){t.exports=n(29)},function(t,e,n){t.exports=n(14)},function(t,e,n){t.exports=n(181)},function(t,e,n){t.exports=n(518)},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(1).default;n(2).default;var r=function(){};r.__name__=["openfl","geom","Utils3D"],(r.prototype={}).__class__=i["openfl.geom.Utils3D"]=r,r.projectVector=function(t,e){var i=t.rawData,r=new(n(128).default);r.x=e.x*i.get(0)+e.y*i.get(4)+e.z*i.get(8)+i.get(12),r.y=e.x*i.get(1)+e.y*i.get(5)+e.z*i.get(9)+i.get(13),r.z=e.x*i.get(2)+e.y*i.get(6)+e.z*i.get(10)+i.get(14);var a=e.x*i.get(3)+e.y*i.get(7)+e.z*i.get(11)+i.get(15);return r.z/=a,r.x/=a,r.y/=a,r},r.projectVectors=function(t,e,n,i){if(e.get_length()%3==0)for(var r,a,s,o,l,u,_,f=t.rawData,d=0;d0&&o>0&&s<=this.__width&&o<=this.__height&&(null==i||r||i.push(a),!0)},__hitTestMask:function(t,e){var n=l().default.__pool.get();n.setTo(t,e),this.__globalToLocal(n,n);var i=n.x>0&&n.y>0&&n.x<=this.__width&&n.y<=this.__height;return l().default.__pool.release(n),i},__renderCanvas:function(t){n(529).default.render(this,t)},__renderDOM:function(t){n(530).default.render(this,t)},__renderGL:function(t){u().default.render(this,t)},__renderGLMask:function(t){u().default.renderMask(this,t)},get_height:function(){return this.__height*this.get_scaleY()},set_height:function(t){return 1==this.get_scaleY()&&t==this.__height||(this.__setTransformDirty(),this.__dirty=!0),this.set_scaleY(1),this.__height=t},get_videoHeight:function(){return null!=this.__stream?_().default.int(this.__stream.__video.videoHeight):0},get_videoWidth:function(){return null!=this.__stream?_().default.int(this.__stream.__video.videoWidth):0},get_width:function(){return this.__width*this.__scaleX},set_width:function(t){return 1==this.__scaleX&&this.__width==t||(this.__setTransformDirty(),this.__dirty=!0),this.set_scaleX(1),this.__width=t}})).__class__=i["openfl.media.Video"]=f,Object.defineProperties(f.prototype,{videoHeight:{get:function(){return this.get_videoHeight()}},videoWidth:{get:function(){return this.get_videoWidth()}}}),f.__bufferStride=26,e.default=f}).call(e,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(1).default;n(2).default;function r(){return n(4)}var a=function(){};a.__name__=["openfl","_internal","renderer","canvas","CanvasVideo"],(a.prototype={}).__class__=i["openfl._internal.renderer.canvas.CanvasVideo"]=a,a.render=function(t,e){if(t.__renderable&&!(t.__worldAlpha<=0)&&null!=t.__stream){var n=e.context;if(null!=t.__stream.__video){e.blendModeManager.setBlendMode(t.__worldBlendMode),e.maskManager.pushObject(t),n.globalAlpha=t.__worldAlpha;var i=t.__worldTransform,a=t.__scrollRect,s=t.smoothing;e.roundPixels?n.setTransform(i.a,i.b,i.c,i.d,r().default.int(i.tx),r().default.int(i.ty)):n.setTransform(i.a,i.b,i.c,i.d,i.tx,i.ty),s||(n.mozImageSmoothingEnabled=!1,n.msImageSmoothingEnabled=!1,n.imageSmoothingEnabled=!1),null==a?n.drawImage(t.__stream.__video,0,0,t.get_width(),t.get_height()):n.drawImage(t.__stream.__video,a.x,a.y,a.width,a.height,a.x,a.y,a.width,a.height),s||(n.mozImageSmoothingEnabled=!0,n.msImageSmoothingEnabled=!0,n.imageSmoothingEnabled=!0),e.maskManager.popObject(t)}}},e.default=a}).call(e,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(1).default;n(2).default;function r(){return n(52)}function a(){return n(4)}var s=function(){};s.__name__=["openfl","_internal","renderer","dom","DOMVideo"],(s.prototype={}).__class__=i["openfl._internal.renderer.dom.DOMVideo"]=s,s.clear=function(t,e){t.__active&&(e.element.removeChild(t.__stream.__video),t.__active=!1)},s.render=function(t,e){null!=t.stage&&null!=t.__stream&&t.__worldVisible&&t.__renderable?(t.__active||(r().default.initializeElement(t,t.__stream.__video,e),t.__active=!0,t.__dirty=!0),t.__dirty&&(t.__stream.__video.width=a().default.int(t.__width),t.__stream.__video.height=a().default.int(t.__height),t.__dirty=!1),r().default.updateClip(t,e),r().default.applyStyle(t,e,!0,!0,!0)):s.clear(t,e)},e.default=s}).call(e,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(1).default;n(2).default;function r(){return n(19)}var a=function(){};a.__name__=["openfl","_internal","renderer","opengl","GLVideo"],(a.prototype={}).__class__=i["openfl._internal.renderer.opengl.GLVideo"]=a,a.render=function(t,e){if(t.__renderable&&!(t.__worldAlpha<=0)&&null!=t.__stream&&null!=t.__stream.__video){var n=e.renderer,i=e.gl;e.blendModeManager.setBlendMode(t.__worldBlendMode),e.maskManager.pushObject(t),e.filterManager.pushObject(t);var a=e.shaderManager.initShader(t.shader);e.shaderManager.setShader(a),a.get_data().uMatrix.value=n.getMatrix(t.__renderTransform);var s=!t.__worldColorTransform.__isDefault();null==a.get_data().uColorTransform.value&&(a.get_data().uColorTransform.value=[]),a.get_data().uColorTransform.value[0]=s,e.shaderManager.updateShader(a),i.bindTexture(i.TEXTURE_2D,t.__getTexture(i)),t.smoothing?(i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.LINEAR)):(i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,i.NEAREST),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.NEAREST)),i.bindBuffer(i.ARRAY_BUFFER,t.__getBuffer(i,t.__worldAlpha,t.__worldColorTransform)),i.vertexAttribPointer(a.get_data().aPosition.index,3,i.FLOAT,!1,104,r().default.fromInt(0)),i.vertexAttribPointer(a.get_data().aTexCoord.index,2,i.FLOAT,!1,104,r().default.fromInt(12)),i.vertexAttribPointer(a.get_data().aAlpha.index,1,i.FLOAT,!1,104,r().default.fromInt(20)),i.vertexAttribPointer(a.get_data().aColorMultipliers0.index,4,i.FLOAT,!1,104,r().default.fromInt(24)),i.vertexAttribPointer(a.get_data().aColorMultipliers1.index,4,i.FLOAT,!1,104,r().default.fromInt(40)),i.vertexAttribPointer(a.get_data().aColorMultipliers2.index,4,i.FLOAT,!1,104,r().default.fromInt(56)),i.vertexAttribPointer(a.get_data().aColorMultipliers3.index,4,i.FLOAT,!1,104,r().default.fromInt(72)),i.vertexAttribPointer(a.get_data().aColorOffsets.index,4,i.FLOAT,!1,104,r().default.fromInt(88)),i.drawArrays(i.TRIANGLE_STRIP,0,4),e.filterManager.popObject(t),e.maskManager.popObject(t)}},a.renderMask=function(t,e){if(null!=t.__stream&&null!=t.__stream.__video){var i=e.renderer,a=e.gl,s=n(59).default.maskShader;e.shaderManager.setShader(s),s.get_data().uMatrix.value=i.getMatrix(t.__renderTransform),e.shaderManager.updateShader(s),a.bindTexture(a.TEXTURE_2D,t.__getTexture(a)),a.bindBuffer(a.ARRAY_BUFFER,t.__getBuffer(a,t.__worldAlpha,t.__worldColorTransform)),a.vertexAttribPointer(s.get_data().aPosition.index,3,a.FLOAT,!1,104,r().default.fromInt(0)),a.vertexAttribPointer(s.get_data().aTexCoord.index,2,a.FLOAT,!1,104,r().default.fromInt(12)),a.drawArrays(a.TRIANGLE_STRIP,0,4)}},e.default=a}).call(e,n(0))},function(t,e,n){t.exports={FileFilter:n(533).default,FileReference:n(535).default,FileReferenceList:n(540).default,NetConnection:n(542).default,NetStream:n(544).default,SharedObject:n(546).default,SharedObjectFlushStatus:n(548).default,Socket:n(549).default,URLLoader:n(550).default,URLLoaderDataFormat:n(551).default,URLRequest:n(552).default,URLRequestDefaults:n(553).default,URLRequestHeader:n(554).default,URLRequestMethod:n(555).default,URLStream:n(556).default,URLVariables:n(558).default,XMLSocket:n(559).default,navigateToURL:n(561).default,sendToURL:n(562).default}},function(t,e,n){t.exports=n(534)},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(1).default,r=function(t,e,n){this.description=t,this.extension=e,this.macType=n};r.__name__=["openfl","net","FileFilter"],(r.prototype={}).__class__=i["openfl.net.FileFilter"]=r,e.default=r}).call(e,n(0))},function(t,e,n){t.exports=n(234)},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(1).default;n(2).default;function r(){return n(56)}function a(){return n(148)}var s=function(){this.onSelectMultiple=new(n(537).default),this.onSelect=new(a().default),this.onSave=new(a().default),this.onOpen=new(n(538).default),this.onCancel=new(n(35).default)};s.__name__=["lime","ui","FileDialog"],(s.prototype={browse:function(t,e,i,r){return null==t&&(t=n(235).default.OPEN),this.onCancel.dispatch(),!1},open:function(t,e,n){return this.onCancel.dispatch(),!1},save:function(t,e,i,a){if(null==t)return this.onCancel.dispatch(),!1;var s="application/octet-stream",o="";r().default.__isPNG(t)?(s="image/png",o=".png"):r().default.__isJPG(t)?(s="image/jpeg",o=".jpg"):r().default.__isGIF(t)?(s="image/gif",o=".gif"):r().default.__isWebP(t)&&(s="image/webp",o=".webp");var l=null!=i?n(80).default.withoutDirectory(i):"download"+o,u=t.getData();return n(539)(new Blob([u],{type:s}),l,!0),this.onSave.dispatch(l),!0}}).__class__=i["lime.ui.FileDialog"]=s,e.default=s}).call(e,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(1).default;n(2).default;function r(){return n(5)}var a=function(){this.canceled=!1,this.__listeners=[],this.__priorities=[],this.__repeat=[]};a.__name__=["lime","app","_Event_Array_String__Void"],(a.prototype={add:function(t,e,n){null==n&&(n=0),null==e&&(e=!1);for(var i=0,r=this.__priorities.length;ithis.__priorities[a])return this.__listeners.splice(a,0,t),this.__priorities.splice(a,0,n),void this.__repeat.splice(a,0,!e)}this.__listeners.push(t),this.__priorities.push(n),this.__repeat.push(!e)},cancel:function(){this.canceled=!0},has:function(t){for(var e=0,n=this.__listeners;e=0;)r().default.compareMethods(this.__listeners[e],t)&&(this.__listeners.splice(e,1),this.__priorities.splice(e,1),this.__repeat.splice(e,1))},dispatch:function(t){this.canceled=!1;for(var e=this.__listeners,n=this.__repeat,i=0;ithis.__priorities[a])return this.__listeners.splice(a,0,t),this.__priorities.splice(a,0,n),void this.__repeat.splice(a,0,!e)}this.__listeners.push(t),this.__priorities.push(n),this.__repeat.push(!e)},cancel:function(){this.canceled=!0},has:function(t){for(var e=0,n=this.__listeners;e=0;)r().default.compareMethods(this.__listeners[e],t)&&(this.__listeners.splice(e,1),this.__priorities.splice(e,1),this.__repeat.splice(e,1))},dispatch:function(t){this.canceled=!1;for(var e=this.__listeners,n=this.__repeat,i=0;ithis.__video.duration&&(t=this.__video.duration),this.__video.currentTime=t},togglePause:function(){this.__video.paused?this.__video.play():this.__video.pause()},__playStatus:function(t){if(null!=this.client)try{(0,this.client.onPlayStatus)({code:t,duration:this.__video.duration,position:this.__video.currentTime,speed:this.__video.playbackRate,start:this.__video.startTime})}catch(t){}},video_onCanPlay:function(t){this.__playStatus("NetStream.Play.canplay")},video_onCanPlayThrough:function(t){this.__playStatus("NetStream.Play.canplaythrough")},video_onDurationChanged:function(t){this.__playStatus("NetStream.Play.durationchanged")},video_onEnd:function(t){this.__connection.dispatchEvent(new(o().default)("netStatus",!1,!1,{code:"NetStream.Play.Stop"})),this.__playStatus("NetStream.Play.Complete")},video_onError:function(t){this.__connection.dispatchEvent(new(o().default)("netStatus",!1,!1,{code:"NetStream.Play.Stop"})),this.__playStatus("NetStream.Play.error")},video_onLoadMetaData:function(t){if(null!=this.client)try{(0,this.client.onMetaData)({width:this.__video.videoWidth,height:this.__video.videoHeight,duration:this.__video.duration})}catch(t){}},video_onLoadStart:function(t){this.__playStatus("NetStream.Play.loadstart")},video_onPause:function(t){this.__playStatus("NetStream.Play.pause")},video_onPlaying:function(t){this.__connection.dispatchEvent(new(o().default)("netStatus",!1,!1,{code:"NetStream.Play.Start"})),this.__playStatus("NetStream.Play.playing")},video_onSeeking:function(t){this.__playStatus("NetStream.Play.seeking")},video_onStalled:function(t){this.__playStatus("NetStream.Play.stalled")},video_onTimeUpdate:function(t){this.time=this.__video.currentTime,this.__playStatus("NetStream.Play.timeupdate")},video_onWaiting:function(t){this.__playStatus("NetStream.Play.waiting")},get_speed:function(){return this.__video.playbackRate},set_speed:function(t){return this.__video.playbackRate=t}})).__class__=i["openfl.net.NetStream"]=l,Object.defineProperty(l.prototype,"speed",{get:function(){return this.get_speed()},set:function(t){return this.set_speed(t)}}),e.default=l}).call(e,n(0))},function(t,e,n){t.exports=n(547)},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(1).default,r=(n(2).default,n(3).default);function a(){return n(13)}function s(){return n(11)}function o(){return n(34)}function l(){return n(5)}function u(){return n(198)}function _(){return n(63)}function f(){return n(10)}function d(){return n(12)}var h=function(){a().default.call(this),this.client=this,this.objectEncoding=3};h.__name__=["openfl","net","SharedObject"],h.__super__=a().default,(h.prototype=r(a().default.prototype,{clear:function(){this.data={};try{var t=s().default.getLocalStorage();null!=t&&t.removeItem(this.__localPath+":"+this.__name)}catch(t){}},close:function(){},connect:function(t,e){o().default.notImplemented({fileName:"SharedObject.hx",lineNumber:106,className:"openfl.net.SharedObject",methodName:"connect"})},flush:function(t){if(null==t&&(t=0),0==l().default.fields(this.data).length)return"flushed";var e=u().default.run(this.data);try{var n=s().default.getLocalStorage();null!=n&&(n.removeItem(this.__localPath+":"+this.__name),n.setItem(this.__localPath+":"+this.__name,e))}catch(t){return"pending"}return"flushed"},send:function(t){o().default.notImplemented({fileName:"SharedObject.hx",lineNumber:284,className:"openfl.net.SharedObject",methodName:"send"})},setDirty:function(t){},setProperty:function(t,e){null!=this.data&&l().default.setField(this.data,t,e)},get_size:function(){try{var t=u().default.run(this.data);return n(16).default.ofString(t).get_length()}catch(t){return 0}}})).__class__=i["openfl.net.SharedObject"]=h;var c=h.prototype;t.Object.defineProperty(c,"size",{get:function(){return this.get_size()}}),h.getLocal=function(t,e,i){null==i&&(i=!1);var r=[" ","~","%","&","\\",";",":",'"',"'",",","<",">","?","#"],a=!0;if(null==t||""==t)a=!1;else for(var o=0;o-1){a=!1;break}}if(!a)throw new(n(6).default)(new(n(30).default)("Error #2134: Cannot create SharedObject."));null==e&&(e=s().default.get_window().location.href),null==h.__sharedObjects&&(h.__sharedObjects=new(n(18).default),null!=_().default.current&&_().default.current.onExit.add(h.application_onExit));var u=e+"/"+t;if(!h.__sharedObjects.exists(u)){var d=new h;d.data={},d.__localPath=e,d.__name=t;var c=null;try{var p=s().default.getLocalStorage();null!=p&&(c=p.getItem(e+":"+t))}catch(t){}if(null!=c&&""!=c)try{var g=new(n(199).default)(c);g.setResolver({resolveEnum:f().default.resolveEnum,resolveClass:h.__resolveClass}),d.data=g.unserialize()}catch(t){}h.__sharedObjects.set(u,d)}return h.__sharedObjects.get(u)},h.getRemote=function(t,e,n,i){return null==i&&(i=!1),null==n&&(n=!1),o().default.notImplemented({fileName:"SharedObject.hx",lineNumber:275,className:"openfl.net.SharedObject",methodName:"getRemote"}),null},h.__getPath=function(t,e){var i=n(46).default.get_applicationStorageDirectory()+"/"+t+"/";if(e=d().default.replace(e,"//","/"),e=d().default.replace(e,"//","/"),d().default.startsWith(e,"/")&&(e=n(7).default.substr(e,1,null)),d().default.endsWith(e,"/")&&(e=e.substring(0,e.length-1)),e.indexOf("/")>-1){var r=e.split("/");e="";for(var a=0,s=r.length-1;a0&&(t[0].onUpdate.add(l.accelerometer_onUpdate),l.supported=!0),l.initialized=!0}},l.accelerometer_onUpdate=function(t,e,n){l.currentX=t,l.currentY=e,l.currentZ=n},l.get_isSupported=function(){return l.initialize(),l.supported},l.currentX=0,l.currentY=1,l.currentZ=0,l.defaultInterval=34,l.initialized=!1,l.supported=!1,e.default=l}).call(e,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(1).default;n(2).default;var r=function(t,e){this.onUpdate=new(n(570).default),this.type=t,this.id=e};r.__name__=["lime","system","Sensor"],(r.prototype={}).__class__=i["lime.system.Sensor"]=r,r.getSensors=function(t){if(null==t)return r.sensors.slice();for(var e=[],n=0,i=r.sensors;nthis.__priorities[a])return this.__listeners.splice(a,0,t),this.__priorities.splice(a,0,n),void this.__repeat.splice(a,0,!e)}this.__listeners.push(t),this.__priorities.push(n),this.__repeat.push(!e)},cancel:function(){this.canceled=!0},has:function(t){for(var e=0,n=this.__listeners;e=0;)r().default.compareMethods(this.__listeners[e],t)&&(this.__listeners.splice(e,1),this.__priorities.splice(e,1),this.__repeat.splice(e,1))},dispatch:function(t,e,n){this.canceled=!1;for(var i=this.__listeners,r=this.__repeat,a=0;a0?e:t.stageWidth},o.get_screenResolutionY=function(){var t=s().default.current.stage,e=0;if(null!=t.window){var n=t.window.get_display();null!=n&&(e=Math.ceil(n.currentMode.height*t.window.get_scale()))}return e>0?e:t.stageHeight},o.get_version=function(){return"WEB"},o.avHardwareDisable=!0,o.hasAccessibility=!1,o.hasAudio=!0,o.hasAudioEncoder=!1,o.hasEmbeddedVideo=!1,o.hasIME=!1,o.hasMP3=!1,o.hasPrinting=!0,o.hasScreenBroadcast=!1,o.hasScreenPlayback=!1,o.hasStreamingAudio=!1,o.hasStreamingVideo=!1,o.hasTLS=!0,o.hasVideoEncoder=!0,o.isDebugger=!1,o.isEmbeddedInAcrobat=!1,o.localFileReadDisable=!1,o.maxLevelIDC=0,o.playerType="StandAlone",o.screenColor="color",o.serverString="",o.supports32BitProcesses=!1,o.supports64BitProcesses=!1,o.touchscreenType="finger",o.__standardDensities=[120,160,240,320,480,640,800,960],e.default=o}).call(e,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(1).default,r=(n(2).default,function(){});r.__name__=["lime","system","_Locale","Locale_Impl_"],(r.prototype={}).__class__=i["lime.system._Locale.Locale_Impl_"]=r,r._new=function(t){return t},r.equals=function(t,e){var n=r.get_language(t),i=r.get_region(t),a=r.get_language(e),s=r.get_region(e),o=n==a,l=i==s;return o||null==n||null==a||(o=n.toLowerCase()==a.toLowerCase()),l||null==i||null==s||(l=i.toLowerCase()==s.toLowerCase()),!!o&&l},r.__init=function(){if(null==r.__systemLocale){var t;t=navigator.language,r.set_currentLocale(r.__systemLocale=null!=t?t:"en-US")}},r.get_language=function(t){if(null!=t){var e=t.indexOf("_");if(e>-1)return t.substring(0,e);if((e=t.indexOf("-"))>-1)return t.substring(0,e)}return t},r.get_region=function(t){if(null!=t){var e=t.indexOf("_"),n=t.indexOf("."),i=t.indexOf("-");if(e>-1)return n>-1?t.substring(e+1,n):t.substring(e+1);if(i>-1)return n>-1?t.substring(i+1,n):t.substring(i+1)}return null},r.get_currentLocale=function(){return r.__init(),r.currentLocale},r.set_currentLocale=function(t){return r.__init(),r.currentLocale=t},r.get_systemLocale=function(){return r.__init(),r.__systemLocale},e.default=r}).call(e,n(0))},function(t,e,n){t.exports=n(578)},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(1).default,r=function(t,e,n){null==t&&(t=!1),this.checkPolicyFile=t,this.securityDomain=n,this.applicationDomain=e,this.allowCodeImport=!0,this.allowLoadBytesCodeExecution=!0};r.__name__=["openfl","system","LoaderContext"],(r.prototype={}).__class__=i["openfl.system.LoaderContext"]=r,e.default=r}).call(e,n(0))},function(t,e,n){t.exports=n(580)},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(1).default,r=function(){};r.__name__=["openfl","system","Security"],(r.prototype={}).__class__=i["openfl.system.Security"]=r,r.allowDomain=function(t,e,n,i,r){},r.allowInsecureDomain=function(t,e,n,i,r){},r.loadPolicyFile=function(t){},r.LOCAL_TRUSTED="localTrusted",r.LOCAL_WITH_FILE="localWithFile",r.LOCAL_WITH_NETWORK="localWithNetwork",r.REMOTE="remote",e.default=r}).call(e,n(0))},function(t,e,n){t.exports=n(582)},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(1).default,r=(n(2).default,function(){});r.__name__=["openfl","system","SecurityDomain"],(r.prototype={}).__class__=i["openfl.system.SecurityDomain"]=r,r.currentDomain=new r,e.default=r}).call(e,n(0))},function(t,e,n){t.exports=n(584)},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(1).default;n(2).default;function r(){return n(34)}var a=function(){};a.__name__=["openfl","system","System"],(a.prototype={}).__class__=i["openfl.system.System"]=a,Object.defineProperties(a,{totalMemory:{get:function(){return a.get_totalMemory()}},vmVersion:{get:function(){return a.get_vmVersion()}}}),a.exit=function(t){n(46).default.exit(t)},a.gc=function(){},a.pause=function(){r().default.notImplemented({fileName:"System.hx",lineNumber:52,className:"openfl.system.System",methodName:"pause"})},a.resume=function(){r().default.notImplemented({fileName:"System.hx",lineNumber:59,className:"openfl.system.System",methodName:"resume"})},a.setClipboard=function(t){n(84).default.set_text(t)},a.get_totalMemory=function(){return window.performance&&window.performance.memory?window.performance.memory.usedJSHeapSize:0},a.get_vmVersion=function(){return"1.0.0"},a.useCodePage=!1,e.default=a}).call(e,n(0))},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.TouchscreenType=t.exports.default={FINGER:"finger",NONE:"none",STYLUS:"stylus"}},function(t,e,n){t.exports={AntiAliasType:n(587).default,Font:n(588).default,FontStyle:n(589).default,FontType:n(590).default,GridFitType:n(591).default,TextField:n(592).default,TextFieldAutoSize:n(593).default,TextFieldType:n(594).default,TextFormat:n(595).default,TextFormatAlign:n(596).default,TextLineMetrics:n(597).default}},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.AntiAliasType=t.exports.default={ADVANCED:"advanced",NORMAL:"normal"}},function(t,e,n){t.exports=n(102)},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.FontStyle=t.exports.default={BOLD:"bold",BOLD_ITALIC:"boldItalic",ITALIC:"italic",REGULAR:"regular"}},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.FontType=t.exports.default={DEVICE:"device",EMBEDDED:"embedded",EMBEDDED_CFF:"embeddedCFF"}},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.GridFitType=t.exports.default={NONE:"none",PIXEL:"pixel",SUBPIXEL:"subpixel"}},function(t,e,n){t.exports=n(130)},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.TextFieldAutoSize=t.exports.default={CENTER:"center",LEFT:"left",NONE:"none",RIGHT:"right"}},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.TextFieldType=t.exports.default={DYNAMIC:"dynamic",INPUT:"input"}},function(t,e,n){t.exports=n(135)},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.TextFormatAlign=t.exports.default={CENTER:"center",END:"end",JUSTIFY:"justify",LEFT:"left",RIGHT:"right",START:"start"}},function(t,e,n){t.exports=n(185)},function(t,e,n){t.exports={GameInput:n(599).default,GameInputControl:n(600).default,GameInputDevice:n(601).default,Keyboard:n(602).default,KeyLocation:n(603).default,Mouse:n(604).default,MouseCursor:n(605).default,Multitouch:n(606).default,MultitouchInputMode:n(608).default}},function(t,e,n){t.exports=n(209)},function(t,e,n){t.exports=n(140)},function(t,e,n){t.exports=n(211)},function(t,e,n){t.exports=n(221)},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.KeyLocation=t.exports.default={LEFT:1,NUM_PAD:3,RIGHT:2,STANDARD:0}},function(t,e,n){t.exports=n(223)},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.MouseCursor=t.exports.default={ARROW:"arrow",AUTO:"auto",BUTTON:"button",HAND:"hand",IBEAM:"ibeam"}},function(t,e,n){t.exports=n(607)},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(1).default,r=(n(2).default,function(){});r.__name__=["openfl","ui","Multitouch"],(r.prototype={}).__class__=i["openfl.ui.Multitouch"]=r,r.maxTouchPoints=2,r.supportedGestures=null,r.supportsGestureEvents=!1,r.inputMode="touchPoint",Object.defineProperties(r,{supportsTouchEvents:{get:function(){return r.get_supportsTouchEvents()}}}),r.get_supportsTouchEvents=function(){return!!("ontouchstart"in document.documentElement||window.DocumentTouch&&document instanceof DocumentTouch)},e.default=r}).call(e,n(0))},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.MultitouchInputMode=t.exports.default={GESTURE:"gesture",NONE:"none",TOUCH_POINT:"touchPoint"}},function(t,e,n){t.exports={AGALMiniAssembler:n(610).default,ByteArray:n(615).default,CompressionAlgorithm:n(616).default,Endian:n(617).default,IDataInput:n(618).default,IDataOutput:n(619).default,Timer:n(620).default,getTimer:n(622).default,getDefinitionByName:n(623).default,getQualifiedClassName:n(624).default,getQualifiedSuperclassName:n(625).default}},function(t,e,n){t.exports=n(611)},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(1).default;n(2).default;function r(){return n(25)}function a(){return n(12)}function s(){return n(27)}function o(){return n(7)}function l(){return n(47)}function u(){return n(4)}function _(){return n(43)}function f(){return n(17)}function d(){return n(612)}function h(){return n(18)}function c(){return n(613)}function p(){return n(614)}var g=function(t){null==t&&(t=!1),this.debugEnabled=!1,this.debugEnabled=t,g.initialized||g.init()};g.__name__=["openfl","utils","AGALMiniAssembler"],g.prototype={assemble2:function(t,e,n,i){var r=this.assemble("vertex",n,e),a=this.assemble("fragment",i,e),s=t.createProgram();return s.upload(r,a),s},assemble:function(t,e,i,d){null==d&&(d=!1),null==i&&(i=1);var h=r().default.getTimer(),c=new(n(45).default)(0);this.agalcode=c,this.error="";var p=!1;"fragment"==t?p=!0:"vertex"!=t&&(this.error='ERROR: mode needs to be "fragment" or "vertex" but is "'+t+'".'),this.agalcode.set_endian("littleEndian"),this.agalcode.writeByte(160),this.agalcode.writeUnsignedInt(i),this.agalcode.writeByte(161),this.agalcode.writeByte(p?1:0),this.initregmap(i,d);for(var m=a().default.replace(e,"\r","\n").split("\n"),v=0,w=m.length,y=new(s().default)("<.*>","g"),b=new(s().default)("([\\w\\.\\-\\+]+)","gi"),x=new(s().default)("^\\w{3}","ig"),E=new(s().default)("vc\\[([vofi][acostdip]?[d]?)(\\d*)?(\\.[xyzw](\\+\\d{1,3})?)?\\](\\.[xyzw]{1,4})?|([vofi][acostdip]?[d]?)(\\d*)?(\\.[xyzw]{1,4})?","gi"),T=new(s().default)("\\[.*\\]","ig"),A=new(s().default)("^\\b[A-Za-z]{1,3}","ig"),R=new(s().default)("\\d+",""),S=new(s().default)("(\\.[xyzw]{1,4})",""),M=new(s().default)("[A-Za-z]{1,3}","ig"),I=new(s().default)("(\\.[xyzw]{1,1})",""),D=new(s().default)("\\+\\d{1,3}","ig"),C=0;C4096){this.error="error: too many opcodes. maximum is 4096.";break}var k=this.match(L,E);if(k.length!=N.numRegister){this.error="error: wrong number of operands. found "+k.length+" but expected "+N.numRegister+".";break}for(var U=!1,G=160,j=0,V=k.length;j0&&(k[X]=a().default.replace(k[X],H[0],"0"),this.verbose&&l().default.trace("IS REL",{fileName:"AGALMiniAssembler.hx",lineNumber:377,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"}),W=!0);var z=this.match(k[X],A);if(0==z.length){this.error="error: could not parse operand "+X+" ("+k[X]+").",U=!0;break}var Y=g.REGMAP.get(z[0]);if(this.debugEnabled&&l().default.trace(Y,{fileName:"AGALMiniAssembler.hx",lineNumber:399,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"}),null==Y){this.error="error: could not find register name for operand "+X+" ("+k[X]+").",U=!0;break}if(p){if(0==(32&Y.flags)){this.error="error: register operand "+X+" ("+k[X]+") only allowed in vertex programs.",U=!0;break}if(W){this.error="error: register operand "+X+" ("+k[X]+") relative adressing not allowed in fragment programs.",U=!0;break}}else if(0==(64&Y.flags)){this.error="error: register operand "+X+" ("+k[X]+") only allowed in fragment programs.",U=!0;break}var q=k[X].indexOf(Y.name)+Y.name.length;k[X]=o().default.substr(k[X],q,null);var K=W?this.match(H[0],R):this.match(k[X],R),Z=0;if(K.length>0&&(Z=u().default.parseInt(K[0])),_().default.gt(Z,Y.range)){this.error="error: register operand "+X+" ("+k[X]+") index exceeds limit of "+u().default.string(_().default.toFloat(Y.range+1))+".",U=!0;break}var Q=0,J=this.match(k[X],S),$=0==X&&0==(128&N.flags),tt=2==X&&0!=(8&N.flags),et=0,nt=0,it=0;if($&&W){this.error="error: relative can not be destination",U=!0;break}if(J.length>0){Q=0;for(var rt=0,at=J[0].length,st=1;st0&&(it=u().default.parseInt(_t[0])),it<0||it>255){this.error="error: index offset "+it+" out of bounds. [0..255]",U=!0;break}this.verbose&&l().default.trace("RELATIVE: type="+et+"=="+ot[0]+" sel="+u().default.string(_().default.toFloat(nt))+"=="+ut[0]+" idx="+u().default.string(_().default.toFloat(Z))+" offset="+it,{fileName:"AGALMiniAssembler.hx",lineNumber:574,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"})}if(this.verbose&&l().default.trace(" emit argcode="+u().default.string(Y)+"["+u().default.string(_().default.toFloat(Z))+"]["+Q+"]",{fileName:"AGALMiniAssembler.hx",lineNumber:582,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"}),$)this.agalcode.writeShort(Z),this.agalcode.writeByte(Q),this.agalcode.writeByte(Y.emitCode),G-=32;else if(tt){this.verbose&&l().default.trace(" emit sampler",{fileName:"AGALMiniAssembler.hx",lineNumber:599,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"});for(var ft=5,dt=0,ht=0,ct=null==F?0:F.length;ht=3&&l().default.trace("warning: bad line "+C+": "+m[C],{fileName:"AGALMiniAssembler.hx",lineNumber:304,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"}),++C;else L.length>=3&&l().default.trace("warning: bad line "+C+": "+m[C],{fileName:"AGALMiniAssembler.hx",lineNumber:284,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"}),++C}if(""!=this.error&&(this.error+="\n at line "+C+" "+m[C],f().default.set_length(this.agalcode,0),l().default.trace(this.error,{fileName:"AGALMiniAssembler.hx",lineNumber:703,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"})),this.debugEnabled){for(var vt="generated bytecode:",wt=0,yt=f().default.get_length(this.agalcode);wt