3 lines
1.0 MiB
3 lines
1.0 MiB
/*! 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<this.arr.length},next:function(){return this.arr[this.cur++]}}},e.default=r}).call(e,n(0))},function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=0;e.default=function(t,e){var i,r;return null==e?null:(r=e._i=e._i||n++,null==t._c?t._c={}:i=t._c[r],null==i&&((i=function(){return i._m.apply(i._s,arguments)})._s=t,i._m=e,t._c[r]=i),i)}},function(t,e,n){(function(t){("undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1).default,r=(n(2).default,n(8).default);function a(){return n(5)}function s(){return n(4)}var o=function(t,e,n){null==n&&(n=!1),null==e&&(e=!1),this.type=t,this.bubbles=e,this.cancelable=n,this.eventPhase=2};o.__name__=["openfl","events","Event"],(o.prototype={clone:function(){var t=new o(this.type,this.bubbles,this.cancelable);return t.eventPhase=this.eventPhase,t.target=this.target,t.currentTarget=this.currentTarget,t},formatToString:function(t,e,n,i,s,o){var l=[];return null!=e&&l.push(e),null!=n&&l.push(n),null!=i&&l.push(i),null!=s&&l.push(s),null!=o&&l.push(o),a().default.callMethod(this,r(this,this.__formatToString),[t,l])},isDefaultPrevented:function(){return this.__preventDefault},preventDefault:function(){this.cancelable&&(this.__preventDefault=!0)},stopImmediatePropagation:function(){this.__isCanceled=!0,this.__isCanceledNow=!0},stopPropagation:function(){this.__isCanceled=!0},toString:function(){return this.__formatToString("Event",["type","bubbles","cancelable"])},__formatToString:function(t,e){for(var n="["+t,i=null,r=0;r<e.length;){var o=e[r];++r,n+="string"==typeof(i=a().default.field(this,o))?" "+o+'="'+s().default.string(i)+'"':" "+o+"="+s().default.string(i)}return n+="]"}}).__class__=i["openfl.events.Event"]=o,o.ACTIVATE="activate",o.ADDED="added",o.ADDED_TO_STAGE="addedToStage",o.CANCEL="cancel",o.CHANGE="change",o.CLEAR="clear",o.CLOSE="close",o.COMPLETE="complete",o.CONNECT="connect",o.CONTEXT3D_CREATE="context3DCreate",o.COPY="copy",o.CUT="cut",o.DEACTIVATE="deactivate",o.ENTER_FRAME="enterFrame",o.EXIT_FRAME="exitFrame",o.FRAME_CONSTRUCTED="frameConstructed",o.FRAME_LABEL="frameLabel",o.FULLSCREEN="fullScreen",o.ID3="id3",o.INIT="init",o.MOUSE_LEAVE="mouseLeave",o.OPEN="open",o.PASTE="paste",o.REMOVED="removed",o.REMOVED_FROM_STAGE="removedFromStage",o.RENDER="render",o.RESIZE="resize",o.SCROLL="scroll",o.SELECT="select",o.SELECT_ALL="selectAll",o.SOUND_COMPLETE="soundComplete",o.TAB_CHILDREN_CHANGE="tabChildrenChange",o.TAB_ENABLED_CHANGE="tabEnabledChange",o.TAB_INDEX_CHANGE="tabIndexChange",o.TEXTURE_READY="textureReady",o.UNLOAD="unload",e.default=o}).call(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)}function a(){return n(6)}function s(){return n(5)}function o(){return n(152)}var l=function(){};l.__name__=["Type"],(l.prototype={}).__class__=i.Type=l,l.getClass=function(t){return null==t?null:r().default.getClass(t)},l.getSuperClass=function(t){return t.__super__},l.getClassName=function(t){var e=t.__name__;return null==e?null:e.join(".")},l.getEnumName=function(t){return t.__ename__.join(".")},l.resolveClass=function(t){var e=i[t];return null!=e&&r().default.isClass(e)?e:null},l.resolveEnum=function(t){var e=i[t];return null!=e&&r().default.isEnum(e)?e:null},l.createInstance=function(t,e){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6]);case 8:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]);case 9:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8]);case 10:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9]);case 11:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10]);case 12:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11]);case 13:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12]);case 14:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13]);default:throw new(a().default)("Too many arguments")}},l.createEmptyInstance=function(t){function e(){}return e.prototype=t.prototype,new e},l.createEnum=function(t,e,n){var i=s().default.field(t,e);if(null==i)throw new(a().default)("No such constructor "+e);if(s().default.isFunction(i)){if(null==n)throw new(a().default)("Constructor "+e+" need parameters");return s().default.callMethod(t,i,n)}if(null!=n&&0!=n.length)throw new(a().default)("Constructor "+e+" does not need parameters");return i},l.getEnumConstructs=function(t){return t.__constructs__.slice()},l.typeof=function(t){switch(typeof t){case"boolean":return o().default.TBool;case"function":return r().default.isClass(t)||r().default.isEnum(t)?o().default.TObject:o().default.TFunction;case"number":return Math.ceil(t)==t%2147483648?o().default.TInt:o().default.TFloat;case"object":if(null==t)return o().default.TNull;var e=t.__enum__;if(null!=e)return o().default.TEnum(e);var n=r().default.getClass(t);return null!=n?o().default.TClass(n):o().default.TObject;case"string":return o().default.TClass(String);case"undefined":return o().default.TNull;default:return o().default.TUnknown}},l.enumParameters=function(t){return t.slice(2)},l.enumIndex=function(t){return t[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(){};r.__name__=["js","Browser"],(r.prototype={}).__class__=i["js.Browser"]=r,r.get_window=function(){return window},r.get_document=function(){return window.document},r.get_location=function(){return window.location},r.get_navigator=function(){return window.navigator},r.get_console=function(){return window.console},r.get_supported=function(){return"undefined"!=typeof window},r.getLocalStorage=function(){try{var t=r.get_window().localStorage;return t.getItem(""),t}catch(t){return null}},r.getSessionStorage=function(){try{var t=r.get_window().sessionStorage;return t.getItem(""),t}catch(t){return null}},r.createXMLHttpRequest=function(){if("undefined"!=typeof XMLHttpRequest)return new XMLHttpRequest;if("undefined"!=typeof ActiveXObject)return new ActiveXObject("Microsoft.XMLHTTP");throw new(n(6).default)("Unable to create XMLHttpRequest object.")},r.alert=function(t){r.get_window().alert(n(20).default.__string_rec(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(7)}var a=function(){};a.__name__=["StringTools"],(a.prototype={}).__class__=i.StringTools=a,a.urlEncode=function(t){return encodeURIComponent(t)},a.urlDecode=function(t){return decodeURIComponent(t.split("+").join(" "))},a.htmlEscape=function(t,e){return t=t.split("&").join("&").split("<").join("<").split(">").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;n<e&&a.isSpace(t,n);)++n;return n>0?r().default.substr(t,n,e-n):t},a.rtrim=function(t){for(var e=t.length,n=0;n<e&&a.isSpace(t,e-n-1);)++n;return n>0?r().default.substr(t,0,e-n):t},a.trim=function(t){return a.ltrim(a.rtrim(t))},a.replace=function(t,e,n){return t.split(e).join(n)},a.hex=function(t,e){for(var n="";n="0123456789ABCDEF".charAt(15&t)+n,(t>>>=4)>0;);if(null!=e)for(;n.length<e;)n="0"+n;return n},a.fastCodeAt=function(t,e){return t.charCodeAt(e)},a.isEof=function(t){return t!=t},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(18)}function a(){return n(288)}function s(){return n(289)}function o(){return n(10)}var l=function(t){null!=t&&(this.__targetDispatcher=t)};l.__name__=["openfl","events","EventDispatcher"],l.__interfaces__=[n(157).default],(l.prototype={addEventListener:function(t,e,n,i,o){if(null==o&&(o=!1),null==i&&(i=0),null==n&&(n=!1),null!=e)if(null==this.__eventMap&&(this.__eventMap=new(r().default),this.__iterators=new(r().default)),this.__eventMap.exists(t)){for(var l=this.__eventMap.get(t),u=0,_=l.length;u<_;){if(l[u++].match(e,n))return}for(var f=this.__iterators.get(t),d=0;d<f.length;){var h=f[d];++d,h.active&&h.copy()}this.__addListenerByPriority(l,new(a().default)(e,n,i))}else{var c=[];c.push(new(a().default)(e,n,i));var p=new(s().default)(c);this.__eventMap.set(t,c),this.__iterators.set(t,[p])}},dispatchEvent:function(t){return null!=this.__targetDispatcher?t.target=this.__targetDispatcher:t.target=this,this.__dispatchEvent(t)},hasEventListener:function(t){return null!=this.__eventMap&&this.__eventMap.exists(t)},removeEventListener:function(t,e,n){if(null==n&&(n=!1),null!=this.__eventMap&&null!=e){var i=this.__eventMap.get(t);if(null!=i){for(var r=this.__iterators.get(t),a=0,s=i.length;a<s;){var o=a++;if(i[o].match(e,n)){for(var l=0;l<r.length;){var u=r[l];++l,u.remove(i[o],o)}i.splice(o,1);break}}0==i.length&&(this.__eventMap.remove(t),this.__iterators.remove(t)),this.__eventMap.iterator().hasNext()||(this.__eventMap=null,this.__iterators=null)}}},toString:function(){return"[object "+o().default.getClassName(o().default.getClass(this)).split(".").pop()+"]"},willTrigger:function(t){return this.hasEventListener(t)},__dispatchEvent:function(t){if(null==this.__eventMap||null==t)return!0;var e=t.type,i=this.__eventMap.get(e);if(null==i)return!0;null==t.target&&(null!=this.__targetDispatcher?t.target=this.__targetDispatcher:t.target=this),t.currentTarget=this;var r=1==t.eventPhase,a=this.__iterators.get(e),o=a[0];o.active&&(o=new(s().default)(i),a.push(o)),o.reset(i);for(var l=o;l.hasNext();){var u=l.next();if(null!=u&&(u.useCapture==r&&(u.callback(t),t.__isCanceledNow)))break}return o!=a[0]&&n(7).default.remove(a,o),!0},__removeAllListeners:function(){this.__eventMap=null,this.__iterators=null},__addListenerByPriority:function(t,e){for(var n=t.length,i=n,r=0,a=n;r<a;){var s=r++;if(t[s].priority<e.priority){i=s;break}}t.splice(i,0,e)}}).__class__=i["openfl.events.EventDispatcher"]=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(29)}var a=function(t,e,n,i){null==i&&(i=0),null==n&&(n=0),null==e&&(e=0),null==t&&(t=0),this.x=t,this.y=e,this.width=n,this.height=i};a.__name__=["openfl","geom","Rectangle"],(a.prototype={clone:function(){return new a(this.x,this.y,this.width,this.height)},contains:function(t,e){return t>=this.x&&e>=this.y&&t<this.get_right()&&e<this.get_bottom()},containsPoint:function(t){return this.contains(t.x,t.y)},containsRect:function(t){return t.width<=0||t.height<=0?t.x>this.x&&t.y>this.y&&t.get_right()<this.get_right()&&t.get_bottom()<this.get_bottom():t.x>=this.x&&t.y>=this.y&&t.get_right()<=this.get_right()&&t.get_bottom()<=this.get_bottom()},copyFrom:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},equals:function(t){return t==this||null!=t&&this.x==t.x&&this.y==t.y&&this.width==t.width&&this.height==t.height},inflate:function(t,e){this.x-=t,this.width+=2*t,this.y-=e,this.height+=2*e},inflatePoint:function(t){this.inflate(t.x,t.y)},intersection:function(t){var e=this.x<t.x?t.x:this.x,n=this.get_right()>t.get_right()?t.get_right():this.get_right();if(n<=e)return new a;var i=this.y<t.y?t.y:this.y,r=this.get_bottom()>t.get_bottom()?t.get_bottom():this.get_bottom();return r<=i?new a:new a(e,i,n-e,r-i)},intersects:function(t){var e=this.x<t.x?t.x:this.x;if((this.get_right()>t.get_right()?t.get_right():this.get_right())<=e)return!1;var n=this.y<t.y?t.y:this.y;return(this.get_bottom()>t.get_bottom()?t.get_bottom():this.get_bottom())>n},isEmpty:function(){return this.width<=0||this.height<=0},offset:function(t,e){this.x+=t,this.y+=e},offsetPoint:function(t){this.x+=t.x,this.y+=t.y},setEmpty:function(){this.x=this.y=this.width=this.height=0},setTo:function(t,e,n,i){this.x=t,this.y=e,this.width=n,this.height=i},toString:function(){return"(x="+this.x+", y="+this.y+", width="+this.width+", height="+this.height+")"},union:function(t){if(0==this.width||0==this.height)return t.clone();if(0==t.width||0==t.height)return this.clone();var e=this.x>t.x?t.x:this.x,n=this.get_right()<t.get_right()?t.get_right():this.get_right(),i=this.y>t.y?t.y:this.y,r=this.get_bottom()<t.get_bottom()?t.get_bottom():this.get_bottom();return new a(e,i,n-e,r-i)},__contract:function(t,e,n,i){if(0!=this.width||0!=this.height){var r=0,a=0,s=0,o=0;this.x<t&&(r=t-this.x),this.y<e&&(a=e-this.y),this.get_right()>t+n&&(s=t+n-this.get_right()),this.get_bottom()>e+i&&(o=e+i-this.get_bottom()),this.x+=r,this.y+=a,this.width+=s-r,this.height+=o-a}},__expand:function(t,e,n,i){if(0==this.width&&0==this.height)return this.x=t,this.y=e,this.width=n,void(this.height=i);var r=this.get_right(),a=this.get_bottom();this.x>t&&(this.x=t,this.width=r-t),this.y>e&&(this.y=e,this.height=a-e),r<t+n&&(this.width=t+n-this.x),a<e+i&&(this.height=e+i-this.y)},__toLimeRectangle:function(){return null==a.__limeRectangle&&(a.__limeRectangle=new(n(41).default)),a.__limeRectangle.setTo(this.x,this.y,this.width,this.height),a.__limeRectangle},__transform:function(t,e){var n=e.a*this.x+e.c*this.y,i=n,r=e.b*this.x+e.d*this.y,a=r,s=e.a*(this.x+this.width)+e.c*this.y,o=e.b*(this.x+this.width)+e.d*this.y;s<n&&(n=s),o<r&&(r=o),s>i&&(i=s),o>a&&(a=o),s=e.a*(this.x+this.width)+e.c*(this.y+this.height),o=e.b*(this.x+this.width)+e.d*(this.y+this.height),s<n&&(n=s),o<r&&(r=o),s>i&&(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),s<n&&(n=s),o<r&&(r=o),s>i&&(i=s),o>a&&(a=o),t.setTo(n+e.tx,r+e.ty,i-n,a-r)},get_bottom:function(){return this.y+this.height},set_bottom:function(t){return this.height=t-this.y,t},get_bottomRight:function(){return new(r().default)(this.x+this.width,this.y+this.height)},set_bottomRight:function(t){return this.width=t.x-this.x,this.height=t.y-this.y,t.clone()},get_left:function(){return this.x},set_left:function(t){return this.width-=t-this.x,this.x=t,t},get_right:function(){return this.x+this.width},set_right:function(t){return this.width=t-this.x,t},get_size:function(){return new(r().default)(this.width,this.height)},set_size:function(t){return this.width=t.x,this.height=t.y,t.clone()},get_top:function(){return this.y},set_top:function(t){return this.height-=t-this.y,this.y=t,t},get_topLeft:function(){return new(r().default)(this.x,this.y)},set_topLeft:function(t){return this.x=t.x,this.y=t.y,t.clone()}}).__class__=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;i<r;){i++;this.set(t++,n)}},sub:function(t,e){if(t<0||e<0||t+e>this.get_length())throw new(r().default)(a().default.OutsideBounds);return new o(this.b.buffer.slice(t+this.b.byteOffset,t+this.b.byteOffset+e))},compare:function(t){for(var e=this.b,n=t.b,i=0,r=this.get_length()<t.get_length()?this.get_length():t.get_length();i<r;){var a=i++;if(e[a]!=n[a])return e[a]-n[a]}return this.get_length()-t.get_length()},initData:function(){null==this.data&&(this.data=new DataView(this.b.buffer,this.b.byteOffset,this.b.byteLength))},getDouble:function(t){return this.initData(),this.data.getFloat64(t,!0)},getFloat:function(t){return this.initData(),this.data.getFloat32(t,!0)},setDouble:function(t,e){this.initData(),this.data.setFloat64(t,e,!0)},setFloat:function(t,e){this.initData(),this.data.setFloat32(t,e,!0)},getUInt16:function(t){return this.initData(),this.data.getUint16(t,!0)},setUInt16:function(t,e){this.initData(),this.data.setUint16(t,e,!0)},getInt32:function(t){return this.initData(),this.data.getInt32(t,!0)},setInt32:function(t,e){this.initData(),this.data.setInt32(t,e,!0)},getInt64:function(t){return new(n(54).default)(this.getInt32(t+4),this.getInt32(t))},setInt64:function(t,e){this.setInt32(t,e.low),this.setInt32(t+4,e.high)},getString:function(t,e){if(t<0||e<0||t+e>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<l;){var u=i[o++];if(u<128){if(0==u)break;n+=s(u)}else if(u<224)n+=s((63&u)<<6|127&i[o++]);else if(u<240){n+=s((31&u)<<12|(127&i[o++])<<6|127&i[o++])}else{var _=(15&u)<<18|(127&i[o++])<<12|(127&i[o++])<<6|127&i[o++];n+=s(55232+(_>>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<a;){var s=r++;e.push(n(7).default.cca(i,s))}for(var o=0,l=this.get_length();o<l;){var u=o++,_=this.get(u);t.addChar(e[_>>4]),t.addChar(e[15&_])}return t.toString()},getData:function(){return this.b.bufferValue},get_length:function(){return this.l},set_length:function(t){return this.l=t}}).__class__=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<t.length;){var i=s().default.fastCodeAt(t,n++);55296<=i&&i<=56319&&(i=i-55232<<10|1023&s().default.fastCodeAt(t,n++)),i<=127?e.push(i):i<=2047?(e.push(192|i>>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<r;){var a=i++,s=e[a];t.add(s),t.add(" => "),t.add(n(4).default.string(this.get(s))),a<e.length-1&&t.add(", ")}return t.add("}"),t.toString()}}).__class__=r["haxe.ds.StringMap"]=a;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(267)}function a(){return n(4)}function s(){return n(10)}function o(){return n(269)}var l=function(){};l.__name__=["lime","utils","_DataPointer","DataPointer_Impl_"],(l.prototype={}).__class__=i["lime.utils._DataPointer.DataPointer_Impl_"]=l,l._new=function(t){return t},l.fromInt=function(t){return l._new(new(r().default)(null,null,t))},l.fromFloat=function(t){return l._new(new(r().default)(null,null,a().default.int(t)))},l.fromBytesPointer=function(t){return l._new(new(r().default)(null,t.bytes.getData(),t.offset))},l.fromArrayBufferView=function(t){return l._new(new(r().default)(t))},l.fromArrayBuffer=function(t){return l._new(new(r().default)(null,t))},l.fromBytes=function(t){return l.fromArrayBuffer(t.getData())},l.fromBytesData=function(t){return l.fromArrayBuffer(t)},l.fromLimeBytes=function(t){return l.fromBytes(t)},l.fromCFFIPointer=function(t){return null},l.fromFile=function(t){return null},l.toBufferOrBufferView=function(t,e){var n=t;if(!n)return null;var i=n.type;switch(s().default.enumIndex(i)){case 0:if(null==e&&(e=n.buffer.byteLength),0==n.offset&&e==n.buffer.byteLength)return n.buffer;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)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.toBufferView=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)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.toFloat32Array=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 Float32Array(r,o):new Float32Array(r,o,l):null;case 1:if(null==e&&(e=n.bufferView.byteLength),0==n.offset&&e==n.bufferView.byteLength&&n.bufferView.constructor==Float32Array)return n.bufferView;e>n.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<e},l.lessThanPointer=function(t,e){return o().default.get(t)<o().default.get(e)},l.lessThanOrEqual=function(t,e){return t<=e},l.lessThanOrEqualPointer=function(t,e){return o().default.get(t)<=o().default.get(e)},l.notEquals=function(t,e){return t!=e},l.notEqualsPointer=function(t,e){return t!=e},l.plus=function(t,e){return l.__withOffset(t,e)},l.plusPointer=function(t,e){return l.__withOffset(t,a().default.int(e))},l.minus=function(t,e){return l.__withOffset(t,-e)},l.minusPointer=function(t,e){return l.__withOffset(t,-a().default.int(e))},e.default=l}).call(e,n(0))},function(t,e,n){(function(t){var i="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:this;i.Object.defineProperty(e,"__esModule",{value:!0});var r=n(1).default;n(2).default;function a(){return n(4)}var s=function(){};s.__name__=["js","Boot"],(s.prototype={}).__class__=r["js.Boot"]=s,s.__unhtml=function(t){return t.split("&").join("&").split("<").join("<").split(">").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<a.length;){var o=a[r];++r,i+=","+s.__string_rec(o,"")}"undefined"!=typeof document&&null!=(n=document.getElementById("haxe:trace"))?n.innerHTML+=s.__unhtml(i)+"<br/>":"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"<function>";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;r<a;){var o=r++;i+=2!=o?","+s.__string_rec(t[o],e):s.__string_rec(t[o],e)}return i+")"}var l=t.length,u="[";e+="\t";for(var _=0,f=l;_<f;){var d=_++;u+=(d>0?",":"")+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<r;){var a=n[i++];if(a==e||s.__interfLoop(a,e))return!0}return s.__interfLoop(t.__super__,e)},s.__instanceof=function(t,e){if(null==e)return!1;switch(e){case Array:return t instanceof Array&&null==t.__enum__;case r.Bool:return"boolean"==typeof t;case r.Dynamic:return!0;case r.Float:return"number"==typeof t;case r.Int:return"number"==typeof t&&(0|t)===t;case String:return"string"==typeof t;default:if(null==t)return!1;if("function"==typeof e){if(t instanceof e)return!0;if(s.__interfLoop(s.getClass(t),e))return!0}else if("object"==typeof e&&s.__isNativeObj(e)&&t instanceof e)return!0;return e==r.Class&&null!=t.__name__||(e==r.Enum&&null!=t.__ename__||t.__enum__==e)}},s.__cast=function(t,e){if(s.__instanceof(t,e))return t;throw new(n(6).default)("Cannot cast "+a().default.string(t)+" to "+a().default.string(e))},s.__nativeClassName=function(t){var e=s.__toStr.call(t).slice(8,-1);return"Object"==e||"Function"==e||"Math"==e||"JSON"==e?null:e},s.__isNativeObj=function(t){return null!=s.__nativeClassName(t)},s.__resolveNativeClass=function(t){return i[t]},s.__toStr={}.toString,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(90)}var a=function(){};a.__name__=["openfl","_Vector","Vector_Impl_"],(a.prototype={}).__class__=i["openfl._Vector.Vector_Impl_"]=a,a._new=function(t,e,n){return null!=n?r().default.ofArray(n):new(r().default)(t,e)},a.concat=function(t,e){return t.concat(e)},a.copy=function(t){return t.copy()},a.get=function(t,e){return t.get(e)},a.indexOf=function(t,e,n){return null==n&&(n=0),t.indexOf(e,n)},a.insertAt=function(t,e,n){t.insertAt(e,n)},a.iterator=function(t){return t.iterator()},a.join=function(t,e){return null==e&&(e=","),t.join(e)},a.lastIndexOf=function(t,e,n){return t.lastIndexOf(e,n)},a.pop=function(t){return t.pop()},a.push=function(t,e){return t.push(e)},a.removeAt=function(t,e){return t.removeAt(e)},a.reverse=function(t){return t.reverse()},a.set=function(t,e,n){return t.set(e,n)},a.shift=function(t){return t.shift()},a.slice=function(t,e,n){return t.slice(e,n)},a.sort=function(t,e){t.sort(e)},a.splice=function(t,e,n){return t.splice(e,n)},a.toString=function(t){return null!=t?t.toString():null},a.unshift=function(t,e){t.unshift(e)},a.ofArray=function(t){return r().default.ofArray(t)},a.convert=function(t){return t},a.get_fixed=function(t){return t.fixed},a.set_fixed=function(t,e){return t.fixed=e},a.get_length=function(t){return t.get_length()},a.set_length=function(t,e){return t.set_length(e)},e.default=a}).call(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.h={}};r.__name__=["haxe","ds","IntMap"],r.__interfaces__=[n(107).default],(r.prototype={set:function(t,e){this.h[t]=e},get:function(t){return this.h[t]},exists:function(t){return this.h.hasOwnProperty(t)},remove:function(t){return!!this.h.hasOwnProperty(t)&&(delete this.h[t],!0)},keys:function(){var t=[];for(var e in this.h)this.h.hasOwnProperty(e)&&t.push(0|e);return n(7).default.iter(t)},iterator:function(){return{ref:this.h,it:this.keys(),hasNext:function(){return this.it.hasNext()},next:function(){var t=this.it.next();return this.ref[t]}}}}).__class__=i["haxe.ds.IntMap"]=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__=["lime","utils","Log"],(r.prototype={}).__class__=i["lime.utils.Log"]=r,r.level=3,"undefined"==typeof console&&(console={}),null==console.log&&(console.log=function(){}),r.debug=function(t,e){r.level>=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;_<s.length;){var f=s[_];++_,a.length>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<this.r.m.length)return this.r.m[t];throw new(r().default)("EReg::matched")},matchedRight:function(){if(null==this.r.m)throw new(r().default)("No string matched");var t=this.r.m.index+this.r.m[0].length;return a().default.substr(this.r.s,t,this.r.s.length-t)},matchedPos:function(){if(null==this.r.m)throw new(r().default)("No string matched");return{pos:this.r.m.index,len:this.r.m[0].length}},matchSub:function(t,e,n){if(null==n&&(n=-1),this.r.global){this.r.lastIndex=e;var i=this.r,r=n<0?t:a().default.substr(t,0,e+n);this.r.m=i.exec(r);var s=null!=this.r.m;return s&&(this.r.s=t),s}var o=this.match(n<0?a().default.substr(t,e,null):a().default.substr(t,e,n));return o&&(this.r.s=t,this.r.m.index+=e),o},split:function(t){var e="#__delim__#";return t.replace(this.r,e).split(e)},replace:function(t,e){return t.replace(this.r,e)},map:function(t,e){for(var i=0,r=new(n(31).default);!(i>=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&&i<t.length&&r.add(a().default.substr(t,i,null)),r.toString()}}).__class__=i.EReg=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(6)}function a(){return n(29)}function s(){return n(4)}var o=function(t,e,n,i,r,a){null==a&&(a=0),null==r&&(r=0),null==i&&(i=1),null==n&&(n=0),null==e&&(e=0),null==t&&(t=1),this.a=t,this.b=e,this.c=n,this.d=i,this.tx=r,this.ty=a};o.__name__=["openfl","geom","Matrix"],(o.prototype={clone:function(){return new o(this.a,this.b,this.c,this.d,this.tx,this.ty)},concat:function(t){var e=this.a*t.a+this.b*t.c;this.b=this.a*t.b+this.b*t.d,this.a=e;var n=this.c*t.a+this.d*t.c;this.d=this.c*t.b+this.d*t.d,this.c=n;var i=this.tx*t.a+this.ty*t.c+t.tx;this.ty=this.tx*t.b+this.ty*t.d+t.ty,this.tx=i},copyColumnFrom:function(t,e){if(t>2)throw new(r().default)("Column "+t+" out of bounds (2)");0==t?(this.a=e.x,this.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;i<r;){var a=i++;if(n>this.__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<n.length;){var i=n[e];if(++e,r().default.compareMethods(i,t))return!0}return!1},remove:function(t){for(var e=this.__listeners.length;--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;n<t.length&&(t[n](),e[n]?++n:this.remove(t[n]),!this.canceled););}}).__class__=i["lime.app._Event_Void_Void"]=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=(n(2).default,n(3).default);function a(){return n(13)}function s(){return n(4)}function o(){return n(28)}function l(){return n(14)}function u(){return n(29)}function _(){return n(179)}function f(){return n(126)}function d(){return n(180)}function h(){return n(44)}function c(){return n(40)}function p(){return n(34)}function g(){return n(181)}var m=function(){a().default.call(this),null!=m.__initStage&&(this.stage=m.__initStage,m.__initStage=null),this.__alpha=1,this.__blendMode="normal",this.__cacheAsBitmap=!1,this.__transform=new(o().default),this.__visible=!0,this.__rotation=0,this.__rotationSine=0,this.__rotationCosine=1,this.__scaleX=1,this.__scaleY=1,this.__worldAlpha=1,this.__worldBlendMode="normal",this.__worldTransform=new(o().default),this.__worldColorTransform=new(c().default),this.__renderTransform=new(o().default),this.__worldVisible=!0,this.set_name("instance"+ ++m.__instanceCount)};m.__name__=["openfl","display","DisplayObject"],m.__interfaces__=[n(112).default],m.__super__=a().default,m.prototype=r(a().default.prototype,{addEventListener:function(t,e,n,i,r){switch(null==r&&(r=!1),null==i&&(i=0),null==n&&(n=!1),t){case"activate":case"deactivate":case"enterFrame":case"exitFrame":case"frameConstructed":case"render":m.__broadcastEvents.exists(t)||m.__broadcastEvents.set(t,[]);var s=m.__broadcastEvents.get(t);-1==s.indexOf(this)&&s.push(this)}a().default.prototype.addEventListener.call(this,t,e,n,i,r)},dispatchEvent:function(t){if(s().default.is(t,n(113).default)){var e=t;e.stageX=this.__getRenderTransform().__transformX(e.localX,e.localY),e.stageY=this.__getRenderTransform().__transformY(e.localX,e.localY)}else if(s().default.is(t,n(114).default)){var i=t;i.stageX=this.__getRenderTransform().__transformX(i.localX,i.localY),i.stageY=this.__getRenderTransform().__transformY(i.localX,i.localY)}return this.__dispatchWithCapture(t)},getBounds:function(t){var e,n=!1;null!=t?(e=this.__getWorldTransform().clone()).concat(t.__getWorldTransform().clone().invert()):(n=!0,(e=o().default.__pool.get()).identity());var i=new(l().default);return this.__getBounds(i,e),n&&o().default.__pool.release(e),i},getRect:function(t){return this.getBounds(t)},globalToLocal:function(t){return this.__globalToLocal(t,new(u().default))},hitTestObject:function(t){if(null!=t&&null!=t.parent&&null!=this.parent){var e=this.getBounds(this),n=t.getBounds(this);return e.intersects(n)}return!1},hitTestPoint:function(t,e,n){return null==n&&(n=!1),null!=this.stage&&this.__hitTest(t,e,n,null,!0,this)},localToGlobal:function(t){return this.__getRenderTransform().transformPoint(t)},removeEventListener:function(t,e,i){switch(null==i&&(i=!1),a().default.prototype.removeEventListener.call(this,t,e,i),t){case"activate":case"deactivate":case"enterFrame":case"exitFrame":case"frameConstructed":case"render":this.hasEventListener(t)||m.__broadcastEvents.exists(t)&&n(7).default.remove(m.__broadcastEvents.get(t),this)}},__cleanup:function(){this.__cairo=null,this.__canvas=null,this.__context=null,null!=this.__graphics&&this.__graphics.__cleanup()},__dispatch:function(t){if(null!=this.__eventMap&&this.hasEventListener(t.type)){var e=a().default.prototype.__dispatchEvent.call(this,t);return!!t.__isCanceled||e}return!0},__dispatchChildren:function(t){},__dispatchEvent:function(t){var e=a().default.prototype.__dispatchEvent.call(this,t);return!!t.__isCanceled||(t.bubbles&&null!=this.parent&&this.parent!=this&&(t.eventPhase=3,null==t.target&&(t.target=this),this.parent.__dispatchEvent(t)),e)},__dispatchWithCapture:function(t){if(null==t.target&&(t.target=this),null!=this.parent)if(t.eventPhase=1,this.parent==this.stage)this.parent.__dispatch(t);else{for(var e=m.__tempStack.get(),n=this.parent,i=0;null!=n;)e.set(i,n),n=n.parent,++i;for(var r=0,a=i;r<a;){var s=r++;e.get(i-s-1).__dispatch(t)}m.__tempStack.release(e)}return t.eventPhase=2,this.__dispatchEvent(t)},__enterFrame:function(t){},__getBounds:function(t,e){null!=this.__graphics&&this.__graphics.__getBounds(t,e)},__getCursor:function(){return null},__getFilterBounds:function(t,e){if(this.__getBounds(t,e),null!=this.__filters&&this.__filters.length>0){for(var n=l().default.__pool.get(),i=0,r=this.__filters;i<r.length;){var a=r[i];++i,n.__expand(-a.__leftExtension,-a.__topExtension,a.__leftExtension+a.__rightExtension,a.__topExtension+a.__bottomExtension)}t.width+=n.width,t.height+=n.height,t.x+=n.x,t.y+=n.y,l().default.__pool.release(n)}},__getInteractive:function(t){return!1},__getLocalBounds:function(t){this.__getBounds(t,this.__transform),t.x-=this.__transform.tx,t.y-=this.__transform.ty},__getRenderBounds:function(t,e){if(null==this.__scrollRect)this.__getBounds(t,e);else{var n=l().default.__pool.get();n.copyFrom(this.__scrollRect),n.__transform(n,e),t.__expand(e.tx,e.ty,n.width,n.height),l().default.__pool.release(n)}},__getRenderTransform:function(){return this.__getWorldTransform(),this.__renderTransform},__getWorldTransform:function(){if(this.__transformDirty||this.__worldTransformInvalid){var t=[],e=this;if(null==this.parent)this.__update(!0,!1);else for(;e!=this.stage&&(t.push(e),null!=(e=e.parent)););for(var n=t.length;--n>=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<d.length;){var p=d[f];if(++f,p.__renderDirty){a=!0;break}}var g=0,m=0;if((s||a)&&(i=o().default.__pool.get(),r=l().default.__pool.get(),i.identity(),this.__getFilterBounds(r,this.__renderTransform),g=Math.ceil(r.width),m=Math.ceil(r.height),a||null==this.__cacheBitmap||g==this.__cacheBitmap.get_width()&&m==this.__cacheBitmap.get_height()||(a=!0)),a){this.__cacheBitmapBackground=this.opaqueBackground;var v=null!=this.opaqueBackground?-16777216|this.opaqueBackground:0;if(!(r.width>=.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;b<x.length;){var E=x[b];++b,E.__needSecondBitmapData&&(w=!0),E.__preserveObject&&(y=!0)}var T=this.__cacheBitmapData,A=null,R=null;A=w?new(h().default)(T.width,T.height,!0,0):T,y&&(R=new(h().default)(T.width,T.height,!0,0));for(var S,M,I=T.rect,D=new(u().default),C=0,L=this.__filters;C<L.length;){var O=L[C];++C,O.__preserveObject&&R.copyPixels(T,T.rect,D),M=O.__applyFilter(A,T,I,D),O.__preserveObject&&M.draw(R,null,this.get_transform().get_colorTransform()),O.__renderDirty=!1,w&&M==A&&(S=T,T=A,A=S)}this.__cacheBitmap.set_bitmapData(T)}this.__cacheBitmapRender=!1,null==this.__cacheBitmapColorTransform&&(this.__cacheBitmapColorTransform=new(c().default)),this.__cacheBitmapColorTransform.__copyFrom(this.__worldColorTransform),this.__cacheBitmapColorTransform.__isDefault()||this.__cacheBitmapData.colorTransform(this.__cacheBitmapData.rect,this.__cacheBitmapColorTransform)}return!!s&&(this.__update(!1,!0),o().default.__pool.release(i),l().default.__pool.release(r),!0)}return null!=this.__cacheBitmap&&(t.renderType==n(33).default.DOM&&this.__cacheBitmap.__renderDOMClear(t),this.__cacheBitmap=null,this.__cacheBitmapData=null,this.__cacheBitmapColorTransform=null,!0)},__updateChildren:function(t){var e=null!=this.__renderParent?this.__renderParent:this.parent;this.__renderable=this.get_visible()&&0!=this.__scaleX&&0!=this.__scaleY&&!this.__isMask&&(null==e||!e.__isMask),this.__worldAlpha=this.get_alpha(),this.__worldBlendMode=this.get_blendMode(),this.__transformDirty&&(this.__transformDirty=!1)},__updateMask:function(t){null!=this.__graphics&&(t.__commands.overrideMatrix(this.__worldTransform),t.__commands.append(this.__graphics.__commands),t.set___dirty(!0),t.__visible=!0,null==t.__bounds&&(t.__bounds=new(l().default)),this.__graphics.__getBounds(t.__bounds,o().default.__identity))},__updateTransforms:function(t){var e=null!=t,n=e?t:this.__transform;null==this.__worldTransform&&(this.__worldTransform=new(o().default)),null==this.__renderTransform&&(this.__renderTransform=new(o().default));var i,r=null!=this.__renderParent?this.__renderParent:this.parent;e||null==this.parent?this.__worldTransform.copyFrom(n):(i=this.parent.__worldTransform,this.__worldTransform.a=n.a*i.a+n.b*i.c,this.__worldTransform.b=n.a*i.b+n.b*i.d,this.__worldTransform.c=n.c*i.a+n.d*i.c,this.__worldTransform.d=n.c*i.b+n.d*i.d,this.__worldTransform.tx=n.tx*i.a+n.ty*i.c+i.tx,this.__worldTransform.ty=n.tx*i.b+n.ty*i.d+i.ty),e||null==r?this.__renderTransform.copyFrom(n):(i=r.__renderTransform,this.__renderTransform.a=n.a*i.a+n.b*i.c,this.__renderTransform.b=n.a*i.b+n.b*i.d,this.__renderTransform.c=n.c*i.a+n.d*i.c,this.__renderTransform.d=n.c*i.b+n.d*i.d,this.__renderTransform.tx=n.tx*i.a+n.ty*i.c+i.tx,this.__renderTransform.ty=n.tx*i.b+n.ty*i.d+i.ty),null!=this.__scrollRect&&this.__renderTransform.__translateTransformed(-this.__scrollRect.x,-this.__scrollRect.y)},get_alpha:function(){return this.__alpha},set_alpha:function(t){return t>1&&(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<n.length;){var i=n[e];++e,i(t)}this.future.__completeListeners=null}return this},completeWith:function(t){return t.onComplete(r(this,this.complete)),t.onError(r(this,this.error)),t.onProgress(r(this,this.progress)),this},error:function(t){if(!this.future.isComplete&&(this.future.isError=!0,this.future.error=t,null!=this.future.__errorListeners)){for(var e=0,n=this.future.__errorListeners;e<n.length;){var i=n[e];++e,i(t)}this.future.__errorListeners=null}return this},progress:function(t,e){if(!this.future.isError&&!this.future.isComplete&&null!=this.future.__progressListeners)for(var n=0,i=this.future.__progressListeners;n<i.length;){var r=i[n];++n,r(t,e)}return this},get_isComplete:function(){return this.future.isComplete},get_isError:function(){return this.future.isError}}).__class__=i["lime.app.Promise"]=a;var s=a.prototype;Object.defineProperties(s,{isComplete:{get:s.get_isComplete},isError:{get:s.get_isError}}),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(t,e,n,i,r,a,s,o){null==o&&(o=0),null==s&&(s=0),null==a&&(a=0),null==r&&(r=0),null==i&&(i=1),null==n&&(n=1),null==e&&(e=1),null==t&&(t=1),this.redMultiplier=t,this.greenMultiplier=e,this.blueMultiplier=n,this.alphaMultiplier=i,this.redOffset=r,this.greenOffset=a,this.blueOffset=s,this.alphaOffset=o};a.__name__=["openfl","geom","ColorTransform"],(a.prototype={concat:function(t){this.redMultiplier*=t.redMultiplier,this.greenMultiplier*=t.greenMultiplier,this.blueMultiplier*=t.blueMultiplier,this.alphaMultiplier*=t.alphaMultiplier,this.redOffset=t.redMultiplier*this.redOffset+t.redOffset,this.greenOffset=t.greenMultiplier*this.greenOffset+t.greenOffset,this.blueOffset=t.blueMultiplier*this.blueOffset+t.blueOffset,this.alphaOffset=t.alphaMultiplier*this.alphaOffset+t.alphaOffset},toString:function(){return"(redMultiplier="+this.redMultiplier+", greenMultiplier="+this.greenMultiplier+", blueMultiplier="+this.blueMultiplier+", alphaMultiplier="+this.alphaMultiplier+", redOffset="+this.redOffset+", greenOffset="+this.greenOffset+", blueOffset="+this.blueOffset+", alphaOffset="+this.alphaOffset+")"},__clone:function(){return new a(this.redMultiplier,this.greenMultiplier,this.blueMultiplier,this.alphaMultiplier,this.redOffset,this.greenOffset,this.blueOffset,this.alphaOffset)},__copyFrom:function(t){this.redMultiplier=t.redMultiplier,this.greenMultiplier=t.greenMultiplier,this.blueMultiplier=t.blueMultiplier,this.alphaMultiplier=t.alphaMultiplier,this.redOffset=t.redOffset,this.greenOffset=t.greenOffset,this.blueOffset=t.blueOffset,this.alphaOffset=t.alphaOffset},__combine:function(t){this.redMultiplier*=t.redMultiplier,this.greenMultiplier*=t.greenMultiplier,this.blueMultiplier*=t.blueMultiplier,this.alphaMultiplier*=t.alphaMultiplier,this.redOffset+=t.redOffset,this.greenOffset+=t.greenOffset,this.blueOffset+=t.blueOffset,this.alphaOffset+=t.alphaOffset},__identity:function(){this.redMultiplier=1,this.greenMultiplier=1,this.blueMultiplier=1,this.alphaMultiplier=1,this.redOffset=0,this.greenOffset=0,this.blueOffset=0,this.alphaOffset=0},__equals:function(t,e){return null==e&&(e=!1),!(null==t||this.redMultiplier!=t.redMultiplier||this.greenMultiplier!=t.greenMultiplier||this.blueMultiplier!=t.blueMultiplier||!e&&this.alphaMultiplier!=t.alphaMultiplier||this.redOffset!=t.redOffset||this.greenOffset!=t.greenOffset||this.blueOffset!=t.blueOffset)&&this.alphaOffset==t.alphaOffset},__isDefault:function(){return 1==this.redMultiplier&&1==this.greenMultiplier&&1==this.blueMultiplier&&1==this.alphaMultiplier&&0==this.redOffset&&0==this.greenOffset&&0==this.blueOffset&&0==this.alphaOffset},get_color:function(){return r().default.int(this.redOffset)<<16|r().default.int(this.greenOffset)<<8|r().default.int(this.blueOffset)},set_color:function(t){return this.redOffset=t>>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&&t<this.get_right()&&e<this.get_bottom()},containsPoint:function(t){return this.contains(t.x,t.y)},containsRect:function(t){return t.width<=0||t.height<=0?t.x>this.x&&t.y>this.y&&t.get_right()<this.get_right()&&t.get_bottom()<this.get_bottom():t.x>=this.x&&t.y>=this.y&&t.get_right()<=this.get_right()&&t.get_bottom()<=this.get_bottom()},copyFrom:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},equals:function(t){return null!=t&&this.x==t.x&&this.y==t.y&&this.width==t.width&&this.height==t.height},inflate:function(t,e){this.x-=t,this.width+=2*t,this.y-=e,this.height+=2*e},inflatePoint:function(t){this.inflate(t.x,t.y)},intersection:function(t){var e=this.x<t.x?t.x:this.x,n=this.get_right()>t.get_right()?t.get_right():this.get_right();if(n<=e)return new a;var i=this.y<t.y?t.y:this.y,r=this.get_bottom()>t.get_bottom()?t.get_bottom():this.get_bottom();return r<=i?new a:new a(e,i,n-e,r-i)},intersects:function(t){var e=this.x<t.x?t.x:this.x;if((this.get_right()>t.get_right()?t.get_right():this.get_right())<=e)return!1;var n=this.y<t.y?t.y:this.y;return(this.get_bottom()>t.get_bottom()?t.get_bottom():this.get_bottom())>n},isEmpty:function(){return this.width<=0||this.height<=0},offset:function(t,e){this.x+=t,this.y+=e},offsetPoint:function(t){this.x+=t.x,this.y+=t.y},setEmpty:function(){this.x=this.y=this.width=this.height=0},setTo:function(t,e,n,i){this.x=t,this.y=e,this.width=n,this.height=i},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 s<e&&(e=s),o<i&&(i=o),s>n&&(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),s<e&&(e=s),o<i&&(i=o),s>n&&(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),s<e&&(e=s),o<i&&(i=o),s>n&&(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.get_right()?t.get_right():this.get_right(),i=this.y>t.y?t.y:this.y,r=this.get_bottom()<t.get_bottom()?t.get_bottom():this.get_bottom();return new a(e,i,n-e,r-i)},__contract:function(t,e,n,i){0==this.width&&0==this.height||(this.x<t&&(this.x=t),this.y<e&&(this.y=e),this.get_right()>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),r<t+n&&(this.width=t+n-this.x),a<e+i&&(this.height=e+i-this.y)},__toFlashRectangle:function(){return null},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["lime.math.Rectangle"]=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=(n(2).default,function(t,e){null==e&&(e=0),null==t&&(t=0),this.x=t,this.y=e});r.__name__=["lime","math","Vector2"],(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)},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)},__toFlashPoint:function(){return null},get_length:function(){return Math.sqrt(this.x*this.x+this.y*this.y)}}).__class__=i["lime.math.Vector2"]=r,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))},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__=["_UInt","UInt_Impl_"],(r.prototype={}).__class__=i["_UInt.UInt_Impl_"]=r,r.gt=function(t,e){var n=t<0;return n!=e<0?n:t>e},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<a;){var s=r++;if(e[s]!=n[s]){i=!1;break}}if(i)return 0}for(var o,l,u,_,f,d,h,c,p=null,g=0,m=this.height;g<m;)for(var v=g++,w=0,y=this.width;w<y;){var b=w++;o=!1,_=0,(l=this.getPixel32(b,v))!=(u=t.getPixel32(b,v))&&(d=(l>>>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<s;){var o=a++;r.set(o,e.readUnsignedInt())}return r},histogram:function(t){for(var e=null!=t?t:new(u().default)(0,0,this.width,this.height),n=this.getPixels(e),i=[],r=0;r<4;){r++;for(var a=[],s=0;s<256;){s++;a.push(0)}i.push(a)}for(var o=i,l=0,_=m().default.get_length(n);l<_;){++o[l++%4][n.readUnsignedByte()]}return o},hitTest:function(t,e,i,r,a){if(null==a&&(a=1),!this.readable)return!1;if(g().default.is(i,x().default)&&(i=l().default.__cast(i,x().default).__bitmapData),g().default.is(i,n(29).default)){var s=i,o=g().default.int(s.x-t.x),_=g().default.int(s.y-t.y);if(this.rect.contains(o,_))if((this.getPixel32(o,_)>>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<T;){E++;if(v=p.readUnsignedInt(),w=y.readUnsignedInt(),(v>>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<I;){M++;if((S.readUnsignedInt()>>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<d;)for(var h=f++,c=0,m=this.width;c<m;){var v=c++,w=0,y=0,b=0,x=255;r?(w=b=y=e+a()%s,x=255):(o&&(w=e+a()%s),l&&(b=e+a()%s),u&&(y=e+a()%s),_&&(x=e+a()%s));var E=x;E=((E=((E=(E<<8)+w)<<8)+b)<<8)+y,this.setPixel32(v,h,E)}}},paletteMap:function(t,e,n,i,r,a,s){for(var o,l,_=g().default.int(e.width),f=g().default.int(e.height),d=t.getPixels(e),h=0,c=f*_;h<c;){var p=h++;o=d.readUnsignedInt(),l=(null==s?-16777216&o:s[o>>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())<i)throw new(n(6).default)(new(n(30).default)("End of file was encountered.",2030));this.image.setPixels(t.__toLimeRectangle(),m().default.toBytePointer(e),1,n(312).default.toLimeEndian(e.get_endian()))}},setVector:function(t,e){var n=new(p().default)(0);m().default.set_length(n,4*e.get_length());for(var i=0;i<e.get_length();){var r=e.get(i);++i,n.writeUnsignedInt(r)}n.position=0,this.setPixels(t,n)},threshold:function(t,e,n,i,r,a,s,o){return null==o&&(o=!1),null==s&&(s=-1),null==a&&(a=0),null==t||null==e||null==n||e.x>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);n<i;){e[4*n+++3]=t.readUnsignedByte()}this.image.version++},__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=!0,x.context=b.__srcContext,x.allowSmoothing=p,x.maskManager=new(h().default)(x),x.blendModeManager=new(c().default)(x),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);var T=t.__renderable;t.__isMask&&(t.__renderable=!0);var R=t.__worldAlpha;t.__worldAlpha=1,t.__renderCanvas(x),t.__renderable=T,t.__worldAlpha=R,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 S=s().default.context;S.bindFramebuffer(S.FRAMEBUFFER,this.__getFramebuffer(S)),S.viewport(0,0,this.width,this.height);var M=new(o().default)(null,S,this),I=M.renderSession;I.clearRenderDirty=!0,I.shaderManager=l().default.__cast(null,o().default).renderSession.shaderManager;var D=t.__worldTransform;t.__updateTransforms(e),t.__updateChildren(!1),t.__renderGL(M.renderSession),t.__updateTransforms(D),t.__updateChildren(!0),S.bindFramebuffer(S.FRAMEBUFFER,null)}},__fromBase64:function(t,e){var n=E().default.fromBase64(t,e);this.__fromImage(n)},__fromBytes:function(t,e){var n=E().default.fromBytes(m().default.toBytes(t));this.__fromImage(n),null!=e&&this.__applyAlpha(e)},__fromFile:function(t){var e=E().default.fromFile(t);this.__fromImage(e)},__fromImage:function(t){null!=t&&null!=t.buffer&&(this.image=t,this.width=t.width,this.height=t.height,this.rect=new(u().default)(0,0,t.width,t.height),this.readable=!0,this.__isValid=!0)},__getBounds:function(t,e){var n=u().default.__pool.get();this.rect.__transform(n,e),t.__expand(n.x,n.y,n.width,n.height),u().default.__pool.release(n)},__getFramebuffer:function(t){return null!=this.__framebuffer&&this.__framebufferContext==t||(this.getTexture(t),this.__framebufferContext=t,this.__framebuffer=t.createFramebuffer(),t.bindFramebuffer(t.FRAMEBUFFER,this.__framebuffer),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,this.__texture,0)),this.__framebuffer},__loadFromBase64:function(t,e){var n=this;return E().default.loadFromBase64(t,e).then(function(t){return n.__fromImage(t),T().default.withValue(n)})},__loadFromBytes:function(t,e){var n=this;return E().default.loadFromBytes(m().default.toBytes(t)).then(function(t){return n.__fromImage(t),null!=e&&n.__applyAlpha(e),T().default.withValue(n)})},__loadFromFile:function(t){var e=this;return E().default.loadFromFile(t).then(function(t){return e.__fromImage(t),T().default.withValue(e)})},__renderCairo:function(t){},__renderCairoMask:function(t){},__renderCanvas:function(t){if(this.readable){this.image.type==b().default.DATA&&_().default.convertToCanvas(this.image);var e=t.context;null==this.__worldTransform&&(this.__worldTransform=new(a().default)),e.globalAlpha=1;var n=this.__worldTransform;t.roundPixels?e.setTransform(n.a,n.b,n.c,n.d,g().default.int(n.tx),g().default.int(n.ty)):e.setTransform(n.a,n.b,n.c,n.d,n.tx,n.ty),e.drawImage(this.image.get_src(),0,0)}},__renderCanvasMask:function(t){},__renderGL:function(t){var e=t.renderer,n=t.gl;t.blendModeManager.setBlendMode("normal");var i=t.shaderManager.defaultShader;i.get_data().uImage0.input=this;var r=t.allowSmoothing&&t.upscaled;i.get_data().uImage0.smoothing=r,i.get_data().uMatrix.value=e.getMatrix(this.__worldTransform),t.shaderManager.setShader(i),n.bindBuffer(n.ARRAY_BUFFER,this.getBuffer(n,1,this.__worldColorTransform)),n.vertexAttribPointer(i.get_data().aPosition.index,3,n.FLOAT,!1,24,y().default.fromInt(0)),n.vertexAttribPointer(i.get_data().aTexCoord.index,2,n.FLOAT,!1,24,y().default.fromInt(12)),n.vertexAttribPointer(i.get_data().aAlpha.index,1,n.FLOAT,!1,24,y().default.fromInt(20)),n.drawArrays(n.TRIANGLE_STRIP,0,4)},__renderGLMask:function(t){var e=t.renderer,i=t.gl,r=n(59).default.maskShader;r.get_data().uImage0.input=this;var a=t.allowSmoothing&&t.upscaled;r.get_data().uImage0.smoothing=a,r.get_data().uMatrix.value=e.getMatrix(this.__worldTransform),t.shaderManager.setShader(r),i.bindBuffer(i.ARRAY_BUFFER,this.getBuffer(i,1,this.__worldColorTransform)),i.vertexAttribPointer(r.get_data().aPosition.index,3,i.FLOAT,!1,24,y().default.fromInt(0)),i.vertexAttribPointer(r.get_data().aTexCoord.index,2,i.FLOAT,!1,24,y().default.fromInt(12)),i.drawArrays(i.TRIANGLE_STRIP,0,4)},__resize:function(t,e){this.width=t,this.height=e,this.rect.width=t,this.rect.height=e},__sync:function(){_().default.sync(this.image,!1)},__updateChildren:function(t){},__updateMask:function(t){},__updateTransforms:function(t){null==t?this.__worldTransform.identity():this.__worldTransform=t}}).__class__=i["openfl.display.BitmapData"]=A,A.fromBase64=function(t,e){var n=new A(0,0,!0,0);return n.__fromBase64(t,e),n},A.fromBytes=function(t,e){var n=new A(0,0,!0,0);return n.__fromBytes(t,e),n},A.fromCanvas=function(t,e){if(null==e&&(e=!0),null==t)return null;var n=new A(0,0,e,0);return n.__fromImage(E().default.fromCanvas(t)),n.image.set_transparent(e),n},A.fromFile=function(t){var e=new A(0,0,!0,0);return e.__fromFile(t),e},A.fromImage=function(t,e){if(null==e&&(e=!0),null==t||null==t.buffer)return null;var n=new A(0,0,e,0);return n.__fromImage(t),n.image.set_transparent(e),n},A.fromTexture=function(t){if(null==t)return null;var e=new A(t.__width,t.__height,!0,0);return e.readable=!1,e.__texture=t.__textureID,e.__textureContext=t.__textureContext,e.image=null,e},A.loadFromBase64=function(t,e){return E().default.loadFromBase64(t,e).then(function(t){return T().default.withValue(A.fromImage(t))})},A.loadFromBytes=function(t,e){return E().default.loadFromBytes(m().default.toBytes(t)).then(function(t){var n=A.fromImage(t);return null!=e&&n.__applyAlpha(e),T().default.withValue(n)})},A.loadFromFile=function(t){return E().default.loadFromFile(t).then(function(t){return T().default.withValue(A.fromImage(t))})},A.__bufferStride=26,A.__supportsBGRA=null,A.__tempVector=new(n(42).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(1).default,r=(n(2).default,n(3).default);function a(){return n(16)}function s(){return n(302)}function o(){return n(303)}function l(){return n(304)}function u(){return n(6)}function _(){return n(175)}function f(){return n(305)}function d(){return n(17)}var h=function(t){null==t&&(t=0);var e=a().default.alloc(t);a().default.call(this,e.b.buffer),this.__length=t,null==h.__defaultEndian&&(n(46).default.get_endianness()==n(64).default.LITTLE_ENDIAN?h.__defaultEndian="littleEndian":h.__defaultEndian="bigEndian"),this.set_endian(h.__defaultEndian),this.position=0};h.__name__=["openfl","utils","ByteArrayData"],h.__interfaces__=[n(123).default,n(92).default],h.__super__=a().default,h.prototype=r(a().default.prototype,{clear:function(){this.set_length(0),this.position=0},compress: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.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.position<this.l)return 0!=this.get(this.position++);throw new(u().default)(new(_().default))},readByte:function(){var t=this.readUnsignedByte();return 0!=(128&t)?t-256:t},readBytes:function(t,e,n){if(null==n&&(n=0),null==e&&(e=0),0==n&&(n=this.l-this.position),this.position+n>this.l)throw new(u().default)(new(_().default));t.get_length()<e+n&&t.__resize(e+n),t.blit(e,this,this.position,n),this.position+=n},readDouble:function(){var t=this.readInt(),e=this.readInt();return"littleEndian"==this.get_endian()?f().default.i64ToDouble(t,e):f().default.i64ToDouble(e,t)},readFloat:function(){return f().default.i32ToFloat(this.readInt())},readInt:function(){var t=this.readUnsignedByte(),e=this.readUnsignedByte(),n=this.readUnsignedByte(),i=this.readUnsignedByte();return"littleEndian"==this.get_endian()?i<<24|n<<16|e<<8|t:t<<24|e<<16|n<<8|i},readMultiByte:function(t,e){return this.readUTFBytes(t)},readShort:function(){var t,e=this.readUnsignedByte(),n=this.readUnsignedByte();return 0!=(32768&(t="littleEndian"==this.get_endian()?n<<8|e:e<<8|n))?t-65536:t},readUnsignedByte:function(){if(this.position<this.l)return this.get(this.position++);throw new(u().default)(new(_().default))},readUnsignedInt:function(){var t=this.readUnsignedByte(),e=this.readUnsignedByte(),n=this.readUnsignedByte(),i=this.readUnsignedByte();return"littleEndian"==this.get_endian()?i<<24|n<<16|e<<8|t:t<<24|e<<16|n<<8|i},readUnsignedShort:function(){var t=this.readUnsignedByte(),e=this.readUnsignedByte();return"littleEndian"==this.get_endian()?(e<<8)+t:t<<8|e},readUTF:function(){var t=this.readUnsignedShort();return this.readUTFBytes(t)},readUTFBytes:function(t){if(this.position+t>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.l<t&&(this.l=t)},__setData:function(t){this.b=t.b,this.__length=t.l,this.data=t.data},get_bytesAvailable:function(){return this.l-this.position},get_endian:function(){return this.__endian},set_endian:function(t){return this.__endian=t},set_length:function(t){return t>0&&(this.__resize(t),t<this.position&&(this.position=t)),this.l=t,t}}),h.prototype.__class__=i["openfl.utils.ByteArrayData"]=h;var c=h.prototype;t.Object.defineProperties(c,{bytesAvailable:{get:function(){return this.get_bytesAvailable()}},endian:{get:function(){return this.get_endian()},set:function(t){return this.set_endian(t)}},length:{get:function(){return this.get_length()},set:function(t){return this.set_length(t)}}}),h.fromBytes=function(t){var e=new h;return e.__fromBytes(t),e},h.__defaultEndian=null,e.default=h}).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(11)}function a(){return n(4)}function s(){return n(5)}function o(){return n(18)}function l(){return n(64)}var u=function(){};u.__name__=["lime","system","System"],(u.prototype={}).__class__=i["lime.system.System"]=u,u.embed=function(t,e,i,o,l){if(null!=u.__applicationEntryPoint&&null!=u.__applicationConfig&&u.__applicationEntryPoint.exists(t)){var _=null;if(null==(_="string"==typeof e?r().default.get_document().getElementById(e):null==e?r().default.get_document().createElement("div"):e))return void r().default.get_window().console.log("[lime.embed] ERROR: Cannot find target element: "+a().default.string(e));null==i&&(i=0),null==o&&(o=0);var f=u.__applicationConfig.get(t),d={};if(u.__copyMissingFields(d,f),null!=l){d.windows=[],l instanceof Array&&null==l.__enum__?d.windows=l:d.windows[0]=l;for(var h=0,c=d.windows.length;h<c;){var p=h++;if(p<f.windows.length&&u.__copyMissingFields(d.windows[p],f.windows[p]),u.__copyMissingFields(d.windows[p].parameters,f.windows[p].parameters),"string"==typeof l.background){var g=n(12).default.replace(a().default.string(l.background),"#","");g.indexOf("0x")>-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);n<i.length;){var r=i[n];++n,s().default.hasField(t,r)||s().default.setField(t,r,s().default.field(e,r))}},u.__getDirectory=function(t){return null},u.__registerEntryPoint=function(t,e,n){null==u.__applicationConfig&&(u.__applicationConfig=new(o().default)),null==u.__applicationEntryPoint&&(u.__applicationEntryPoint=new(o().default)),u.__applicationEntryPoint.set(t,e),u.__applicationConfig.set(t,n)},u.__runProcess=function(t,e){return null},u.get_allowScreenTimeout=function(){return!0},u.set_allowScreenTimeout=function(t){return!0},u.get_applicationDirectory=function(){return null==u.__applicationDirectory&&(u.__applicationDirectory=u.__getDirectory(0)),u.__applicationDirectory},u.get_applicationStorageDirectory=function(){return null==u.__applicationStorageDirectory&&(u.__applicationStorageDirectory=u.__getDirectory(1)),u.__applicationStorageDirectory},u.get_deviceModel=function(){return u.__deviceModel},u.get_deviceVendor=function(){return u.__deviceVendor},u.get_desktopDirectory=function(){return null==u.__desktopDirectory&&(u.__desktopDirectory=u.__getDirectory(2)),u.__desktopDirectory},u.get_documentsDirectory=function(){return null==u.__documentsDirectory&&(u.__documentsDirectory=u.__getDirectory(3)),u.__documentsDirectory},u.get_endianness=function(){if(null==u.__endianness){var t=new ArrayBuffer(2),e=null!=t?new Uint8Array(t,0):null,n=null!=t?new Uint16Array(t,0):null;e[0]=170,e[1]=187,u.__endianness=43707==n[0]?l().default.BIG_ENDIAN:l().default.LITTLE_ENDIAN}return u.__endianness},u.get_fontsDirectory=function(){return null==u.__fontsDirectory&&(u.__fontsDirectory=u.__getDirectory(4)),u.__fontsDirectory},u.get_numDisplays=function(){return 1},u.get_platformLabel=function(){if(null==u.__platformLabel){var t=u.get_platformName(),e=u.get_platformVersion();null!=t&&null!=e?u.__platformLabel=t+" "+e:null!=t&&(u.__platformLabel=t)}return u.__platformLabel},u.get_platformName=function(){return null==u.__platformName&&(u.__platformName="HTML5"),u.__platformName},u.get_platformVersion=function(){return u.__platformVersion},u.get_userDirectory=function(){return null==u.__userDirectory&&(u.__userDirectory=u.__getDirectory(5)),u.__userDirectory},u.__directories=new(n(22).default),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;var r=function(){};r.__name__=["haxe","Log"],(r.prototype={}).__class__=i["haxe.Log"]=r,r.trace=function(t,e){n(20).default.__trace(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(1).default;n(2).default;var r=function(){this.length=0};r.__name__=["List"],(r.prototype={add:function(t){var e=new(n(261).default)(t,null);null==this.h?this.h=e:this.q.next=e,this.q=e,this.length++},pop:function(){if(null==this.h)return null;var t=this.h.item;return this.h=this.h.next,null==this.h&&(this.q=null),this.length--,t},clear:function(){this.h=null,this.q=null,this.length=0},remove:function(t){for(var e=null,n=this.h;null!=n;){if(n.item==t)return null==e?this.h=n.next:e.next=n.next,this.q==n&&(this.q=e),this.length--,!0;e=n,n=n.next}return!1},iterator:function(){return new(n(262).default)(this.h)}}).__class__=i.List=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)}var a=function(){};a.__name__=["lime","graphics","opengl","GL"],(a.prototype={}).__class__=i["lime.graphics.opengl.GL"]=a,Object.defineProperties(a,{type:{get:function(){return a.get_type()}},version:{get:function(){return a.get_version()}}}),a.activeTexture=function(t){a.context.activeTexture(t)},a.attachShader=function(t,e){a.context.attachShader(t,e)},a.beginQuery=function(t,e){a.context.beginQuery(t,e)},a.beginTransformFeedback=function(t){a.context.beginTransformFeedback(t)},a.bindAttribLocation=function(t,e,n){a.context.bindAttribLocation(t,e,n)},a.bindBuffer=function(t,e){a.context.bindBuffer(t,e)},a.bindBufferBase=function(t,e,n){a.context.bindBufferBase(t,e,n)},a.bindBufferRange=function(t,e,n,i,r){a.context.bindBufferRange(t,e,n,i,r)},a.bindFramebuffer=function(t,e){a.context.bindFramebuffer(t,e)},a.bindRenderbuffer=function(t,e){a.context.bindRenderbuffer(t,e)},a.bindSampler=function(t,e){a.context.bindSampler(t,e)},a.bindTexture=function(t,e){a.context.bindTexture(t,e)},a.bindTransformFeedback=function(t,e){a.context.bindTransformFeedback(t,e)},a.bindVertexArray=function(t){a.context.bindVertexArray(t)},a.blitFramebuffer=function(t,e,n,i,r,s,o,l,u,_){a.context.blitFramebuffer(t,e,n,i,r,s,o,l,u,_)},a.blendColor=function(t,e,n,i){a.context.blendColor(t,e,n,i)},a.blendEquation=function(t){a.context.blendEquation(t)},a.blendEquationSeparate=function(t,e){a.context.blendEquationSeparate(t,e)},a.blendFunc=function(t,e){a.context.blendFunc(t,e)},a.blendFuncSeparate=function(t,e,n,i){a.context.blendFuncSeparate(t,e,n,i)},a.bufferData=function(t,e,n,i){a.context.bufferData(t,e,n,i)},a.bufferDataWEBGL=function(t,e,n,i,r){a.context.bufferDataWEBGL(t,e,n,i,r)},a.bufferSubData=function(t,e,n,i){a.context.bufferSubData(t,e,n,i)},a.bufferSubDataWEBGL=function(t,e,n,i,r){a.context.bufferSubDataWEBGL(t,e,n,i,r)},a.checkFramebufferStatus=function(t){return a.context.checkFramebufferStatus(t)},a.clear=function(t){a.context.clear(t)},a.clearBufferfi=function(t,e,n,i){a.context.clearBufferfi(t,e,n,i)},a.clearBufferfv=function(t,e,n){a.context.clearBufferfv(t,e,n)},a.clearBufferfvWEBGL=function(t,e,n,i){a.context.clearBufferfvWEBGL(t,e,n,i)},a.clearBufferiv=function(t,e,n){a.context.clearBufferiv(t,e,n)},a.clearBufferivWEBGL=function(t,e,n,i){a.context.clearBufferivWEBGL(t,e,n,i)},a.clearBufferuiv=function(t,e,n){a.context.clearBufferuiv(t,e,n)},a.clearBufferuivWEBGL=function(t,e,n,i){a.context.clearBufferuivWEBGL(t,e,n,i)},a.clearColor=function(t,e,n,i){a.context.clearColor(t,e,n,i)},a.clearDepth=function(t){a.context.clearDepth(t)},a.clearDepthf=function(t){a.context.clearDepthf(t)},a.clearStencil=function(t){a.context.clearStencil(t)},a.clientWaitSync=function(t,e,n){return a.context.clientWaitSync(t,e,n)},a.colorMask=function(t,e,n,i){a.context.colorMask(t,e,n,i)},a.compileShader=function(t){a.context.compileShader(t)},a.compressedTexImage2D=function(t,e,n,i,r,s,o,l){a.context.compressedTexImage2D(t,e,n,i,r,s,o,l)},a.compressedTexImage2DWEBGL=function(t,e,n,i,r,s,o,l,u){a.context.compressedTexImage2DWEBGL(t,e,n,i,r,s,o,l,u)},a.compressedTexImage3D=function(t,e,n,i,r,s,o,l,u){a.context.compressedTexImage3D(t,e,n,i,r,s,o,l,u)},a.compressedTexImage3DWEBGL=function(t,e,n,i,r,s,o,l,u,_){a.context.compressedTexImage3DWEBGL(t,e,n,i,r,s,o,l,u,_)},a.compressedTexSubImage2D=function(t,e,n,i,r,s,o,l,u){a.context.compressedTexSubImage2D(t,e,n,i,r,s,o,l,u)},a.compressedTexSubImage2DWEBGL=function(t,e,n,i,r,s,o,l,u,_){a.context.compressedTexSubImage2DWEBGL(t,e,n,i,r,s,o,l,u,_)},a.compressedTexSubImage3D=function(t,e,n,i,r,s,o,l,u,_,f){a.context.compressedTexSubImage3D(t,e,n,i,r,s,o,l,u,_,f)},a.compressedTexSubImage3DWEBGL=function(t,e,n,i,r,s,o,l,u,_,f,d){a.context.compressedTexSubImage3DWEBGL(t,e,n,i,r,s,o,l,u,_,f,d)},a.copyBufferSubData=function(t,e,n,i,r){a.context.copyBufferSubData(t,e,n,i,r)},a.copyTexImage2D=function(t,e,n,i,r,s,o,l){a.context.copyTexImage2D(t,e,n,i,r,s,o,l)},a.copyTexSubImage2D=function(t,e,n,i,r,s,o,l){a.context.copyTexSubImage2D(t,e,n,i,r,s,o,l)},a.copyTexSubImage3D=function(t,e,n,i,r,s,o,l,u){a.context.copyTexSubImage3D(t,e,n,i,r,s,o,l,u)},a.createBuffer=function(){return a.context.createBuffer()},a.createFramebuffer=function(){return a.context.createFramebuffer()},a.createProgram=function(){return a.context.createProgram()},a.createQuery=function(){return a.context.createQuery()},a.createRenderbuffer=function(){return a.context.createRenderbuffer()},a.createSampler=function(){return a.context.createSampler()},a.createShader=function(t){return a.context.createShader(t)},a.createTexture=function(){return a.context.createTexture()},a.createTransformFeedback=function(){return a.context.createTransformFeedback()},a.createVertexArray=function(){return a.context.createVertexArray()},a.cullFace=function(t){a.context.cullFace(t)},a.deleteBuffer=function(t){a.context.deleteBuffer(t)},a.deleteFramebuffer=function(t){a.context.deleteFramebuffer(t)},a.deleteProgram=function(t){a.context.deleteProgram(t)},a.deleteQuery=function(t){a.context.deleteQuery(t)},a.deleteRenderbuffer=function(t){a.context.deleteRenderbuffer(t)},a.deleteSampler=function(t){a.context.deleteSampler(t)},a.deleteShader=function(t){a.context.deleteShader(t)},a.deleteSync=function(t){a.context.deleteSync(t)},a.deleteTexture=function(t){a.context.deleteTexture(t)},a.deleteTransformFeedback=function(t){a.context.deleteTransformFeedback(t)},a.deleteVertexArray=function(t){a.context.deleteVertexArray(t)},a.depthFunc=function(t){a.context.depthFunc(t)},a.depthMask=function(t){a.context.depthMask(t)},a.depthRange=function(t,e){a.context.depthRange(t,e)},a.depthRangef=function(t,e){a.context.depthRangef(t,e)},a.detachShader=function(t,e){a.context.detachShader(t,e)},a.disable=function(t){a.context.disable(t)},a.disableVertexAttribArray=function(t){a.context.disableVertexAttribArray(t)},a.drawArrays=function(t,e,n){a.context.drawArrays(t,e,n)},a.drawArraysInstanced=function(t,e,n,i){a.context.drawArraysInstanced(t,e,n,i)},a.drawBuffers=function(t){a.context.drawBuffers(t)},a.drawElements=function(t,e,n,i){a.context.drawElements(t,e,n,r().default.fromInt(i))},a.drawElementsInstanced=function(t,e,n,i,r){a.context.drawElementsInstanced(t,e,n,i,r)},a.drawRangeElements=function(t,e,n,i,r,s){a.context.drawRangeElements(t,e,n,i,r,s)},a.enable=function(t){a.context.enable(t)},a.enableVertexAttribArray=function(t){a.context.enableVertexAttribArray(t)},a.endQuery=function(t){a.context.endQuery(t)},a.endTransformFeedback=function(){a.context.endTransformFeedback()},a.fenceSync=function(t,e){return a.context.fenceSync(t,e)},a.finish=function(){a.context.finish()},a.flush=function(){a.context.flush()},a.framebufferRenderbuffer=function(t,e,n,i){a.context.framebufferRenderbuffer(t,e,n,i)},a.framebufferTexture2D=function(t,e,n,i,r){a.context.framebufferTexture2D(t,e,n,i,r)},a.framebufferTextureLayer=function(t,e,n,i,r){a.context.framebufferTextureLayer(t,e,n,i,r)},a.frontFace=function(t){a.context.frontFace(t)},a.generateMipmap=function(t){a.context.generateMipmap(t)},a.getActiveAttrib=function(t,e){return a.context.getActiveAttrib(t,e)},a.getActiveUniform=function(t,e){return a.context.getActiveUniform(t,e)},a.getActiveUniformBlocki=function(t,e,n){return a.context.getActiveUniformBlocki(t,e,n)},a.getActiveUniformBlockiv=function(t,e,n,i){a.context.getActiveUniformBlockiv(t,e,n,i)},a.getActiveUniformBlockName=function(t,e){return a.context.getActiveUniformBlockName(t,e)},a.getActiveUniformBlockParameter=function(t,e,n){return a.context.getActiveUniformBlockParameter(t,e,n)},a.getActiveUniforms=function(t,e,n){return a.context.getActiveUniforms(t,e,n)},a.getActiveUniformsiv=function(t,e,n,i){a.context.getActiveUniformsiv(t,e,n,i)},a.getAttachedShaders=function(t){return a.context.getAttachedShaders(t)},a.getAttribLocation=function(t,e){return a.context.getAttribLocation(t,e)},a.getBoolean=function(t){return a.context.getBoolean(t)},a.getBooleanv=function(t,e){a.context.getBooleanv(t,e)},a.getBufferParameter=function(t,e){return a.context.getBufferParameter(t,e)},a.getBufferParameteri=function(t,e){return a.context.getBufferParameteri(t,e)},a.getBufferParameteri64v=function(t,e,n){a.context.getBufferParameteri64v(t,e,n)},a.getBufferParameteriv=function(t,e,n){a.context.getBufferParameteriv(t,e,n)},a.getBufferPointerv=function(t,e){return a.context.getBufferPointerv(t,e)},a.getBufferSubData=function(t,e,n,i){a.context.getBufferSubData(t,e,n,i)},a.getBufferSubDataWEBGL=function(t,e,n,i,r){a.context.getBufferSubDataWEBGL(t,e,n,i,r)},a.getContextAttributes=function(){return a.context.getContextAttributes()},a.getError=function(){return a.context.getError()},a.getExtension=function(t){return a.context.getExtension(t)},a.getFloat=function(t){return a.context.getFloat(t)},a.getFloatv=function(t,e){a.context.getFloatv(t,e)},a.getFragDataLocation=function(t,e){return a.context.getFragDataLocation(t,e)},a.getFramebufferAttachmentParameter=function(t,e,n){return a.context.getFramebufferAttachmentParameter(t,e,n)},a.getFramebufferAttachmentParameteri=function(t,e,n){return a.context.getFramebufferAttachmentParameteri(t,e,n)},a.getFramebufferAttachmentParameteriv=function(t,e,n,i){a.context.getFramebufferAttachmentParameteriv(t,e,n,i)},a.getIndexedParameter=function(t,e){return a.context.getIndexedParameter(t,e)},a.getInteger=function(t){return a.context.getInteger(t)},a.getInteger64=function(t){return a.context.getInteger64(t)},a.getInteger64i=function(t){return a.context.getInteger64i(t)},a.getInteger64i_v=function(t,e,n){a.context.getInteger64i_v(t,e,n)},a.getInteger64v=function(t,e){a.context.getInteger64v(t,e)},a.getIntegeri_v=function(t,e,n){a.context.getIntegeri_v(t,e,n)},a.getIntegerv=function(t,e){a.context.getIntegerv(t,e)},a.getInternalformati=function(t,e,n){return a.context.getInternalformati(t,e,n)},a.getInternalformativ=function(t,e,n,i,r){a.context.getInternalformativ(t,e,n,i,r)},a.getInternalformatParameter=function(t,e,n){return a.context.getInternalformatParameter(t,e,n)},a.getParameter=function(t){return a.context.getParameter(t)},a.getProgrami=function(t,e){return a.context.getProgrami(t,e)},a.getProgramiv=function(t,e,n){a.context.getProgramiv(t,e,n)},a.getProgramBinary=function(t,e){return a.context.getProgramBinary(t,e)},a.getProgramInfoLog=function(t){return a.context.getProgramInfoLog(t)},a.getProgramParameter=function(t,e){return a.context.getProgramParameter(t,e)},a.getQuery=function(t,e){return a.context.getQuery(t,e)},a.getQueryi=function(t,e){return a.context.getQueryi(t,e)},a.getQueryiv=function(t,e,n){a.context.getQueryiv(t,e,n)},a.getQueryObjectui=function(t,e){return a.context.getQueryObjectui(t,e)},a.getQueryObjectuiv=function(t,e,n){a.context.getQueryObjectuiv(t,e,n)},a.getQueryParameter=function(t,e){return a.context.getQueryParameter(t,e)},a.getRenderbufferParameter=function(t,e){return a.context.getRenderbufferParameter(t,e)},a.getRenderbufferParameteri=function(t,e){return a.context.getRenderbufferParameteri(t,e)},a.getRenderbufferParameteriv=function(t,e,n){a.context.getRenderbufferParameteriv(t,e,n)},a.getSamplerParameter=function(t,e){return a.context.getSamplerParameter(t,e)},a.getSamplerParameterf=function(t,e){return a.context.getSamplerParameterf(t,e)},a.getSamplerParameterfv=function(t,e,n){a.context.getSamplerParameterfv(t,e,n)},a.getSamplerParameteri=function(t,e){return a.context.getSamplerParameteri(t,e)},a.getSamplerParameteriv=function(t,e,n){a.context.getSamplerParameteriv(t,e,n)},a.getShaderi=function(t,e){return a.context.getShaderi(t,e)},a.getShaderiv=function(t,e,n){a.context.getShaderiv(t,e,n)},a.getShaderInfoLog=function(t){return a.context.getShaderInfoLog(t)},a.getShaderParameter=function(t,e){return a.context.getShaderParameter(t,e)},a.getShaderPrecisionFormat=function(t,e){return a.context.getShaderPrecisionFormat(t,e)},a.getShaderSource=function(t){return a.context.getShaderSource(t)},a.getString=function(t){return a.context.getString(t)},a.getStringi=function(t,e){return a.context.getStringi(t,e)},a.getSupportedExtensions=function(){return a.context.getSupportedExtensions()},a.getSyncParameter=function(t,e){return a.context.getSyncParameter(t,e)},a.getSyncParameteri=function(t,e){return a.context.getSyncParameteri(t,e)},a.getSyncParameteriv=function(t,e,n){a.context.getSyncParameteriv(t,e,n)},a.getTexParameter=function(t,e){return a.context.getTexParameter(t,e)},a.getTexParameterf=function(t,e){return a.context.getTexParameterf(t,e)},a.getTexParameterfv=function(t,e,n){a.context.getTexParameterfv(t,e,n)},a.getTexParameteri=function(t,e){return a.context.getTexParameteri(t,e)},a.getTexParameteriv=function(t,e,n){a.context.getTexParameteriv(t,e,n)},a.getTransformFeedbackVarying=function(t,e){return a.context.getTransformFeedbackVarying(t,e)},a.getUniform=function(t,e){return a.context.getUniform(t,e)},a.getUniformf=function(t,e){return a.context.getUniformf(t,e)},a.getUniformfv=function(t,e,n){a.context.getUniformfv(t,e,n)},a.getUniformi=function(t,e){return a.context.getUniformi(t,e)},a.getUniformiv=function(t,e,n){a.context.getUniformiv(t,e,n)},a.getUniformui=function(t,e){return a.context.getUniformui(t,e)},a.getUniformuiv=function(t,e,n){a.context.getUniformuiv(t,e,n)},a.getUniformBlockIndex=function(t,e){return a.context.getUniformBlockIndex(t,e)},a.getUniformIndices=function(t,e){return a.context.getUniformIndices(t,e)},a.getUniformLocation=function(t,e){return a.context.getUniformLocation(t,e)},a.getVertexAttrib=function(t,e){return a.context.getVertexAttrib(t,e)},a.getVertexAttribf=function(t,e){return a.context.getVertexAttribf(t,e)},a.getVertexAttribfv=function(t,e,n){a.context.getVertexAttribfv(t,e,n)},a.getVertexAttribi=function(t,e){return a.context.getVertexAttribi(t,e)},a.getVertexAttribIi=function(t,e){return a.context.getVertexAttribIi(t,e)},a.getVertexAttribIiv=function(t,e,n){a.context.getVertexAttribIiv(t,e,n)},a.getVertexAttribIui=function(t,e){return a.context.getVertexAttribIui(t,e)},a.getVertexAttribIuiv=function(t,e,n){a.context.getVertexAttribIuiv(t,e,n)},a.getVertexAttribiv=function(t,e,n){a.context.getVertexAttribiv(t,e,n)},a.getVertexAttribOffset=function(t,e){return a.context.getVertexAttribOffset(t,e)},a.getVertexAttribPointerv=function(t,e){return a.context.getVertexAttribPointerv(t,e)},a.hint=function(t,e){a.context.hint(t,e)},a.invalidateFramebuffer=function(t,e){a.context.invalidateFramebuffer(t,e)},a.invalidateSubFramebuffer=function(t,e,n,i,r,s){a.context.invalidateSubFramebuffer(t,e,n,i,r,s)},a.isBuffer=function(t){return a.context.isBuffer(t)},a.isContextLost=function(){return a.context.isContextLost()},a.isEnabled=function(t){return a.context.isEnabled(t)},a.isFramebuffer=function(t){return a.context.isFramebuffer(t)},a.isProgram=function(t){return a.context.isProgram(t)},a.isQuery=function(t){return a.context.isQuery(t)},a.isRenderbuffer=function(t){return a.context.isRenderbuffer(t)},a.isSampler=function(t){return a.context.isSampler(t)},a.isShader=function(t){return a.context.isShader(t)},a.isSync=function(t){return a.context.isSync(t)},a.isTexture=function(t){return a.context.isTexture(t)},a.isTransformFeedback=function(t){return a.context.isTransformFeedback(t)},a.isVertexArray=function(t){return a.context.isVertexArray(t)},a.lineWidth=function(t){a.context.lineWidth(t)},a.linkProgram=function(t){a.context.linkProgram(t)},a.mapBufferRange=function(t,e,n,i){return a.context.mapBufferRange(t,e,n,i)},a.pauseTransformFeedback=function(){a.context.pauseTransformFeedback()},a.pixelStorei=function(t,e){a.context.pixelStorei(t,e)},a.polygonOffset=function(t,e){a.context.polygonOffset(t,e)},a.programBinary=function(t,e,n,i){a.context.programBinary(t,e,n,i)},a.programParameteri=function(t,e,n){a.context.programParameteri(t,e,n)},a.readBuffer=function(t){a.context.readBuffer(t)},a.readPixels=function(t,e,n,i,s,o,l){a.context.readPixels(t,e,n,i,s,o,r().default.fromBytesPointer(l))},a.readPixelsWEBGL=function(t,e,n,i,r,s,o,l){a.context.readPixelsWEBGL(t,e,n,i,r,s,o,l)},a.releaseShaderCompiler=function(){a.context.releaseShaderCompiler()},a.renderbufferStorage=function(t,e,n,i){a.context.renderbufferStorage(t,e,n,i)},a.renderbufferStorageMultisample=function(t,e,n,i,r){a.context.renderbufferStorageMultisample(t,e,n,i,r)},a.resumeTransformFeedback=function(){a.context.resumeTransformFeedback()},a.sampleCoverage=function(t,e){a.context.sampleCoverage(t,e)},a.samplerParameterf=function(t,e,n){a.context.samplerParameterf(t,e,n)},a.samplerParameteri=function(t,e,n){a.context.samplerParameteri(t,e,n)},a.scissor=function(t,e,n,i){a.context.scissor(t,e,n,i)},a.shaderBinary=function(t,e,n,i){a.context.shaderBinary(t,e,n,i)},a.shaderSource=function(t,e){a.context.shaderSource(t,e)},a.stencilFunc=function(t,e,n){a.context.stencilFunc(t,e,n)},a.stencilFuncSeparate=function(t,e,n,i){a.context.stencilFuncSeparate(t,e,n,i)},a.stencilMask=function(t){a.context.stencilMask(t)},a.stencilMaskSeparate=function(t,e){a.context.stencilMaskSeparate(t,e)},a.stencilOp=function(t,e,n){a.context.stencilOp(t,e,n)},a.stencilOpSeparate=function(t,e,n,i){a.context.stencilOpSeparate(t,e,n,i)},a.texImage2D=function(t,e,n,i,r,s,o,l,u){a.context.texImage2D(t,e,n,i,r,s,o,l,u)},a.texImage2DWEBGL=function(t,e,n,i,r,s,o,l,u,_){a.context.texImage2DWEBGL(t,e,n,i,r,s,o,l,u,_)},a.texImage3D=function(t,e,n,i,r,s,o,l,u,_){a.context.texImage3D(t,e,n,i,r,s,o,l,u,_)},a.texImage3DWEBGL=function(t,e,n,i,r,s,o,l,u,_,f){a.context.texImage3DWEBGL(t,e,n,i,r,s,o,l,u,_,f)},a.texStorage2D=function(t,e,n,i,r){a.context.texStorage2D(t,e,n,i,r)},a.texStorage3D=function(t,e,n,i,r,s){a.context.texStorage3D(t,e,n,i,r,s)},a.texParameterf=function(t,e,n){a.context.texParameterf(t,e,n)},a.texParameteri=function(t,e,n){a.context.texParameteri(t,e,n)},a.texSubImage2D=function(t,e,n,i,s,o,l,u,_){a.context.texSubImage2D(t,e,n,i,s,o,l,u,r().default.fromArrayBufferView(_))},a.texSubImage2DWEBGL=function(t,e,n,i,r,s,o,l,u,_){a.context.texSubImage2DWEBGL(t,e,n,i,r,s,o,l,u,_)},a.texSubImage3D=function(t,e,n,i,r,s,o,l,u,_,f){a.context.texSubImage3D(t,e,n,i,r,s,o,l,u,_,f)},a.texSubImage3DWEBGL=function(t,e,n,i,r,s,o,l,u,_,f,d){a.context.texSubImage3DWEBGL(t,e,n,i,r,s,o,l,u,_,f,d)},a.transformFeedbackVaryings=function(t,e,n){a.context.transformFeedbackVaryings(t,e,n)},a.uniform1f=function(t,e){a.context.uniform1f(t,e)},a.uniform1fv=function(t,e,n){a.context.uniform1fv(t,e,n)},a.uniform1fvWEBGL=function(t,e,n,i){a.context.uniform1fvWEBGL(t,e,n,i)},a.uniform1i=function(t,e){a.context.uniform1i(t,e)},a.uniform1iv=function(t,e,n){a.context.uniform1iv(t,e,n)},a.uniform1ivWEBGL=function(t,e,n,i){a.context.uniform1ivWEBGL(t,e,n,i)},a.uniform1ui=function(t,e){a.context.uniform1ui(t,e)},a.uniform1uiv=function(t,e,n){a.context.uniform1uiv(t,e,n)},a.uniform1uivWEBGL=function(t,e,n,i){a.context.uniform1uivWEBGL(t,e,n,i)},a.uniform2f=function(t,e,n){a.context.uniform2f(t,e,n)},a.uniform2fv=function(t,e,n){a.context.uniform2fv(t,e,n)},a.uniform2fvWEBGL=function(t,e,n,i){a.context.uniform2fvWEBGL(t,e,n,i)},a.uniform2i=function(t,e,n){a.context.uniform2i(t,e,n)},a.uniform2iv=function(t,e,n){a.context.uniform2iv(t,e,n)},a.uniform2ivWEBGL=function(t,e,n,i){a.context.uniform2ivWEBGL(t,e,n,i)},a.uniform2ui=function(t,e,n){a.context.uniform2ui(t,e,n)},a.uniform2uiv=function(t,e,n){a.context.uniform2uiv(t,e,n)},a.uniform2uivWEBGL=function(t,e,n,i){a.context.uniform2uivWEBGL(t,e,n,i)},a.uniform3f=function(t,e,n,i){a.context.uniform3f(t,e,n,i)},a.uniform3fv=function(t,e,n){a.context.uniform3fv(t,e,n)},a.uniform3fvWEBGL=function(t,e,n,i){a.context.uniform3fvWEBGL(t,e,n,i)},a.uniform3i=function(t,e,n,i){a.context.uniform3i(t,e,n,i)},a.uniform3iv=function(t,e,n){a.context.uniform3iv(t,e,n)},a.uniform3ivWEBGL=function(t,e,n,i){a.context.uniform3ivWEBGL(t,e,n,i)},a.uniform3ui=function(t,e,n,i){a.context.uniform3ui(t,e,n,i)},a.uniform3uiv=function(t,e,n){a.context.uniform3uiv(t,e,n)},a.uniform3uivWEBGL=function(t,e,n,i){a.context.uniform3uivWEBGL(t,e,n,i)},a.uniform4f=function(t,e,n,i,r){a.context.uniform4f(t,e,n,i,r)},a.uniform4fv=function(t,e,n){a.context.uniform4fv(t,e,n)},a.uniform4fvWEBGL=function(t,e,n,i){a.context.uniform4fvWEBGL(t,e,n,i)},a.uniform4i=function(t,e,n,i,r){a.context.uniform4i(t,e,n,i,r)},a.uniform4iv=function(t,e,n){a.context.uniform4iv(t,e,n)},a.uniform4ivWEBGL=function(t,e,n,i){a.context.uniform4ivWEBGL(t,e,n,i)},a.uniform4ui=function(t,e,n,i,r){a.context.uniform4ui(t,e,n,i,r)},a.uniform4uiv=function(t,e,n){a.context.uniform4uiv(t,e,n)},a.uniform4uivWEBGL=function(t,e,n,i){a.context.uniform4uivWEBGL(t,e,n,i)},a.uniformBlockBinding=function(t,e,n){a.context.uniformBlockBinding(t,e,n)},a.uniformMatrix2fv=function(t,e,n,i){a.context.uniformMatrix2fv(t,e,n,i)},a.uniformMatrix2fvWEBGL=function(t,e,n,i,r){a.context.uniformMatrix2fvWEBGL(t,e,n,i,r)},a.uniformMatrix2x3fv=function(t,e,n,i){a.context.uniformMatrix2x3fv(t,e,n,i)},a.uniformMatrix2x3fvWEBGL=function(t,e,n,i,r){a.context.uniformMatrix2x3fvWEBGL(t,e,n,i,r)},a.uniformMatrix2x4fv=function(t,e,n,i){a.context.uniformMatrix2x4fv(t,e,n,i)},a.uniformMatrix2x4fvWEBGL=function(t,e,n,i,r){a.context.uniformMatrix2x4fvWEBGL(t,e,n,i,r)},a.uniformMatrix3fv=function(t,e,n,i){a.context.uniformMatrix3fv(t,e,n,i)},a.uniformMatrix3fvWEBGL=function(t,e,n,i,r){a.context.uniformMatrix3fvWEBGL(t,e,n,i,r)},a.uniformMatrix3x2fv=function(t,e,n,i){a.context.uniformMatrix3x2fv(t,e,n,i)},a.uniformMatrix3x2fvWEBGL=function(t,e,n,i,r){a.context.uniformMatrix3x2fvWEBGL(t,e,n,i,r)},a.uniformMatrix3x4fv=function(t,e,n,i){a.context.uniformMatrix3x4fv(t,e,n,i)},a.uniformMatrix3x4fvWEBGL=function(t,e,n,i,r){a.context.uniformMatrix3x4fvWEBGL(t,e,n,i,r)},a.uniformMatrix4fv=function(t,e,n,i){a.context.uniformMatrix4fv(t,e,n,i)},a.uniformMatrix4fvWEBGL=function(t,e,n,i,r){a.context.uniformMatrix4fvWEBGL(t,e,n,i,r)},a.uniformMatrix4x2fv=function(t,e,n,i){a.context.uniformMatrix4x2fv(t,e,n,i)},a.uniformMatrix4x2fvWEBGL=function(t,e,n,i,r){a.context.uniformMatrix4x2fvWEBGL(t,e,n,i,r)},a.uniformMatrix4x3fv=function(t,e,n,i){a.context.uniformMatrix4x3fv(t,e,n,i)},a.uniformMatrix4x3fvWEBGL=function(t,e,n,i,r){a.context.uniformMatrix4x3fvWEBGL(t,e,n,i,r)},a.unmapBuffer=function(t){return a.context.unmapBuffer(t)},a.useProgram=function(t){a.__currentProgram=t,a.context.useProgram(t)},a.validateProgram=function(t){a.context.validateProgram(t)},a.vertexAttrib1f=function(t,e){a.context.vertexAttrib1f(t,e)},a.vertexAttrib1fv=function(t,e){a.context.vertexAttrib1fv(t,e)},a.vertexAttrib1fvWEBGL=function(t,e){a.context.vertexAttrib1fv(t,e)},a.vertexAttrib2f=function(t,e,n){a.context.vertexAttrib2f(t,e,n)},a.vertexAttrib2fv=function(t,e){a.context.vertexAttrib2fv(t,e)},a.vertexAttrib2fvWEBGL=function(t,e){a.context.vertexAttrib2fv(t,e)},a.vertexAttrib3f=function(t,e,n,i){a.context.vertexAttrib3f(t,e,n,i)},a.vertexAttrib3fv=function(t,e){a.context.vertexAttrib3fv(t,e)},a.vertexAttrib3fvWEBGL=function(t,e){a.context.vertexAttrib3fv(t,e)},a.vertexAttrib4f=function(t,e,n,i,r){a.context.vertexAttrib4f(t,e,n,i,r)},a.vertexAttrib4fv=function(t,e){a.context.vertexAttrib4fv(t,e)},a.vertexAttrib4fvWEBGL=function(t,e){a.context.vertexAttrib4fv(t,e)},a.vertexAttribDivisor=function(t,e){a.context.vertexAttribDivisor(t,e)},a.vertexAttribI4i=function(t,e,n,i,r){a.context.vertexAttribI4i(t,e,n,i,r)},a.vertexAttribI4iv=function(t,e){a.context.vertexAttribI4iv(t,e)},a.vertexAttribI4ivWEBGL=function(t,e){a.context.vertexAttribI4iv(t,e)},a.vertexAttribI4ui=function(t,e,n,i,r){a.context.vertexAttribI4ui(t,e,n,i,r)},a.vertexAttribI4uiv=function(t,e){a.context.vertexAttribI4uiv(t,e)},a.vertexAttribI4uivWEBGL=function(t,e){a.context.vertexAttribI4uiv(t,e)},a.vertexAttribIPointer=function(t,e,n,i,r){a.context.vertexAttribIPointer(t,e,n,i,r)},a.vertexAttribPointer=function(t,e,n,i,r,s){a.context.vertexAttribPointer(t,e,n,i,r,s)},a.viewport=function(t,e,n,i){a.context.viewport(t,e,n,i)},a.waitSync=function(t,e,n){a.context.waitSync(t,e,n)},a.get_type=function(){return a.context.type},a.get_version=function(){return a.context.version},a.__getObjectID=function(t){return null==t?0:t.id},a.DEPTH_BUFFER_BIT=256,a.STENCIL_BUFFER_BIT=1024,a.COLOR_BUFFER_BIT=16384,a.POINTS=0,a.LINES=1,a.LINE_LOOP=2,a.LINE_STRIP=3,a.TRIANGLES=4,a.TRIANGLE_STRIP=5,a.TRIANGLE_FAN=6,a.ZERO=0,a.ONE=1,a.SRC_COLOR=768,a.ONE_MINUS_SRC_COLOR=769,a.SRC_ALPHA=770,a.ONE_MINUS_SRC_ALPHA=771,a.DST_ALPHA=772,a.ONE_MINUS_DST_ALPHA=773,a.DST_COLOR=774,a.ONE_MINUS_DST_COLOR=775,a.SRC_ALPHA_SATURATE=776,a.FUNC_ADD=32774,a.BLEND_EQUATION=32777,a.BLEND_EQUATION_RGB=32777,a.BLEND_EQUATION_ALPHA=34877,a.FUNC_SUBTRACT=32778,a.FUNC_REVERSE_SUBTRACT=32779,a.BLEND_DST_RGB=32968,a.BLEND_SRC_RGB=32969,a.BLEND_DST_ALPHA=32970,a.BLEND_SRC_ALPHA=32971,a.CONSTANT_COLOR=32769,a.ONE_MINUS_CONSTANT_COLOR=32770,a.CONSTANT_ALPHA=32771,a.ONE_MINUS_CONSTANT_ALPHA=32772,a.BLEND_COLOR=32773,a.ARRAY_BUFFER=34962,a.ELEMENT_ARRAY_BUFFER=34963,a.ARRAY_BUFFER_BINDING=34964,a.ELEMENT_ARRAY_BUFFER_BINDING=34965,a.STREAM_DRAW=35040,a.STATIC_DRAW=35044,a.DYNAMIC_DRAW=35048,a.BUFFER_SIZE=34660,a.BUFFER_USAGE=34661,a.CURRENT_VERTEX_ATTRIB=34342,a.FRONT=1028,a.BACK=1029,a.FRONT_AND_BACK=1032,a.CULL_FACE=2884,a.BLEND=3042,a.DITHER=3024,a.STENCIL_TEST=2960,a.DEPTH_TEST=2929,a.SCISSOR_TEST=3089,a.POLYGON_OFFSET_FILL=32823,a.SAMPLE_ALPHA_TO_COVERAGE=32926,a.SAMPLE_COVERAGE=32928,a.NO_ERROR=0,a.INVALID_ENUM=1280,a.INVALID_VALUE=1281,a.INVALID_OPERATION=1282,a.OUT_OF_MEMORY=1285,a.CW=2304,a.CCW=2305,a.LINE_WIDTH=2849,a.ALIASED_POINT_SIZE_RANGE=33901,a.ALIASED_LINE_WIDTH_RANGE=33902,a.CULL_FACE_MODE=2885,a.FRONT_FACE=2886,a.DEPTH_RANGE=2928,a.DEPTH_WRITEMASK=2930,a.DEPTH_CLEAR_VALUE=2931,a.DEPTH_FUNC=2932,a.STENCIL_CLEAR_VALUE=2961,a.STENCIL_FUNC=2962,a.STENCIL_FAIL=2964,a.STENCIL_PASS_DEPTH_FAIL=2965,a.STENCIL_PASS_DEPTH_PASS=2966,a.STENCIL_REF=2967,a.STENCIL_VALUE_MASK=2963,a.STENCIL_WRITEMASK=2968,a.STENCIL_BACK_FUNC=34816,a.STENCIL_BACK_FAIL=34817,a.STENCIL_BACK_PASS_DEPTH_FAIL=34818,a.STENCIL_BACK_PASS_DEPTH_PASS=34819,a.STENCIL_BACK_REF=36003,a.STENCIL_BACK_VALUE_MASK=36004,a.STENCIL_BACK_WRITEMASK=36005,a.VIEWPORT=2978,a.SCISSOR_BOX=3088,a.COLOR_CLEAR_VALUE=3106,a.COLOR_WRITEMASK=3107,a.UNPACK_ALIGNMENT=3317,a.PACK_ALIGNMENT=3333,a.MAX_TEXTURE_SIZE=3379,a.MAX_VIEWPORT_DIMS=3386,a.SUBPIXEL_BITS=3408,a.RED_BITS=3410,a.GREEN_BITS=3411,a.BLUE_BITS=3412,a.ALPHA_BITS=3413,a.DEPTH_BITS=3414,a.STENCIL_BITS=3415,a.POLYGON_OFFSET_UNITS=10752,a.POLYGON_OFFSET_FACTOR=32824,a.TEXTURE_BINDING_2D=32873,a.SAMPLE_BUFFERS=32936,a.SAMPLES=32937,a.SAMPLE_COVERAGE_VALUE=32938,a.SAMPLE_COVERAGE_INVERT=32939,a.NUM_COMPRESSED_TEXTURE_FORMATS=34466,a.COMPRESSED_TEXTURE_FORMATS=34467,a.DONT_CARE=4352,a.FASTEST=4353,a.NICEST=4354,a.GENERATE_MIPMAP_HINT=33170,a.BYTE=5120,a.UNSIGNED_BYTE=5121,a.SHORT=5122,a.UNSIGNED_SHORT=5123,a.INT=5124,a.UNSIGNED_INT=5125,a.FLOAT=5126,a.DEPTH_COMPONENT=6402,a.ALPHA=6406,a.RGB=6407,a.RGBA=6408,a.LUMINANCE=6409,a.LUMINANCE_ALPHA=6410,a.UNSIGNED_SHORT_4_4_4_4=32819,a.UNSIGNED_SHORT_5_5_5_1=32820,a.UNSIGNED_SHORT_5_6_5=33635,a.FRAGMENT_SHADER=35632,a.VERTEX_SHADER=35633,a.MAX_VERTEX_ATTRIBS=34921,a.MAX_VERTEX_UNIFORM_VECTORS=36347,a.MAX_VARYING_VECTORS=36348,a.MAX_COMBINED_TEXTURE_IMAGE_UNITS=35661,a.MAX_VERTEX_TEXTURE_IMAGE_UNITS=35660,a.MAX_TEXTURE_IMAGE_UNITS=34930,a.MAX_FRAGMENT_UNIFORM_VECTORS=36349,a.SHADER_TYPE=35663,a.DELETE_STATUS=35712,a.LINK_STATUS=35714,a.VALIDATE_STATUS=35715,a.ATTACHED_SHADERS=35717,a.ACTIVE_UNIFORMS=35718,a.ACTIVE_ATTRIBUTES=35721,a.SHADING_LANGUAGE_VERSION=35724,a.CURRENT_PROGRAM=35725,a.NEVER=512,a.LESS=513,a.EQUAL=514,a.LEQUAL=515,a.GREATER=516,a.NOTEQUAL=517,a.GEQUAL=518,a.ALWAYS=519,a.KEEP=7680,a.REPLACE=7681,a.INCR=7682,a.DECR=7683,a.INVERT=5386,a.INCR_WRAP=34055,a.DECR_WRAP=34056,a.VENDOR=7936,a.RENDERER=7937,a.VERSION=7938,a.EXTENSIONS=7939,a.NEAREST=9728,a.LINEAR=9729,a.NEAREST_MIPMAP_NEAREST=9984,a.LINEAR_MIPMAP_NEAREST=9985,a.NEAREST_MIPMAP_LINEAR=9986,a.LINEAR_MIPMAP_LINEAR=9987,a.TEXTURE_MAG_FILTER=10240,a.TEXTURE_MIN_FILTER=10241,a.TEXTURE_WRAP_S=10242,a.TEXTURE_WRAP_T=10243,a.TEXTURE_2D=3553,a.TEXTURE=5890,a.TEXTURE_CUBE_MAP=34067,a.TEXTURE_BINDING_CUBE_MAP=34068,a.TEXTURE_CUBE_MAP_POSITIVE_X=34069,a.TEXTURE_CUBE_MAP_NEGATIVE_X=34070,a.TEXTURE_CUBE_MAP_POSITIVE_Y=34071,a.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072,a.TEXTURE_CUBE_MAP_POSITIVE_Z=34073,a.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074,a.MAX_CUBE_MAP_TEXTURE_SIZE=34076,a.TEXTURE0=33984,a.TEXTURE1=33985,a.TEXTURE2=33986,a.TEXTURE3=33987,a.TEXTURE4=33988,a.TEXTURE5=33989,a.TEXTURE6=33990,a.TEXTURE7=33991,a.TEXTURE8=33992,a.TEXTURE9=33993,a.TEXTURE10=33994,a.TEXTURE11=33995,a.TEXTURE12=33996,a.TEXTURE13=33997,a.TEXTURE14=33998,a.TEXTURE15=33999,a.TEXTURE16=34e3,a.TEXTURE17=34001,a.TEXTURE18=34002,a.TEXTURE19=34003,a.TEXTURE20=34004,a.TEXTURE21=34005,a.TEXTURE22=34006,a.TEXTURE23=34007,a.TEXTURE24=34008,a.TEXTURE25=34009,a.TEXTURE26=34010,a.TEXTURE27=34011,a.TEXTURE28=34012,a.TEXTURE29=34013,a.TEXTURE30=34014,a.TEXTURE31=34015,a.ACTIVE_TEXTURE=34016,a.REPEAT=10497,a.CLAMP_TO_EDGE=33071,a.MIRRORED_REPEAT=33648,a.FLOAT_VEC2=35664,a.FLOAT_VEC3=35665,a.FLOAT_VEC4=35666,a.INT_VEC2=35667,a.INT_VEC3=35668,a.INT_VEC4=35669,a.BOOL=35670,a.BOOL_VEC2=35671,a.BOOL_VEC3=35672,a.BOOL_VEC4=35673,a.FLOAT_MAT2=35674,a.FLOAT_MAT3=35675,a.FLOAT_MAT4=35676,a.SAMPLER_2D=35678,a.SAMPLER_CUBE=35680,a.VERTEX_ATTRIB_ARRAY_ENABLED=34338,a.VERTEX_ATTRIB_ARRAY_SIZE=34339,a.VERTEX_ATTRIB_ARRAY_STRIDE=34340,a.VERTEX_ATTRIB_ARRAY_TYPE=34341,a.VERTEX_ATTRIB_ARRAY_NORMALIZED=34922,a.VERTEX_ATTRIB_ARRAY_POINTER=34373,a.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING=34975,a.IMPLEMENTATION_COLOR_READ_TYPE=35738,a.IMPLEMENTATION_COLOR_READ_FORMAT=35739,a.VERTEX_PROGRAM_POINT_SIZE=34370,a.POINT_SPRITE=34913,a.COMPILE_STATUS=35713,a.LOW_FLOAT=36336,a.MEDIUM_FLOAT=36337,a.HIGH_FLOAT=36338,a.LOW_INT=36339,a.MEDIUM_INT=36340,a.HIGH_INT=36341,a.FRAMEBUFFER=36160,a.RENDERBUFFER=36161,a.RGBA4=32854,a.RGB5_A1=32855,a.RGB565=36194,a.DEPTH_COMPONENT16=33189,a.STENCIL_INDEX=6401,a.STENCIL_INDEX8=36168,a.DEPTH_STENCIL=34041,a.RENDERBUFFER_WIDTH=36162,a.RENDERBUFFER_HEIGHT=36163,a.RENDERBUFFER_INTERNAL_FORMAT=36164,a.RENDERBUFFER_RED_SIZE=36176,a.RENDERBUFFER_GREEN_SIZE=36177,a.RENDERBUFFER_BLUE_SIZE=36178,a.RENDERBUFFER_ALPHA_SIZE=36179,a.RENDERBUFFER_DEPTH_SIZE=36180,a.RENDERBUFFER_STENCIL_SIZE=36181,a.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE=36048,a.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME=36049,a.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL=36050,a.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE=36051,a.COLOR_ATTACHMENT0=36064,a.DEPTH_ATTACHMENT=36096,a.STENCIL_ATTACHMENT=36128,a.DEPTH_STENCIL_ATTACHMENT=33306,a.NONE=0,a.FRAMEBUFFER_COMPLETE=36053,a.FRAMEBUFFER_INCOMPLETE_ATTACHMENT=36054,a.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT=36055,a.FRAMEBUFFER_INCOMPLETE_DIMENSIONS=36057,a.FRAMEBUFFER_UNSUPPORTED=36061,a.FRAMEBUFFER_BINDING=36006,a.RENDERBUFFER_BINDING=36007,a.MAX_RENDERBUFFER_SIZE=34024,a.INVALID_FRAMEBUFFER_OPERATION=1286,a.UNPACK_FLIP_Y_WEBGL=37440,a.UNPACK_PREMULTIPLY_ALPHA_WEBGL=37441,a.CONTEXT_LOST_WEBGL=37442,a.UNPACK_COLORSPACE_CONVERSION_WEBGL=37443,a.BROWSER_DEFAULT_WEBGL=37444,a.READ_BUFFER=3074,a.UNPACK_ROW_LENGTH=3314,a.UNPACK_SKIP_ROWS=3315,a.UNPACK_SKIP_PIXELS=3316,a.PACK_ROW_LENGTH=3330,a.PACK_SKIP_ROWS=3331,a.PACK_SKIP_PIXELS=3332,a.TEXTURE_BINDING_3D=32874,a.UNPACK_SKIP_IMAGES=32877,a.UNPACK_IMAGE_HEIGHT=32878,a.MAX_3D_TEXTURE_SIZE=32883,a.MAX_ELEMENTS_VERTICES=33e3,a.MAX_ELEMENTS_INDICES=33001,a.MAX_TEXTURE_LOD_BIAS=34045,a.MAX_FRAGMENT_UNIFORM_COMPONENTS=35657,a.MAX_VERTEX_UNIFORM_COMPONENTS=35658,a.MAX_ARRAY_TEXTURE_LAYERS=35071,a.MIN_PROGRAM_TEXEL_OFFSET=35076,a.MAX_PROGRAM_TEXEL_OFFSET=35077,a.MAX_VARYING_COMPONENTS=35659,a.FRAGMENT_SHADER_DERIVATIVE_HINT=35723,a.RASTERIZER_DISCARD=35977,a.VERTEX_ARRAY_BINDING=34229,a.MAX_VERTEX_OUTPUT_COMPONENTS=37154,a.MAX_FRAGMENT_INPUT_COMPONENTS=37157,a.MAX_SERVER_WAIT_TIMEOUT=37137,a.MAX_ELEMENT_INDEX=36203,a.RED=6403,a.RGB8=32849,a.RGBA8=32856,a.RGB10_A2=32857,a.TEXTURE_3D=32879,a.TEXTURE_WRAP_R=32882,a.TEXTURE_MIN_LOD=33082,a.TEXTURE_MAX_LOD=33083,a.TEXTURE_BASE_LEVEL=33084,a.TEXTURE_MAX_LEVEL=33085,a.TEXTURE_COMPARE_MODE=34892,a.TEXTURE_COMPARE_FUNC=34893,a.SRGB=35904,a.SRGB8=35905,a.SRGB8_ALPHA8=35907,a.COMPARE_REF_TO_TEXTURE=34894,a.RGBA32F=34836,a.RGB32F=34837,a.RGBA16F=34842,a.RGB16F=34843,a.TEXTURE_2D_ARRAY=35866,a.TEXTURE_BINDING_2D_ARRAY=35869,a.R11F_G11F_B10F=35898,a.RGB9_E5=35901,a.RGBA32UI=36208,a.RGB32UI=36209,a.RGBA16UI=36214,a.RGB16UI=36215,a.RGBA8UI=36220,a.RGB8UI=36221,a.RGBA32I=36226,a.RGB32I=36227,a.RGBA16I=36232,a.RGB16I=36233,a.RGBA8I=36238,a.RGB8I=36239,a.RED_INTEGER=36244,a.RGB_INTEGER=36248,a.RGBA_INTEGER=36249,a.R8=33321,a.RG8=33323,a.R16F=33325,a.R32F=33326,a.RG16F=33327,a.RG32F=33328,a.R8I=33329,a.R8UI=33330,a.R16I=33331,a.R16UI=33332,a.R32I=33333,a.R32UI=33334,a.RG8I=33335,a.RG8UI=33336,a.RG16I=33337,a.RG16UI=33338,a.RG32I=33339,a.RG32UI=33340,a.R8_SNORM=36756,a.RG8_SNORM=36757,a.RGB8_SNORM=36758,a.RGBA8_SNORM=36759,a.RGB10_A2UI=36975,a.TEXTURE_IMMUTABLE_FORMAT=37167,a.TEXTURE_IMMUTABLE_LEVELS=33503,a.UNSIGNED_INT_2_10_10_10_REV=33640,a.UNSIGNED_INT_10F_11F_11F_REV=35899,a.UNSIGNED_INT_5_9_9_9_REV=35902,a.FLOAT_32_UNSIGNED_INT_24_8_REV=36269,a.UNSIGNED_INT_24_8=34042,a.HALF_FLOAT=5131,a.RG=33319,a.RG_INTEGER=33320,a.INT_2_10_10_10_REV=36255,a.CURRENT_QUERY=34917,a.QUERY_RESULT=34918,a.QUERY_RESULT_AVAILABLE=34919,a.ANY_SAMPLES_PASSED=35887,a.ANY_SAMPLES_PASSED_CONSERVATIVE=36202,a.MAX_DRAW_BUFFERS=34852,a.DRAW_BUFFER0=34853,a.DRAW_BUFFER1=34854,a.DRAW_BUFFER2=34855,a.DRAW_BUFFER3=34856,a.DRAW_BUFFER4=34857,a.DRAW_BUFFER5=34858,a.DRAW_BUFFER6=34859,a.DRAW_BUFFER7=34860,a.DRAW_BUFFER8=34861,a.DRAW_BUFFER9=34862,a.DRAW_BUFFER10=34863,a.DRAW_BUFFER11=34864,a.DRAW_BUFFER12=34865,a.DRAW_BUFFER13=34866,a.DRAW_BUFFER14=34867,a.DRAW_BUFFER15=34868,a.MAX_COLOR_ATTACHMENTS=36063,a.COLOR_ATTACHMENT1=36065,a.COLOR_ATTACHMENT2=36066,a.COLOR_ATTACHMENT3=36067,a.COLOR_ATTACHMENT4=36068,a.COLOR_ATTACHMENT5=36069,a.COLOR_ATTACHMENT6=36070,a.COLOR_ATTACHMENT7=36071,a.COLOR_ATTACHMENT8=36072,a.COLOR_ATTACHMENT9=36073,a.COLOR_ATTACHMENT10=36074,a.COLOR_ATTACHMENT11=36075,a.COLOR_ATTACHMENT12=36076,a.COLOR_ATTACHMENT13=36077,a.COLOR_ATTACHMENT14=36078,a.COLOR_ATTACHMENT15=36079,a.SAMPLER_3D=35679,a.SAMPLER_2D_SHADOW=35682,a.SAMPLER_2D_ARRAY=36289,a.SAMPLER_2D_ARRAY_SHADOW=36292,a.SAMPLER_CUBE_SHADOW=36293,a.INT_SAMPLER_2D=36298,a.INT_SAMPLER_3D=36299,a.INT_SAMPLER_CUBE=36300,a.INT_SAMPLER_2D_ARRAY=36303,a.UNSIGNED_INT_SAMPLER_2D=36306,a.UNSIGNED_INT_SAMPLER_3D=36307,a.UNSIGNED_INT_SAMPLER_CUBE=36308,a.UNSIGNED_INT_SAMPLER_2D_ARRAY=36311,a.MAX_SAMPLES=36183,a.SAMPLER_BINDING=35097,a.PIXEL_PACK_BUFFER=35051,a.PIXEL_UNPACK_BUFFER=35052,a.PIXEL_PACK_BUFFER_BINDING=35053,a.PIXEL_UNPACK_BUFFER_BINDING=35055,a.COPY_READ_BUFFER=36662,a.COPY_WRITE_BUFFER=36663,a.COPY_READ_BUFFER_BINDING=36662,a.COPY_WRITE_BUFFER_BINDING=36663,a.FLOAT_MAT2x3=35685,a.FLOAT_MAT2x4=35686,a.FLOAT_MAT3x2=35687,a.FLOAT_MAT3x4=35688,a.FLOAT_MAT4x2=35689,a.FLOAT_MAT4x3=35690,a.UNSIGNED_INT_VEC2=36294,a.UNSIGNED_INT_VEC3=36295,a.UNSIGNED_INT_VEC4=36296,a.UNSIGNED_NORMALIZED=35863,a.SIGNED_NORMALIZED=36764,a.VERTEX_ATTRIB_ARRAY_INTEGER=35069,a.VERTEX_ATTRIB_ARRAY_DIVISOR=35070,a.TRANSFORM_FEEDBACK_BUFFER_MODE=35967,a.MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS=35968,a.TRANSFORM_FEEDBACK_VARYINGS=35971,a.TRANSFORM_FEEDBACK_BUFFER_START=35972,a.TRANSFORM_FEEDBACK_BUFFER_SIZE=35973,a.TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN=35976,a.MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS=35978,a.MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS=35979,a.INTERLEAVED_ATTRIBS=35980,a.SEPARATE_ATTRIBS=35981,a.TRANSFORM_FEEDBACK_BUFFER=35982,a.TRANSFORM_FEEDBACK_BUFFER_BINDING=35983,a.TRANSFORM_FEEDBACK=36386,a.TRANSFORM_FEEDBACK_PAUSED=36387,a.TRANSFORM_FEEDBACK_ACTIVE=36388,a.TRANSFORM_FEEDBACK_BINDING=36389,a.FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING=33296,a.FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE=33297,a.FRAMEBUFFER_ATTACHMENT_RED_SIZE=33298,a.FRAMEBUFFER_ATTACHMENT_GREEN_SIZE=33299,a.FRAMEBUFFER_ATTACHMENT_BLUE_SIZE=33300,a.FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE=33301,a.FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE=33302,a.FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE=33303,a.FRAMEBUFFER_DEFAULT=33304,a.DEPTH24_STENCIL8=35056,a.DRAW_FRAMEBUFFER_BINDING=36006,a.READ_FRAMEBUFFER=36008,a.DRAW_FRAMEBUFFER=36009,a.READ_FRAMEBUFFER_BINDING=36010,a.RENDERBUFFER_SAMPLES=36011,a.FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER=36052,a.FRAMEBUFFER_INCOMPLETE_MULTISAMPLE=36182,a.UNIFORM_BUFFER=35345,a.UNIFORM_BUFFER_BINDING=35368,a.UNIFORM_BUFFER_START=35369,a.UNIFORM_BUFFER_SIZE=35370,a.MAX_VERTEX_UNIFORM_BLOCKS=35371,a.MAX_FRAGMENT_UNIFORM_BLOCKS=35373,a.MAX_COMBINED_UNIFORM_BLOCKS=35374,a.MAX_UNIFORM_BUFFER_BINDINGS=35375,a.MAX_UNIFORM_BLOCK_SIZE=35376,a.MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS=35377,a.MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS=35379,a.UNIFORM_BUFFER_OFFSET_ALIGNMENT=35380,a.ACTIVE_UNIFORM_BLOCKS=35382,a.UNIFORM_TYPE=35383,a.UNIFORM_SIZE=35384,a.UNIFORM_BLOCK_INDEX=35386,a.UNIFORM_OFFSET=35387,a.UNIFORM_ARRAY_STRIDE=35388,a.UNIFORM_MATRIX_STRIDE=35389,a.UNIFORM_IS_ROW_MAJOR=35390,a.UNIFORM_BLOCK_BINDING=35391,a.UNIFORM_BLOCK_DATA_SIZE=35392,a.UNIFORM_BLOCK_ACTIVE_UNIFORMS=35394,a.UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES=35395,a.UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER=35396,a.UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER=35398,a.OBJECT_TYPE=37138,a.SYNC_CONDITION=37139,a.SYNC_STATUS=37140,a.SYNC_FLAGS=37141,a.SYNC_FENCE=37142,a.SYNC_GPU_COMMANDS_COMPLETE=37143,a.UNSIGNALED=37144,a.SIGNALED=37145,a.ALREADY_SIGNALED=37146,a.TIMEOUT_EXPIRED=37147,a.CONDITION_SATISFIED=37148,a.WAIT_FAILED=37149,a.SYNC_FLUSH_COMMANDS_BIT=1,a.COLOR=6144,a.DEPTH=6145,a.STENCIL=6146,a.MIN=32775,a.MAX=32776,a.DEPTH_COMPONENT24=33190,a.STREAM_READ=35041,a.STREAM_COPY=35042,a.STATIC_READ=35045,a.STATIC_COPY=35046,a.DYNAMIC_READ=35049,a.DYNAMIC_COPY=35050,a.DEPTH_COMPONENT32F=36012,a.DEPTH32F_STENCIL8=36013,a.INVALID_INDEX=-1,a.TIMEOUT_IGNORED=-1,a.MAX_CLIENT_WAIT_TIMEOUT_WEBGL=37447,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["openfl.display.GraphicsDataType"]={__ename__:["openfl","display","GraphicsDataType"],__constructs__:["STROKE","SOLID","GRADIENT","PATH","BITMAP","END","TRIANGLE_PATH"]};r.BITMAP=["BITMAP",4],r.BITMAP.toString=i,r.BITMAP.__enum__=r,r.SOLID=["SOLID",1],r.SOLID.toString=i,r.SOLID.__enum__=r,r.STROKE=["STROKE",0],r.STROKE.toString=i,r.STROKE.__enum__=r,r.GRADIENT=["GRADIENT",2],r.GRADIENT.toString=i,r.GRADIENT.__enum__=r,r.TRIANGLE_PATH=["TRIANGLE_PATH",6],r.TRIANGLE_PATH.toString=i,r.TRIANGLE_PATH.__enum__=r,r.END=["END",5],r.END.toString=i,r.END.__enum__=r,r.PATH=["PATH",3],r.PATH.toString=i,r.PATH.__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=function(){};r.__name__=["openfl","display","IGraphicsData"],(r.prototype={}).__class__=i["openfl.display.IGraphicsData"]=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(118)}var s=function(t,e){a().default.call(this,t),this.element=e,this.renderSession=new(n(91).default),this.renderSession.clearRenderDirty=!0,this.renderSession.element=e,n(36).default.__supportDOM=!0;var i=t.window.config;null!=i&&n(5).default.hasField(i,"allowHighDPI")&&i.allowHighDPI&&(n(68).default.scale=window.devicePixelRatio||1);var r,s,o=(r=window.getComputedStyle(document.documentElement,""),s=(Array.prototype.slice.call(r).join("").match(/-(moz|webkit|ms)-/)||""===r.OLink&&["","o"])[1],{dom:"WebKit|Moz|MS|O".match(new RegExp("("+s+")","i"))[1],lowercase:s,css:"-"+s+"-",js:s[0].toUpperCase()+s.substr(1)});this.renderSession.vendorPrefix=o.lowercase,this.renderSession.transformProperty="webkit"==o.lowercase?"-webkit-transform":"transform",this.renderSession.transformOriginProperty="webkit"==o.lowercase?"-webkit-transform-origin":"transform-origin",this.renderSession.maskManager=new(n(313).default)(this.renderSession),this.renderSession.blendModeManager=new(n(314).default)(this.renderSession),this.renderSession.renderer=this,this.renderSession.renderType=n(33).default.DOM};s.__name__=["openfl","_internal","renderer","dom","DOMRenderer"],s.__super__=a().default,(s.prototype=r(a().default.prototype,{render:function(){this.renderSession.allowSmoothing="low"!=this.stage.quality,this.stage.__transparent?this.element.style.background="none":this.element.style.background=this.stage.__colorString,this.renderSession.z=1,this.stage.__renderDOM(this.renderSession)},renderStage3D:function(){for(var t=0,e=this.stage.stage3Ds;t<e.get_length();){var n=e.get(t);++t,n.__renderDOM(this.stage,this.renderSession)}}})).__class__=i["openfl._internal.renderer.dom.DOMRenderer"]=s,s.applyStyle=function(t,e,n,i,r){var a=t.__style;if(n&&t.__renderTransformChanged&&a.setProperty(e.transformProperty,t.__renderTransform.to3DString(e.roundPixels),null),t.__worldZ!=++e.z&&(t.__worldZ=e.z,a.setProperty("z-index",null==t.__worldZ?"null":""+t.__worldZ,null)),i&&t.__worldAlphaChanged&&(t.__worldAlpha<1?a.setProperty("opacity",null==t.__worldAlpha?"null":""+t.__worldAlpha,null):a.removeProperty("opacity")),r&&t.__worldClipChanged)if(null==t.__worldClip)a.removeProperty("clip");else{var s=t.__worldClip;a.setProperty("clip","rect("+s.y+"px, "+s.get_right()+"px, "+s.get_bottom()+"px, "+s.x+"px)",null)}},s.initializeElement=function(t,e,n){var i=t.__style=e.style;i.setProperty("position","absolute",null),i.setProperty("top","0",null),i.setProperty("left","0",null),i.setProperty(n.transformOriginProperty,"0 0 0",null),n.element.appendChild(e),t.__worldAlphaChanged=!0,t.__renderTransformChanged=!0,t.__worldVisibleChanged=!0,t.__worldClipChanged=!0,t.__worldClip=null,t.__worldZ=-1},s.updateClip=function(t,e){e.maskManager.updateClip(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(9)}var s=function(t,e,n,i,r){null==r&&(r=0),null==i&&(i=0),null==n&&(n=!1),null==e&&(e=!1),a().default.call(this,t,e,n),this.bytesLoaded=i,this.bytesTotal=r};s.__name__=["openfl","events","ProgressEvent"],s.__super__=a().default,(s.prototype=r(a().default.prototype,{clone:function(){var t=new s(this.type,this.bubbles,this.cancelable,this.bytesLoaded,this.bytesTotal);return t.target=this.target,t.currentTarget=this.currentTarget,t.eventPhase=this.eventPhase,t},toString:function(){return this.__formatToString("ProgressEvent",["type","bubbles","cancelable","bytesLoaded","bytesTotal"])}})).__class__=i["openfl.events.ProgressEvent"]=s,s.PROGRESS="progress",s.SOCKET_DATA="socketData",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){this.high=t,this.low=e};r.__name__=["haxe","_Int64","___Int64"],(r.prototype={}).__class__=i["haxe._Int64.___Int64"]=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(15).default,r=n(1).default["lime.graphics.ImageType"]={__ename__:["lime","graphics","ImageType"],__constructs__:["CANVAS","DATA","FLASH","CUSTOM"]};r.CANVAS=["CANVAS",0],r.CANVAS.toString=i,r.CANVAS.__enum__=r,r.FLASH=["FLASH",2],r.FLASH.toString=i,r.FLASH.__enum__=r,r.DATA=["DATA",1],r.DATA.toString=i,r.DATA.__enum__=r,r.CUSTOM=["CUSTOM",3],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;function r(){return n(55)}function a(){return n(32)}function s(){return n(10)}function o(){return n(65)}function l(){return n(41)}function u(){return n(110)}function _(){return n(154)}function f(){return n(24)}var d=function(t,e,n,i,o,_,f){if(null==o&&(o=-1),null==i&&(i=-1),null==n&&(n=0),null==e&&(e=0),this.offsetX=e,this.offsetY=n,this.width=i,this.height=o,this.version=0,null==f&&(f=r().default.CANVAS),this.type=f,null==t){if(i>0&&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<e.get_right()&&n.y<e.get_bottom()&&(t=this.clone());var _=this.type;switch(s().default.enumIndex(_)){case 0:null!=i||t.type!=r().default.CANVAS?(a().default.convertToData(this),a().default.convertToData(t),null!=i&&a().default.convertToData(i),o().default.copyPixels(this,t,e,n,i,l,u)):(a().default.convertToCanvas(this),a().default.convertToCanvas(t),a().default.copyPixels(this,t,e,n,i,l,u));break;case 1:a().default.convertToData(this),a().default.convertToData(t),null!=i&&a().default.convertToData(i),o().default.copyPixels(this,t,e,n,i,l,u);break;case 2:e.offset(t.offsetX,t.offsetY),n.offset(this.offsetX,this.offsetY),null!=i&&null!=l&&l.offset(i.offsetX,i.offsetY),this.buffer.__srcBitmapData.copyPixels(t.buffer.__srcBitmapData,e.__toFlashRectangle(),n.__toFlashPoint(),null!=i?i.buffer.get_src():null,null!=l?l.__toFlashPoint():null,u)}}},encode:function(t,e){switch(null==e&&(e=90),null==t&&(t="png"),t){case"bmp":return n(270).default.encode(this);case"jpeg":case"jpg":return n(272).default.encode(this,e);case"png":return n(273).default.encode(this)}return null},fillRect:function(t,e,n){if(t=this.__clipRect(t),null!=this.buffer&&null!=t){var i=this.type;switch(s().default.enumIndex(i)){case 0:a().default.fillRect(this,t,e,n);break;case 1:if(a().default.convertToData(this),0==this.buffer.data.length)return;o().default.fillRect(this,t,e,n);break;case 2:var r;if(t.offset(this.offsetX,this.offsetY),null==n){r=(255&e)<<24|(255&e>>>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<this.buffer.width;)e<<=1;for(;n<this.buffer.height;)n<<=1;var i=this.type;switch(s().default.enumIndex(i)){case 0:break;case 1:o().default.resizeBuffer(this,e,n)}}return t},get_premultiplied:function(){return this.buffer.premultiplied},set_premultiplied:function(t){if(t&&!this.buffer.premultiplied){var e=this.type;switch(s().default.enumIndex(e)){case 0:case 1:a().default.convertToData(this),o().default.multiplyAlpha(this)}}else if(!t&&this.buffer.premultiplied){var n=this.type;1==s().default.enumIndex(n)&&(a().default.convertToData(this),o().default.unmultiplyAlpha(this))}return t},get_rect:function(){return new(l().default)(0,0,this.width,this.height)},get_src:function(){return null==this.buffer.__srcCanvas&&a().default.convertToCanvas(this),this.buffer.get_src()},set_src:function(t){return this.buffer.set_src(t)},get_transparent:function(){return null!=this.buffer&&this.buffer.transparent},set_transparent:function(t){return null!=this.buffer&&(this.buffer.transparent=t)}}).__class__=i["lime.graphics.Image"]=d;var h=d.prototype;Object.defineProperties(h,{data:{get:h.get_data,set:h.set_data},format:{get:h.get_format,set:h.set_format},powerOfTwo:{get:h.get_powerOfTwo,set:h.set_powerOfTwo},premultiplied:{get:h.get_premultiplied,set:h.set_premultiplied},rect:{get:h.get_rect},src:{get:h.get_src,set:h.set_src},transparent:{get:h.get_transparent,set:h.set_transparent}}),d.fromBase64=function(t,e){if(null==t)return null;var n=new d;return n.__fromBase64(t,e),n},d.fromBitmapData=function(t){return null==t?null:t.image},d.fromBytes=function(t){if(null==t)return null;var e=new d;return e.__fromBytes(t),e},d.fromCanvas=function(t){if(null==t)return null;var e=new(u().default)(null,t.width,t.height);e.set_src(t);var n=new d(e);return n.type=r().default.CANVAS,n},d.fromFile=function(t){if(null==t)return null;var e=new d;return e.__fromFile(t),e},d.fromImageElement=function(t){if(null==t)return null;var e=new(u().default)(null,t.width,t.height);e.set_src(t);var n=new d(e);return n.type=r().default.CANVAS,n},d.loadFromBase64=function(t,e){return null==t||null==e?f().default.withValue(null):_().default.loadImage("data:"+e+";base64,"+t)},d.loadFromBytes=function(t){if(null==t)return f().default.withValue(null);var e="";if(d.__isPNG(t))e="image/png";else if(d.__isJPG(t))e="image/jpeg";else if(d.__isGIF(t))e="image/gif";else{if(!d.__isWebP(t))return f().default.withValue(null);e="image/webp"}return d.loadFromBase64(d.__base64Encode(t),e)},d.loadFromFile=function(t){return null==t?f().default.withValue(null):_().default.loadImage(t)},d.__base64Encode=function(t){var e;switch(t.get_length()%3){case 1:e="==";break;case 2:e="=";break;default:e=""}return null==d.__base64Encoder&&(d.__base64Encoder=new(n(156).default)(n(16).default.ofString(d.__base64Chars))),d.__base64Encoder.encodeBytes(t).toString()+e},d.__isGIF=function(t){if(null==t||t.get_length()<6)return!1;var e=t.getString(0,6);return"GIF87a"==e||"GIF89a"==e},d.__isJPG=function(t){return!(null==t||t.get_length()<4)&&(255==t.get(0)&&216==t.get(1)&&255==t.get(t.get_length()-2)&&217==t.get(t.get_length()-1))},d.__isPNG=function(t){return!(null==t||t.get_length()<8)&&(137==t.get(0)&&80==t.get(1)&&78==t.get(2)&&71==t.get(3)&&13==t.get(4)&&10==t.get(5)&&26==t.get(6)&&10==t.get(7))},d.__isWebP=function(t){return!(null==t||t.get_length()<16)&&("RIFF"==t.getString(0,4)&&"WEBP"==t.getString(8,4))},d.__base64Chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",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;function r(){return n(4)}var a=function(){this.h={__keys__:{}}};a.__name__=["haxe","ds","ObjectMap"],a.__interfaces__=[n(107).default],(a.prototype={set:function(t,e){var n=a.getId(t)||a.assignId(t);this.h[n]=e,this.h.__keys__[n]=t},get:function(t){return this.h[a.getId(t)]},exists:function(t){return null!=this.h.__keys__[a.getId(t)]},remove:function(t){var e=a.getId(t);return null!=this.h.__keys__[e]&&(delete this.h[e],delete this.h.__keys__[e],!0)},keys:function(){var t=[];for(var e in this.h.__keys__)this.h.hasOwnProperty(e)&&t.push(this.h.__keys__[e]);return n(7).default.iter(t)},iterator:function(){return{ref:this.h,it:this.keys(),hasNext:function(){return this.it.hasNext()},next:function(){var t=this.it.next();return this.ref[a.getId(t)]}}},toString:function(){var t=new(n(31).default);t.add("{");for(var e=this.keys(),i=e;i.hasNext();){var a=i.next();t.add(r().default.string(a)),t.add(" => "),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<x;){var E=b++;_=e[E],f=n[E],d=(16711680&_)>>>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;d<h.length;){var p=h[d];switch(++d,u().default.enumIndex(p)){case 0:case 1:case 2:if(c.endFill(),c.hasFill&&c.context.isPointInPath(e,n,c.windingRule))return f.destroy(),t.__canvas=s,t.__context=o,!0;if(c.endStroke(),c.hasStroke&&c.context.isPointInStroke(e,n))return f.destroy(),t.__canvas=s,t.__context=o,!0;if(p==_().default.BEGIN_BITMAP_FILL){var g=f.readBeginBitmapFill();c.fillCommands.beginBitmapFill(g.obj(0),g.obj(1),g.bool(0),g.bool(1)),c.strokeCommands.beginBitmapFill(g.obj(0),g.obj(1),g.bool(0),g.bool(1))}else if(p==_().default.BEGIN_GRADIENT_FILL){var m=f.readBeginGradientFill();c.fillCommands.beginGradientFill(m.obj(0),m.iArr(0),m.fArr(0),m.iArr(1),m.obj(1),m.obj(2),m.obj(3),m.float(0)),c.strokeCommands.beginGradientFill(m.obj(0),m.iArr(0),m.fArr(0),m.iArr(1),m.obj(1),m.obj(2),m.obj(3),m.float(0))}else{var v=f.readBeginFill();c.fillCommands.beginFill(v.int(0),1),c.strokeCommands.beginFill(v.int(0),1)}break;case 3:var w=f.readCubicCurveTo();c.fillCommands.cubicCurveTo(w.float(0),w.float(1),w.float(2),w.float(3),w.float(4),w.float(5)),c.strokeCommands.cubicCurveTo(w.float(0),w.float(1),w.float(2),w.float(3),w.float(4),w.float(5));break;case 4:var y=f.readCurveTo();c.fillCommands.curveTo(y.float(0),y.float(1),y.float(2),y.float(3)),c.strokeCommands.curveTo(y.float(0),y.float(1),y.float(2),y.float(3));break;case 5:var b=f.readDrawCircle();c.fillCommands.drawCircle(b.float(0),b.float(1),b.float(2)),c.strokeCommands.drawCircle(b.float(0),b.float(1),b.float(2));break;case 6:var x=f.readDrawEllipse();c.fillCommands.drawEllipse(x.float(0),x.float(1),x.float(2),x.float(3)),c.strokeCommands.drawEllipse(x.float(0),x.float(1),x.float(2),x.float(3));break;case 7:var E=f.readDrawRect();c.fillCommands.drawRect(E.float(0),E.float(1),E.float(2),E.float(3)),c.strokeCommands.drawRect(E.float(0),E.float(1),E.float(2),E.float(3));break;case 8:var T=f.readDrawRoundRect();c.fillCommands.drawRoundRect(T.float(0),T.float(1),T.float(2),T.float(3),T.float(4),T.obj(0)),c.strokeCommands.drawRoundRect(T.float(0),T.float(1),T.float(2),T.float(3),T.float(4),T.obj(0));break;case 11:if(f.readEndFill(),c.endFill(),c.hasFill&&c.context.isPointInPath(e,n,c.windingRule))return f.destroy(),t.__canvas=s,t.__context=o,!0;if(c.endStroke(),c.hasStroke&&c.context.isPointInStroke(e,n))return f.destroy(),t.__canvas=s,t.__context=o,!0;c.hasFill=!1,c.bitmapFill=null;break;case 12:var A=f.readLineBitmapStyle();c.strokeCommands.lineBitmapStyle(A.obj(0),A.obj(1),A.bool(0),A.bool(1));break;case 13:var R=f.readLineGradientStyle();c.strokeCommands.lineGradientStyle(R.obj(0),R.iArr(0),R.fArr(0),R.iArr(1),R.obj(1),R.obj(2),R.obj(3),R.float(0));break;case 14:var S=f.readLineStyle();c.strokeCommands.lineStyle(S.obj(0),S.int(0),1,S.bool(0),S.obj(1),S.obj(2),S.obj(3),S.float(1));break;case 15:var M=f.readLineTo();c.fillCommands.lineTo(M.float(0),M.float(1)),c.strokeCommands.lineTo(M.float(0),M.float(1));break;case 16:var I=f.readMoveTo();c.fillCommands.moveTo(I.float(0),I.float(1)),c.strokeCommands.moveTo(I.float(0),I.float(1));break;case 18:c.windingRule="evenodd";break;case 19:c.windingRule="nonzero";break;default:f.skip(p)}}var D=!1;return c.fillCommands.get_length()>0&&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<s;){var o=a++;e&&o%3==0||n<(i=t.get(o-1))&&(n=i)}if(!e)return{max:n,uvt:t};for(var l=f().default._new(),u=1,_=r+1;u<_;){var d=u++;e&&d%3==0||l.push(t.get(d-1))}return{max:n,uvt:l}},c.playCommands=function(t,e){null==e&&(e=!1);var n=(c.bounds=c.graphics.__bounds).x,i=c.bounds.y,r=0,a=0,o=!1,_=0,p=0,g=!1;c.windingRule="evenodd",c.setSmoothing(!0);var m,v,w,y,b,x,E,T,A,R,S,M,I,D,C,L,O=new(l().default)(t),P=null,F=null,B=0,N=t.types;try{for(;B<N.length;){var k=N[B];switch(++B,u().default.enumIndex(k)){case 0:var U=O.readBeginBitmapFill();c.bitmapFill=U.obj(0);var G=U.obj(0),j=U.bool(1);c.context.fillStyle=c.createBitmapFill(G,!0,j),c.hasFill=!0,null!=U.obj(1)?(c.pendingMatrix=U.obj(1),(c.inversePendingMatrix=U.obj(1).clone()).invert()):(c.pendingMatrix=null,c.inversePendingMatrix=null);break;case 1:var V=O.readBeginFill();if(V.float(0)<.005)c.hasFill=!1;else{if(1==V.float(0)){var X=d().default.hex(16777215&V.int(0),6);c.context.fillStyle="#"+X}else{var W="rgba("+((16711680&V.int(0))>>>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);ft<dt;){var ht=ft++;lt.push(st.get(2*ht)-n/c.bitmapFill.width),lt.push(st.get(2*ht+1)-i/c.bitmapFill.height)}}var ct=lt.get_length()!=st.get_length(),pt=c.normalizeUVT(lt,ct),gt=pt.max;lt=pt.uvt,ut=gt>1?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();Ht<zt;){switch(mt=Ht,vt=Ht+1,wt=Ht+2,yt=2*ot.get(mt),bt=2*ot.get(mt)+1,xt=2*ot.get(vt),Et=2*ot.get(vt)+1,Tt=2*ot.get(wt),At=2*ot.get(wt)+1,Rt=st.get(yt)-n,St=st.get(bt)-i,Mt=st.get(xt)-n,It=st.get(Et)-i,Dt=st.get(Tt)-n,Ct=st.get(At)-i,at.obj(3)){case"negative":if(c.isCCW(Rt,St,Mt,It,Dt,Ct)){Ht+=3;continue}break;case"positive":if(!c.isCCW(Rt,St,Mt,It,Dt,Ct)){Ht+=3;continue}}_t?(c.context.beginPath(),c.context.moveTo(Rt,St),c.context.lineTo(Mt,It),c.context.lineTo(Dt,Ct),c.context.closePath(),c.hitTesting||c.context.fill(c.windingRule),Ht+=3):(c.context.save(),c.context.beginPath(),c.context.moveTo(Rt,St),c.context.lineTo(Mt,It),c.context.lineTo(Dt,Ct),c.context.closePath(),c.context.clip(),Lt=lt.get(yt)*ut.width,Pt=lt.get(xt)*ut.width,Bt=lt.get(Tt)*ut.width,Ot=lt.get(bt)*ut.height,Ft=lt.get(Et)*ut.height,0!=(kt=Lt*((Nt=lt.get(At)*ut.height)-Ft)-Pt*Nt+Bt*Ft+(Pt-Bt)*Ot)?(Ut=-(Ot*(Dt-Mt)-Ft*Dt+Nt*Mt+(Ft-Nt)*Rt)/kt,Gt=(Ft*Ct+Ot*(It-Ct)-Nt*It+(Nt-Ft)*St)/kt,jt=(Lt*(Dt-Mt)-Pt*Dt+Bt*Mt+(Pt-Bt)*Rt)/kt,Vt=-(Pt*Ct+Lt*(It-Ct)-Bt*It+(Bt-Pt)*St)/kt,Xt=(Lt*(Nt*Mt-Ft*Dt)+Ot*(Pt*Dt-Bt*Mt)+(Bt*Ft-Pt*Nt)*Rt)/kt,Wt=(Lt*(Nt*It-Ft*Ct)+Ot*(Pt*Ct-Bt*It)+(Bt*Ft-Pt*Nt)*St)/kt,c.context.transform(Ut,Gt,jt,Vt,Xt,Wt),c.context.drawImage(ut,0,0),c.context.restore(),Ht+=3):Ht+=3)}break;case 12:var Yt=O.readLineBitmapStyle();e&&c.hasStroke&&c.closePath(),c.context.moveTo(r-n,a-i);var qt=Yt.obj(0),Kt=Yt.bool(0);c.context.strokeStyle=c.createBitmapFill(qt,Kt,Yt.bool(1)),c.hasStroke=!0;break;case 13:var Zt=O.readLineGradientStyle();e&&c.hasStroke&&c.closePath(),c.context.moveTo(r-n,a-i);var Qt=Zt.obj(0),Jt=Zt.iArr(0),$t=Zt.fArr(0),te=Zt.iArr(1),ee=Zt.obj(1),ne=Zt.obj(2),ie=Zt.obj(3);c.context.strokeStyle=c.createGradientPattern(Qt,Jt,$t,te,ee,ne,ie,Zt.float(0)),c.setSmoothing(!0),c.hasStroke=!0;break;case 14:var re=O.readLineStyle();if(e&&c.hasStroke&&c.closePath(!0),c.context.moveTo(r-n,a-i),null==re.obj(0))c.hasStroke=!1;else{var ae=re.obj(0)>0?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;x<E.length;){var T=E[x];switch(++x,u().default.enumIndex(T)){case 0:case 1:case 2:if(c.endFill(),c.endStroke(),T==_().default.BEGIN_BITMAP_FILL){var A=b.readBeginBitmapFill();c.fillCommands.beginBitmapFill(A.obj(0),A.obj(1),A.bool(0),A.bool(1)),c.strokeCommands.beginBitmapFill(A.obj(0),A.obj(1),A.bool(0),A.bool(1))}else if(T==_().default.BEGIN_GRADIENT_FILL){var R=b.readBeginGradientFill();c.fillCommands.beginGradientFill(R.obj(0),R.iArr(0),R.fArr(0),R.iArr(1),R.obj(1),R.obj(2),R.obj(3),R.float(0)),c.strokeCommands.beginGradientFill(R.obj(0),R.iArr(0),R.fArr(0),R.iArr(1),R.obj(1),R.obj(2),R.obj(3),R.float(0))}else{var S=b.readBeginFill();c.fillCommands.beginFill(S.int(0),S.float(0)),c.strokeCommands.beginFill(S.int(0),S.float(0))}break;case 3:var M=b.readCubicCurveTo();c.fillCommands.cubicCurveTo(M.float(0),M.float(1),M.float(2),M.float(3),M.float(4),M.float(5)),v?c.strokeCommands.cubicCurveTo(M.float(0),M.float(1),M.float(2),M.float(3),M.float(4),M.float(5)):(w=M.float(4),y=M.float(5));break;case 4:var I=b.readCurveTo();c.fillCommands.curveTo(I.float(0),I.float(1),I.float(2),I.float(3)),v?c.strokeCommands.curveTo(I.float(0),I.float(1),I.float(2),I.float(3)):(w=I.float(2),y=I.float(3));break;case 5:var D=b.readDrawCircle();c.fillCommands.drawCircle(D.float(0),D.float(1),D.float(2)),v&&c.strokeCommands.drawCircle(D.float(0),D.float(1),D.float(2));break;case 6:var C=b.readDrawEllipse();c.fillCommands.drawEllipse(C.float(0),C.float(1),C.float(2),C.float(3)),v&&c.strokeCommands.drawEllipse(C.float(0),C.float(1),C.float(2),C.float(3));break;case 7:var L=b.readDrawRect();c.fillCommands.drawRect(L.float(0),L.float(1),L.float(2),L.float(3)),v&&c.strokeCommands.drawRect(L.float(0),L.float(1),L.float(2),L.float(3));break;case 8:var O=b.readDrawRoundRect();c.fillCommands.drawRoundRect(O.float(0),O.float(1),O.float(2),O.float(3),O.float(4),O.obj(0)),v&&c.strokeCommands.drawRoundRect(O.float(0),O.float(1),O.float(2),O.float(3),O.float(4),O.obj(0));break;case 10:var P=b.readDrawTriangles();c.fillCommands.drawTriangles(P.obj(0),P.obj(1),P.obj(2),P.obj(3));break;case 11:b.readEndFill(),c.endFill(),c.endStroke(),c.hasFill=!1,v=!1,c.bitmapFill=null,w=0,y=0;break;case 12:var F=b.readLineBitmapStyle();v||0==w&&0==y||(c.strokeCommands.moveTo(w,y),w=0,y=0),v=!0,c.strokeCommands.lineBitmapStyle(F.obj(0),F.obj(1),F.bool(0),F.bool(1));break;case 13:var B=b.readLineGradientStyle();v||0==w&&0==y||(c.strokeCommands.moveTo(w,y),w=0,y=0),v=!0,c.strokeCommands.lineGradientStyle(B.obj(0),B.iArr(0),B.fArr(0),B.iArr(1),B.obj(1),B.obj(2),B.obj(3),B.float(0));break;case 14:var N=b.readLineStyle();v||null==N.obj(0)||0==w&&0==y||(c.strokeCommands.moveTo(w,y),w=0,y=0),v=null!=N.obj(0),c.strokeCommands.lineStyle(N.obj(0),N.int(0),N.float(0),N.bool(0),N.obj(1),N.obj(2),N.obj(3),N.float(1));break;case 15:var k=b.readLineTo();c.fillCommands.lineTo(k.float(0),k.float(1)),v?c.strokeCommands.lineTo(k.float(0),k.float(1)):(w=k.float(0),y=k.float(1));break;case 16:var U=b.readMoveTo();c.fillCommands.moveTo(U.float(0),U.float(1)),v?c.strokeCommands.moveTo(U.float(0),U.float(1)):(w=U.float(0),y=U.float(1));break;case 18:b.readWindingEvenOdd(),c.fillCommands.windingEvenOdd(),c.windingRule="evenodd";break;case 19:b.readWindingNonZero(),c.fillCommands.windingNonZero(),c.windingRule="nonzero";break;default:b.skip(T)}}c.fillCommands.get_length()>0&&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;g<m.length;){var v=m[g];switch(++g,u().default.enumIndex(v)){case 3:var w=p.readCubicCurveTo();c.context.bezierCurveTo(w.float(0)-0,w.float(1)-0,w.float(2)-0,w.float(3)-0,w.float(4)-0,w.float(5)-0),w.float(4),w.float(5);break;case 4:var y=p.readCurveTo();c.context.quadraticCurveTo(y.float(0)-0,y.float(1)-0,y.float(2)-0,y.float(3)-0),y.float(2),y.float(3);break;case 5:var b=p.readDrawCircle();c.context.arc(b.float(0)-0,b.float(1)-0,b.float(2),0,2*Math.PI,!0);break;case 6:var x=p.readDrawEllipse();n=x.float(0),i=x.float(1),s=(r=x.float(2))/2*.5522848,o=(a=x.float(3))/2*.5522848,_=(n-=0)+r,f=(i-=0)+a,d=n+r/2,h=i+a/2,c.context.moveTo(n,h),c.context.bezierCurveTo(n,h-o,d-s,i,d,i),c.context.bezierCurveTo(d+s,i,_,h-o,_,h),c.context.bezierCurveTo(_,h+o,d+s,f,d,f),c.context.bezierCurveTo(d-s,f,n,h+o,n,h);break;case 7:var E=p.readDrawRect();c.context.rect(E.float(0)-0,E.float(1)-0,E.float(2),E.float(3));break;case 8:var T=p.readDrawRoundRect();c.drawRoundRect(T.float(0)-0,T.float(1)-0,T.float(2),T.float(3),T.float(4),T.obj(0));break;case 15:var A=p.readLineTo();c.context.lineTo(A.float(0)-0,A.float(1)-0),A.float(0),A.float(1);break;case 16:var R=p.readMoveTo();c.context.moveTo(R.float(0)-0,R.float(1)-0),R.float(0),R.float(1);break;default:p.skip(v)}}p.destroy()}},c.setSmoothing=function(t){c.allowSmoothing||(t=!1),c.context.imageSmoothingEnabled!=t&&(c.context.mozImageSmoothingEnabled=t,c.context.msImageSmoothingEnabled=t,c.context.imageSmoothingEnabled=t)},c.SIN45=.7071067811865476,c.TAN22=.41421356237309503,c.fillCommands=new(r().default),c.strokeCommands=new(r().default),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,r=(n(2).default,n(3).default);function a(){return n(120)}function s(){return n(14)}var o=function(t){a().default.call(this,t),this.gl=t.gl,this.clipRects=[],this.maskObjects=[],this.numClipRects=0,this.stencilReference=0,this.tempRect=new(s().default)};o.__name__=["openfl","_internal","renderer","opengl","GLMaskManager"],o.__super__=a().default,(o.prototype=r(a().default.prototype,{pushMask:function(t){0==this.stencilReference&&(this.gl.enable(this.gl.STENCIL_TEST),this.gl.stencilMask(255),this.gl.clear(this.gl.STENCIL_BUFFER_BIT)),this.gl.stencilOp(this.gl.KEEP,this.gl.KEEP,this.gl.INCR),this.gl.stencilFunc(this.gl.EQUAL,this.stencilReference,255),this.gl.colorMask(!1,!1,!1,!1),t.__renderGLMask(this.renderSession),this.maskObjects.push(t),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)},pushObject:function(t,e){null==e&&(e=!0),e&&null!=t.__scrollRect&&this.pushRect(t.__scrollRect,t.__renderTransform),null!=t.__mask&&this.pushMask(t.__mask)},pushRect:function(t,e){this.numClipRects==this.clipRects.length&&(this.clipRects[this.numClipRects]=new(s().default));var n=this.clipRects[this.numClipRects];if(t.__transform(n,e),this.numClipRects>0){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;e<n.length;){var i=n[e];++e,t.addRenderer(i)}if(this.__windows.length>0)for(var r=0,a=this.__windows;r<a.length;){var s=a[r];++r,t.addWindow(s)}t.setPreloader(this.__preloader)},addRenderer:function(t){a().default.prototype.addRenderer.call(this,t);for(var e=0,n=this.modules;e<n.length;){var i=n[e];++e,i.addRenderer(t)}},create:function(t){if(this.config=t,this.backend.create(t),null!=t){if(s().default.hasField(t,"fps")&&this.set_frameRate(t.fps),s().default.hasField(t,"windows"))for(var e=0,i=t.windows;e<i.length;){var r=i[e];++e;var a=new(n(147).default)(r);this.createWindow(a);break}if(null==this.__preloader||this.__preloader.complete){this.setPreloader(this.__preloader);for(var o=0,l=this.modules;o<l.length;){l[o];++o,this.setPreloader(this.__preloader)}}}},createWindow:function(t){a().default.prototype.addWindow.call(this,t);for(var e=0,i=this.modules;e<i.length;){var r=i[e];++e,r.addWindow(t)}if(null==t.renderer){var s=new(n(263).default)(t);this.addRenderer(s)}t.create(this),this.windowByID.set(t.id,t),t.onCreate.dispatch()},exec:function(){return u.current=this,this.backend.exec()},onModuleExit:function(t){this.backend.exit()},onWindowClose:function(t){this.removeWindow(t)},removeModule:function(t){null!=t&&(t.unregisterModule(this),o().default.remove(this.modules,t))},removeWindow:function(t){null!=t&&this.windowByID.exists(t.id)&&(o().default.remove(this.__windows,t),this.windowByID.remove(t.id),t.close(),null!=t.renderer&&this.removeRenderer(t.renderer),this.get_window()==t&&(this.window=null),0==this.__windows.length&&n(46).default.exit(0))},setPreloader:function(t){a().default.prototype.setPreloader.call(this,t);for(var e=0,n=this.modules;e<n.length;){var i=n[e];++e,i.setPreloader(t)}},get_frameRate:function(){return this.backend.getFrameRate()},set_frameRate:function(t){return this.backend.setFrameRate(t)},get_preloader:function(){return this.__preloader},get_renderer:function(){return this.__renderers[0]},get_renderers:function(){return this.__renderers},get_window:function(){return this.__windows[0]},get_windows:function(){return this.__windows}}),u.prototype.__class__=i["lime.app.Application"]=u;l().default;var _=u.prototype;Object.defineProperties(_,{frameRate:{get:_.get_frameRate,set:_.set_frameRate},preloader:{get:_.get_preloader},renderer:{get:_.get_renderer},renderers:{get:_.get_renderers},window:{get:_.get_window},windows:{get:_.get_windows}}),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.system.Endian"]={__ename__:["lime","system","Endian"],__constructs__:["LITTLE_ENDIAN","BIG_ENDIAN"]};r.LITTLE_ENDIAN=["LITTLE_ENDIAN",0],r.LITTLE_ENDIAN.toString=i,r.LITTLE_ENDIAN.__enum__=r,r.BIG_ENDIAN=["BIG_ENDIAN",1],r.BIG_ENDIAN.toString=i,r.BIG_ENDIAN.__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(259)}function a(){return n(150)}function s(){return n(151)}function o(){return n(10)}function l(){return n(41)}function u(){return n(4)}function _(){return n(43)}var f=function(){};f.__name__=["lime","graphics","utils","ImageDataUtil"],(f.prototype={}).__class__=i["lime.graphics.utils.ImageDataUtil"]=f,f.colorTransform=function(t,e,n){var i=t.buffer.data;if(null!=i){for(var o,l,u,_=t.buffer.format,f=t.buffer.premultiplied,d=new(r().default)(t,e),h=a().default.getAlphaTable(n),c=a().default.getRedTable(n),p=a().default.getGreenTable(n),g=a().default.getBlueTable(n),m=0,v=d.height;m<v;){var w=m++;o=d.row(w);for(var y=0,b=d.width;y<b;){switch(l=o+4*y++,_){case 0:u=(255&i[l])<<24|(255&i[l+1])<<16|(255&i[l+2])<<8|255&i[l+3];break;case 1:u=(255&i[l+1])<<24|(255&i[l+2])<<16|(255&i[l+3])<<8|255&i[l];break;case 2:u=(255&i[l+2])<<24|(255&i[l+1])<<16|(255&i[l])<<8|255&i[l+3]}switch(f&&0!=(255&u)&&255!=(255&u)&&(s().default.unmult=255/(255&u),u=(255&s().default.__clamp[Math.round((u>>>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<R;){var S=A++;c=v.row(S),p=w.row(S);for(var M=0,I=w.width;M<I;){M++;switch(y){case 0:g=(255&d[c])<<24|(255&d[c+1])<<16|(255&d[c+2])<<8|255&d[c+3];break;case 1:g=(255&d[c+1])<<24|(255&d[c+2])<<16|(255&d[c+3])<<8|255&d[c];break;case 2:g=(255&d[c+2])<<24|(255&d[c+1])<<16|(255&d[c])<<8|255&d[c+3]}switch(x&&0!=(255&g)&&255!=(255&g)&&(s().default.unmult=255/(255&g),g=(255&s().default.__clamp[Math.round((g>>>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<U;){var G=k++;c=x.row(G),p=T.row(G),O=N.row(G);for(var j=0,V=T.width;j<V;){j++;switch(A){case 0:y=(255&d[c])<<24|(255&d[c+1])<<16|(255&d[c+2])<<8|255&d[c+3];break;case 1:y=(255&d[c+1])<<24|(255&d[c+2])<<16|(255&d[c+3])<<8|255&d[c];break;case 2:y=(255&d[c+2])<<24|(255&d[c+1])<<16|(255&d[c])<<8|255&d[c+3]}switch(S&&0!=(255&y)&&255!=(255&y)&&(s().default.unmult=255/(255&y),y=(255&s().default.__clamp[Math.round((y>>>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<W;){var H=X++;c=x.row(H),p=T.row(H),O=N.row(H);for(var z=0,Y=T.width;z<Y;){z++;switch(A){case 0:y=(255&d[c])<<24|(255&d[c+1])<<16|(255&d[c+2])<<8|255&d[c+3];break;case 1:y=(255&d[c+1])<<24|(255&d[c+2])<<16|(255&d[c+3])<<8|255&d[c];break;case 2:y=(255&d[c+2])<<24|(255&d[c+1])<<16|(255&d[c])<<8|255&d[c+3]}switch(S&&0!=(255&y)&&255!=(255&y)&&(s().default.unmult=255/(255&y),y=(255&s().default.__clamp[Math.round((y>>>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<K;){var Z=q++;c=x.row(Z),p=T.row(Z);for(var Q=0,J=T.width;Q<J;){Q++;switch(A){case 0:y=(255&d[c])<<24|(255&d[c+1])<<16|(255&d[c+2])<<8|255&d[c+3];break;case 1:y=(255&d[c+1])<<24|(255&d[c+2])<<16|(255&d[c+3])<<8|255&d[c];break;case 2:y=(255&d[c+2])<<24|(255&d[c+1])<<16|(255&d[c])<<8|255&d[c+3]}switch(S&&0!=(255&y)&&255!=(255&y)&&(s().default.unmult=255/(255&y),y=(255&s().default.__clamp[Math.round((y>>>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;$<tt;){var et=$++;c=x.row(et),p=T.row(et),h.set(d.subarray(c,c+T.width*D),p)}else for(var nt=0,it=T.height;nt<it;){var rt=nt++;c=x.row(rt),p=T.row(rt);for(var at=0,st=T.width;at<st;){at++;switch(A){case 0:y=(255&d[c])<<24|(255&d[c+1])<<16|(255&d[c+2])<<8|255&d[c+3];break;case 1:y=(255&d[c+1])<<24|(255&d[c+2])<<16|(255&d[c+3])<<8|255&d[c];break;case 2:y=(255&d[c+2])<<24|(255&d[c+1])<<16|(255&d[c])<<8|255&d[c+3]}switch(S&&0!=(255&y)&&255!=(255&y)&&(s().default.unmult=255/(255&y),y=(255&s().default.__clamp[Math.round((y>>>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<d;){var h=f++;u=_.row(h);for(var c=0,p=_.width;c<p;){var g=u+4*c++;switch(l){case 0:o[g]=a>>>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])<y||p<b||c>=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<u;){var _=l++;o.push(_<s?i:r)}return o},h=function(t,e,n,i,r,a){for(var s=1/(r+r+1),o=0,l=i;o<l;){for(var u=o++*n,f=u,d=u+r,h=t[4*u+a],c=t[4*(u+n-1)+a],p=(r+1)*h,g=0,m=r;g<m;){p+=t[4*(u+g++)+a]}for(var v=0,w=r+1;v<w;){v++;p+=t[4*d+a]-h,e[4*u+a]=Math.round(_().default.toFloat(p)*s),++d,++u}for(var y=r+1,b=n-r;y<b;){y++;p+=t[4*d+a]-t[4*f+a],e[4*u+a]=Math.round(_().default.toFloat(p)*s),++d,++f,++u}for(var x=n-r,E=n;x<E;){x++;p+=c-t[4*f+a],e[4*u+a]=Math.round(_().default.toFloat(p)*s),++f,++u}}},c=function(t,e,n,i,r,a){for(var s=1/(r+r+1),o=4*n,l=0,u=n;l<u;){for(var f=4*l+++a,d=f,h=f+r*o,c=t[f],p=t[f+o*(i-1)],g=(r+1)*c,m=0,v=r;m<v;){g+=t[f+m++*o]}for(var w=0,y=r+1;w<y;){w++;g+=t[h]-c,e[f]=Math.round(_().default.toFloat(g)*s),h+=o,f+=o}for(var b=r+1,x=i-r;b<x;){b++;g+=t[h]-t[d],e[f]=Math.round(_().default.toFloat(g)*s),d+=o,h+=o,f+=o}for(var E=i-r,T=i;E<T;){E++;g+=p-t[d],e[f]=Math.round(_().default.toFloat(g)*s),d+=o,f+=o}}},p=function(t,e,n,i,r,a){for(var s=0,o=t.length;s<o;){var l=s++;e[l]=t[l]}var _=u().default.int(r);h(e,t,n,i,_,0);var f=u().default.int(r);h(e,t,n,i,f,1);var d=u().default.int(r);h(e,t,n,i,d,2);var p=u().default.int(r);h(e,t,n,i,p,3);var g=u().default.int(a);c(t,e,n,i,g,0);var m=u().default.int(a);c(t,e,n,i,m,1);var v=u().default.int(a);c(t,e,n,i,v,2);var w=u().default.int(a);c(t,e,n,i,w,3)},g=t.get_data(),m=e.get_data(),v=u().default.int(n.width),w=u().default.int(n.height),y=u().default.int(r),b=u().default.int(a),x=u().default.int(i.x),E=u().default.int(i.y),T=2*s-1,A=.125*Math.pow(2,s),R=d(y*A,T),S=d(b*A,T),M=u().default.int(4*(v*E+x));p(m,g,v,w,(R[0]-1)/2,(S[0]-1)/2);for(var I,D,C=1,L=0,O=u().default.int(T/2);L<O;){L++;p(g,m,v,w,(R[C]-1)/2,(S[C]-1)/2),p(m,g,v,w,(R[C+1]-1)/2,(S[C+1]-1)/2),C+=2}if(M<=0)for(D=0;D<w;){for(I=0;I<v;)f.translatePixel(g,e.get_rect(),t.get_rect(),i,I,D,o,l),++I;++D}else for(D=w-1;D>=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;p<g;){var m=p++;u=!1;for(var v=0,w=t.height;v<w;){var y=v++;if(o=t.getPixel32(m,y,0),u=i?(o&s)==a:(o&s)!=a){m<_&&(_=m);break}}if(u)break}for(var b=0,x=t.width;b<x;){var E=b++;c=t.width-1-E,u=!1;for(var T=0,A=t.height;T<A;){var R=T++;if(o=t.getPixel32(c,R,0),u=i?(o&s)==a:(o&s)!=a){c>f&&(f=c);break}}if(u)break}for(var S,M=0,I=t.height;M<I;){var D=M++;u=!1;for(var C=0,L=t.width;C<L;){var O=C++;if(o=t.getPixel32(O,D,0),u=i?(o&s)==a:(o&s)!=a){D<d&&(d=D);break}}if(u)break}for(var P=0,F=t.height;P<F;){var B=P++;S=t.height-1-B,u=!1;for(var N=0,k=t.width;N<k;){var U=N++;if(o=t.getPixel32(U,S,0),u=i?(o&s)==a:(o&s)!=a){S>h&&(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<m;){var v=g++;a=c.row(v);for(var w=0,y=c.width;w<y;){w++;switch(d){case 0:o=(255&f[a])<<24|(255&f[a+1])<<16|(255&f[a+2])<<8|255&f[a+3];break;case 1:o=(255&f[a+1])<<24|(255&f[a+2])<<16|(255&f[a+3])<<8|255&f[a];break;case 2:o=(255&f[a+2])<<24|(255&f[a+1])<<16|(255&f[a])<<8|255&f[a+3]}switch(h&&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),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<A;){var R=T++;d=g.row(R),h=m.row(R);for(var S=0,M=m.width;S<M;){S++;switch(y){case 0:c=(255&v[d])<<24|(255&v[d+1])<<16|(255&v[d+2])<<8|255&v[d+3];break;case 1:c=(255&v[d+1])<<24|(255&v[d+2])<<16|(255&v[d+3])<<8|255&v[d];break;case 2:c=(255&v[d+2])<<24|(255&v[d+1])<<16|(255&v[d])<<8|255&v[d+3]}switch(x&&0!=(255&c)&&255!=(255&c)&&(s().default.unmult=255/(255&c),c=(255&s().default.__clamp[Math.round((c>>>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<a;){var o=r++,l=4*o;switch(i){case 0:n=(255&e[l])<<24|(255&e[l+1])<<16|(255&e[l+2])<<8|255&e[l+3];break;case 1:n=(255&e[l+1])<<24|(255&e[l+2])<<16|(255&e[l+3])<<8|255&e[l];break;case 2:n=(255&e[l+2])<<24|(255&e[l+1])<<16|(255&e[l])<<8|255&e[l+3]}var _=4*o;switch(0==(255&n)?0!=n&&(n=0):255!=(255&n)&&(s().default.a16=s().default.__alpha16[255&n],n=((n>>>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<M;)for(var I=S++,D=0,C=e;D<C;){var L=D++;g=(L+.5)/e*E-.5,m=(I+.5)/i*T-.5,c=u().default.int(g),o=4*((p=u().default.int(m))*E+c),l=c<E-1?o+4:o,f=p<T-1?o+4*E:o,d=l!=o?f+4:f,y=1-(v=g-c),b=1-(w=m-p),R[h=4*(I*e+L)]=u().default.int((_().default.toFloat(A[o])*y+_().default.toFloat(A[l])*v)*b+(_().default.toFloat(A[f])*y+_().default.toFloat(A[d])*v)*w),R[h+1]=u().default.int((_().default.toFloat(A[o+1])*y+_().default.toFloat(A[l+1])*v)*b+(_().default.toFloat(A[f+1])*y+_().default.toFloat(A[d+1])*v)*w),R[h+2]=u().default.int((_().default.toFloat(A[o+2])*y+_().default.toFloat(A[l+2])*v)*b+(_().default.toFloat(A[f+2])*y+_().default.toFloat(A[d+2])*v)*w),0==A[l+3]||0==A[f+3]||0==A[d+3]?R[h+3]=0:R[h+3]=A[o+3]}r.data=x.data,r.width=e,r.height=i,r.__srcImage=null,r.__srcImageData=null,r.__srcCanvas=null,r.__srcContext=null,t.dirty=!0,t.version++}},f.resizeBuffer=function(t,e,n){for(var i,r,a=t.buffer,s=t.get_data(),o=e*n*4,l=null!=o?new Uint8Array(o):null,u=0,_=a.height;u<_;)for(var f=u++,d=0,h=a.width;d<h;){var c=d++;i=4*(f*a.width+c),l[r=4*(f*e+c)]=s[i],l[r+1]=s[i+1],l[r+2]=s[i+2],l[r+3]=s[i+3]}a.data=l,a.width=e,a.height=n},f.setFormat=function(t,e){var n=t.buffer.data;if(null!=n){var i,r,a,s,o,l,_,f,d,h,c,p,g,m=u().default.int(n.length/4);switch(t.get_format()){case 0:r=0,a=1,s=2,o=3;break;case 1:r=1,a=2,s=3,o=0;break;case 2:r=2,a=1,s=0,o=3}switch(e){case 0:l=0,_=1,f=2,d=3;break;case 1:l=1,_=2,f=3,d=0;break;case 2:l=2,_=1,f=0,d=3}for(var v=0,w=m;v<w;){h=n[(i=4*v++)+r],c=n[i+a],p=n[i+s],g=n[i+o],n[i+l]=h,n[i+_]=c,n[i+f]=p,n[i+d]=g}t.buffer.format=e,t.dirty=!0,t.version++}},f.setPixel=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}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<y;){var b=w++;l=c.row(b);for(var x=0,E=c.width;x<E;){var T=x++;switch(u=v?g.getInt32(m):g.get(m+3)|g.get(m+2)<<8|g.get(m+1)<<16|g.get(m)<<24,m+=4,a){case 1:_=(255&u>>>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<O;){var P=L++;y=R.row(P),b=S.row(P);for(var F=0,B=S.width;F<B;){F++;switch(M){case 0:x=(255&v[y])<<24|(255&v[y+1])<<16|(255&v[y+2])<<8|255&v[y+3];break;case 1:x=(255&v[y+1])<<24|(255&v[y+2])<<16|(255&v[y+3])<<8|255&v[y];break;case 2:x=(255&v[y+2])<<24|(255&v[y+1])<<16|(255&v[y])<<8|255&v[y+3]}switch(D&&0!=(255&x)&&255!=(255&x)&&(s().default.unmult=255/(255&x),x=(255&s().default.__clamp[Math.round((x>>>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<a;){var o=r++,l=4*o;switch(i){case 0:n=(255&e[l])<<24|(255&e[l+1])<<16|(255&e[l+2])<<8|255&e[l+3];break;case 1:n=(255&e[l+1])<<24|(255&e[l+2])<<16|(255&e[l+3])<<8|255&e[l];break;case 2:n=(255&e[l+2])<<24|(255&e[l+1])<<16|(255&e[l])<<8|255&e[l+3]}0!=(255&n)&&255!=(255&n)&&(s().default.unmult=255/(255&n),n=(255&s().default.__clamp[Math.round((n>>>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.activeObjects<this.__size)&&null!=(t=this.create())&&(this.__pool.set(t,!0),this.activeObjects++),t},release:function(t){this.activeObjects--,null==this.__size||this.activeObjects+this.inactiveObjects<this.__size?(this.clean(t),this.__addInactive(t)):this.__pool.remove(t)},__addInactive:function(t){null==this.__inactiveObject0?this.__inactiveObject0=t:null==this.__inactiveObject1?this.__inactiveObject1=t:this.__inactiveObjectList.add(t),this.inactiveObjects++},__getInactive:function(){var t=null;return null!=this.__inactiveObject0?(t=this.__inactiveObject0,this.__inactiveObject0=null):null!=this.__inactiveObject1?(t=this.__inactiveObject1,this.__inactiveObject1=null):(t=this.__inactiveObjectList.pop(),this.__inactiveObjectList.length>0&&(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;i<r;){i++;if(null==(n=this.create()))break;this.__pool.set(n,!1),this.__inactiveObjectList.add(n),this.inactiveObjects++}}return t}}).__class__=i["lime.utils.ObjectPool"]=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=(n(2).default,n(3).default);function a(){return n(118)}var s=function(t,e){a().default.call(this,t),this.context=e,this.renderSession=new(n(91).default),this.renderSession.clearRenderDirty=!0,this.renderSession.context=e,this.renderSession.renderer=this,this.renderSession.renderType=n(33).default.CANVAS,this.renderSession.blendModeManager=new(n(160).default)(this.renderSession),this.renderSession.maskManager=new(n(161).default)(this.renderSession);var i=t.window.config;null!=i&&n(5).default.hasField(i,"allowHighDPI")&&i.allowHighDPI&&(s.scale=window.devicePixelRatio||1)};s.__name__=["openfl","_internal","renderer","canvas","CanvasRenderer"],s.__super__=a().default,s.prototype=r(a().default.prototype,{clear:function(){this.renderSession.blendModeManager.setBlendMode("normal"),this.context.setTransform(1,0,0,1,0,0),this.context.globalAlpha=1,!this.stage.__transparent&&this.stage.__clearBeforeRender?(this.context.fillStyle=this.stage.__colorString,this.context.fillRect(0,0,this.stage.stageWidth*this.stage.window.get_scale(),this.stage.stageHeight*this.stage.window.get_scale())):this.stage.__transparent&&this.stage.__clearBeforeRender&&this.context.clearRect(0,0,this.stage.stageWidth*this.stage.window.get_scale(),this.stage.stageHeight*this.stage.window.get_scale())},render:function(){this.renderSession.allowSmoothing="low"!=this.stage.quality,this.stage.__renderCanvas(this.renderSession)},renderStage3D:function(){for(var t=0,e=this.stage.stage3Ds;t<e.get_length();){var n=e.get(t);++t,n.__renderCanvas(this.stage,this.renderSession)}}}),s.prototype.__class__=i["openfl._internal.renderer.canvas.CanvasRenderer"]=s,s.scale=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(1).default;n(2).default;function r(){return n(50)}function a(){return n(70)}function s(){return n(21)}function o(){return n(14)}function l(){return n(10)}function u(){return n(167)}function _(){return n(28)}var f=function(t){this.__dirty=!0,this.__owner=t,this.__commands=new(n(159).default),this.__strokePadding=0,this.__positionX=0,this.__positionY=0,this.__renderTransform=new(_().default),this.__worldTransform=new(_().default),this.__width=0,this.__height=0,this.moveTo(0,0)};f.__name__=["openfl","display","Graphics"],(f.prototype={beginBitmapFill:function(t,e,n,i){null==i&&(i=!1),null==n&&(n=!0),this.__commands.beginBitmapFill(t,null!=e?e.clone():null,n,i),this.__visible=!0},beginFill:function(t,e){null==e&&(e=1),null==t&&(t=0),this.__commands.beginFill(16777215&t,e),e>0&&(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;l<n.length;){var u=n[l];if(++l,u>0){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,!(t<r&&t>this.__positionX||t>r&&t<this.__positionX)||!(n<r&&n>this.__positionX||n>r&&n<this.__positionX)){var _=2*this.__positionX-4*t+2*n,f=t-this.__positionX,d=-this.__positionX+3*t+r-3*n,h=(-_+Math.sqrt(_*_-4*f*d))/(2*d),c=(-_-Math.sqrt(_*_-4*f*d))/(2*d);h>0&&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,!(e<a&&e>this.__positionX||e>a&&e<this.__positionX)||!(i<a&&i>this.__positionX||i>a&&i<this.__positionX)){var p=2*this.__positionX-4*e+2*i,g=e-this.__positionX,m=-this.__positionX+3*e+a-3*i,v=(-p+Math.sqrt(p*p-4*g*m))/(2*m),w=(-p-Math.sqrt(p*p-4*g*m))/(2*m);v>0&&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),t<n&&t>this.__positionX||t>n&&t<this.__positionX)r=n;else{var s=(this.__positionX-t)/(this.__positionX-2*t+n);r=this.__calculateBezierQuadPoint(s,this.__positionX,t,n)}if(e<i&&e>this.__positionY||e>i&&e<this.__positionY)a=i;else{var o=(this.__positionY-e)/(this.__positionY-2*e+i);a=this.__calculateBezierQuadPoint(o,this.__positionY,e,i)}this.__inflateBounds(r-this.__strokePadding,a-this.__strokePadding),this.__inflateBounds(r+this.__strokePadding,a+this.__strokePadding),this.__positionX=n,this.__positionY=i,this.__commands.curveTo(t,e,n,i),this.set___dirty(!0)},drawCircle:function(t,e,n){n<=0||(this.__inflateBounds(t-n-this.__strokePadding,e-n-this.__strokePadding),this.__inflateBounds(t+n+this.__strokePadding,e+n+this.__strokePadding),this.__commands.drawCircle(t,e,n),this.set___dirty(!0))},drawEllipse:function(t,e,n,i){n<=0||i<=0||(this.__inflateBounds(t-this.__strokePadding,e-this.__strokePadding),this.__inflateBounds(t+n+this.__strokePadding,e+i+this.__strokePadding),this.__commands.drawEllipse(t,e,n,i),this.set___dirty(!0))},drawGraphicsData:function(t){for(var e,n,i,s,o,l,u=0;u<t.get_length();){var _=t.get(u);switch(++u,_.__graphicsDataType){case r().default.STROKE:if(null!=(s=_).fill){var f=s.thickness;switch(isNaN(f)&&(f=null),s.fill.__graphicsFillType){case a().default.SOLID_FILL:e=s.fill,this.lineStyle(f,e.color,e.alpha,s.pixelHinting,s.scaleMode,s.caps,s.joints,s.miterLimit);break;case a().default.GRADIENT_FILL:i=s.fill,this.lineStyle(f,0,1,s.pixelHinting,s.scaleMode,s.caps,s.joints,s.miterLimit),this.lineGradientStyle(i.type,i.colors,i.alphas,i.ratios,i.matrix,i.spreadMethod,i.interpolationMethod,i.focalPointRatio);break;case a().default.BITMAP_FILL:n=s.fill,this.lineStyle(f,0,1,s.pixelHinting,s.scaleMode,s.caps,s.joints,s.miterLimit),this.lineBitmapStyle(n.bitmapData,n.matrix,n.repeat,n.smooth)}}else this.lineStyle();break;case r().default.SOLID:e=_,this.beginFill(e.color,e.alpha);break;case r().default.GRADIENT:i=_,this.beginGradientFill(i.type,i.colors,i.alphas,i.ratios,i.matrix,i.spreadMethod,i.interpolationMethod,i.focalPointRatio);break;case r().default.PATH:o=_,this.drawPath(o.commands,o.data,o.winding);break;case r().default.BITMAP:n=_,this.beginBitmapFill(n.bitmapData,n.matrix,n.repeat,n.smooth);break;case r().default.END:this.endFill();break;case r().default.TRIANGLE_PATH:l=_,this.drawTriangles(l.vertices,l.indices,l.uvtData,l.culling)}}},drawPath:function(t,e,n){null==n&&(n="evenOdd");var i=0;"nonZero"==n&&this.__commands.windingNonZero();var r=0;try{for(;r<t.get_length();){var a=t.get(r);switch(++r,a){case 1:this.moveTo(e.get(i),e.get(i+1)),i+=2;break;case 2:this.lineTo(e.get(i),e.get(i+1)),i+=2;break;case 3:this.curveTo(e.get(i),e.get(i+1),e.get(i+2),e.get(i+3)),i+=4;break;case 4:throw this.moveTo(e.get(i+2),e.get(i+3)),"__break__";case 5:throw this.lineTo(e.get(i+2),e.get(i+3)),"__break__";case 6:this.cubicCurveTo(e.get(i),e.get(i+1),e.get(i+2),e.get(i+3),e.get(i+4),e.get(i+5)),i+=6}}}catch(t){if("__break__"!=t)throw t}},drawRect:function(t,e,n,i){n<=0||i<=0||(this.__inflateBounds(t-this.__strokePadding,e-this.__strokePadding),this.__inflateBounds(t+n+this.__strokePadding,e+i+this.__strokePadding),this.__commands.drawRect(t,e,n,i),this.set___dirty(!0))},drawRoundRect:function(t,e,n,i,r,a){n<=0||i<=0||(this.__inflateBounds(t-this.__strokePadding,e-this.__strokePadding),this.__inflateBounds(t+n+this.__strokePadding,e+i+this.__strokePadding),this.__commands.drawRoundRect(t,e,n,i,r,a),this.set___dirty(!0))},drawRoundRectComplex:function(t,e,n,i,r,a,s,o){if(!(n<=0||i<=0)){this.__inflateBounds(t-this.__strokePadding,e-this.__strokePadding),this.__inflateBounds(t+n+this.__strokePadding,e+i+this.__strokePadding);var l=t+n,u=e+i,_=n<i?2*n:2*i;r=r<_?r:_,a=a<_?a:_,s=s<_?s:_,o=o<_?o:_;var f=1-Math.sin(Math.PI/180*45),d=1-Math.tan(Math.PI/180*22.5),h=o*f,c=o*d;this.moveTo(l,u-o),this.curveTo(l,u-c,l-h,u-h),this.curveTo(l-c,u,l-o,u),h=s*f,c=s*d,this.lineTo(t+s,u),this.curveTo(t+c,u,t+h,u-h),this.curveTo(t,u-c,t,u-s),h=r*f,c=r*d,this.lineTo(t,e+r),this.curveTo(t,e+c,t+h,e+h),this.curveTo(t+c,e,t+r,e),h=a*f,c=a*d,this.lineTo(l-a,e),this.curveTo(l-c,e,l-h,e+h),this.curveTo(l,e+c,l,e+a),this.lineTo(l,u-o),this.set___dirty(!0)}},drawTriangles:function(t,e,i,r){if(null==r&&(r="none"),null!=t){var a=n(4).default.int(t.get_length()/2);if(null==r&&(r="none"),null==e){if(a%3!=0)throw new(n(6).default)(new(n(71).default)("Not enough vertices to close a triangle."));e=s().default._new();for(var o=0,l=a;o<l;){var u=o++;e.push(u)}}this.__inflateBounds(0,0);for(var _=-1/0,f=-1/0,d=-1/0,h=-1/0,c=0,p=a;c<p;){var g=c++;_=t.get(2*g),f=t.get(2*g+1),d<_&&(d=_),h<f&&(h=f)}this.__inflateBounds(d,h),this.__commands.drawTriangles(t,e,i,r),this.set___dirty(!0),this.__visible=!0}},endFill:function(){this.__commands.endFill()},lineBitmapStyle:function(t,e,n,i){null==i&&(i=!1),null==n&&(n=!0),this.__commands.lineBitmapStyle(t,null!=e?e.clone():null,n,i)},lineGradientStyle:function(t,e,n,i,r,a,s,o){null==o&&(o=0),null==s&&(s="rgb"),null==a&&(a="pad"),this.__commands.lineGradientStyle(t,e,n,i,r,a,s,o)},lineStyle:function(t,e,n,i,r,a,s,o){null==o&&(o=3),null==r&&(r="normal"),null==i&&(i=!1),null==n&&(n=1),null==e&&(e=0),null!=t&&("miter"==s?t>this.__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);t<this.__bounds.x&&(this.__bounds.width+=this.__bounds.x-t,this.__bounds.x=t,this.__transformDirty=!0),e<this.__bounds.y&&(this.__bounds.height+=this.__bounds.y-e,this.__bounds.y=e,this.__transformDirty=!0),t>this.__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<s.length;){var o=s[a];switch(++a,l().default.enumIndex(o)){case 3:case 4:case 5:case 6:case 7:case 8:case 15:case 16:null==r&&(r=new(n(164).default));break;default:null!=r&&(t.push(r),r=null)}switch(l().default.enumIndex(o)){case 0:var _=i.readBeginBitmapFill();t.push(new(n(166).default)(_.obj(0),_.obj(1),_.bool(0),_.bool(1)));break;case 1:var f=i.readBeginFill();t.push(new(u().default)(f.int(0),1));break;case 2:var d=i.readBeginGradientFill();t.push(new(n(168).default)(d.obj(0),d.iArr(0),d.fArr(0),d.iArr(1),d.obj(1),d.obj(2),d.obj(3),d.float(0)));break;case 3:var h=i.readCubicCurveTo();r.cubicCurveTo(h.float(0),h.float(1),h.float(2),h.float(3),h.float(4),h.float(5));break;case 4:var c=i.readCurveTo();r.curveTo(c.float(0),c.float(1),c.float(2),c.float(3));break;case 5:var p=i.readDrawCircle();r.__drawCircle(p.float(0),p.float(1),p.float(2));break;case 6:var g=i.readDrawEllipse();r.__drawEllipse(g.float(0),g.float(1),g.float(2),g.float(3));break;case 7:var m=i.readDrawRect();r.__drawRect(m.float(0),m.float(1),m.float(2),m.float(3));break;case 8:var v=i.readDrawRoundRect();r.__drawRoundRect(v.float(0),v.float(1),v.float(2),v.float(3),v.float(4),null!=v.obj(0)?v.obj(0):v.float(4));break;case 11:i.readEndFill(),t.push(new(n(169).default));break;case 12:i.readLineBitmapStyle();r=null;break;case 13:i.readLineGradientStyle();break;case 14:var w=i.readLineStyle();(e=new(n(170).default)(w.obj(0),w.bool(0),w.obj(1),w.obj(2),w.obj(3),w.float(1))).fill=new(u().default)(w.int(0),w.float(0)),t.push(e);break;case 15:var y=i.readLineTo();r.lineTo(y.float(0),y.float(1));break;case 16:var b=i.readMoveTo();r.moveTo(b.float(0),b.float(1));break;default:i.skip(o)}}null!=r&&t.push(r)},__update:function(){if(!(null==this.__bounds||this.__bounds.width<=0||this.__bounds.height<=0)){var t=this.__owner.__renderTransform,e=1,n=1;if(null!=t){e=0==t.b?Math.abs(t.a):Math.sqrt(t.a*t.a+t.b*t.b),n=0==t.c?Math.abs(t.d):Math.sqrt(t.c*t.c+t.d*t.d);var i=this.__bounds.width*e,r=this.__bounds.height*n;if(i<1||r<1)return(this.__width>=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<r.length;){var a=r[i];++i,e.push(new(n(194).default)(a.name,a.value))}t.responseHeaders=e,this.dispatchEvent(t)},__prepareRequest:function(t,e){var i;switch(this.__httpRequest=t,this.__httpRequest.uri=e.url,e.method){case"DELETE":i="DELETE";break;case"HEAD":i="HEAD";break;case"OPTIONS":i="OPTIONS";break;case"POST":i="POST";break;case"PUT":i="PUT";break;default:i="GET"}if(this.__httpRequest.method=i,null!=e.data)if(l().default.is(e.data,n(134).default))for(var r=u().default.fields(e.data),a=0;a<r.length;){var s=r[a];++a,this.__httpRequest.formData.set(s,u().default.field(e.data,s))}else l().default.is(e.data,_().default)?this.__httpRequest.data=e.data:this.__httpRequest.data=_().default.ofString(l().default.string(e.data));if(this.__httpRequest.contentType=e.contentType,null!=e.requestHeaders)for(var o=0,f=e.requestHeaders;o<f.length;){var d=f[o];++o,this.__httpRequest.headers.push(new(n(155).default)(d.name,d.value))}this.__httpRequest.followRedirects=e.followRedirects,this.__httpRequest.timeout=l().default.int(e.idleTimeout),this.__httpRequest.withCredentials=e.manageCookies;var h=e.userAgent;null==h&&(h="Mozilla/5.0 (Windows; U; en) AppleWebKit/420+ (KHTML, like Gecko) OpenFL/1.0"),this.__httpRequest.userAgent=e.userAgent,this.__httpRequest.enableResponseHeaders=!0},httpRequest_onError:function(t){if(this.__dispatchStatus(),403==t){var e=new(n(195).default)("securityError");e.text=l().default.string(t),this.dispatchEvent(e)}else{var i=new(n(101).default)("ioError");i.text=l().default.string(t),this.dispatchEvent(i)}},httpRequest_onProgress:function(t,e){var i=new(n(53).default)("progress");i.bytesLoaded=t,i.bytesTotal=e,this.dispatchEvent(i)}})).__class__=i["openfl.net.URLLoader"]=f,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(7)}var a=function(t){switch(t){case".":case"..":return this.dir=t,void(this.file="")}var e=t.lastIndexOf("/"),n=t.lastIndexOf("\\");e<n?(this.dir=r().default.substr(t,0,n),t=r().default.substr(t,n+1,null),this.backslash=!0):n<e?(this.dir=r().default.substr(t,0,e),t=r().default.substr(t,e+1,null)):this.dir=null;var i=t.lastIndexOf(".");-1!=i?(this.ext=r().default.substr(t,i+1,null),this.file=r().default.substr(t,0,i)):(this.ext=null,this.file=t)};a.__name__=["haxe","io","Path"],(a.prototype={toString:function(){return(null==this.dir?"":this.dir+(this.backslash?"\\":"/"))+this.file+(null==this.ext?"":"."+this.ext)}}).__class__=i["haxe.io.Path"]=a,a.withoutDirectory=function(t){var e=new a(t);return e.dir=null,e.toString()},a.directory=function(t){var e=new a(t);return null==e.dir?"":e.dir},a.extension=function(t){var e=new a(t);return null==e.ext?"":e.ext},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(t,e){null==e&&(e=0),null==t&&(t=1),this.volume=t,this.pan=e,this.leftToLeft=0,this.leftToRight=0,this.rightToLeft=0,this.rightToRight=0});r.__name__=["openfl","media","SoundTransform"],(r.prototype={clone:function(){return new r(this.volume,this.pan)}}).__class__=i["openfl.media.SoundTransform"]=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)}function s(){return n(105)}var o=function(t){a().default.call(this),this.__context=t,s().default.create(this,this.__context.__renderSession)};o.__name__=["openfl","display3D","textures","TextureBase"],o.__super__=a().default,(o.prototype=r(a().default.prototype,{dispose:function(){s().default.dispose(this,this.__context.__renderSession)},__getImage:function(t){return s().default.getImage(this,this.__context.__renderSession,t)},__getTexture:function(){return this.__textureID},__setSamplerState:function(t){s().default.setSamplerState(this,this.__context.__renderSession,t)}})).__class__=i["openfl.display3D.textures.TextureBase"]=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(143)}function a(){return n(6)}function s(){return n(38)}function o(){return n(31)}function l(){return n(405)}function u(){return n(218)}var _=function(){};_.__name__=["openfl","_internal","stage3D","AGALConverter"],(_.prototype={}).__class__=i["openfl._internal.stage3D.AGALConverter"]=_,_.prefixFromType=function(t,e){switch(t){case 0:return"va";case 1:return e==r().default.VERTEX?"vc":"fc";case 2:return e==r().default.VERTEX?"vt":"ft";case 3:return"output_";case 4:return"v";case 5:return"sampler";default:throw new(a().default)(new(s().default)("Invalid data!"))}},_.readUInt64=function(t){var e=t.readInt(),i=t.readInt();return new(n(54).default)(i,e)},_.convertToGLSL=function(t,e){t.position=0,t.set_endian("littleEndian");var i=255&t.readByte();if(176==i)return t.readUTF();if(160!=i)throw new(a().default)(new(s().default)("Magic value must be 0xA0, may not be AGAL"));if(1!=t.readInt())throw new(a().default)(new(s().default)("Version must be 1"));if(161!=(255&t.readByte()))throw new(a().default)(new(s().default)("Shader type ID must be 0xA1"));for(var f=0==(255&t.readByte())?r().default.VERTEX:r().default.FRAGMENT,d=new(n(402).default),h=new(o().default);t.position<n(17).default.get_length(t);){var c=t.readInt(),p=t.readUnsignedInt(),g=_.readUInt64(t),m=_.readUInt64(t),v=n(404).default.parse(p,f),w=l().default.parse(g,f,v.mask),y=l().default.parse(m,f,v.mask);switch(h.add("\t"),c){case 0:h.add(v.toGLSL()+" = "+w.toGLSL()+"; // mov"),d.addDR(v,u().default.VECTOR_4),d.addSR(w,u().default.VECTOR_4);break;case 1:h.add(v.toGLSL()+" = "+w.toGLSL()+" + "+y.toGLSL()+"; // add"),d.addDR(v,u().default.VECTOR_4),d.addSR(w,u().default.VECTOR_4),d.addSR(y,u().default.VECTOR_4);break;case 2:h.add(v.toGLSL()+" = "+w.toGLSL()+" - "+y.toGLSL()+"; // sub"),d.addDR(v,u().default.VECTOR_4),d.addSR(w,u().default.VECTOR_4),d.addSR(y,u().default.VECTOR_4);break;case 3:h.add(v.toGLSL()+" = "+w.toGLSL()+" * "+y.toGLSL()+"; // mul"),d.addDR(v,u().default.VECTOR_4),d.addSR(w,u().default.VECTOR_4),d.addSR(y,u().default.VECTOR_4);break;case 4:h.add(v.toGLSL()+" = "+w.toGLSL()+" / "+y.toGLSL()+"; // div"),d.addDR(v,u().default.VECTOR_4),d.addSR(w,u().default.VECTOR_4),d.addSR(y,u().default.VECTOR_4);break;case 5:w.toGLSL().indexOf(".")>-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||t<this.length)&&Array.prototype.splice.call(this,t,0,e)},iterator:function(){return new(n(292).default)(this)},join:function(t){return null==t&&(t=","),null},lastIndexOf:function(t,e){return null==e?Array.prototype.lastIndexOf.call(this,t):Array.prototype.lastIndexOf.call(this,t,e)},pop:function(){return this.fixed?null:Array.prototype.pop.call(this)},push:function(t){return this.fixed?this.length:Array.prototype.push.call(this,t)},removeAt:function(t){return!this.fixed||t<this.length?Array.prototype.splice.call(this,t,1)[0]:null},reverse:function(){return this},set:function(t,e){return!this.fixed||t<this.length?this[t]=e:e},shift:function(){return this.fixed?null:Array.prototype.shift.call(this)},slice:function(t,e){return null==e&&(e=16777215),null==t&&(t=0),r.ofArray(Array.prototype.slice.call(this,t,e))},sort:function(t){},splice:function(t,e){return r.ofArray(Array.prototype.splice.call(this,t,e))},toString:function(){return null},unshift:function(t){this.fixed||Array.prototype.unshift.call(this,t)},get_length:function(){return this.length},set_length:function(t){return this.fixed||(this.length=t),t}},r.prototype.__class__=i["openfl.VectorData"]=r;var a="undefined"!=typeof openfl_VectorData,s=a?openfl_VectorData:r,o=s.prototype,l=o.construct,u={constructor:{value:null},concat:{value:o.concat},copy:{value:o.copy},get:{value:o.get},insertAt:{value:o.insertAt},iterator:{value:o.iterator},lastIndexOf:{value:o.lastIndexOf},pop:{value:o.pop},push:{value:o.push},removeAt:{value:o.removeAt},set:{value:o.set},shift:{value:o.shift},slice:{value:o.slice},splice:{value:o.splice},unshift:{value:o.unshift},get_length:{value:o.get_length},set_length:{value:o.set_length}},_=function(t,e){return Object.defineProperties(l([],t,e),u)};u.constructor.value=_,_.__name__=s.__name__,_.ofArray=s.ofArray,i["openfl.VectorData"]=_,_.prototype=Array.prototype,a?openfl_VectorData=_:r=_,r.ofArray=function(t){if(null==t)return null;for(var e=new r,n=0,i=t.length;n<i;){var a=n++;e[a]=t[a]}return 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,r=function(){this.activeTextures=0,this.allowSmoothing=!0,this.clearRenderDirty=!1};r.__name__=["openfl","_internal","renderer","RenderSession"],(r.prototype={}).__class__=i["openfl._internal.renderer.RenderSession"]=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","utils","IDataInput"],(r.prototype={}).__class__=i["openfl.utils.IDataInput"]=r,e.default=r}).call(e,n(0))},function(t,e){t.exports=__WEBPACK_EXTERNAL_MODULE_93__},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","opengl","_WebGLContext","WebGLContext_Impl_"],(r.prototype={}).__class__=i["lime.graphics.opengl._WebGLContext.WebGLContext_Impl_"]=r,r.bufferData=function(t,e,n,i){t.bufferDataWEBGL(e,n,i,null,null)},r.bufferSubData=function(t,e,n,i){t.bufferSubDataWEBGL(e,n,i,null,null)},r.compressedTexImage2D=function(t,e,n,i,r,a,s,o){t.compressedTexImage2DWEBGL(e,n,i,r,a,s,o,null,null)},r.compressedTexSubImage2D=function(t,e,n,i,r,a,s,o,l){t.compressedTexSubImage2DWEBGL(e,n,i,r,a,s,o,l,null,null)},r.readPixels=function(t,e,n,i,r,a,s,o){t.readPixelsWEBGL(e,n,i,r,a,s,o,null)},r.texImage2D=function(t,e,n,i,r,a,s,o,l,u){t.texImage2DWEBGL(e,n,i,r,a,s,o,l,u,null)},r.texSubImage2D=function(t,e,n,i,r,a,s,o,l,u){t.texSubImage2DWEBGL(e,n,i,r,a,s,o,l,u,null)},r.uniformMatrix2fv=function(t,e,n,i){t.uniformMatrix2fvWEBGL(e,n,i,null,null)},r.uniformMatrix3fv=function(t,e,n,i){t.uniformMatrix3fvWEBGL(e,n,i,null,null)},r.uniformMatrix4fv=function(t,e,n,i){t.uniformMatrix4fvWEBGL(e,n,i,null,null)},r.fromGL=function(t){return n(49).default.context},r.fromGLES2Context=function(t){return t},r.fromGLES3Context=function(t){return 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(11)}function a(){return n(52)}var s=function(){};s.__name__=["openfl","_internal","renderer","dom","DOMBitmap"],(s.prototype={}).__class__=i["openfl._internal.renderer.dom.DOMBitmap"]=s,s.clear=function(t,e){null!=t.__image&&(e.element.removeChild(t.__image),t.__image=null,t.__style=null),null!=t.__canvas&&(e.element.removeChild(t.__canvas),t.__canvas=null,t.__style=null)},s.render=function(t,e){null!=t.stage&&t.__worldVisible&&t.__renderable&&null!=t.__bitmapData&&t.__bitmapData.__isValid&&t.__bitmapData.readable?(e.maskManager.pushObject(t),null!=t.__bitmapData.image.buffer.__srcImage?s.renderImage(t,e):s.renderCanvas(t,e),e.maskManager.popObject(t)):s.clear(t,e)},s.renderCanvas=function(t,e){null!=t.__image&&(e.element.removeChild(t.__image),t.__image=null),null==t.__canvas&&(t.__canvas=r().default.get_document().createElement("canvas"),t.__context=t.__canvas.getContext("2d"),t.__imageVersion=-1,e.allowSmoothing&&t.smoothing||(t.__context.mozImageSmoothingEnabled=!1,t.__context.msImageSmoothingEnabled=!1,t.__context.imageSmoothingEnabled=!1),a().default.initializeElement(t,t.__canvas,e)),t.__imageVersion!=t.__bitmapData.image.version&&(n(32).default.convertToCanvas(t.__bitmapData.image),t.__canvas.width=t.__bitmapData.width+1,t.__canvas.width=t.__bitmapData.width,t.__canvas.height=t.__bitmapData.height,t.__context.drawImage(t.__bitmapData.image.buffer.__srcCanvas,0,0),t.__imageVersion=t.__bitmapData.image.version),a().default.updateClip(t,e),a().default.applyStyle(t,e,!0,!0,!0)},s.renderImage=function(t,e){null!=t.__canvas&&(e.element.removeChild(t.__canvas),t.__canvas=null),null==t.__image&&(t.__image=r().default.get_document().createElement("img"),t.__image.crossOrigin="Anonymous",t.__image.src=t.__bitmapData.image.buffer.__srcImage.src,a().default.initializeElement(t,t.__image,e)),a().default.updateClip(t,e),a().default.applyStyle(t,e,!0,!0,!0)},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(75)}function s(){return n(6)}function o(){return n(7)}function l(){return n(9)}function u(){return n(29)}function _(){return n(14)}var f=function(){a().default.call(this),this.mouseChildren=!0,this.__children=[],this.__removedChildren=n(21).default._new()};f.__name__=["openfl","display","DisplayObjectContainer"],f.__super__=a().default,(f.prototype=r(a().default.prototype,{addChild:function(t){return this.addChildAt(t,this.get_numChildren())},addChildAt:function(t,e){if(null==t){var i=new(n(129).default)("Error #2007: Parameter child must be non-null.");throw i.errorID=2007,new(s().default)(i)}if(t.stage==t){var r=new(n(71).default)("Error #3783: A Stage object cannot be added as the child of another object.");throw r.errorID=3783,new(s().default)(r)}if(e>this.__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<this.__children.length?this.__children[t]:null},getChildByName:function(t){for(var e=0,n=this.__children;e<n.length;){var i=n[e];if(++e,i.get_name()==t)return i}return null},getChildIndex:function(t){for(var e=0,n=this.__children.length;e<n;){var i=e++;if(this.__children[i]==t)return i}return-1},getObjectsUnderPoint:function(t){var e=[];return this.__hitTest(t.x,t.y,!1,e,!1,this),e.reverse(),e},removeChild:function(t){if(null!=t&&t.parent==this){t.__setTransformDirty(),t.__setRenderDirty(),this.__setRenderDirty();var e=new(l().default)("removed",!0);if(t.__dispatchWithCapture(e),null!=this.stage){null!=t.stage&&this.stage.get_focus()==t&&this.stage.set_focus(null);var n=new(l().default)("removedFromStage",!1,!1);t.__dispatchWithCapture(n),t.__dispatchChildren(n),t.__setStageReference(null)}t.parent=null,o().default.remove(this.__children,t),this.__removedChildren.push(t),t.__setTransformDirty()}return t},removeChildAt:function(t){return t>=0&&t<this.__children.length?this.removeChild(this.__children[t]):null},removeChildren:function(t,e){if(null==e&&(e=2147483647),null==t&&(t=0),!(2147483647==e&&(e=this.__children.length-1)<0||t>this.__children.length-1)){if(e<t||t<0||e>this.__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<n.length;){var i=n[e];if(++e,i.get_name()==t)return i}return null},setChildIndex:function(t,e){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<n.length;){var i=n[e];if(++e,t.target=i,!i.__dispatchWithCapture(t))break;i.__dispatchChildren(t)}},__enterFrame:function(t){for(var e=0,n=this.__children;e<n.length;){var i=n[e];++e,i.__enterFrame(t)}},__getBounds:function(t,e){if(a().default.prototype.__getBounds.call(this,t,e),0!=this.__children.length){null!=e&&(this.__updateTransforms(e),this.__updateChildren(!0));for(var n=0,i=this.__children;n<i.length;){var r=i[n];++n,0!=r.__scaleX&&0!=r.__scaleY&&r.__getBounds(t,r.__worldTransform)}null!=e&&(this.__updateTransforms(),this.__updateChildren(!0))}},__getFilterBounds:function(t,e){if(a().default.prototype.__getFilterBounds.call(this,t,e),0!=this.__children.length){null!=e&&(this.__updateTransforms(e),this.__updateChildren(!0));for(var n=0,i=this.__children;n<i.length;){var r=i[n];++n,0==r.__scaleX||0==r.__scaleY||r.__isMask||r.__getFilterBounds(t,r.__worldTransform)}null!=e&&(this.__updateTransforms(),this.__updateChildren(!0))}},__getRenderBounds:function(t,e){if(null==this.__scrollRect){if(a().default.prototype.__getBounds.call(this,t,e),0!=this.__children.length){null!=e&&(this.__updateTransforms(e),this.__updateChildren(!0));for(var n=0,i=this.__children;n<i.length;){var r=i[n];++n,0==r.__scaleX||0==r.__scaleY||r.__isMask||r.__getRenderBounds(t,r.__worldTransform)}null!=e&&(this.__updateTransforms(),this.__updateChildren(!0))}}else a().default.prototype.__getRenderBounds.call(this,t,e)},__hitTest:function(t,e,n,i,r,a){if(!a.get_visible()||this.__isMask||r&&!this.mouseEnabled&&!this.mouseChildren)return!1;if(null!=this.get_mask()&&!this.get_mask().__hitTestMask(t,e))return!1;if(null!=this.__scrollRect){var s=u().default.__pool.get();if(s.setTo(t,e),this.__getRenderTransform().__transformInversePoint(s),!this.__scrollRect.containsPoint(s))return u().default.__pool.release(s),!1;u().default.__pool.release(s)}var o=this.__children.length;if(r){if(null!=i&&this.mouseChildren){if(null!=i){for(var l=i.length,_=!1,f=!1;--o>=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;n<i.length;){var r=i[n];++n,r.__readGraphicsData(t,e)}},__renderCairo:function(t){},__renderCairoMask:function(t){},__renderCanvas:function(t){if(!(!this.__renderable||this.__worldAlpha<=0||null!=this.get_mask()&&(this.get_mask().get_width()<=0||this.get_mask().get_height()<=0))&&(a().default.prototype.__renderCanvas.call(this,t),null==this.__cacheBitmap||this.__cacheBitmapRender)){if(t.maskManager.pushObject(this),t.clearRenderDirty){for(var e=0,n=this.__children;e<n.length;){var i=n[e];++e,i.__renderCanvas(t),i.__renderDirty=!1}this.__renderDirty=!1}else for(var r=0,s=this.__children;r<s.length;){var o=s[r];++r,o.__renderCanvas(t)}for(var l=0,u=this.__removedChildren;l<u.get_length();){var _=u.get(l);++l,null==_.stage&&_.__cleanup()}this.__removedChildren.set_length(0),t.maskManager.popObject(this)}},__renderCanvasMask:function(t){null!=this.__graphics&&n(58).default.renderMask(this.__graphics,t);var e=_().default.__pool.get();this.__getLocalBounds(e),t.context.rect(0,0,e.width,e.height),_().default.__pool.release(e)},__renderDOM:function(t){if(a().default.prototype.__renderDOM.call(this,t),null==this.__cacheBitmap||this.__cacheBitmapRender){if(t.maskManager.pushObject(this),t.clearRenderDirty){for(var e=0,n=this.__children;e<n.length;){var i=n[e];++e,i.__renderDOM(t),i.__renderDirty=!1}this.__renderDirty=!1}else for(var r=0,s=this.__children;r<s.length;){var o=s[r];++r,o.__renderDOM(t)}for(var l=0,u=this.__removedChildren;l<u.get_length();){var _=u.get(l);++l,null==_.stage&&_.__renderDOM(t)}this.__removedChildren.set_length(0),t.maskManager.popObject(this)}},__renderDOMClear:function(t){for(var e=0,n=this.__children;e<n.length;){var i=n[e];++e,i.__renderDOMClear(t)}for(var r=0,a=this.__removedChildren;r<a.get_length();){var s=a.get(r);++r,null==s.stage&&s.__renderDOMClear(t)}},__renderGL:function(t){if(this.__renderable&&!(this.__worldAlpha<=0)&&(a().default.prototype.__renderGL.call(this,t),null==this.__cacheBitmap||this.__cacheBitmapRender)){if(this.__children.length>0)if(t.maskManager.pushObject(this),t.filterManager.pushObject(this),t.clearRenderDirty){for(var e=0,n=this.__children;e<n.length;){var i=n[e];++e,i.__renderGL(t),i.__renderDirty=!1}this.__renderDirty=!1}else for(var r=0,s=this.__children;r<s.length;){var o=s[r];++r,o.__renderGL(t)}for(var l=0,u=this.__removedChildren;l<u.get_length();){var _=u.get(l);++l,null==_.stage&&_.__cleanup()}this.__removedChildren.set_length(0),this.__children.length>0&&(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<n.length;){var i=n[e];++e,i.__renderGLMask(t),i.__renderDirty=!1}this.__renderDirty=!1}else for(var r=0,s=this.__children;r<s.length;){var o=s[r];++r,o.__renderGLMask(t)}for(var l=0,u=this.__removedChildren;l<u.get_length();){var _=u.get(l);++l,null==_.stage&&_.__cleanup()}this.__removedChildren.set_length(0)}},__setStageReference:function(t){if(a().default.prototype.__setStageReference.call(this,t),null!=this.__children)for(var e=0,n=this.__children;e<n.length;){var i=n[e];++e,i.__setStageReference(t)}},__setWorldTransformInvalid:function(){if(!this.__worldTransformInvalid&&(this.__worldTransformInvalid=!0,null!=this.__children))for(var t=0,e=this.__children;t<e.length;){var n=e[t];++t,n.__setWorldTransformInvalid()}},__stopAllMovieClips:function(){for(var t=0,e=this.__children;t<e.length;){var n=e[t];++t,n.__stopAllMovieClips()}},__update:function(t,e,n){if(a().default.prototype.__update.call(this,t,e,n),e)for(var i=0,r=this.__children;i<r.length;){var s=r[i];++i,s.__update(t,!0,n)}},__updateChildren:function(t){a().default.prototype.__updateChildren.call(this,t);for(var e=0,n=this.__children;e<n.length;){var i=n[e];++e,i.__update(t,!0)}},get_numChildren:function(){return this.__children.length}})).__class__=i["openfl.display.DisplayObjectContainer"]=f,Object.defineProperty(f.prototype,"numChildren",{get:function(){return this.get_numChildren()}}),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(96)}function s(){return n(29)}var o=function(){a().default.call(this),this.buttonMode=!1,this.useHandCursor=!0};o.__name__=["openfl","display","Sprite"],o.__super__=a().default,(o.prototype=r(a().default.prototype,{startDrag:function(t,e){null==t&&(t=!1),null!=this.stage&&this.stage.__startDrag(this,t,e)},stopDrag:function(){null!=this.stage&&this.stage.__stopDrag(this)},__getCursor:function(){return this.buttonMode&&this.useHandCursor?n(76).default.POINTER:null},__hitTest:function(t,e,n,i,r,o){if(r&&!this.mouseEnabled&&!this.mouseChildren)return!1;if(!o.get_visible()||this.__isMask)return this.__hitTestHitArea(t,e,n,i,r,o);if(null!=this.get_mask()&&!this.get_mask().__hitTestMask(t,e))return this.__hitTestHitArea(t,e,n,i,r,o);if(null!=this.__scrollRect){var l=s().default.__pool.get();if(l.setTo(t,e),this.__getRenderTransform().__transformInversePoint(l),!this.__scrollRect.containsPoint(l))return s().default.__pool.release(l),this.__hitTestHitArea(t,e,n,i,!0,o);s().default.__pool.release(l)}return a().default.prototype.__hitTest.call(this,t,e,n,i,r,o)?r:null==this.hitArea&&null!=this.__graphics&&this.__graphics.__hitTest(t,e,n,this.__getRenderTransform())?(null==i||r&&!this.mouseEnabled||i.push(o),!0):this.__hitTestHitArea(t,e,n,i,r,o)},__hitTestHitArea:function(t,e,n,i,r,a){if(null!=this.hitArea&&!this.hitArea.mouseEnabled){this.hitArea.mouseEnabled=!0;var s=this.hitArea.__hitTest(t,e,n,null,!0,a);return this.hitArea.mouseEnabled=!1,s&&(i[i.length]=a),s}return!1},__hitTestMask:function(t,e){return!!a().default.prototype.__hitTestMask.call(this,t,e)||!(null==this.__graphics||!this.__graphics.__hitTest(t,e,!0,this.__getRenderTransform()))},get_graphics:function(){return null==this.__graphics&&(this.__graphics=new(n(69).default)(this)),this.__graphics},get_tabEnabled:function(){return null==this.__tabEnabled?this.buttonMode:this.__tabEnabled}})).__class__=i["openfl.display.Sprite"]=o,Object.defineProperty(o.prototype,"graphics",{get:function(){return this.get_graphics()}}),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(132).default);function a(){return n(12)}function s(){return n(328)}function o(){return n(133)}function l(){return n(99)}var u=function(){};u.__name__=["lime","text","unifill","InternalEncoding"],(u.prototype={}).__class__=i["lime.text.unifill.InternalEncoding"]=u,u.get_internalEncoding=function(){return"UTF-16"},u.codeUnitAt=function(t,e){var n=t;return a().default.fastCodeAt(n,e)},u.codePointAt=function(t,e){var n=t;return s().default.codePointAt(n,e)},u.charAt=function(t,e){var i=t,r=a().default.fastCodeAt(i,e);return n(7).default.substr(i,e,o().default.code_point_width(r))},u.codePointCount=function(t,e,n){var i=t;return s().default.codePointCount(i,e,n)},u.codePointWidthAt=function(t,e){var n=t,i=a().default.fastCodeAt(n,e);return o().default.code_point_width(i)},u.codePointWidthBefore=function(t,e){var n=t;return o().default.find_prev_code_point(function(t){return a().default.fastCodeAt(n,t)},e)},u.offsetByCodePoints=function(t,e,n){var i=t;if(n>=0){for(var r=e,s=i.length,l=0;l<n&&r<s;){var u=a().default.fastCodeAt(i,r);r+=o().default.code_point_width(u),++l}return r}for(var _=e,f=0;f<-n&&0<_;)_-=o().default.find_prev_code_point(function(t){return function(e){return a().default.fastCodeAt(t[0],e)}}([i]),_),++f;return _},u.backwardOffsetByCodePoints=function(t,e,n){var i=t,r=-n;if(r>=0){for(var s=e,l=i.length,u=0;u<r&&s<l;){var _=a().default.fastCodeAt(i,s);s+=o().default.code_point_width(_),++u}return s}for(var f=e,d=0;d<-r&&0<f;)f-=o().default.find_prev_code_point(function(t){return function(e){return a().default.fastCodeAt(t[0],e)}}([i]),f),++d;return f},u.fromCodePoint=function(t){var e;if(t<=65535){e=String.fromCharCode(t)}else{var n=l().default.encodeHighSurrogate(t),i=l().default.encodeLowSurrogate(t);e=String.fromCharCode(n)+String.fromCharCode(i)}return e},u.fromCodePoints=function(t){for(var e=new(n(31).default),i=r(t)();i.hasNext();){var a=i.next();o().default.encode_code_point(function(t){e.addChar(t)},a)}return e.toString()},u.validate=function(t){var e=t;s().default.validate(e)},u.isValidString=function(t){try{return u.validate(t),!0}catch(t){if(t instanceof n(6).default&&(t=t.val),n(20).default.__instanceof(t,n(183).default))return!1;throw t}},u.encodeWith=function(t,e){o().default.encode_code_point(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(1).default,r=(n(2).default,function(){});r.__name__=["lime","text","unifill","Unicode"],(r.prototype={}).__class__=i["lime.text.unifill.Unicode"]=r,r.decodeSurrogate=function(t,e){return t-55232<<10|1023&e},r.encodeHighSurrogate=function(t){return 55232+(t>>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;i<r;){var a=i++;if(n>this.__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<n.length;){var i=n[e];if(++e,r().default.compareMethods(i,t))return!0}return!1},remove:function(t){for(var e=this.__listeners.length;--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<e.length&&(e[i](t),n[i]?++i:this.remove(e[i]),!this.canceled););}}).__class__=i["lime.app._Event_Int_Void"]=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(249)}var a=function(t,e,n,i,r,a,s){this.x=t,this.y=e,this.id=n,this.dx=i,this.dy=r,this.pressure=a,this.device=s};a.__name__=["lime","ui","Touch"],(a.prototype={}).__class__=i["lime.ui.Touch"]=a,a.onCancel=new(r().default),a.onEnd=new(r().default),a.onMove=new(r().default),a.onStart=new(r().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(1).default;n(2).default;function r(){return n(11)}function a(){return n(4)}var s=function(t,e,n,i,r){null==i&&(i=32),null==n&&(n=0),null==e&&(e=0),this.data=t,this.width=e,this.height=n,this.bitsPerPixel=i,this.format=null==r?0:r,this.premultiplied=!1,this.transparent=!0};s.__name__=["lime","graphics","ImageBuffer"],(s.prototype={clone:function(){var t=new s(this.data,this.width,this.height,this.bitsPerPixel);if(null!=this.data){var e,n=this.data.byteLength;e=null!=n?new Uint8Array(n):null,t.data=e;var i=this.data,a=null!=i?new Uint8Array(i):null;t.data.set(a)}else if(null!=this.__srcImageData){t.__srcCanvas=r().default.get_document().createElement("canvas"),t.__srcContext=t.__srcCanvas.getContext("2d"),t.__srcCanvas.width=this.__srcImageData.width,t.__srcCanvas.height=this.__srcImageData.height,t.__srcImageData=t.__srcContext.createImageData(this.__srcImageData.width,this.__srcImageData.height);var o=new Uint8ClampedArray(this.__srcImageData.data);t.__srcImageData.data.set(o)}else null!=this.__srcCanvas?(t.__srcCanvas=r().default.get_document().createElement("canvas"),t.__srcContext=t.__srcCanvas.getContext("2d"),t.__srcCanvas.width=this.__srcCanvas.width,t.__srcCanvas.height=this.__srcCanvas.height,t.__srcContext.drawImage(this.__srcCanvas,0,0)):t.__srcImage=this.__srcImage;return t.bitsPerPixel=this.bitsPerPixel,t.format=this.format,t.premultiplied=this.premultiplied,t.transparent=this.transparent,t},get_src:function(){return null!=this.__srcImage?this.__srcImage:this.__srcCanvas},set_src:function(t){return a().default.is(t,Image)?this.__srcImage=t:a().default.is(t,HTMLCanvasElement)&&(this.__srcCanvas=t,this.__srcContext=this.__srcCanvas.getContext("2d")),t},get_stride:function(){return 4*this.width}}).__class__=i["lime.graphics.ImageBuffer"]=s;var o=s.prototype;Object.defineProperties(o,{src:{get:o.get_src,set:o.set_src},stride:{get:o.get_stride}}),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.graphics.ImageChannel"]={__ename__:["lime","graphics","ImageChannel"],__constructs__:["RED","GREEN","BLUE","ALPHA"]};r.BLUE=["BLUE",2],r.BLUE.toString=i,r.BLUE.__enum__=r,r.GREEN=["GREEN",1],r.GREEN.toString=i,r.GREEN.__enum__=r,r.RED=["RED",0],r.RED.toString=i,r.RED.__enum__=r,r.ALPHA=["ALPHA",3],r.ALPHA.toString=i,r.ALPHA.__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=function(){};r.__name__=["openfl","display","IBitmapDrawable"],(r.prototype={}).__class__=i["openfl.display.IBitmapDrawable"]=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,r,s,o,l,u,_,f,d,h){null==h&&(h=0),null==d&&(d=!1),null==f&&(f=0),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=!0),a().default.call(this,t,e,n),this.shiftKey=u,this.altKey=l,this.ctrlKey=o,this.bubbles=e,this.relatedObject=s,this.delta=f,this.localX=i,this.localY=r,this.buttonDown=_,this.commandKey=d,this.clickCount=h,this.isRelatedObjectInaccessible=!1,this.stageX=NaN,this.stageY=NaN};s.__name__=["openfl","events","MouseEvent"],s.__super__=a().default,(s.prototype=r(a().default.prototype,{clone:function(){var t=new s(this.type,this.bubbles,this.cancelable,this.localX,this.localY,this.relatedObject,this.ctrlKey,this.altKey,this.shiftKey,this.buttonDown,this.delta,this.commandKey,this.clickCount);return t.target=this.target,t.currentTarget=this.currentTarget,t.eventPhase=this.eventPhase,t},toString:function(){return this.__formatToString("MouseEvent",["type","bubbles","cancelable","localX","localY","relatedObject","ctrlKey","altKey","shiftKey","buttonDown","delta"])},updateAfterEvent:function(){}})).__class__=i["openfl.events.MouseEvent"]=s,s.__create=function(t,e,n,i,r,a,o){null==o&&(o=0);var l=new s(t,!0,!1,r.x,r.y,null,s.__ctrlKey,s.__altKey,s.__shiftKey,s.__buttonDown,o,s.__commandKey);return l.stageX=n,l.stageY=i,l.target=a,l},s.CLICK="click",s.DOUBLE_CLICK="doubleClick",s.MIDDLE_CLICK="middleClick",s.MIDDLE_MOUSE_DOWN="middleMouseDown",s.MIDDLE_MOUSE_UP="middleMouseUp",s.MOUSE_DOWN="mouseDown",s.MOUSE_MOVE="mouseMove",s.MOUSE_OUT="mouseOut",s.MOUSE_OVER="mouseOver",s.MOUSE_UP="mouseUp",s.MOUSE_WHEEL="mouseWheel",s.RELEASE_OUTSIDE="releaseOutside",s.RIGHT_CLICK="rightClick",s.RIGHT_MOUSE_DOWN="rightMouseDown",s.RIGHT_MOUSE_UP="rightMouseUp",s.ROLL_OUT="rollOut",s.ROLL_OVER="rollOver",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(9)}var s=function(t,e,n,i,r,s,o,l,u,_,f,d,h,c,p,g,m,v,w,y){null==y&&(y=!1),null==m&&(m=0),null==g&&(g=!1),null==p&&(p=!1),null==c&&(c=!1),null==h&&(h=!1),null==d&&(d=!1),null==_&&(_=0),null==u&&(u=0),null==l&&(l=0),null==o&&(o=0),null==s&&(s=0),null==r&&(r=!1),null==i&&(i=0),null==n&&(n=!1),null==e&&(e=!0),a().default.call(this,t,e,n),this.touchPointID=i,this.isPrimaryTouchPoint=r,this.localX=s,this.localY=o,this.sizeX=l,this.sizeY=u,this.pressure=_,this.relatedObject=f,this.ctrlKey=d,this.altKey=h,this.shiftKey=c,this.commandKey=p,this.controlKey=g,this.stageX=NaN,this.stageY=NaN};s.__name__=["openfl","events","TouchEvent"],s.__super__=a().default,(s.prototype=r(a().default.prototype,{clone:function(){var t=new s(this.type,this.bubbles,this.cancelable,this.touchPointID,this.isPrimaryTouchPoint,this.localX,this.localY,this.sizeX,this.sizeY,this.pressure,this.relatedObject,this.ctrlKey,this.altKey,this.shiftKey,this.commandKey,this.controlKey);return t.target=this.target,t.currentTarget=this.currentTarget,t.eventPhase=this.eventPhase,t},toString:function(){return this.__formatToString("TouchEvent",["type","bubbles","cancelable","touchPointID","isPrimaryTouchPoint","localX","localY","sizeX","sizeY","pressure","relatedObject","ctrlKey","altKey","shiftKey","commandKey","controlKey"])},updateAfterEvent:function(){}})).__class__=i["openfl.events.TouchEvent"]=s,s.__create=function(t,e,n,i,r,a){var o=new s(t,!0,!1,0,!0,r.x,r.y,1,1,1);return o.stageX=n,o.stageY=i,o.target=a,o},s.TOUCH_BEGIN="touchBegin",s.TOUCH_END="touchEnd",s.TOUCH_MOVE="touchMove",s.TOUCH_OUT="touchOut",s.TOUCH_OVER="touchOver",s.TOUCH_ROLL_OUT="touchRollOut",s.TOUCH_ROLL_OVER="touchRollOver",s.TOUCH_TAP="touchTap",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)}var a=function(){};a.__name__=["openfl","_internal","renderer","canvas","CanvasBitmap"],(a.prototype={}).__class__=i["openfl._internal.renderer.canvas.CanvasBitmap"]=a,a.render=function(t,e){if(t.__renderable&&!(t.__worldAlpha<=0)){var i=e.context;if(null!=t.__bitmapData&&t.__bitmapData.__isValid&&t.__bitmapData.readable){e.blendModeManager.setBlendMode(t.__worldBlendMode),e.maskManager.pushObject(t,!1),n(32).default.convertToCanvas(t.__bitmapData.image),i.globalAlpha=t.__worldAlpha;var a=t.__renderTransform,s=t.__scrollRect;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),e.allowSmoothing&&t.smoothing||(i.mozImageSmoothingEnabled=!1,i.msImageSmoothingEnabled=!1,i.imageSmoothingEnabled=!1),null==s?i.drawImage(t.__bitmapData.image.get_src(),0,0):i.drawImage(t.__bitmapData.image.get_src(),s.x,s.y,s.width,s.height,s.x,s.y,s.width,s.height),e.allowSmoothing&&t.smoothing||(i.mozImageSmoothingEnabled=!0,i.msImageSmoothingEnabled=!0,i.imageSmoothingEnabled=!0),e.maskManager.popObject(t,!1)}}},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(t){this.buffer=t,this.bPos=this.iPos=this.fPos=this.oPos=this.ffPos=this.iiPos=this.tsPos=0,this.prev=r().default.UNKNOWN};a.__name__=["openfl","_internal","renderer","DrawCommandReader"],(a.prototype={advance:function(){var t=this.prev;switch(n(10).default.enumIndex(t)){case 0:this.oPos+=2,this.bPos+=2;break;case 1:this.iPos+=1,this.fPos+=1;break;case 2:this.oPos+=4,this.iiPos+=2,this.ffPos+=1,this.fPos+=1;break;case 3:this.fPos+=6;break;case 4:this.fPos+=4;break;case 5:this.fPos+=3;break;case 6:case 7:this.fPos+=4;break;case 8:this.fPos+=5,this.oPos+=1;break;case 10:this.oPos+=4;break;case 11:break;case 12:this.oPos+=2,this.bPos+=2;break;case 13:this.oPos+=4,this.iiPos+=2,this.ffPos+=1,this.fPos+=1;break;case 14:this.oPos+=4,this.iPos+=1,this.fPos+=2,this.bPos+=1;break;case 15:case 16:this.fPos+=2;break;case 17:this.oPos+=1}},bool:function(t){return this.buffer.b[this.bPos+t]},destroy:function(){this.buffer=null,this.reset()},fArr:function(t){return this.buffer.ff[this.ffPos+t]},float:function(t){return this.buffer.f[this.fPos+t]},iArr:function(t){return this.buffer.ii[this.iiPos+t]},int:function(t){return this.buffer.i[this.iPos+t]},obj:function(t){return this.buffer.o[this.oPos+t]},readBeginBitmapFill:function(){this.advance(),this.prev=r().default.BEGIN_BITMAP_FILL;return this},readBeginFill:function(){this.advance(),this.prev=r().default.BEGIN_FILL;return this},readBeginGradientFill:function(){this.advance(),this.prev=r().default.BEGIN_GRADIENT_FILL;return this},readCubicCurveTo:function(){this.advance(),this.prev=r().default.CUBIC_CURVE_TO;return this},readCurveTo:function(){this.advance(),this.prev=r().default.CURVE_TO;return this},readDrawCircle:function(){this.advance(),this.prev=r().default.DRAW_CIRCLE;return this},readDrawEllipse:function(){this.advance(),this.prev=r().default.DRAW_ELLIPSE;return this},readDrawRect:function(){this.advance(),this.prev=r().default.DRAW_RECT;return this},readDrawRoundRect:function(){this.advance(),this.prev=r().default.DRAW_ROUND_RECT;return this},readDrawTriangles:function(){this.advance(),this.prev=r().default.DRAW_TRIANGLES;return this},readEndFill:function(){this.advance(),this.prev=r().default.END_FILL;return this},readLineBitmapStyle:function(){this.advance(),this.prev=r().default.LINE_BITMAP_STYLE;return this},readLineGradientStyle:function(){this.advance(),this.prev=r().default.LINE_GRADIENT_STYLE;return this},readLineStyle:function(){this.advance(),this.prev=r().default.LINE_STYLE;return this},readLineTo:function(){this.advance(),this.prev=r().default.LINE_TO;return this},readMoveTo:function(){this.advance(),this.prev=r().default.MOVE_TO;return this},readOverrideMatrix:function(){this.advance(),this.prev=r().default.OVERRIDE_MATRIX;return this},readWindingEvenOdd:function(){this.advance(),this.prev=r().default.WINDING_EVEN_ODD;return this},readWindingNonZero:function(){this.advance(),this.prev=r().default.WINDING_NON_ZERO;return this},reset:function(){this.bPos=this.iPos=this.fPos=this.oPos=this.ffPos=this.iiPos=this.tsPos=0},skip:function(t){this.advance(),this.prev=t}}).__class__=i["openfl._internal.renderer.DrawCommandReader"]=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["openfl._internal.renderer.DrawCommandType"]={__ename__:["openfl","_internal","renderer","DrawCommandType"],__constructs__:["BEGIN_BITMAP_FILL","BEGIN_FILL","BEGIN_GRADIENT_FILL","CUBIC_CURVE_TO","CURVE_TO","DRAW_CIRCLE","DRAW_ELLIPSE","DRAW_RECT","DRAW_ROUND_RECT","DRAW_TILES","DRAW_TRIANGLES","END_FILL","LINE_BITMAP_STYLE","LINE_GRADIENT_STYLE","LINE_STYLE","LINE_TO","MOVE_TO","OVERRIDE_MATRIX","WINDING_EVEN_ODD","WINDING_NON_ZERO","UNKNOWN"]};r.DRAW_ELLIPSE=["DRAW_ELLIPSE",6],r.DRAW_ELLIPSE.toString=i,r.DRAW_ELLIPSE.__enum__=r,r.LINE_GRADIENT_STYLE=["LINE_GRADIENT_STYLE",13],r.LINE_GRADIENT_STYLE.toString=i,r.LINE_GRADIENT_STYLE.__enum__=r,r.WINDING_NON_ZERO=["WINDING_NON_ZERO",19],r.WINDING_NON_ZERO.toString=i,r.WINDING_NON_ZERO.__enum__=r,r.DRAW_ROUND_RECT=["DRAW_ROUND_RECT",8],r.DRAW_ROUND_RECT.toString=i,r.DRAW_ROUND_RECT.__enum__=r,r.BEGIN_FILL=["BEGIN_FILL",1],r.BEGIN_FILL.toString=i,r.BEGIN_FILL.__enum__=r,r.OVERRIDE_MATRIX=["OVERRIDE_MATRIX",17],r.OVERRIDE_MATRIX.toString=i,r.OVERRIDE_MATRIX.__enum__=r,r.DRAW_TRIANGLES=["DRAW_TRIANGLES",10],r.DRAW_TRIANGLES.toString=i,r.DRAW_TRIANGLES.__enum__=r,r.LINE_BITMAP_STYLE=["LINE_BITMAP_STYLE",12],r.LINE_BITMAP_STYLE.toString=i,r.LINE_BITMAP_STYLE.__enum__=r,r.END_FILL=["END_FILL",11],r.END_FILL.toString=i,r.END_FILL.__enum__=r,r.UNKNOWN=["UNKNOWN",20],r.UNKNOWN.toString=i,r.UNKNOWN.__enum__=r,r.LINE_STYLE=["LINE_STYLE",14],r.LINE_STYLE.toString=i,r.LINE_STYLE.__enum__=r,r.CUBIC_CURVE_TO=["CUBIC_CURVE_TO",3],r.CUBIC_CURVE_TO.toString=i,r.CUBIC_CURVE_TO.__enum__=r,r.BEGIN_BITMAP_FILL=["BEGIN_BITMAP_FILL",0],r.BEGIN_BITMAP_FILL.toString=i,r.BEGIN_BITMAP_FILL.__enum__=r,r.DRAW_CIRCLE=["DRAW_CIRCLE",5],r.DRAW_CIRCLE.toString=i,r.DRAW_CIRCLE.__enum__=r,r.DRAW_RECT=["DRAW_RECT",7],r.DRAW_RECT.toString=i,r.DRAW_RECT.__enum__=r,r.LINE_TO=["LINE_TO",15],r.LINE_TO.toString=i,r.LINE_TO.__enum__=r,r.MOVE_TO=["MOVE_TO",16],r.MOVE_TO.toString=i,r.MOVE_TO.__enum__=r,r.WINDING_EVEN_ODD=["WINDING_EVEN_ODD",18],r.WINDING_EVEN_ODD.toString=i,r.WINDING_EVEN_ODD.__enum__=r,r.CURVE_TO=["CURVE_TO",4],r.CURVE_TO.toString=i,r.CURVE_TO.__enum__=r,r.BEGIN_GRADIENT_FILL=["BEGIN_GRADIENT_FILL",2],r.BEGIN_GRADIENT_FILL.toString=i,r.BEGIN_GRADIENT_FILL.__enum__=r,r.DRAW_TILES=["DRAW_TILES",9],r.DRAW_TILES.toString=i,r.DRAW_TILES.__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=function(t){this.stage=t,this.width=t.stageWidth,this.height=t.stageHeight};r.__name__=["openfl","_internal","renderer","AbstractRenderer"],(r.prototype={clear:function(){},render:function(){},renderStage3D:function(){},resize:function(t,e){this.width=t,this.height=e}}).__class__=i["openfl._internal.renderer.AbstractRenderer"]=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","_internal","renderer","AbstractBlendModeManager"],(r.prototype={setBlendMode:function(t){}}).__class__=i["openfl._internal.renderer.AbstractBlendModeManager"]=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){this.renderSession=t};r.__name__=["openfl","_internal","renderer","AbstractMaskManager"],(r.prototype={pushMask:function(t){},pushObject:function(t,e){null==e&&(e=!0)},pushRect:function(t,e){},popMask:function(){},popObject:function(t,e){null==e&&(e=!0)},popRect:function(){},saveState:function(){},restoreState:function(){}}).__class__=i["openfl._internal.renderer.AbstractMaskManager"]=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(7)}function a(){return n(294)}var s=function(){};s.__name__=["haxe","CallStack"],(s.prototype={}).__class__=i["haxe.CallStack"]=s,s.getStack=function(t){if(null==t)return[];var e=Error.prepareStackTrace;Error.prepareStackTrace=function(t,e){for(var n=[],i=0;i<e.length;){var o=e[i];++i,null!=s.wrapCallSite&&(o=s.wrapCallSite(o));var l=null,u=o.getFunctionName();if(null!=u){var _=u.lastIndexOf(".");if(_>=0){var f=r().default.substr(u,0,_),d=r().default.substr(u,_+1,null);l=a().default.Method(f,d)}}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<t.length;){var r=t[i];++i,e.add("\nCalled from "),s.itemToString(e,r)}return e.toString()},s.itemToString=function(t,e){switch(n(10).default.enumIndex(e)){case 0:t.add("a C function");break;case 1:var i=e[2];t.add("module "),t.add(i);break;case 2:var r=e[4],a=e[3],o=e[2];null!=o&&(s.itemToString(t,o),t.add(" (")),t.add(a),t.add(" line "),t.add(r),null!=o&&t.add(")");break;case 3:var l=e[3],u=e[2];t.add(u),t.add("."),t.add(l);break;case 4:var _=e[2];t.add("local function #"),t.add(_)}},s.makeStack=function(t){if(null==t)return[];if("string"==typeof t){var e=t.split("\n");"Error"==e[0]&&e.shift();for(var i=[],r=new(n(27).default)("^ at ([A-Za-z0-9_. ]+) \\(([^)]+):([0-9]+):([0-9]+)\\)$",""),s=0;s<e.length;){var o=e[s];if(++s,r.match(o)){var l=r.matched(1).split("."),u=l.pop(),_=r.matched(2),f=n(4).default.parseInt(r.matched(3));i.push(a().default.FilePos("Anonymous function"==u?a().default.LocalFunction():"Global code"==u?null:a().default.Method(l.join("."),u),_,f))}else i.push(a().default.Module(n(12).default.trim(o)))}return i}return 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(87)}function a(){return n(172)}function s(){return n(27)}function o(){return n(5)}function l(){return n(174)}function u(){return n(19)}var _=function(t){this.__data=new(a().default)(null),null==this.__glFragmentSource&&(this.__glFragmentSource="varying 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 bool uColorTransform;\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\tgl_FragColor = vec4 (0.0, 0.0, 0.0, 0.0);\n\t\t\t\t\n\t\t\t} else if (uColorTransform) {\n\t\t\t\t\n\t\t\t\tcolor = vec4 (color.rgb / color.a, color.a);\n\t\t\t\t\n\t\t\t\tmat4 colorMultiplier;\n\t\t\t\tcolorMultiplier[0] = vColorMultipliers0;\n\t\t\t\tcolorMultiplier[1] = vColorMultipliers1;\n\t\t\t\tcolorMultiplier[2] = vColorMultipliers2;\n\t\t\t\tcolorMultiplier[3] = vColorMultipliers3;\n\t\t\t\t\n\t\t\t\tcolor = vColorOffsets + (color * colorMultiplier);\n\t\t\t\t\n\t\t\t\tif (color.a > 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;t<e.length;){var n=e[t];++t,this.gl.disableVertexAttribArray(n.index)}for(var i=0,a=this.__paramFloat;i<a.length;){var s=a[i];++i,this.gl.disableVertexAttribArray(s.index)}for(var o=0,l=this.__paramInt;o<l.length;){var u=l[o];++o,this.gl.disableVertexAttribArray(u.index)}this.gl.bindBuffer(this.gl.ARRAY_BUFFER,null),this.gl.bindTexture(this.gl.TEXTURE_2D,null),this.gl.type==r().default.OPENGL&&this.gl.disable(this.gl.TEXTURE_2D)},__enable:function(){this.__init(),null!=this.glProgram&&this.__enableGL()},__enableGL:function(){for(var t=0,e=0,n=this.__inputBitmapData;e<n.length;){var i=n[e];++e,this.gl.uniform1i(i.index,t),++t}this.gl.type==r().default.OPENGL&&t>0&&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;a<s.length;){var o=s[a];++a,this.__isUniform.get(o.name)?o.index=this.gl.getUniformLocation(this.glProgram,o.name):o.index=this.gl.getAttribLocation(this.glProgram,o.name)}for(var l=0,u=this.__paramBool;l<u.length;){var _=u[l];++l,this.__isUniform.get(_.name)?_.index=this.gl.getUniformLocation(this.glProgram,_.name):_.index=this.gl.getAttribLocation(this.glProgram,_.name)}for(var f=0,d=this.__paramFloat;f<d.length;){var h=d[f];++f,this.__isUniform.get(h.name)?h.index=this.gl.getUniformLocation(this.glProgram,h.name):h.index=this.gl.getAttribLocation(this.glProgram,h.name)}for(var c=0,p=this.__paramInt;c<p.length;){var g=p[c];++c,this.__isUniform.get(g.name)?g.index=this.gl.getUniformLocation(this.glProgram,g.name):g.index=this.gl.getAttribLocation(this.glProgram,g.name)}}}},__processGLData:function(t,e){var i,r,a,u,_=0;for(r="uniform"==e?new(s().default)("uniform ([A-Za-z0-9]+) ([A-Za-z0-9]+)",""):new(s().default)("attribute ([A-Za-z0-9]+) ([A-Za-z0-9]+)","");r.matchSub(t,_);){if(u=r.matched(1),a=r.matched(2),n(12).default.startsWith(u,"sampler")){var f=new(n(173).default);f.name=a,this.__inputBitmapData.push(f),o().default.setField(this.get_data(),a,f)}else{var d;switch(u){case"bool":d="bool";break;case"bvec2":d="bool2";break;case"bvec3":d="bool3";break;case"bvec4":d="bool4";break;case"dvec2":case"vec2":d="float2";break;case"dvec3":case"vec3":d="float3";break;case"double":case"float":d="float";break;case"ivec3":case"uvec3":d="int3";break;case"ivec4":case"uvec4":d="int4";break;case"mat2":case"mat2x2":d="matrix2x2";break;case"mat2x3":d="matrix2x3";break;case"mat2x4":d="matrix2x4";break;case"mat3x2":d="matrix3x2";break;case"mat3":case"mat3x3":d="matrix3x3";break;case"mat3x4":d="matrix3x4";break;case"mat4":case"mat4x4":d="matrix4x4";break;case"mat4x2":d="matrix4x2";break;case"mat4x3":d="matrix4x3";break;case"int":case"uint":d="int";break;case"ivec2":case"uvec2":d="int2";break;case"dvec4":case"vec4":d="float4";break;default:d=null}switch(d){case"bool":case"bool2":case"bool3":case"bool4":var h=new(l().default);h.name=a,h.type=d,this.__paramBool.push(h),o().default.setField(this.get_data(),a,h);break;case"int":case"int2":case"int3":case"int4":var c=new(l().default);c.name=a,c.type=d,this.__paramInt.push(c),o().default.setField(this.get_data(),a,c);break;default:var p=new(l().default);p.name=a,p.type=d,this.__paramFloat.push(p),o().default.setField(this.get_data(),a,p)}}this.__isUniform.set(a,"uniform"==e),_=(i=r.matchedPos()).pos+i.len}},__update:function(){null!=this.glProgram&&this.__updateGL()},__updateGL:function(){for(var t,e,n=0,i=0,r=this.__inputBitmapData;i<r.length;){var a=r[i];++i,null!=a.input&&(this.gl.activeTexture(this.gl.TEXTURE0+n),this.gl.bindTexture(this.gl.TEXTURE_2D,a.input.getTexture(this.gl)),a.smoothing?(this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MAG_FILTER,this.gl.LINEAR),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MIN_FILTER,this.gl.LINEAR)):(this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MAG_FILTER,this.gl.NEAREST),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MIN_FILTER,this.gl.NEAREST))),++n}for(var s,o,l=0,_=this.__paramBool;l<_.length;){var f=_[l];if(++l,t=f.value,e=f.index,null!=t)switch(f.type){case"bool":this.gl.uniform1i(e,t[0]?1:0);break;case"bool2":this.gl.uniform2i(e,t[0]?1:0,t[1]?1:0);break;case"bool3":this.gl.uniform3i(e,t[0]?1:0,t[1]?1:0,t[2]?1:0);break;case"bool4":this.gl.uniform4i(e,t[0]?1:0,t[1]?1:0,t[2]?1:0,t[3]?1:0)}else this.__isUniform.get(f.name)||this.gl.enableVertexAttribArray(f.index)}for(var d,h,c=0,p=this.__paramFloat;c<p.length;){var g=p[c];if(++c,s=g.value,o=g.index,null!=s)switch(g.type){case"float":this.gl.uniform1f(o,s[0]);break;case"float2":this.gl.uniform2f(o,s[0],s[1]);break;case"float3":this.gl.uniform3f(o,s[0],s[1],s[2]);break;case"float4":this.gl.uniform4f(o,s[0],s[1],s[2],s[3]);break;case"matrix2x2":for(var m=0;m<4;){var v=m++;this.__uniformMatrix2[v]=s[v]}this.gl.uniformMatrix2fv(o,1,!1,u().default.fromArrayBufferView(this.__uniformMatrix2));break;case"matrix3x3":for(var w=0;w<9;){var y=w++;this.__uniformMatrix3[y]=s[y]}this.gl.uniformMatrix3fv(o,1,!1,u().default.fromArrayBufferView(this.__uniformMatrix3));break;case"matrix4x4":for(var b=0;b<16;){var x=b++;this.__uniformMatrix4[x]=s[x]}this.gl.uniformMatrix4fv(o,1,!1,u().default.fromArrayBufferView(this.__uniformMatrix4))}else if(!this.__isUniform.get(g.name)){switch(this.gl.enableVertexAttribArray(g.index),g.type){case"matrix2x2":this.gl.enableVertexAttribArray(g.index+1);break;case"matrix3x3":this.gl.enableVertexAttribArray(g.index+1),this.gl.enableVertexAttribArray(g.index+2);break;case"matrix4x4":this.gl.enableVertexAttribArray(g.index+1),this.gl.enableVertexAttribArray(g.index+2),this.gl.enableVertexAttribArray(g.index+3)}}}for(var E=0,T=this.__paramInt;E<T.length;){var A=T[E];if(++E,d=A.value,h=A.index,null!=d)switch(A.type){case"int":this.gl.uniform1i(h,d[0]);break;case"int2":this.gl.uniform2i(h,d[0],d[1]);break;case"int3":this.gl.uniform3i(h,d[0],d[1],d[2]);break;case"int4":this.gl.uniform4i(h,d[0],d[1],d[2],d[3])}else this.__isUniform.get(A.name)||this.gl.enableVertexAttribArray(A.index)}},get_data:function(){return(this.__glSourceDirty||null==this.__data)&&this.__init(),this.__data},set_data:function(t){return this.__data=t},get_glFragmentSource:function(){return this.__glFragmentSource},set_glFragmentSource:function(t){return t!=this.__glFragmentSource&&(this.__glSourceDirty=!0),this.__glFragmentSource=t},get_glVertexSource:function(){return this.__glVertexSource},set_glVertexSource:function(t){return t!=this.__glVertexSource&&(this.__glSourceDirty=!0),this.__glVertexSource=t}}).__class__=i["openfl.display.Shader"]=_,Object.defineProperties(_.prototype,{data:{get:function(){return this.get_data()},set:function(t){return this.set_data(t)}},glFragmentSource:{get:function(){return this.get_glFragmentSource()},set:function(t){return this.set_glFragmentSource(t)}},glVertexSource:{get:function(){return this.get_glVertexSource()},set:function(t){return this.set_glVertexSource(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=function(){};r.__name__=["openfl","utils","IDataOutput"],(r.prototype={}).__class__=i["openfl.utils.IDataOutput"]=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="IOError"};s.__name__=["openfl","errors","IOError"],s.__super__=a().default,(s.prototype=r(a().default.prototype,{})).__class__=i["openfl.errors.IOError"]=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(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_Bytes"],o.__super__=s().default,(o.prototype=a(s().default.prototype,{fromBytes:function(t){return t},load:function(t){var e=this;null!=t&&(this.uri=t);var i=new(n(39).default),a=this.backend.loadData(this.uri);return a.onProgress(r(i,i.progress)),a.onError(r(i,i.error)),a.onComplete(function(t){e.responseData=e.fromBytes(t),i.complete(e.responseData)}),i.future}})).__class__=i["lime.net._HTTPRequest_Bytes"]=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(19)}var a=function(){};a.__name__=["openfl","_internal","renderer","opengl","GLBitmap"],(a.prototype={}).__class__=i["openfl._internal.renderer.opengl.GLBitmap"]=a,a.render=function(t,e){if(t.__renderable&&!(t.__worldAlpha<=0)&&null!=t.__bitmapData&&t.__bitmapData.__isValid){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().uImage0.input=t.__bitmapData;var s=e.allowSmoothing&&(t.smoothing||e.upscaled);a.get_data().uImage0.smoothing=s,a.get_data().uMatrix.value=n.getMatrix(t.__renderTransform);var o=!t.__worldColorTransform.__isDefault();null==a.get_data().uColorTransform.value&&(a.get_data().uColorTransform.value=[]),a.get_data().uColorTransform.value[0]=o,e.shaderManager.updateShader(a),i.bindBuffer(i.ARRAY_BUFFER,t.__bitmapData.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.__bitmapData&&t.__bitmapData.__isValid){var i=e.renderer,a=e.gl,s=n(59).default.maskShader;e.shaderManager.setShader(s),s.get_data().uImage0.input=t.__bitmapData;var o=e.allowSmoothing&&(t.smoothing||e.upscaled);s.get_data().uImage0.smoothing=o,s.get_data().uMatrix.value=i.getMatrix(t.__renderTransform),e.shaderManager.updateShader(s),a.bindBuffer(a.ARRAY_BUFFER,t.__bitmapData.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){(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(90)}function a(){return n(128)}var s=function(t){null!=t&&16==t.get_length()?this.rawData=t.concat(null):this.rawData=r().default.ofArray([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])};s.__name__=["openfl","geom","Matrix3D"],(s.prototype={append:function(t){var e=this.rawData.get(0),n=this.rawData.get(4),i=this.rawData.get(8),r=this.rawData.get(12),a=this.rawData.get(1),s=this.rawData.get(5),o=this.rawData.get(9),l=this.rawData.get(13),u=this.rawData.get(2),_=this.rawData.get(6),f=this.rawData.get(10),d=this.rawData.get(14),h=this.rawData.get(3),c=this.rawData.get(7),p=this.rawData.get(11),g=this.rawData.get(15),m=t.rawData.get(0),v=t.rawData.get(4),w=t.rawData.get(8),y=t.rawData.get(12),b=t.rawData.get(1),x=t.rawData.get(5),E=t.rawData.get(9),T=t.rawData.get(13),A=t.rawData.get(2),R=t.rawData.get(6),S=t.rawData.get(10),M=t.rawData.get(14),I=t.rawData.get(3),D=t.rawData.get(7),C=t.rawData.get(11),L=t.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)},appendRotation: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.append(w)},appendScale:function(t,e,n){this.append(new s(r().default.ofArray([t,0,0,0,0,e,0,0,0,0,n,0,0,0,0,1])))},appendTranslation:function(t,e,n){var i=this.rawData;i.set(12,i.get(12)+t);var r=this.rawData;r.set(13,r.get(13)+e);var a=this.rawData;a.set(14,a.get(14)+n)},clone:function(){return new s(this.rawData.copy())},copyColumnFrom:function(t,e){switch(t){case 0:this.rawData.set(0,e.x),this.rawData.set(1,e.y),this.rawData.set(2,e.z),this.rawData.set(3,e.w);break;case 1:this.rawData.set(4,e.x),this.rawData.set(5,e.y),this.rawData.set(6,e.z),this.rawData.set(7,e.w);break;case 2:this.rawData.set(8,e.x),this.rawData.set(9,e.y),this.rawData.set(10,e.z),this.rawData.set(11,e.w);break;case 3:this.rawData.set(12,e.x),this.rawData.set(13,e.y),this.rawData.set(14,e.z),this.rawData.set(15,e.w)}},copyColumnTo:function(t,e){switch(t){case 0:e.x=this.rawData.get(0),e.y=this.rawData.get(1),e.z=this.rawData.get(2),e.w=this.rawData.get(3);break;case 1:e.x=this.rawData.get(4),e.y=this.rawData.get(5),e.z=this.rawData.get(6),e.w=this.rawData.get(7);break;case 2:e.x=this.rawData.get(8),e.y=this.rawData.get(9),e.z=this.rawData.get(10),e.w=this.rawData.get(11);break;case 3:e.x=this.rawData.get(12),e.y=this.rawData.get(13),e.z=this.rawData.get(14),e.w=this.rawData.get(15)}},copyFrom:function(t){this.rawData=t.rawData.copy()},copyRawDataFrom:function(t,e,n){null==n&&(n=!1),null==e&&(e=0),n&&this.transpose();for(var i=0,r=t.get_length()-e;i<r;){var a=i++;this.rawData.set(a,t.get(a+e))}n&&this.transpose()},copyRawDataTo:function(t,e,n){null==n&&(n=!1),null==e&&(e=0),n&&this.transpose();for(var i=0,r=this.rawData.get_length();i<r;){var a=i++;t.set(a+e,this.rawData.get(a))}n&&this.transpose()},copyRowFrom:function(t,e){switch(t){case 0:this.rawData.set(0,e.x),this.rawData.set(4,e.y),this.rawData.set(8,e.z),this.rawData.set(12,e.w);break;case 1:this.rawData.set(1,e.x),this.rawData.set(5,e.y),this.rawData.set(9,e.z),this.rawData.set(13,e.w);break;case 2:this.rawData.set(2,e.x),this.rawData.set(6,e.y),this.rawData.set(10,e.z),this.rawData.set(14,e.w);break;case 3:this.rawData.set(3,e.x),this.rawData.set(7,e.y),this.rawData.set(11,e.z),this.rawData.set(15,e.w)}},copyRowTo:function(t,e){switch(t){case 0:e.x=this.rawData.get(0),e.y=this.rawData.get(4),e.z=this.rawData.get(8),e.w=this.rawData.get(12);break;case 1:e.x=this.rawData.get(1),e.y=this.rawData.get(5),e.z=this.rawData.get(9),e.w=this.rawData.get(13);break;case 2:e.x=this.rawData.get(2),e.y=this.rawData.get(6),e.z=this.rawData.get(10),e.w=this.rawData.get(14);break;case 3:e.x=this.rawData.get(3),e.y=this.rawData.get(7),e.z=this.rawData.get(11),e.w=this.rawData.get(15)}},copyToMatrix3D:function(t){t.rawData=this.rawData.copy()},decompose:function(t){null==t&&(t="eulerAngles");var e=n(21).default._new(),i=this.clone().rawData.copy(),r=new(a().default)(i.get(12),i.get(13),i.get(14));i.set(12,0),i.set(13,0),i.set(14,0);var s=new(a().default);s.x=Math.sqrt(i.get(0)*i.get(0)+i.get(1)*i.get(1)+i.get(2)*i.get(2)),s.y=Math.sqrt(i.get(4)*i.get(4)+i.get(5)*i.get(5)+i.get(6)*i.get(6)),s.z=Math.sqrt(i.get(8)*i.get(8)+i.get(9)*i.get(9)+i.get(10)*i.get(10)),i.get(0)*(i.get(5)*i.get(10)-i.get(6)*i.get(9))-i.get(1)*(i.get(4)*i.get(10)-i.get(6)*i.get(8))+i.get(2)*(i.get(4)*i.get(9)-i.get(5)*i.get(8))<0&&(s.z=-s.z);var o=i;o.set(0,o.get(0)/s.x);var l=i;l.set(1,l.get(1)/s.x);var u=i;u.set(2,u.get(2)/s.x);var _=i;_.set(4,_.get(4)/s.y);var f=i;f.set(5,f.get(5)/s.y);var d=i;d.set(6,d.get(6)/s.y);var h=i;h.set(8,h.get(8)/s.z);var c=i;c.set(9,c.get(9)/s.z);var p=i;p.set(10,p.get(10)/s.z);var g=new(a().default);switch(t){case"axisAngle":g.w=Math.acos((i.get(0)+i.get(5)+i.get(10)-1)/2);var m=Math.sqrt((i.get(6)-i.get(9))*(i.get(6)-i.get(9))+(i.get(8)-i.get(2))*(i.get(8)-i.get(2))+(i.get(1)-i.get(4))*(i.get(1)-i.get(4)));0!=m?(g.x=(i.get(6)-i.get(9))/m,g.y=(i.get(8)-i.get(2))/m,g.z=(i.get(1)-i.get(4))/m):g.x=g.y=g.z=0;break;case"eulerAngles":g.y=Math.asin(-i.get(2)),1!=i.get(2)&&-1!=i.get(2)?(g.x=Math.atan2(i.get(6),i.get(10)),g.z=Math.atan2(i.get(1),i.get(0))):(g.z=0,g.x=Math.atan2(i.get(4),i.get(5)));break;case"quaternion":var v=i.get(0)+i.get(5)+i.get(10);v>0?(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)<e&&Math.abs(this.y-t.y)<e&&Math.abs(this.z-t.z)<e&&(!n||Math.abs(this.w-t.w)<e)},negate:function(){this.x*=-1,this.y*=-1,this.z*=-1},normalize:function(){var t=this.get_length();return 0!=t&&(this.x/=t,this.y/=t,this.z/=t),t},project:function(){this.x/=this.w,this.y/=this.w,this.z/=this.w},scaleBy:function(t){this.x*=t,this.y*=t,this.z*=t},setTo:function(t,e,n){this.x=t,this.y=e,this.z=n},subtract:function(t){return new r(this.x-t.x,this.y-t.y,this.z-t.z)},toString:function(){return"Vector3D("+this.x+", "+this.y+", "+this.z+")"},get_length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)},get_lengthSquared:function(){return this.x*this.x+this.y*this.y+this.z*this.z}}).__class__=i["openfl.geom.Vector3D"]=r,Object.defineProperties(r,{X_AXIS:{get:function(){return r.get_X_AXIS()}},Y_AXIS:{get:function(){return r.get_Y_AXIS()}},Z_AXIS:{get:function(){return r.get_Z_AXIS()}}}),Object.defineProperties(r.prototype,{length:{get:function(){return this.get_length()}},lengthSquared:{get:function(){return this.get_lengthSquared()}}}),r.angleBetween=function(t,e){var n=t.get_length(),i=e.get_length(),r=t.dotProduct(e);return 0!=n&&(r/=n),0!=i&&(r/=i),Math.acos(r)},r.distance=function(t,e){var n=e.x-t.x,i=e.y-t.y,r=e.z-t.z;return Math.sqrt(n*n+i*i+r*r)},r.get_X_AXIS=function(){return new r(1,0,0)},r.get_Y_AXIS=function(){return new r(0,1,0)},r.get_Z_AXIS=function(){return new r(0,0,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="TypeError"};s.__name__=["openfl","errors","TypeError"],s.__super__=a().default,(s.prototype=r(a().default.prototype,{})).__class__=i["openfl.errors.TypeError"]=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(8).default),a=n(3).default;function s(){return n(75)}function o(){return n(131)}function l(){return n(14)}function u(){return n(186)}function _(){return n(4)}function f(){return n(7)}function d(){return n(135)}function h(){return n(102)}function c(){return n(76)}function p(){return n(341)}function g(){return n(342)}function m(){return n(344)}function v(){return n(36)}function w(){return n(9)}function y(){return n(84)}function b(){return n(200)}var x=function(){this.__forceCachedBitmapUpdate=!1,this.__renderedOnCanvasWhileOnDOM=!1,s().default.call(this),this.__caretIndex=-1,this.__displayAsPassword=!1,this.__graphics=new(n(69).default)(this),this.__textEngine=new(n(138).default)(this),this.__layoutDirty=!0,this.__offsetX=0,this.__offsetY=0,this.__mouseWheelEnabled=!0,this.__text="",null==x.__defaultTextFormat&&(x.__defaultTextFormat=new(d().default)("Times New Roman",12,0,!1,!1,!1,"","","left",0,0,0,0),x.__defaultTextFormat.blockIndent=0,x.__defaultTextFormat.bullet=!1,x.__defaultTextFormat.letterSpacing=0,x.__defaultTextFormat.kerning=!1),this.__textFormat=x.__defaultTextFormat.clone(),this.__textEngine.textFormatRanges.push(new(u().default)(this.__textFormat,0,0)),this.addEventListener("mouseDown",r(this,this.this_onMouseDown)),this.addEventListener("focusIn",r(this,this.this_onFocusIn)),this.addEventListener("focusOut",r(this,this.this_onFocusOut)),this.addEventListener("keyDown",r(this,this.this_onKeyDown))};x.__name__=["openfl","text","TextField"],x.__interfaces__=[n(66).default],x.__super__=s().default,x.prototype=a(s().default.prototype,{appendText:function(t){null!=t&&""!=t&&(this.__dirty=!0,this.__layoutDirty=!0,this.__setRenderDirty(),this.__updateText(o().default.plus(this.__text,t)),this.__textEngine.textFormatRanges.get(this.__textEngine.textFormatRanges.get_length()-1).end=o().default.get_length(this.__text),this.__updateScrollH())},getCharBoundaries:function(t){if(t<0||t>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<i;){var r=n++;e+=this.__textEngine.lineHeights.get(r)}for(var a=0,s=this.__textEngine.layoutGroups;a<s.get_length();){var o=s.get(a);if(++a,e>=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<i;){var r=n++;e+=this.__textEngine.lineHeights.get(r)}for(var a=0,s=this.__textEngine.layoutGroups;a<s.get_length();){var o=s.get(a);if(++a,e>=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<n.get_length();){var i=n.get(e);if(++e,i.startIndex<=t&&i.endIndex>=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;i<r.get_length();){var a=r.get(i);if(++i,a.lineIndex==t)-1==e&&(e=a.startIndex);else if(a.lineIndex==t+1){n=a.startIndex;break}}return-1==n&&(n=o().default.get_length(this.__text)),n-e},getLineMetrics:function(t){this.__updateLayout();var e,i=this.__textEngine.lineAscents.get(t),r=this.__textEngine.lineDescents.get(t),a=this.__textEngine.lineLeadings.get(t),s=this.__textEngine.lineHeights.get(t),o=this.__textEngine.lineWidths.get(t);switch(this.__textFormat.align){case"center":e=(this.__textEngine.width-o)/2;break;case"end":case"right":e=this.__textEngine.width-o-2;break;case"justify":case"left":case"start":e=2}return new(n(185).default)(e,o,s,i,r,a)},getLineOffset:function(t){if(this.__updateLayout(),t<0||t>this.__textEngine.numLines-1)return-1;for(var e=0,n=this.__textEngine.layoutGroups;e<n.get_length();){var i=n.get(e);if(++e,i.lineIndex==t)return i.startIndex}return 0},getLineText:function(t){if(this.__updateLayout(),t<0||t>this.__textEngine.numLines-1)return null;for(var e=-1,n=-1,i=0,r=this.__textEngine.layoutGroups;i<r.get_length();){var a=r.get(i);if(++i,a.lineIndex==t)-1==e&&(e=a.startIndex);else if(a.lineIndex==t+1){n=a.startIndex;break}}return-1==n&&(n=o().default.get_length(this.__text)),o().default.substring(this.__textEngine.text,e,n)},getParagraphLength:function(t){if(t<0||t>o().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<r.get_length();){var a=r.get(i);++i,(a.start<=t&&a.end>=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.__caretIndex<this.__selectionIndex?this.__caretIndex:this.__selectionIndex,i=this.__caretIndex>this.__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)),i<e){var r=i;i=e,e=r}e<0&&(e=0),this.replaceText(e,i,t);var a=e+o().default.get_length(n(20).default.__cast(t,String));a>o().default.get_length(this.__text)&&(a=o().default.get_length(this.__text)),this.setSelection(a,a),this.__updateScrollH()}}},replaceText:function(t,e,n){if(!(e<t||t<0||e>o().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<this.__textEngine.textFormatRanges.get_length();)(i=this.__textEngine.textFormatRanges.get(a)).start<=t&&i.end>=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<e)){if(0==e&&n>=r){this.__textFormat.__merge(t);for(var a=0,s=this.__textEngine.textFormatRanges.get_length();a<s;){var l=a++;(i=this.__textEngine.textFormatRanges.get(l)).format.__merge(this.__textFormat)}}else{for(var _,f=this.__textEngine.textFormatRanges.get_length();f>0;){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<p;){var g=c++;if((i=this.__textEngine.textFormatRanges.get(g)).end>=e){d=i;break}}if(n<r)for(var m=this.__textEngine.textFormatRanges.get_length();--m>=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.start<e.start||t.end<e.end?-1:t.start>e.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.__caretIndex<this.__selectionIndex?this.__caretIndex=this.getLineOffset(this.getLineIndexOfChar(this.__caretIndex)):this.__selectionIndex=this.getLineOffset(this.getLineIndexOfChar(this.__selectionIndex))},__caretEndOfLine:function(){var t;(t=this.__selectionIndex==this.__caretIndex?this.getLineIndexOfChar(this.__caretIndex):this.getLineIndexOfChar(_().default.int(Math.max(this.__caretIndex,this.__selectionIndex))))<this.__textEngine.numLines-1?this.__caretIndex=this.getLineOffset(t+1)-1:this.__caretIndex=o().default.get_length(this.__text)},__caretNextCharacter:function(){this.__caretIndex<o().default.get_length(this.__text)&&this.__caretIndex++},__caretNextLine:function(t,e){null==t&&(t=this.getLineIndexOfChar(this.__caretIndex)),t<this.__textEngine.numLines-1?(null==e&&(e=this.__caretIndex),this.__caretIndex=this.__getCharIndexOnDifferentLine(e,t+1)):this.__caretIndex=o().default.get_length(this.__text)},__caretPreviousCharacter:function(){this.__caretIndex>0&&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();o<l.length;){var u=l[o];if(++o,u.get_fontName()==i.font){a=!0;break}}}if(!a)for(var c=new(n(27).default)("[^a-zA-Z]+","g"),p=0,g=h().default.enumerateFonts();p<g.length;){var m=g[p];if(++p,f().default.substr(c.replace(m.get_fontName(),""),0,e.fontName.length)==e.fontName){i.font=m.get_fontName(),a=!0;break}}a?this.set_embedFonts(!0):x.__missingFontWarning.exists(i.font)||(x.__missingFontWarning.set(i.font,!0),n(23).default.warn('Could not find required font "'+i.font+'", it has not been embedded',{fileName:"TextField.hx",lineNumber:1093,className:"openfl.text.TextField",methodName:"__fromSymbol"})),null!=e.align&&("center"==e.align?i.align="center":"right"==e.align?i.align="right":"justify"==e.align&&(i.align="justify"),i.leftMargin=_().default.int(e.leftMargin/20),i.rightMargin=_().default.int(e.rightMargin/20),i.indent=_().default.int(e.indent/20),i.leading=_().default.int(e.leading/20)),this.set_defaultTextFormat(i),null!=e.text&&(e.html?this.set_htmlText(e.text):this.set_text(e.text))},__getAdvance:function(t){return t},__getBounds:function(t,e){this.__updateLayout();var n=l().default.__pool.get();n.copyFrom(this.__textEngine.bounds),n.x+=this.__offsetX,n.y+=this.__offsetY,n.__transform(n,e),t.__expand(n.x,n.y,n.width,n.height),l().default.__pool.release(n)},__getCharBoundaries:function(t,e){if(t<0||t>o().default.get_length(this.__text)-1)return!1;this.__updateLayout();for(var n=0,i=this.__textEngine.layoutGroups;n<i.get_length();){var r=i.get(n);if(++n,t>=r.startIndex&&t<=r.endIndex)try{for(var a=r.offsetX,s=0,l=t-r.startIndex;s<l;){var u=s++;a+=r.getAdvance(u)}var _=r.getAdvance(t-r.startIndex);return e.setTo(a,r.offsetY,_,r.ascent+r.descent),!0}catch(t){}}return!1},__getCharIndexOnDifferentLine:function(t,e){if(t<0||t>o().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<a.get_length();){var s=a.get(r);if(++r,t>=s.startIndex&&t<=s.endIndex){n=s.offsetX;for(var l=0,u=t-s.startIndex;l<u;){var _=l++;n+=s.getAdvance(_)}if(null!=i)return this.__getPosition(n,i)}if(s.lineIndex==e&&(i=s.offsetY+s.height/2,null!=n))return this.__getPosition(n,i)}return-1},__getCursor:function(){var t=this.__getGroup(this.get_mouseX(),this.get_mouseY(),!0);return null!=t&&""!=t.format.url?c().default.POINTER:this.__textEngine.selectable?c().default.TEXT:null},__getGroup:function(t,e,n){null==n&&(n=!1),this.__updateLayout(),t+=this.get_scrollH();for(var i=0,r=this.get_scrollV()-1;i<r;){var a=i++;e+=this.__textEngine.lineHeights.get(a)}!n&&e>this.__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<this.__textEngine.layoutGroups.get_length()-1?this.__textEngine.layoutGroups.get(f+1):null,l&&(e<s.offsetY&&(e=s.offsetY),t<s.offsetX&&(t=s.offsetX),l=!1),(e>=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;r<a;){var s=r++;if(i+=n.getAdvance(s),t<=n.offsetX+i)return t<=n.offsetX+(i-n.getAdvance(s))+n.getAdvance(s)/2?n.startIndex+s:n.startIndex+s<n.endIndex?n.startIndex+s+1:n.endIndex}return n.endIndex},__hitTest:function(t,e,n,i,r,a){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.__getRenderTransform(),this.__updateLayout();var s=this.__renderTransform.__transformInverseX(t,e),o=this.__renderTransform.__transformInverseY(t,e);return!!this.__textEngine.bounds.contains(s,o)&&(null!=i&&i.push(a),!0)},__hitTestMask:function(t,e){this.__getRenderTransform(),this.__updateLayout();var n=this.__renderTransform.__transformInverseX(t,e),i=this.__renderTransform.__transformInverseY(t,e);return!!this.__textEngine.bounds.contains(n,i)},__renderCairo:function(t){},__renderCanvas:function(t){if(t.renderType!=n(33).default.DOM||this.__renderedOnCanvasWhileOnDOM||(this.__renderedOnCanvasWhileOnDOM=!0,"input"==this.get_type()&&this.replaceText(0,o().default.get_length(this.__text),this.__text),this.__isHTML&&this.__updateText(p().default.parse(this.__text,this.__textFormat,this.__textEngine.textFormatRanges)),this.__dirty=!0,this.__layoutDirty=!0,this.__setRenderDirty()),g().default.render(this,t,this.__worldTransform),"advanced"==this.__textEngine.antiAliasType&&"pixel"==this.__textEngine.gridFitType){var e=t.context.imageSmoothingEnabled;e&&(t.context.mozImageSmoothingEnabled=!1,t.context.msImageSmoothingEnabled=!1,t.context.imageSmoothingEnabled=!1),s().default.prototype.__renderCanvas.call(this,t),e&&(t.context.mozImageSmoothingEnabled=!0,t.context.msImageSmoothingEnabled=!0,t.context.imageSmoothingEnabled=!0)}else s().default.prototype.__renderCanvas.call(this,t)},__renderDOM:function(t){this.__updateCacheBitmap(t,this.__forceCachedBitmapUpdate||!this.__worldColorTransform.__isDefault()),this.__forceCachedBitmapUpdate=!1,null==this.__cacheBitmap||this.__cacheBitmapRender?(this.__renderedOnCanvasWhileOnDOM&&(this.__renderedOnCanvasWhileOnDOM=!1,this.__isHTML&&null!=this.__rawHtmlText&&(this.__updateText(this.__rawHtmlText),this.__dirty=!0,this.__layoutDirty=!0,this.__setRenderDirty())),m().default.render(this,t)):(this.__renderDOMClear(t),this.__cacheBitmap.stage=this.stage,n(95).default.render(this.__cacheBitmap,t))},__renderDOMClear:function(t){m().default.clear(this,t)},__renderGL:function(t){g().default.render(this,t,this.__worldTransform),s().default.prototype.__renderGL.call(this,t)},__renderGLMask:function(t){g().default.render(this,t,this.__worldTransform),s().default.prototype.__renderGLMask.call(this,t)},__startCursorTimer:function(){this.__cursorTimer=n(26).default.delay(r(this,this.__startCursorTimer),600),this.__showCursor=!this.__showCursor,this.__dirty=!0,this.__setRenderDirty()},__startTextInput:function(){this.__caretIndex<0&&(this.__caretIndex=o().default.get_length(this.__text),this.__selectionIndex=this.__caretIndex),(!v().default.__supportDOM||this.__renderedOnCanvasWhileOnDOM)&&this.__enableInput()},__stopCursorTimer:function(){null!=this.__cursorTimer&&(this.__cursorTimer.stop(),this.__cursorTimer=null),this.__showCursor&&(this.__showCursor=!1,this.__dirty=!0,this.__setRenderDirty())},__stopTextInput:function(){(!v().default.__supportDOM||this.__renderedOnCanvasWhileOnDOM)&&this.__disableInput()},__updateCacheBitmap:function(t,e){return!!s().default.prototype.__updateCacheBitmap.call(this,t,e)&&(null!=this.__cacheBitmap&&(this.__cacheBitmap.__renderTransform.tx-=this.__offsetX,this.__cacheBitmap.__renderTransform.ty-=this.__offsetY),!0)},__updateLayout:function(){if(this.__layoutDirty){var t=this.__textEngine.width;this.__textEngine.height;if(this.__textEngine.update(),"none"!=this.__textEngine.autoSize){if(this.__textEngine.width!=t)switch(this.__textEngine.autoSize){case"center":this.set_x(this.get_x()+(t-this.__textEngine.width)/2);break;case"right":this.set_x(this.get_x()+(t-this.__textEngine.width))}this.__textEngine.getBounds()}this.__layoutDirty=!1}},__updateScrollH:function(){if(!this.get_multiline()&&"input"==this.get_type()){this.__layoutDirty=!0,this.__updateLayout();var t=this.__textEngine.textWidth-this.__textEngine.width+4;if(t>0)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.x<this.get_scrollH()?this.set_scrollH(Math.floor(e.x-2)):e.x>this.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)<this.__caretIndex&&(this.__selectionIndex=this.__caretIndex=o().default.get_length(this.__text)),!this.__displayAsPassword||v().default.__supportDOM&&!this.__renderedOnCanvasWhileOnDOM)this.__textEngine.set_text(this.__text);else{for(var e="",n=0,i=o().default.get_length(this.get_text());n<i;){n++;e+="*"}this.__textEngine.set_text(e)}},__updateTransforms:function(t){s().default.prototype.__updateTransforms.call(this,t),this.__renderTransform.__translateTransformed(this.__offsetX,this.__offsetY)},get_antiAliasType:function(){return this.__textEngine.antiAliasType},set_antiAliasType:function(t){this.__textEngine.antiAliasType;return this.__textEngine.antiAliasType=t},get_autoSize:function(){return this.__textEngine.autoSize},set_autoSize:function(t){return t!=this.__textEngine.autoSize&&(this.__dirty=!0,this.__layoutDirty=!0,this.__setRenderDirty()),this.__textEngine.autoSize=t},get_background:function(){return this.__textEngine.background},set_background:function(t){return t!=this.__textEngine.background&&(this.__dirty=!0,this.__setRenderDirty()),this.__textEngine.background=t},get_backgroundColor:function(){return this.__textEngine.backgroundColor},set_backgroundColor:function(t){return t!=this.__textEngine.backgroundColor&&(this.__dirty=!0,this.__setRenderDirty()),this.__textEngine.backgroundColor=t},get_border:function(){return this.__textEngine.border},set_border:function(t){return t!=this.__textEngine.border&&(this.__dirty=!0,this.__setRenderDirty()),this.__textEngine.border=t},get_borderColor:function(){return this.__textEngine.borderColor},set_borderColor:function(t){return t!=this.__textEngine.borderColor&&(this.__dirty=!0,this.__setRenderDirty()),this.__textEngine.borderColor=t},get_bottomScrollV:function(){return this.__updateLayout(),this.__textEngine.bottomScrollV},get_cacheAsBitmap:function(){return(null==this.__filters||1!=this.__filters.length||!_().default.is(this.__filters[0],n(100).default))&&s().default.prototype.get_cacheAsBitmap.call(this)},get_caretIndex:function(){return this.__caretIndex},get_defaultTextFormat:function(){return this.__textFormat.clone()},set_defaultTextFormat:function(t){return this.__textFormat.__merge(t),this.__layoutDirty=!0,this.__dirty=!0,this.__setRenderDirty(),t},get_displayAsPassword:function(){return this.__displayAsPassword},set_displayAsPassword:function(t){return t!=this.__displayAsPassword&&(this.__dirty=!0,this.__layoutDirty=!0,this.__setRenderDirty(),this.__displayAsPassword=t,this.__updateText(this.__text)),t},get_embedFonts:function(){return this.__textEngine.embedFonts},set_embedFonts:function(t){return this.__textEngine.embedFonts=t},get_gridFitType:function(){return this.__textEngine.gridFitType},set_gridFitType:function(t){return this.__textEngine.gridFitType=t},get_height:function(){return this.__updateLayout(),this.__textEngine.height*Math.abs(this.get_scaleY())},set_height:function(t){return t!=this.__textEngine.height&&(this.__setTransformDirty(),this.__dirty=!0,this.__layoutDirty=!0,this.__setRenderDirty(),this.__textEngine.height=t),this.__textEngine.height*Math.abs(this.get_scaleY())},get_htmlText:function(){return this.__text},set_htmlText:function(t){if(this.__isHTML&&this.__text==t||(this.__dirty=!0,this.__layoutDirty=!0,this.__setRenderDirty()),this.__isHTML=!0,v().default.__supportDOM&&(this.__rawHtmlText=t),t=p().default.parse(t,this.__textFormat,this.__textEngine.textFormatRanges),v().default.__supportDOM){this.__textEngine.textFormatRanges.get_length()>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<n.get_length();){var i=n.get(e);++e,i.format.color=t}return this.__textFormat.color=t},get_textWidth:function(){return this.__updateLayout(),this.__textEngine.textWidth},get_textHeight:function(){return this.__updateLayout(),this.__textEngine.textHeight},get_type:function(){return this.__textEngine.type},set_type:function(t){return t!=this.__textEngine.type&&("input"==t?(this.addEventListener("addedToStage",r(this,this.this_onAddedToStage)),this.this_onFocusIn(null),this.__textEngine.__useIntAdvances=!0):(this.removeEventListener("addedToStage",r(this,this.this_onAddedToStage)),this.__stopTextInput(),this.__textEngine.__useIntAdvances=null),this.__dirty=!0,this.__setRenderDirty()),this.__textEngine.type=t},get_width:function(){return this.__updateLayout(),this.__textEngine.width*Math.abs(this.__scaleX)},set_width:function(t){return t!=this.__textEngine.width&&(this.__setTransformDirty(),this.__dirty=!0,this.__layoutDirty=!0,this.__setRenderDirty(),this.__textEngine.width=t),this.__textEngine.width*Math.abs(this.__scaleX)},get_wordWrap:function(){return this.__textEngine.wordWrap},set_wordWrap:function(t){return t!=this.__textEngine.wordWrap&&(this.__dirty=!0,this.__layoutDirty=!0,this.__setRenderDirty()),this.__textEngine.wordWrap=t},get_x:function(){return this.__transform.tx+this.__offsetX},set_x:function(t){return t!=this.__transform.tx+this.__offsetX&&this.__setTransformDirty(),this.__transform.tx=t-this.__offsetX},get_y:function(){return this.__transform.ty+this.__offsetY},set_y:function(t){return t!=this.__transform.ty+this.__offsetY&&this.__setTransformDirty(),this.__transform.ty=t-this.__offsetY},stage_onMouseMove:function(t){if(null!=this.stage&&this.__textEngine.selectable&&this.__selectionIndex>=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<o().default.get_length(this.__text)&&(this.__selectionIndex=this.__caretIndex+1),this.__selectionIndex!=this.__caretIndex&&(this.replaceSelectedText(""),this.__selectionIndex=this.__caretIndex,this.dispatchEvent(new(w().default)("change",!0)));break;case 1073741898:this.__caretBeginningOfLine(),this.__stopCursorTimer(),this.__startCursorTimer();break;case 1073741901:this.__caretEndOfLine(),this.__stopCursorTimer(),this.__startCursorTimer();break;case 1073741903:b().default.get_metaKey(e)?(this.__caretEndOfLine(),b().default.get_shiftKey(e)||(this.__selectionIndex=this.__caretIndex)):b().default.get_shiftKey(e)?this.__caretNextCharacter():(this.__selectionIndex==this.__caretIndex?this.__caretNextCharacter():this.__caretIndex=_().default.int(Math.max(this.__caretIndex,this.__selectionIndex)),this.__selectionIndex=this.__caretIndex),this.__updateScrollH(),this.__stopCursorTimer(),this.__startCursorTimer();break;case 1073741904:b().default.get_metaKey(e)?(this.__caretBeginningOfLine(),b().default.get_shiftKey(e)||(this.__selectionIndex=this.__caretIndex)):b().default.get_shiftKey(e)?this.__caretPreviousCharacter():(this.__selectionIndex==this.__caretIndex?this.__caretPreviousCharacter():this.__caretIndex=_().default.int(Math.min(this.__caretIndex,this.__selectionIndex)),this.__selectionIndex=this.__caretIndex),this.__updateScrollH(),this.__stopCursorTimer(),this.__startCursorTimer();break;case 1073741905:if(b().default.get_shiftKey(e))this.__caretNextLine();else{if(this.__selectionIndex==this.__caretIndex)this.__caretNextLine();else{var n=this.getLineIndexOfChar(_().default.int(Math.max(this.__caretIndex,this.__selectionIndex)));this.__caretNextLine(n,_().default.int(Math.min(this.__caretIndex,this.__selectionIndex)))}this.__selectionIndex=this.__caretIndex}this.__stopCursorTimer(),this.__startCursorTimer();break;case 1073741906:if(b().default.get_shiftKey(e))this.__caretPreviousLine();else{if(this.__selectionIndex==this.__caretIndex)this.__caretPreviousLine();else{var i=this.getLineIndexOfChar(_().default.int(Math.min(this.__caretIndex,this.__selectionIndex)));this.__caretPreviousLine(i,_().default.int(Math.min(this.__caretIndex,this.__selectionIndex)))}this.__selectionIndex=this.__caretIndex}this.__stopCursorTimer(),this.__startCursorTimer();break;case 13:case 1073741912:this.__textEngine.multiline&&(this.replaceSelectedText("\n"),this.dispatchEvent(new(w().default)("change",!0)))}},window_onTextInput:function(t){this.replaceSelectedText(t),this.dispatchEvent(new(w().default)("change",!0))}}),x.prototype.__class__=i["openfl.text.TextField"]=x,Object.defineProperties(x.prototype,{antiAliasType:{get:function(){return this.get_antiAliasType()},set:function(t){return this.set_antiAliasType(t)}},autoSize:{get:function(){return this.get_autoSize()},set:function(t){return this.set_autoSize(t)}},background:{get:function(){return this.get_background()},set:function(t){return this.set_background(t)}},backgroundColor:{get:function(){return this.get_backgroundColor()},set:function(t){return this.set_backgroundColor(t)}},border:{get:function(){return this.get_border()},set:function(t){return this.set_border(t)}},borderColor:{get:function(){return this.get_borderColor()},set:function(t){return this.set_borderColor(t)}},bottomScrollV:{get:function(){return this.get_bottomScrollV()}},defaultTextFormat:{get:function(){return this.get_defaultTextFormat()},set:function(t){return this.set_defaultTextFormat(t)}},displayAsPassword:{get:function(){return this.get_displayAsPassword()},set:function(t){return this.set_displayAsPassword(t)}},embedFonts:{get:function(){return this.get_embedFonts()},set:function(t){return this.set_embedFonts(t)}},gridFitType:{get:function(){return this.get_gridFitType()},set:function(t){return this.set_gridFitType(t)}},htmlText:{get:function(){return this.get_htmlText()},set:function(t){return this.set_htmlText(t)}},length:{get:function(){return this.get_length()}},maxChars:{get:function(){return this.get_maxChars()},set:function(t){return this.set_maxChars(t)}},maxScrollH:{get:function(){return this.get_maxScrollH()}},maxScrollV:{get:function(){return this.get_maxScrollV()}},mouseWheelEnabled:{get:function(){return this.get_mouseWheelEnabled()},set:function(t){return this.set_mouseWheelEnabled(t)}},multiline:{get:function(){return this.get_multiline()},set:function(t){return this.set_multiline(t)}},numLines:{get:function(){return this.get_numLines()}},restrict:{get:function(){return this.get_restrict()},set:function(t){return this.set_restrict(t)}},scrollH:{get:function(){return this.get_scrollH()},set:function(t){return this.set_scrollH(t)}},scrollV:{get:function(){return this.get_scrollV()},set:function(t){return this.set_scrollV(t)}},selectable:{get:function(){return this.get_selectable()},set:function(t){return this.set_selectable(t)}},selectionBeginIndex:{get:function(){return this.get_selectionBeginIndex()}},selectionEndIndex:{get:function(){return this.get_selectionEndIndex()}},sharpness:{get:function(){return this.get_sharpness()},set:function(t){return this.set_sharpness(t)}},text:{get:function(){return this.get_text()},set:function(t){return this.set_text(t)}},textColor:{get:function(){return this.get_textColor()},set:function(t){return this.set_textColor(t)}},textHeight:{get:function(){return this.get_textHeight()}},textWidth:{get:function(){return this.get_textWidth()}},type:{get:function(){return this.get_type()},set:function(t){return this.set_type(t)}},wordWrap:{get:function(){return this.get_wordWrap()},set:function(t){return this.set_wordWrap(t)}}}),x.__missingFontWarning=new(n(18).default),e.default=x}).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(327)}function a(){return n(99)}function s(){return n(6)}function o(){return n(331)}function l(){return n(98)}var u=function(){};u.__name__=["lime","text","_UTF8String","UTF8String_Impl_"],(u.prototype={}).__class__=i["lime.text._UTF8String.UTF8String_Impl_"]=u,u._new=function(t){return new String(t)},u.charAt=function(t,e){return r().default.uCharAt(t,e)},u.charCodeAt=function(t,e){return e<0||e>=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;n<t.length;){var i=t[n];if(++n,!a().default.isScalar(i))throw new(s().default)(new(o().default)(i));var r=i;e+=l().default.fromCodePoint(r)}return e},u.indexOf=function(t,e,n){return null==n&&(n=0),r().default.uIndexOf(t,e,n)},u.lastIndexOf=function(t,e,n){return r().default.uLastIndexOf(t,e,n)},u.split=function(t,e){return r().default.uSplit(t,e)},u.substr=function(t,e,i){return n(332).default.sub(t,e,i)},u.substring=function(t,e,n){return r().default.uSubstring(t,e,n)},u.toLowerCase=function(t){return t.toLowerCase()},u.toString=function(t){return t},u.toUpperCase=function(t){return t.toUpperCase()},u.equals=function(t,e){return null==t||null==e?t==e:0==r().default.uCompare(t,e)},u.lt=function(t,e){return null!=e&&(null==t||-1==r().default.uCompare(t,e))},u.gt=function(t,e){return null!=t&&(null==e||1==r().default.uCompare(t,e))},u.lteq=function(t,e){return null==e?null==t:null==t||1!=r().default.uCompare(t,e)},u.gteq=function(t,e){return null==t?null==e:null==e||-1!=r().default.uCompare(t,e)},u.plus=function(t,e){if(null==t&&null==e)return null;if(null==t)return e;if(null==e)return t;var i=new(n(31).default);return i.add(u.toString(t)),i.add(u.toString(e)),i.toString()},u.fromDynamic=function(t){return n(4).default.string(t)},u.get_length=function(t){return null==t?0:t.length},e.default=u}).call(e,n(0))},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(8).default,r=n(7);e.default=function(t){return t instanceof Array?function(){return r.default.iter(t)}:"function"==typeof t.iterator?i(t,t.iterator):t.iterator}},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(99)}function a(){return n(6)}function s(){return n(183)}var o=function(){};o.__name__=["lime","text","unifill","_Utf16","Utf16Impl"],(o.prototype={}).__class__=i["lime.text.unifill._Utf16.Utf16Impl"]=o,o.code_point_width=function(t){return r().default.isHighSurrogate(t)?2:1},o.find_prev_code_point=function(t,e){var n=t(e-1);return r().default.isLowSurrogate(n)?2:1},o.encode_code_point=function(t,e){e<=65535?t(e):(t(r().default.encodeHighSurrogate(e)),t(r().default.encodeLowSurrogate(e)))},o.decode_code_point=function(t,e,n){if(n<0||t<=n)throw new(a().default)(new(s().default)(n));var i=e(n);if(r().default.isHighSurrogate(i)){if(n+1<0||t<=n+1)throw new(a().default)(new(s().default)(n));var o=e(n+1);if(r().default.isLowSurrogate(o))return r().default.decodeSurrogate(i,o);throw new(a().default)(new(s().default)(n))}if(r().default.isLowSurrogate(i))throw new(a().default)(new(s().default)(n));return 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(5)}function a(){return n(12)}function s(){return n(7)}var o=function(t){null!=t&&this.decode(t)};o.__name__=["openfl","net","URLVariables"],(o.prototype={decode:function(t){for(var e=r().default.fields(this),n=0;n<e.length;){var i=e[n];++n,r().default.deleteField(this,i)}for(var o=t.split(";").join("&").split("&"),l=0;l<o.length;){var u=o[l];++l;var _=u.indexOf("=");_>0?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<e.length;){var i=e[n];++n,t.push(a().default.urlEncode(i)+"="+a().default.urlEncode(r().default.field(this,i)))}return t.join("&")}}).__class__=i["openfl.net.URLVariables"]=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,function(t,e,n,i,r,a,s,o,l,u,_,f,d){this.font=t,this.size=e,this.color=n,this.bold=i,this.italic=r,this.underline=a,this.url=s,this.target=o,this.align=l,this.leftMargin=u,this.rightMargin=_,this.indent=f,this.leading=d});r.__name__=["openfl","text","TextFormat"],(r.prototype={clone:function(){var t=new r(this.font,this.size,this.color,this.bold,this.italic,this.underline,this.url,this.target);return t.align=this.align,t.leftMargin=this.leftMargin,t.rightMargin=this.rightMargin,t.indent=this.indent,t.leading=this.leading,t.blockIndent=this.blockIndent,t.bullet=this.bullet,t.kerning=this.kerning,t.letterSpacing=this.letterSpacing,t.tabStops=this.tabStops,t.__ascent=this.__ascent,t.__descent=this.__descent,t},__merge:function(t){null!=t.font&&(this.font=t.font),null!=t.size&&(this.size=t.size),null!=t.color&&(this.color=t.color),null!=t.bold&&(this.bold=t.bold),null!=t.italic&&(this.italic=t.italic),null!=t.underline&&(this.underline=t.underline),null!=t.url&&""!=t.url&&(this.url=t.url),""==t.url&&null==this.url&&(this.url=""),null!=t.target&&(this.target=t.target),null!=t.align&&(this.align=t.align),null!=t.leftMargin&&(this.leftMargin=t.leftMargin),null!=t.rightMargin&&(this.rightMargin=t.rightMargin),null!=t.indent&&(this.indent=t.indent),null!=t.leading&&(this.leading=t.leading),null!=t.blockIndent&&(this.blockIndent=t.blockIndent),null!=t.bullet&&(this.bullet=t.bullet),null!=t.kerning&&(this.kerning=t.kerning),null!=t.letterSpacing&&(this.letterSpacing=t.letterSpacing),null!=t.tabStops&&(this.tabStops=t.tabStops),null!=t.__ascent&&(this.__ascent=t.__ascent),null!=t.__descent&&(this.__descent=t.__descent)}}).__class__=i["openfl.text.TextFormat"]=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);function a(){return n(11)}function s(){return n(23)}function o(){return n(24)}function l(){return n(61)}var u=function(t){null!=t&&(this.name=t),null!=this.__fontID?l().default.isLocal(this.__fontID)&&this.__fromBytes(l().default.getBytes(this.__fontID)):null!=this.__fontPath&&this.__fromFile(this.__fontPath)};u.__name__=["lime","text","Font"],(u.prototype={decompose:function(){return null},getGlyph:function(t){return-1},getGlyphs:function(t){return null==t&&(t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^`'\"/\\&*()[]{}<>|:;_-+=?,. "),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<e&&(this.bytesLoaded+=e-n)}else this.bytesLoaded+=e;this.bytesLoadedCache.set(t,e)}this.assetsLoaded<this.assetsTotal?this.promise.progress(this.bytesLoaded,this.bytesTotal):(this.loaded=!0,this.promise.progress(this.bytesTotal,this.bytesTotal),this.promise.complete(this))},__cacheBreak:function(t){return t},__fromManifest:function(t){var e,n,i,r,a=t.version>=2,s=t.rootPath;null==s&&(s=""),""!=s&&(s+="/");for(var o=0,u=t.assets;o<u.length;){var _=u[o];if(++o,e=a?_.size:100,n=_.id,g().default.hasField(_,"path")&&this.paths.set(n,this.__cacheBreak(s+m().default.string(g().default.field(_,"path")))),g().default.hasField(_,"pathGroup")){for(var f=0,d=(i=g().default.field(_,"pathGroup")).length;f<d;){var h=f++;i[h]=this.__cacheBreak(s+i[h])}this.pathGroups.set(n,i)}this.sizes.set(n,e),this.types.set(n,_.type),g().default.hasField(_,"preload")&&this.preload.set(n,g().default.field(_,"preload")),g().default.hasField(_,"className")&&(r=l().default.resolveClass(g().default.field(_,"className")),this.classTypes.set(n,r))}this.bytesTotal=0;for(var c=0,p=t.assets;c<p.length;){var v=p[c];++c,n=v.id,this.preload.exists(n)&&this.preload.get(n)&&(this.bytesTotal+=this.sizes.get(n))}},loadAudioBuffer_onComplete:function(t,e){if(this.cachedAudioBuffers.set(t,e),this.pathGroups.exists(t))for(var n=this.pathGroups.get(t),i=this.pathGroups.keys();i.hasNext();){var r=i.next();if(r!=t)for(var a=0;a<n.length;){var s=n[a];if(++a,this.pathGroups.get(r).indexOf(s)>-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,"<br>",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;o<l.get_length();){var u=l.get(o);for(++o;u.lineIndex>this.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;e<this.textFormatRanges.get_length()-1&&(++e,i=this.textFormatRanges.get(e),s.__merge(i.format),d.__context.font=d.getFont(s),null!=s.__ascent?(_=s.size*s.__ascent,h=s.size*s.__descent):(_=s.size,h=.185*s.size),m=_+h+(u=s.leading)),m>v&&(v=m),_>f&&(f=_),R=i.format;for(var S=a().default.get_length(this.text)+1;T<S;)if(b>-1&&(-1==y||b<y)&&i.end>=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+D<b+1;){var C=a().default.substr(this.text,T,D);if(x+(I=d.__context.measureText(C).width)>this.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;k<U;){var G=k++;B=d.__context.measureText(a().default.substring(O,T,G+1)).width,F.push(B-N),N=B}else for(var j=T,V=P;j<V;){var X,W=j++;if(W<a().default.get_length(O)-1){var H=d.__context.measureText(a().default.charAt(O,W+1)).width;X=d.__context.measureText(a().default.substr(O,W,2)).width-H}else X=d.__context.measureText(a().default.charAt(O,W)).width;F.push(X)}c.positions=F,c.offsetX=x,c.ascent=_,c.descent=h,c.leading=u,c.lineIndex=A,c.offsetY=E;for(var z=c.positions,Y=0,q=0;q<z.length;){var K=z[q];++q,Y+=K}c.width=Y,c.height=m,c=null,_>f&&(f=_),m>v&&(v=m);for(var Z=0,Q=this.layoutGroups;Z<Q.get_length();){var J=Q.get(Z);if(++Z,!(J.lineIndex<A)){if(J.lineIndex>A)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;it<rt;){var at=it++;et=d.__context.measureText(a().default.substring($,T,at+1)).width,tt.push(et-nt),nt=et}else for(var st=T,ot=b;st<ot;){var lt,ut=st++;if(ut<a().default.get_length($)-1){var _t=d.__context.measureText(a().default.charAt($,ut+1)).width;lt=d.__context.measureText(a().default.substr($,ut,2)).width-_t}else lt=d.__context.measureText(a().default.charAt($,ut)).width;tt.push(lt)}p=tt;for(var ft=0,dt=0;dt<p.length;){var ht=p[dt];++dt,ft+=ht}I=g=ft}null==c||c.startIndex!=c.endIndex?(c=new(o().default)(i.format,T,b),this.layoutGroups.push(c)):(c.format=i.format,c.startIndex=T,c.endIndex=b);var ct=this.text,pt=[];if(null==this.__useIntAdvances&&(this.__useIntAdvances=new(r().default)("Trident/7.0","").match(l().default.get_navigator().userAgent)),this.__useIntAdvances)for(var gt,mt=0,vt=T,wt=b;vt<wt;){var yt=vt++;gt=d.__context.measureText(a().default.substring(ct,T,yt+1)).width,pt.push(gt-mt),mt=gt}else for(var bt=T,xt=b;bt<xt;){var Et,Tt=bt++;if(Tt<a().default.get_length(ct)-1){var At=d.__context.measureText(a().default.charAt(ct,Tt+1)).width;Et=d.__context.measureText(a().default.substr(ct,Tt,2)).width-At}else Et=d.__context.measureText(a().default.charAt(ct,Tt)).width;pt.push(Et)}c.positions=pt,c.offsetX=x,c.ascent=_,c.descent=h,c.leading=u,c.lineIndex=A,c.offsetY=E;for(var Rt=c.positions,St=0,Mt=0;Mt<Rt.length;){var It=Rt[Mt];++Mt,St+=It}c.width=St,c.height=m,c=null}else null!=c&&c.startIndex!=c.endIndex&&(c.endIndex==y&&(c.width-=c.getAdvance(c.positions.length-1)),c=null);i.end==b&&(e<this.textFormatRanges.get_length()-1&&(++e,i=this.textFormatRanges.get(e),s.__merge(i.format),d.__context.font=d.getFont(s),null!=s.__ascent?(_=s.size*s.__ascent,h=s.size*s.__descent):(_=s.size,h=.185*s.size),m=_+h+(u=s.leading)),m>v&&(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;Dt<Ct.get_length();){var Lt=Ct.get(Dt);if(++Dt,!(Lt.lineIndex<A)){if(Lt.lineIndex>A)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<i.end)for(null!=c&&c.startIndex!=c.endIndex&&(c=null),t=!1;T!=i.end;){var Ot=-1;-1==y?Ot=b:(Ot=y+1,b>-1&&b<Ot&&(Ot=b)),(-1==Ot||Ot>i.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;kt<Ut;){var Gt=kt++;Bt=d.__context.measureText(a().default.substring(Pt,T,Gt+1)).width,Ft.push(Bt-Nt),Nt=Bt}else for(var jt=T,Vt=Ot;jt<Vt;){var Xt,Wt=jt++;if(Wt<a().default.get_length(Pt)-1){var Ht=d.__context.measureText(a().default.charAt(Pt,Wt+1)).width;Xt=d.__context.measureText(a().default.substr(Pt,Wt,2)).width-Ht}else Xt=d.__context.measureText(a().default.charAt(Pt,Wt)).width;Ft.push(Xt)}p=Ft;for(var zt=0,Yt=0;Yt<p.length;){var qt=p[Yt];++Yt,zt+=qt}if(g=zt,"justify"==R.align){if(p.length>0&&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;$t<te.get_length();){var ee=te.get($t);if(++$t,!(ee.lineIndex<A)){if(ee.lineIndex>A)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<re;){var ae=ie++;(c=this.layoutGroups.get(ae)).offsetX-=ne,c.offsetY=E,c.lineIndex=A,x+=c.width}if(this.width>=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+le<Ot+1;){var ue=a().default.substr(this.text,T,le);if(x+(oe=d.__context.measureText(ue).width)>this.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;ge<me;){var ve=ge++;ce=d.__context.measureText(a().default.substring(fe,T,ve+1)).width,he.push(ce-pe),pe=ce}else for(var we=T,ye=de;we<ye;){var be,xe=we++;if(xe<a().default.get_length(fe)-1){var Ee=d.__context.measureText(a().default.charAt(fe,xe+1)).width;be=d.__context.measureText(a().default.substr(fe,xe,2)).width-Ee}else be=d.__context.measureText(a().default.charAt(fe,xe)).width;he.push(be)}c.positions=he,c.offsetX=x,c.ascent=_,c.descent=h,c.leading=u,c.lineIndex=A,c.offsetY=E;for(var Te=c.positions,Ae=0,Re=0;Re<Te.length;){var Se=Te[Re];++Re,Ae+=Se}c.width=Ae,c.height=m,c=null,_>f&&(f=_),m>v&&(v=m);for(var Me=0,Ie=this.layoutGroups;Me<Ie.get_length();){var De=Ie.get(Me);if(++Me,!(De.lineIndex<A)){if(De.lineIndex>A)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;Fe<Be;){var Ne=Fe++;Oe=d.__context.measureText(a().default.substring(Ce,T,Ne+1)).width,Le.push(Oe-Pe),Pe=Oe}else for(var ke=T,Ue=Ot;ke<Ue;){var Ge,je=ke++;if(je<a().default.get_length(Ce)-1){var Ve=d.__context.measureText(a().default.charAt(Ce,je+1)).width;Ge=d.__context.measureText(a().default.substr(Ce,je,2)).width-Ve}else Ge=d.__context.measureText(a().default.charAt(Ce,je)).width;Le.push(Ge)}p=Le;for(var Xe=0,We=0;We<p.length;){var He=p[We];++We,Xe+=He}oe=g=Xe}null==c||c.startIndex!=c.endIndex?(c=new(o().default)(i.format,T,Ot),this.layoutGroups.push(c)):(c.format=i.format,c.startIndex=T,c.endIndex=Ot),c.positions=p,c.offsetX=x,c.ascent=_,c.descent=h,c.leading=u,c.lineIndex=A,c.offsetY=E,c.width=g,c.height=m,x+=g,T=Ot,t=!1}else null!=c&&T==y?"justify"!=R.align&&(c.endIndex=y,c.positions=c.positions.concat(p),c.width+=g):null==c||"justify"==R.align?(null==c||c.startIndex!=c.endIndex?(c=new(o().default)(i.format,T,Ot),this.layoutGroups.push(c)):(c.format=i.format,c.startIndex=T,c.endIndex=Ot),c.positions=p,c.offsetX=x,c.ascent=_,c.descent=h,c.leading=u,c.lineIndex=A,c.offsetY=E,c.width=g,c.height=m):(c.endIndex=Ot,c.positions=c.positions.concat(p),c.width+=g,b==Ot&&++Ot),x+=g,T=Ot;var ze=a().default.indexOf(this.text," ",T);if(i.end<=w?(c=null,T=i.end,e<this.textFormatRanges.get_length()-1&&(++e,i=this.textFormatRanges.get(e),s.__merge(i.format),d.__context.font=d.getFont(s),null!=s.__ascent?(_=s.size*s.__ascent,h=s.size*s.__descent):(_=s.size,h=.185*s.size),m=_+h+(u=s.leading)),m>v&&(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<i.end||T==a().default.get_length(this.text)){if(this.wordWrap&&this.width>=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+Ze<Ye+1;){var Qe=a().default.substr(this.text,T,Ze);if(x+(Ke=d.__context.measureText(Qe).width)>this.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;an<sn;){var on=an++;nn=d.__context.measureText(a().default.substring($e,T,on+1)).width,en.push(nn-rn),rn=nn}else for(var ln=T,un=tn;ln<un;){var _n,fn=ln++;if(fn<a().default.get_length($e)-1){var dn=d.__context.measureText(a().default.charAt($e,fn+1)).width;_n=d.__context.measureText(a().default.substr($e,fn,2)).width-dn}else _n=d.__context.measureText(a().default.charAt($e,fn)).width;en.push(_n)}c.positions=en,c.offsetX=x,c.ascent=_,c.descent=h,c.leading=u,c.lineIndex=A,c.offsetY=E;for(var hn=c.positions,cn=0,pn=0;pn<hn.length;){var gn=hn[pn];++pn,cn+=gn}c.width=cn,c.height=m,c=null,_>f&&(f=_),m>v&&(v=m);for(var mn=0,vn=this.layoutGroups;mn<vn.get_length();){var wn=vn.get(mn);if(++mn,!(wn.lineIndex<A)){if(wn.lineIndex>A)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;Tn<An;){var Rn=Tn++;xn=d.__context.measureText(a().default.substring(yn,T,Rn+1)).width,bn.push(xn-En),En=xn}else for(var Sn=T,Mn=Ye;Sn<Mn;){var In,Dn=Sn++;if(Dn<a().default.get_length(yn)-1){var Cn=d.__context.measureText(a().default.charAt(yn,Dn+1)).width;In=d.__context.measureText(a().default.substr(yn,Dn,2)).width-Cn}else In=d.__context.measureText(a().default.charAt(yn,Dn)).width;bn.push(In)}p=bn;for(var Ln=0,On=0;On<p.length;){var Pn=p[On];++On,Ln+=Pn}Ke=g=Ln}var Fn=this.text,Bn=i.end,Nn=[];if(null==this.__useIntAdvances&&(this.__useIntAdvances=new(r().default)("Trident/7.0","").match(l().default.get_navigator().userAgent)),this.__useIntAdvances)for(var kn,Un=0,Gn=T,jn=Bn;Gn<jn;){var Vn=Gn++;kn=d.__context.measureText(a().default.substring(Fn,T,Vn+1)).width,Nn.push(kn-Un),Un=kn}else for(var Xn=T,Wn=Bn;Xn<Wn;){var Hn,zn=Xn++;if(zn<a().default.get_length(Fn)-1){var Yn=d.__context.measureText(a().default.charAt(Fn,zn+1)).width;Hn=d.__context.measureText(a().default.substr(Fn,zn,2)).width-Yn}else Hn=d.__context.measureText(a().default.charAt(Fn,zn)).width;Nn.push(Hn)}p=Nn;for(var qn=0,Kn=0;Kn<p.length;){var Zn=p[Kn];++Kn,qn+=Zn}g=qn;var Qn=i.end;null==c||c.startIndex!=c.endIndex?(c=new(o().default)(i.format,T,Qn),this.layoutGroups.push(c)):(c.format=i.format,c.startIndex=T,c.endIndex=Qn);var Jn=this.text,$n=i.end,ti=[];if(null==this.__useIntAdvances&&(this.__useIntAdvances=new(r().default)("Trident/7.0","").match(l().default.get_navigator().userAgent)),this.__useIntAdvances)for(var ei,ni=0,ii=T,ri=$n;ii<ri;){var ai=ii++;ei=d.__context.measureText(a().default.substring(Jn,T,ai+1)).width,ti.push(ei-ni),ni=ei}else for(var si=T,oi=$n;si<oi;){var li,ui=si++;if(ui<a().default.get_length(Jn)-1){var _i=d.__context.measureText(a().default.charAt(Jn,ui+1)).width;li=d.__context.measureText(a().default.substr(Jn,ui,2)).width-_i}else li=d.__context.measureText(a().default.charAt(Jn,ui)).width;ti.push(li)}c.positions=ti,c.offsetX=x,c.ascent=_,c.descent=h,c.leading=u,c.lineIndex=A,c.offsetY=E;for(var fi=c.positions,di=0,hi=0;hi<fi.length;){var ci=fi[hi];++hi,di+=ci}c.width=di,c.height=m,x+=g,T=i.end}if(e<this.textFormatRanges.get_length()-1&&(++e,i=this.textFormatRanges.get(e),s.__merge(i.format),d.__context.font=d.getFont(s),null!=s.__ascent?(_=s.size*s.__ascent,h=s.size*s.__descent):(_=s.size,h=.185*s.size),m=_+h+(u=s.leading)),m>v&&(v=m),_>f&&(f=_),T==i.end){_>f&&(f=_),m>v&&(v=m);for(var pi=0,gi=this.layoutGroups;pi<gi.get_length();){var mi=gi.get(pi);if(++pi,!(mi.lineIndex<A)){if(mi.lineIndex>A)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();s<o;){var l=s++;if((t=this.layoutGroups.get(l)).lineIndex!=n)switch(n=t.lineIndex,t.format.align){case"center":i=this.lineWidths.get(n)<r?Math.round((r-this.lineWidths.get(n))/2):0;break;case"justify":if(this.lineWidths.get(n)<r){e=1;for(var u=l+1,_=this.layoutGroups.get_length();u<_;){var f=u++;if(this.layoutGroups.get(f).lineIndex!=n)break;0!=f&&32!=a().default.charCodeAt(this.text,this.layoutGroups.get(f).startIndex-1)||++e}if(e>1){t=this.layoutGroups.get(l+e-1);var d=a().default.charCodeAt(this.text,t.endIndex);if(t.endIndex<a().default.get_length(this.text)&&10!=d&&13!=d){i=(r-this.lineWidths.get(n))/(e-1);for(var h=0;h>1&&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,++h<e;);}}}i=0;break;case"right":i=this.lineWidths.get(n)<r?Math.round(r-this.lineWidths.get(n)):0;break;default:i=0}i>0&&(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.bytesLoaded<this.bytesTotal&&(this.bytesLoaded=this.bytesTotal),this.__update(this.bytesLoaded,this.bytesTotal),this.__completed=!0,this.dispatchEvent(new(n(9).default)("complete")))},__update:function(t,e){this.bytesLoaded=t,this.bytesTotal=e,this.dispatchEvent(new(n(53).default)("progress",!1,!1,t,e))}})).__class__=i["openfl.display.LoaderInfo"]=o,o.create=function(t){var e=new o;return e.uncaughtErrorEvents=new(n(207).default),null!=t?e.loader=t:e.url=o.__rootURL,e},o.__rootURL=s().default.get_supported()?s().default.get_document().URL:"",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(13)}var s=function(t,e,n,i,r){null==r&&(r=0),a().default.call(this),this.device=t,this.id=e,this.minValue=n,this.maxValue=i,this.value=r};s.__name__=["openfl","ui","GameInputControl"],s.__super__=a().default,(s.prototype=r(a().default.prototype,{})).__class__=i["openfl.ui.GameInputControl"]=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(8).default),a=n(3).default;function s(){return n(13)}function o(){return n(62)}function l(){return n(5)}function u(){return n(49)}var _=function(){s().default.call(this),this.__x=0,this.__y=0,this.visible=!0};_.__name__=["openfl","display","Stage3D"],_.__super__=s().default,(_.prototype=a(s().default.prototype,{requestContext3D:function(t,e){null==e&&(e="baseline"),null==t&&(t="auto"),this.__contextRequested=!0,null!=this.context3D&&n(26).default.delay(r(this,this.__dispatchCreate),1)},requestContext3DMatchingProfiles:function(t){this.requestContext3D()},__createContext:function(t,e){if(this.__stage=t,null!=e.gl)this.context3D=new(o().default)(this,e),this.__dispatchCreate();else{this.__canvas=n(11).default.get_document().createElement("canvas"),this.__canvas.width=t.stageWidth,this.__canvas.height=t.stageHeight;var i=t.window,r=l().default.hasField(i.config,"background")&&null==i.config.background,a=l().default.hasField(i.config,"colorDepth")?i.config.colorDepth:16,s={alpha:r||a>16,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;i<r;){var a=i++;if(n>this.__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<n.length;){var i=n[e];if(++e,r().default.compareMethods(i,t))return!0}return!1},remove:function(t){for(var e=this.__listeners.length;--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<e.length&&(e[i](t),n[i]?++i:this.remove(e[i]),!this.canceled););}}).__class__=i["lime.app._Event_String_Void"]=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(5)}var a=function(){this.canceled=!1,this.__listeners=[],this.__priorities=[],this.__repeat=[]};a.__name__=["lime","app","_Event_Int_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;i<r;){var a=i++;if(n>this.__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<n.length;){var i=n[e];if(++e,r().default.compareMethods(i,t))return!0}return!1},remove:function(t){for(var e=this.__listeners.length;--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;r<n.length&&(n[r](t,e),i[r]?++r:this.remove(n[r]),!this.canceled););}}).__class__=i["lime.app._Event_Int_Int_Void"]=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(4)}var a=function(){};a.__name__=["lime","math","_ColorMatrix","ColorMatrix_Impl_"],(a.prototype={}).__class__=i["lime.math._ColorMatrix.ColorMatrix_Impl_"]=a,a._new=function(t){var e;if(null!=t&&20==t.length)e=t;else{var n=a.__identity;e=null!=n?new Float32Array(n):null}return e},a.clone=function(t){var e;return e=null!=t?new Float32Array(t):null,a._new(e)},a.concat=function(t,e){t[0]+=e[0],t[6]+=e[6],t[12]+=e[12],t[18]+=e[18]},a.copyFrom=function(t,e){t.set(e)},a.identity=function(t){t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=0,t[6]=1,t[7]=0,t[8]=0,t[9]=0,t[10]=0,t[11]=0,t[12]=1,t[13]=0,t[14]=0,t[15]=0,t[16]=0,t[17]=0,t[18]=1,t[19]=0},a.getAlphaTable=function(t){if(null==a.__alphaTable){var e=new Uint8Array(256);a.__alphaTable=e}var n;a.__alphaTable[0]=0;for(var i=1;i<256;){var r=i++;(n=Math.floor(r*t[18]+255*t[19]))>255&&(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;l<u;){var _=l++;n[_]=o[_]?1:0}else n[0]=a().default.__cast(s,i.Bool)?1:0},getBufferParameter:function(t,e){return this.__context.getBufferParameter(t,e)},getBufferParameteri:function(t,e){return this.getBufferParameter(t,e)},getBufferParameteri64v:function(t,e,n){},getBufferParameteriv:function(t,e,n){r().default.toInt32Array(n)[0]=this.getBufferParameter(t,e)},getBufferPointerv:function(t,e){return r().default.fromInt(0)},getBufferSubData:function(t,e,n,i){this.__context.getBufferSubData(t,r().default.fromInt(r().default.toValue(e)),r().default.toBufferView(i,n))},getBufferSubDataWEBGL:function(t,e,n,i,r){null!=i?this.__context.getBufferSubData(t,e,n,i,r):this.__context.getBufferSubData(t,e,n)},getContextAttributes:function(){return this.__context.getContextAttributes()},getError:function(){return this.__context.getError()},getExtension:function(t){return this.__context.getExtension(t)},getFloat:function(t){return this.getParameter(t)},getFloatv:function(t,e){var n=r().default.toFloat32Array(e),o=this.getParameter(t);if(s().default.is(o,ArrayBufferView))for(var l=o,u=0,_=l.length;u<_;){var f=u++;n[f]=l[f]}else n[0]=a().default.__cast(o,i.Float)},getFragDataLocation:function(t,e){return this.__context.getFragDataLocation(t,e)},getFramebufferAttachmentParameter:function(t,e,n){return this.__context.getFramebufferAttachmentParameter(t,e,n)},getFramebufferAttachmentParameteri:function(t,e,n){return this.getFramebufferAttachmentParameter(t,e,n)},getFramebufferAttachmentParameteriv:function(t,e,n,i){var a=this.getFramebufferAttachmentParameteri(t,e,n);r().default.toInt32Array(i)[0]=a},getIndexedParameter:function(t,e){return this.__context.getIndexedParameter(t,e)},getInteger:function(t){return this.getParameter(t)},getInteger64:function(t){return new(o().default)(0,0)},getInteger64i:function(t){return new(o().default)(0,0)},getInteger64i_v:function(t,e,n){},getInteger64v:function(t,e){},getIntegeri:function(t){return 0},getIntegeri_v:function(t,e,n){},getIntegerv:function(t,e){var n=r().default.toInt32Array(e),o=this.getParameter(t);if(s().default.is(o,ArrayBufferView))for(var l=o,u=0,_=l.length;u<_;){var f=u++;n[f]=l[f]}else n[0]=a().default.__cast(o,i.Int)},getInternalformati:function(t,e,n){return 0},getInternalformativ:function(t,e,n,i,r){},getInternalformatParameter:function(t,e,n){return this.__context.getInternalformatParameter(t,e,n)},getParameter:function(t){return this.__context.getParameter(t)},getProgramBinary:function(t,e){return null},getProgrami:function(t,e){return this.getProgramParameter(t,e)},getProgramiv:function(t,e,n){r().default.toInt32Array(n)[0]=this.getProgramParameter(t,e)},getProgramInfoLog:function(t){return this.__context.getProgramInfoLog(t)},getProgramParameter:function(t,e){return this.__context.getProgramParameter(t,e)},getQuery:function(t,e){return this.__context.getQuery(t,e)},getQueryi:function(t,e){return 0},getQueryiv:function(t,e,n){},getQueryObjectui:function(t,e){return 0},getQueryObjectuiv:function(t,e,n){},getQueryParameter:function(t,e){return this.__context.getQueryParameter(t,e)},getRenderbufferParameter:function(t,e){return this.__context.getRenderbufferParameter(t,e)},getRenderbufferParameteri:function(t,e){return this.getRenderbufferParameter(t,e)},getRenderbufferParameteriv:function(t,e,n){r().default.toInt32Array(n)[0]=this.getRenderbufferParameter(t,e)},getSamplerParameter:function(t,e){return this.__context.getSamplerParameter(t,e)},getSamplerParameterf:function(t,e){return 0},getSamplerParameterfv:function(t,e,n){},getSamplerParameteri:function(t,e){return 0},getSamplerParameteriv:function(t,e,n){},getShaderi:function(t,e){return this.getShaderParameter(t,e)},getShaderiv:function(t,e,n){r().default.toInt32Array(n)[0]=this.getShaderParameter(t,e)},getShaderInfoLog:function(t){return this.__context.getShaderInfoLog(t)},getShaderParameter:function(t,e){return this.__context.getShaderParameter(t,e)},getShaderPrecisionFormat:function(t,e){return this.__context.getShaderPrecisionFormat(t,e)},getShaderSource:function(t){return this.__context.getShaderSource(t)},getString:function(t){return 7939==t?this.getSupportedExtensions().join(" "):this.getParameter(t)},getStringi:function(t,e){return null},getSupportedExtensions:function(){return this.__context.getSupportedExtensions()},getSyncParameter:function(t,e){return this.__context.getSyncParameter(t,e)},getSyncParameteri:function(t,e){return 0},getSyncParameteriv:function(t,e,n){},getTexParameter:function(t,e){return this.__context.getTexParameter(t,e)},getTexParameterf:function(t,e){return this.getTexParameter(t,e)},getTexParameterfv:function(t,e,n){r().default.toFloat32Array(n)[0]=this.getTexParameter(t,e)},getTexParameteri:function(t,e){return this.getTexParameter(t,e)},getTexParameteriv:function(t,e,n){r().default.toInt32Array(n)[0]=this.getTexParameter(t,e)},getTransformFeedbackVarying:function(t,e){return this.__context.getTransformFeedbackVarying(t,e)},getUniform:function(t,e){return this.__context.getUniform(t,e)},getUniformf:function(t,e){return this.getUniform(t,e)},getUniformfv:function(t,e,n){r().default.toFloat32Array(n)[0]=this.getUniformf(t,e)},getUniformi:function(t,e){return this.getUniform(t,e)},getUniformiv:function(t,e,n){var i=this.getUniformi(t,e);r().default.toInt32Array(n)[0]=i},getUniformui:function(t,e){return 0},getUniformuiv:function(t,e,n){},getUniformBlockIndex:function(t,e){return this.__context.getUniformBlockIndex(t,e)},getUniformIndices:function(t,e){return this.__context.getUniformIndices(t,e)},getUniformLocation:function(t,e){return this.__context.getUniformLocation(t,e)},getVertexAttrib:function(t,e){return this.__context.getVertexAttrib(t,e)},getVertexAttribf:function(t,e){return 0},getVertexAttribfv:function(t,e,n){},getVertexAttribi:function(t,e){return 0},getVertexAttribIi:function(t,e){return 0},getVertexAttribIiv:function(t,e,n){},getVertexAttribIui:function(t,e){return 0},getVertexAttribIuiv:function(t,e,n){},getVertexAttribiv:function(t,e,n){},getVertexAttribOffset:function(t,e){return r().default.fromInt(this.__context.getVertexAttribOffset(t,e))},getVertexAttribPointerv:function(t,e){return this.getVertexAttribOffset(t,e)},hint:function(t,e){this.__context.hint(t,e)},invalidateFramebuffer:function(t,e){this.__context.invalidateFramebuffer(t,e)},invalidateSubFramebuffer:function(t,e,n,i,r,a){this.__context.invalidateSubFramebuffer(t,e,n,i,r,a)},isBuffer:function(t){return this.__context.isBuffer(t)},isContextLost:function(){return!!this.__contextLost||this.__context.isContextLost()},isEnabled:function(t){return this.__context.isEnabled(t)},isFramebuffer:function(t){return this.__context.isFramebuffer(t)},isProgram:function(t){return this.__context.isProgram(t)},isQuery:function(t){return this.__context.isQuery(t)},isRenderbuffer:function(t){return this.__context.isRenderbuffer(t)},isSampler:function(t){return this.__context.isSampler(t)},isShader:function(t){return this.__context.isShader(t)},isSync:function(t){return this.__context.isSync(t)},isTexture:function(t){return this.__context.isTexture(t)},isTransformFeedback:function(t){return this.__context.isTransformFeedback(t)},isVertexArray:function(t){return this.__context.isVertexArray(t)},lineWidth:function(t){this.__context.lineWidth(t)},linkProgram:function(t){this.__context.linkProgram(t)},mapBufferRange:function(t,e,n,i){return r().default.fromInt(0)},pauseTransformFeedback:function(){this.__context.pauseTransformFeedback()},pixelStorei:function(t,e){this.__context.pixelStorei(t,e)},polygonOffset:function(t,e){this.__context.polygonOffset(t,e)},programBinary:function(t,e,n,i){},programParameteri:function(t,e,n){},readBuffer:function(t){this.__context.readBuffer(t)},readPixels:function(t,e,n,i,a,s,o){this.__context.readPixels(t,e,n,i,a,s,r().default.toBufferView(o))},readPixelsWEBGL:function(t,e,n,i,r,a,s,o){null!=o?this.__context.readPixels(t,e,n,i,r,a,s,o):this.__context.readPixels(t,e,n,i,r,a,s)},releaseShaderCompiler:function(){},renderbufferStorage:function(t,e,n,i){this.__context.renderbufferStorage(t,e,n,i)},renderbufferStorageMultisample:function(t,e,n,i,r){this.__context.renderbufferStorageMultisample(t,e,n,i,r)},resumeTransformFeedback:function(){this.__context.resumeTransformFeedback()},sampleCoverage:function(t,e){this.__context.sampleCoverage(t,e)},samplerParameterf:function(t,e,n){this.__context.samplerParameterf(t,e,n)},samplerParameteri:function(t,e,n){this.__context.samplerParameteri(t,e,n)},scissor:function(t,e,n,i){this.__context.scissor(t,e,n,i)},shaderBinary:function(t,e,n,i){},shaderSource:function(t,e){this.__context.shaderSource(t,e)},stencilFunc:function(t,e,n){this.__context.stencilFunc(t,e,n)},stencilFuncSeparate:function(t,e,n,i){this.__context.stencilFuncSeparate(t,e,n,i)},stencilMask:function(t){this.__context.stencilMask(t)},stencilMaskSeparate:function(t,e){this.__context.stencilMaskSeparate(t,e)},stencilOp:function(t,e,n){this.__context.stencilOp(t,e,n)},stencilOpSeparate:function(t,e,n,i){this.__context.stencilOpSeparate(t,e,n,i)},texImage2D:function(t,e,n,i,a,s,o,l,u){this.__context.texImage2D(t,e,n,i,a,s,o,l,r().default.toBufferView(u))},texImage2DWEBGL:function(t,e,n,i,r,a,s,o,l,u){null!=u?this.__context.texImage2D(t,e,n,i,r,a,s,o,l,u):null!=s?this.__context.texImage2D(t,e,n,i,r,a,s,o,l):this.__context.texImage2D(t,e,n,i,r,a)},texImage3D:function(t,e,n,i,a,s,o,l,u,_){this.__context.texImage3D(t,e,n,i,a,s,o,l,u,r().default.toBufferView(_))},texImage3DWEBGL:function(t,e,n,i,r,a,s,o,l,u,_){this.__context.texImage3D(t,e,n,i,r,a,s,o,l,u,_)},texStorage2D:function(t,e,n,i,r){this.__context.texStorage2D(t,e,n,i,r)},texStorage3D:function(t,e,n,i,r,a){this.__context.texStorage3D(t,e,n,i,r,a)},texParameterf:function(t,e,n){this.__context.texParameterf(t,e,n)},texParameteri:function(t,e,n){this.__context.texParameteri(t,e,n)},texSubImage2D:function(t,e,n,i,a,s,o,l,u){this.__context.texSubImage2D(t,e,n,i,a,s,o,l,r().default.toBufferView(u))},texSubImage2DWEBGL:function(t,e,n,i,r,a,s,o,l,u){null!=u?this.__context.texSubImage2D(t,e,n,i,r,a,s,o,l,u):null!=o?this.__context.texSubImage2D(t,e,n,i,r,a,s,o,l):this.__context.texSubImage2D(t,e,n,i,r,a,s)},texSubImage3D:function(t,e,n,i,a,s,o,l,u,_,f){this.__context.texSubImage3D(t,e,n,i,a,s,o,l,u,_,r().default.toBufferView(f))},texSubImage3DWEBGL:function(t,e,n,i,r,a,s,o,l,u,_,f){this.__context.texSubImage3D(t,e,n,i,r,a,s,o,l,u,_,f)},transformFeedbackVaryings:function(t,e,n){this.__context.transformFeedbackVaryings(t,e,n)},uniform1f:function(t,e){this.__context.uniform1f(t,e)},uniform1fv:function(t,e,n){this.__context.uniform1fv(t,r().default.toFloat32Array(n,4*e))},uniform1fvWEBGL:function(t,e,n,i){null!=n?this.__context.uniform1fv(t,e,n,i):this.__context.uniform1fv(t,e)},uniform1i:function(t,e){this.__context.uniform1i(t,e)},uniform1iv:function(t,e,n){this.__context.uniform1iv(t,r().default.toInt32Array(n,4*e))},uniform1ivWEBGL:function(t,e,n,i){null!=n?this.__context.uniform1iv(t,e,n,i):this.__context.uniform1iv(t,e)},uniform1ui:function(t,e){this.__context.uniform1ui(t,e)},uniform1uiv:function(t,e,n){this.__context.uniform1uiv(t,r().default.toUInt32Array(n,4*e))},uniform1uivWEBGL:function(t,e,n,i){this.__context.uniform1uiv(t,e,n,i)},uniform2f:function(t,e,n){this.__context.uniform2f(t,e,n)},uniform2fv:function(t,e,n){this.__context.uniform2fv(t,r().default.toFloat32Array(n,4*e*2))},uniform2fvWEBGL:function(t,e,n,i){null!=n?this.__context.uniform2fv(t,e,n,i):this.__context.uniform2fv(t,e)},uniform2i:function(t,e,n){this.__context.uniform2i(t,e,n)},uniform2iv:function(t,e,n){this.__context.uniform2iv(t,r().default.toInt32Array(n,4*e*2))},uniform2ivWEBGL:function(t,e,n,i){null!=n?this.__context.uniform2iv(t,e,n,i):this.__context.uniform2iv(t,e)},uniform2ui:function(t,e,n){this.__context.uniform2ui(t,e,n)},uniform2uiv:function(t,e,n){this.__context.uniform2uiv(t,r().default.toUInt32Array(n,4*e*2))},uniform2uivWEBGL:function(t,e,n,i){this.__context.uniform2uiv(t,e,n,i)},uniform3f:function(t,e,n,i){this.__context.uniform3f(t,e,n,i)},uniform3fv:function(t,e,n){this.__context.uniform3fv(t,r().default.toFloat32Array(n,4*e*3))},uniform3fvWEBGL:function(t,e,n,i){null!=n?this.__context.uniform3fv(t,e,n,i):this.__context.uniform3fv(t,e)},uniform3i:function(t,e,n,i){this.__context.uniform3i(t,e,n,i)},uniform3iv:function(t,e,n){this.__context.uniform3iv(t,r().default.toInt32Array(n,4*e*3))},uniform3ivWEBGL:function(t,e,n,i){null!=n?this.__context.uniform3iv(t,e,n,i):this.__context.uniform3iv(t,e)},uniform3ui:function(t,e,n,i){this.__context.uniform3ui(t,e,n,i)},uniform3uiv:function(t,e,n){this.__context.uniform3uiv(t,r().default.toUInt32Array(n,4*e*3))},uniform3uivWEBGL:function(t,e,n,i){this.__context.uniform3uiv(t,e,n,i)},uniform4f:function(t,e,n,i,r){this.__context.uniform4f(t,e,n,i,r)},uniform4fv:function(t,e,n){this.__context.uniform4fv(t,r().default.toFloat32Array(n,4*e*4))},uniform4fvWEBGL:function(t,e,n,i){null!=n?this.__context.uniform4fv(t,e,n,i):this.__context.uniform4fv(t,e)},uniform4i:function(t,e,n,i,r){this.__context.uniform4i(t,e,n,i,r)},uniform4iv:function(t,e,n){this.__context.uniform4iv(t,r().default.toInt32Array(n,4*e*4))},uniform4ivWEBGL:function(t,e,n,i){null!=n?this.__context.uniform4iv(t,e,n,i):this.__context.uniform4iv(t,e)},uniform4ui:function(t,e,n,i,r){this.__context.uniform4ui(t,e,n,i,r)},uniform4uiv:function(t,e,n){this.__context.uniform4uiv(t,r().default.toUInt32Array(n,4*e*4))},uniform4uivWEBGL:function(t,e,n,i){this.__context.uniform4uiv(t,e,n,i)},uniformBlockBinding:function(t,e,n){this.__context.uniformBlockBinding(t,e,n)},uniformMatrix2fv:function(t,e,n,i){this.__context.uniformMatrix2fv(t,n,r().default.toFloat32Array(i,4*e*4))},uniformMatrix2fvWEBGL:function(t,e,n,i,r){null!=i?this.__context.uniformMatrix2fv(t,e,n,i,r):this.__context.uniformMatrix2fv(t,e,n)},uniformMatrix2x3fv:function(t,e,n,i){this.__context.uniformMatrix2x3fv(t,n,r().default.toFloat32Array(i,4*e*6))},uniformMatrix2x3fvWEBGL:function(t,e,n,i,r){this.__context.uniformMatrix2x3fv(t,e,n,i,r)},uniformMatrix2x4fv:function(t,e,n,i){this.__context.uniformMatrix2x4fv(t,n,r().default.toFloat32Array(i,4*e*8))},uniformMatrix2x4fvWEBGL:function(t,e,n,i,r){this.__context.uniformMatrix2x4fv(t,e,n,i,r)},uniformMatrix3fv:function(t,e,n,i){this.__context.uniformMatrix3fv(t,n,r().default.toFloat32Array(i,4*e*9))},uniformMatrix3fvWEBGL:function(t,e,n,i,r){null!=i?this.__context.uniformMatrix3fv(t,e,n,i,r):this.__context.uniformMatrix3fv(t,e,n)},uniformMatrix3x2fv:function(t,e,n,i){this.__context.uniformMatrix3x2fv(t,n,r().default.toFloat32Array(i,4*e*6))},uniformMatrix3x2fvWEBGL:function(t,e,n,i,r){this.__context.uniformMatrix3x2fv(t,e,n,i,r)},uniformMatrix3x4fv:function(t,e,n,i){this.__context.uniformMatrix3x4fv(t,n,r().default.toFloat32Array(i,4*e*12))},uniformMatrix3x4fvWEBGL:function(t,e,n,i,r){this.__context.uniformMatrix3x4fv(t,e,n,i,r)},uniformMatrix4fv:function(t,e,n,i){this.__context.uniformMatrix4fv(t,n,r().default.toFloat32Array(i,4*e*16))},uniformMatrix4fvWEBGL:function(t,e,n,i,r){null!=i?this.__context.uniformMatrix4fv(t,e,n,i,r):this.__context.uniformMatrix4fv(t,e,n)},uniformMatrix4x2fv:function(t,e,n,i){this.__context.uniformMatrix4x2fv(t,n,r().default.toFloat32Array(i,4*e*8))},uniformMatrix4x2fvWEBGL:function(t,e,n,i,r){null!=i?this.__context.uniformMatrix4x2fv(t,e,n,i,r):this.__context.uniformMatrix4x2fv(t,e,n)},uniformMatrix4x3fv:function(t,e,n,i){this.__context.uniformMatrix4x3fv(t,n,r().default.toFloat32Array(i,4*e*12))},uniformMatrix4x3fvWEBGL:function(t,e,n,i,r){this.__context.uniformMatrix4x3fv(t,e,n,i,r)},unmapBuffer:function(t){return!1},useProgram:function(t){this.__context.useProgram(t)},validateProgram:function(t){this.__context.validateProgram(t)},vertexAttrib1f:function(t,e){this.__context.vertexAttrib1f(t,e)},vertexAttrib1fv:function(t,e){this.__context.vertexAttrib1fv(t,r().default.toFloat32Array(e))},vertexAttrib1fvWEBGL:function(t,e){this.__context.vertexAttrib1fv(t,e)},vertexAttrib2f:function(t,e,n){this.__context.vertexAttrib2f(t,e,n)},vertexAttrib2fv:function(t,e){this.__context.vertexAttrib2fv(t,r().default.toFloat32Array(e))},vertexAttrib2fvWEBGL:function(t,e){this.__context.vertexAttrib2fv(t,e)},vertexAttrib3f:function(t,e,n,i){this.__context.vertexAttrib3f(t,e,n,i)},vertexAttrib3fv:function(t,e){this.__context.vertexAttrib3fv(t,r().default.toFloat32Array(e))},vertexAttrib3fvWEBGL:function(t,e){this.__context.vertexAttrib3fv(t,e)},vertexAttrib4f:function(t,e,n,i,r){this.__context.vertexAttrib4f(t,e,n,i,r)},vertexAttrib4fv:function(t,e){this.__context.vertexAttrib4fv(t,r().default.toFloat32Array(e))},vertexAttrib4fvWEBGL:function(t,e){this.__context.vertexAttrib4fv(t,e)},vertexAttribDivisor:function(t,e){this.__context.vertexAttribDivisor(t,e)},vertexAttribI4i:function(t,e,n,i,r){this.__context.vertexAttribI4i(t,e,n,i,r)},vertexAttribI4iv:function(t,e){this.__context.vertexAttribI4iv(t,r().default.toInt32Array(e))},vertexAttribI4ivWEBGL:function(t,e){this.__context.vertexAttribI4iv(t,e)},vertexAttribI4ui:function(t,e,n,i,r){this.__context.vertexAttribI4ui(t,e,n,i,r)},vertexAttribI4uiv:function(t,e){this.__context.vertexAttribI4uiv(t,r().default.toUInt32Array(e))},vertexAttribI4uivWEBGL:function(t,e){this.__context.vertexAttribI4uiv(t,e)},vertexAttribIPointer:function(t,e,n,i,a){this.__context.vertexAttribIPointer(t,e,n,i,r().default.fromInt(r().default.toValue(a)))},vertexAttribPointer:function(t,e,n,i,a,s){this.__context.vertexAttribPointer(t,e,n,i,a,r().default.toValue(s))},viewport:function(t,e,n,i){this.__context.viewport(t,e,n,i)},waitSync:function(t,e,n){this.__context.waitSync(t,e,n)},get_canvas:function(){return this.__context.canvas},get_drawingBufferHeight:function(){return this.__context.drawingBufferHeight},get_drawingBufferWidth:function(){return this.__context.drawingBufferWidth}}).__class__=i["lime._backend.html5.HTML5GLRenderContext"]=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(12)}function a(){return n(4)}function s(){return n(39)}function o(){return n(7)}function l(){return n(16)}function u(){return n(11)}function _(){return n(56)}var f=function(){this.validStatus0=new(n(27).default)("Tizen","gi").match(u().default.get_window().navigator.userAgent)};f.__name__=["lime","_backend","html5","HTML5HTTPRequest"],(f.prototype={cancel:function(){null!=this.request&&this.request.abort()},init:function(t){this.parent=t},load:function(t,e,n){this.request=new XMLHttpRequest,"POST"==this.parent.method?this.request.upload.addEventListener("progress",e,!1):this.request.addEventListener("progress",e,!1),this.request.onreadystatechange=n;var i="";if(null==this.parent.data){for(var s=this.parent.formData.keys();s.hasNext();){var o=s.next();i.length>0&&(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<f.requestLimit?(f.activeRequests++,this.__loadData(t,e)):f.requestQueue.add({instance:this,uri:t,promise:e,type:"BINARY"}),e.future},loadText:function(t){var e=new(s().default);return f.activeRequests<f.requestLimit?(f.activeRequests++,this.__loadText(t,e)):f.requestQueue.add({instance:this,uri:t,promise:e,type:"TEXT"}),e.future},processResponse:function(){if(this.parent.enableResponseHeaders){var t,e;this.parent.responseHeaders=[];for(var i=0,a=this.request.getAllResponseHeaders().split("\n");i<a.length;){var s=a[i];++i,t=r().default.trim(o().default.substr(s,0,s.indexOf(":"))),e=r().default.trim(o().default.substr(s,s.indexOf(":")+1,null)),""!=t&&this.parent.responseHeaders.push(new(n(155).default)(t,e))}}this.parent.responseStatus=this.request.status},__loadData:function(t,e){var n=this;this.binary=!0,this.load(t,function(t){e.progress(t.loaded,t.total)},function(t){if(4==n.request.readyState){if(null!=n.request.status&&(n.request.status>=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.activeRequests<f.requestLimit?(f.activeRequests++,f.__loadImage(t,e)):f.requestQueue.add({instance:null,uri:t,promise:e,type:"IMAGE"}),e.future},f.processQueue=function(){if(f.activeRequests<f.requestLimit&&f.requestQueue.length>0){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<<n;)++n;if(n>8||e!=1<<n)throw new(a().default)("BaseCode : base length must be a power of two.");this.base=t,this.nbits=n};s.__name__=["haxe","crypto","BaseCode"],(s.prototype={encodeBytes:function(t){for(var e=this.nbits,i=this.base,a=n(4).default.int(8*t.get_length()/e),s=r().default.alloc(a+(8*t.get_length()%e==0?0:1)),o=0,l=0,u=(1<<e)-1,_=0,f=0;f<a;){for(;l<e;)l+=8,o<<=8,o|=t.get(_++);l-=e,s.set(f++,i.get(o>>l&u))}return l>0&&s.set(f++,i.get(o<<e-l&u)),s},initTable:function(){for(var t=[],e=0;e<256;){t[e++]=-1}for(var n=0,i=this.base.get_length();n<i;){var r=n++;t[this.base.get(r)]=r}this.tbl=t},decodeBytes:function(t){var e=this.nbits;this.base;null==this.tbl&&this.initTable();for(var n=this.tbl,i=t.get_length()*e>>3,s=r().default.alloc(i),o=0,l=0,u=0,_=0;_<i;){for(;l<8;){l+=e,o<<=e;var f=n[t.get(u++)];if(-1==f)throw new(a().default)("BaseCode : invalid encoded char");o|=f}l-=8,s.set(_++,o>>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;i<r.length;){var a=r[i];switch(++i,n(10).default.enumIndex(a)){case 0:var s=e.readBeginBitmapFill();this.beginBitmapFill(s.obj(0),s.obj(1),s.bool(0),s.bool(1));break;case 1:var o=e.readBeginFill();this.beginFill(o.int(0),o.float(0));break;case 2:var l=e.readBeginGradientFill();this.beginGradientFill(l.obj(0),l.iArr(0),l.fArr(0),l.iArr(1),l.obj(1),l.obj(2),l.obj(3),l.float(0));break;case 3:var u=e.readCubicCurveTo();this.cubicCurveTo(u.float(0),u.float(1),u.float(2),u.float(3),u.float(4),u.float(5));break;case 4:var _=e.readCurveTo();this.curveTo(_.float(0),_.float(1),_.float(2),_.float(3));break;case 5:var f=e.readDrawCircle();this.drawCircle(f.float(0),f.float(1),f.float(2));break;case 6:var d=e.readDrawEllipse();this.drawEllipse(d.float(0),d.float(1),d.float(2),d.float(3));break;case 7:var h=e.readDrawRect();this.drawRect(h.float(0),h.float(1),h.float(2),h.float(3));break;case 8:var c=e.readDrawRoundRect();this.drawRoundRect(c.float(0),c.float(1),c.float(2),c.float(3),c.float(4),c.obj(0));break;case 10:var p=e.readDrawTriangles();this.drawTriangles(p.obj(0),p.obj(1),p.obj(2),p.obj(3));break;case 11:e.readEndFill();this.endFill();break;case 12:var g=e.readLineBitmapStyle();this.lineBitmapStyle(g.obj(0),g.obj(1),g.bool(0),g.bool(1));break;case 13:var m=e.readLineGradientStyle();this.lineGradientStyle(m.obj(0),m.iArr(0),m.fArr(0),m.iArr(1),m.obj(1),m.obj(2),m.obj(3),m.float(0));break;case 14:var v=e.readLineStyle();this.lineStyle(v.obj(0),v.int(0),v.float(0),v.bool(0),v.obj(1),v.obj(2),v.obj(3),v.float(1));break;case 15:var w=e.readLineTo();this.lineTo(w.float(0),w.float(1));break;case 16:var y=e.readMoveTo();this.moveTo(y.float(0),y.float(1));break;case 17:var b=e.readOverrideMatrix();this.overrideMatrix(b.obj(0));break;case 18:e.readWindingEvenOdd();this.windingEvenOdd();break;case 19:e.readWindingNonZero();this.windingNonZero()}}return e.destroy(),t},beginBitmapFill:function(t,e,n,i){this.prepareWrite(),this.types.push(r().default.BEGIN_BITMAP_FILL),this.o.push(t),this.o.push(e),this.b.push(n),this.b.push(i)},beginFill:function(t,e){this.prepareWrite(),this.types.push(r().default.BEGIN_FILL),this.i.push(t),this.f.push(e)},beginGradientFill:function(t,e,n,i,a,s,o,l){this.prepareWrite(),this.types.push(r().default.BEGIN_GRADIENT_FILL),this.o.push(t),this.ii.push(e),this.ff.push(n),this.ii.push(i),this.o.push(a),this.o.push(s),this.o.push(o),this.f.push(l)},clear:function(){this.types=a.empty.types,this.b=a.empty.b,this.i=a.empty.i,this.f=a.empty.f,this.o=a.empty.o,this.ff=a.empty.ff,this.ii=a.empty.ii,this.copyOnWrite=!0},copy:function(){var t=new a;return t.append(this),t},cubicCurveTo:function(t,e,n,i,a,s){this.prepareWrite(),this.types.push(r().default.CUBIC_CURVE_TO),this.f.push(t),this.f.push(e),this.f.push(n),this.f.push(i),this.f.push(a),this.f.push(s)},curveTo:function(t,e,n,i){this.prepareWrite(),this.types.push(r().default.CURVE_TO),this.f.push(t),this.f.push(e),this.f.push(n),this.f.push(i)},destroy:function(){this.clear(),this.types=null,this.b=null,this.i=null,this.f=null,this.o=null,this.ff=null,this.ii=null},drawCircle:function(t,e,n){this.prepareWrite(),this.types.push(r().default.DRAW_CIRCLE),this.f.push(t),this.f.push(e),this.f.push(n)},drawEllipse:function(t,e,n,i){this.prepareWrite(),this.types.push(r().default.DRAW_ELLIPSE),this.f.push(t),this.f.push(e),this.f.push(n),this.f.push(i)},drawRect:function(t,e,n,i){this.prepareWrite(),this.types.push(r().default.DRAW_RECT),this.f.push(t),this.f.push(e),this.f.push(n),this.f.push(i)},drawRoundRect:function(t,e,n,i,a,s){this.prepareWrite(),this.types.push(r().default.DRAW_ROUND_RECT),this.f.push(t),this.f.push(e),this.f.push(n),this.f.push(i),this.f.push(a),this.o.push(s)},drawTriangles:function(t,e,n,i){this.prepareWrite(),this.types.push(r().default.DRAW_TRIANGLES),this.o.push(t),this.o.push(e),this.o.push(n),this.o.push(i)},endFill:function(){this.prepareWrite(),this.types.push(r().default.END_FILL)},lineBitmapStyle:function(t,e,n,i){this.prepareWrite(),this.types.push(r().default.LINE_BITMAP_STYLE),this.o.push(t),this.o.push(e),this.b.push(n),this.b.push(i)},lineGradientStyle:function(t,e,n,i,a,s,o,l){this.prepareWrite(),this.types.push(r().default.LINE_GRADIENT_STYLE),this.o.push(t),this.ii.push(e),this.ff.push(n),this.ii.push(i),this.o.push(a),this.o.push(s),this.o.push(o),this.f.push(l)},lineStyle:function(t,e,n,i,a,s,o,l){this.prepareWrite(),this.types.push(r().default.LINE_STYLE),this.o.push(t),this.i.push(e),this.f.push(n),this.b.push(i),this.o.push(a),this.o.push(s),this.o.push(o),this.f.push(l)},lineTo:function(t,e){this.prepareWrite(),this.types.push(r().default.LINE_TO),this.f.push(t),this.f.push(e)},moveTo:function(t,e){this.prepareWrite(),this.types.push(r().default.MOVE_TO),this.f.push(t),this.f.push(e)},prepareWrite:function(){this.copyOnWrite&&(this.types=this.types.slice(),this.b=this.b.slice(),this.i=this.i.slice(),this.f=this.f.slice(),this.o=this.o.slice(),this.ff=this.ff.slice(),this.ii=this.ii.slice(),this.copyOnWrite=!1)},overrideMatrix:function(t){this.prepareWrite(),this.types.push(r().default.OVERRIDE_MATRIX),this.o.push(t)},windingEvenOdd:function(){this.prepareWrite(),this.types.push(r().default.WINDING_EVEN_ODD)},windingNonZero:function(){this.prepareWrite(),this.types.push(r().default.WINDING_NON_ZERO)},get_length:function(){return this.types.length}},a.prototype.__class__=i["openfl._internal.renderer.DrawCommandBuffer"]=a,a.empty=new 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=(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","canvas","CanvasBlendModeManager"],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.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.canvas.CanvasBlendModeManager"]=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(120)}var s=function(t){a().default.call(this,t)};s.__name__=["openfl","_internal","renderer","canvas","CanvasMaskManager"],s.__super__=a().default,(s.prototype=r(a().default.prototype,{pushMask:function(t){var e=this.renderSession.context;e.save();var n=t.__getRenderTransform();e.setTransform(n.a,n.b,n.c,n.d,n.tx,n.ty),e.beginPath(),t.__renderCanvasMask(this.renderSession),e.clip()},pushObject:function(t,e){null==e&&(e=!0),e&&null!=t.__scrollRect&&this.pushRect(t.__scrollRect,t.__renderTransform),t.__cacheBitmapRender||null==t.__mask||this.pushMask(t.__mask)},pushRect:function(t,e){var n=this.renderSession.context;n.save(),n.setTransform(e.a,e.b,e.c,e.d,e.tx,e.ty),n.beginPath(),n.rect(t.x,t.y,t.width,t.height),n.clip()},popMask:function(){this.renderSession.context.restore()},popObject:function(t,e){null==e&&(e=!0),t.__cacheBitmapRender||null==t.__mask||this.popMask(),e&&null!=t.__scrollRect&&this.popRect()},popRect:function(){this.renderSession.context.restore()}})).__class__=i["openfl._internal.renderer.canvas.CanvasMaskManager"]=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(118)}function s(){return n(28)}function o(){return n(293)}function l(){return n(44)}function u(){return n(69)}var _=function(t,e,i){if(a().default.call(this,t),this.gl=e,this.defaultRenderTarget=i,this.flipped=null==i,null==u().default.maxTextureWidth&&(u().default.maxTextureWidth=u().default.maxTextureHeight=e.getInteger(e.MAX_TEXTURE_SIZE)),this.matrix=o().default._new(),this.values=[],this.renderSession=new(n(91).default),this.renderSession.clearRenderDirty=!0,this.renderSession.gl=e,this.renderSession.renderer=this,this.renderSession.renderType=n(33).default.OPENGL,this.renderSession.blendModeManager=new(n(295).default)(e),this.renderSession.filterManager=new(n(296).default)(this,this.renderSession),this.renderSession.shaderManager=new(n(298).default)(e),this.renderSession.maskManager=new(n(59).default)(this.renderSession),null!=t.window){null==t.stage3Ds.get(0).context3D&&t.stage3Ds.get(0).__createContext(t,this.renderSession);var r=null!=i?i.width:Math.ceil(t.window.get_width()*t.window.get_scale()),s=null!=i?i.height:Math.ceil(t.window.get_height()*t.window.get_scale());this.resize(r,s)}};_.__name__=["openfl","_internal","renderer","opengl","GLRenderer"],_.__super__=a().default,(_.prototype=r(a().default.prototype,{clear:function(){this.stage.__transparent?this.gl.clearColor(0,0,0,0):this.gl.clearColor(this.stage.__colorSplit[0],this.stage.__colorSplit[1],this.stage.__colorSplit[2],1),this.gl.clear(this.gl.COLOR_BUFFER_BIT)},getCacheObject:function(){},getMatrix:function(t){var e=s().default.__pool.get();e.copyFrom(t),e.concat(this.displayMatrix),this.renderSession.roundPixels&&(e.tx=Math.round(e.tx),e.ty=Math.round(e.ty)),o().default.identity(this.matrix),o().default.set(this.matrix,0,e.a),o().default.set(this.matrix,1,e.b),o().default.set(this.matrix,4,e.c),o().default.set(this.matrix,5,e.d),o().default.set(this.matrix,12,e.tx),o().default.set(this.matrix,13,e.ty),o().default.append(this.matrix,this.flipped?this.projectionFlipped:this.projection);for(var n=0;n<16;){var i=n++;this.values[i]=o().default.get(this.matrix,i)}return s().default.__pool.release(e),this.values},getRenderTarget:function(t){if(t)null==this.renderTargetA&&(this.renderTargetA=l().default.fromTexture(this.stage.stage3Ds.get(0).context3D.createRectangleTexture(this.width,this.height,"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=l().default.fromTexture(this.stage.stage3Ds.get(0).context3D.createRectangleTexture(this.width,this.height,"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.currentRenderTarget==this.renderTargetA?this.currentRenderTarget=this.renderTargetB:this.currentRenderTarget=this.renderTargetA,this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,this.currentRenderTarget.__getFramebuffer(this.gl)),this.gl.viewport(0,0,this.width,this.height),this.gl.clearColor(0,0,0,0),this.gl.clear(this.gl.COLOR_BUFFER_BIT),this.flipped=!1;else{this.currentRenderTarget=this.defaultRenderTarget;var e=null!=this.currentRenderTarget?this.currentRenderTarget.__getFramebuffer(this.gl):null;this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,e),this.flipped=null==this.currentRenderTarget}},render:function(){this.gl.viewport(this.offsetX,this.offsetY,this.displayWidth,this.displayHeight),this.renderSession.allowSmoothing="low"!=this.stage.quality,this.renderSession.upscaled=1!=this.displayMatrix.a||1!=this.displayMatrix.d,this.stage.__renderGL(this.renderSession),(this.offsetX>0||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;t<e.get_length();){var n=e.get(t);++t,n.__renderGL(this.stage,this.renderSession)}},resize:function(t,e){a().default.prototype.resize.call(this,t,e),t>0&&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)<e&&Math.abs(this.y-t.y)<e&&Math.abs(this.z-t.z)<e&&(!n||Math.abs(this.w-t.w)<e)},negate:function(){this.x*=-1,this.y*=-1,this.z*=-1},normalize:function(){var t=this.get_length();return 0!=t&&(this.x/=t,this.y/=t,this.z/=t),t},project:function(){this.x/=this.w,this.y/=this.w,this.z/=this.w},scaleBy:function(t){this.x*=t,this.y*=t,this.z*=t},setTo:function(t,e,n){this.x=t,this.y=e,this.z=n},subtract:function(t){return new r(this.x-t.x,this.y-t.y,this.z-t.z)},toString:function(){return"Vector4("+this.x+", "+this.y+", "+this.z+")"},get_length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)},get_lengthSquared:function(){return this.x*this.x+this.y*this.y+this.z*this.z}}).__class__=i["lime.math.Vector4"]=r,r.angleBetween=function(t,e){var n=t.clone();n.normalize();var i=e.clone();return i.normalize(),Math.acos(n.dotProduct(i))},r.distance=function(t,e){var n=e.x-t.x,i=e.y-t.y,r=e.z-t.z;return Math.sqrt(n*n+i*i+r*r)},r.get_X_AXIS=function(){return new r(1,0,0)},r.get_Y_AXIS=function(){return new r(0,1,0)},r.get_Z_AXIS=function(){return new r(0,0,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(21)}var a=function(t,e,i){null==i&&(i="evenOdd"),this.commands=t,this.data=e,this.winding=i,this.__graphicsDataType=n(50).default.PATH};a.__name__=["openfl","display","GraphicsPath"],a.__interfaces__=[n(165).default,n(51).default],(a.prototype={cubicCurveTo:function(t,e,n,i,a,s){null==this.commands&&(this.commands=r().default._new()),null==this.data&&(this.data=r().default._new()),this.commands.push(6),this.data.push(t),this.data.push(e),this.data.push(n),this.data.push(i),this.data.push(a),this.data.push(s)},curveTo:function(t,e,n,i){null==this.commands&&(this.commands=r().default._new()),null==this.data&&(this.data=r().default._new()),this.commands.push(3),this.data.push(t),this.data.push(e),this.data.push(n),this.data.push(i)},lineTo:function(t,e){null==this.commands&&(this.commands=r().default._new()),null==this.data&&(this.data=r().default._new()),this.commands.push(2),this.data.push(t),this.data.push(e)},moveTo:function(t,e){null==this.commands&&(this.commands=r().default._new()),null==this.data&&(this.data=r().default._new()),this.commands.push(1),this.data.push(t),this.data.push(e)},wideLineTo:function(t,e){null==this.commands&&(this.commands=r().default._new()),null==this.data&&(this.data=r().default._new()),this.commands.push(2),this.data.push(t),this.data.push(e)},wideMoveTo:function(t,e){null==this.commands&&(this.commands=r().default._new()),null==this.data&&(this.data=r().default._new()),this.commands.push(1),this.data.push(t),this.data.push(e)},__drawCircle:function(t,e,n){this.__drawRoundRect(t-n,e-n,2*n,2*n,2*n,2*n)},__drawEllipse:function(t,e,n,i){this.__drawRoundRect(t,e,n,i,n,i)},__drawRect:function(t,e,n,i){this.moveTo(t,e),this.lineTo(t+n,e),this.lineTo(t+n,e+i),this.lineTo(t,e+i),this.lineTo(t,e)},__drawRoundRect:function(t,e,n,i,r,s){s*=.5,(r*=.5)>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(e<this.__currentFrame){if(!this.__evaluateFrameScripts(this.__totalFrames))return;this.__currentFrame=1}if(!this.__evaluateFrameScripts(e))return}else this.__currentFrame=e}if(null!=this.__symbol&&this.__currentFrame!=this.__lastFrameUpdate){this.__updateFrameLabel();for(var n,i,r=new(haxe_ds_IntMap().default),a=0,s=this.__currentFrame;a<s;){var o=a++;if(o+1,null!=(n=this.__symbol.frames[o]).objects)for(var l=0,u=n.objects;l<u.length;){var _=u[l];++l;var f=_.type;switch(Type().default.enumIndex(f)){case 0:null!=(i=this.__activeInstancesByFrameObjectID.get(_.id))&&(r.set(_.id,i),this.__updateDisplayObject(i.displayObject,_));break;case 1:null!=(i=r.get(_.id))&&null!=i.displayObject&&this.__updateDisplayObject(i.displayObject,_);break;case 2:r.remove(_.id)}}}for(var d,h,c,p,g,m=[],v=[],w=r.iterator();w.hasNext();){var y=w.next();-1==m.indexOf(y)&&(m.push(y),y.clipDepth>0&&v.push(y))}m.sort($bind(this,this.__sortDepths));for(var b,x=0,E=m.length;x<E;){var T=x++;d=this.__children[T],h=(i=m[T]).depth,d!=(c=i.displayObject)?(p=c,this.addChildAt(c,T)):p=this.__children[T],g=!1;for(var A=0;A<v.length;){var R=v[A];if(++A,h>R.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;S<M;){b=this.__children[S];for(var I=0,D=this.__activeInstances;I<D.length;){var C=D[I];++I,C.displayObject==b&&(this.removeChild(b),--S,--M)}++S}this.__lastFrameUpdate=this.__currentFrame}openfl_display_Sprite().default.prototype.__enterFrame.call(this,t)},__evaluateFrameScripts:function(t){for(var e=this.__currentFrame,n=t+1;e<n;){var i=e++;if(i!=this.__lastFrameScriptEval){if(this.__lastFrameScriptEval=i,this.__currentFrame=i,this.__frameScripts.exists(i))if(this.__frameScripts.get(i)(),this.__currentFrame!=i)return!1;if(!this.__playing)break}}return!0},__fromSymbol:function(swf,symbol){var _gthis=this;if(null==this.__activeInstances){var frame,frameData;this.__swf=swf,this.__symbol=symbol,this.__activeInstances=[],this.__activeInstancesByFrameObjectID=new(haxe_ds_IntMap().default),this.__currentFrame=1,this.__lastFrameScriptEval=-1,this.__lastFrameUpdate=-1,this.__totalFrames=this.__symbol.frames.length;for(var _g1=0,_g=this.__symbol.frames.length,frame1,frameData1,instance,duplicate,symbol1,displayObject;_g1<_g;){var i=_g1++;if(frame=i+1,frameData=this.__symbol.frames[i],null!=frameData.label&&this.__currentLabels.push(new(openfl_display_FrameLabel().default)(frameData.label,i+1)),null!=frameData.script)null==this.__frameScripts&&(this.__frameScripts=new(haxe_ds_IntMap().default)),this.__frameScripts.set(frame,frameData.script);else if(null!=frameData.scriptSource){null==this.__frameScripts&&(this.__frameScripts=new(haxe_ds_IntMap().default));try{var script=[eval("(function(){"+frameData.scriptSource+"})")],wrapper=function(t){return function(){try{t[0].call(_gthis)}catch(e){e instanceof js__$Boot_HaxeError().default&&(e=e.val),haxe_Log().default.trace("Error evaluating frame script\n "+Std().default.string(e)+"\n"+haxe_CallStack().default.exceptionStack().map(function(t){return t[2]}).join("\n")+"\n"+Std().default.string(e.stack)+"\n"+t[0].toString(),{fileName:"MovieClip.hx",lineNumber:503,className:"openfl.display.MovieClip",methodName:"__fromSymbol"})}}}(script);this.__frameScripts.set(frame,wrapper)}catch(t){null!=this.__symbol.className?lime_utils_Log().default.warn('Unable to evaluate frame script source for symbol "'+this.__symbol.className+'" frame '+frame+"\n"+frameData.scriptSource,{fileName:"MovieClip.hx",lineNumber:519,className:"openfl.display.MovieClip",methodName:"__fromSymbol"}):lime_utils_Log().default.warn("Unable to evaluate frame script source:\n"+frameData.scriptSource,{fileName:"MovieClip.hx",lineNumber:523,className:"openfl.display.MovieClip",methodName:"__fromSymbol"})}}}for(var _g11=0,_g2=this.__totalFrames;_g11<_g2;){var i1=_g11++;if(frame1=i1+1,frameData1=this.__symbol.frames[i1],null!=frameData1.objects)for(var _g21=0,_g3=frameData1.objects;_g21<_g3.length;){var frameObject=_g3[_g21];if(++_g21,frameObject.type==openfl__$internal_timeline_FrameObjectType().default.CREATE){if(this.__activeInstancesByFrameObjectID.exists(frameObject.id))continue;instance=null,duplicate=!1;for(var _g4=0,_g5=this.__activeInstances;_g4<_g5.length;){var activeInstance=_g5[_g4];if(++_g4,null!=activeInstance.displayObject&&activeInstance.characterID==frameObject.symbol&&activeInstance.depth==frameObject.depth){instance=activeInstance,duplicate=!0;break}}null==instance&&(symbol1=this.__swf.symbols.get(frameObject.symbol),null!=symbol1&&(displayObject=symbol1.__createObject(this.__swf),null!=displayObject&&(displayObject.parent=this,displayObject.stage=this.stage,instance=new(openfl_display__$MovieClip_FrameSymbolInstance().default)(frame1,frameObject.id,frameObject.symbol,frameObject.depth,displayObject,frameObject.clipDepth)))),null!=instance&&(this.__activeInstancesByFrameObjectID.set(frameObject.id,instance),duplicate||(this.__activeInstances.push(instance),this.__updateDisplayObject(instance.displayObject,frameObject)))}}}this.__totalFrames>1&&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;n<i.length;){var r=i[n];if(++n,r.get_name()==e)return r.get_frame()}throw new(js__$Boot_HaxeError().default)(new(openfl_errors_ArgumentError().default)("Error #2109: Frame label "+e+" not found in scene."))}throw new(js__$Boot_HaxeError().default)("Invalid type for frame "+Type().default.getClassName(t))},__sortDepths:function(t,e){return t.depth-e.depth},__stopAllMovieClips:function(){openfl_display_Sprite().default.prototype.__stopAllMovieClips.call(this),this.stop()},__updateDisplayObject:function(t,e){if(null!=t){if(null!=e.name&&t.set_name(e.name),null!=e.matrix&&t.get_transform().set_matrix(e.matrix),null!=e.colorTransform&&t.get_transform().set_colorTransform(e.colorTransform),null!=e.filters){for(var n=[],i=0,r=e.filters;i<r.length;){var a=r[i];switch(++i,Type().default.enumIndex(a)){case 0:var s=a[4],o=a[3],l=a[2];n.push(new(openfl_filters_BlurFilter().default)(l,o,s));break;case 1:var u=a[2];n.push(new(openfl_filters_ColorMatrixFilter().default)(u));break;case 2:var _=a[12],f=a[11],d=a[10],h=a[9],c=a[8],p=a[7],g=a[6],m=a[5],v=a[4],w=a[3],y=a[2];n.push(new(openfl_filters_DropShadowFilter().default)(y,w,v,m,g,p,c,h,d,f,_));break;case 3:var b=a[9],x=a[8],E=a[7],T=a[6],A=a[5],R=a[4],S=a[3],M=a[2];n.push(new(openfl_filters_GlowFilter().default)(M,S,R,A,T,E,x,b))}}t.set_filters(n)}else t.set_filters(null);null!=e.visible&&t.set_visible(e.visible),null!=e.blendMode&&t.set_blendMode(e.blendMode);e.cacheAsBitmap;Reflect().default.setField(this,t.get_name(),t)}},__updateFrameLabel:function(){if(this.__currentFrameLabel=this.__symbol.frames[this.__currentFrame-1].label,null!=this.__currentFrameLabel)this.__currentLabel=this.__currentFrameLabel;else{this.__currentLabel=null;for(var t=0,e=this.__currentLabels;t<e.length;){var n=e[t];if(++t,!(n.get_frame()<this.__currentFrame))break;this.__currentLabel=n.get_name()}}},get_currentFrame:function(){return this.__currentFrame},get_currentFrameLabel:function(){return this.__currentFrameLabel},get_currentLabel:function(){return this.__currentLabel},get_currentLabels:function(){return this.__currentLabels},get_framesLoaded:function(){return this.__totalFrames},get_isPlaying:function(){return this.__playing},get_totalFrames:function(){return this.__totalFrames}}),MovieClip.prototype.__class__=$hxClasses["openfl.display.MovieClip"]=MovieClip,Object.defineProperties(MovieClip.prototype,{currentFrame:{get:function(){return this.get_currentFrame()}},currentFrameLabel:{get:function(){return this.get_currentFrameLabel()}},currentLabel:{get:function(){return this.get_currentLabel()}},currentLabels:{get:function(){return this.get_currentLabels()}},framesLoaded:{get:function(){return this.get_framesLoaded()}},isPlaying:{get:function(){return this.get_isPlaying()}},totalFrames:{get:function(){return this.get_totalFrames()}}}),exports.default=MovieClip}).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=(n(2).default,n(3).default);function a(){return n(13)}var s=function(t,e){a().default.call(this),this.__name=t,this.__frame=e};s.__name__=["openfl","display","FrameLabel"],s.__super__=a().default,(s.prototype=r(a().default.prototype,{get_frame:function(){return this.__frame},get_name:function(){return this.__name}})).__class__=i["openfl.display.FrameLabel"]=s,Object.defineProperty(s.prototype,"frame",{get:function(){return this.get_frame()}}),Object.defineProperty(s.prototype,"name",{get:function(){return this.get_name()}}),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)}var s=function(t,e,n){null==n&&(n=1),null==e&&(e=4),null==t&&(t=4),a().default.call(this),this.set_blurX(t),this.set_blurY(e),this.set_quality(n),this.__needSecondBitmapData=!0,this.__preserveObject=!1,this.__renderDirty=!0};s.__name__=["openfl","filters","BlurFilter"],s.__super__=a().default,(s.prototype=r(a().default.prototype,{clone:function(){return new s(this.__blurX,this.__blurY,this.__quality)},__applyFilter:function(t,e,i,r){return n(65).default.gaussianBlur(t.image,e.image,i.__toLimeRectangle(),r.__toLimeVector2(),this.__blurX,this.__blurY,this.__quality)==t.image?t:e},__initShader:function(t,e){return null},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_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<T;)for(var A=E++,R=o().default.int(n.x),S=o().default.int(n.width);R<S;){var M=R++;switch(_=A*g+4*M,f=(A+c)*m+4*(M+p),v){case 0:u=(255&d[_])<<24|(255&d[_+1])<<16|(255&d[_+2])<<8|255&d[_+3];break;case 1:u=(255&d[_+1])<<24|(255&d[_+2])<<16|(255&d[_+3])<<8|255&d[_];break;case 2:u=(255&d[_+2])<<24|(255&d[_+1])<<16|(255&d[_])<<8|255&d[_+3]}if(y&&0!=(255&u)&&255!=(255&u)&&(l().default.unmult=255/(255&u),u=(255&l().default.__clamp[Math.round((u>>>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;n<i;){var r=n++,a=this.cache[r];if(typeof a==e&&a==t)return this.buf.add("r"),this.buf.add(r),!0}return this.cache.push(t),!1},serializeFields:function(t){for(var e=0,n=r().default.fields(t);e<n.length;){var i=n[e];++e,this.serializeString(i),this.serialize(r().default.field(t,i))}this.buf.add("g")},serialize:function(t){var e=a().default.typeof(t);switch(a().default.enumIndex(e)){case 0:this.buf.add("n");break;case 1:var _=t;if(0==_)return void this.buf.add("z");this.buf.add("i"),this.buf.add(_);break;case 2:var f=t;isNaN(f)?this.buf.add("k"):isFinite(f)?(this.buf.add("d"),this.buf.add(f)):this.buf.add(f<0?"m":"p");break;case 3:this.buf.add(t?"t":"f");break;case 4:if(s().default.is(t,i.Class)){var d=a().default.getClassName(t);this.buf.add("A"),this.serializeString(d)}else if(s().default.is(t,i.Enum))this.buf.add("B"),this.serializeString(a().default.getEnumName(t));else{if(this.useCache&&this.serializeRef(t))return;this.buf.add("o"),this.serializeFields(t)}break;case 5:throw new(o().default)("Cannot serialize function");case 6:var h=e[2];if(h==String)return void this.serializeString(t);if(this.useCache&&this.serializeRef(t))return;switch(h){case Array:var c=0;this.buf.add("a");for(var p=0,g=t.length;p<g;){var m=p++;null==t[m]?++c:(c>0&&(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<N;){var k=B++;P[k]=n(7).default.cca(u.BASE64,k)}u.BASE64_CODES=P}for(;L<O;){var U=C.get(L++),G=C.get(L++),j=C.get(L++);this.buf.addChar(P[U>>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;Y<q;){var K=Y++;this.serialize(t[K])}this.useCache&&this.cache.push(t);break;default:throw new(o().default)("Cannot serialize "+s().default.string(t))}}},u.prototype.__class__=i["haxe.Serializer"]=u,u.run=function(t){var e=new u;return e.serialize(t),e.toString()},u.USE_CACHE=!1,u.USE_ENUM_INDEX=!1,u.BASE64="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789%:",u.BASE64_CODES=null,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(12)}function a(){return n(7)}function s(){return n(6)}function o(){return n(10)}function l(){return n(340)}var u=function(t){this.buf=t,this.length=t.length,this.pos=0,this.scache=[],this.cache=[];var e=u.DEFAULT_RESOLVER;null==e&&(e=new(l().default),u.DEFAULT_RESOLVER=e),this.resolver=e};u.__name__=["haxe","Unserializer"],u.prototype={setResolver:function(t){this.resolver=null==t?n(339).default.get_instance():t},get:function(t){return r().default.fastCodeAt(this.buf,t)},readDigits:function(){for(var t=0,e=!1,n=this.pos;;){var i=this.get(this.pos);if(r().default.isEof(i))break;if(45!=i){if(i<48||i>57)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<F)throw new(s().default)("Invalid bytes length");var N=u.CODES;null==N&&(N=u.initCodes(),u.CODES=N);for(var k=this.pos,U=3&F,G=3*(F>>2)+(U>=2?U-1:0),j=k+(F-U),V=n(16).default.alloc(G),X=0;k<j;){var W=N[r().default.fastCodeAt(B,k++)],H=N[r().default.fastCodeAt(B,k++)];V.set(X++,W<<2|H>>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.pos<nt)throw new(s().default)("Invalid string length");var it=a().default.substr(this.buf,this.pos,nt);return this.pos+=nt,it=r().default.urlDecode(it),this.scache.push(it),it;case 122:return 0}throw this.pos--,new(s().default)("Invalid char "+this.buf.charAt(this.pos)+" at position "+this.pos)}},u.prototype.__class__=i["haxe.Unserializer"]=u,u.initCodes=function(){for(var t=[],e=0,n=u.BASE64.length;e<n;){var i=e++;t[r().default.fastCodeAt(u.BASE64,i)]=i}return t},u.run=function(t){return new u(t).unserialize()},u.DEFAULT_RESOLVER=new(l().default),u.BASE64="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789%:",u.CODES=null,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=function(){};r.__name__=["lime","ui","_KeyModifier","KeyModifier_Impl_"],(r.prototype={}).__class__=i["lime.ui._KeyModifier.KeyModifier_Impl_"]=r,r.get_altKey=function(t){return!((256&t)<=0)||(512&t)>0},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;t<e.length;){var n=e[t];++t,n.stop()}},r.__registerSoundChannel=function(t){r.__soundChannels.push(t)},r.__unregisterSoundChannel=function(t){n(7).default.remove(r.__soundChannels,t)},r.get_soundTransform=function(){return r.__soundTransform},r.set_soundTransform=function(t){r.__soundTransform=t.clone();for(var e=0,n=r.__soundChannels;e<n.length;){var i=n[e];++e,i.__updateTransform()}return t},r.MAX_ACTIVE_CHANNELS=32,r.__soundChannels=[],r.__soundTransform=new(n(81).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,r=(n(2).default,n(8).default),a=n(3).default;function s(){return n(13)}function o(){return n(204)}var l=function(t,e){s().default.call(this,this),this.leftPeak=1,this.rightPeak=1,this.__soundTransform=null!=e?e:new(n(81).default),null!=t&&(this.__source=t,this.__source.onComplete.add(r(this,this.source_onComplete)),this.__isValid=!0,this.__source.play()),o().default.__registerSoundChannel(this)};l.__name__=["openfl","media","SoundChannel"],l.__super__=s().default,(l.prototype=a(s().default.prototype,{stop:function(){o().default.__unregisterSoundChannel(this),this.__isValid&&(this.__source.stop(),this.__dispose())},__dispose:function(){this.__isValid&&(this.__source.onComplete.remove(r(this,this.source_onComplete)),this.__source.dispose(),this.__isValid=!1)},__updateTransform:function(){this.set_soundTransform(this.get_soundTransform())},get_position:function(){return this.__isValid?this.__source.get_currentTime()+this.__source.offset:0},set_position:function(t){return this.__isValid?(this.__source.set_currentTime(n(4).default.int(t)-this.__source.offset),t):0},get_soundTransform:function(){return this.__soundTransform.clone()},set_soundTransform:function(t){if(null!=t){this.__soundTransform.pan=t.pan,this.__soundTransform.volume=t.volume;var e=o().default.__soundTransform.pan+this.__soundTransform.pan;e<-1&&(e=-1),e>1&&(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<l.length;){var _=l[o];++o,this.dispatchEvent(new(s().default)("deviceAdded",null,null,_))}}}),u.prototype.__class__=i["openfl.ui.GameInput"]=u,u.getDeviceAt=function(t){return t>=0&&t<u.__deviceList.length?u.__deviceList[t]:null},u.__getDevice=function(t){if(null==t)return null;if(!u.__devices.exists(t)){var e=new(n(211).default)(t.get_guid(),t.get_name());u.__deviceList.push(e),u.__devices.set(t,e),u.numDevices=u.__deviceList.length}return u.__devices.get(t)},u.__onGamepadAxisMove=function(t,e,n){var i=u.__getDevice(t);if(null!=i&&i.enabled){if(!i.__axis.exists(e)){var r;switch(e){case 0:r="LEFT_X";break;case 1:r="LEFT_Y";break;case 2:r="RIGHT_X";break;case 3:r="RIGHT_Y";break;case 4:r="TRIGGER_LEFT";break;case 5:r="TRIGGER_RIGHT";break;default:r="UNKNOWN ("+e+")"}var a=new(o().default)(i,"AXIS_"+r,-1,1);i.__axis.set(e,a),i.__controls.push(a)}var s=i.__axis.get(e);s.value=n,s.dispatchEvent(new(l().default)("change"))}},u.__onGamepadButtonDown=function(t,e){var n=u.__getDevice(t);if(null!=n&&n.enabled){if(!n.__button.exists(e)){var i;switch(e){case 0:i="A";break;case 1:i="B";break;case 2:i="X";break;case 3:i="Y";break;case 4:i="BACK";break;case 5:i="GUIDE";break;case 6:i="START";break;case 7:i="LEFT_STICK";break;case 8:i="RIGHT_STICK";break;case 9:i="LEFT_SHOULDER";break;case 10:i="RIGHT_SHOULDER";break;case 11:i="DPAD_UP";break;case 12:i="DPAD_DOWN";break;case 13:i="DPAD_LEFT";break;case 14:i="DPAD_RIGHT";break;default:i="UNKNOWN ("+e+")"}var r=new(o().default)(n,"BUTTON_"+i,0,1);n.__button.set(e,r),n.__controls.push(r)}var a=n.__button.get(e);a.value=1,a.dispatchEvent(new(l().default)("change"))}},u.__onGamepadButtonUp=function(t,e){var n=u.__getDevice(t);if(null!=n&&n.enabled){if(!n.__button.exists(e)){var i;switch(e){case 0:i="A";break;case 1:i="B";break;case 2:i="X";break;case 3:i="Y";break;case 4:i="BACK";break;case 5:i="GUIDE";break;case 6:i="START";break;case 7:i="LEFT_STICK";break;case 8:i="RIGHT_STICK";break;case 9:i="LEFT_SHOULDER";break;case 10:i="RIGHT_SHOULDER";break;case 11:i="DPAD_UP";break;case 12:i="DPAD_DOWN";break;case 13:i="DPAD_LEFT";break;case 14:i="DPAD_RIGHT";break;default:i="UNKNOWN ("+e+")"}var r=new(o().default)(n,"BUTTON_"+i,0,1);n.__button.set(e,r),n.__controls.push(r)}var a=n.__button.get(e);a.value=0,a.dispatchEvent(new(l().default)("change"))}},u.__onGamepadConnect=function(t){var e=u.__getDevice(t);if(null!=e)for(var n=0,i=u.__instances;n<i.length;){var r=i[n];++n,r.dispatchEvent(new(s().default)("deviceAdded",null,null,e))}},u.__onGamepadDisconnect=function(t){var e=u.__devices.get(t);if(null!=e){u.__devices.exists(t)&&(n(7).default.remove(u.__deviceList,u.__devices.get(t)),u.__devices.remove(t)),u.numDevices=u.__deviceList.length;for(var i=0,r=u.__instances;i<r.length;){var a=r[i];++i,a.dispatchEvent(new(s().default)("deviceRemoved",null,null,e))}}},u.isSupported=!0,u.numDevices=0,u.__deviceList=[],u.__devices=new(n(57).default),u.__instances=[],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(9)}var s=function(t,e,n,i){null==n&&(n=!1),null==e&&(e=!0),a().default.call(this,t,e,n),this.device=i};s.__name__=["openfl","events","GameInputEvent"],s.__super__=a().default,(s.prototype=r(a().default.prototype,{clone:function(){var t=new s(this.type,this.bubbles,this.cancelable,this.device);return t.target=this.target,t.currentTarget=this.currentTarget,t.eventPhase=this.eventPhase,t},toString:function(){return this.__formatToString("GameInputEvent",["type","bubbles","cancelable","device"])}})).__class__=i["openfl.events.GameInputEvent"]=s,s.DEVICE_ADDED="deviceAdded",s.DEVICE_REMOVED="deviceRemoved",s.DEVICE_UNUSABLE="deviceUnusable",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(22)}function a(){return n(140)}var s=function(t,e){var n;this.__controls=[],this.__button=new(r().default),this.__axis=new(r().default),this.id=t,this.name=e;for(var i=0;i<6;){var s=i++;n=new(a().default)(this,"AXIS_"+s,-1,1),this.__axis.set(s,n),this.__controls.push(n)}for(var o=0;o<15;){var l=o++;n=new(a().default)(this,"BUTTON_"+l,0,1),this.__button.set(l,n),this.__controls.push(n)}};s.__name__=["openfl","ui","GameInputDevice"],(s.prototype={getCachedSamples:function(t,e){return null==e&&(e=!1),0},getControlAt:function(t){return t>=0&&t<this.__controls.length?this.__controls[t]:null},startCachingSamples:function(t,e){},stopCachingSamples:function(){},get_numControls:function(){return this.__controls.length}}).__class__=i["openfl.ui.GameInputDevice"]=s,Object.defineProperties(s.prototype,{numControls:{get:function(){return this.get_numControls()}}}),s.MAX_BUFFER_SIZE=32e3,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(213)}var s=function(t,e,n,i,r){null==r&&(r=!1),null==i&&(i=!1),null==n&&(n=!1),null==e&&(e=!1),a().default.call(this,t,e,n),this.fullScreen=i,this.interactive=r};s.__name__=["openfl","events","FullScreenEvent"],s.__super__=a().default,(s.prototype=r(a().default.prototype,{clone:function(){var t=new s(this.type,this.bubbles,this.cancelable,this.fullScreen,this.interactive);return t.target=this.target,t.currentTarget=this.currentTarget,t.eventPhase=this.eventPhase,t},toString:function(){return this.__formatToString("FullscreenEvent",["type","bubbles","cancelable","fullscreen","interactive"])}})).__class__=i["openfl.events.FullScreenEvent"]=s,s.FULL_SCREEN="fullScreen",s.FULL_SCREEN_INTERACTIVE_ACCEPTED="fullScreenInteractiveAccepted",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(9)}var s=function(t,e,n,i){null==i&&(i=!1),null==n&&(n=!1),null==e&&(e=!1),a().default.call(this,t,e,n),this.activating=i};s.__name__=["openfl","events","ActivityEvent"],s.__super__=a().default,(s.prototype=r(a().default.prototype,{clone:function(){var t=new s(this.type,this.bubbles,this.cancelable,this.activating);return t.target=this.target,t.currentTarget=this.currentTarget,t.eventPhase=this.eventPhase,t},toString:function(){return this.__formatToString("ActivityEvent",["type","bubbles","cancelable","activating"])}})).__class__=i["openfl.events.ActivityEvent"]=s,s.ACTIVITY="activity",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,n,i,r,a,s,o,l,u){null==u&&(u=!1),null==l&&(l=!1),null==o&&(o=!1),null==s&&(s=!1),null==a&&(a=0),null==r&&(r=0),this.set_minFilter(t),this.set_magFilter(e),this.set_wrapModeS(n),this.set_wrapModeT(i),this.set_lodBias(r),this.set_maxAniso(a),this.ignoreSampler=s,this.centroid=o,this.mipmapGenerated=l,this.textureAlpha=u,this.__samplerDirty=!0};r.__name__=["openfl","_internal","stage3D","SamplerState"],(r.prototype={copyFrom:function(t){null==t||t.ignoreSampler||(this.set_minFilter(t.minFilter),this.set_magFilter(t.magFilter),this.set_wrapModeS(t.wrapModeS),this.set_wrapModeT(t.wrapModeT),this.set_lodBias(t.lodBias),this.set_maxAniso(t.maxAniso),this.centroid=t.centroid,this.mipmapGenerated=t.mipmapGenerated,this.textureAlpha=t.textureAlpha)},equals:function(t){return this==t?!this.__samplerDirty:null!=t&&(this.minFilter==t.minFilter&&this.magFilter==t.magFilter&&this.wrapModeS==t.wrapModeS&&this.wrapModeT==t.wrapModeT&&this.lodBias==t.lodBias&&this.maxAniso==t.maxAniso&&this.mipmapGenerated==t.mipmapGenerated&&this.textureAlpha==t.textureAlpha)},set_lodBias:function(t){return this.lodBias!=t&&(this.__samplerDirty=!0),this.lodBias=t},set_magFilter:function(t){return this.magFilter!=t&&(this.__samplerDirty=!0),this.magFilter=t},set_maxAniso:function(t){return this.maxAniso!=t&&(this.__samplerDirty=!0),this.maxAniso=t},set_minFilter:function(t){return this.minFilter!=t&&(this.__samplerDirty=!0),this.minFilter=t},set_wrapModeS:function(t){return this.wrapModeS!=t&&(this.__samplerDirty=!0),this.wrapModeS=t},set_wrapModeT:function(t){return this.wrapModeT!=t&&(this.__samplerDirty=!0),this.wrapModeT=t}}).__class__=i["openfl._internal.stage3D.SamplerState"]=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(6)}function a(){return n(38)}function s(){return n(43)}function o(){return n(17)}var l=function(t,e){this.version=0,t.position=e;var s=t.readUTFBytes(3);if(t.position=e,"ATF"!=s)throw new(r().default)(new(a().default)("ATF signature not found"));var l=0;if(255==t.get(e+6)?(this.version=t.get(e+7),t.position=e+8,l=this.__readUInt32(t)):(this.version=0,t.position=e+3,l=this.__readUInt24(t)),n(20).default.__cast(e+l,i.Int)>o().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<<this.data.readUnsignedByte(),this.height=1<<this.data.readUnsignedByte(),this.width!=t||this.height!=e)throw new(r().default)(new(a().default)("ATF width and height dont match"));return this.mipCount=this.data.readUnsignedByte(),5==this.atfFormat},readTextures:function(t){for(var e=this.version<3?3:4,i=0,l=this.cubeMap?6:1;i<l;)for(var u=i++,_=0,f=this.mipCount;_<f;)for(var d=_++,h=0,c=e;h<c;){var p=h++,g=0==this.version?this.__readUInt24(this.data):this.__readUInt32(this.data);if(s().default.gt(this.data.position+g,o().default.get_length(this.data)))throw new(r().default)(new(a().default)("Block length exceeds ATF file length"));if(s().default.gt(g,0)){var m=n(16).default.alloc(g);this.data.readBytes(o().default.fromBytes(m),0,g),t(u,d,p,this.width>>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<u;){var _=l++;t.__samplerStates.set(_,r[_])}},m.use=function(t,e){var n=e.gl;n.useProgram(t.__programID),a().default.CheckGLError(),t.__vertexUniformMap.markAllDirty(),t.__fragmentUniformMap.markAllDirty();for(var i=t.__samplerUniforms.iterator();i.hasNext();){var r=i.next();if(1!=r.regCount)throw new(o().default)(new(l().default)("!!! TODO: uniform location on webgl"));n.uniform1i(r.location,r.regIndex),a().default.CheckGLError()}for(var s=t.__alphaSamplerUniforms.iterator();s.hasNext();){var u=s.next();if(1!=u.regCount)throw new(o().default)(new(l().default)("!!! TODO: uniform location on webgl"));n.uniform1i(u.location,u.regIndex),a().default.CheckGLError()}},m.__buildUniformList=function(){var t=m.renderSession.gl;m.program.__uniforms.clear(),m.program.__samplerUniforms.clear(),m.program.__alphaSamplerUniforms.clear(),m.program.__alphaSamplerEnabled=[],m.program.__samplerUsageMask=0;var e;e=t.getProgramParameter(m.program.__programID,t.ACTIVE_UNIFORMS),a().default.CheckGLError();for(var i=new(u().default),r=new(u().default),s=0,o=e;s<o;){var l=s++,g=t.getActiveUniform(m.program.__programID,l),v=g.name,w=g.size,y=g.type;a().default.CheckGLError();var b=new(n(407).default)(t);b.name=v,b.size=w,b.type=y,b.location=t.getUniformLocation(m.program.__programID,b.name),a().default.CheckGLError();var x=b.name.indexOf("[");switch(x>=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<T;){var A=E++;m.program.__samplerUsageMask|=1<<b.regIndex+A}}else if(_().default.startsWith(b.name,"sampler")&&_().default.endsWith(b.name,"_alpha")){var R=b.name.indexOf("_")-7;b.regIndex=f().default.parseInt(b.name.substring(7,7+R))+4,m.program.__alphaSamplerUniforms.add(b)}else _().default.startsWith(b.name,"sampler")&&_().default.endsWith(b.name,"_alphaEnabled")&&(b.regIndex=f().default.parseInt(b.name.substring(7)),m.program.__alphaSamplerEnabled[b.regIndex]=b);5==d().default.level&&h().default.trace(l+" name:"+b.name+" type:"+b.type+" size:"+b.size+" location:"+f().default.string(b.location),{fileName:"GLProgram3D.hx",lineNumber:253,className:"openfl._internal.stage3D.opengl.GLProgram3D",methodName:"__buildUniformList"})}var S=c().default.array(i);m.program.__vertexUniformMap=new(p().default)(S);var M=c().default.array(r);m.program.__fragmentUniformMap=new(p().default)(M)},m.__deleteShaders=function(){var t=m.renderSession.gl;null!=m.program.__programID&&(m.program.__programID=null),null!=m.program.__vertexShaderID&&(t.deleteShader(m.program.__vertexShaderID),a().default.CheckGLError(),m.program.__vertexShaderID=null),null!=m.program.__fragmentShaderID&&(t.deleteShader(m.program.__fragmentShaderID),a().default.CheckGLError(),m.program.__fragmentShaderID=null)},m.__getUniformRegisters=function(t,e,n){return t.regData.subarray(e,e+n)},m.__uploadFromGLSL=function(t,e){var n=m.renderSession.gl;m.__deleteShaders(),5==d().default.level&&(d().default.info(t,{fileName:"GLProgram3D.hx",lineNumber:328,className:"openfl._internal.stage3D.opengl.GLProgram3D",methodName:"__uploadFromGLSL"}),d().default.info(e,{fileName:"GLProgram3D.hx",lineNumber:329,className:"openfl._internal.stage3D.opengl.GLProgram3D",methodName:"__uploadFromGLSL"})),m.program.__vertexSource=t,m.program.__fragmentSource=e,m.program.__vertexShaderID=n.createShader(n.VERTEX_SHADER),n.shaderSource(m.program.__vertexShaderID,t),a().default.CheckGLError(),n.compileShader(m.program.__vertexShaderID),a().default.CheckGLError();var i=n.getShaderParameter(m.program.__vertexShaderID,n.COMPILE_STATUS);if(a().default.CheckGLError(),0==i){var r=n.getShaderInfoLog(m.program.__vertexShaderID);throw null!=r&&0!=r.length&&h().default.trace("vertex: "+r,{fileName:"GLProgram3D.hx",lineNumber:353,className:"openfl._internal.stage3D.opengl.GLProgram3D",methodName:"__uploadFromGLSL"}),new(o().default)(new(g().default)("Error compiling vertex shader: "+r))}if(m.program.__fragmentShaderID=n.createShader(n.FRAGMENT_SHADER),n.shaderSource(m.program.__fragmentShaderID,e),a().default.CheckGLError(),n.compileShader(m.program.__fragmentShaderID),a().default.CheckGLError(),0==n.getShaderParameter(m.program.__fragmentShaderID,n.COMPILE_STATUS)){var s=n.getShaderInfoLog(m.program.__fragmentShaderID);throw null!=s&&0!=s.length&&h().default.trace("fragment: "+s,{fileName:"GLProgram3D.hx",lineNumber:376,className:"openfl._internal.stage3D.opengl.GLProgram3D",methodName:"__uploadFromGLSL"}),new(o().default)(new(g().default)("Error compiling fragment shader: "+s))}m.program.__programID=n.createProgram(),n.attachShader(m.program.__programID,m.program.__vertexShaderID),a().default.CheckGLError(),n.attachShader(m.program.__programID,m.program.__fragmentShaderID),a().default.CheckGLError();for(var l=0;l<16;){var u=l++,f="va"+u;-1!=t.indexOf(" "+f)&&n.bindAttribLocation(m.program.__programID,u,f)}n.linkProgram(m.program.__programID);var c=n.getProgramInfoLog(m.program.__programID);null!=c&&0!=c.length&&""!=_().default.trim(c)&&h().default.trace("program: "+c,{fileName:"GLProgram3D.hx",lineNumber:409,className:"openfl._internal.stage3D.opengl.GLProgram3D",methodName:"__uploadFromGLSL"}),m.__buildUniformList()},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(15).default,r=n(1).default["openfl._internal.stage3D._AGALConverter.RegisterUsage"]={__ename__:["openfl","_internal","stage3D","_AGALConverter","RegisterUsage"],__constructs__:["UNUSED","VECTOR_4","MATRIX_4_4","SAMPLER_2D","SAMPLER_2D_ALPHA","SAMPLER_CUBE","SAMPLER_CUBE_ALPHA","VECTOR_4_ARRAY"]};r.SAMPLER_2D=["SAMPLER_2D",3],r.SAMPLER_2D.toString=i,r.SAMPLER_2D.__enum__=r,r.SAMPLER_CUBE_ALPHA=["SAMPLER_CUBE_ALPHA",6],r.SAMPLER_CUBE_ALPHA.toString=i,r.SAMPLER_CUBE_ALPHA.__enum__=r,r.SAMPLER_CUBE=["SAMPLER_CUBE",5],r.SAMPLER_CUBE.toString=i,r.SAMPLER_CUBE.__enum__=r,r.UNUSED=["UNUSED",0],r.UNUSED.toString=i,r.UNUSED.__enum__=r,r.VECTOR_4=["VECTOR_4",1],r.VECTOR_4.toString=i,r.VECTOR_4.__enum__=r,r.SAMPLER_2D_ALPHA=["SAMPLER_2D_ALPHA",4],r.SAMPLER_2D_ALPHA.toString=i,r.SAMPLER_2D_ALPHA.__enum__=r,r.MATRIX_4_4=["MATRIX_4_4",2],r.MATRIX_4_4.toString=i,r.MATRIX_4_4.__enum__=r,r.VECTOR_4_ARRAY=["VECTOR_4_ARRAY",7],r.VECTOR_4_ARRAY.toString=i,r.VECTOR_4_ARRAY.__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(410)}var a=function(t,e,n,i){this.__context=t,this.__numVertices=e,this.__vertexSize=n,r().default.create(this,this.__context.__renderSession,i)};a.__name__=["openfl","display3D","VertexBuffer3D"],(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.VertexBuffer3D"]=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=(n(2).default,n(3).default);function a(){return n(60)}var s=function(t,e,n,i){null==n&&(n=!0),null==e&&(e=!0),a().default.call(this,t,e,n),this.error=i};s.__name__=["openfl","events","UncaughtErrorEvent"],s.__super__=a().default,(s.prototype=r(a().default.prototype,{clone:function(){var t=new s(this.type,this.bubbles,this.cancelable,this.error);return t.target=this.target,t.currentTarget=this.currentTarget,t.eventPhase=this.eventPhase,t},toString:function(){return this.__formatToString("UncaughtErrorEvent",["type","bubbles","cancelable","error"])}})).__class__=i["openfl.events.UncaughtErrorEvent"]=s,s.UNCAUGHT_ERROR="uncaughtError",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","ui","Keyboard"],(r.prototype={}).__class__=i["openfl.ui.Keyboard"]=r,r.isAccessible=function(){return!1},r.__convertKeyCode=function(t){switch(t){case 8:return 8;case 9:return 9;case 13:return 13;case 27:return 27;case 32:return 32;case 33:return 49;case 34:return 222;case 35:return 51;case 36:return 52;case 37:return 53;case 38:return 55;case 39:return 222;case 40:return 57;case 41:return 48;case 42:return 56;case 44:return 188;case 45:return 189;case 46:return 190;case 47:return 191;case 48:return 48;case 49:return 49;case 50:return 50;case 51:return 51;case 52:return 52;case 53:return 53;case 54:return 54;case 55:return 55;case 56:return 56;case 57:return 57;case 58:case 59:return 186;case 60:return 60;case 61:return 187;case 62:return 190;case 63:return 191;case 64:return 50;case 91:return 219;case 92:return 220;case 93:return 221;case 94:return 54;case 95:return 189;case 96:return 192;case 97:return 65;case 98:return 66;case 99:return 67;case 100:return 68;case 101:return 69;case 102:return 70;case 103:return 71;case 104:return 72;case 105:return 73;case 106:return 74;case 107:return 75;case 108:return 76;case 109:return 77;case 110:return 78;case 111:return 79;case 112:return 80;case 113:return 81;case 114:return 82;case 115:return 83;case 116:return 84;case 117:return 85;case 118:return 86;case 119:return 87;case 120:return 88;case 121:return 89;case 122:return 90;case 127:return 46;case 1073741881:return 20;case 1073741882:return 112;case 1073741883:return 113;case 1073741884:return 114;case 1073741885:return 115;case 1073741886:return 116;case 1073741887:return 117;case 1073741888:return 118;case 1073741889:return 119;case 1073741890:return 120;case 1073741891:return 121;case 1073741892:return 122;case 1073741893:return 123;case 1073741894:return 301;case 1073741895:return 145;case 1073741896:return 19;case 1073741897:return 45;case 1073741898:return 36;case 1073741899:return 33;case 1073741901:return 35;case 1073741902:return 34;case 1073741903:return 39;case 1073741904:return 37;case 1073741905:return 40;case 1073741906:return 38;case 1073741907:return 144;case 1073741908:return 111;case 1073741909:return 106;case 1073741910:return 109;case 1073741911:return 107;case 1073741912:return 108;case 1073741913:return 97;case 1073741914:return 98;case 1073741915:return 99;case 1073741916:return 100;case 1073741917:return 101;case 1073741918:return 102;case 1073741919:return 103;case 1073741920:return 104;case 1073741921:return 105;case 1073741922:return 96;case 1073741923:return 110;case 1073741925:return 302;case 1073741928:return 124;case 1073741929:return 125;case 1073741930:return 126;case 1073741982:return 13;case 1073742044:return 110;case 1073742048:return 17;case 1073742049:return 16;case 1073742050:return 18;case 1073742051:return 15;case 1073742052:return 17;case 1073742053:return 16;case 1073742054:return 18;case 1073742055:return 15;default:return t}},r.__getCharCode=function(t,e){if(null==e&&(e=!1),e){switch(t){case 48:return 41;case 49:return 33;case 50:return 64;case 51:return 35;case 52:return 36;case 53:return 37;case 54:return 94;case 55:return 38;case 56:return 42;case 57:return 40;case 186:return 58;case 187:return 43;case 188:return 60;case 189:return 95;case 190:return 62;case 191:return 63;case 192:return 126;case 219:return 123;case 220:return 124;case 221:return 125;case 222:return 34}if(t>=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<e.length;){var n=e[t];++t,n.backend.element.style.cursor="none"}}},a.show=function(){if(a.__hidden){a.__hidden=!1;var t=a.__cursor;a.__cursor=null,a.set_cursor(t)}},a.warp=function(t,e,n){},a.get_cursor=function(){return null==a.__cursor?n(76).default.DEFAULT:a.__cursor},a.set_cursor=function(t){if(a.__cursor!=t){if(!a.__hidden)for(var e=0,i=r().default.current.get_windows();e<i.length;){var s,o=i[e];switch(++e,n(10).default.enumIndex(t)){case 0:s="default";break;case 1:s="crosshair";break;case 3:s="move";break;case 4:s="pointer";break;case 5:s="nesw-resize";break;case 6:s="ns-resize";break;case 7:s="nwse-resize";break;case 8:s="ew-resize";break;case 9:s="text";break;case 10:case 11:s="wait";break;default:s="auto"}o.backend.element.style.cursor=s}a.__cursor=t}return a.__cursor},a.get_lock=function(){return!1},a.set_lock=function(t){return 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(9)}var s=function(t,e,n,i,r,s){null==s&&(s=0),null==r&&(r=!1),null==n&&(n=!1),null==e&&(e=!1),a().default.call(this,t,e,n),this.keyCode=s,this.shiftKey=r,this.relatedObject=i};s.__name__=["openfl","events","FocusEvent"],s.__super__=a().default,(s.prototype=r(a().default.prototype,{clone:function(){var t=new s(this.type,this.bubbles,this.cancelable,this.relatedObject,this.shiftKey,this.keyCode);return t.target=this.target,t.currentTarget=this.currentTarget,t.eventPhase=this.eventPhase,t},toString:function(){return this.__formatToString("FocusEvent",["type","bubbles","cancelable","relatedObject","shiftKey","keyCode"])}})).__class__=i["openfl.events.FocusEvent"]=s,s.FOCUS_IN="focusIn",s.FOCUS_OUT="focusOut",s.KEY_FOCUS_CHANGE="keyFocusChange",s.MOUSE_FOCUS_CHANGE="mouseFocusChange",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(28)}var a=function(t,e,n,i,a,s,o,l){null==l&&(l=0),null==o&&(o=0),null==s&&(s=0),null==a&&(a=1),null==i&&(i=1),null==n&&(n=0),null==e&&(e=0),null==t&&(t=0),this.__id=t,this.__matrix=new(r().default),0!=e&&this.set_x(e),0!=n&&this.set_y(n),1!=i&&this.set_scaleX(i),1!=a&&this.set_scaleY(a),0!=s&&this.set_rotation(s),this.__originX=o,this.__originY=l,this.__alpha=1,this.__visible=!0,this.__alphaDirty=!0,this.__sourceDirty=!0,this.__transformDirty=!0,this.__visibleDirty=!0};a.__name__=["openfl","display","Tile"],a.__interfaces__=[n(227).default],(a.prototype={clone:function(){var t=new a(this.__id);return t.set_matrix(this.__matrix.clone()),t.set_tileset(this.__tileset),t},__setRenderDirty:function(){null!=this.parent&&this.parent.__setRenderDirty()},__updateTileArray:function(t,e,n){var i=e.position;e.position=t,(this.__shaderDirty||n)&&(e.set_shader(this.__shader),this.__shaderDirty=!1),(this.__colorTransformDirty||n)&&(e.set_colorTransform(this.__colorTransform),this.__colorTransformDirty=!1),(this.__visibleDirty||n)&&(e.set_visible(this.__visible),e.__bufferDirty=!0,this.__visibleDirty=!1),(this.__alphaDirty||n)&&(e.set_alpha(this.__alpha),e.__bufferDirty=!0,this.__alphaDirty=!1),(this.__sourceDirty||n)&&(null==this.__rect?e.set_id(this.__id):e.set_rect(this.get_rect()),e.set_tileset(this.__tileset),e.__bufferDirty=!0,this.__sourceDirty=!0),(this.__transformDirty||n)&&(0!=this.__originX||0!=this.__originY?(a.__tempMatrix.setTo(1,0,0,1,-this.__originX,-this.__originY),a.__tempMatrix.concat(this.__matrix),e.set_matrix(a.__tempMatrix)):e.set_matrix(this.__matrix),e.__bufferDirty=!0,this.__transformDirty=!1),e.position=i},get_alpha:function(){return this.__alpha},set_alpha:function(t){return this.__alphaDirty=!0,this.__setRenderDirty(),this.__alpha=t},get_colorTransform:function(){return null==this.__colorTransform&&(this.__colorTransform=new(n(40).default)),this.__colorTransform},set_colorTransform:function(t){return null==this.__colorTransform?null!=t&&(this.__colorTransform=t.__clone()):null!=t?this.__colorTransform.__copyFrom(t):this.__colorTransform.__identity(),this.__colorTransformDirty=!0,this.__setRenderDirty(),t},get_id:function(){return this.__id},set_id:function(t){return this.__sourceDirty=!0,this.__setRenderDirty(),this.__id=t},get_matrix:function(){return this.__matrix},set_matrix:function(t){return this.__rotation=null,this.__scaleX=null,this.__scaleY=null,this.__transformDirty=!0,this.__setRenderDirty(),this.__matrix=t},get_originX:function(){return this.__originX},set_originX:function(t){return this.__transformDirty=!0,this.__setRenderDirty(),this.__originX=t},get_originY:function(){return this.__originY},set_originY:function(t){return this.__transformDirty=!0,this.__setRenderDirty(),this.__originY=t},get_rect:function(){return this.__rect},set_rect:function(t){return this.__sourceDirty=!0,this.__setRenderDirty(),this.__rect=t},get_rotation:function(){if(null==this.__rotation)if(0==this.__matrix.b&&0==this.__matrix.c)this.__rotation=0,this.__rotationSine=0,this.__rotationCosine=1;else{var t=Math.atan2(this.__matrix.d,this.__matrix.c)-Math.PI/2;this.__rotation=t*(180/Math.PI),this.__rotationSine=Math.sin(t),this.__rotationCosine=Math.cos(t)}return this.__rotation},set_rotation:function(t){if(t!=this.__rotation){this.__rotation=t;var e=t*(Math.PI/180);this.__rotationSine=Math.sin(e),this.__rotationCosine=Math.cos(e);var n=this.get_scaleX(),i=this.get_scaleY();this.__matrix.a=this.__rotationCosine*n,this.__matrix.b=this.__rotationSine*n,this.__matrix.c=-this.__rotationSine*i,this.__matrix.d=this.__rotationCosine*i,this.__transformDirty=!0,this.__setRenderDirty()}return t},get_scaleX:function(){return null==this.__scaleX&&(0==this.get_matrix().b?this.__scaleX=this.__matrix.a:this.__scaleX=Math.sqrt(this.__matrix.a*this.__matrix.a+this.__matrix.b*this.__matrix.b)),this.__scaleX},set_scaleX:function(t){if(this.__scaleX!=t){if(this.__scaleX=t,0==this.__matrix.b)this.__matrix.a=t;else{this.get_rotation();var e=this.__rotationCosine*t,n=this.__rotationSine*t;this.__matrix.a=e,this.__matrix.b=n}this.__transformDirty=!0,this.__setRenderDirty()}return t},get_scaleY:function(){return null==this.__scaleY&&(0==this.__matrix.c?this.__scaleY=this.get_matrix().d:this.__scaleY=Math.sqrt(this.__matrix.c*this.__matrix.c+this.__matrix.d*this.__matrix.d)),this.__scaleY},set_scaleY:function(t){if(this.__scaleY!=t){if(this.__scaleY=t,0==this.__matrix.c)this.__matrix.d=t;else{this.get_rotation();var e=-this.__rotationSine*t,n=this.__rotationCosine*t;this.__matrix.c=e,this.__matrix.d=n}this.__transformDirty=!0,this.__setRenderDirty()}return t},get_shader:function(){return this.__shader},set_shader:function(t){return this.__shaderDirty=!0,this.__setRenderDirty(),this.__shader=t},get_tileset:function(){return this.__tileset},set_tileset:function(t){return this.__sourceDirty=!0,this.__setRenderDirty(),this.__tileset=t},get_visible:function(){return this.__visible},set_visible:function(t){return this.__visibleDirty=!0,this.__setRenderDirty(),this.__visible=t},get_x:function(){return this.__matrix.tx},set_x:function(t){return this.__transformDirty=!0,this.__setRenderDirty(),this.__matrix.tx=t},get_y:function(){return this.__matrix.ty},set_y:function(t){return this.__transformDirty=!0,this.__setRenderDirty(),this.__matrix.ty=t}}).__class__=i["openfl.display.Tile"]=a,Object.defineProperties(a.prototype,{alpha:{get:function(){return this.get_alpha()},set:function(t){return this.set_alpha(t)}},colorTransform:{get:function(){return this.get_colorTransform()},set:function(t){return this.set_colorTransform(t)}},id:{get:function(){return this.get_id()},set:function(t){return this.set_id(t)}},matrix:{get:function(){return this.get_matrix()},set:function(t){return this.set_matrix(t)}},originX:{get:function(){return this.get_originX()},set:function(t){return this.set_originX(t)}},originY:{get:function(){return this.get_originY()},set:function(t){return this.set_originY(t)}},rect:{get:function(){return this.get_rect()},set:function(t){return this.set_rect(t)}},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)}},shader:{get:function(){return this.get_shader()},set:function(t){return this.set_shader(t)}},tileset:{get:function(){return this.get_tileset()},set:function(t){return this.set_tileset(t)}},visible:{get:function(){return this.get_visible()},set:function(t){return this.set_visible(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)}}}),a.__fromTileArray=function(t,e){var n=e.position;e.position=t;var i=new a;return i.set_alpha(e.get_alpha()),i.set_id(e.get_id()),e.set_matrix(i.get_matrix()),e.position=n,i},a.__tempMatrix=new(r().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(1).default,r=function(){};r.__name__=["openfl","display","ITile"],(r.prototype={}).__class__=i["openfl.display.ITile"]=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(21)}var a=function(t){null==t&&(t=0),this.__cacheAlpha=-1,this.__data=r().default._new(21*t),this.__dirty=r().default._new(5*t),this.__shaders=r().default._new(t),this.__tilesets=r().default._new(t),this.__visible=r().default._new(t),this.__length=t};a.__name__=["openfl","display","TileArray"],a.__interfaces__=[n(227).default],(a.prototype={iterator:function(){return new(n(426).default)(this)},__init:function(t){this.position=t,this.set_alpha(1),this.set_colorTransform(null),this.set_id(0),this.set_matrix(null),this.set_tileset(null),this.set_visible(!0),this.__dirty.set(4+5*t,!0)},__updateGLBuffer:function(t,e,i,a){var s,o=this,l=150*this.__length;if(null==this.__bufferData)s=null!=l?new Float32Array(l):null,this.__bufferData=s,this.__bufferSkipped=r().default._new(this.__length),this.__bufferDirty=!0;else if(this.__bufferData.length!=l){var u=null!=l?new Float32Array(l):null;if(this.__bufferData.length<=u.length)if(u.set(this.__bufferData),0==this.__bufferData.length)this.__bufferDirty=!0;else for(var _=this.__bufferData.length,f=l;_<f;){_++;this.__dirty.set(4+5*this.position,!0)}else u.set(this.__bufferData.subarray(0,u.length));this.__bufferData=u,this.__bufferSkipped.set_length(this.__length),this.__bufferDirty=!0}if(null!=this.__buffer&&this.__bufferContext==t||(this.__bufferContext=t,this.__buffer=t.createBuffer()),t.bindBuffer(t.ARRAY_BUFFER,this.__buffer),this.__bufferDirty||this.__cacheAlpha!=i||this.__cacheDefaultTileset!=e){var d,h,c,p,g,m,v,w,y,b,x,E,T,A,R,S,M,I,D,C,L,O,P,F,B,N,k,U,G,j,V=null,X=0;this.position=0;for(var W=function(t,e){for(var n=0;n<6;){var i=n++;o.__bufferData[e+25*i+4]=0}o.__bufferSkipped.set(t,!0)},H=0,z=this.__length;H<z;){var Y=H++;if(this.position=Y,X=150*Y,c=this.get_alpha(),!this.get_visible()||c<=0)W(Y,X);else if(null==(p=this.get_tileset())&&(p=e),null!=p){if((m=this.get_id())>-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;n<i;){var r=n++;this.__init(r)}this.position=e}return this.__length=t,t},get_matrix:function(){null==this.__matrix&&(this.__matrix=new(n(28).default));var t=5+21*this.position,e=this.__data.get(t);this.__matrix.a=e;var i=this.__data.get(t+1);this.__matrix.b=i;var r=this.__data.get(t+2);this.__matrix.c=r;var a=this.__data.get(t+3);this.__matrix.d=a;var s=this.__data.get(t+4);this.__matrix.tx=s;var o=this.__data.get(t+5);return this.__matrix.ty=o,this.__matrix},set_matrix:function(t){var e=5+21*this.position;return null!=t?(this.__data.set(e,t.a),this.__data.set(e+1,t.b),this.__data.set(e+2,t.c),this.__data.set(e+3,t.d),this.__data.set(e+4,t.tx),this.__data.set(e+5,t.ty)):(this.__data.set(e,1),this.__data.set(e+1,0),this.__data.set(e+2,0),this.__data.set(e+3,1),this.__data.set(e+4,0),this.__data.set(e+5,0)),this.__dirty.set(1+5*this.position,!0),t},get_rect:function(){null==this.__rect&&(this.__rect=new(n(14).default));var t=1+21*this.position,e=this.__data.get(t);this.__rect.x=e;var i=this.__data.get(t+1);this.__rect.y=i;var r=this.__data.get(t+2);this.__rect.width=r;var a=this.__data.get(t+3);return this.__rect.height=a,this.__rect},set_rect:function(t){if(null!=t){this.__data.set(21*this.position,-1);var e=1+21*this.position;this.__data.set(e,t.x),this.__data.set(e+1,t.y),this.__data.set(e+2,t.width),this.__data.set(e+3,t.height)}else{var n=1+21*this.position;this.__data.set(n,0),this.__data.set(n+1,0),this.__data.set(n+2,0),this.__data.set(n+3,0)}return this.__dirty.set(5*this.position,!0),t},get_shader:function(){return this.__shaders.get(this.position)},set_shader:function(t){return this.__shaders.set(this.position,t),t},get_tileset:function(){return this.__tilesets.get(this.position)},set_tileset:function(t){return this.__tilesets.set(this.position,t),t},get_visible:function(){return this.__visible.get(this.position)},set_visible:function(t){return this.__visible.set(this.position,t),t}}).__class__=i["openfl.display.TileArray"]=a,Object.defineProperties(a.prototype,{alpha:{get:function(){return this.get_alpha()},set:function(t){return this.set_alpha(t)}},colorTransform:{get:function(){return this.get_colorTransform()},set:function(t){return this.set_colorTransform(t)}},id:{get:function(){return this.get_id()},set:function(t){return this.set_id(t)}},length:{get:function(){return this.get_length()},set:function(t){return this.set_length(t)}},matrix:{get:function(){return this.get_matrix()},set:function(t){return this.set_matrix(t)}},rect:{get:function(){return this.get_rect()},set:function(t){return this.set_rect(t)}},shader:{get:function(){return this.get_shader()},set:function(t){return this.set_shader(t)}},tileset:{get:function(){return this.get_tileset()},set:function(t){return this.set_tileset(t)}},visible:{get:function(){return this.get_visible()},set:function(t){return this.set_visible(t)}}}),a.ID_INDEX=0,a.RECT_INDEX=1,a.MATRIX_INDEX=5,a.ALPHA_INDEX=11,a.COLOR_TRANSFORM_INDEX=12,a.DATA_LENGTH=21,a.SOURCE_DIRTY_INDEX=0,a.MATRIX_DIRTY_INDEX=1,a.ALPHA_DIRTY_INDEX=2,a.COLOR_TRANSFORM_DIRTY_INDEX=3,a.ALL_DIRTY_INDEX=4,a.DIRTY_LENGTH=5,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(4)}var s=function(){};s.__name__=["openfl","_internal","renderer","canvas","CanvasTilemap"],(s.prototype={}).__class__=i["openfl._internal.renderer.canvas.CanvasTilemap"]=s,s.render=function(t,e){if(t.__renderable&&!(t.__worldAlpha<=0)&&(t.__updateTileArray(),null!=t.__tileArray&&0!=t.__tileArray.get_length())){var i=e.context;e.blendModeManager.setBlendMode(t.__worldBlendMode),e.maskManager.pushObject(t);var s=r().default.__pool.get();s.setTo(0,0,t.__width,t.__height),e.maskManager.pushRect(s,t.__renderTransform);var o=t.__renderTransform,l=e.roundPixels;e.allowSmoothing&&t.smoothing||(i.mozImageSmoothingEnabled=!1,i.msImageSmoothingEnabled=!1,i.imageSmoothingEnabled=!1);for(var u,_,f,d,h,c,p=t.__tileset,g=null,m=null,v=t.__tileArray,w=r().default.__pool.get(),y=v.iterator();y.hasNext();){var b=y.next();if(u=b.get_alpha(),b.get_visible()&&!(u<=0)&&(null==(_=b.get_tileset())&&(_=p),null!=_)){if(-1==(f=b.get_id())){if(w.copyFrom(b.get_rect()),w.width<=0||w.height<=0)continue}else{if(null==(d=_.__data[f]))continue;w.setTo(d.x,d.y,d.width,d.height)}null!=(h=_.get_bitmapData())&&h.readable&&(h!=g&&(null==h.image.buffer.__srcImage&&n(32).default.convertToCanvas(h.image),m=h.image.get_src(),g=h),i.globalAlpha=t.__worldAlpha*u,(c=b.get_matrix()).concat(o),l?i.setTransform(c.a,c.b,c.c,c.d,a().default.int(c.tx),a().default.int(c.ty)):i.setTransform(c.a,c.b,c.c,c.d,c.tx,c.ty),i.drawImage(m,w.x,w.y,w.width,w.height,0,0,w.width,w.height))}}e.allowSmoothing&&t.smoothing||(i.mozImageSmoothingEnabled=!0,i.msImageSmoothingEnabled=!0,i.imageSmoothingEnabled=!0),e.maskManager.popRect(),e.maskManager.popObject(t),r().default.__pool.release(s),r().default.__pool.release(w)}},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(30)}var s=function(t){null==t&&(t=""),a().default.call(this,t,0),this.name="SecurityError"};s.__name__=["openfl","errors","SecurityError"],s.__super__=a().default,(s.prototype=r(a().default.prototype,{})).__class__=i["openfl.errors.SecurityError"]=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(9)}var s=function(t,e,n,i,r,s,o){null==o&&(o=0),null==s&&(s=0),null==r&&(r=0),null==i&&(i=0),null==n&&(n=!1),null==e&&(e=!1),a().default.call(this,t,e,n),this.timestamp=i,this.accelerationX=r,this.accelerationY=s,this.accelerationZ=o};s.__name__=["openfl","events","AccelerometerEvent"],s.__super__=a().default,(s.prototype=r(a().default.prototype,{clone:function(){var t=new s(this.type,this.bubbles,this.cancelable,this.timestamp,this.accelerationX,this.accelerationY,this.accelerationZ);return t.target=this.target,t.currentTarget=this.currentTarget,t.eventPhase=this.eventPhase,t},toString:function(){return this.__formatToString("AccelerometerEvent",["type","bubbles","cancelable","timestamp","accelerationX","accelerationY","accelerationZ"])}})).__class__=i["openfl.events.AccelerometerEvent"]=s,s.UPDATE="update",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(77)}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.data=i};s.__name__=["openfl","events","DataEvent"],s.__super__=a().default,(s.prototype=r(a().default.prototype,{clone:function(){var t=new s(this.type,this.bubbles,this.cancelable,this.data);return t.target=this.target,t.currentTarget=this.currentTarget,t.eventPhase=this.eventPhase,t},toString:function(){return this.__formatToString("DataEvent",["type","bubbles","cancelable","data"])}})).__class__=i["openfl.events.DataEvent"]=s,s.DATA="data",s.UPLOAD_COMPLETE_DATA="uploadCompleteData",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(9)}var s=function(t,e,n){null==n&&(n=!1),null==e&&(e=!1),a().default.call(this,t,e,n)};s.__name__=["openfl","events","TimerEvent"],s.__super__=a().default,(s.prototype=r(a().default.prototype,{clone:function(){var t=new s(this.type,this.bubbles,this.cancelable);return t.target=this.target,t.currentTarget=this.currentTarget,t.eventPhase=this.eventPhase,t},toString:function(){return this.__formatToString("TimerEvent",["type","bubbles","cancelable"])},updateAfterEvent:function(){}})).__class__=i["openfl.events.TimerEvent"]=s,s.TIMER="timer",s.TIMER_COMPLETE="timerComplete",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),a=n(3).default;function s(){return n(13)}function o(){return n(536)}function l(){return n(80)}function u(){return n(4)}function _(){return n(45)}function f(){return n(9)}var d=function(){s().default.call(this)};d.__name__=["openfl","net","FileReference"],d.__super__=s().default,(d.prototype=a(s().default.prototype,{browse:function(t){return this.__data=null,this.__path=null,!1},cancel:function(){null!=this.__urlLoader&&this.__urlLoader.close()},download:function(t,e){this.__data=null,this.__path=null,this.__urlLoader=new(n(79).default),this.__urlLoader.addEventListener("complete",r(this,this.urlLoader_onComplete)),this.__urlLoader.addEventListener("ioError",r(this,this.urlLoader_onIOError)),this.__urlLoader.addEventListener("progress",r(this,this.urlLoader_onProgress)),this.__urlLoader.load(t);var i=new(o().default);i.onCancel.add(r(this,this.saveFileDialog_onCancel)),i.onSelect.add(r(this,this.saveFileDialog_onSelect)),i.browse(n(235).default.SAVE,null!=e?l().default.extension(e):null,e)},load:function(){},save:function(t,e){if(this.__data=null,this.__path=null,null!=t){if(u().default.is(t,_().default))this.__data=t;else{var i=new(_().default)(0);this.__data=i,this.__data.writeUTFBytes(u().default.string(t))}var a=new(o().default);a.onCancel.add(r(this,this.saveFileDialog_onCancel)),a.onSave.add(r(this,this.saveFileDialog_onSave)),a.save(n(17).default.toBytes(this.__data),null!=e?l().default.extension(e):null,e)}},upload:function(t,e,i){null==i&&(i=!1),null==e&&(e="Filedata"),n(34).default.notImplemented({fileName:"FileReference.hx",lineNumber:177,className:"openfl.net.FileReference",methodName:"upload"})},openFileDialog_onCancel:function(){this.dispatchEvent(new(f().default)("cancel"))},openFileDialog_onComplete:function(){this.dispatchEvent(new(f().default)("complete"))},openFileDialog_onSelect:function(t){this.name=l().default.withoutDirectory(t),this.__path=t,this.dispatchEvent(new(f().default)("select"))},saveFileDialog_onCancel:function(){this.dispatchEvent(new(f().default)("cancel"))},saveFileDialog_onSave:function(t){var e=this;n(26).default.delay(function(){e.dispatchEvent(new(f().default)("complete"))},1)},saveFileDialog_onSelect:function(t){this.dispatchEvent(new(f().default)("select"))},urlLoader_onComplete:function(t){this.dispatchEvent(t)},urlLoader_onIOError:function(t){this.dispatchEvent(t)},urlLoader_onProgress:function(t){this.dispatchEvent(t)}})).__class__=i["openfl.net.FileReference"]=d,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(15).default,r=n(1).default["lime.ui.FileDialogType"]={__ename__:["lime","ui","FileDialogType"],__constructs__:["OPEN","OPEN_MULTIPLE","SAVE","OPEN_DIRECTORY"]};r.SAVE=["SAVE",2],r.SAVE.toString=i,r.SAVE.__enum__=r,r.OPEN_MULTIPLE=["OPEN_MULTIPLE",1],r.OPEN_MULTIPLE.toString=i,r.OPEN_MULTIPLE.__enum__=r,r.OPEN_DIRECTORY=["OPEN_DIRECTORY",3],r.OPEN_DIRECTORY.toString=i,r.OPEN_DIRECTORY.__enum__=r,r.OPEN=["OPEN",0],r.OPEN.toString=i,r.OPEN.__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(8).default),a=n(3).default;function s(){return n(13)}function o(){return n(6)}function l(){return n(45)}function u(){return n(34)}function _(){return n(124)}function f(){return n(17)}function d(){return n(9)}function h(){return n(43)}var c=function(t,e){null==e&&(e=0),s().default.call(this),this.set_endian("bigEndian"),this.timeout=2e4,this.__buffer=n(16).default.alloc(4096),e>0&&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;i<r;){var a=i++;if(n>this.__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<n.length;){var i=n[e];if(++e,r().default.compareMethods(i,t))return!0}return!1},remove:function(t){for(var e=this.__listeners.length;--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<e.length&&(e[i](t),n[i]?++i:this.remove(e[i]),!this.canceled););}}).__class__=i["lime.app._Event_lime_ui_Joystick_Void"]=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(5)}var a=function(){this.canceled=!1,this.__listeners=[],this.__priorities=[],this.__repeat=[]};a.__name__=["lime","app","_Event_Int_Float_Float_Void"],(a.prototype={add:function(t,e,n){null==n&&(n=0),null==e&&(e=!1);for(var i=0,r=this.__priorities.length;i<r;){var a=i++;if(n>this.__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<n.length;){var i=n[e];if(++e,r().default.compareMethods(i,t))return!0}return!1},remove:function(t){for(var e=this.__listeners.length;--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;a<i.length&&(i[a](t,e,n),r[a]?++a:this.remove(i[a]),!this.canceled););}}).__class__=i["lime.app._Event_Int_Float_Float_Void"]=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(5)}var a=function(){this.canceled=!1,this.__listeners=[],this.__priorities=[],this.__repeat=[]};a.__name__=["lime","app","_Event_Int_lime_ui_JoystickHatPosition_Void"],(a.prototype={add:function(t,e,n){null==n&&(n=0),null==e&&(e=!1);for(var i=0,r=this.__priorities.length;i<r;){var a=i++;if(n>this.__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<n.length;){var i=n[e];if(++e,r().default.compareMethods(i,t))return!0}return!1},remove:function(t){for(var e=this.__listeners.length;--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;r<n.length&&(n[r](t,e),i[r]?++r:this.remove(n[r]),!this.canceled););}}).__class__=i["lime.app._Event_Int_lime_ui_JoystickHatPosition_Void"]=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(5)}var a=function(){this.canceled=!1,this.__listeners=[],this.__priorities=[],this.__repeat=[]};a.__name__=["lime","app","_Event_Int_Float_Void"],(a.prototype={add:function(t,e,n){null==n&&(n=0),null==e&&(e=!1);for(var i=0,r=this.__priorities.length;i<r;){var a=i++;if(n>this.__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<n.length;){var i=n[e];if(++e,r().default.compareMethods(i,t))return!0}return!1},remove:function(t){for(var e=this.__listeners.length;--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;r<n.length&&(n[r](t,e),i[r]?++r:this.remove(n[r]),!this.canceled););}}).__class__=i["lime.app._Event_Int_Float_Void"]=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(5)}var a=function(){this.canceled=!1,this.__listeners=[],this.__priorities=[],this.__repeat=[]};a.__name__=["lime","app","_Event_lime_ui_Gamepad_Void"],(a.prototype={add:function(t,e,n){null==n&&(n=0),null==e&&(e=!1);for(var i=0,r=this.__priorities.length;i<r;){var a=i++;if(n>this.__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<n.length;){var i=n[e];if(++e,r().default.compareMethods(i,t))return!0}return!1},remove:function(t){for(var e=this.__listeners.length;--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<e.length&&(e[i](t),n[i]?++i:this.remove(e[i]),!this.canceled););}}).__class__=i["lime.app._Event_lime_ui_Gamepad_Void"]=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(5)}var a=function(){this.canceled=!1,this.__listeners=[],this.__priorities=[],this.__repeat=[]};a.__name__=["lime","app","_Event_lime_ui_GamepadButton_Void"],(a.prototype={add:function(t,e,n){null==n&&(n=0),null==e&&(e=!1);for(var i=0,r=this.__priorities.length;i<r;){var a=i++;if(n>this.__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<n.length;){var i=n[e];if(++e,r().default.compareMethods(i,t))return!0}return!1},remove:function(t){for(var e=this.__listeners.length;--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<e.length&&(e[i](t),n[i]?++i:this.remove(e[i]),!this.canceled););}}).__class__=i["lime.app._Event_lime_ui_GamepadButton_Void"]=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(5)}var a=function(){this.canceled=!1,this.__listeners=[],this.__priorities=[],this.__repeat=[]};a.__name__=["lime","app","_Event_lime_ui_GamepadAxis_Float_Void"],(a.prototype={add:function(t,e,n){null==n&&(n=0),null==e&&(e=!1);for(var i=0,r=this.__priorities.length;i<r;){var a=i++;if(n>this.__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<n.length;){var i=n[e];if(++e,r().default.compareMethods(i,t))return!0}return!1},remove:function(t){for(var e=this.__listeners.length;--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;r<n.length&&(n[r](t,e),i[r]?++r:this.remove(n[r]),!this.canceled););}}).__class__=i["lime.app._Event_lime_ui_GamepadAxis_Float_Void"]=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(5)}var a=function(){this.canceled=!1,this.__listeners=[],this.__priorities=[],this.__repeat=[]};a.__name__=["lime","app","_Event_lime_ui_Touch_Void"],(a.prototype={add:function(t,e,n){null==n&&(n=0),null==e&&(e=!1);for(var i=0,r=this.__priorities.length;i<r;){var a=i++;if(n>this.__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<n.length;){var i=n[e];if(++e,r().default.compareMethods(i,t))return!0}return!1},remove:function(t){for(var e=this.__listeners.length;--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<e.length&&(e[i](t),n[i]?++i:this.remove(e[i]),!this.canceled););}}).__class__=i["lime.app._Event_lime_ui_Touch_Void"]=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(5)}var a=function(){this.canceled=!1,this.__listeners=[],this.__priorities=[],this.__repeat=[]};a.__name__=["lime","app","_Event_String_Int_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;i<r;){var a=i++;if(n>this.__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<n.length;){var i=n[e];if(++e,r().default.compareMethods(i,t))return!0}return!1},remove:function(t){for(var e=this.__listeners.length;--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;a<i.length&&(i[a](t,e,n),r[a]?++a:this.remove(i[a]),!this.canceled););}}).__class__=i["lime.app._Event_String_Int_Int_Void"]=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(5)}var a=function(){this.canceled=!1,this.__listeners=[],this.__priorities=[],this.__repeat=[]};a.__name__=["lime","app","_Event_Float_Float_Void"],(a.prototype={add:function(t,e,n){null==n&&(n=0),null==e&&(e=!1);for(var i=0,r=this.__priorities.length;i<r;){var a=i++;if(n>this.__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<n.length;){var i=n[e];if(++e,r().default.compareMethods(i,t))return!0}return!1},remove:function(t){for(var e=this.__listeners.length;--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;r<n.length&&(n[r](t,e),i[r]?++r:this.remove(n[r]),!this.canceled););}}).__class__=i["lime.app._Event_Float_Float_Void"]=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(5)}var a=function(){this.canceled=!1,this.__listeners=[],this.__priorities=[],this.__repeat=[]};a.__name__=["lime","app","_Event_Float_Float_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;i<r;){var a=i++;if(n>this.__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<n.length;){var i=n[e];if(++e,r().default.compareMethods(i,t))return!0}return!1},remove:function(t){for(var e=this.__listeners.length;--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;a<i.length&&(i[a](t,e,n),r[a]?++a:this.remove(i[a]),!this.canceled););}}).__class__=i["lime.app._Event_Float_Float_Int_Void"]=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(5)}var a=function(){this.canceled=!1,this.__listeners=[],this.__priorities=[],this.__repeat=[]};a.__name__=["lime","app","_Event_lime_ui_KeyCode_lime_ui_KeyModifier_Void"],(a.prototype={add:function(t,e,n){null==n&&(n=0),null==e&&(e=!1);for(var i=0,r=this.__priorities.length;i<r;){var a=i++;if(n>this.__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<n.length;){var i=n[e];if(++e,r().default.compareMethods(i,t))return!0}return!1},remove:function(t){for(var e=this.__listeners.length;--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;r<n.length&&(n[r](t,e),i[r]?++r:this.remove(n[r]),!this.canceled););}}).__class__=i["lime.app._Event_lime_ui_KeyCode_lime_ui_KeyModifier_Void"]=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=(n(2).default,n(8).default);function a(){return n(11)}function s(){return n(46)}function o(){return n(84)}function l(){return n(86)}function u(){return n(85)}function _(){return n(109)}function f(){return n(5)}var d=function(t){this.unusedTouchesPool=new(n(48).default),this.scale=1,this.currentTouches=new(n(22).default),this.parent=t,null!=t.config&&f().default.hasField(t.config,"element")&&(this.element=t.config.element),null!=t.config&&f().default.hasField(t.config,"renderer")&&(this.renderType=t.config.renderer),null!=t.config&&f().default.hasField(t.config,"allowHighDPI")&&t.config.allowHighDPI&&"dom"!=this.renderType&&(this.scale=a().default.get_window().devicePixelRatio),t.__scale=this.scale,this.cacheMouseX=0,this.cacheMouseY=0};d.__name__=["lime","_backend","html5","HTML5Window"],(d.prototype={alert:function(t,e){null!=t&&a().default.alert(t)},close:function(){this.parent.application.removeWindow(this.parent)},create:function(t){if(this.setWidth=this.parent.get_width(),this.setHeight=this.parent.get_height(),this.parent.id=d.windowID++,n(4).default.is(this.element,HTMLCanvasElement)?this.canvas=this.element:"dom"==this.renderType?this.div=a().default.get_document().createElement("div"):this.canvas=a().default.get_document().createElement("canvas"),null!=this.canvas){var e=this.canvas.style;e.setProperty("-webkit-transform","translateZ(0)",null),e.setProperty("transform","translateZ(0)",null)}else if(null!=this.div){var i=this.div.style;i.setProperty("-webkit-transform","translate3D(0,0,0)",null),i.setProperty("transform","translate3D(0,0,0)",null),i.position="relative",i.overflow="hidden",i.setProperty("-webkit-user-select","none",null),i.setProperty("-moz-user-select","none",null),i.setProperty("-ms-user-select","none",null),i.setProperty("-o-user-select","none",null)}if(0==this.parent.get_width()&&0==this.parent.get_height()&&(null!=this.element?(this.parent.set_width(this.element.clientWidth),this.parent.set_height(this.element.clientHeight)):(this.parent.set_width(a().default.get_window().innerWidth),this.parent.set_height(a().default.get_window().innerHeight)),this.cacheElementWidth=this.parent.get_width(),this.cacheElementHeight=this.parent.get_height(),this.resizeElement=!0),null!=this.canvas){var s=this.parent.get_width()*this.scale;this.canvas.width=Math.round(s);var o=this.parent.get_height()*this.scale;this.canvas.height=Math.round(o);var l=this.parent.get_width();this.canvas.style.width=l+"px";var u=this.parent.get_height();this.canvas.style.height=u+"px"}else{var _=this.parent.get_width();this.div.style.width=_+"px";var f=this.parent.get_height();this.div.style.height=f+"px"}if(this.updateSize(),null!=this.element){null!=this.canvas?this.element!=this.canvas&&this.element.appendChild(this.canvas):this.element.appendChild(this.div);for(var h=["mousedown","mouseenter","mouseleave","mousemove","mouseup","wheel"],c=0;c<h.length;){var p=h[c];++c,this.element.addEventListener(p,r(this,this.handleMouseEvent),!0)}a().default.get_document().addEventListener("dragstart",function(t){return"img"!=t.target.nodeName.toLowerCase()||(t.preventDefault(),!1)},!1),this.element.addEventListener("contextmenu",r(this,this.handleContextMenuEvent),!0),this.element.addEventListener("touchstart",r(this,this.handleTouchEvent),!0),this.element.addEventListener("touchmove",r(this,this.handleTouchEvent),!0),this.element.addEventListener("touchend",r(this,this.handleTouchEvent),!0),this.element.addEventListener("touchcancel",r(this,this.handleTouchEvent),!0),this.element.addEventListener("gamepadconnected",r(this,this.handleGamepadEvent),!0),this.element.addEventListener("gamepaddisconnected",r(this,this.handleGamepadEvent),!0)}},focus:function(){},getDisplay:function(){return s().default.getDisplay(0)},getDisplayMode:function(){return s().default.getDisplay(0).currentMode},setDisplayMode:function(t){return t},getEnableTextEvents:function(){return this.enableTextEvents},handleContextMenuEvent:function(t){this.parent.onMouseUp.canceled&&t.preventDefault()},handleCutOrCopyEvent:function(t){t.clipboardData.setData("text/plain",o().default.get_text()),t.preventDefault()},handleFocusEvent:function(t){var e=this;this.enableTextEvents&&(null==t.relatedTarget||this.isDescendent(t.relatedTarget))&&n(26).default.delay(function(){e.enableTextEvents&&d.textInput.focus()},20)},handleFullscreenEvent:function(t){if(null!=(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement))this.isFullscreen=!0,this.parent.__fullscreen=!0,this.requestedFullscreen&&(this.requestedFullscreen=!1,this.parent.onFullscreen.dispatch());else{this.isFullscreen=!1,this.parent.__fullscreen=!1;for(var e=["fullscreenchange","mozfullscreenchange","webkitfullscreenchange","MSFullscreenChange"],n=["fullscreenerror","mozfullscreenerror","webkitfullscreenerror","MSFullscreenError"],i=0,s=e.length;i<s;){var o=i++;a().default.get_document().removeEventListener(e[o],r(this,this.handleFullscreenEvent),!1),a().default.get_document().removeEventListener(n[o],r(this,this.handleFullscreenEvent),!1)}}},handleGamepadEvent:function(t){switch(t.type){case"gamepadconnected":l().default.__connect(t.gamepad.index),"standard"==t.gamepad.mapping&&u().default.__connect(t.gamepad.index);break;case"gamepaddisconnected":l().default.__disconnect(t.gamepad.index),u().default.__disconnect(t.gamepad.index)}},handleInputEvent:function(t){if(d.textInput.value!=d.dummyCharacter){var e=n(12).default.replace(d.textInput.value,d.dummyCharacter,"");e.length>0&&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;u<f.length;){var d=f[u];if(++u,i=0,r=0,null!=e?(i=(d.clientX-e.left)*(o/e.width),r=(d.clientY-e.top)*(l/e.height)):(i=d.clientX,r=d.clientY),"touchstart"==t.type)null==(n=this.unusedTouchesPool.pop())?n=new(_().default)(i/o,r/l,d.identifier,0,0,d.force,this.parent.id):(n.x=i/o,n.y=r/l,n.id=d.identifier,n.dx=0,n.dy=0,n.pressure=d.force,n.device=this.parent.id),this.currentTouches.set(d.identifier,n),_().default.onStart.dispatch(n),null==this.primaryTouch&&(this.primaryTouch=n),n==this.primaryTouch&&this.parent.onMouseDown.dispatch(i,r,0);else if(null!=(n=this.currentTouches.get(d.identifier)))switch(a=n.x,s=n.y,n.x=i/o,n.y=r/l,n.dx=n.x-a,n.dy=n.y-s,n.pressure=d.force,t.type){case"touchcancel":_().default.onCancel.dispatch(n),this.currentTouches.remove(d.identifier),this.unusedTouchesPool.add(n),n==this.primaryTouch&&(this.primaryTouch=null);break;case"touchend":_().default.onEnd.dispatch(n),this.currentTouches.remove(d.identifier),this.unusedTouchesPool.add(n),n==this.primaryTouch&&(this.parent.onMouseUp.dispatch(i,r,0),this.primaryTouch=null);break;case"touchmove":_().default.onMove.dispatch(n),n==this.primaryTouch&&this.parent.onMouseMove.dispatch(i,r)}}},isDescendent:function(t){if(t==this.element)return!0;for(;null!=t;){if(t.parentNode==this.element)return!0;t=t.parentNode}return!1},move:function(t,e){},resize:function(t,e){},setBorderless:function(t){return t},setClipboard:function(t){var e=this.enableTextEvents;this.setEnableTextEvents(!0);var n=d.textInput.value;d.textInput.value=t,d.textInput.select(),a().default.get_document().queryCommandEnabled("copy")&&a().default.get_document().execCommand("copy"),d.textInput.value=n,this.setEnableTextEvents(e)},setEnableTextEvents:function(t){return t?(null==d.textInput&&((d.textInput=a().default.get_document().createElement("input")).type="text",d.textInput.style.position="absolute",d.textInput.style.opacity="0",d.textInput.style.color="transparent",d.textInput.value=d.dummyCharacter,d.textInput.autocapitalize="off",d.textInput.autocorrect="off",d.textInput.autocomplete="off",d.textInput.style.left="0px",d.textInput.style.top="50%",new(n(27).default)("(iPad|iPhone|iPod).*OS 8_","gi").match(a().default.get_window().navigator.userAgent)?(d.textInput.style.fontSize="0px",d.textInput.style.width="0px",d.textInput.style.height="0px"):(d.textInput.style.width="1px",d.textInput.style.height="1px"),d.textInput.style.pointerEvents="none",d.textInput.style.zIndex="-10000000",a().default.get_document().body.appendChild(d.textInput)),this.enableTextEvents||(d.textInput.addEventListener("input",r(this,this.handleInputEvent),!0),d.textInput.addEventListener("blur",r(this,this.handleFocusEvent),!0),d.textInput.addEventListener("cut",r(this,this.handleCutOrCopyEvent),!0),d.textInput.addEventListener("copy",r(this,this.handleCutOrCopyEvent),!0),d.textInput.addEventListener("paste",r(this,this.handlePasteEvent),!0)),d.textInput.focus(),d.textInput.select()):null!=d.textInput&&(d.textInput.removeEventListener("input",r(this,this.handleInputEvent),!0),d.textInput.removeEventListener("blur",r(this,this.handleFocusEvent),!0),d.textInput.removeEventListener("cut",r(this,this.handleCutOrCopyEvent),!0),d.textInput.removeEventListener("copy",r(this,this.handleCutOrCopyEvent),!0),d.textInput.removeEventListener("paste",r(this,this.handlePasteEvent),!0),d.textInput.blur()),this.enableTextEvents=t},setFullscreen:function(t){return t?this.requestedFullscreen||this.isFullscreen||(this.requestedFullscreen=!0,$_=this.element,r($_,$_.requestFullscreen)?(document.addEventListener("fullscreenchange",r(this,this.handleFullscreenEvent),!1),document.addEventListener("fullscreenerror",r(this,this.handleFullscreenEvent),!1),this.element.requestFullscreen()):this.element.mozRequestFullScreen?(document.addEventListener("mozfullscreenchange",r(this,this.handleFullscreenEvent),!1),document.addEventListener("mozfullscreenerror",r(this,this.handleFullscreenEvent),!1),this.element.mozRequestFullScreen()):this.element.webkitRequestFullscreen?(document.addEventListener("webkitfullscreenchange",r(this,this.handleFullscreenEvent),!1),document.addEventListener("webkitfullscreenerror",r(this,this.handleFullscreenEvent),!1),this.element.webkitRequestFullscreen()):this.element.msRequestFullscreen&&(document.addEventListener("MSFullscreenChange",r(this,this.handleFullscreenEvent),!1),document.addEventListener("MSFullscreenError",r(this,this.handleFullscreenEvent),!1),this.element.msRequestFullscreen())):this.isFullscreen&&(this.requestedFullscreen=!1,document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()),t},setIcon:function(t){n(32).default.convertToCanvas(t);var e=a().default.get_document().querySelector("link[rel*='icon']");null==e&&(e=a().default.get_document().createElement("link")),e.type="image/x-icon",e.rel="shortcut icon",e.href=t.buffer.get_src().toDataURL("image/x-icon"),a().default.get_document().getElementsByTagName("head")[0].appendChild(e)},setMaximized:function(t){return!1},setMinimized:function(t){return!1},setResizable:function(t){return t},setTitle:function(t){return null!=t&&(a().default.get_document().title=t),t},updateSize:function(){var t,e;if(this.parent.__resizable&&(null!=this.element?(t=this.element.clientWidth,e=this.element.clientHeight):(t=a().default.get_window().innerWidth,e=a().default.get_window().innerHeight),t!=this.cacheElementWidth||e!=this.cacheElementHeight)){this.cacheElementWidth=t,this.cacheElementHeight=e;var n=this.resizeElement||0==this.setWidth&&0==this.setHeight;if(null!=this.element&&(null==this.div||null!=this.div&&n))if(n)this.parent.get_width()==t&&this.parent.get_height()==e||(this.parent.set_width(t),this.parent.set_height(e),null!=this.canvas?this.element!=this.canvas&&(this.canvas.width=Math.round(t*this.scale),this.canvas.height=Math.round(e*this.scale),this.canvas.style.width=t+"px",this.canvas.style.height=e+"px"):(this.div.style.width=t+"px",this.div.style.height=e+"px"),this.parent.onResize.dispatch(t,e));else{var i=0!=this.setWidth?t/this.setWidth:1,r=0!=this.setHeight?e/this.setHeight:1,s=t,o=e,l=0,u=0;i<r?(o=Math.floor(this.setHeight*i),u=Math.floor((e-o)/2)):(s=Math.floor(this.setWidth*r),l=Math.floor((t-s)/2)),null!=this.canvas?this.element!=this.canvas&&(this.canvas.style.width=s+"px",this.canvas.style.height=o+"px",this.canvas.style.marginLeft=l+"px",this.canvas.style.marginTop=u+"px"):(this.div.style.width=s+"px",this.div.style.height=o+"px",this.div.style.marginLeft=l+"px",this.div.style.marginTop=u+"px")}}}}).__class__=i["lime._backend.html5.HTML5Window"]=d,d.dummyCharacter="",d.windowID=0,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=function(){};r.__name__=["lime","system","Display"],(r.prototype={}).__class__=i["lime.system.Display"]=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){this.width=t,this.height=e,this.refreshRate=n,this.pixelFormat=i};r.__name__=["lime","system","DisplayMode"],(r.prototype={}).__class__=i["lime.system.DisplayMode"]=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__=["lime","system","CFFI"],(r.prototype={}).__class__=i["lime.system.CFFI"]=r,r.available=!1,r.enabled=!1,r.load=function(t,e,i,a){if(null==a&&(a=!1),null==i&&(i=0),!r.enabled)return n(5).default.makeVarArgs(function(t){return{}});return null},r.__findHaxelib=function(t){return""},r.__loaderTrace=function(t){},r.__sysName=function(){return null},r.__tryLoad=function(t,e,n,i){return null},r.__moduleNames=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,r=function(t,e){this.map=t,this.keys=e,this.index=0,this.count=e.length};r.__name__=["haxe","ds","_StringMap","StringMapIterator"],(r.prototype={hasNext:function(){return this.index<this.count},next:function(){return this.map.get(this.keys[this.index++])}}).__class__=i["haxe.ds._StringMap.StringMapIterator"]=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(t,e){this.image=t,null==e?this.rect=t.get_rect():(e.x<0&&(e.x=0),e.y<0&&(e.y=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.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&&t<this.height},offset:function(t,e){t<0?(this.rect.x+=t,this.rect.x<0&&(this.rect.x=0)):(this.rect.x+=t,this.rect.width-=t),e<0?(this.rect.y+=e,this.rect.y<0&&(this.rect.y=0)):(this.rect.y+=e,this.rect.height-=e),this.__update()},row:function(t){return this.byteOffset+this.stride*t},__update:function(){this.x=Math.ceil(this.rect.x),this.y=Math.ceil(this.rect.y),this.width=Math.floor(this.rect.width),this.height=Math.floor(this.rect.height),this.byteOffset=this.stride*(this.y+this.image.offsetY)+4*(this.x+this.image.offsetX)}}).__class__=i["lime.graphics.utils._ImageDataUtil.ImageDataView"]=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(15).default,r=n(1).default["haxe.io.Error"]={__ename__:["haxe","io","Error"],__constructs__:["Blocked","Overflow","OutsideBounds","Custom"]};r.Custom=function(t){var e=["Custom",3,t];return e.__enum__=r,e.toString=i,e},r.Blocked=["Blocked",0],r.Blocked.toString=i,r.Blocked.__enum__=r,r.Overflow=["Overflow",1],r.Overflow.toString=i,r.Overflow.__enum__=r,r.OutsideBounds=["OutsideBounds",2],r.OutsideBounds.toString=i,r.OutsideBounds.__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=function(t,e){this.item=t,this.next=e};r.__name__=["_List","ListNode"],(r.prototype={}).__class__=i["_List.ListNode"]=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){this.head=t};r.__name__=["_List","ListIterator"],(r.prototype={hasNext:function(){return null!=this.head},next:function(){var t=this.head.item;return this.head=this.head.next,t}}).__class__=i["_List.ListIterator"]=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(35)}var a=function(t){this.onRender=new(r().default),this.onContextRestored=new(n(264).default),this.onContextLost=new(r().default),this.window=t,this.backend=new(n(265).default)(this),this.window.renderer=this};a.__name__=["lime","graphics","Renderer"],(a.prototype={create:function(){this.backend.create()},flip:function(){this.backend.flip()},readPixels:function(t){return this.backend.readPixels(t)},render:function(){this.backend.render()}}).__class__=i["lime.graphics.Renderer"]=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(5)}var a=function(){this.canceled=!1,this.__listeners=[],this.__priorities=[],this.__repeat=[]};a.__name__=["lime","app","_Event_lime_graphics_RenderContext_Void"],(a.prototype={add:function(t,e,n){null==n&&(n=0),null==e&&(e=!1);for(var i=0,r=this.__priorities.length;i<r;){var a=i++;if(n>this.__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<n.length;){var i=n[e];if(++e,r().default.compareMethods(i,t))return!0}return!1},remove:function(t){for(var e=this.__listeners.length;--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<e.length&&(e[i](t),n[i]?++i:this.remove(e[i]),!this.canceled););}}).__class__=i["lime.app._Event_lime_graphics_RenderContext_Void"]=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=(n(2).default,n(8).default);function a(){return n(266)}function s(){return n(33)}function o(){return n(5)}function l(){return n(49)}function u(){return n(4)}var _=function(t){this.parent=t};_.__name__=["lime","_backend","html5","HTML5Renderer"],(_.prototype={create:function(){this.createContext();var t=this.parent.context;0==n(10).default.enumIndex(t)&&(this.parent.window.backend.canvas.addEventListener("webglcontextlost",r(this,this.handleEvent),!1),this.parent.window.backend.canvas.addEventListener("webglcontextrestored",r(this,this.handleEvent),!1))},createContext:function(){if(null!=this.parent.window.backend.div)this.parent.context=a().default.DOM(this.parent.window.backend.div),this.parent.type=s().default.DOM;else if(null!=this.parent.window.backend.canvas){var t=null,e=this.parent.window.backend.renderType,i="webgl1"!=e;if("opengl"==e||"webgl"==e||"webgl1"==e||"webgl2"==e||!("canvas"==e)&&(!o().default.hasField(this.parent.window.config,"hardware")||this.parent.window.config.hardware)){var r=o().default.hasField(this.parent.window.config,"background")&&null==this.parent.window.config.background,u=o().default.hasField(this.parent.window.config,"colorDepth")?this.parent.window.config.colorDepth:16,_={alpha:r||u>16,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;d<f.length;){var h=f[d];if(++d,null!=(t=this.parent.window.backend.canvas.getContext(h,_)))break}}null==t?(this.parent.context=a().default.CANVAS(this.parent.window.backend.canvas.getContext("2d")),this.parent.type=s().default.CANVAS):(l().default.context=new(n(153).default)(t),this.parent.context=a().default.OPENGL(l().default.context),this.parent.type=s().default.OPENGL)}},flip:function(){},handleEvent:function(t){switch(t.type){case"webglcontextlost":t.preventDefault(),null!=l().default.context&&(l().default.context.__contextLost=!0),this.parent.context=null,this.parent.onContextLost.dispatch();break;case"webglcontextrestored":this.createContext(),this.parent.onContextRestored.dispatch(this.parent.context)}},readPixels:function(t){if(null!=this.parent.window.backend.canvas&&(null==t?t=new(n(41).default)(0,0,this.parent.window.backend.canvas.width,this.parent.window.backend.canvas.height):t.__contract(0,0,this.parent.window.backend.canvas.width,this.parent.window.backend.canvas.height),t.width>0&&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)<e},r.lessThanPointer=function(t,e){return r.get(t)<r.get(e)},r.lessThanOrEqual=function(t,e){return r.get(t)<=e},r.lessThanOrEqualPointer=function(t,e){return r.get(t)<=r.get(e)},r.notEquals=function(t,e){return r.get(t)!=e},r.notEqualsPointer=function(t,e){return r.get(t)!=r.get(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(271)}function a(){return n(10)}function s(){return n(16)}var o=function(){};o.__name__=["lime","graphics","format","BMP"],(o.prototype={}).__class__=i["lime.graphics.format.BMP"]=o,o.encode=function(t,e){(t.get_premultiplied()||0!=t.get_format())&&((t=t.clone()).set_premultiplied(!1),t.set_format(0)),null==e&&(e=r().default.RGB);var i=14,o=40,l=t.width*t.height*4;if(null!=e)switch(a().default.enumIndex(e)){case 0:l=3*t.width+3*t.width%4+3*t.height+3*t.height;break;case 1:o=108;break;case 2:i=0,l+=t.width*t.height}var u=s().default.alloc(i+o+l),_=0;if(i>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;v<w;){var y=v++;m=4*(t.height-1-y)*t.width;for(var b=0,x=t.width;b<x;){b++;d=g.get(m++),h=g.get(m++),c=g.get(m++),p=g.get(m++),u.set(_++,p),u.set(_++,c),u.set(_++,h)}for(var E=0,T=3*t.width%4;E<T;){E++;u.set(_++,0)}}break;case 1:for(var A=0,R=t.height;A<R;){var S=A++;m=4*(t.height-1-S)*t.width;for(var M=0,I=t.width;M<I;){M++;d=g.get(m++),h=g.get(m++),c=g.get(m++),p=g.get(m++),u.set(_++,p),u.set(_++,c),u.set(_++,h),u.set(_++,d)}}break;case 2:for(var D=s().default.alloc(t.width*t.height),C=0,L=0,O=t.height;L<O;){var P=L++;m=4*(t.height-1-P)*t.width;for(var F=0,B=t.width;F<B;){F++;d=g.get(m++),h=g.get(m++),c=g.get(m++),p=g.get(m++),u.set(_++,p),u.set(_++,c),u.set(_++,h),u.set(_++,d),D.set(C++,0)}}u.blit(_,D,0,t.width*t.height)}return u},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["lime.graphics.format.BMPType"]={__ename__:["lime","graphics","format","BMPType"],__constructs__:["RGB","BITFIELD","ICO"]};r.ICO=["ICO",2],r.ICO.toString=i,r.ICO.__enum__=r,r.BITFIELD=["BITFIELD",1],r.BITFIELD.toString=i,r.BITFIELD.__enum__=r,r.RGB=["RGB",0],r.RGB.toString=i,r.RGB.__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__=["lime","graphics","format","JPEG"],(r.prototype={}).__class__=i["lime.graphics.format.JPEG"]=r,r.decodeBytes=function(t,e){return null==e&&(e=!0),null},r.decodeFile=function(t,e){return null==e&&(e=!0),null},r.encode=function(t,e){if((t.get_premultiplied()||0!=t.get_format())&&((t=t.clone()).set_premultiplied(!1),t.set_format(0)),t.type=n(55).default.CANVAS,n(32).default.sync(t,!1),null!=t.buffer.__srcCanvas){for(var i=t.buffer.__srcCanvas.toDataURL("image/jpeg",e/100),r=n(11).default.get_window().atob(i.split(";base64,")[1]),a=n(16).default.alloc(r.length),s=0,o=r.length;s<o;){var l=s++;a.set(l,n(7).default.cca(r,l))}return a}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;var r=function(){};r.__name__=["lime","graphics","format","PNG"],(r.prototype={}).__class__=i["lime.graphics.format.PNG"]=r,r.decodeBytes=function(t,e){return null==e&&(e=!0),null},r.decodeFile=function(t,e){return null==e&&(e=!0),null},r.encode=function(t){if((t.get_premultiplied()||0!=t.get_format())&&((t=t.clone()).set_premultiplied(!1),t.set_format(0)),t.type=n(55).default.CANVAS,n(32).default.sync(t,!1),null!=t.buffer.__srcCanvas){for(var e=t.buffer.__srcCanvas.toDataURL("image/png"),i=n(11).default.get_window().atob(e.split(";base64,")[1]),r=n(16).default.alloc(i.length),a=0,s=i.length;a<s;){var o=a++;r.set(o,n(7).default.cca(i,o))}return r}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;var r=function(){};r.__name__=["lime","app","_Future","FutureWork"],(r.prototype={}).__class__=i["lime.app._Future.FutureWork"]=r,r.queue=function(t){null==r.threadPool&&((r.threadPool=new(n(275).default)).doWork.add(r.threadPool_doWork),r.threadPool.onComplete.add(r.threadPool_onComplete),r.threadPool.onError.add(r.threadPool_onError)),r.threadPool.queue(t)},r.threadPool_doWork=function(t){try{var e=t.work();r.threadPool.sendComplete({promise:t.promise,result:e})}catch(e){e instanceof n(6).default&&(e=e.val),r.threadPool.sendError({promise:t.promise,error:e})}},r.threadPool_onComplete=function(t){t.promise.complete(t.result)},r.threadPool_onError=function(t){t.promise.error(t.error)},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(276)}var a=function(t,e){null==e&&(e=1),null==t&&(t=0),this.onRun=new(r().default),this.onProgress=new(r().default),this.onError=new(r().default),this.onComplete=new(r().default),this.doWork=new(r().default),this.minThreads=t,this.maxThreads=e,this.currentThreads=0};a.__name__=["lime","system","ThreadPool"],(a.prototype={queue:function(t){this.runWork(t)},sendComplete:function(t){this.onComplete.dispatch(t)},sendError:function(t){this.onError.dispatch(t)},sendProgress:function(t){this.onProgress.dispatch(t)},runWork:function(t){this.onRun.dispatch(t),this.doWork.dispatch(t)}}).__class__=i["lime.system.ThreadPool"]=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(5)}var a=function(){this.canceled=!1,this.__listeners=[],this.__priorities=[],this.__repeat=[]};a.__name__=["lime","app","_Event_haxe_Function_Void"],(a.prototype={add:function(t,e,n){null==n&&(n=0),null==e&&(e=!1);for(var i=0,r=this.__priorities.length;i<r;){var a=i++;if(n>this.__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<n.length;){var i=n[e];if(++e,r().default.compareMethods(i,t))return!0}return!1},remove:function(t){for(var e=this.__listeners.length;--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<e.length&&(e[i](t),n[i]?++i:this.remove(e[i]),!this.canceled););}}).__class__=i["lime.app._Event_haxe_Function_Void"]=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=(n(2).default,n(8).default);function a(){return n(11)}function s(){return n(86)}function o(){return n(85)}var l=function(t){this.gameDeviceCache=new(n(22).default),this.parent=t,this.currentUpdate=0,this.lastUpdate=0,this.nextUpdate=0,this.framePeriod=-1,n(279).default.init()};l.__name__=["lime","_backend","html5","HTML5Application"],(l.prototype={convertKeyCode:function(t){if(t>=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<n.length&&!window.requestAnimationFrame;++i)window.requestAnimationFrame=window[n[i]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[n[i]+"CancelAnimationFrame"]||window[n[i]+"CancelRequestAnimationFrame"];return window.requestAnimationFrame||(window.requestAnimationFrame=function(t,n){var i=(new Date).getTime(),r=Math.max(0,16-(i-e)),a=window.setTimeout(function(){t(i+r)},r);return e=i+r,a}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)}),window.requestAnimFrame=window.requestAnimationFrame,this.lastUpdate=(new Date).getTime(),this.handleApplicationEvent(),0},exit:function(){},getFrameRate:function(){return this.framePeriod<0?60:1e3==this.framePeriod?0:1e3/this.framePeriod},handleApplicationEvent:function(t){null!=this.parent.get_window()&&this.parent.get_window().backend.updateSize(),this.updateGameDevices(),this.currentUpdate=(new Date).getTime(),this.currentUpdate>=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;f<d;){var h=f++;l.buttons.push(a.buttons[h].value)}for(var c=0,p=a.axes.length;c<p;){var g=c++;l.axes.push(a.axes[g])}"standard"==a.mapping&&(l.isGamepad=!0),this.gameDeviceCache.set(e,l),a.connected&&(s().default.__connect(e),l.isGamepad&&o().default.__connect(e))}if(l=this.gameDeviceCache.get(e),r=s().default.devices.get(e),i=o().default.devices.get(e),a.connected){for(var m,v,w=0,y=a.buttons.length;w<y;){var b=w++;if((v=a.buttons[b].value)!=l.buttons[b]){if(6==b)r.onAxisMove.dispatch(a.axes.length,v),null!=i&&i.onAxisMove.dispatch(4,v);else if(7==b)r.onAxisMove.dispatch(a.axes.length+1,v),null!=i&&i.onAxisMove.dispatch(5,v);else if(v>0?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;x<E;){var T=x++;a.axes[T]!=l.axes[T]&&(r.onAxisMove.dispatch(T,a.axes[T]),null!=i&&i.onAxisMove.dispatch(T,a.axes[T]),l.axes[T]=a.axes[T])}}else l.connected&&(l.connected=!1,s().default.__disconnect(e),o().default.__disconnect(e))}}}}).__class__=i["lime._backend.html5.HTML5Application"]=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=function(){this.connected=!0,this.buttons=[],this.axes=[]};r.__name__=["lime","_backend","html5","GameDeviceData"],(r.prototype={}).__class__=i["lime._backend.html5.GameDeviceData"]=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(280)}function a(){return n(10)}var s=function(){};s.__name__=["lime","media","AudioManager"],(s.prototype={}).__class__=i["lime.media.AudioManager"]=s,s.init=function(t){if(null==s.context)if(null==t)try{window.AudioContext=window.AudioContext||window.webkitAudioContext,s.context=r().default.WEB(new AudioContext)}catch(t){s.context=r().default.HTML5(new(n(281).default))}else s.context=t},s.resume=function(){if(null!=s.context){var t=s.context;if(0==a().default.enumIndex(t)){t[3];var e=t[2],n=e.getCurrentContext();if(null!=n){var i=e.getContextsDevice(n);e.resumeDevice(i),e.processContext(n)}}}},s.shutdown=function(){if(null!=s.context){var t=s.context;if(0==a().default.enumIndex(t)){t[3];var e=t[2],n=e.getCurrentContext();if(null!=n){var i=e.getContextsDevice(n);e.makeContextCurrent(null),e.destroyContext(n),null!=i&&e.closeDevice(i)}}s.context=null}},s.suspend=function(){if(null!=s.context){var t=s.context;if(0==a().default.enumIndex(t)){t[3];var e=t[2],n=e.getCurrentContext();if(null!=n){e.suspendContext(n);var i=e.getContextsDevice(n);e.pauseDevice(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(15).default,r=n(1).default["lime.media.AudioContext"]={__ename__:["lime","media","AudioContext"],__constructs__:["OPENAL","HTML5","WEB","FLASH","CUSTOM"]};r.OPENAL=function(t,e){var n=["OPENAL",0,t,e];return n.__enum__=r,n.toString=i,n},r.FLASH=function(t){var e=["FLASH",3,t];return e.__enum__=r,e.toString=i,e},r.WEB=function(t){var e=["WEB",2,t];return e.__enum__=r,e.toString=i,e},r.CUSTOM=function(t){var e=["CUSTOM",4,t];return e.__enum__=r,e.toString=i,e},r.HTML5=function(t){var e=["HTML5",1,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;var r=function(){this.NETWORK_NO_SOURCE=3,this.NETWORK_LOADING=2,this.NETWORK_IDLE=1,this.NETWORK_EMPTY=0,this.HAVE_NOTHING=0,this.HAVE_METADATA=1,this.HAVE_FUTURE_DATA=3,this.HAVE_ENOUGH_DATA=4,this.HAVE_CURRENT_DATA=2};r.__name__=["lime","media","HTML5AudioContext"],(r.prototype={canPlayType:function(t,e){return null!=t.__srcAudio?t.__srcAudio.canPlayType(e):null},createBuffer:function(t){var e=new(n(88).default);return e.__srcAudio=new Audio,e.__srcAudio.src=t,e},getAutoplay:function(t){return null!=t.__srcAudio&&t.__srcAudio.autoplay},getBuffered:function(t){return null!=t.__srcAudio?t.__srcAudio.buffered:null},getCurrentSrc:function(t){return null!=t.__srcAudio?t.__srcAudio.currentSrc:null},getCurrentTime:function(t){return null!=t.__srcAudio?t.__srcAudio.currentTime:0},getDefaultPlaybackRate:function(t){return null!=t.__srcAudio?t.__srcAudio.defaultPlaybackRate:1},getDuration:function(t){return null!=t.__srcAudio?t.__srcAudio.duration:0},getEnded:function(t){return null!=t.__srcAudio&&t.__srcAudio.ended},getError:function(t){return null!=t.__srcAudio?t.__srcAudio.error:null},getLoop:function(t){return null!=t.__srcAudio&&t.__srcAudio.loop},getMuted:function(t){return null!=t.__srcAudio&&t.__srcAudio.muted},getNetworkState:function(t){return null!=t.__srcAudio?t.__srcAudio.networkState:0},getPaused:function(t){return null!=t.__srcAudio&&t.__srcAudio.paused},getPlaybackRate:function(t){return null!=t.__srcAudio?t.__srcAudio.playbackRate:1},getPlayed:function(t){return null!=t.__srcAudio?t.__srcAudio.played:null},getPreload:function(t){return null!=t.__srcAudio?t.__srcAudio.preload:null},getReadyState:function(t){return null!=t.__srcAudio?t.__srcAudio.readyState:0},getSeekable:function(t){return null!=t.__srcAudio?t.__srcAudio.seekable:null},getSeeking:function(t){return null!=t.__srcAudio&&t.__srcAudio.seeking},getSrc:function(t){return null!=t.__srcAudio?t.__srcAudio.src:null},getStartTime:function(t){return null!=t.__srcAudio?t.__srcAudio.playbackRate:0},getVolume:function(t){return null!=t.__srcAudio?t.__srcAudio.volume:1},load:function(t){null==t.__srcAudio||t.__srcAudio.load()},pause:function(t){null==t.__srcAudio||t.__srcAudio.pause()},play:function(t){null==t.__srcAudio||t.__srcAudio.play()},setAutoplay:function(t,e){null!=t.__srcAudio&&(t.__srcAudio.autoplay=e)},setCurrentTime:function(t,e){null!=t.__srcAudio&&(t.__srcAudio.currentTime=e)},setDefaultPlaybackRate:function(t,e){null!=t.__srcAudio&&(t.__srcAudio.defaultPlaybackRate=e)},setLoop:function(t,e){null!=t.__srcAudio&&(t.__srcAudio.loop=e)},setMuted:function(t,e){null!=t.__srcAudio&&(t.__srcAudio.muted=e)},setPlaybackRate:function(t,e){null!=t.__srcAudio&&(t.__srcAudio.playbackRate=e)},setPreload:function(t,e){null!=t.__srcAudio&&(t.__srcAudio.preload=e)},setSrc:function(t,e){null!=t.__srcAudio&&(t.__srcAudio.src=e)},setVolume:function(t,e){null!=t.__srcAudio&&(t.__srcAudio.volume=e)}}).__class__=i["lime.media.HTML5AudioContext"]=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(156)}function s(){return n(7)}var o=function(){};o.__name__=["haxe","crypto","Base64"],(o.prototype={}).__class__=i["haxe.crypto.Base64"]=o,o.encode=function(t,e){null==e&&(e=!0);var n=new(a().default)(o.BYTES).encodeBytes(t).toString();if(e)switch(t.get_length()%3){case 1:n+="==";break;case 2:n+="="}return n},o.decode=function(t,e){if(null==e&&(e=!0),e)for(;61==s().default.cca(t,t.length-1);)t=s().default.substr(t,0,-1);return new(a().default)(o.BYTES).decodeBytes(r().default.ofString(t))},o.CHARS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o.BYTES=r().default.ofString(o.CHARS),e.default=o}).call(e,n(0))},function(t,e){t.exports=__WEBPACK_EXTERNAL_MODULE_283__},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.ClipboardFormats=t.exports.default={HTML_FORMAT:"air:html",RICH_TEXT_FORMAT:"air:rtf",TEXT_FORMAT:"air:text"}},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.ClipboardTransferMode=t.exports.default={CLONE_ONLY:"cloneOnly",CLONE_PREFERRED:"clonePreferred",ORIGINAL_ONLY:"originalOnly",ORIGINAL_PREFERRED:"originalPreferred"}},function(t,e,n){t.exports={Bitmap:n(287).default,BitmapData:n(317).default,BitmapDataChannel:n(318).default,BlendMode:n(319).default,CapsStyle:n(320).default,DisplayObject:n(321).default,DisplayObjectContainer:n(322).default,DOMSprite:n(323).default,FPS:n(325).default,FrameLabel:n(345).default,GradientType:n(346).default,Graphics:n(347).default,GraphicsBitmapFill:n(348).default,GraphicsEndFill:n(349).default,GraphicsGradientFill:n(350).default,GraphicsPath:n(351).default,GraphicsPathCommand:n(352).default,GraphicsPathWinding:n(353).default,GraphicsSolidFill:n(354).default,GraphicsStroke:n(355).default,IBitmapDrawable:n(356).default,IGraphicsData:n(357).default,IGraphicsFill:n(358).default,IGraphicsPath:n(359).default,IGraphicsStroke:n(360).default,InteractiveObject:n(361).default,InterpolationMethod:n(362).default,JointStyle:n(363).default,JPEGEncoderOptions:n(364).default,LineScaleMode:n(365).default,Loader:n(366).default,LoaderInfo:n(372).default,MovieClip:n(373).default,PixelSnapping:n(374).default,PNGEncoderOptions:n(375).default,Preloader:n(376).default,Shader:n(379).default,ShaderData:n(380).default,ShaderInput:n(381).default,ShaderJob:n(382).default,ShaderParameter:n(384).default,ShaderParameterType:n(385).default,ShaderPrecision:n(386).default,Shape:n(387).default,SimpleButton:n(389).default,SpreadMethod:n(391).default,Sprite:n(392).default,Stage:n(393).default,Stage3D:n(419).default,StageAlign:n(420).default,StageDisplayState:n(421).default,StageQuality:n(422).default,StageScaleMode:n(423).default,Tile:n(424).default,TileArray:n(425).default,Tilemap:n(427).default,Tileset:n(432).default,TriangleCulling:n(435).default}},function(t,e,n){t.exports=n(89)},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.callback=t,this.useCapture=e,this.priority=n};r.__name__=["openfl","events","_EventDispatcher","Listener"],(r.prototype={match:function(t,e){return!!n(5).default.compareMethods(this.callback,t)&&this.useCapture==e}}).__class__=i["openfl.events._EventDispatcher.Listener"]=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){this.list=t,this.index=t.length};r.__name__=["openfl","events","_EventDispatcher","DispatchIterator"],(r.prototype={copy:function(){this.isCopy||(this.list=this.list.slice(),this.isCopy=!0)},hasNext:function(){return this.index<this.list.length||(this.active=!1,!1)},next:function(){return this.list[this.index++]},remove:function(t,e){if(this.active)if(this.isCopy)for(var n=this.index,i=this.list.length;n<i;){var r=n++;if(this.list[r]==t){this.list.splice(r,1);break}}else e<this.index&&this.index--},reset:function(t){this.list=t,this.active=!0,this.isCopy=!1,this.index=0}}).__class__=i["openfl.events._EventDispatcher.DispatchIterator"]=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(6)}function a(){return n(42)}function s(){return n(4)}var o=function(t,e,n,i,r,a){null==a&&(a=0),null==r&&(r=0),null==i&&(i=1),null==n&&(n=0),null==e&&(e=0),null==t&&(t=1),this.a=t,this.b=e,this.c=n,this.d=i,this.tx=r,this.ty=a};o.__name__=["lime","math","Matrix3"],(o.prototype={clone:function(){return new o(this.a,this.b,this.c,this.d,this.tx,this.ty)},concat:function(t){var e=this.a*t.a+this.b*t.c;this.b=this.a*t.b+this.b*t.d,this.a=e;var n=this.c*t.a+this.d*t.c;this.d=this.c*t.b+this.d*t.d,this.c=n;var i=this.tx*t.a+this.ty*t.c+t.tx;this.ty=this.tx*t.b+this.ty*t.d+t.ty,this.tx=i},copyColumnFrom:function(t,e){if(t>2)throw new(r().default)("Column "+t+" out of bounds (2)");0==t?(this.a=e.x,this.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.index<this.vector.get_length()-1},next:function(){return this.index++,this.vector.get(this.index)}}).__class__=i["openfl._Vector.VectorIterator"]=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(23)}function a(){return n(163)}var s=function(){};s.__name__=["lime","math","_Matrix4","Matrix4_Impl_"],(s.prototype={}).__class__=i["lime.math._Matrix4.Matrix4_Impl_"]=s,s._new=function(t){var e;if(null!=t&&16==t.length)e=t;else{var n=s.__identity;e=null!=n?new Float32Array(n):null}return e},s.append=function(t,e){var n=t[0],i=t[4],r=t[8],a=t[12],o=t[1],l=t[5],u=t[9],_=t[13],f=t[2],d=t[6],h=t[10],c=t[14],p=t[3],g=t[7],m=t[11],v=t[15],w=s.get(e,0),y=s.get(e,4),b=s.get(e,8),x=s.get(e,12),E=s.get(e,1),T=s.get(e,5),A=s.get(e,9),R=s.get(e,13),S=s.get(e,2),M=s.get(e,6),I=s.get(e,10),D=s.get(e,14),C=s.get(e,3),L=s.get(e,7),O=s.get(e,11),P=s.get(e,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.appendRotation=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.append(t,r)},s.appendScale=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.append(t,s._new(r))},s.appendTranslation=function(t,e,n,i){t[12]+=e,t[13]+=n,t[14]+=i},s.clone=function(t){var e;return e=null!=t?new Float32Array(t):null,s._new(e)},s.copyColumnFrom=function(t,e,n){switch(e){case 0:t[0]=n.x,t[1]=n.y,t[2]=n.z,t[3]=n.w;break;case 1:t[4]=n.x,t[5]=n.y,t[6]=n.z,t[7]=n.w;break;case 2:t[8]=n.x,t[9]=n.y,t[10]=n.z,t[11]=n.w;break;case 3:t[12]=n.x,t[13]=n.y,t[14]=n.z,t[15]=n.w;break;default:r().default.error("Column "+e+" out of bounds [0, ..., 3]",{fileName:"Matrix4.hx",lineNumber:139,className:"lime.math._Matrix4.Matrix4_Impl_",methodName:"copyColumnFrom"})}},s.copyColumnTo=function(t,e,n){switch(e){case 0:n.x=t[0],n.y=t[1],n.z=t[2],n.w=t[3];break;case 1:n.x=t[4],n.y=t[5],n.z=t[6],n.w=t[7];break;case 2:n.x=t[8],n.y=t[9],n.z=t[10],n.w=t[11];break;case 3:n.x=t[12],n.y=t[13],n.z=t[14],n.w=t[15];break;default:r().default.error("Column "+e+" out of bounds [0, ..., 3]",{fileName:"Matrix4.hx",lineNumber:180,className:"lime.math._Matrix4.Matrix4_Impl_",methodName:"copyColumnTo"})}},s.copyFrom=function(t,e){t.set(e)},s.copythisFrom=function(t,e,n,i){null==i&&(i=!1),null==n&&(n=0),i&&s.transpose(t);for(var r=0,a=e.length-n;r<a;){var o=r++;t[o]=e[o+n]}i&&s.transpose(t)},s.copythisTo=function(t,e,n,i){null==i&&(i=!1),null==n&&(n=0),i&&s.transpose(t);for(var r=0,a=t.length;r<a;){var o=r++;e[o+n]=t[o]}i&&s.transpose(t)},s.copyRowFrom=function(t,e,n){switch(e){case 0:t[0]=n.x,t[4]=n.y,t[8]=n.z,t[12]=n.w;break;case 1:t[1]=n.x,t[5]=n.y,t[9]=n.z,t[13]=n.w;break;case 2:t[2]=n.x,t[6]=n.y,t[10]=n.z,t[14]=n.w;break;case 3:t[3]=n.x,t[7]=n.y,t[11]=n.z,t[15]=n.w;break;default:r().default.error("Row "+e+" out of bounds [0, ..., 3]",{fileName:"Matrix4.hx",lineNumber:258,className:"lime.math._Matrix4.Matrix4_Impl_",methodName:"copyRowFrom"})}},s.create2D=function(t,e,n,i){null==i&&(i=0),null==n&&(n=1);var r,a=i*Math.PI/180,o=Math.cos(a),l=Math.sin(a),u=[o*n,-l*n,0,0,l*n,o*n,0,0,0,0,1,0,t,e,0,1];return r=null!=u?new Float32Array(u):null,s._new(r)},s.createABCD=function(t,e,n,i,r,a,o){return null==o&&(o=s._new()),s.set(o,0,t),s.set(o,1,e),s.set(o,2,0),s.set(o,3,0),s.set(o,4,n),s.set(o,5,i),s.set(o,6,0),s.set(o,7,0),s.set(o,8,0),s.set(o,9,0),s.set(o,10,1),s.set(o,11,0),s.set(o,12,r),s.set(o,13,a),s.set(o,14,0),s.set(o,15,1),o},s.createOrtho=function(t,e,n,i,r,a){var o,l=1/(e-t),u=1/(i-n),_=1/(a-r),f=[2*l,0,0,0,0,2*u,0,0,0,0,-2*_,0,-(t+e)*l,-(n+i)*u,-(r+a)*_,1];return o=null!=f?new Float32Array(f):null,s._new(o)},s.copyRowTo=function(t,e,n){switch(e){case 0:n.x=t[0],n.y=t[4],n.z=t[8],n.w=t[12];break;case 1:n.x=t[1],n.y=t[5],n.z=t[9],n.w=t[13];break;case 2:n.x=t[2],n.y=t[6],n.z=t[10],n.w=t[14];break;case 3:n.x=t[3],n.y=t[7],n.z=t[11],n.w=t[15];break;default:r().default.error("Row "+e+" out of bounds [0, ..., 3]",{fileName:"Matrix4.hx",lineNumber:360,className:"lime.math._Matrix4.Matrix4_Impl_",methodName:"copyRowTo"})}},s.copyToMatrix4=function(t,e){n(20).default.__cast(e,Float32Array).set(t)},s.deltaTransformVector=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[3],n*t[1]+i*t[5]+r*t[9]+t[7],n*t[2]+i*t[6]+r*t[10]+t[11],0)},s.identity=function(t){t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1},s.interpolate=function(t,e,n){for(var i=s._new(),r=0;r<16;){var a=r++;s.set(i,a,s.get(t,a)+(s.get(e,a)-s.get(t,a))*n)}return i},s.interpolateTo=function(t,e,n){for(var i=0;i<16;){var r=i++;t[r]+=(s.get(e,r)-t[r])*n}},s.invert=function(t){var e=s.get_determinant(t),n=Math.abs(e)>1e-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;c<p;){var g=c++;e=o;for(var m=0,v=l;m<v;){for(var w=m++,y=0,b=0,x=f;b<x;){var E=b++,T=d[E],A=h[E],R=e*T,S=n*T,M=i*T,I=R-R%1,D=S-S%1,C=M-M%1,L=255&r().default.int(I),O=255&r().default.int(D),P=255&r().default.int(C),F=(R-=I)*R*R*(R*(6*R-15)+10),B=(S-=D)*S*S*(S*(6*S-15)+10),N=(M-=C)*M*M*(M*(6*M-15)+10),k=_[L]+O,U=_[k]+P,G=_[k+1]+P,j=_[L+1]+O,V=_[j]+P,X=_[j+1]+P,W=R-1,H=S-1,z=M-1,Y=15&_[X+1],q=(0==(1&Y)?Y<8?W:H:Y<8?-W:-H)+(0==(2&Y)?Y<4?H:12==Y?W:z:Y<4?-H:14==Y?-W:-z),K=(0==(1&(Y=15&_[G+1]))?Y<8?R:H:Y<8?-R:-H)+(0==(2&Y)?Y<4?H:12==Y?R:z:Y<4?-H:14==Y?-R:-z),Z=(0==(1&(Y=15&_[V+1]))?Y<8?W:S:Y<8?-W:-S)+(0==(2&Y)?Y<4?S:12==Y?W:z:Y<4?-S:14==Y?-W:-z),Q=(0==(1&(Y=15&_[U+1]))?Y<8?R:S:Y<8?-R:-S)+(0==(2&Y)?Y<4?S:12==Y?R:z:Y<4?-S:14==Y?-R:-z),J=(0==(1&(Y=15&_[X]))?Y<8?W:H:Y<8?-W:-H)+(0==(2&Y)?Y<4?H:12==Y?W:M:Y<4?-H:14==Y?-W:-M),$=(0==(1&(Y=15&_[G]))?Y<8?R:H:Y<8?-R:-H)+(0==(2&Y)?Y<4?H:12==Y?R:M:Y<4?-H:14==Y?-R:-M),tt=(0==(1&(Y=15&_[V]))?Y<8?W:S:Y<8?-W:-S)+(0==(2&Y)?Y<4?S:12==Y?W:M:Y<4?-S:14==Y?-W:-M),et=(0==(1&(Y=15&_[U]))?Y<8?R:S:Y<8?-R:-S)+(0==(2&Y)?Y<4?S:12==Y?R:M:Y<4?-S:14==Y?-R:-M);Q+=F*(Z-Q),et+=F*(tt-et),y+=((et+=B*(($+=F*(J-$))-et))+N*((Q+=B*((K+=F*(q-K))-Q))-et))*A}var nt=r().default.int(128*(y*this.fPersMax+1));t.setPixel32(w,g,-16777216|nt<<16|nt<<8|nt),e+=this.baseFactor}n+=this.baseFactor}},octFreqPers:function(t){var e,n;this.aOctFreq=[],this.aOctPers=[],this.fPersMax=0;for(var i=0,r=this.octaves;i<r;){var a=i++;e=Math.pow(2,a),n=Math.pow(t,a),this.fPersMax+=n,this.aOctFreq.push(e),this.aOctPers.push(n)}this.fPersMax=1/this.fPersMax},seedOffset:function(t){t=r().default.int(16807*t%2147483647),this.iXoffset=t,t=r().default.int(16807*t%2147483647),this.iYoffset=t,t=r().default.int(16807*t%2147483647),this.iZoffset=t}}).__class__=i["openfl._internal.utils.PerlinNoise"]=a,a.P=[151,160,137,91,90,15,131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,23,190,6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33,88,237,149,56,87,174,20,125,136,171,168,68,175,74,165,71,134,139,48,27,166,77,146,158,231,83,111,229,122,60,211,133,230,220,105,92,41,55,46,245,40,244,102,143,54,65,25,63,161,1,216,80,73,209,76,132,187,208,89,18,169,200,196,135,130,116,188,159,86,164,100,109,198,173,186,3,64,52,217,226,250,124,123,5,202,38,147,118,126,255,82,85,212,207,206,59,227,47,16,58,17,182,189,28,42,223,183,170,213,119,248,152,2,44,154,163,70,221,153,101,155,167,43,172,9,129,22,39,253,19,98,108,110,79,113,224,232,178,185,112,104,218,246,97,228,251,34,242,193,238,210,144,12,191,179,162,241,81,51,145,235,249,14,239,107,49,192,214,31,181,199,106,157,184,84,204,176,115,121,50,45,127,4,150,254,138,236,205,93,222,114,67,29,24,72,243,141,128,195,78,66,215,61,156,180,151,160,137,91,90,15,131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,23,190,6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33,88,237,149,56,87,174,20,125,136,171,168,68,175,74,165,71,134,139,48,27,166,77,146,158,231,83,111,229,122,60,211,133,230,220,105,92,41,55,46,245,40,244,102,143,54,65,25,63,161,1,216,80,73,209,76,132,187,208,89,18,169,200,196,135,130,116,188,159,86,164,100,109,198,173,186,3,64,52,217,226,250,124,123,5,202,38,147,118,126,255,82,85,212,207,206,59,227,47,16,58,17,182,189,28,42,223,183,170,213,119,248,152,2,44,154,163,70,221,153,101,155,167,43,172,9,129,22,39,253,19,98,108,110,79,113,224,232,178,185,112,104,218,246,97,228,251,34,242,193,238,210,144,12,191,179,162,241,81,51,145,235,249,14,239,107,49,192,214,31,181,199,106,157,184,84,204,176,115,121,50,45,127,4,150,254,138,236,205,93,222,114,67,29,24,72,243,141,128,195,78,66,215,61,156,180],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(64)}var a=function(){};a.__name__=["openfl","utils","_Endian","Endian_Impl_"],(a.prototype={}).__class__=i["openfl.utils._Endian.Endian_Impl_"]=a,a.fromLimeEndian=function(t){switch(n(10).default.enumIndex(t)){case 0:return"littleEndian";case 1:return"bigEndian"}},a.toLimeEndian=function(t){switch(t){case"bigEndian":return r().default.BIG_ENDIAN;case"littleEndian":return r().default.LITTLE_ENDIAN;default:return null}},a.BIG_ENDIAN="bigEndian",a.LITTLE_ENDIAN="littleEndian",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(120)}function s(){return n(14)}function o(){return n(28)}var l=function(t){a().default.call(this,t),this.clipRects=[],this.numClipRects=0};l.__name__=["openfl","_internal","renderer","dom","DOMMaskManager"],l.__super__=a().default,(l.prototype=r(a().default.prototype,{pushMask:function(t){this.pushRect(t.getBounds(t),t.__getRenderTransform())},pushObject:function(t,e){null==e&&(e=!0),e&&null!=t.__scrollRect&&this.pushRect(t.__scrollRect,t.__renderTransform),null!=t.__mask&&this.pushMask(t.__mask)},pushRect:function(t,e){this.numClipRects==this.clipRects.length&&(this.clipRects[this.numClipRects]=new(s().default));var n=this.clipRects[this.numClipRects];if(t.__transform(n,e),this.numClipRects>0){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]<e-1;)this.times.shift();var i=this.times.length;this.currentFPS=Math.round((i+this.cacheCount)/2),i!=this.cacheCount&&this.set_text("FPS: "+this.currentFPS),this.cacheCount=i}})).__class__=i["openfl.display.FPS"]=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(98)}function a(){return n(329)}var s=function(){};s.__name__=["lime","text","unifill","Unifill"],(s.prototype={}).__class__=i["lime.text.unifill.Unifill"]=s,s.uLength=function(t){return r().default.codePointCount(t,0,t.length)},s.uCharAt=function(t,e){var n=r().default.offsetByCodePoints(t,0,e);return r().default.charAt(t,n)},s.uCharCodeAt=function(t,e){var n=r().default.offsetByCodePoints(t,0,e);return r().default.codePointAt(t,n)},s.uCodePointAt=function(t,e){return s.uCharCodeAt(t,e)},s.uIndexOf=function(t,e,n){null==n&&(n=0);var i=t.indexOf(e,r().default.offsetByCodePoints(t,0,n));return i>=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(s<o)return-1;if(s>o)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<t.length;){var i=t[n];++n,e.addChar(i)}return e.toString()},_.encodeWith=function(t,e){o().default.encode_code_point(t,e)},_.codeUnitAt=function(t,e){return l().default.fastCodeAt(t,e)},_.codePointAt=function(t,e){return o().default.decode_code_point(t.length,function(e){return l().default.fastCodeAt(t,e)},e)},_.charAt=function(t,e){var n=l().default.fastCodeAt(t,e);return u().default.substr(t,e,o().default.code_point_width(n))},_.codePointCount=function(t,e,n){for(var i=e,r=0;i<n;){var a=l().default.fastCodeAt(t,i);i+=o().default.code_point_width(a),++r}return r},_.codePointWidthAt=function(t,e){var n=l().default.fastCodeAt(t,e);return o().default.code_point_width(n)},_.codePointWidthBefore=function(t,e){return o().default.find_prev_code_point(function(e){return l().default.fastCodeAt(t,e)},e)},_.offsetByCodePoints=function(t,e,n){if(n>=0){for(var i=e,r=t.length,a=0;a<n&&i<r;){var s=l().default.fastCodeAt(t,i);i+=o().default.code_point_width(s),++a}return i}for(var u=e,_=0;_<-n&&0<u;)u-=o().default.find_prev_code_point(function(t){return function(e){return l().default.fastCodeAt(t[0],e)}}([t]),u),++_;return u},_.substr=function(t,e,n){return u().default.substr(t,e,n)},_.validate=function(t){for(var e=t.length,n=function(e){return l().default.fastCodeAt(t,e)},i=0;i<e;){o().default.decode_code_point(e,n,i);var r=l().default.fastCodeAt(t,i);i+=o().default.code_point_width(r)}},_.toString=function(t){return t},_.toArray=function(t){for(var e=0,n=t.length,i=[];e<n;)i.push(l().default.fastCodeAt(t,e++));return i},_._new=function(t){return t},_.get_length=function(t){return t.length},_.forward_offset_by_code_points=function(t,e,n){for(var i=t.length,r=0;r<n&&e<i;){var a=l().default.fastCodeAt(t,e);e+=o().default.code_point_width(a),++r}return e},_.backward_offset_by_code_points=function(t,e,n){for(var i=0;i<n&&0<e;)e-=o().default.find_prev_code_point(function(t){return function(e){return l().default.fastCodeAt(t[0],e)}}([t]),e),++i;return e},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.i=0,this.string=t,this.index=e,this.endIndex=n};r.__name__=["lime","text","unifill","InternalEncodingIter"],(r.prototype={hasNext:function(){return this.index<this.endIndex},next:function(){return this.i=this.index,this.index+=n(98).default.codePointWidthAt(this.string,this.index),this.i}}).__class__=i["lime.text.unifill.InternalEncodingIter"]=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(98)}var a=function(t){this.i=0,this.string=t,this.index=0,this.endIndex=t.length};a.__name__=["lime","text","unifill","CodePointIter"],(a.prototype={hasNext:function(){return this.index<this.endIndex},next:function(){return this.i=this.index,this.index+=r().default.codePointWidthAt(this.string,this.index),r().default.codePointAt(this.string,this.i)}}).__class__=i["lime.text.unifill.CodePointIter"]=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=(n(2).default,n(3).default);function a(){return n(184)}var s=function(t){a().default.call(this),this.code=t};s.__name__=["lime","text","unifill","InvalidCodePoint"],s.__super__=a().default,(s.prototype=r(a().default.prototype,{toString:function(){return"InvalidCodePoint(code: "+this.code+")"}})).__class__=i["lime.text.unifill.InvalidCodePoint"]=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__=["haxe","Utf8"],(r.prototype={}).__class__=i["haxe.Utf8"]=r,r.sub=function(t,e,i){return n(7).default.substr(t,e,i)},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["openfl._internal.timeline.FrameObjectType"]={__ename__:["openfl","_internal","timeline","FrameObjectType"],__constructs__:["CREATE","UPDATE","DESTROY"]};r.DESTROY=["DESTROY",2],r.DESTROY.toString=i,r.DESTROY.__enum__=r,r.CREATE=["CREATE",0],r.CREATE.toString=i,r.CREATE.__enum__=r,r.UPDATE=["UPDATE",1],r.UPDATE.toString=i,r.UPDATE.__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=function(t,e,n,i,r,a){this.initFrame=t,this.initFrameObjectID=e,this.characterID=n,this.depth=i,this.displayObject=r,this.clipDepth=a};r.__name__=["openfl","display","_MovieClip","FrameSymbolInstance"],(r.prototype={}).__class__=i["openfl.display._MovieClip.FrameSymbolInstance"]=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(125)}var s=function(t){a().default.call(this,t)};s.__name__=["lime","net","_HTTPRequest_openfl_utils_ByteArray"],s.__super__=a().default,(s.prototype=r(a().default.prototype,{fromBytes:function(t){return n(17).default.fromBytes(t)}})).__class__=i["lime.net._HTTPRequest_openfl_utils_ByteArray"]=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(125)}var s=function(t){a().default.call(this,t)};s.__name__=["lime","net","_HTTPRequest_lime_text_Font"],s.__super__=a().default,(s.prototype=r(a().default.prototype,{fromBytes:function(t){return n(136).default.fromBytes(t)}})).__class__=i["lime.net._HTTPRequest_lime_text_Font"]=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(4)}function a(){return n(6)}function s(){return n(18)}function o(){return n(12)}var l=function(){this.enabled=!0,this.audio=new(s().default),this.font=new(s().default),this.image=new(s().default),this.version=0};l.__name__=["lime","utils","AssetCache"],(l.prototype={exists:function(t,e){return!("IMAGE"!=e&&null!=e||!this.image.exists(t))||(!("FONT"!=e&&null!=e||!this.font.exists(t))||!("SOUND"!=e&&"MUSIC"!=e&&null!=e||!this.audio.exists(t)))},set:function(t,e,i){switch(e){case"FONT":this.font.set(t,i);break;case"IMAGE":if(!r().default.is(i,n(56).default))throw new(a().default)("Cannot cache non-Image asset: "+r().default.string(i)+" as Image");this.image.set(t,i);break;case"MUSIC":case"SOUND":if(!r().default.is(i,n(88).default))throw new(a().default)("Cannot cache non-AudioBuffer asset: "+r().default.string(i)+" as AudioBuffer");this.audio.set(t,i);break;default:throw new(a().default)(e+" assets are not cachable")}},clear:function(t){if(null==t)this.audio=new(s().default),this.font=new(s().default),this.image=new(s().default);else{for(var e=this.audio.keys();e.hasNext();){var n=e.next();o().default.startsWith(n,t)&&this.audio.remove(n)}for(var i=this.font.keys();i.hasNext();){var r=i.next();o().default.startsWith(r,t)&&this.font.remove(r)}for(var a=this.image.keys();a.hasNext();){var l=a.next();o().default.startsWith(l,t)&&this.image.remove(l)}}}}).__class__=i["lime.utils.AssetCache"]=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;var r=function(t){var e=t.indexOf(":");this.libraryName=t.substring(0,e),this.symbolName=t.substring(e+1),this.library=n(61).default.getLibrary(this.libraryName)};r.__name__=["lime","utils","_Assets","LibrarySymbol"],(r.prototype={isLocal:function(t){return this.library.isLocal(this.symbolName,t)},exists:function(t){return this.library.exists(this.symbolName,t)}}).__class__=i["lime.utils._Assets.LibrarySymbol"]=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__=["haxe","_Unserializer","NullResolver"],(r.prototype={resolveClass:function(t){return null},resolveEnum:function(t){return null}}).__class__=i["haxe._Unserializer.NullResolver"]=r,r.get_instance=function(){return null==r.instance&&(r.instance=new r),r.instance},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(10)}var a=function(){};a.__name__=["haxe","_Unserializer","DefaultResolver"],(a.prototype={resolveClass:function(t){return r().default.resolveClass(t)},resolveEnum:function(t){return r().default.resolveEnum(t)}}).__class__=i["haxe._Unserializer.DefaultResolver"]=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(27)}function a(){return n(7)}function s(){return n(186)}function o(){return n(4)}var l=function(){};l.__name__=["openfl","_internal","text","HTMLParser"],(l.prototype={}).__class__=i["openfl._internal.text.HTMLParser"]=l,l.parse=function(t,e,n){t=l.__regexBreakTag.replace(t,"\n"),t=l.__regexEntities[0].replace(t,'"'),t=l.__regexEntities[1].replace(t,"'"),t=l.__regexEntities[2].replace(t,"&");var i,r=(t=l.__regexEntities[5].replace(t," ")).split("<");if(1==r.length){t=l.__regexHTMLTag.replace(t,""),n.get_length()>1&&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;_<f;){var d=_++;i=r[d],i=l.__regexEntities[3].replace(i,"<"),i=l.__regexEntities[4].replace(i,">"),r[d]=i}for(var h,c=[e.clone()],p=!1,g=0;g<r.length;){var m=r[g];if(++g,""!=m){var v,w="/"==a().default.substr(m,0,1),y=m.indexOf(">"),b=y+1,x=m.indexOf(" "),E=m.substring(w?1:0,x>-1&&x<y?x:y);if(w)c.pop(),v=c[c.length-1].clone(),"p"==E.toLowerCase()&&n.get_length()>0&&(t+="\n",p=!0),b<m.length&&(h=a().default.substr(m,b,null),n.push(new(s().default)(v,t.length,t.length+h.length)),t+=h,p=!1);else if(v=c[c.length-1].clone(),y>-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<S.length;){var D=S[I];++I,M.push(o().default.parseInt(D))}v.tabStops=M}break;case"u":v.underline=!0}c.push(v),b<m.length&&(h=m.substring(b),n.push(new(s().default)(v,t.length,t.length+h.length)),t+=h,p=!1)}else n.push(new(s().default)(v,t.length,t.length+m.length)),t+=m,p=!1}}return 0==n.get_length()&&n.push(new(s().default)(c[0],0,0)),t},l.__getAttributeMatch=function(t){return null!=t.matched(2)?t.matched(2):t.matched(3)},l.__regexAlign=new(r().default)("align=(\"([^\"]+)\"|'([^']+)')","i"),l.__regexBreakTag=new(r().default)("<br\\s*/?>","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;E<T;){var A=E++;x-=_.lineHeights.get(A)}for(var R=0,S=new(n(27).default)("(iPad|iPhone|iPod|Firefox)","g").match(a().default.get_window().navigator.userAgent),M=0,I=_.layoutGroups;M<I.get_length();){var D=I.get(M);if(++M,!(D.lineIndex<t.get_scrollV()-1)){if(D.lineIndex>t.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<j;){var V=G++;if(D.positions.length<=V)break;y+=D.getAdvance(V)}for(var X=0,W=t.get_scrollV(),H=D.lineIndex+1;W<H;){var z=W++;X+=_.lineHeights.get(z-1)}u.context.beginPath();var Y=o().default.hex(16777215&D.format.color,6);u.context.strokeStyle="#"+Y,u.context.moveTo(D.offsetX+y-t.get_scrollH(),X+2),u.context.lineWidth=1,u.context.lineTo(D.offsetX+y-t.get_scrollH(),X+l().default.getFormatHeight(t.get_defaultTextFormat())-1),u.context.stroke(),u.context.closePath()}}else if(D.startIndex<=t.__caretIndex&&D.endIndex>=t.__caretIndex||D.startIndex<=t.__selectionIndex&&D.endIndex>=t.__selectionIndex||D.startIndex>t.__caretIndex&&D.endIndex<t.__selectionIndex||D.startIndex>t.__selectionIndex&&D.endIndex<t.__caretIndex){var q,K,Z=s().default.int(Math.min(t.__selectionIndex,t.__caretIndex)),Q=s().default.int(Math.max(t.__selectionIndex,t.__caretIndex));D.startIndex>Z&&(Z=D.startIndex),D.endIndex<Q&&(Q=D.endIndex),q=t.getCharBoundaries(Z),Q>=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<it;){var rt=nt++;et+=_.lineHeights.get(rt)}u.context.beginPath();var at=o().default.hex(16777215&t.get_defaultTextFormat().color,6);u.context.strokeStyle="#"+at,u.context.moveTo(tt+2.5,et+2.5),u.context.lineWidth=1,u.context.lineTo(tt+2.5,et+l().default.getFormatHeight(t.get_defaultTextFormat())-1),u.context.stroke(),u.context.closePath()}}d.__bitmap=n(44).default.fromCanvas(t.__graphics.__canvas),d.__visible=!0,t.__dirty=!1,d.set___dirty(!1)}else t.__graphics.__canvas=null,t.__graphics.__context=null,t.__graphics.__bitmap=null,t.__graphics.set___dirty(!1),t.__dirty=!1}},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=function(t,e,n){this.format=t,this.startIndex=e,this.endIndex=n};r.__name__=["openfl","_internal","text","TextLayoutGroup"],(r.prototype={getAdvance:function(t){return this.positions[t]}}).__class__=i["openfl._internal.text.TextLayoutGroup"]=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(27)}function a(){return n(11)}function s(){return n(138)}function o(){return n(4)}function l(){return n(52)}function u(){return n(12)}var _=function(){};_.__name__=["openfl","_internal","renderer","dom","DOMTextField"],(_.prototype={}).__class__=i["openfl._internal.renderer.dom.DOMTextField"]=_,_.clear=function(t,e){null!=t.__div&&(e.element.removeChild(t.__div),t.__div=null,t.__style=null)},_.measureText=function(t){var e=t.__textEngine,n=t.__div;null==n&&((n=a().default.get_document().createElement("div")).innerHTML=new(r().default)("\n","g").replace(e.text,"<br>"),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,"<span style='"+x+"'>"),y=_.__regexFont.matchedRight()}v=_.__regexCloseFont.replace(v,"</span>")}else v=u().default.htmlEscape(v);v=u().default.replace(v,"<p ","<p style='margin-top:0; margin-bottom:0;' ");var A=t.__textFormat.leading;switch(t.__textFormat.leading+=o().default.int(w),t.__div.innerHTML=new(r().default)("\r\n","g").replace(v,"<br>"),t.__div.innerHTML=new(r().default)("\n","g").replace(t.__div.innerHTML,"<br>"),t.__div.innerHTML=new(r().default)("\r","g").replace(t.__div.innerHTML,"<br>"),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)("<font ([^>]+)>","gi"),_.__regexCloseFont=new(r().default)("</font>","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<n;){var i=e++;this.getChildAt(i).__stopAllMovieClips()}this.unload()},__dispatchError:function(t){var e=new(openfl_events_IOErrorEvent().default)("ioError");e.text=t,this.contentLoaderInfo.dispatchEvent(e)},BitmapData_onError:function(t){this.__dispatchError(Std().default.string(t))},BitmapData_onLoad:function(t){this.content=new(openfl_display_Bitmap().default)(t),this.contentLoaderInfo.content=this.content,this.addChild(this.content),this.contentLoaderInfo.dispatchEvent(new(openfl_events_Event().default)("complete"))},BitmapData_onProgress:function(t,e){var n=new(openfl_events_ProgressEvent().default)("progress");n.bytesLoaded=t,n.bytesTotal=e,this.contentLoaderInfo.dispatchEvent(n)},loader_onComplete:function(event){var _gthis=this,loader=event.target;if(null!=this.contentLoaderInfo.contentType&&this.contentLoaderInfo.contentType.indexOf("/json")>-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;e<n.length;){var i=n[e];++e,this.bytesTotal+=i.bytesTotal}this.loadedLibraries=-1,this.preloadStarted=!1;for(var r=0,s=this.libraries;r<s.length;){var o=[s[r]];++r,a().default.verbose("Preloading asset library",{fileName:"Preloader.hx",lineNumber:153,className:"lime.app.Preloader",methodName:"load"}),o[0].load().onProgress(function(e){return function(n,i){t.bytesLoadedCache.exists(e[0])?t.bytesLoaded+=n-t.bytesLoadedCache.get(e[0]):t.bytesLoaded+=n,t.bytesLoadedCache.set(e[0],n),t.simulateProgress||t.onProgress.dispatch(t.bytesLoaded,t.bytesTotal)}}(o)).onComplete(function(e){return function(n){t.bytesLoadedCache.exists(e[0])?t.bytesLoaded+=e[0].bytesTotal-t.bytesLoadedCache.get(e[0]):t.bytesLoaded+=e[0].bytesTotal,t.loadedAssetLibrary()}}(o)).onError(function(t){a().default.error(t,{fileName:"Preloader.hx",lineNumber:191,className:"lime.app.Preloader",methodName:"load"})})}for(var l=0,u=this.libraryNames;l<u.length;){u[l];++l,this.bytesTotal+=200}this.loadedLibraries++,this.preloadStarted=!0,this.updateProgress()},loadedAssetLibrary:function(t){this.loadedLibraries++;var e=this.loadedLibraries;this.preloadStarted||++e;var n=this.libraries.length+this.libraryNames.length;null!=t?a().default.verbose("Loaded asset library: "+t+" ["+e+"/"+n+"]",{fileName:"Preloader.hx",lineNumber:223,className:"lime.app.Preloader",methodName:"loadedAssetLibrary"}):a().default.verbose("Loaded asset library ["+e+"/"+n+"]",{fileName:"Preloader.hx",lineNumber:227,className:"lime.app.Preloader",methodName:"loadedAssetLibrary"}),this.updateProgress()},start:function(){this.complete||(this.complete=!0,this.onComplete.dispatch())},update:function(t,e){},updateProgress:function(){var t=this;if(this.simulateProgress||this.onProgress.dispatch(this.bytesLoaded,this.bytesTotal),this.loadedLibraries==this.libraries.length&&!this.initLibraryNames){this.initLibraryNames=!0;for(var e=0,i=this.libraryNames;e<i.length;){var r=[i[e]];++e,a().default.verbose("Preloading asset library: "+r[0],{fileName:"Preloader.hx",lineNumber:276,className:"lime.app.Preloader",methodName:"updateProgress"}),n(61).default.loadLibrary(r[0]).onProgress(function(e){return function(n,i){i>0&&(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<n.get_length();){var i=n.get(e);++e,i.__renderDOM(t)}this.__previousStates.set_length(0),null!=this.__currentState&&(this.__currentState.stage!=this.stage&&this.__currentState.__setStageReference(this.stage),this.__currentState.__renderDOM(t)),t.maskManager.popObject(this)},__renderGL:function(t){!this.__renderable||this.__worldAlpha<=0||null==this.__currentState||(t.maskManager.pushObject(this),this.__currentState.__renderGL(t),t.maskManager.popObject(this))},__renderGLMask:function(t){null!=this.__currentState&&this.__currentState.__renderGLMask(t)},__setStageReference:function(t){s().default.prototype.__setStageReference.call(this,t),null!=this.__currentState&&this.__currentState.__setStageReference(t),null!=this.get_hitTestState()&&this.get_hitTestState()!=this.__currentState&&this.get_hitTestState().__setStageReference(t)},__setTransformDirty:function(){s().default.prototype.__setTransformDirty.call(this),null!=this.__currentState&&this.__currentState.__setTransformDirty(),null!=this.get_hitTestState()&&this.get_hitTestState()!=this.__currentState&&this.get_hitTestState().__setTransformDirty()},__update:function(t,e,n){s().default.prototype.__update.call(this,t,e,n),e&&(null!=this.__currentState&&this.__currentState.__update(t,!0,n),null!=this.get_hitTestState()&&this.get_hitTestState()!=this.__currentState&&this.get_hitTestState().__update(t,!0,n))},__updateChildren:function(t){s().default.prototype.__updateChildren.call(this,t),null!=this.__currentState&&this.__currentState.__updateChildren(t),null!=this.get_hitTestState()&&this.get_hitTestState()!=this.__currentState&&this.get_hitTestState().__updateChildren(t)},__updateTransforms:function(t){s().default.prototype.__updateTransforms.call(this,t),null!=this.__currentState&&this.__currentState.__updateTransforms(),null!=this.get_hitTestState()&&this.get_hitTestState()!=this.__currentState&&this.get_hitTestState().__updateTransforms()},get_downState:function(){return this.__downState},set_downState:function(t){return null!=this.__downState&&this.__currentState==this.__downState&&this.set___currentState(this.__downState),this.__downState=t},get_hitTestState:function(){return this.__hitTestState},set_hitTestState:function(t){return null!=this.__hitTestState&&this.__hitTestState!=t&&this.__hitTestState!=this.get_downState()&&this.__hitTestState!=this.get_upState()&&this.__hitTestState!=this.get_overState()&&(this.__hitTestState.__renderParent=null),null!=t&&(t.__renderParent=this,t.__setRenderDirty()),this.__hitTestState=t},get_overState:function(){return this.__overState},set_overState:function(t){return null!=this.__overState&&this.__currentState==this.__overState&&this.set___currentState(t),this.__overState=t},get_soundTransform:function(){return null==this.__soundTransform&&(this.__soundTransform=new(l().default)),new(l().default)(this.__soundTransform.volume,this.__soundTransform.pan)},set_soundTransform:function(t){return this.__soundTransform=new(l().default)(t.volume,t.pan),t},get_upState:function(){return this.__upState},set_upState:function(t){return null!=this.__upState&&this.__currentState==this.__upState&&this.set___currentState(t),this.__upState=t},set___currentState:function(t){if(null!=this.__currentState&&this.__currentState!=this.get_hitTestState()&&(this.__currentState.__renderParent=null),null!=t&&null!=t.parent&&t.parent.removeChild(t),u().default.__supportDOM&&null==this.__previousStates&&(this.__previousStates=n(21).default._new()),t!=this.__currentState){if(u().default.__supportDOM){null!=this.__currentState&&(this.__currentState.__setStageReference(null),this.__previousStates.push(this.__currentState));var e=this.__previousStates.indexOf(t,0);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<e.length;){var i=e[n];if(++n,i.stage==this||null==i.stage)try{i.__dispatch(t)}catch(t){t instanceof _().default&&(t=t.val),this.__handleError(t)}}},__createRenderer:function(){var t=this.window.renderer.context;switch(p().default.enumIndex(t)){case 0:var e=t[2];this.__renderer=new(n(162).default)(this,e);break;case 1:var i=t[2];this.__renderer=new(n(68).default)(this,i);break;case 2:var r=t[2];this.__renderer=new(n(52).default)(this,r);break;case 4:t[2];break;case 5:t[2]}},__dispatchEvent:function(t){try{return s().default.prototype.__dispatchEvent.call(this,t)}catch(t){return t instanceof _().default&&(t=t.val),this.__handleError(t),!1}},__dispatchStack:function(t,e){try{var n=e.length;if(0==n)t.eventPhase=2,t.target.__dispatch(t);else{t.eventPhase=1,t.target=e[e.length-1];for(var i=0,r=n-1;i<r;){if(e[i++].__dispatch(t),t.__isCanceled)return}if(t.eventPhase=2,t.target.__dispatch(t),t.__isCanceled)return;if(t.bubbles){t.eventPhase=3;for(var a=n-2;a>=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&&(n<this.__dragBounds.x?n=this.__dragBounds.x:n>this.__dragBounds.get_right()&&(n=this.__dragBounds.get_right()),i<this.__dragBounds.y?i=this.__dragBounds.y:i>this.__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<s.length;){var c=s[h];if(++h,null!=(d=c.__getCursor())){if(T().default.fromLimeCursor(d)!=this.__cursor&&!A().default.__hidden){var g;switch(p().default.enumIndex(d)){case 0:g="default";break;case 1:g="crosshair";break;case 3:g="move";break;case 4:g="pointer";break;case 5:g="nesw-resize";break;case 6:g="ns-resize";break;case 7:g="nwse-resize";break;case 8:g="ew-resize";break;case 9:g="text";break;case 10:case 11:g="wait";break;default:g="auto"}this.window.backend.element.style.cursor=g,this.__cursor=T().default.fromLimeCursor(d)}break}}null==d&&(null==this.__cursor||A().default.__hidden||(this.window.backend.element.style.cursor="default",this.__cursor=null))}o!=this.__mouseOverTarget&&null!=this.__mouseOverTarget&&(u=y().default.__create("mouseOut",r,this.__mouseX,this.__mouseY,this.__mouseOverTarget.__globalToLocal(a,_),this.__mouseOverTarget),this.__dispatchTarget(this.__mouseOverTarget,u));for(var v=0,w=this.__rollOutStack;v<w.length;){var b=w[v];++v,-1==s.indexOf(b)&&(R().default.remove(this.__rollOutStack,b),(u=y().default.__create("rollOut",r,this.__mouseX,this.__mouseY,this.__mouseOverTarget.__globalToLocal(a,_),this.__mouseOverTarget)).bubbles=!1,this.__dispatchTarget(b,u))}for(var x=0;x<s.length;){var S=s[x];++x,-1==this.__rollOutStack.indexOf(S)&&null!=this.__mouseOverTarget&&(S.hasEventListener("rollOver")&&((u=y().default.__create("rollOver",r,this.__mouseX,this.__mouseY,this.__mouseOverTarget.__globalToLocal(a,_),S)).bubbles=!1,this.__dispatchTarget(S,u)),S.hasEventListener("rollOut")&&this.__rollOutStack.push(S))}if(o!=this.__mouseOverTarget&&(null!=o&&((u=y().default.__create("mouseOver",r,this.__mouseX,this.__mouseY,o.__globalToLocal(a,_),o)).bubbles=!0,this.__dispatchTarget(o,u)),this.__mouseOverTarget=o),null!=this.__dragObject){this.__drag(a);var M=null;if(this.__mouseOverTarget==this.__dragObject){var I=this.__dragObject.mouseEnabled,D=this.__dragObject.mouseChildren;this.__dragObject.mouseEnabled=!1,this.__dragObject.mouseChildren=!1;var C=[];this.__hitTest(this.__mouseX,this.__mouseY,!0,C,!0,this)&&(M=C[C.length-1]),this.__dragObject.mouseEnabled=I,this.__dragObject.mouseChildren=D}else this.__mouseOverTarget!=this&&(M=this.__mouseOverTarget);this.__dragObject.dropTarget=M}E().default.__pool.release(a),E().default.__pool.release(_)}},__onMouseWheel:function(t,e){var n=this.__mouseX,i=this.__mouseY,r=[],a=null;this.__hitTest(this.__mouseX,this.__mouseY,!0,r,!0,this)?a=r[r.length-1]:(a=this,r=[this]),null==a&&(a=this);var s=E().default.__pool.get();s.setTo(n,i),this.__displayMatrix.__transformInversePoint(s);var o=d().default.int(e);this.__dispatchStack(y().default.__create("mouseWheel",0,this.__mouseX,this.__mouseY,a.__globalToLocal(s,s),a,o),r),E().default.__pool.release(s)},__onTouch:function(t,e){var n=E().default.__pool.get();n.setTo(Math.round(e.x*this.window.get_width()*this.window.get_scale()),Math.round(e.y*this.window.get_height()*this.window.get_scale())),this.__displayMatrix.__transformInversePoint(n);var i=n.x,r=n.y,a=[],s=null;this.__hitTest(i,r,!1,a,!0,this)?s=a[a.length-1]:(s=this,a=[this]),null==s&&(s=this);var o=e.id,l=null;this.__touchData.exists(o)?l=this.__touchData.get(o):((l=S().default.__pool.get()).reset(),l.touch=e,this.__touchData.set(o,l));var u=null,_=!1;switch(t){case"touchBegin":l.touchDownTarget=s;break;case"touchEnd":l.touchDownTarget==s&&(u="touchTap"),l.touchDownTarget=null,_=!0}var f=E().default.__pool.get(),d=this.__primaryTouch==e,h=M().default.__create(t,null,i,r,s.__globalToLocal(n,f),s);h.touchPointID=o,h.isPrimaryTouchPoint=d,this.__dispatchStack(h,a),null!=u&&((h=M().default.__create(u,null,i,r,s.__globalToLocal(n,f),s)).touchPointID=o,h.isPrimaryTouchPoint=d,this.__dispatchStack(h,a));var c=l.touchOverTarget;s!=c&&null!=c&&((h=M().default.__create("touchOut",null,i,r,c.__globalToLocal(n,f),c)).touchPointID=o,h.isPrimaryTouchPoint=d,this.__dispatchTarget(c,h));for(var p=l.rollOutStack,g=0;g<p.length;){var m=p[g];++g,-1==a.indexOf(m)&&(R().default.remove(p,m),(h=M().default.__create("touchRollOut",null,i,r,c.__globalToLocal(n,f),c)).touchPointID=o,h.isPrimaryTouchPoint=d,h.bubbles=!1,this.__dispatchTarget(m,h))}for(var v=0;v<a.length;){var w=a[v];++v,-1==p.indexOf(w)&&(w.hasEventListener("touchRollOver")&&((h=M().default.__create("touchRollOver",null,i,r,c.__globalToLocal(n,f),w)).touchPointID=o,h.isPrimaryTouchPoint=d,h.bubbles=!1,this.__dispatchTarget(w,h)),w.hasEventListener("touchRollOut")&&p.push(w))}s!=c&&(null!=s&&((h=M().default.__create("touchOver",null,i,r,s.__globalToLocal(n,f),s)).touchPointID=o,h.isPrimaryTouchPoint=d,h.bubbles=!0,this.__dispatchTarget(s,h)),l.touchOverTarget=s),E().default.__pool.release(n),E().default.__pool.release(f),_&&(this.__touchData.remove(o),l.reset(),S().default.__pool.release(l))},__resize:function(){var t=this.stageWidth,e=this.stageHeight,n=d().default.int(this.window.get_width()*this.window.get_scale()),i=d().default.int(this.window.get_height()*this.window.get_scale());if(this.__logicalWidth=n,this.__logicalHeight=i,this.__displayMatrix.identity(),0==this.__logicalWidth&&0==this.__logicalHeight)this.stageWidth=n,this.stageHeight=i;else{this.stageWidth=this.__logicalWidth,this.stageHeight=this.__logicalHeight;var r=n/this.stageWidth,a=i/this.stageHeight,s=Math.min(r,a),o=Math.round((n-this.stageWidth*s)/2),l=Math.round((i-this.stageHeight*s)/2);this.__displayMatrix.scale(s,s),this.__displayMatrix.translate(o,l)}for(var u=0,_=this.stage3Ds;u<_.get_length();){var h=_.get(u);++u,h.__resize(this.stageWidth,this.stageHeight)}null!=this.__renderer&&this.__renderer.resize(n,i),this.stageWidth==t&&this.stageHeight==e||this.__dispatchEvent(new(f().default)("resize"))},__setLogicalSize:function(t,e){this.__logicalWidth=t,this.__logicalHeight=e,this.__resize()},__startDrag:function(t,e,n){if(this.__dragBounds=null==n?null:n.clone(),this.__dragObject=t,null!=this.__dragObject)if(e)this.__dragOffsetX=0,this.__dragOffsetY=0;else{var i=E().default.__pool.get();i.setTo(this.get_mouseX(),this.get_mouseY());var r=this.__dragObject.parent;null!=r&&r.__getWorldTransform().__transformInversePoint(i),this.__dragOffsetX=this.__dragObject.get_x()-i.x,this.__dragOffsetY=this.__dragObject.get_y()-i.y,E().default.__pool.release(i)}},__stopDrag:function(t){this.__dragBounds=null,this.__dragObject=null},__update:function(t,e,n){t?this.__transformDirty&&(s().default.prototype.__update.call(this,!0,e,n),e&&(this.__transformDirty=!1)):this.__transformDirty||this.__renderDirty?(s().default.prototype.__update.call(this,!1,e,n),e&&g().default.__supportDOM&&(this.__wasDirty=!0)):this.__wasDirty&&(s().default.prototype.__update.call(this,!1,e,n),e&&(this.__wasDirty=!1))},get_color:function(){return this.__color},set_color:function(t){null==t?(this.__transparent=!0,t=0):this.__transparent=!1;var e=(16711680&t)>>>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<m;){var v=g++;l[c+v]=h[p+v]}null!=t.__program&&t.__program.__markDirty(s,n,i)},m.setProgramConstantsFromMatrix=function(t,e,n,i,r){null==r&&(r=!1);var a="vertex"==e,s=a?t.__vertexConstants:t.__fragmentConstants,o=i.rawData,l=4*n;r?(s[l++]=o.get(0),s[l++]=o.get(4),s[l++]=o.get(8),s[l++]=o.get(12),s[l++]=o.get(1),s[l++]=o.get(5),s[l++]=o.get(9),s[l++]=o.get(13),s[l++]=o.get(2),s[l++]=o.get(6),s[l++]=o.get(10),s[l++]=o.get(14),s[l++]=o.get(3),s[l++]=o.get(7),s[l++]=o.get(11),s[l++]=o.get(15)):(s[l++]=o.get(0),s[l++]=o.get(1),s[l++]=o.get(2),s[l++]=o.get(3),s[l++]=o.get(4),s[l++]=o.get(5),s[l++]=o.get(6),s[l++]=o.get(7),s[l++]=o.get(8),s[l++]=o.get(9),s[l++]=o.get(10),s[l++]=o.get(11),s[l++]=o.get(12),s[l++]=o.get(13),s[l++]=o.get(14),s[l++]=o.get(15)),null!=t.__program&&t.__program.__markDirty(a,n,4)},m.setProgramConstantsFromVector=function(t,e,n,i,r){null==r&&(r=-1),-1==r&&(r=i.get_length()>>2);for(var a="vertex"==e,s=a?t.__vertexConstants:t.__fragmentConstants,o=i,l=0,u=4*n,_=0,f=r;_<f;){_++;s[u++]=o.get(l++),s[u++]=o.get(l++),s[u++]=o.get(l++),s[u++]=o.get(l++)}null!=t.__program&&t.__program.__markDirty(a,n,r)},m.setRenderToBackBuffer=function(t){var e=t.__renderSession.gl;e.bindFramebuffer(e.FRAMEBUFFER,null),s().default.CheckGLError(),e.frontFace(e.CCW),s().default.CheckGLError(),t.__renderToTexture=null,t.__scissorRectangle=null,m.__updateBackbufferViewport(),m.__updateScissorRectangle(),m.__updateDepthAndStencilState(),t.__positionScale[1]=1,null!=t.__program&&t.__program.__setPositionScale(t.__positionScale)},m.setRenderToTexture=function(t,e,i,r,l){null==l&&(l=0),null==r&&(r=0),null==i&&(i=!1);var u=t.__renderSession.gl,f=0,d=0;if(null==t.__framebuffer&&(t.__framebuffer=u.createFramebuffer(),s().default.CheckGLError()),u.bindFramebuffer(u.FRAMEBUFFER,t.__framebuffer),s().default.CheckGLError(),o().default.is(e,h().default)){var g=e;f=g.__width,d=g.__height,u.framebufferTexture2D(u.FRAMEBUFFER,u.COLOR_ATTACHMENT0,u.TEXTURE_2D,e.__textureID,0),s().default.CheckGLError()}else if(o().default.is(e,c().default)){var v=e;f=v.__width,d=v.__height,u.framebufferTexture2D(u.FRAMEBUFFER,u.COLOR_ATTACHMENT0,u.TEXTURE_2D,e.__textureID,0),s().default.CheckGLError()}else{if(!o().default.is(e,n(106).default))throw new(_().default)(new(p().default)("Invalid texture"));var w=e;f=w.__size,d=w.__size;for(var y=0;y<6;){var b=y++;u.framebufferTexture2D(u.FRAMEBUFFER,u.COLOR_ATTACHMENT0,u.TEXTURE_CUBE_MAP_POSITIVE_X+b,e.__textureID,0),s().default.CheckGLError()}}if(i&&(t.__supportsPackedDepthStencil?(null==t.__depthStencilRenderBuffer&&(t.__depthStencilRenderBuffer=u.createRenderbuffer(),s().default.CheckGLError()),u.bindRenderbuffer(u.RENDERBUFFER,t.__depthStencilRenderBuffer),s().default.CheckGLError(),u.renderbufferStorage(u.RENDERBUFFER,a().default.DEPTH_STENCIL,f,d),s().default.CheckGLError(),u.framebufferRenderbuffer(u.FRAMEBUFFER,u.DEPTH_STENCIL_ATTACHMENT,u.RENDERBUFFER,t.__depthStencilRenderBuffer),s().default.CheckGLError()):(null==t.__depthRenderBuffer&&(t.__depthRenderBuffer=u.createRenderbuffer(),s().default.CheckGLError()),null==t.__stencilRenderBuffer&&(t.__stencilRenderBuffer=u.createRenderbuffer(),s().default.CheckGLError()),u.bindRenderbuffer(u.RENDERBUFFER,t.__depthRenderBuffer),s().default.CheckGLError(),u.renderbufferStorage(u.RENDERBUFFER,u.DEPTH_COMPONENT16,f,d),s().default.CheckGLError(),u.bindRenderbuffer(u.RENDERBUFFER,t.__stencilRenderBuffer),s().default.CheckGLError(),u.renderbufferStorage(u.RENDERBUFFER,u.STENCIL_INDEX8,f,d),s().default.CheckGLError(),u.framebufferRenderbuffer(u.FRAMEBUFFER,u.DEPTH_ATTACHMENT,u.RENDERBUFFER,t.__depthRenderBuffer),s().default.CheckGLError(),u.framebufferRenderbuffer(u.FRAMEBUFFER,u.STENCIL_ATTACHMENT,u.RENDERBUFFER,t.__stencilRenderBuffer),s().default.CheckGLError()),u.bindRenderbuffer(u.RENDERBUFFER,null),s().default.CheckGLError()),m.__setViewport(0,0,f,d),t.__enableErrorChecking){var x=u.checkFramebufferStatus(u.FRAMEBUFFER);x!=u.FRAMEBUFFER_COMPLETE&&n(47).default.trace("Error: Context3D.setRenderToTexture status:"+x+" width:"+f+" height:"+d,{fileName:"GLContext3D.hx",lineNumber:753,className:"openfl._internal.stage3D.opengl.GLContext3D",methodName:"setRenderToTexture"})}t.__positionScale[1]=-1,null!=t.__program&&t.__program.__setPositionScale(t.__positionScale),u.frontFace(u.CW),s().default.CheckGLError(),t.__renderToTexture=e,t.__scissorRectangle=null,t.__rttDepthAndStencil=i,m.__updateScissorRectangle(),m.__updateDepthAndStencilState()},m.setSamplerStateAt=function(t,e,n,i,r){if(e<0||e>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<<e)},m.setVertexBufferAt=function(t,e,n,i,r){null==r&&(r="float4"),null==i&&(i=0);var a=t.__renderSession.gl;if(null==n)return a.disableVertexAttribArray(e),s().default.CheckGLError(),a.bindBuffer(a.ARRAY_BUFFER,null),void s().default.CheckGLError();a.enableVertexAttribArray(e),s().default.CheckGLError(),a.bindBuffer(a.ARRAY_BUFFER,n.__id),s().default.CheckGLError();var o=4*i;switch(r){case"bytes4":a.vertexAttribPointer(e,4,a.UNSIGNED_BYTE,!0,n.__stride,l().default.fromInt(o)),s().default.CheckGLError();break;case"float1":a.vertexAttribPointer(e,1,a.FLOAT,!1,n.__stride,l().default.fromInt(o)),s().default.CheckGLError();break;case"float2":a.vertexAttribPointer(e,2,a.FLOAT,!1,n.__stride,l().default.fromInt(o)),s().default.CheckGLError();break;case"float3":a.vertexAttribPointer(e,3,a.FLOAT,!1,n.__stride,l().default.fromInt(o)),s().default.CheckGLError();break;case"float4":a.vertexAttribPointer(e,4,a.FLOAT,!1,n.__stride,l().default.fromInt(o)),s().default.CheckGLError();break;default:throw new(_().default)(new(u().default))}},m.__flushSamplerState=function(){for(var t=0;0!=m.context.__samplerDirty;){if(0!=(m.context.__samplerDirty&1<<t)){a().default.__stateCache.updateActiveTextureSample(t)&&(m.gl.activeTexture(m.gl.TEXTURE0+t),s().default.CheckGLError());var e=m.context.__samplerTextures.get(t);if(null!=e){var n=e.__textureTarget;m.gl.bindTexture(n,e.__getTexture()),s().default.CheckGLError(),e.__setSamplerState(m.context.__samplerStates[t])}else m.gl.bindTexture(m.gl.TEXTURE_2D,null),s().default.CheckGLError();if(m.context.__samplerStates[t].textureAlpha)if(m.gl.activeTexture(m.gl.TEXTURE0+t+4),s().default.CheckGLError(),null!=e&&null!=e.__alphaTexture){var i=e.__alphaTexture.__textureTarget;m.gl.bindTexture(i,e.__alphaTexture.__getTexture()),s().default.CheckGLError(),e.__alphaTexture.__setSamplerState(m.context.__samplerStates[t]),m.gl.uniform1i(m.context.__program.__alphaSamplerEnabled[t].location,1),s().default.CheckGLError()}else m.gl.bindTexture(m.gl.TEXTURE_2D,null),s().default.CheckGLError(),m.gl.uniform1i(m.context.__program.__alphaSamplerEnabled[t].location,0),s().default.CheckGLError();m.context.__samplerDirty&=~(1<<t)}++t}},m.__getGLCompareMode=function(t){switch(t){case"always":return m.gl.ALWAYS;case"equal":return m.gl.EQUAL;case"greater":return m.gl.GREATER;case"greaterEqual":return m.gl.GEQUAL;case"less":return m.gl.LESS;case"lessEqual":return m.gl.LEQUAL;case"never":return m.gl.NEVER;case"notEqual":return m.gl.NOTEQUAL;default:return m.gl.EQUAL}},m.__getGLTriangleFace=function(t){switch(t){case"back":return m.gl.BACK;case"front":return m.gl.FRONT;case"frontAndBack":return m.gl.FRONT_AND_BACK;case"none":return m.gl.NONE;default:return m.gl.FRONT_AND_BACK}},m.__getGLStencilAction=function(t){switch(t){case"decrementSaturate":return m.gl.DECR;case"decrementWrap":return m.gl.DECR_WRAP;case"incrementSaturate":return m.gl.INCR;case"incrementWrap":return m.gl.INCR_WRAP;case"invert":return m.gl.INVERT;case"keep":return m.gl.KEEP;case"set":return m.gl.REPLACE;case"zero":return m.gl.ZERO;default:return m.gl.KEEP}},m.__hasGLExtension=function(t){return-1!=m.gl.getSupportedExtensions().indexOf(t)},m.__setViewport=function(t,e,n,i){null!=m.context.__renderToTexture&&(e*=-1),a().default.__stateCache.updateViewport(t,e,n,i)&&(m.gl.viewport(t,e,n,i),s().default.CheckGLError())},m.__updateDepthAndStencilState=function(){(null!=m.context.__renderToTexture?m.context.__rttDepthAndStencil:m.context.__backBufferEnableDepthAndStencil)?(m.gl.enable(m.gl.DEPTH_TEST),s().default.CheckGLError(),m.gl.enable(m.gl.STENCIL_TEST),s().default.CheckGLError()):(m.gl.disable(m.gl.DEPTH_TEST),s().default.CheckGLError(),m.gl.disable(m.gl.STENCIL_TEST),s().default.CheckGLError())},m.__updateBlendFactorsTEMP=function(t){m.context=t,m.gl=t.__renderSession.gl,m.__updateBlendFactors()},m.__updateBlendFactors=function(){if(null!=a().default.__stateCache._srcBlendFactor&&null!=a().default.__stateCache._destBlendFactor){var t=m.gl.ONE,e=m.gl.ZERO;switch(a().default.__stateCache._srcBlendFactor){case"destinationAlpha":t=m.gl.DST_ALPHA;break;case"destinationColor":t=m.gl.DST_COLOR;break;case"one":t=m.gl.ONE;break;case"oneMinusDestinationAlpha":t=m.gl.ONE_MINUS_DST_ALPHA;break;case"oneMinusDestinationColor":t=m.gl.ONE_MINUS_DST_COLOR;break;case"oneMinusSourceAlpha":t=m.gl.ONE_MINUS_SRC_ALPHA;break;case"sourceAlpha":t=m.gl.SRC_ALPHA;break;case"zero":t=m.gl.ZERO;break;default:throw new(_().default)(new(u().default))}switch(a().default.__stateCache._destBlendFactor){case"destinationAlpha":e=m.gl.DST_ALPHA;break;case"one":e=m.gl.ONE;break;case"oneMinusDestinationAlpha":e=m.gl.ONE_MINUS_DST_ALPHA;break;case"oneMinusSourceAlpha":e=m.gl.ONE_MINUS_SRC_ALPHA;break;case"oneMinusSourceColor":e=m.gl.ONE_MINUS_SRC_COLOR;break;case"sourceAlpha":e=m.gl.SRC_ALPHA;break;case"sourceColor":e=m.gl.SRC_COLOR;break;case"zero":e=m.gl.ZERO;break;default:throw new(_().default)(new(u().default))}m.gl.enable(m.gl.BLEND),s().default.CheckGLError(),m.gl.blendFunc(t,e),s().default.CheckGLError()}},m.__updateScissorRectangle=function(){if(null==m.context.__scissorRectangle)return m.gl.disable(m.gl.SCISSOR_TEST),void s().default.CheckGLError();m.gl.enable(m.gl.SCISSOR_TEST),s().default.CheckGLError();var t=0,e=0,n=0;if(null!=m.context.__renderToTexture){if(o().default.is(m.context.__renderToTexture,h().default))t=m.context.__renderToTexture.__height;else if(o().default.is(m.context.__renderToTexture,c().default)){t=m.context.__renderToTexture.__height}}else t=m.context.backBufferHeight,e=o().default.int(m.context.__stage3D.get_x()),n=o().default.int(m.context.__stage3D.get_y());m.gl.scissor(o().default.int(m.context.__scissorRectangle.x)+e,t-o().default.int(m.context.__scissorRectangle.y)-o().default.int(m.context.__scissorRectangle.height)+n,o().default.int(m.context.__scissorRectangle.width),o().default.int(m.context.__scissorRectangle.height)),s().default.CheckGLError()},m.__updateBackbufferViewportTEMP=function(t){m.context=t,m.gl=t.__renderSession.gl,m.__updateBackbufferViewport()},m.__updateBackbufferViewport=function(){g().default.__active||(g().default.__active=!0,m.context.__renderSession.renderer.clear()),null==m.context.__renderToTexture&&m.context.backBufferWidth>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<<i}}},o.setSamplerState=function(t,e,i){if(!i.equals(t.__samplerState)){var s=e.gl;i.minFilter==s.NEAREST||i.minFilter==s.LINEAR||i.mipmapGenerated||(s.generateMipmap(s.TEXTURE_CUBE_MAP),r().default.CheckGLError(),i.mipmapGenerated=!0),0!=i.maxAniso&&(s.texParameterf(s.TEXTURE_CUBE_MAP,n(62).default.TEXTURE_MAX_ANISOTROPY_EXT,i.maxAniso),r().default.CheckGLError())}a().default.setSamplerState(t,e,i)},o.__sideToTarget=function(t,e){switch(e){case 0:return t.TEXTURE_CUBE_MAP_NEGATIVE_X;case 1:return t.TEXTURE_CUBE_MAP_POSITIVE_X;case 2:return t.TEXTURE_CUBE_MAP_NEGATIVE_Y;case 3:return t.TEXTURE_CUBE_MAP_POSITIVE_Y;case 4:return t.TEXTURE_CUBE_MAP_NEGATIVE_Z;case 5:return t.TEXTURE_CUBE_MAP_POSITIVE_Z;default:throw new(n(6).default)(new(n(38).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;n(2).default;function r(){return n(37)}var a=function(){};a.__name__=["openfl","_internal","stage3D","opengl","GLIndexBuffer3D"],(a.prototype={}).__class__=i["openfl._internal.stage3D.opengl.GLIndexBuffer3D"]=a,a.create=function(t,e,n){var i=e.gl;t.__elementType=i.UNSIGNED_SHORT,t.__id=i.createBuffer(),r().default.CheckGLError(),t.__usage="dynamicDraw"==n?i.DYNAMIC_DRAW:i.STATIC_DRAW},a.dispose=function(t,e){e.gl.deleteBuffer(t.__id)},a.uploadFromByteArray=function(t,e,i,r,s,o){var l,u=r+2*s,_=n(17).default.toArrayBuffer(i);l=null!=_?null==o?new Int16Array(_,u):new Int16Array(_,u,o):null,a.uploadFromTypedArray(t,e,l)},a.uploadFromTypedArray=function(t,e,i){if(null!=i){var a=e.gl;a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,t.__id),r().default.CheckGLError(),n(94).default.bufferData(a,a.ELEMENT_ARRAY_BUFFER,i,t.__usage),r().default.CheckGLError()}},a.uploadFromVector=function(t,e,n,i,r){if(null!=n){e.gl;var s,o=i+r,l=t.__tempInt16Array;if(null==t.__tempInt16Array||t.__tempInt16Array.length<r)s=null!=r?new Int16Array(r):null,t.__tempInt16Array=s,null!=l&&t.__tempInt16Array.set(l);for(var u=i,_=o;u<_;){var f=u++;t.__tempInt16Array[f-i]=n.get(f)}a.uploadFromTypedArray(t,e,t.__tempInt16Array)}},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(217)}function a(){return n(48)}var s=function(t){this.__context=t,this.__memUsage=0,this.__samplerUsageMask=0,this.__uniforms=new(a().default),this.__samplerUniforms=new(a().default),this.__alphaSamplerUniforms=new(a().default),this.__alphaSamplerEnabled=[],this.__samplerStates=n(21).default._new(8)};s.__name__=["openfl","display3D","Program3D"],(s.prototype={dispose:function(){r().default.dispose(this,this.__context.__renderSession)},upload:function(t,e){r().default.upload(this,this.__context.__renderSession,t,e)},__flush:function(){this.__vertexUniformMap.flush(),this.__fragmentUniformMap.flush()},__getSamplerState:function(t){return this.__samplerStates.get(t)},__markDirty:function(t,e,n){t?this.__vertexUniformMap.markDirty(e,n):this.__fragmentUniformMap.markDirty(e,n)},__setPositionScale:function(t){null!=this.__positionScale&&r().default.setPositionScale(this,this.__context.__renderSession,t)},__setSamplerState:function(t,e){this.__samplerStates.set(t,e)},__use:function(){r().default.use(this,this.__context.__renderSession)}}).__class__=i["openfl.display3D.Program3D"]=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(6)}function a(){return n(38)}function s(){return n(83)}function o(){return n(218)}function l(){return n(20)}var u=function(){this.mEntries=[]};u.__name__=["openfl","_internal","stage3D","RegisterMap"],(u.prototype={add:function(t,e,i,s){for(var o=0,l=this.mEntries;o<l.length;){var u=l[o];if(++o,u.type==t&&u.name==e&&u.number==i){if(u.usage!=s)throw new(r().default)(new(a().default)("Cannot use register in multiple ways yet (mat4/vec4)"));return}}var _=new(n(403).default);_.type=t,_.name=e,_.number=i,_.usage=s,this.mEntries.push(_)},addDR:function(t,e){this.add(t.type,t.toGLSL(!1),t.n,e)},addSaR:function(t,e){this.add(t.type,t.toGLSL(),t.n,e)},addSR:function(t,e,n){if(null==n&&(n=0),0!=t.d)return this.add(t.itype,s().default.prefixFromType(t.itype,t.programType)+t.n,t.n,o().default.VECTOR_4),void this.add(t.type,s().default.prefixFromType(t.type,t.programType)+t.o,t.o,o().default.VECTOR_4_ARRAY);this.add(t.type,t.toGLSL(!1,n),t.n+n,e)},getRegisterUsage:function(t){return 0!=t.d?o().default.VECTOR_4_ARRAY:this.getUsage(t.type,t.toGLSL(!1),t.n)},getUsage:function(t,e,n){for(var i=0,r=this.mEntries;i<r.length;){var a=r[i];if(++i,a.type==t&&a.name==e&&a.number==n)return a.usage}return o().default.UNUSED},toGLSL:function(t){this.mEntries.sort(function(t,e){return t.number-e.number});for(var e,s=new(n(57).default),u=0,_=this.mEntries.length;u<_;){var f=u++;if((e=this.mEntries[f]).usage==o().default.VECTOR_4_ARRAY)if(f<this.mEntries.length-1){var d=this.mEntries[f+1].number-e.number;s.set(e,d)}else s.set(e,128)}this.mEntries.sort(function(t,e){return l().default.__cast(t.type,i.Int)-l().default.__cast(e.type,i.Int)});for(var h=new(n(31).default),c=0,p=this.mEntries.length;c<p;){var g=c++;if(e=this.mEntries[g],!(t&&2!=e.type||!t&&2==e.type)&&3!=e.type){switch(e.type){case 0:h.add("attribute ");break;case 1:h.add("uniform ");break;case 2:h.add("\t");break;case 3:break;case 4:h.add("varying ");break;case 5:h.add("uniform ");break;default:throw new(r().default)(new(a().default))}var m=e.usage;switch(n(10).default.enumIndex(m)){case 0:n(47).default.trace("Missing switch patten: RegisterUsage.UNUSED",{fileName:"AGALConverter.hx",lineNumber:839,className:"openfl._internal.stage3D.RegisterMap",methodName:"toGLSL"});break;case 1:h.add("vec4 ");break;case 2:h.add("mat4 ");break;case 3:h.add("sampler2D ");break;case 4:break;case 5:h.add("samplerCube ");break;case 6:break;case 7:h.add("vec4 ")}e.usage==o().default.SAMPLER_2D_ALPHA?(h.add("sampler2D "),h.add(e.name),h.add(";\n"),h.add("uniform "),h.add("sampler2D "),h.add(e.name+"_alpha"),h.add(";\n"),h.add("uniform "),h.add("bool "),h.add(e.name+"_alphaEnabled"),h.add(";\n")):e.usage==o().default.SAMPLER_CUBE_ALPHA?(h.add("samplerCube "),h.add(e.name),h.add(";\n"),h.add("uniform "),h.add("samplerCube "),h.add(e.name+"_alpha"),h.add(";\n"),h.add("uniform "),h.add("bool "),h.add(e.name+"_alphaEnabled"),h.add(";\n")):e.usage==o().default.VECTOR_4_ARRAY?(h.add(e.name+"["+s.get(e)+"]"),h.add(";\n")):(h.add(e.name),h.add(";\n"))}}return h.toString()}}).__class__=i["openfl._internal.stage3D.RegisterMap"]=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=function(){};r.__name__=["openfl","_internal","stage3D","_AGALConverter","RegisterMapEntry"],(r.prototype={}).__class__=i["openfl._internal.stage3D._AGALConverter.RegisterMapEntry"]=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","stage3D","_AGALConverter","DestRegister"],(r.prototype={getWriteMask:function(){var t=".";return 0!=(1&this.mask)&&(t+="x"),0!=(2&this.mask)&&(t+="y"),0!=(4&this.mask)&&(t+="z"),0!=(8&this.mask)&&(t+="w"),t},toGLSL:function(t){var e;return null==t&&(t=!0),e=3==this.type?this.programType==n(143).default.VERTEX?"gl_Position":"gl_FragColor":n(83).default.prefixFromType(this.type,this.programType)+this.n,t&&15!=this.mask&&(e+=this.getWriteMask()),e}}).__class__=i["openfl._internal.stage3D._AGALConverter.DestRegister"]=r,r.parse=function(t,e){var n=new r;return n.programType=e,n.type=t>>>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<<o))switch(this.s>>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;i<r.length;){var a=r[i];++i,a.regIndex+a.regCount>e&&(e=a.regIndex+a.regCount)}this.__registerLookup=n(21).default._new(e);for(var s=0,o=this.__uniforms;s<o.length;){var l=o[s];++s;for(var u=0,_=l.regCount;u<_;){var f=u++;this.__registerLookup.set(l.regIndex+f,l)}}this.__anyDirty=this.__allDirty=!0};r.__name__=["openfl","display3D","UniformMap"],(r.prototype={flush:function(){if(this.__anyDirty){for(var t=0,e=this.__uniforms;t<e.length;){var n=e[t];++t,(this.__allDirty||n.isDirty)&&(n.flush(),n.isDirty=!1)}this.__anyDirty=this.__allDirty=!1}},markAllDirty:function(){this.__allDirty=!0,this.__anyDirty=!0},markDirty:function(t,e){if(!this.__allDirty){var n=t+e;n>this.__registerLookup.get_length()&&(n=this.__registerLookup.get_length());for(var i=t;i<n;){var r=this.__registerLookup.get(i);null!=r?(r.isDirty=!0,this.__anyDirty=!0,i=r.regIndex+r.regCount):++i}}}}).__class__=i["openfl.display3D.UniformMap"]=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(37)}var a=function(){};a.__name__=["openfl","_internal","stage3D","opengl","GLVertexBuffer3D"],(a.prototype={}).__class__=i["openfl._internal.stage3D.opengl.GLVertexBuffer3D"]=a,a.create=function(t,e,n){var i=e.gl;t.__id=i.createBuffer(),r().default.CheckGLError(),t.__stride=4*t.__vertexSize,t.__usage="dynamicDraw"==n?i.DYNAMIC_DRAW:i.STATIC_DRAW},a.dispose=function(t,e){e.gl.deleteBuffer(t.__id)},a.uploadFromByteArray=function(t,e,i,r,s,o){var l,u=r+s*t.__stride,_=o*t.__vertexSize,f=n(17).default.toArrayBuffer(i);l=null!=f?null==_?new Float32Array(f,u):new Float32Array(f,u,_):null,a.uploadFromTypedArray(t,e,l)},a.uploadFromTypedArray=function(t,e,i){if(null!=i){var a=e.gl;a.bindBuffer(a.ARRAY_BUFFER,t.__id),r().default.CheckGLError(),n(94).default.bufferData(a,a.ARRAY_BUFFER,i,t.__usage),r().default.CheckGLError()}},a.uploadFromVector=function(t,e,n,i,r){if(null!=n){e.gl;var s,o=i*t.__vertexSize,l=r*t.__vertexSize,u=o+l,_=t.__tempFloat32Array;if(null==t.__tempFloat32Array||t.__tempFloat32Array.length<l)s=null!=l?new Float32Array(l):null,t.__tempFloat32Array=s,null!=_&&t.__tempFloat32Array.set(_);for(var f=o,d=u;f<d;){var h=f++;t.__tempFloat32Array[h-o]=n.get(h)}a.uploadFromTypedArray(t,e,t.__tempFloat32Array)}},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(412)}var o=function(t){a().default.call(this,t),s().default.create(this,this.__context.__renderSession)};o.__name__=["openfl","display3D","textures","VideoTexture"],o.__super__=a().default,(o.prototype=r(a().default.prototype,{attachNetStream:function(t){var e=this;this.__netStream=t,4==this.__netStream.__video.readyState?n(26).default.delay(function(){e.__textureReady()},0):this.__netStream.__video.addEventListener("canplay",function(t){e.__textureReady()},!1)},__getTexture:function(){return s().default.getTexture(this,this.__context.__renderSession)},__textureReady:function(){this.videoWidth=this.__netStream.__video.videoWidth,this.videoHeight=this.__netStream.__video.videoHeight,this.dispatchEvent(new(n(9).default)("textureReady"))}})).__class__=i["openfl.display3D.textures.VideoTexture"]=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(37)}var a=function(){};a.__name__=["openfl","_internal","stage3D","opengl","GLVideoTexture"],(a.prototype={}).__class__=i["openfl._internal.stage3D.opengl.GLVideoTexture"]=a,a.create=function(t,e){var n=e.gl;t.__textureTarget=n.TEXTURE_2D},a.getTexture=function(t,e){if(!t.__netStream.__video.paused){var i=e.gl;i.bindTexture(t.__textureTarget,t.__textureID),r().default.CheckGLError(),n(94).default.texImage2D(i,i.TEXTURE_2D,0,i.RGBA,i.RGBA,i.UNSIGNED_BYTE,t.__netStream.__video),r().default.CheckGLError()}return t.__textureID},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._registers=n(21).default._new(4096),this.clearSettings()};r.__name__=["openfl","_internal","stage3D","Context3DStateCache"],(r.prototype={clearRegisters:function(){for(var t=0;t<4096;){var e=t++;this._registers.set(e,-999999999)}},clearSettings:function(){this._srcBlendFactor=null,this._destBlendFactor=null,this._depthTestEnabled=!1,this._depthTestMask=!1,this._depthTestCompareMode=null,this._program=null,this._cullingMode=null,this._activeTexture=-1,this._activeVertexArray=-1,this._viewportOriginX=-1,this._viewportOriginY=-1,this._viewportWidth=-1,this._viewportHeight=-1,this.clearRegisters()},updateActiveTextureSample:function(t){return this._activeTexture=t,!0},updateActiveVertexArray:function(t){return this._activeVertexArray=t,!0},updateBlendDestFactor:function(t){return this._destBlendFactor=t,!0},updateBlendSrcFactor:function(t){return this._srcBlendFactor=t,!0},updateCullingMode:function(t){return this._cullingMode=t,!0},updateDepthCompareMode:function(t){return this._depthTestCompareMode=t,!0},updateDepthTestEnabled:function(t){return this._depthTestEnabled=t,!0},updateDepthTestMask:function(t){return this._depthTestMask=t,!0},updateProgram3D:function(t){return this._program=t,!0},updateRegisters:function(t,e,n){return!0},updateViewport:function(t,e,n,i){return this._viewportOriginX=t,this._viewportOriginY=e,this._viewportWidth=n,this._viewportHeight=i,!0}}).__class__=i["openfl._internal.stage3D.Context3DStateCache"]=r,r.FLOATS_PER_REGISTER=4,r.MAX_NUM_REGISTERS=1024,r.disableCache=!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__=["js","html","_CanvasElement","CanvasUtil"],(r.prototype={}).__class__=i["js.html._CanvasElement.CanvasUtil"]=r,r.getContextWebGL=function(t,e){for(var n=0,i=["webgl","experimental-webgl"];n<i.length;){var r=i[n];++n;var a=t.getContext(r,e);if(null!=a)return a}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;var r=function(){};r.__name__=["openfl","_internal","stage3D","opengl","GLStage3D"],(r.prototype={}).__class__=i["openfl._internal.stage3D.opengl.GLStage3D"]=r,r.render=function(t,e){null!=t.context3D&&(e.blendModeManager.setBlendMode(null),null!=e.shaderManager.currentShader&&(e.shaderManager.setShader(null),null!=t.context3D.__program&&t.context3D.__program.__use())),n(37).default.debug&&e.gl.getError()},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(224)}var a=function(){};a.__name__=["lime","ui","Mouse"],(a.prototype={}).__class__=i["lime.ui.Mouse"]=a,a.hide=function(){r().default.hide()},a.show=function(){r().default.show()},a.warp=function(t,e,n){r().default.warp(t,e,n)},a.get_cursor=function(){return r().default.get_cursor()},a.set_cursor=function(t){return r().default.set_cursor(t)},a.get_lock=function(){return r().default.get_lock()},a.set_lock=function(t){return r().default.set_lock(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__=["openfl","ui","_MouseCursor","MouseCursor_Impl_"],(r.prototype={}).__class__=i["openfl.ui._MouseCursor.MouseCursor_Impl_"]=r,r.fromLimeCursor=function(t){switch(n(10).default.enumIndex(t)){case 0:return"arrow";case 1:return"crosshair";case 2:return"auto";case 3:return"hand";case 4:return"button";case 5:return"resize_nesw";case 6:return"resize_ns";case 7:return"resize_nwse";case 8:return"resize_we";case 9:return"ibeam";case 10:return"wait";case 11:return"waitarrow";case 12:return"custom"}},r.ARROW="arrow",r.AUTO="auto",r.BUTTON="button",r.HAND="hand",r.IBEAM="ibeam",r.__CROSSHAIR="crosshair",r.__CUSTOM="custom",r.__MOVE="move",r.__RESIZE_NESW="resize_nesw",r.__RESIZE_NS="resize_ns",r.__RESIZE_NWSE="resize_nwse",r.__RESIZE_WE="resize_we",r.__WAIT="wait",r.__WAIT_ARROW="waitarrow",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.rollOutStack=[]};r.__name__=["openfl","_internal","TouchData"],(r.prototype={reset:function(){this.touch=null,this.touchDownTarget=null,this.touchOverTarget=null,this.rollOutStack.splice(0,this.rollOutStack.length)}}).__class__=i["openfl._internal.TouchData"]=r,r.__pool=new(n(67).default)(function(){return new r},function(t){t.reset()}),e.default=r}).call(e,n(0))},function(t,e,n){t.exports=n(141)},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.StageAlign=t.exports.default={BOTTOM:"bottom",BOTTOM_LEFT:"bottomLeft",BOTTOM_RIGHT:"bottomRight",LEFT:"left",RIGHT:"right",TOP:"top",TOP_LEFT:"topLeft",TOP_RIGHT:"topRight"}},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.StageDisplayState=t.exports.default={FULL_SCREEN:"fullScreen",FULL_SCREEN_INTERACTIVE:"fullScreenInteractive",NORMAL:"normal"}},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.StageQuality=t.exports.default={BEST:"best",HIGH:"high",LOW:"low",MEDIUM:"medium"}},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.StageScaleMode=t.exports.default={EXACT_FIT:"exactFit",NO_BORDER:"noBorder",NO_SCALE:"noScale",SHOW_ALL:"showAll"}},function(t,e,n){t.exports=n(226)},function(t,e,n){t.exports=n(228)},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.data=t,this.cachePosition=t.position,this.position=0};r.__name__=["openfl","display","_TileArray","TileArrayIterator"],(r.prototype={hasNext:function(){return this.position<this.data.get_length()||(this.data.position=this.cachePosition,!1)},next:function(){return this.data.position=this.position++,this.data}}).__class__=i["openfl.display._TileArray.TileArrayIterator"]=r,e.default=r}).call(e,n(0))},function(t,e,n){t.exports=n(428)},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(228)}function o(){return n(14)}function l(){return n(429)}function u(){return n(126)}function _(){return n(180)}function f(){return n(431)}function d(){return n(4)}var h=function(t,e,i,r){null==r&&(r=!0),a().default.call(this),this.__tileset=i,this.smoothing=r,this.__tiles=n(21).default._new(),this.numTiles=0,this.__width=t,this.__height=e};h.__name__=["openfl","display","Tilemap"],h.__interfaces__=[n(66).default],h.__super__=a().default,(h.prototype=r(a().default.prototype,{addTile:function(t){return null==t?null:(t.parent==this&&this.removeTile(t),this.__tiles.set(this.numTiles,t),t.parent=this,this.numTiles++,this.__setRenderDirty(),t)},addTileAt:function(t,e){if(null==t)return null;if(t.parent==this){var n=this.__tiles.get_length();this.removeTile(t),n>this.__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<t.length;){var n=t[e];++e,this.addTile(n)}return t},contains:function(t){return this.__tiles.indexOf(t,0)>-1},getTileAt:function(t){if(t>=0&&t<this.numTiles){var e=this.__tiles.get(t);return null==e&&null!=this.__tileArray&&t<this.__tileArray.get_length()&&(e=n(226).default.__fromTileArray(t,this.__tileArray),this.__tiles.set(t,e)),this.__tiles.get(t)}return null},getTileIndex:function(t){for(var e=0,n=this.__tiles.get_length();e<n;){var i=e++;if(this.__tiles.get(i)==t)return i}return-1},getTiles:function(){return this.__updateTileArray(),null==this.__tileArray&&(this.__tileArray=new(s().default)),this.__tileArray},removeTile:function(t){if(null!=t&&t.parent==this){for(var e=this.__tiles.get_length(),n=0,i=this.__tiles.get_length();n<i;){var r=n++;if(this.__tiles.get(r)==t){t.parent=null,this.__tiles.splice(r,1);break}}this.__tileArrayDirty=!0,e>this.__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&&t<this.numTiles?this.removeTile(this.__tiles.get(t)):null},removeTiles:function(t,e){null==e&&(e=2147483647),null==t&&(t=0),t<0&&(t=0),e>this.__tiles.get_length()-1&&(e=this.__tiles.get_length()-1);for(var n=this.__tiles.splice(t,e-t+1),i=0;i<n.get_length();){var r=n.get(i);++i,r.parent=null}this.__tileArrayDirty=!0,this.numTiles=this.__tiles.get_length(),0==this.numTiles&&null!=this.__tileArray&&this.__tileArray.set_length(0),this.__setRenderDirty()},setTiles:function(t){this.__tileArray=t,this.numTiles=this.__tileArray.get_length(),this.__tileArray.__bufferDirty=!0,this.__tileArrayDirty=!1,this.__tiles.set_length(0),this.__setRenderDirty()},__getBounds:function(t,e){var n=o().default.__pool.get();n.setTo(0,0,this.__width,this.__height),n.__transform(n,e),t.__expand(n.x,n.y,n.width,n.height),o().default.__pool.release(n)},__hitTest:function(t,e,n,i,r,a){if(!a.get_visible()||this.__isMask)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.__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();e<n;){var i=e++;null!=(t=this.__tiles.get(i))&&t.__updateTileArray(i,this.__tileArray,this.__tileArrayDirty)}}this.__tileArrayDirty=!1},get_height:function(){return this.__height*Math.abs(this.get_scaleY())},set_height:function(t){return this.__height=d().default.int(t),this.__height*Math.abs(this.get_scaleY())},get_tileset:function(){return this.__tileset},set_tileset:function(t){return this.__tileArrayDirty=!0,this.__tileset=t},get_width:function(){return this.__width*Math.abs(this.__scaleX)},set_width:function(t){return this.__width=d().default.int(t),this.__width*Math.abs(this.__scaleX)}})).__class__=i["openfl.display.Tilemap"]=h,Object.defineProperty(h.prototype,"tileset",{get:function(){return this.get_tileset()},set:function(t){return this.set_tileset(t)}}),e.default=h}).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","DOMTilemap"],(a.prototype={}).__class__=i["openfl._internal.renderer.dom.DOMTilemap"]=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){null!=t.stage&&t.__worldVisible&&t.__renderable&&t.__tiles.get_length()>0?(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<x;){var E=b++;g.get(E)||(_.position=E<m?E:m-1,null==(w=_.get_shader())&&(w=f),w!=h&&null!=h&&(y=!0),null==(v=_.get_tileset())&&(v=d),null!=v&&(v.__bitmapData!=c&&null!=c&&(y=!0),y&&(h.get_data().uImage0.input=c,e.shaderManager.updateShader(h),i.drawArrays(i.TRIANGLES,6*p,6*(E-p)),y=!1,p=E),w!=h&&(e.shaderManager.setShader(w),w.get_data().uMatrix.value=o,w.get_data().uImage0.smoothing=l,null==w.get_data().uColorTransform.value&&(w.get_data().uColorTransform.value=[]),w.get_data().uColorTransform.value[0]=!0,h=w),c=v.__bitmapData,E==m&&null!=v.__bitmapData&&(w.get_data().uImage0.input=v.__bitmapData,e.shaderManager.updateShader(w),i.drawArrays(i.TRIANGLES,6*p,6*(E-p)))))}e.filterManager.popObject(t),e.maskManager.popRect(),e.maskManager.popObject(t),r().default.__pool.release(u)}},s.renderMask=function(t,e){if(t.__updateTileArray(),null!=t.__tileArray&&0!=t.__tileArray.get_length()){var i=e.renderer,r=e.gl,s=n(59).default.maskShader,o=(i.getMatrix(t.__renderTransform),e.allowSmoothing&&t.smoothing,t.__tileArray),l=t.__tileset;o.__updateGLBuffer(r,l,t.__worldAlpha,t.__worldColorTransform),r.vertexAttribPointer(s.get_data().aPosition.index,2,r.FLOAT,!1,100,a().default.fromInt(0)),r.vertexAttribPointer(s.get_data().aTexCoord.index,2,r.FLOAT,!1,100,a().default.fromInt(8));var u,_=null,f=0,d=o.__bufferSkipped,h=o.__length;o.position=0;for(var c=!1,p=0,g=h+1;p<g;){var m=p++;d.get(m)||(o.position=m<h?m:h-1,null==(u=o.get_tileset())&&(u=l),null!=u&&(u.__bitmapData!=_&&null!=_&&(c=!0),c&&(s.get_data().uImage0.input=_,e.shaderManager.updateShader(s),r.drawArrays(r.TRIANGLES,6*f,6*(m-f)),c=!1,f=m),_=u.__bitmapData,m==h&&null!=u.__bitmapData&&(s.get_data().uImage0.input=u.__bitmapData,e.shaderManager.updateShader(s),r.drawArrays(r.TRIANGLES,6*f,6*(m-f)))))}}},s.__skippedTiles=new(n(22).default),e.default=s}).call(e,n(0))},function(t,e,n){t.exports=n(433)},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)}var a=function(t,e){if(this.__data=[],this.__bitmapData=t,null!=e)for(var n=0;n<e.length;){var i=e[n];++n,this.addRect(i)}};a.__name__=["openfl","display","Tileset"],(a.prototype={addRect:function(t){if(null==t)return-1;var e=new(n(434).default)(t);return e.__update(this.__bitmapData),this.__data.push(e),this.__data.length-1},clone:function(){for(var t=new a(this.__bitmapData,null),e=r().default.__pool.get(),n=0,i=this.__data;n<i.length;){var s=i[n];++n,e.setTo(s.x,s.y,s.width,s.height),t.addRect(e)}return r().default.__pool.release(e),t},getRect:function(t){return t<this.__data.length&&t>=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;e<n.length;){var i=n[e];++e,i.__update(this.__bitmapData)}return t}}).__class__=i["openfl.display.Tileset"]=a,Object.defineProperty(a.prototype,"bitmapData",{get:function(){return this.get_bitmapData()},set:function(t){return this.set_bitmapData(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(4)}var a=function(t){null!=t&&(this.x=r().default.int(t.x),this.y=r().default.int(t.y),this.width=r().default.int(t.width),this.height=r().default.int(t.height))};a.__name__=["openfl","display","_Tileset","TileData"],(a.prototype={__update:function(t){null!=t&&(this.__uvX=this.x/t.width,this.__uvY=this.y/t.height,this.__uvWidth=(this.x+this.width)/t.width,this.__uvHeight=(this.y+this.height)/t.height)}}).__class__=i["openfl.display._Tileset.TileData"]=a,e.default=a}).call(e,n(0))},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.TriangleCulling=t.exports.default={NEGATIVE:"negative",NONE:"none",POSITIVE:"positive"}},function(t,e,n){t.exports={textures:n(437),Context3D:n(442).default,Context3DBlendFactor:n(443).default,Context3DBufferUsage:n(444).default,Context3DClearMask:n(445).default,Context3DCompareMode:n(446).default,Context3DMipFilter:n(447).default,Context3DProfile:n(448).default,Context3DProgramType:n(449).default,Context3DRenderMode:n(450).default,Context3DStencilAction:n(451).default,Context3DTextureFilter:n(452).default,Context3DTextureFormat:n(453).default,Context3DTriangleFace:n(454).default,Context3DVertexBufferFormat:n(455).default,Context3DWrapMode:n(456).default,IndexBuffer3D:n(457).default,VertexBuffer3D:n(458).default}},function(t,e,n){t.exports={CubeTexture:n(438).default,RectangleTexture:n(439).default,Texture:n(440).default,TextureBase:n(441).default}},function(t,e,n){t.exports=n(106)},function(t,e,n){t.exports=n(142)},function(t,e,n){t.exports=n(104)},function(t,e,n){t.exports=n(82)},function(t,e,n){t.exports=n(62)},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.Context3DBlendFactor=t.exports.default={DESTINATION_ALPHA:"destinationAlpha",DESTINATION_COLOR:"destinationColor",ONE:"one",ONE_MINUS_DESTINATION_ALPHA:"oneMinusDestinationAlpha",ONE_MINUS_DESTINATION_COLOR:"oneMinusDestinationColor",ONE_MINUS_SOURCE_ALPHA:"oneMinusSourceAlpha",ONE_MINUS_SOURCE_COLOR:"oneMinusSourceColor",SOURCE_ALPHA:"sourceAlpha",SOURCE_COLOR:"sourceColor",ZERO:"zero"}},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.Context3DBufferUsage=t.exports.default={DYNAMIC_DRAW:"dynamicDraw",STATIC_DRAW:"staticDraw"}},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.Context3DClearMask=t.exports.default={ALL:7,COLOR:1,DEPTH:2,STENCIL:4}},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.Context3DCompareMode=t.exports.default={ALWAYS:"always",EQUAL:"equal",GREATER:"greater",GREATER_EQUAL:"greaterEqual",LESS:"less",LESS_EQUAL:"lessEqual",NEVER:"never",NOT_EQUAL:"notEqual"}},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.Context3DMipFilter=t.exports.default={MIPLINEAR:"miplinear",MIPNEAREST:"mipnearest",MIPNONE:"mipnone"}},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.Context3DProfile=t.exports.default={BASELINE:"baseline",BASELINE_CONSTRAINED:"baselineConstrained",BASELINE_EXTENDED:"baselineExtended",STANDARD:"standard",STANDARD_CONSTRAINED:"standardConstrained",STANDARD_EXTENDED:"standardExtended"}},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.Context3DProgramType=t.exports.default={FRAGMENT:"fragment",VERTEX:"vertex"}},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.Context3DRenderMode=t.exports.default={AUTO:"auto",SOFTWARE:"software"}},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.Context3DStencilAction=t.exports.default={DECREMENT_SATURATE:"decrementSaturate",DECREMENT_WRAP:"decrementWrap",INCREMENT_SATURATE:"incrementSaturate",INCREMENT_WRAP:"incrementWrap",INVERT:"invert",KEEP:"keep",SET:"set",ZERO:"zero"}},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.Context3DTextureFilter=t.exports.default={ANISOTROPIC16X:"anisotropic16x",ANISOTROPIC2X:"anisotropic2x",ANISOTROPIC4X:"anisotropic4x",ANISOTROPIC8X:"anisotropic8x",LINEAR:"linear",NEAREST:"nearest"}},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.Context3DTextureFormat=t.exports.default={BGR_PACKED:"bgrPacked565",BGRA:"bgra",BGRA_PACKED:"bgraPacked4444",COMPRESSED:"compressed",COMPRESSED_ALPHA:"compressedAlpha",RGBA_HALF_FLOAT:"rgbaHalfFloat"}},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.Context3DTriangleFace=t.exports.default={BACK:"back",FRONT:"front",FRONT_AND_BACK:"frontAndBack",NONE:"none"}},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.Context3DVertexBufferFormat=t.exports.default={BYTES_4:"bytes4",FLOAT_1:"float1",FLOAT_2:"float2",FLOAT_3:"float3",FLOAT_4:"float4"}},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.Context3DWrapMode=t.exports.default={CLAMP:"clamp",CLAMP_U_REPEAT_V:"clamp_u_repeat_y",REPEAT:"repeat",REPEAT_U_CLAMP_V:"repeat_u_clamp_y"}},function(t,e,n){t.exports=n(216)},function(t,e,n){t.exports=n(219)},function(t,e,n){t.exports={ArgumentError:n(460).default,EOFError:n(461).default,Error:n(462).default,IllegalOperationError:n(463).default,IOError:n(464).default,RangeError:n(465).default,SecurityError:n(466).default,TypeError:n(467).default}},function(t,e,n){t.exports=n(71)},function(t,e,n){t.exports=n(175)},function(t,e,n){t.exports=n(30)},function(t,e,n){t.exports=n(38)},function(t,e,n){t.exports=n(124)},function(t,e,n){t.exports=n(182)},function(t,e,n){t.exports=n(230)},function(t,e,n){t.exports=n(129)},function(t,e,n){t.exports={AccelerometerEvent:n(469).default,ActivityEvent:n(470).default,AsyncErrorEvent:n(471).default,DataEvent:n(473).default,ErrorEvent:n(474).default,Event:n(475).default,EventDispatcher:n(476).default,EventPhase:n(477).default,FocusEvent:n(478).default,FullScreenEvent:n(479).default,GameInputEvent:n(480).default,HTTPStatusEvent:n(481).default,IEventDispatcher:n(482).default,IOErrorEvent:n(483).default,KeyboardEvent:n(484).default,MouseEvent:n(485).default,NetStatusEvent:n(486).default,ProgressEvent:n(487).default,SampleDataEvent:n(488).default,SecurityErrorEvent:n(490).default,TextEvent:n(491).default,TimerEvent:n(492).default,TouchEvent:n(493).default,UncaughtErrorEvent:n(494).default,UncaughtErrorEvents:n(495).default}},function(t,e,n){t.exports=n(231)},function(t,e,n){t.exports=n(213)},function(t,e,n){t.exports=n(472)},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==i&&(i=""),null==n&&(n=!1),null==e&&(e=!1),a().default.call(this,t,e,n),this.text=i,this.error=r};s.__name__=["openfl","events","AsyncErrorEvent"],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.error);return t.target=this.target,t.currentTarget=this.currentTarget,t.eventPhase=this.eventPhase,t},toString:function(){return this.__formatToString("AsyncErrorEvent",["type","bubbles","cancelable","text","error"])}})).__class__=i["openfl.events.AsyncErrorEvent"]=s,s.ASYNC_ERROR="asyncError",e.default=s}).call(e,n(0))},function(t,e,n){t.exports=n(232)},function(t,e,n){t.exports=n(60)},function(t,e,n){t.exports=n(9)},function(t,e,n){t.exports=n(13)},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.EventPhase=t.exports.default={AT_TARGET:2,BUBBLING_PHASE:3,CAPTURING_PHASE:1}},function(t,e,n){t.exports=n(225)},function(t,e,n){t.exports=n(212)},function(t,e,n){t.exports=n(210)},function(t,e,n){t.exports=n(193)},function(t,e,n){t.exports=n(157)},function(t,e,n){t.exports=n(101)},function(t,e,n){t.exports=n(222)},function(t,e,n){t.exports=n(113)},function(t,e,n){t.exports=n(144)},function(t,e,n){t.exports=n(53)},function(t,e,n){t.exports=n(489)},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,i){null==i&&(i=!1),null==e&&(e=!1),a().default.call(this,t,e,i);var r=new(n(45).default)(0);this.data=r,this.data.set_endian("littleEndian"),this.position=0};s.__name__=["openfl","events","SampleDataEvent"],s.__super__=a().default,(s.prototype=r(a().default.prototype,{clone:function(){var t=new s(this.type,this.bubbles,this.cancelable);return t.target=this.target,t.currentTarget=this.currentTarget,t.eventPhase=this.eventPhase,t},toString:function(){return this.__formatToString("SampleDataEvent",["type","bubbles","cancelable"])}})).__class__=i["openfl.events.SampleDataEvent"]=s,s.SAMPLE_DATA="sampleData",e.default=s}).call(e,n(0))},function(t,e,n){t.exports=n(195)},function(t,e,n){t.exports=n(77)},function(t,e,n){t.exports=n(233)},function(t,e,n){t.exports=n(114)},function(t,e,n){t.exports=n(220)},function(t,e,n){t.exports=n(207)},function(t,e,n){t.exports={ExternalInterface:n(497).default}},function(t,e,n){t.exports=n(498)},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","external","ExternalInterface"],(a.prototype={}).__class__=i["openfl.external.ExternalInterface"]=a,a.addCallback=function(t,e){null!=r().default.application.get_window().backend.element&&(r().default.application.get_window().backend.element[t]=e)},a.call=function(t,e,i,r,a,s){var o;if(!new(n(27).default)("^\\(.+\\)$","").match(t)){var l=t.split(".").slice(0,-1).join(".");l.length>0&&(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;d<e.get_length();)r=e.get(d),a=e.get(d+1),s=e.get(d+2),o=1,l=r*f.get(0)+a*f.get(4)+s*f.get(8)+o*f.get(12),u=r*f.get(1)+a*f.get(5)+s*f.get(9)+o*f.get(13),r*f.get(2)+a*f.get(6)+s*f.get(10)+o*f.get(14),_=r*f.get(3)+a*f.get(7)+s*f.get(11)+o*f.get(15),n.push(l/_),n.push(u/_),i.set(d+2,1/_),d+=3},e.default=r}).call(e,n(0))},function(t,e,n){t.exports=n(128)},function(t,e,n){t.exports={ID3Info:n(521).default,Sound:n(522).default,SoundChannel:n(523).default,SoundLoaderContext:n(524).default,SoundTransform:n(526).default,Video:n(527).default}},function(t,e,n){t.exports=n(206)},function(t,e,n){t.exports=n(203)},function(t,e,n){t.exports=n(205)},function(t,e,n){t.exports=n(525)},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=!1),null==t&&(t=1e3),this.bufferTime=t,this.checkPolicyFile=e};r.__name__=["openfl","media","SoundLoaderContext"],(r.prototype={}).__class__=i["openfl.media.SoundLoaderContext"]=r,e.default=r}).call(e,n(0))},function(t,e,n){t.exports=n(81)},function(t,e,n){t.exports=n(528)},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(19)}function l(){return n(29)}function u(){return n(531)}function _(){return n(4)}var f=function(t,e){null==e&&(e=240),null==t&&(t=320),a().default.call(this),this.__width=t,this.__height=e,this.smoothing=!1,this.deblocking=0};f.__name__=["openfl","media","Video"],f.__interfaces__=[n(66).default],f.__super__=a().default,(f.prototype=r(a().default.prototype,{attachNetStream:function(t){this.__stream=t,null!=this.__stream&&this.__stream.__video.play()},clear:function(){},__enterFrame:function(t){this.__renderable&&null!=this.__stream&&this.__setRenderDirty()},__getBounds:function(t,e){var n=s().default.__pool.get();n.setTo(0,0,this.__width,this.__height),n.__transform(n,e),t.__expand(n.x,n.y,n.width,n.height),s().default.__pool.release(n)},__getBuffer:function(t,e,n){if(null==this.__buffer||this.__bufferContext!=t){var i=new Float32Array(104);this.__bufferData=i,this.__bufferData[0]=this.get_width(),this.__bufferData[1]=this.get_height(),this.__bufferData[3]=1,this.__bufferData[4]=1,this.__bufferData[27]=this.get_height(),this.__bufferData[30]=1,this.__bufferData[52]=this.get_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),t.bufferData(t.ARRAY_BUFFER,this.__bufferData.byteLength,o().default.fromArrayBufferView(this.__bufferData),t.STATIC_DRAW)}else{if(this.__bufferAlpha!=e)for(var s=0;s<4;){var l=s++;this.__bufferData[26*l+5]=e}if(null==this.__bufferColorTransform&&null!=n||null!=this.__bufferColorTransform&&!this.__bufferColorTransform.__equals(n))if(null!=n){this.__bufferColorTransform=n.__clone();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),t.bufferData(t.ARRAY_BUFFER,this.__bufferData.byteLength,o().default.fromArrayBufferView(this.__bufferData),t.STATIC_DRAW)}return this.__buffer},__getTexture:function(t){if(null==this.__stream)return null;if(null==this.__texture&&(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.__textureTime=-1),this.__stream.__video.currentTime!=this.__textureTime){var e=t.RGBA,n=t.RGBA;t.bindTexture(t.TEXTURE_2D,this.__texture),t.texImage2DWEBGL(t.TEXTURE_2D,0,e,n,t.UNSIGNED_BYTE,this.__stream.__video),this.__textureTime=this.__stream.__video.currentTime}return this.__texture},__hitTest:function(t,e,n,i,r,a){if(!a.get_visible()||this.__isMask)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.__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;i<r;){var a=i++;if(n>this.__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<n.length;){var i=n[e];if(++e,r().default.compareMethods(i,t))return!0}return!1},remove:function(t){for(var e=this.__listeners.length;--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<e.length&&(e[i](t),n[i]?++i:this.remove(e[i]),!this.canceled););}}).__class__=i["lime.app._Event_Array_String__Void"]=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(5)}var a=function(){this.canceled=!1,this.__listeners=[],this.__priorities=[],this.__repeat=[]};a.__name__=["lime","app","_Event_lime_utils_Resource_Void"],(a.prototype={add:function(t,e,n){null==n&&(n=0),null==e&&(e=!1);for(var i=0,r=this.__priorities.length;i<r;){var a=i++;if(n>this.__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<n.length;){var i=n[e];if(++e,r().default.compareMethods(i,t))return!0}return!1},remove:function(t){for(var e=this.__listeners.length;--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<e.length&&(e[i](t),n[i]?++i:this.remove(e[i]),!this.canceled););}}).__class__=i["lime.app._Event_lime_utils_Resource_Void"]=a,e.default=a}).call(e,n(0))},function(t,e,n){var i,r,a;r=window||this,a=function(n,r){"use strict";if(!(void 0===n||"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))){var a=function(){return n.URL||n.webkitURL||n},s=n.document.createElementNS("http://www.w3.org/1999/xhtml","a"),o="download"in s,l=/constructor/i.test(n.HTMLElement)||n.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent),_=function(t){(n.setImmediate||n.setTimeout)(function(){throw t},0)},f=function(t){setTimeout(function(){"string"==typeof t?a().revokeObjectURL(t):t.remove()},4e4)},d=function(t){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t},h=function(t,e,i){i||(t=d(t));var r,h=this,c="application/octet-stream"===t.type,p=function(){!function(t,e,n){for(var i=(e=[].concat(e)).length;i--;){var r=t["on"+e[i]];if("function"==typeof r)try{r.call(t,n||t)}catch(t){_(t)}}}(h,"writestart progress write writeend".split(" "))};if(h.readyState=h.INIT,o)return r=a().createObjectURL(t),void setTimeout(function(){var t,n;s.href=r,s.download=e,t=s,n=new MouseEvent("click"),t.dispatchEvent(n),p(),f(r),h.readyState=h.DONE});!function(){if((u||c&&l)&&n.FileReader){var e=new FileReader;return e.onloadend=function(){var t=u?e.result:e.result.replace(/^data:[^;]*;/,"data:attachment/file;");n.open(t,"_blank")||(n.location.href=t),t=void 0,h.readyState=h.DONE,p()},e.readAsDataURL(t),void(h.readyState=h.INIT)}r||(r=a().createObjectURL(t)),c?n.location.href=r:n.open(r,"_blank")||(n.location.href=r);h.readyState=h.DONE,p(),f(r)}()},c=h.prototype,p=function(t,e,n){return new h(t,e||t.name||"download",n)};return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob&&(p=function(t,e,n){return e=e||t.name||"download",n||(t=d(t)),navigator.msSaveOrOpenBlob(t,e)}),c.abort=function(){},c.readyState=c.INIT=0,c.WRITING=1,c.DONE=2,c.error=c.onwritestart=c.onprogress=c.onwrite=c.onabort=c.onerror=c.onwriteend=null,void 0===(i=function(){return p}.apply(e,[]))||(t.exports=i),void 0===r&&(n.saveAs=p),p}},"object"==typeof e&&"string"!=typeof e.nodeName?t.exports=r.document?a(r,!0):function(t){if(!t.document)throw new Error("FileSaver requires a window with a document");return a(t)}:a(r)},function(t,e,n){t.exports=n(541)},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(9)}var o=function(){a().default.call(this)};o.__name__=["openfl","net","FileReferenceList"],o.__super__=a().default,(o.prototype=r(a().default.prototype,{browse:function(t){return!1},fileDialog_onCancel:function(){this.dispatchEvent(new(s().default)("cancel"))},fileDialog_onSelectMultiple:function(t){for(var e,i=0;i<t.length;){var r=t[i];++i,(e=new(n(234).default)).__path=r,e.name=n(80).default.withoutDirectory(r),this.fileList.push(e)}this.dispatchEvent(new(s().default)("select"))}})).__class__=i["openfl.net.FileReferenceList"]=o,e.default=o}).call(e,n(0))},function(t,e,n){t.exports=n(543)},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","net","NetConnection"],s.__super__=a().default,(s.prototype=r(a().default.prototype,{connect:function(t,e,i,r,a,s){if(null!=t)throw new(n(6).default)('Error: Can only connect in "HTTP streaming" mode');this.dispatchEvent(new(n(144).default)("netStatus",!1,!0,{code:"NetConnection.Connect.Success"}))}})).__class__=i["openfl.net.NetConnection"]=s,s.CONNECT_SUCCESS="NetConnection.Connect.Success",e.default=s}).call(e,n(0))},function(t,e,n){t.exports=n(545)},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(144)}var l=function(t,e){s().default.call(this),this.__connection=t,this.__video=n(11).default.get_document().createElement("video"),this.__video.setAttribute("playsinline",""),this.__video.setAttribute("webkit-playsinline",""),this.__video.addEventListener("error",r(this,this.video_onError),!1),this.__video.addEventListener("waiting",r(this,this.video_onWaiting),!1),this.__video.addEventListener("ended",r(this,this.video_onEnd),!1),this.__video.addEventListener("pause",r(this,this.video_onPause),!1),this.__video.addEventListener("seeking",r(this,this.video_onSeeking),!1),this.__video.addEventListener("playing",r(this,this.video_onPlaying),!1),this.__video.addEventListener("timeupdate",r(this,this.video_onTimeUpdate),!1),this.__video.addEventListener("loadstart",r(this,this.video_onLoadStart),!1),this.__video.addEventListener("stalled",r(this,this.video_onStalled),!1),this.__video.addEventListener("durationchanged",r(this,this.video_onDurationChanged),!1),this.__video.addEventListener("canplay",r(this,this.video_onCanPlay),!1),this.__video.addEventListener("canplaythrough",r(this,this.video_onCanPlayThrough),!1),this.__video.addEventListener("loadedmetadata",r(this,this.video_onLoadMetaData),!1)};l.__name__=["openfl","net","NetStream"],l.__super__=s().default,(l.prototype=a(s().default.prototype,{close:function(){this.__video.pause(),this.__video.src="",this.time=0},pause:function(){this.__video.pause()},play:function(t,e,n,i,r,a){this.__video.src=t,this.__video.play()},requestVideoStatus:function(){var t=this;null==this.__timer&&(this.__timer=new(n(26).default)(1)),this.__timer.run=function(){t.__video.paused?t.__playStatus("NetStream.Play.pause"):t.__playStatus("NetStream.Play.playing"),t.__timer.stop()}},resume:function(){this.__video.play()},seek:function(t){t<0?t=0:t>this.__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<r.length;){var l=r[o];if(++o,t.indexOf(l)>-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;a<s;){e+="#"+r[a++]+"/"}e+=r[r.length-1]}return i+e+".sol"},h.__mkdir=function(t){},h.__resolveClass=function(t){return null!=t?(d().default.startsWith(t,"neash.")&&(t=d().default.replace(t,"neash.","openfl.")),d().default.startsWith(t,"native.")&&(t=d().default.replace(t,"native.","openfl.")),d().default.startsWith(t,"flash.")&&(t=d().default.replace(t,"flash.","openfl.")),d().default.startsWith(t,"openfl._v2.")&&(t=d().default.replace(t,"openfl._v2.","openfl.")),d().default.startsWith(t,"openfl._legacy.")&&(t=d().default.replace(t,"openfl._legacy.","openfl.")),f().default.resolveClass(t)):null},h.application_onExit=function(t){for(var e=h.__sharedObjects.iterator();e.hasNext();){e.next().flush()}},h.defaultObjectEncoding=3,e.default=h}).call(e,n(0))},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.SharedObjectFlushStatus=t.exports.default={FLUSHED:"flushed",PENDING:"pending"}},function(t,e,n){t.exports=n(236)},function(t,e,n){t.exports=n(79)},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.URLLoaderDataFormat=t.exports.default={BINARY:"binary",TEXT:"text",VARIABLES:"variables"}},function(t,e,n){t.exports=n(196)},function(t,e,n){t.exports=n(197)},function(t,e,n){t.exports=n(194)},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.URLRequestMethod=t.exports.default={DELETE:"DELETE",GET:"GET",HEAD:"HEAD",OPTIONS:"OPTIONS",POST:"POST",PUT:"PUT"}},function(t,e,n){t.exports=n(557)},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(13)}var o=function(){s().default.call(this),this.__loader=new(n(79).default),this.__loader.dataFormat="binary"};o.__name__=["openfl","net","URLStream"],o.__interfaces__=[n(92).default],o.__super__=s().default,(o.prototype=a(s().default.prototype,{close:function(){this.__removeEventListeners(),this.__data=null},load:function(t){this.__removeEventListeners(),this.__addEventListeners(),this.__loader.load(t)},readBoolean:function(){return this.__data.readBoolean()},readByte:function(){return this.__data.readByte()},readBytes:function(t,e,n){null==n&&(n=0),null==e&&(e=0),this.__data.readBytes(t,e,n)},readDouble:function(){return this.__data.readDouble()},readFloat:function(){return this.__data.readFloat()},readInt:function(){return this.__data.readInt()},readMultiByte:function(t,e){return this.__data.readMultiByte(t,e)},readObject:function(){return null},readShort:function(){return this.__data.readShort()},readUnsignedByte:function(){return this.__data.readUnsignedByte()},readUnsignedInt:function(){return this.__data.readUnsignedInt()},readUnsignedShort:function(){return this.__data.readUnsignedShort()},readUTF:function(){return this.__data.readUTF()},readUTFBytes:function(t){return this.__data.readUTFBytes(t)},__addEventListeners:function(){this.__loader.addEventListener("complete",r(this,this.loader_onComplete)),this.__loader.addEventListener("ioError",r(this,this.loader_onIOError)),this.__loader.addEventListener("securityError",r(this,this.loader_onSecurityError)),this.__loader.addEventListener("progress",r(this,this.loader_onProgressEvent))},__removeEventListeners:function(){this.__loader.removeEventListener("complete",r(this,this.loader_onComplete)),this.__loader.removeEventListener("ioError",r(this,this.loader_onIOError)),this.__loader.removeEventListener("securityError",r(this,this.loader_onSecurityError)),this.__loader.removeEventListener("progress",r(this,this.loader_onProgressEvent))},loader_onComplete:function(t){this.__removeEventListeners(),this.__data=this.__loader.data,this.dispatchEvent(new(n(53).default)("progress",!1,!1,this.__loader.bytesLoaded,this.__loader.bytesTotal)),this.dispatchEvent(new(n(9).default)("complete"))},loader_onIOError:function(t){this.__removeEventListeners(),this.dispatchEvent(t)},loader_onSecurityError:function(t){this.__removeEventListeners(),this.dispatchEvent(t)},loader_onProgressEvent:function(t){this.__data=this.__loader.data,this.dispatchEvent(t)},get_bytesAvailable:function(){return null!=this.__data?n(17).default.get_length(this.__data)-this.__data.position:0},get_connected:function(){return!1},get_endian:function(){return this.__data.get_endian()},set_endian:function(t){return this.__data.set_endian(t)}})).__class__=i["openfl.net.URLStream"]=o,Object.defineProperties(o.prototype,{bytesAvailable:{get:function(){return this.get_bytesAvailable()}},connected:{get:function(){return this.get_connected()}},endian:{get:function(){return this.get_endian()},set:function(t){return this.set_endian(t)}}}),e.default=o}).call(e,n(0))},function(t,e,n){t.exports=n(134)},function(t,e,n){t.exports=n(560)},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(13)}function o(){return n(9)}var l=function(t,e){null==e&&(e=80),s().default.call(this),null!=t&&this.connect(t,e)};l.__name__=["openfl","net","XMLSocket"],l.__super__=s().default,(l.prototype=a(s().default.prototype,{close:function(){this.__socket.removeEventListener("close",r(this,this.__onClose)),this.__socket.removeEventListener("connect",r(this,this.__onConnect)),this.__socket.removeEventListener("ioError",r(this,this.__onError)),this.__socket.removeEventListener("socketData",r(this,this.__onSocketData)),this.__socket.close()},connect:function(t,e){this.connected=!1,this.__socket=new(n(236).default),this.__socket.addEventListener("close",r(this,this.__onClose)),this.__socket.addEventListener("connect",r(this,this.__onConnect)),this.__socket.addEventListener("ioError",r(this,this.__onError)),this.__socket.addEventListener("socketData",r(this,this.__onSocketData)),this.__socket.connect(t,e)},send:function(t){this.__socket.writeUTFBytes(n(4).default.string(t)),this.__socket.writeByte(0),this.__socket.flush()},__onClose:function(t){this.connected=!1,this.dispatchEvent(new(o().default)("close"))},__onConnect:function(t){this.connected=!0,this.dispatchEvent(new(o().default)("connect"))},__onError:function(t){this.dispatchEvent(new(o().default)("ioError"))},__onSocketData:function(t){this.dispatchEvent(new(n(232).default)("data",!1,!1,this.__socket.readUTFBytes(this.__socket.get_bytesAvailable())))}})).__class__=i["openfl.net.XMLSocket"]=l,e.default=l}).call(e,n(0))},function(t,e,n){var i=n(25).default;t.exports.default=i.navigateToURL},function(t,e,n){var i=n(25).default;t.exports.default=i.sendToURL},function(t,e,n){t.exports={Telemetry:n(564).default}},function(t,e,n){t.exports=n(565)},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","profiler","Telemetry"],(r.prototype={}).__class__=i["openfl.profiler.Telemetry"]=r,Object.defineProperty(r,"connected",{get:function(){return r.get_connected()}}),r.registerCommandHandler=function(t,e){return!1},r.sendMetric=function(t,e){},r.sendSpanMetric=function(t,e,n){},r.unregisterCommandHandler=function(t){return!1},r.__advanceFrame=function(){},r.__endTiming=function(t){},r.__initialize=function(){},r.__rewindStack=function(t){},r.__startTiming=function(t){},r.__unwindStack=function(){return""},r.get_connected=function(){return!1},r.spanMarker=0,e.default=r}).call(e,n(0))},function(t,e,n){t.exports={Accelerometer:n(567).default}},function(t,e,n){t.exports=n(568)},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(26)}var l=function(){s().default.call(this),l.initialize(),this.__interval=0,this.__muted=!1,this.setRequestedUpdateInterval(l.defaultInterval)};l.__name__=["openfl","sensors","Accelerometer"],l.__super__=s().default,l.prototype=a(s().default.prototype,{addEventListener:function(t,e,n,i,r){null==r&&(r=!1),null==i&&(i=0),null==n&&(n=!1),s().default.prototype.addEventListener.call(this,t,e,n,i,r),this.update()},setRequestedUpdateInterval:function(t){if(this.__interval=t,this.__interval<0)throw new(n(6).default)(new(n(71).default));0==this.__interval&&(this.__interval=l.defaultInterval),null!=this.__timer&&(this.__timer.stop(),this.__timer=null),l.supported&&!this.get_muted()&&(this.__timer=new(o().default)(this.__interval),this.__timer.run=r(this,this.update))},update:function(){var t=new(n(231).default)("update");t.timestamp=o().default.stamp(),t.accelerationX=l.currentX,t.accelerationY=l.currentY,t.accelerationZ=l.currentZ,this.dispatchEvent(t)},get_muted:function(){return this.__muted},set_muted:function(t){return this.__muted=t,this.setRequestedUpdateInterval(this.__interval),t}}),l.prototype.__class__=i["openfl.sensors.Accelerometer"]=l,Object.defineProperty(l.prototype,"muted",{get:function(){return this.get_muted()},set:function(t){return this.set_muted(t)}}),Object.defineProperty(l,"isSupported",{get:function(){return l.get_isSupported()}}),l.initialize=function(){if(!l.initialized){var t=n(569).default.getSensors(n(571).default.ACCELEROMETER);t.length>0&&(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;n<i.length;){var a=i[n];++n,a.type==t&&e.push(a)}return e},r.registerSensor=function(t,e){var n=new r(t,e);r.sensors.push(n),r.sensorByID.set(e,n)},r.sensorByID=new(n(22).default),r.sensors=[],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_Float_Float_Float_Void"],(a.prototype={add:function(t,e,n){null==n&&(n=0),null==e&&(e=!1);for(var i=0,r=this.__priorities.length;i<r;){var a=i++;if(n>this.__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<n.length;){var i=n[e];if(++e,r().default.compareMethods(i,t))return!0}return!1},remove:function(t){for(var e=this.__listeners.length;--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;a<i.length&&(i[a](t,e,n),r[a]?++a:this.remove(i[a]),!this.canceled););}}).__class__=i["lime.app._Event_Float_Float_Float_Void"]=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.system.SensorType"]={__ename__:["lime","system","SensorType"],__constructs__:["ACCELEROMETER"]};r.ACCELEROMETER=["ACCELEROMETER",0],r.ACCELEROMETER.toString=i,r.ACCELEROMETER.__enum__=r,e.default=r}).call(e,n(0))},function(t,e,n){t.exports={ApplicationDomain:n(573).default,Capabilities:n(574).default,LoaderContext:n(577).default,Security:n(579).default,SecurityDomain:n(581).default,System:n(583).default,TouchscreenType:n(585).default}},function(t,e,n){t.exports=n(208)},function(t,e,n){t.exports=n(575)},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(576)}function a(){return n(46)}function s(){return n(34)}var o=function(){};o.__name__=["openfl","system","Capabilities"],(o.prototype={}).__class__=i["openfl.system.Capabilities"]=o,Object.defineProperties(o,{cpuArchitecture:{get:function(){return o.get_cpuArchitecture()}},language:{get:function(){return o.get_language()}},manufacturer:{get:function(){return o.get_manufacturer()}},os:{get:function(){return o.get_os()}},pixelAspectRatio:{get:function(){return o.get_pixelAspectRatio()}},screenDPI:{get:function(){return o.get_screenDPI()}},screenResolutionX:{get:function(){return o.get_screenResolutionX()}},screenResolutionY:{get:function(){return o.get_screenResolutionY()}},version:{get:function(){return o.get_version()}}}),o.hasMultiChannelAudio=function(t){return!1},o.get_cpuArchitecture=function(){return"x86"},o.get_language=function(){var t=r().default.get_language(r().default.get_currentLocale());if(null!=t)switch(t=t.toLowerCase()){case"cs":case"da":case"de":case"en":case"es":case"fi":case"fr":case"hu":case"it":case"ja":case"ko":case"nb":case"nl":case"pl":case"pt":case"ru":case"sv":case"tr":return t;case"zh":var e=r().default.get_region(r().default.get_currentLocale());if(null!=e)switch(e.toUpperCase()){case"HANT":case"TW":return"zh-TW"}return"zh-CN";default:return"xu"}return"en"},o.get_manufacturer=function(){var t=a().default.get_platformName();return"OpenFL"+(null!=t?" "+t:"")},o.get_os=function(){var t=a().default.get_platformLabel();return null!=t?t:""},o.get_pixelAspectRatio=function(){return 1},o.get_screenDPI=function(){var t=null!=s().default.application?s().default.application.get_window():null,e=o.__standardDensities[0];if(null!=t){var n=t.get_display();if(null!=n){for(var i,r=n.dpi,a=e,l=Math.abs(r-e),u=0,_=o.__standardDensities;u<_.length;){var f=_[u];++u,(i=Math.abs(r-f))<l&&(l=i,a=f)}e=a}}return e},o.get_screenResolutionX=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.width*t.window.get_scale()))}return e>0?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;C<w&&""==this.error;){var L=a().default.trim(m[C]),O=L.indexOf("//");-1!=O&&(L=o().default.substr(L,0,O));var P=y.match(L)?y.matchedPos().pos:-1,F=null;-1!=P&&(F=this.match(o().default.substr(L,P,null),b),L=o().default.substr(L,0,P));var B=null,N=null;if(x.match(L)&&(B=x.matched(0),N=g.OPMAP.get(B)),null!=N)if(this.debugEnabled&&l().default.trace(N,{fileName:"AGALMiniAssembler.hx",lineNumber:296,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"}),null!=N){if(L=o().default.substr(L,L.indexOf(N.name)+N.name.length,null),0!=(256&N.flags)&&i<2){this.error="error: opcode requires version 2.";break}if(0!=(64&N.flags)&&p){this.error="error: opcode is only allowed in vertex programs.";break}if(0!=(32&N.flags)&&!p){this.error="error: opcode is only allowed in fragment programs.";break}if(this.verbose&&l().default.trace("emit opcode="+u().default.string(N),{fileName:"AGALMiniAssembler.hx",lineNumber:338,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"}),this.agalcode.writeUnsignedInt(N.emitCode),++v>4096){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;j<V;){var X=j++,W=!1,H=this.match(k[X],T);H.length>0&&(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;st<at;)rt=o().default.cca(J[0],st)-120,_().default.gt(rt,2)&&(rt=3),Q|=$?1<<rt:rt<<(st-1<<1),++st;if(!$)for(;st<=4;)Q|=rt<<(st-1<<1),++st}else Q=$?15:228;if(W){var ot=this.match(H[0],M),lt=g.REGMAP.get(ot[0]);if(null==lt){this.error="error: bad index register",U=!0;break}et=lt.emitCode;var ut=this.match(H[0],I);if(0==ut.length){this.error="error: bad index register select",U=!0;break}nt=o().default.cca(ut[0],1)-120,_().default.gt(nt,2)&&(nt=3);var _t=this.match(H[0],D);if(_t.length>0&&(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<ct;){var pt=ht++;this.verbose&&l().default.trace(" opt: "+F[pt],{fileName:"AGALMiniAssembler.hx",lineNumber:611,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"});var gt=g.SAMPLEMAP.get(F[pt]);null==gt?(dt=u().default.parseFloat(F[pt]),this.verbose&&l().default.trace(" bias: "+dt,{fileName:"AGALMiniAssembler.hx",lineNumber:625,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"})):(16!=gt.flag&&(ft&=~(15<<gt.flag)),ft|=gt.mask<<gt.flag)}this.agalcode.writeShort(Z),this.agalcode.writeByte(u().default.int(8*dt)),this.agalcode.writeByte(0),this.agalcode.writeUnsignedInt(ft),this.verbose&&l().default.trace(" bits: "+(ft-5),{fileName:"AGALMiniAssembler.hx",lineNumber:650,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"}),G-=64}else 0==X&&(this.agalcode.writeUnsignedInt(0),G-=32),this.agalcode.writeShort(Z),this.agalcode.writeByte(it),this.agalcode.writeByte(Q),this.agalcode.writeByte(Y.emitCode),this.agalcode.writeByte(et),this.agalcode.writeShort(W?32768|nt:0),G-=64}for(var mt=0;mt<G;)this.agalcode.writeByte(0),mt+=8;if(U)break;++C}else L.length>=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<yt;){var bt=wt++;bt%16==0&&(vt+="\n"),bt%4==0&&(vt+=" ");var xt=a().default.hex(this.agalcode.get(bt),2);xt.length<2&&(xt="0"+xt),vt+=xt}l().default.trace(vt,{fileName:"AGALMiniAssembler.hx",lineNumber:739,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"})}return this.verbose&&l().default.trace("AGALMiniAssembler.assemble time: "+(r().default.getTimer()-h)/1e3+"s",{fileName:"AGALMiniAssembler.hx",lineNumber:745,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"}),this.agalcode},initregmap:function(t,e){var n=g.REGMAP,i=new(d().default)("va","vertex attribute",0,e?1024:1==t||2==t?7:15,66);n.set("va",i);var r=g.REGMAP,a=new(d().default)("vc","vertex constant",1,e?1024:1==t?127:249,66);r.set("vc",a);var s=g.REGMAP,o=new(d().default)("vt","vertex temporary",2,e?1024:1==t?7:25,67);s.set("vt",o);var l=g.REGMAP,u=new(d().default)("vo","vertex output",3,e?1024:0,65);l.set("vo",u);var _=g.REGMAP,f=new(d().default)("vi","varying",4,e?1024:1==t?7:9,99);_.set("vi",f);var h=g.REGMAP,c=new(d().default)("fc","fragment constant",1,e?1024:1==t?27:2==t?63:199,34);h.set("fc",c);var p=g.REGMAP,m=new(d().default)("ft","fragment temporary",2,e?1024:1==t?7:25,35);p.set("ft",m);var v=g.REGMAP,w=new(d().default)("fs","texture sampler",5,e?1024:7,34);v.set("fs",w);var y=g.REGMAP,b=new(d().default)("fo","fragment output",3,e?1024:1==t?0:3,33);y.set("fo",b);var x=g.REGMAP,E=new(d().default)("fd","fragment depth output",6,e?1024:1==t?-1:0,33);x.set("fd",E);var T=g.REGMAP,A=new(d().default)("iid","instance id",7,e?1024:0,66);T.set("iid",A);var R=g.REGMAP,S=g.REGMAP.get("vo");R.set("op",S);var M=g.REGMAP,I=g.REGMAP.get("vi");M.set("i",I);var D=g.REGMAP,C=g.REGMAP.get("vi");D.set("v",C);var L=g.REGMAP,O=g.REGMAP.get("fo");L.set("oc",O);var P=g.REGMAP,F=g.REGMAP.get("fd");P.set("od",F);var B=g.REGMAP,N=g.REGMAP.get("vi");B.set("fi",N)},match:function(t,e){for(var n,i=[],r=0;e.matchSub(t,r);)n=e.matched(0),i.push(n),r=e.matchedPos().pos+n.length;return i}},g.prototype.__class__=i["openfl.utils.AGALMiniAssembler"]=g,g.init=function(){g.initialized=!0;var t=g.OPMAP,e=new(c().default)("mov",2,0,0);t.set("mov",e);var n=g.OPMAP,i=new(c().default)("add",3,1,0);n.set("add",i);var r=g.OPMAP,a=new(c().default)("sub",3,2,0);r.set("sub",a);var s=g.OPMAP,o=new(c().default)("mul",3,3,0);s.set("mul",o);var l=g.OPMAP,u=new(c().default)("div",3,4,0);l.set("div",u);var _=g.OPMAP,f=new(c().default)("rcp",2,5,0);_.set("rcp",f);var d=g.OPMAP,h=new(c().default)("min",3,6,0);d.set("min",h);var m=g.OPMAP,v=new(c().default)("max",3,7,0);m.set("max",v);var w=g.OPMAP,y=new(c().default)("frc",2,8,0);w.set("frc",y);var b=g.OPMAP,x=new(c().default)("sqt",2,9,0);b.set("sqt",x);var E=g.OPMAP,T=new(c().default)("rsq",2,10,0);E.set("rsq",T);var A=g.OPMAP,R=new(c().default)("pow",3,11,0);A.set("pow",R);var S=g.OPMAP,M=new(c().default)("log",2,12,0);S.set("log",M);var I=g.OPMAP,D=new(c().default)("exp",2,13,0);I.set("exp",D);var C=g.OPMAP,L=new(c().default)("nrm",2,14,0);C.set("nrm",L);var O=g.OPMAP,P=new(c().default)("sin",2,15,0);O.set("sin",P);var F=g.OPMAP,B=new(c().default)("cos",2,16,0);F.set("cos",B);var N=g.OPMAP,k=new(c().default)("crs",3,17,0);N.set("crs",k);var U=g.OPMAP,G=new(c().default)("dp3",3,18,0);U.set("dp3",G);var j=g.OPMAP,V=new(c().default)("dp4",3,19,0);j.set("dp4",V);var X=g.OPMAP,W=new(c().default)("abs",2,20,0);X.set("abs",W);var H=g.OPMAP,z=new(c().default)("neg",2,21,0);H.set("neg",z);var Y=g.OPMAP,q=new(c().default)("sat",2,22,0);Y.set("sat",q);var K=g.OPMAP,Z=new(c().default)("m33",3,23,16);K.set("m33",Z);var Q=g.OPMAP,J=new(c().default)("m44",3,24,16);Q.set("m44",J);var $=g.OPMAP,tt=new(c().default)("m34",3,25,16);$.set("m34",tt);var et=g.OPMAP,nt=new(c().default)("ddx",2,26,288);et.set("ddx",nt);var it=g.OPMAP,rt=new(c().default)("ddy",2,27,288);it.set("ddy",rt);var at=g.OPMAP,st=new(c().default)("ife",2,28,897);at.set("ife",st);var ot=g.OPMAP,lt=new(c().default)("ine",2,29,897);ot.set("ine",lt);var ut=g.OPMAP,_t=new(c().default)("ifg",2,30,897);ut.set("ifg",_t);var ft=g.OPMAP,dt=new(c().default)("ifl",2,31,897);ft.set("ifl",dt);var ht=g.OPMAP,ct=new(c().default)("els",0,32,1921);ht.set("els",ct);var pt=g.OPMAP,gt=new(c().default)("eif",0,33,1409);pt.set("eif",gt);var mt=g.OPMAP,vt=new(c().default)("kil",1,39,160);mt.set("kil",vt);var wt=g.OPMAP,yt=new(c().default)("tex",3,40,40);wt.set("tex",yt);var bt=g.OPMAP,xt=new(c().default)("sge",3,41,0);bt.set("sge",xt);var Et=g.OPMAP,Tt=new(c().default)("slt",3,42,0);Et.set("slt",Tt);var At=g.OPMAP,Rt=new(c().default)("sgn",2,43,0);At.set("sgn",Rt);var St=g.OPMAP,Mt=new(c().default)("seq",3,44,0);St.set("seq",Mt);var It=g.OPMAP,Dt=new(c().default)("sne",3,45,0);It.set("sne",Dt);var Ct=g.SAMPLEMAP,Lt=new(p().default)("rgba",8,0);Ct.set("rgba",Lt);var Ot=g.SAMPLEMAP,Pt=new(p().default)("compressed",8,1);Ot.set("compressed",Pt);var Ft=g.SAMPLEMAP,Bt=new(p().default)("compressedalpha",8,2);Ft.set("compressedalpha",Bt);var Nt=g.SAMPLEMAP,kt=new(p().default)("dxt1",8,1);Nt.set("dxt1",kt);var Ut=g.SAMPLEMAP,Gt=new(p().default)("dxt5",8,2);Ut.set("dxt5",Gt);var jt=g.SAMPLEMAP,Vt=new(p().default)("video",8,3);jt.set("video",Vt);var Xt=g.SAMPLEMAP,Wt=new(p().default)("2d",12,0);Xt.set("2d",Wt);var Ht=g.SAMPLEMAP,zt=new(p().default)("3d",12,2);Ht.set("3d",zt);var Yt=g.SAMPLEMAP,qt=new(p().default)("cube",12,1);Yt.set("cube",qt);var Kt=g.SAMPLEMAP,Zt=new(p().default)("mipnearest",24,1);Kt.set("mipnearest",Zt);var Qt=g.SAMPLEMAP,Jt=new(p().default)("miplinear",24,2);Qt.set("miplinear",Jt);var $t=g.SAMPLEMAP,te=new(p().default)("mipnone",24,0);$t.set("mipnone",te);var ee=g.SAMPLEMAP,ne=new(p().default)("nomip",24,0);ee.set("nomip",ne);var ie=g.SAMPLEMAP,re=new(p().default)("nearest",28,0);ie.set("nearest",re);var ae=g.SAMPLEMAP,se=new(p().default)("linear",28,1);ae.set("linear",se);var oe=g.SAMPLEMAP,le=new(p().default)("anisotropic2x",28,2);oe.set("anisotropic2x",le);var ue=g.SAMPLEMAP,_e=new(p().default)("anisotropic4x",28,3);ue.set("anisotropic4x",_e);var fe=g.SAMPLEMAP,de=new(p().default)("anisotropic8x",28,4);fe.set("anisotropic8x",de);var he=g.SAMPLEMAP,ce=new(p().default)("anisotropic16x",28,5);he.set("anisotropic16x",ce);var pe=g.SAMPLEMAP,ge=new(p().default)("centroid",16,1);pe.set("centroid",ge);var me=g.SAMPLEMAP,ve=new(p().default)("single",16,2);me.set("single",ve);var we=g.SAMPLEMAP,ye=new(p().default)("ignoresampler",16,4);we.set("ignoresampler",ye);var be=g.SAMPLEMAP,xe=new(p().default)("repeat",20,1);be.set("repeat",xe);var Ee=g.SAMPLEMAP,Te=new(p().default)("wrap",20,1);Ee.set("wrap",Te);var Ae=g.SAMPLEMAP,Re=new(p().default)("clamp",20,0);Ae.set("clamp",Re);var Se=g.SAMPLEMAP,Me=new(p().default)("clamp_u_repeat_v",20,2);Se.set("clamp_u_repeat_v",Me);var Ie=g.SAMPLEMAP,De=new(p().default)("repeat_u_clamp_v",20,3);Ie.set("repeat_u_clamp_v",De)},g.OPMAP=new(h().default),g.REGMAP=new(h().default),g.SAMPLEMAP=new(h().default),g.MAX_NESTING=4,g.MAX_OPCODES=4096,g.FRAGMENT="fragment",g.VERTEX="vertex",g.SAMPLER_TYPE_SHIFT=8,g.SAMPLER_DIM_SHIFT=12,g.SAMPLER_SPECIAL_SHIFT=16,g.SAMPLER_REPEAT_SHIFT=20,g.SAMPLER_MIPMAP_SHIFT=24,g.SAMPLER_FILTER_SHIFT=28,g.REG_WRITE=1,g.REG_READ=2,g.REG_FRAG=32,g.REG_VERT=64,g.OP_SCALAR=1,g.OP_SPECIAL_TEX=8,g.OP_SPECIAL_MATRIX=16,g.OP_FRAG_ONLY=32,g.OP_VERT_ONLY=64,g.OP_NO_DEST=128,g.OP_VERSION2=256,g.OP_INCNEST=512,g.OP_DECNEST=1024,g.MOV="mov",g.ADD="add",g.SUB="sub",g.MUL="mul",g.DIV="div",g.RCP="rcp",g.MIN="min",g.MAX="max",g.FRC="frc",g.SQT="sqt",g.RSQ="rsq",g.POW="pow",g.LOG="log",g.EXP="exp",g.NRM="nrm",g.SIN="sin",g.COS="cos",g.CRS="crs",g.DP3="dp3",g.DP4="dp4",g.ABS="abs",g.NEG="neg",g.SAT="sat",g.M33="m33",g.M44="m44",g.M34="m34",g.DDX="ddx",g.DDY="ddy",g.IFE="ife",g.INE="ine",g.IFG="ifg",g.IFL="ifl",g.IEG="ieg",g.IEL="iel",g.ELS="els",g.EIF="eif",g.TED="ted",g.KIL="kil",g.TEX="tex",g.SGE="sge",g.SLT="slt",g.SGN="sgn",g.SEQ="seq",g.SNE="sne",g.VA="va",g.VC="vc",g.VT="vt",g.VO="vo",g.VI="vi",g.FC="fc",g.FT="ft",g.FS="fs",g.FO="fo",g.FD="fd",g.IID="iid",g.D2="2d",g.D3="3d",g.CUBE="cube",g.MIPNEAREST="mipnearest",g.MIPLINEAR="miplinear",g.MIPNONE="mipnone",g.NOMIP="nomip",g.NEAREST="nearest",g.LINEAR="linear",g.ANISOTROPIC2X="anisotropic2x",g.ANISOTROPIC4X="anisotropic4x",g.ANISOTROPIC8X="anisotropic8x",g.ANISOTROPIC16X="anisotropic16x",g.CENTROID="centroid",g.SINGLE="single",g.IGNORESAMPLER="ignoresampler",g.REPEAT="repeat",g.WRAP="wrap",g.CLAMP="clamp",g.REPEAT_U_CLAMP_V="repeat_u_clamp_v",g.CLAMP_U_REPEAT_V="clamp_u_repeat_v",g.RGBA="rgba",g.COMPRESSED="compressed",g.COMPRESSEDALPHA="compressedalpha",g.DXT1="dxt1",g.DXT5="dxt5",g.VIDEO="video",g.initialized=!1,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;n(2).default;function r(){return n(4)}function a(){return n(43)}var s=function(t,e,n,i,r){this.name=t,this.longName=e,this.emitCode=n,this.range=i,this.flags=r};s.__name__=["openfl","utils","_AGALMiniAssembler","Register"],(s.prototype={toString:function(){return'[Register name="'+this.name+'", longName="'+this.longName+'", emitCode='+r().default.string(a().default.toFloat(this.emitCode))+", range="+r().default.string(a().default.toFloat(this.range))+", flags="+r().default.string(a().default.toFloat(this.flags))+"]"}}).__class__=i["openfl.utils._AGALMiniAssembler.Register"]=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(t,e,n,i){this.name=t,this.numRegister=e,this.emitCode=n,this.flags=i};r.__name__=["openfl","utils","_AGALMiniAssembler","OpCode"],(r.prototype={toString:function(){return'[OpCode name="'+this.name+'", numRegister='+this.numRegister+", emitCode="+this.emitCode+", flags="+this.flags+"]"}}).__class__=i["openfl.utils._AGALMiniAssembler.OpCode"]=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)}function a(){return n(43)}var s=function(t,e,n){this.name=t,this.flag=e,this.mask=n};s.__name__=["openfl","utils","_AGALMiniAssembler","Sampler"],(s.prototype={toString:function(){return'[Sampler name="'+this.name+'", flag="'+r().default.string(a().default.toFloat(this.flag))+'", mask='+r().default.string(a().default.toFloat(this.mask))+"]"}}).__class__=i["openfl.utils._AGALMiniAssembler.Sampler"]=s,e.default=s}).call(e,n(0))},function(t,e,n){t.exports=n(45)},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.CompressionAlgorithm=t.exports.default={DEFLATE:"deflate",LZMA:"lzma",ZLIB:"zlib"}},function(t,e){Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports.Endian=t.exports.default={BIG_ENDIAN:"bigEndian",LITTLE_ENDIAN:"littleEndian"}},function(t,e,n){t.exports=n(92)},function(t,e,n){t.exports=n(123)},function(t,e,n){t.exports=n(621)},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(11)}function l(){return n(233)}var u=function(t,e){if(null==e&&(e=0),isNaN(t)||t<0)throw new(n(6).default)(new(n(30).default)("The delay specified is negative or not a finite number"));s().default.call(this),this.__delay=t,this.__repeatCount=e,this.running=!1,this.currentCount=0};u.__name__=["openfl","utils","Timer"],u.__super__=s().default,(u.prototype=a(s().default.prototype,{reset:function(){this.running&&this.stop(),this.currentCount=0},start:function(){this.running||(this.running=!0,this.__timerID=o().default.get_window().setInterval(r(this,this.timer_onTimer),n(4).default.int(this.__delay)))},stop:function(){this.running=!1,null!=this.__timerID&&(o().default.get_window().clearInterval(this.__timerID),this.__timerID=null)},get_delay:function(){return this.__delay},set_delay:function(t){return this.__delay=t,this.running&&(this.stop(),this.start()),this.__delay},get_repeatCount:function(){return this.__repeatCount},set_repeatCount:function(t){return this.running&&0!=t&&t<=this.currentCount&&this.stop(),this.__repeatCount=t},timer_onTimer:function(){this.currentCount++,this.__repeatCount>0&&this.currentCount>=this.__repeatCount?(this.stop(),this.dispatchEvent(new(l().default)("timer")),this.dispatchEvent(new(l().default)("timerComplete"))):this.dispatchEvent(new(l().default)("timer"))}})).__class__=i["openfl.utils.Timer"]=u;var _=u.prototype;t.Object.defineProperties(_,{delay:{get:_.get_delay,set:_.set_delay},repeatCount:{get:_.get_repeatCount,set:_.set_repeatCount}}),e.default=u}).call(e,n(0))},function(t,e,n){var i=n(25).default;t.exports.default=i.getTimer},function(t,e,n){var i=n(25).default;t.exports.default=i.getDefinitionByName},function(t,e,n){var i=n(25).default;t.exports.default=i.getQualifiedClassName},function(t,e,n){var i=n(25).default;t.exports.default=i.getQualifiedSuperclassName},function(t,e,n){t.exports=n(201)},function(t,e,n){t.exports=n(25)},function(t,e,n){t.exports=n(629)},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","Memory"],(r.prototype={}).__class__=i["openfl.Memory"]=r,r._setPositionTemporarily=function(t,e){var n=r.gcRef.position;r.gcRef.position=t;var i=e();return r.gcRef.position=n,i},r.getByte=function(t){return r.gcRef.get(t)},r.getDouble=function(t){return r._setPositionTemporarily(t,function(){return r.gcRef.readDouble()})},r.getFloat=function(t){return r._setPositionTemporarily(t,function(){return r.gcRef.readFloat()})},r.getI32=function(t){return r._setPositionTemporarily(t,function(){return r.gcRef.readInt()})},r.getUI16=function(t){return r._setPositionTemporarily(t,function(){return r.gcRef.readUnsignedShort()})},r.select=function(t){r.gcRef=t,r.len=null!=t?n(17).default.get_length(t):0},r.setByte=function(t,e){var n=r.gcRef;n.__resize(t+1),n.set(t,e)},r.setDouble=function(t,e){r._setPositionTemporarily(t,function(){r.gcRef.writeDouble(e)})},r.setFloat=function(t,e){r._setPositionTemporarily(t,function(){r.gcRef.writeFloat(e)})},r.setI16=function(t,e){r._setPositionTemporarily(t,function(){r.gcRef.writeShort(e)})},r.setI32=function(t,e){r._setPositionTemporarily(t,function(){r.gcRef.writeInt(e)})},e.default=r}).call(e,n(0))},function(t,e,n){t.exports=n(90)}])});
|
||
//# sourceMappingURL=openfl.min.js.map |